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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
player_component/src/main/java/com/xyoye/player/controller/subtitle/SubtitleImageView.kt | xyoye | 138,993,190 | false | {"Kotlin": 1580261, "Java": 495885, "Shell": 17996} | package com.xyoye.player.controller.subtitle
import android.content.Context
import android.graphics.Point
import android.util.AttributeSet
import android.view.Gravity
import android.widget.FrameLayout
import com.google.android.exoplayer2.text.Cue
import com.google.android.exoplayer2.ui.SubtitleView
import com.xyoye.da... | 28 | Kotlin | 93 | 946 | b60bd028ce160ff37aba3eaf70fd0b2cbfa5eab0 | 2,084 | DanDanPlayForAndroid | Apache License 2.0 |
src/test/kotlin/com/github/bigdata/sql/parser/presto/PrestoSqlParserTest.kt | duhanmin | 397,120,929 | false | null | package com.github.bigdata.sql.parser.presto
import cn.hutool.core.util.StrUtil
import cn.hutool.json.JSONUtil
import org.junit.Test
/**
*
* Author: duhanmin
* Description:
* Date: 2021/8/18 13:31
*/
class PrestoSqlParserTest {
@Test
fun sqlTest() {
val sql = "with recursive t as (select * from ... | 1 | null | 2 | 8 | f17fb991cce435d77c2231845fb5329ef3dc6d43 | 15,765 | bigdata-sql-parser | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/pdl/client/model/GetAktoridsRequest.kt | navikt | 526,559,029 | false | {"Kotlin": 182938, "Dockerfile": 699} | package no.nav.syfo.pdl.client.model
data class GetAktoridsRequest(val query: String, val variables: GetAktoridsVariables)
| 1 | Kotlin | 0 | 0 | 715d7812d509fe5ec1ed7b075807fb42e0df16f4 | 124 | macgyver | MIT License |
spring-boot-kotlin/src/test/kotlin/com/baeldung/theValueAnnotation/TheValueAnnotationUnitTest.kt | Baeldung | 260,481,121 | false | {"Kotlin": 1855665, "Java": 48276, "HTML": 4883, "Dockerfile": 292} | package com.baeldung.theValueAnnotation
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.TestConstructor
import org.springframework.test.context.TestConstructor.AutowireMode
import kotlin.test.assertEquals
import kotlin.test.assertNul... | 14 | Kotlin | 294 | 465 | f1ef5d5ded3f7ddc647f1b6119f211068f704577 | 1,311 | kotlin-tutorials | MIT License |
requery-test/kotlin-test/src/main/kotlin/io/requery/test/kt/Keywords.kt | requery | 46,154,735 | false | null | package io.requery.test.kt
import io.requery.Entity
import io.requery.Generated
import io.requery.Key
/**
* This class is a test itself. If project compilation succeeds, it means that forbidden names
* (e.g. java keywords) are processed properly.
*/
@Entity
interface Keywords {
@get:Key
@get:Generated
... | 174 | null | 254 | 3,116 | 7ff49330f3b20b7d2bedba6457b18134a7bdbef8 | 445 | requery | Apache License 2.0 |
src/main/kotlin/com/hotakakademy/dockwitcher/domain/entities/Conductor.kt | hotaka-ikhodi | 795,238,308 | false | {"Kotlin": 16384, "HTML": 5845, "Java": 4792} | package com.hotakakademy.dockwitcher.domain.entities
import com.hotakademy.dockwitcher.domain.entities.Entity
import com.hotakakademy.dockwitcher.domain.repositories.IConductorRepository
import java.util.Date
class Conductor : Entity<IConductorRepository>(){
var nombre: String? = null
var identificacion: Stri... | 1 | Kotlin | 11 | 1 | 8fbb2a4efe903ac313894673b18eb51c125f9116 | 717 | dockwitcher-step1 | MIT License |
plugins/kotlin/idea/tests/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsageWithTypeArgument7.kt | ingokegel | 72,937,917 | false | null | // "Replace with 'New'" "true"
// WITH_STDLIB
// ERROR: Not enough information to infer type variable T
abstract class Main<T>
@Deprecated("", ReplaceWith("New"))
class Old<T, F> : Main<T>()
class New<T> : Main<T>()
fun test() {
val main = <caret>Old<Int, String>()
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.i... | 233 | null | 4912 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 369 | intellij-community | Apache License 2.0 |
android/app/src/main/kotlin/com/example/recyclo/MainActivity.kt | ashmishra1 | 429,486,681 | false | {"Dart": 172732, "C++": 16818, "CMake": 7939, "C": 734, "Swift": 404, "Kotlin": 124, "Objective-C": 38} | package com.example.recyclo
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 10678dc99aeeb1f8826f97d7332832178b34b1f2 | 124 | Recyclo | Apache License 2.0 |
feature-main/src/main/java/sanchez/sanchez/sergio/feature_main/di/component/PeopleListComponent.kt | sergio11 | 332,195,948 | false | null | package sanchez.sanchez.sergio.feature_main.di.component
import dagger.Subcomponent
import sanchez.sanchez.sergio.feature_main.di.module.person.PersonListModule
import sanchez.sanchez.sergio.feature_main.di.module.person.PersonListViewModelModule
import sanchez.sanchez.sergio.feature_main.ui.person.PeopleListFragment
... | 0 | Kotlin | 0 | 6 | eef4f5b03c33f1efd937d546ebdea84c3255d445 | 748 | MovieAddicts | MIT License |
src/main/kotlin/tasks/DockerLoginTask.kt | mayope | 358,867,790 | false | null | package net.mayope.deployplugin.tasks
import org.gradle.api.DefaultTask
import org.gradle.api.Project
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.Optional
import org.gradle.api.tasks.TaskAction
import java.io.ByteArrayOutputStream
import java.time.Instant
import java.time.temporal.ChronoUnit
enum cl... | 2 | null | 4 | 6 | 120d8b18a18e17831502999b34bde32b9091acd7 | 3,378 | deployment-plugin | MIT License |
src/en/asiaontop/src/eu/kanade/tachiyomi/extension/en/asiaontop/AsiaontopFilters.kt | hasanpasha | 672,018,299 | true | {"Kotlin": 5138039} | package eu.kanade.tachiyomi.extension.en.asiaontop
import eu.kanade.tachiyomi.source.model.Filter
import eu.kanade.tachiyomi.source.model.FilterList
class AsiaontopFilters() {
companion object {
fun getFilterList() = FilterList(
FilterByFilter(),
Filter.Separator(),
B... | 0 | Kotlin | 0 | 0 | 57a4e98e50d1809bc69d1a577a5322cbbdf238d5 | 5,355 | tachiyomi-extensions | Apache License 2.0 |
sample/src/main/java/com/litesoftteam/mvvm/sample/presentation/viewmodel/DetailsViewModel.kt | udfvirus | 352,020,196 | false | {"Kotlin": 29982} | /*
* Copyright (C) 2021 <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 ... | 2 | Kotlin | 0 | 1 | 24a5db9c7fd042c5c56e1e3e95882fdfa776a029 | 1,525 | mvvmframework | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/ui/sync/account/SyncAccountAuthenticatorPresenter.kt | null-dev | 113,073,936 | true | {"Kotlin": 1492575, "Java": 9544, "Shell": 1179} | package eu.kanade.tachiyomi.ui.sync.account
import android.accounts.Account
import android.accounts.AccountManager
import eu.kanade.tachiyomi.data.database.DatabaseHelper
import eu.kanade.tachiyomi.data.sync.LibrarySyncManager
import eu.kanade.tachiyomi.data.sync.account.SyncAccountAuthenticator
import eu.kanade.tachi... | 0 | Kotlin | 0 | 0 | 4dcb085337a203037e656f9da5705aec0f653a94 | 2,317 | tachiyomi | Apache License 2.0 |
csp-framework/src/test/kotlin/GenericTests.kt | RedShuhart | 152,120,429 | false | null | import com.tsovedenski.csp.*
import com.tsovedenski.csp.strategies.Backtracking
import org.junit.Assert.*
import org.junit.Test
/**
* Created by <NAME> on 10/01/19.
*/
class GenericTests {
@Test
fun `example`() {
val neq = { x: Int, y: Int -> x != y }
val problem = Problem(
const... | 0 | Kotlin | 1 | 4 | 29d59ec7ff4f0893c0d1ec895118f961dd221c7f | 1,936 | csp-framework | MIT License |
vendor-android/src/main/kotlin/com/malinskiy/marathon/android/InstrumentationInfo.kt | cdsap | 134,924,816 | true | {"Kotlin": 300576, "JavaScript": 33573, "CSS": 29044, "HTML": 2224, "Shell": 964} | package com.malinskiy.marathon.android
data class InstrumentationInfo(val applicationPackage: String,
val instrumentationPackage: String,
val testRunnerClass: String)
| 1 | Kotlin | 0 | 1 | ce6648774cd47c87f074ebdfdacbbcf781bdfdd4 | 230 | marathon | Apache License 2.0 |
data/src/main/java/com/huskielabs/baac/data/cache/repository/EmojiCacheRepositoryImpl.kt | tiagotrcz | 336,550,961 | false | null | package com.huskielabs.baac.data.cache.repository
import com.huskielabs.baac.data.cache.dao.EmojiDAO
import com.huskielabs.baac.data.cache.dbo.EmojiDBO
import com.huskielabs.baac.data.repository.EmojiCacheRepository
import javax.inject.Inject
class EmojiCacheRepositoryImpl @Inject constructor(
private val emojiDao:... | 0 | Kotlin | 0 | 0 | fd8fb093cd9444978c8c4853c123115c7b053445 | 703 | baac | MIT License |
gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/gadget/GadgetTalkChangeNotify.kt | Anime-Game-Servers | 642,871,918 | false | {"Kotlin": 1651536} | package org.anime_game_servers.multi_proto.gi.data.gadget
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.Version.GI_1_4_0
import org.anime_game_servers.core.base.annotations.proto.CommandType.NOTIFY
import org.anime_game_servers.core.base.annotations.proto.ProtoComm... | 0 | Kotlin | 2 | 6 | 7639afe4f546aa5bbd9b4afc9c06c17f9547c588 | 471 | anime-game-multi-proto | MIT License |
app/src/main/java/pe/edu/upc/superherocompose/screens/heroes/HeroesViewModel.kt | Setsuke | 415,163,057 | true | {"Kotlin": 37771} | /*
* Designed and developed by 2021 jmayta1984 (Jorge Mayta)
*
* 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 ... | 0 | null | 0 | 0 | 7a93c246e1cdc9f4b3e6056e61160ef86432f865 | 1,771 | HeroCompose | Apache License 2.0 |
data/src/main/java/ru/vafeen/universityschedule/data/network/service/DownloadService.kt | vafeen | 824,412,417 | false | {"Kotlin": 178840} | package ru.vafeen.universityschedule.data.network.service
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Streaming
import retrofit2.http.Url
interface DownloadService {
@GET
@Streaming
fun downloadFile(@Url fileUrl: String): Call<ResponseBody>
}
| 0 | Kotlin | 1 | 1 | c2313e1f9c2ff5ba8990c362efc533479df4b3ff | 311 | UniversitySchedule | Apache License 2.0 |
app/src/test/java/com/duckduckgo/app/browser/autofill/RealAutofillFireproofDialogSuppressorTest.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11627106, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} |
package com.duckduckgo.app.browser.autofill
import com.duckduckgo.autofill.impl.RealAutofillFireproofDialogSuppressor
import com.duckduckgo.autofill.impl.time.TimeProvider
import org.junit.Assert.*
import org.junit.Before
import org.junit.Test
import org.mockito.kotlin.mock
import org.mockito.kotlin.whenever
class ... | 0 | Kotlin | 0 | 0 | 54351d039b85138a85cbfc7fc3bd5bc53637559f | 1,713 | DuckDuckGo | Apache License 2.0 |
data/src/main/java/com/quoders/apps/kryptoquo/data/model/CoinApiCoinsReponse.kt | Quoders | 120,895,875 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "Java": 3, "Proguard": 2, "Kotlin": 6, "XML": 11} | package model
import com.squareup.moshi.Json
class CoinApiCoinsReponse {
@Json(name = "asset_id")
var assetId: String? = null
@Json(name = "name")
var name: String? = null
@Json(name = "type_is_crypto")
var typeIsCrypto: Int? = null
@Json(name = "data_start")
var dataStart: String? = n... | 0 | Kotlin | 0 | 0 | d60afccff5a4cb11d86800ff8c7883d2dc4e1d4a | 996 | kryptoquo-android | Apache License 2.0 |
src/main/kotlin/com/staszkox/cryptotrayalert/helpers/GuiFactory.kt | stacherzakp | 122,732,266 | false | null | package com.staszkox.cryptotrayalert.helpers
import javafx.collections.ObservableList
import javafx.event.ActionEvent
import javafx.event.EventHandler
import javafx.geometry.Insets
import javafx.scene.Node
import javafx.scene.Scene
import javafx.scene.control.*
import javafx.scene.control.cell.PropertyValueFactory
imp... | 0 | Kotlin | 0 | 0 | 998ca339b58d68e05c410073d0d0652f1d00a6c3 | 4,441 | CryptoDesktopAlerts | Creative Commons Attribution 3.0 Unported |
data-jokesapi/src/main/java/prieto/fernando/model/RandomJokeResponse.kt | ferPrieto | 216,438,304 | false | null | package prieto.fernando.model
data class RandomJokeResponse(
val type: String,
val value: JokeResponse
)
data class JokeResponse(
val id: String,
val joke: String,
val categories: List<String>
)
| 0 | Kotlin | 1 | 13 | aecbd0054faa15beb29aac1c694eff9db0179432 | 217 | MVVM-Modularized | Apache License 2.0 |
android/src/main/java/com/chrynan/chat/feature/media/di/VideoPreviewFragmentModule.kt | chRyNaN | 206,982,352 | false | null | package com.chrynan.chat.feature.media.di
import com.chrynan.chat.di.scope.FragmentScope
import com.chrynan.chat.feature.media.fragment.VideoPreviewFragment
import com.chrynan.chat.feature.media.view.VideoPreviewView
import dagger.Binds
import dagger.Module
@Module
abstract class VideoPreviewFragmentModule {
@Bi... | 0 | Kotlin | 0 | 3 | 8269e4bcecad6ba4ef10e211ca4cb52e1cdff4b8 | 432 | Chat | Apache License 2.0 |
cinescout/store/src/commonMain/kotlin/store/ext/StoreExtensions.kt | 4face-studi0 | 280,630,732 | false | null | package store.ext
import arrow.core.Either
import cinescout.error.DataError
import cinescout.error.NetworkError
import kotlinx.coroutines.flow.filterNot
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.map
import store.Store
import store.StoreImpl
fun <T, R> Store<T>.map(
transform: (Either<Dat... | 19 | Kotlin | 2 | 3 | d64398507d60a20a445db1451bdd8be23d65c9aa | 717 | CineScout | Apache License 2.0 |
cinescout/store/src/commonMain/kotlin/store/ext/StoreExtensions.kt | 4face-studi0 | 280,630,732 | false | null | package store.ext
import arrow.core.Either
import cinescout.error.DataError
import cinescout.error.NetworkError
import kotlinx.coroutines.flow.filterNot
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.map
import store.Store
import store.StoreImpl
fun <T, R> Store<T>.map(
transform: (Either<Dat... | 19 | Kotlin | 2 | 3 | d64398507d60a20a445db1451bdd8be23d65c9aa | 717 | CineScout | Apache License 2.0 |
certificatetransparency/src/main/kotlin/com/appmattus/certificatetransparency/internal/utils/asn1/ASN1Object.kt | appmattus | 319,979,095 | false | null | /*
* Copyright 2023 Appmattus Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 7 | Kotlin | 24 | 91 | 469354b7a5692535bece8901d6d9fef1ab1f8093 | 1,983 | certificatetransparency | Apache License 2.0 |
courses/unit-1/examples/app/src/main/java/dev/nxonxon/examples/AppConstants.kt | vtnhondk | 187,597,775 | false | null | package dev.nxonxon.examples
object AppConstants {
internal const val STARTFOREGROUND_ACTION = "dev.nxonxon.foregroundservice.action.startforeground"
internal const val STOPFOREGROUND_ACTION = "dev.nxonxon.foregroundservice.action.stopforeground"
} | 0 | Kotlin | 1 | 0 | 6972a7480b94182e56bfe5ba14920a06826fff98 | 258 | android-courses | MIT License |
app/src/main/java/com/example/background/workers/CleanUpWorker.kt | nyoniempire | 323,860,038 | false | null | package com.example.background.workers
import android.content.Context
import androidx.work.Worker
import androidx.work.WorkerParameters
import com.example.background.OUTPUT_PATH
import timber.log.Timber
import java.io.File
import java.lang.reflect.Parameter
class CleanUpWorker(ctx: Context, params: WorkerParameters):... | 0 | Kotlin | 0 | 0 | f4e3a3fcfc2afe68683bff36143e9673e91f55cd | 1,183 | WorkManager | Apache License 2.0 |
llama-stack-client-kotlin-core/src/test/kotlin/com/llama_stack_client/api/services/blocking/SafetyServiceTest.kt | meta-llama | 854,913,926 | false | {"Kotlin": 2020773, "Shell": 2562} | // File generated from our OpenAPI spec by Stainless.
package com.llama_stack_client.api.services.blocking
import com.llama_stack_client.api.TestServerExtension
import com.llama_stack_client.api.client.okhttp.LlamaStackClientOkHttpClient
import com.llama_stack_client.api.models.*
import org.junit.jupiter.api.Test
imp... | 0 | Kotlin | 2 | 0 | ee76c5aec1d582dbbd2759d084ba16b8b74f04ea | 1,541 | llama-stack-client-kotlin | Apache License 2.0 |
app/src/main/java/com/ncs/o2/UI/UpdateScreen/UpdaterActivity.kt | arpitmx | 647,358,015 | false | {"Kotlin": 1819184} | package com.ncs.o2.UI.UpdateScreen
import android.Manifest.permission.REQUEST_INSTALL_PACKAGES
import android.Manifest.permission.WRITE_EXTERNAL_STORAGE
import android.app.Activity
import android.app.DownloadManager
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
... | 1 | Kotlin | 2 | 2 | a00e406e84ef46c86015adeab4035111697f45c3 | 17,394 | Oxygen | Apache License 2.0 |
owntracks-android-2.4/project/app/src/main/java/org/owntracks/android/ui/preferences/PreferencesFragment.kt | wir3z | 737,346,188 | false | {"Kotlin": 577231, "Groovy": 310450, "Java": 233010, "Python": 1535, "Shell": 959} | package org.owntracks.android.ui.preferences
import android.content.Intent
import android.os.Bundle
import androidx.preference.IntListPreference
import androidx.preference.Preference
import dagger.hilt.android.AndroidEntryPoint
import org.owntracks.android.R
import org.owntracks.android.services.MessageProcessorEndpoi... | 0 | Kotlin | 3 | 4 | 6f662b74b529e99e8a631ad81e0edcba2f30d3b3 | 2,947 | hubitat | Apache License 2.0 |
time/time-impl/src/main/kotlin/com/fondesa/manganow/time/impl/HandlerScheduler.kt | fondesa | 129,605,070 | false | null | /*
* Copyright (c) 2019 Fondesa
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 0 | ccd5a7a7f342bd9b9be54bbedc6cff9545e89c42 | 1,390 | manga-now | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/TheaterComedyOutlined.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/TheaterComedyOutlined")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val TheaterComedyOutlined: SvgIconComponent
| 10 | Kotlin | 145 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 224 | kotlin-wrappers | Apache License 2.0 |
codestream-runtime/src/main/kotlin/io/codestream/runtime/DefaultParameterCallback.kt | jexenberger | 131,731,461 | false | {"Maven POM": 9, "Ignore List": 1, "Markdown": 2, "YAML": 6, "Text": 2, "Kotlin": 322, "Java": 8, "Gradle": 3, "JAR Manifest": 5, "XML": 2, "Batchfile": 1, "Shell": 1, "Groovy": 1} | /*
* 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`](http://www.apache.org/licenses/LICENSE-2.0)
*
... | 1 | null | 1 | 1 | 65bd6bb08e25b1af776f4c6d2dc4ca27e1bb6e78 | 950 | codestreamparent | Apache License 2.0 |
mosaic-runtime/src/commonTest/kotlin/com/jakewharton/mosaic/ui/SpacerTest.kt | JakeWharton | 292,637,686 | false | {"Kotlin": 484366, "C++": 76018, "C": 22353, "Zig": 1779, "Shell": 1034} | package com.jakewharton.mosaic.ui
import assertk.assertThat
import assertk.assertions.isEqualTo
import com.jakewharton.mosaic.Container
import com.jakewharton.mosaic.layout.height
import com.jakewharton.mosaic.layout.size
import com.jakewharton.mosaic.layout.width
import com.jakewharton.mosaic.modifier.Modifier
import... | 27 | Kotlin | 57 | 1,912 | 3574b7b21bdee4f72c9f5b5eef0389cc8f9ddcfa | 3,843 | mosaic | Apache License 2.0 |
HackerRank/src/main/kotlin/The30DaysOfCode/Day00.kt | luisenricke | 174,961,658 | false | null | package The30DaysOfCode
fun main(args: Array<String>) {
println("Hello, World.")
println("Welcome to 30 Days of Code!")
}
| 0 | Kotlin | 0 | 1 | d18e3bda2d401a3fa7371bff0ac65f7c56525857 | 131 | Algorithms | MIT License |
library/src/main/java/com/larryhsiao/aura/phantom/ConstructingFragment.kt | LarryHsiao | 127,721,131 | false | null | package com.larryhsiao.aura.phantom
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.ViewGroup.LayoutParams.MATCH_PARENT
import android.widget.ImageView
import androidx.fragment.app.Fragment
import com.larryhsiao.aura.R
/**
* A pla... | 9 | Kotlin | 2 | 1 | fb00fe41a2b32dbbd9fcc88d0fcd8d531c9b0638 | 828 | Aura | MIT License |
library/jdbc/src/main/kotlin/io/github/ustudiocompany/uframework/jdbc/sql/ParametrizedSql.kt | uStudioCompany | 745,407,841 | false | {"Kotlin": 291784} | package io.github.ustudiocompany.uframework.jdbc.sql
import io.github.ustudiocompany.uframework.jdbc.sql.internal.TypedParameterResolver
public class ParametrizedSql private constructor(
public val value: String,
public val parameters: List<TypedParameter>
) {
public companion object {
public fu... | 0 | Kotlin | 0 | 0 | d1425377bc26e07e864b3f3f25f8ed0b66b11c80 | 1,709 | u-framework | Apache License 2.0 |
app/src/main/java/com/example/bookforum/ui/databaseUi/groupUi/screens/groupsList/GroupsList.kt | KatePril | 783,350,221 | false | {"Kotlin": 303473} | package com.example.bookforum.ui.databaseUi.groupUi.screens.groupsList
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.runtime.Composabl... | 0 | Kotlin | 0 | 0 | bcf718e6dad2bb11cbf5052f9f11f4580e957fba | 1,210 | BookForum1 | MIT License |
analysis/analysis-api/testData/components/resolver/singleByPsi/annotationOnParameter_reified.kt | JetBrains | 3,432,266 | false | null | inline fun <reified T> functionWithParamAnnotation(<expr>@Suppress("s")</expr> t: T): T = t
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 92 | kotlin | Apache License 2.0 |
playerdetail/playerpresentation/src/main/java/it/laface/player/presentation/UIPlayerStats.kt | carlaf92 | 249,497,287 | false | null | package it.laface.player.presentation
import it.laface.player.domain.PlayerStats
class UIPlayerStats(
val nameStringResourceId: Int,
val value: String
)
fun PlayerStats.toUi(): List<UIPlayerStats> =
listOf(
UIPlayerStats(R.string.points_per_game, pointsPerGame),
UIPlayerStats(R.string.reb... | 1 | Kotlin | 0 | 5 | ece5ed250b5f188b985fb546d24981077ef99866 | 426 | nba-app | MIT License |
app/src/main/java/com/unicornio/happyinseat/application/ExternalManagersReadySteps.kt | mylesieong | 518,587,737 | false | {"Kotlin": 100217, "Java": 9052, "JavaScript": 515} | package com.unicornio.happyinseat.application
import android.content.Context
import com.google.android.gms.ads.MobileAds
import com.unicornio.happyinseat.AdManager
import com.unicornio.happyinseat.AnalyticsManager
import dagger.hilt.android.qualifiers.ApplicationContext
import javax.inject.Inject
class ExternalManage... | 42 | Kotlin | 0 | 2 | a51550c358607117544dec3eed1ff9c4b1b065df | 555 | Seated-Exercises-in-Vehicles | MIT License |
app/src/main/java/com/codeskraps/deepcuts/ForegroundService.kt | codeskraps | 744,489,737 | false | {"Kotlin": 33361} | package com.codeskraps.deepcuts
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.app.Service
import android.content.Intent
import android.os.IBinder
import android.util.Log
import androidx.core.app.Notification... | 0 | Kotlin | 0 | 0 | 57dc107b89eecaa1693a2e25f65bb8fbe92e234c | 4,737 | Deepcuts.fm-Android | MIT License |
plugins/kotlin/idea/tests/testData/intentions/declarations/split/anonymousFunction.kt | ingokegel | 72,937,917 | true | null | // AFTER-WARNING: The value 'fun () {<br> }' assigned to 'val f: () -> Unit defined in test' is never used
// AFTER-WARNING: Variable 'f' is assigned but never accessed
fun test() {
<caret>val f = fun () {
}
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 220 | intellij-community | Apache License 2.0 |
app/src/main/java/com/senex/timetable/di/ViewModelModule.kt | Senex-x | 458,101,117 | false | {"Kotlin": 165234} | package com.senex.timetable.di
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.senex.timetable.presentation.ui.groups.GroupsViewModel
import com.senex.timetable.presentation.ui.schedule.ScheduleViewModel
import com.senex.timetable.presentation.ui.settings.SettingsViewModel
im... | 1 | Kotlin | 1 | 7 | d5ce2dbecaa8a8376de2c541ab18ab3901315c1a | 1,038 | itis-timetable | MIT License |
Coolky/app/src/main/java/com/coolteam/coolky/database/DBProvider.kt | mxprshn | 209,725,175 | false | null | package com.coolteam.coolky.database
import android.annotation.SuppressLint
import com.coolteam.coolky.database.models.Ingredient
import com.coolteam.coolky.database.models.Recipe
import com.coolteam.coolky.database.models.RecipeIngredient
import io.realm.Realm
import io.realm.RealmResults
import io.realm.kotlin.oneOf... | 2 | Kotlin | 0 | 1 | 5ba45e337bced943a9b78313634bdd7176d2da79 | 2,804 | coolky | Apache License 2.0 |
feature-staking-impl/src/main/java/jp/co/soramitsu/staking/impl/data/repository/datasource/StakingRewardsDataSource.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.staking.impl.data.repository.datasource
import jp.co.soramitsu.staking.impl.domain.model.TotalReward
import jp.co.soramitsu.runtime.multiNetwork.chain.model.ChainId
import kotlinx.coroutines.flow.Flow
interface StakingRewardsDataSource {
suspend fun totalRewardsFlow(accountAddress: String)... | 15 | null | 30 | 89 | 812c6ed5465d19a0616865cbba3e946d046720a1 | 406 | fearless-Android | Apache License 2.0 |
app/src/main/java/kozelko/me/oeisandroid/model/SearchRepository.kt | RSBat | 176,286,135 | false | null | package kozelko.me.oeisandroid.model
import androidx.lifecycle.LiveData
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import androidx.paging.liveData
import com.squareup.moshi.Moshi
import com.squareup.moshi.adapters.Rfc3339DateJsonAdapter
import java.util.Date
impo... | 5 | Kotlin | 0 | 3 | aa56e4fcdc5563af15d45cb0b6d73470aad85e06 | 1,104 | oeis-android | MIT License |
libraries/tools/kotlin-gradle-plugin-api/src/common/kotlin/org/jetbrains/kotlin/gradle/tasks/CompileUsingKotlinDaemon.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.gradle.tasks
import org.gradle.api.Task
import org.gradle.api.provider.ListPrope... | 154 | null | 5566 | 45,025 | 8a69904d02dd3e40fae5f2a1be4093d44a227788 | 2,491 | kotlin | Apache License 2.0 |
app/src/main/java/org/savit/savitauthenticator/ui/theme/Color.kt | develNerd | 441,734,994 | false | {"Kotlin": 186847, "CMake": 137642, "C++": 115631, "C": 9464} | package org.savit.savitauthenticator.ui.theme
import androidx.compose.ui.graphics.Color
val Green200 = Color(0xFF118F79)
val Green500 = Color(0xFF1A5653)
val Green700 = Color(0xFF457769)
val Teal200 = Color(0xFF03DAC5)
val textColorDark = Color(0xFFD9E6E4)
val Green300 = Color(0xFFC8F3F1)
val Green201 = Color(0xFF98E... | 0 | Kotlin | 0 | 2 | f8856266f20bbbcf233ac34fd200accd2650dc65 | 735 | SavitAuthenticator | MIT License |
src/main/kotlin/com/chesire/benzaiten/routing/CommonErrors.kt | Chesire | 484,189,890 | false | null | package com.chesire.benzaiten.routing
/**
* Provides an [ErrorDomain] for if the spotify token is invalid.
*/
val noTokenError = ErrorDomain(
"No spotify token",
"Please provide the spotify-token header."
)
| 9 | Kotlin | 0 | 1 | 8258737bfbe19954fccf539d5c96f2d91cbc0ea5 | 218 | Benzaiten | Apache License 2.0 |
Geolocator/src/main/java/com/sprotte/geolocator/geofencer/service/GeofenceBootReceiver.kt | exozet | 206,807,992 | false | null | package com.sprotte.geolocator.geofencer.service
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.sprotte.geolocator.utils.log
class GeofenceBootReceiver : BroadcastReceiver() {
override fun onReceive(context: Context?, intent: Intent?) {
lo... | 4 | Kotlin | 23 | 89 | b0e2e184f7ec50ebeb4dec44f2df0610a2673059 | 737 | Geolocator | MIT License |
Conventions/Comparison/src/Task.kt | teaforthecat | 842,981,878 | false | {"Kotlin": 26830} | data class MyDate(val year: Int, val month: Int, val dayOfMonth: Int) : Comparable<MyDate> {
override fun compareTo(b: MyDate): Int {
val y = year.compareTo(b.year)
if ( y != 0 ) return y
val m = month.compareTo(b.month)
if ( m != 0 ) return m
val d = dayOfMonth.compareTo(b.d... | 0 | Kotlin | 0 | 0 | ba3c1e0df68ec972f203b090cc30b539e8ce10ce | 497 | Kotlin_Koans | MIT License |
app/src/main/kotlin/net/yuzumone/twltrus/tdr/fragment/RehabFragment.kt | Kashww | 115,839,474 | true | {"Kotlin": 42286} | package net.yuzumone.twltrus.tdr.fragment
import android.net.Uri
import android.os.Bundle
import android.support.customtabs.CustomTabsIntent
import android.support.v4.app.ListFragment
import android.support.v4.content.ContextCompat
import net.yuzumone.twltrus.tdr.R
import net.yuzumone.twltrus.tdr.adapter.RehabAdapter
... | 0 | Kotlin | 0 | 0 | a0560d080046f55bfde427074db8afc57723d81d | 1,541 | TDR_for_Twltrus | Apache License 2.0 |
server/test/klite/SimpleRegistryTest.kt | codeborne | 432,708,235 | false | {"Kotlin": 308059, "PLpgSQL": 240, "HTML": 54} | package klite
import ch.tutteli.atrium.api.fluent.en_GB.toBeAnInstanceOf
import ch.tutteli.atrium.api.fluent.en_GB.toBeTheInstance
import ch.tutteli.atrium.api.fluent.en_GB.toHaveSize
import ch.tutteli.atrium.api.verbs.expect
import org.junit.jupiter.api.Test
class SimpleRegistryTest {
val registry = SimpleRegistry... | 4 | Kotlin | 13 | 95 | 466a6f0351ef74e1295c0d46dc3b265aa3cf3eb3 | 961 | klite | MIT License |
app/src/main/java/cn/rongcloud/voiceroomdemo/net/api/DownloadFileApiService.kt | iostyle | 396,748,047 | true | {"Kotlin": 403974, "Java": 168868} | /*
* Copyright © 2021 RongCloud. All rights reserved.
*/
package cn.rongcloud.voiceroomdemo.net.api
import io.reactivex.rxjava3.core.Flowable
import okhttp3.ResponseBody
import retrofit2.http.GET
import retrofit2.http.Url
/**
* @author gusd
* @Date 2021/07/11
*/
interface DownloadFileApiService {
@GET
f... | 0 | null | 0 | 0 | 801268cf14a5e1b65f02ad2d4b6a024c213ad05f | 379 | rongcloud-scene-android-demo | MIT License |
app/src/main/java/cn/rongcloud/voiceroomdemo/net/api/DownloadFileApiService.kt | iostyle | 396,748,047 | true | {"Kotlin": 403974, "Java": 168868} | /*
* Copyright © 2021 RongCloud. All rights reserved.
*/
package cn.rongcloud.voiceroomdemo.net.api
import io.reactivex.rxjava3.core.Flowable
import okhttp3.ResponseBody
import retrofit2.http.GET
import retrofit2.http.Url
/**
* @author gusd
* @Date 2021/07/11
*/
interface DownloadFileApiService {
@GET
f... | 0 | null | 0 | 0 | 801268cf14a5e1b65f02ad2d4b6a024c213ad05f | 379 | rongcloud-scene-android-demo | MIT License |
android/app/src/main/java/com/algorand/android/mapper/AccountDisplayNameMapper.kt | perawallet | 364,359,642 | false | {"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596} | /*
* Copyright 2022 Pera Wallet, LDA
* 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 writing,... | 22 | Swift | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 1,192 | pera-wallet | Apache License 2.0 |
sample/src/main/java/co/en/archx/sample/ui/activity/main/list/itemview/FooterItemView.kt | en-archx | 140,067,640 | false | {"Java": 10861} | package co.en.archx.sample.ui.activity.main.list.itemview
import android.content.Context
import android.view.View
import android.widget.FrameLayout
import co.en.archx.sample.R
import co.en.archx.sample.ui.activity.main.MainActivity
import co.en.archx.sample.ui.activity.main.list.RedditListItem
import javax.inject.Inje... | 1 | Java | 1 | 1 | f1d28d17e1c35a4ca6f61b328d6cf4af71654444 | 759 | archx | Apache License 2.0 |
app/src/main/java/com/schedule/data/remote/services/date/IWeekService.kt | FredNekrasov | 760,139,354 | false | {"Kotlin": 109148} | package com.schedule.data.remote.services.date
import com.schedule.data.remote.dtos.date.WeekDto
import retrofit2.http.GET
interface IWeekService {
@GET("/api/Weeks")
suspend fun getData(): List<WeekDto>?
} | 0 | Kotlin | 0 | 0 | 73e90ff38e831c6fbfa175f4e4ffe780ed572500 | 216 | Android-app-for-viewing-schedules | MIT License |
unity_life_android/UnityLife/app/src/main/java/com/example/unitylife/list_adapter/FeedAdapter.kt | siiena25 | 505,861,165 | false | {"Java": 168626, "Kotlin": 106740, "Shell": 5603, "Procfile": 76} | package com.llc.aceplace_ru.list_adapter
import android.view.ViewGroup
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
class FeedAdapter(
private val viewBinders: Map<FeedItemClass, FeedItemBinder>
) : ListAdapter<Any, RecyclerView.ViewHolder>(FeedDiffCallback(... | 1 | null | 1 | 1 | 2cbbbe5648dd84548a8440fe2fe54bcf85d77f0c | 1,422 | unity-life | MIT License |
core/src/main/java/com/loitp/views/treeView/Algorithm.kt | tplloi | 126,578,283 | false | null | package com.loitp.views.treeView
/**
* Created by Loitp on 04,August,2022
* Galaxy One company,
* Vietnam
* +840766040293
* <EMAIL>
*/
interface Algorithm {
fun run(
root: TreeNode?,
size: TreeNodeSize?
)
}
| 1 | null | 1 | 9 | 1bf1d6c0099ae80c5f223065a2bf606a7542c2b9 | 238 | base | Apache License 2.0 |
src/main/kotlin/com/github/dankinsoid/appcodeassets/services/ui/ColorAssetComponent.kt | dankinsoid | 505,212,247 | false | {"Kotlin": 87862} | package com.github.dankinsoid.appcodeassets.services.ui
import com.github.dankinsoid.appcodeassets.models.*
import com.google.gson.GsonBuilder
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.ui.ComboBox
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.ui.ColorPanel... | 0 | Kotlin | 0 | 0 | 69f835a9d670fd1c7aaf1647e742db6f33f1ec96 | 9,552 | AppCodeAssets | Microsoft Public License |
plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/startup/CodeWhispererIntelliSenseAutoTriggerListener.kt | aws | 91,485,909 | false | {"Kotlin": 7507266, "TypeScript": 132101, "C#": 97693, "Vue": 47529, "Java": 19596, "JavaScript": 12450, "HTML": 5878, "Python": 2939, "Shell": 2920, "Dockerfile": 2209, "SCSS": 2045, "CSS": 1827, "PowerShell": 386, "Batchfile": 77} | // Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.codewhisperer.startup
import com.intellij.codeInsight.lookup.Lookup
import com.intellij.codeInsight.lookup.LookupEvent
import com.intellij.codeInsight.look... | 519 | Kotlin | 220 | 757 | a81caf64a293b59056cef3f8a6f1c977be46937e | 2,804 | aws-toolkit-jetbrains | Apache License 2.0 |
v16/src/main/kotlin/com/monta/library/ocpp/v16/core/ChangeAvailability.kt | monta-app | 852,955,703 | false | {"Kotlin": 565115} | package com.monta.library.ocpp.v16.core
import com.monta.library.ocpp.common.profile.Feature
import com.monta.library.ocpp.common.profile.OcppConfirmation
import com.monta.library.ocpp.common.profile.OcppRequest
object ChangeAvailabilityFeature : Feature {
override val name: String = "ChangeAvailability"
over... | 1 | Kotlin | 0 | 0 | cee4e7dd2f624c925918aaa7ecd2a971b75fd614 | 1,739 | library-ocpp | Apache License 2.0 |
src/main/java/lt/markmerkk/mp3cutter/Main.kt | marius-m | 506,928,547 | false | null | package lt.markmerkk.mp3cutter
import com.google.common.base.Preconditions
import kotlinx.cli.ArgParser
import kotlinx.cli.ArgType
import kotlinx.cli.required
import lt.markmerkk.mp3cutter.entities.TrackItem
import org.apache.commons.io.FileUtils
import org.slf4j.LoggerFactory
import org.slf4j.bridge.SLF4JBridgeHandle... | 0 | Kotlin | 0 | 0 | 97b10a969e668742a7b3aa9bb5679bcde10bbcaf | 3,582 | mp3cutter | Apache License 2.0 |
src/main/kotlin/ui/settings/reducer/UpdateCategoryReducer.kt | gmatyszczak | 171,290,380 | false | {"Kotlin": 192668} | package ui.settings.reducer
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.update
import model.CategoryScreenElements
import ui.core.Reducer
import ui.settings.SettingsAction.UpdateCategory
import ui.settings.SettingsState
import javax.inject.Inject
class UpdateCategoryReducer @Inject ... | 6 | Kotlin | 28 | 147 | baf6d12b12c210e835e2513d9e6d6c1e279c8115 | 1,021 | screen-generator-plugin | Apache License 2.0 |
src/main/kotlin/org/gamekins/gumTree/NodeWrapper.kt | jenkinsci | 452,610,454 | false | {"Kotlin": 914430, "JavaScript": 40463, "Java": 2405, "CSS": 1712, "HTML": 777} | package org.gamekins.gumTree
import com.github.javaparser.ast.Modifier
import com.github.javaparser.ast.Node
import com.github.javaparser.ast.expr.*
import com.github.javaparser.ast.type.PrimitiveType
import java.util.*
/**
* A wrapper for the nodes of the ast to work with in the gumTree-algorithm
*
* @author <NAM... | 0 | Kotlin | 3 | 4 | 5ca3967af14b5e85b10a31fecf947967f644542f | 4,546 | gamekins-plugin | Apache License 2.0 |
core/src/jvmMain/kotlin/net/kigawa/mcsm/util/io/BufferedReaderIo.kt | kigawa01 | 705,991,416 | false | {"Kotlin": 52265} | package net.kigawa.mcsm.util.io
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import java.io.BufferedReader
class BufferedReaderIo(
private val bufferedReader: BufferedReader,
) : ReaderIo {
override fun readLine(): String? {
return bufferedReader.readLine()
}
override fun ... | 0 | Kotlin | 0 | 0 | 368f2f611f699cd0cdbb332350da5265537c52f3 | 476 | mcsm | MIT License |
source-downloader-core/src/main/kotlin/xyz/shoaky/sourcedownloader/repo/jpa/ProcessingRecordRepository.kt | shoaky009 | 607,575,763 | false | null | package xyz.shoaky.sourcedownloader.repo.jpa
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Query
interface ProcessingRecordRepository : JpaRepository<ProcessingRecord, Long> {
@Query("SELECT p FROM ProcessingRecord p WHERE p.processorName = ?1 AND p.r... | 1 | Kotlin | 0 | 7 | 5d1a3d0ed55f6f935aeee93e96033fd918eca14c | 667 | source-downloader | Apache License 2.0 |
app/src/main/java/com/twilio/video/app/data/NetworkApiInterface.kt | AsifShaikhAiolos | 329,950,962 | false | {"Gradle": 4, "Markdown": 4, "INI": 3, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 2, "Text": 1, "Java Properties": 2, "XML": 130, "Proguard": 2, "Kotlin": 133, "JSON": 1, "Java": 70} | package com.aiolos.solutions.doctorconsult.data
interface NetworkApiInterface {
} | 1 | null | 1 | 1 | ae1a526625c923d9931522a074509c8559d8677c | 82 | DoctorApp | Apache License 2.0 |
Collections/Fold/src/Task.kt | AyumuOno | 261,934,360 | false | null | // Return the set of products that were ordered by all customers
fun Shop.getProductsOrderedByAll(): Set<Product> {
val allOrdered = customers.flatMap { it.getOrderedProducts() }.toSet()
return customers.fold(allOrdered, { orderdAcc, customer ->
orderdAcc.intersect(customer.orders.flatMap { it.products... | 0 | Kotlin | 0 | 0 | 77fad1ae336e8854700404df7f6b38000d1768ed | 497 | koans | MIT License |
plugins/performanceTesting/commands-model/src/com/intellij/tools/ide/performanceTesting/commands/dto/BuildType.kt | JetBrains | 2,489,216 | false | null | package com.intellij.tools.ide.performanceTesting.commands.dto
enum class BuildType {
MAVEN,
GRADLE
} | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 106 | intellij-community | Apache License 2.0 |
app/src/main/java/io/github/lordraydenmk/superheroesapp/common/flow.kt | android-architectureer | 410,450,704 | true | {"Kotlin": 77221} | package io.github.lordraydenmk.superheroesapp.common
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.asSharedFlow
import kotlinx.corou... | 0 | null | 0 | 0 | 65fa04506e3603595e347d30d0dd32e585dc5e0a | 1,000 | SuperheroesAndroid | MIT License |
app/src/main/java/kr/alpha93/justgrayscale/ui/elements/SecureSettingsSection.kt | AlphaLabortary | 732,664,015 | false | {"Kotlin": 49343} | package kr.alpha93.justgrayscale.ui.elements
import android.Manifest
import android.app.Service
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import androidx.compose.animation.animateContentS... | 0 | Kotlin | 0 | 0 | 8cf830532a137a80b0dcae44997fe4fb1bbc4fee | 8,672 | JustGrayscale | MIT License |
buildSrc/src/main/kotlin/Version.kt | beomjo | 388,829,504 | false | null | /*
* Designed and developed by 2021 beomjo
*
* 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 agr... | 2 | Kotlin | 1 | 2 | 8f4ad1d4b769fee069d5d4ed7f8bf3d00ee032f9 | 1,219 | kakao-search | Apache License 2.0 |
baselib/src/main/java/com/qisan/baselib/widget/verticaltablayout/widget/TabBadgeView.kt | Jeremyzwc | 493,134,082 | false | {"Kotlin": 298769} | package com.qisan.baselib.widget.verticaltablayout.widget
import android.content.Context
import android.view.ViewGroup
import android.widget.FrameLayout
import q.rorbin.badgeview.QBadgeView
/**
* Created by QiSan 2022/6/18
* package com.qisan.wanandroid.widget.verticaltablayout.widget
*/
class TabBadgeView(context... | 0 | Kotlin | 11 | 74 | 785edb5d407fb845fbeab049e3f8542e6fc7cdce | 1,866 | WanAndroidAppKotlinMVVM | Apache License 2.0 |
core/core-domain/src/main/java/com/chungha/core_domain/repository/PreviewRepository.kt | hoangchungk53qx1 | 607,042,483 | false | null | package com.chungha.core_domain.repository
import com.chungha.core_domain.model.MovieDetailModel
interface PreviewRepository {
suspend fun getMovieById(id : Int) : MovieDetailModel
} | 11 | Kotlin | 2 | 10 | a82a7e29e52e7a97e5e51693d5eaf626f3db68f7 | 189 | movie-preview | Apache License 2.0 |
begginer/app/src/main/java/com/example/jetpackcompose/components/CredentialInput.kt | Triunvir4to | 829,130,872 | false | {"Kotlin": 121321} | package com.example.jetpackcompose.components
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.OutlinedTextField
import androidx.compose.material3... | 0 | Kotlin | 0 | 0 | d794ec96b889f1dde8bcfd76aa779d72aabf9c7c | 2,617 | Android | MIT License |
app/src/main/java/eu/kanade/presentation/category/components/sources/SourceCategoryContent.kt | Hero-Over | 515,433,181 | false | null | package eu.kanade.presentation.category.components.sources
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.runtime.Composable
... | 0 | Kotlin | 0 | 4 | 233853823f45ddb7c11e0ce7f1feef3e7e7fc6b7 | 999 | TachiyomiSY | Apache License 2.0 |
sample/js-browser/src/main/kotlin/Main.kt | palacera | 657,367,239 | false | null | package com.palacera.kmplib.logger.jsBrowser
import com.palacera.kmplib.logger.Log
import com.palacera.kmplib.logger.d
import com.palacera.kmplib.logger.e
import com.palacera.kmplib.logger.i
import com.palacera.kmplib.logger.v
import com.palacera.kmplib.logger.w
import com.palacera.kmplib.logger.wtf
import kotlinx.bro... | 0 | Kotlin | 0 | 0 | 19ceaa830d8ee06db11281ef75b0acd208065bab | 733 | kotlin-multiplatform-library-logger | Apache License 2.0 |
src/main/kotlin/me/kenzierocks/mcpide/comms/ModelMessage.kt | octylFractal | 78,144,610 | false | {"Kotlin": 385189, "CSS": 4823, "Shell": 823} | /*
* This file is part of MCPIDE, licensed under the MIT License (MIT).
*
* Copyright (c) kenzierocks <https://kenzierocks.me>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to d... | 1 | Kotlin | 1 | 3 | 17706c87052fd64c663894658fe8a4605e6a8485 | 3,677 | MCPIDE | MIT License |
src/main/kotlin/nassermohamedit/jnote/api/UserResource.kt | nassermohamedit | 827,397,757 | false | {"Kotlin": 43367} | package nassermohamedit.jnote.api
import jakarta.annotation.security.PermitAll
import jakarta.annotation.security.RolesAllowed
import jakarta.inject.Inject
import jakarta.ws.rs.*
import jakarta.ws.rs.core.MediaType
import nassermohamedit.jnote.dto.UserDto
import nassermohamedit.jnote.entity.User
import nassermohamedit... | 0 | Kotlin | 0 | 0 | cb6c7b69de04dcc5a911514eaeb498263714b77d | 1,696 | jnote | MIT License |
airbyte-config/config-models/src/main/kotlin/io/airbyte/config/helpers/CloudLogs.kt | airbytehq | 592,970,656 | false | {"Java": 8945405, "TypeScript": 3421637, "Kotlin": 2363974, "SCSS": 210524, "Shell": 104770, "Go": 75919, "Smarty": 65320, "JavaScript": 39495, "Mustache": 34756, "Python": 29918, "FreeMarker": 16959, "CSS": 12775, "Dockerfile": 12387, "MDX": 7660, "HCL": 6908, "Makefile": 3958, "HTML": 3954, "Starlark": 2962, "Groovy"... | package io.airbyte.config.helpers
import io.airbyte.config.storage.DefaultGcsClientFactory
import io.airbyte.config.storage.DefaultS3ClientFactory
import io.airbyte.config.storage.GcsStorageConfig
import io.airbyte.config.storage.MinioS3ClientFactory
import io.airbyte.config.storage.MinioStorageConfig
import io.airbyt... | 48 | Java | 218 | 183 | 0b78462bf3b22156b5649847727042c1dc3fe1e8 | 1,773 | airbyte-platform | MIT License |
airbyte-config/config-models/src/main/kotlin/io/airbyte/config/helpers/CloudLogs.kt | airbytehq | 592,970,656 | false | {"Java": 8945405, "TypeScript": 3421637, "Kotlin": 2363974, "SCSS": 210524, "Shell": 104770, "Go": 75919, "Smarty": 65320, "JavaScript": 39495, "Mustache": 34756, "Python": 29918, "FreeMarker": 16959, "CSS": 12775, "Dockerfile": 12387, "MDX": 7660, "HCL": 6908, "Makefile": 3958, "HTML": 3954, "Starlark": 2962, "Groovy"... | package io.airbyte.config.helpers
import io.airbyte.config.storage.DefaultGcsClientFactory
import io.airbyte.config.storage.DefaultS3ClientFactory
import io.airbyte.config.storage.GcsStorageConfig
import io.airbyte.config.storage.MinioS3ClientFactory
import io.airbyte.config.storage.MinioStorageConfig
import io.airbyt... | 48 | Java | 218 | 183 | 0b78462bf3b22156b5649847727042c1dc3fe1e8 | 1,773 | airbyte-platform | MIT License |
app/src/main/java/com/phaggu/filetracker/barcodescanner/BarcodeScannerViewModelFactory.kt | DepPhil | 317,257,300 | false | null | package com.phaggu.filetracker.barcodescanner
import android.app.Application
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
class BarcodeScannerViewModelFactory(
private val application: Application
): ViewModelProvider.Factory {
@Suppress("unchecked_cast")
override fun <T... | 0 | Kotlin | 0 | 0 | cfc448a02d1d6444f1df4c1767bae9d4e036ac83 | 593 | File-Tracker | MIT License |
kotlin-blueprintjs-core/src/jsMain/kotlin/blueprintjs/core/blueprintjsHelpers.kt | joffrey-bion | 265,859,596 | false | {"Kotlin": 144610} | package blueprintjs.core
import react.*
val BpButton = Button
val BpButtonGroup = ButtonGroup
val BpCallout = Callout::class.react
val BpCard = Card
val BpDialog = Dialog::class.react
val BpDialogBody = DialogBody::class.react
val BpDialogFooter = DialogFooter::class.react
val BpDivider = Divider::class.react
val BpH... | 2 | Kotlin | 1 | 2 | bf48e09b7a5c56038fdf2759818a0dee5e9582ec | 1,623 | kotlin-blueprintjs | MIT License |
src/main/kotlin/no/njoh/pulseengine/data/FocusArea.kt | NiklasJohansen | 239,208,354 | false | null | package no.njoh.pulseengine.core.input
data class FocusArea(var x0: Float, var y0: Float, var x1: Float, var y1: Float)
{
val height: Float
get() = y1 - y0
val width: Float
get() = x1 - x0
fun update(x0: Float, y0: Float, x1: Float, y1: Float)
{
this.x0 = x0
this.y0 = ... | 0 | Kotlin | 0 | 0 | d2c0d09732fed1f2221ee17e5a28f0e50857b333 | 470 | PulseEngine | MIT License |
src/main/kotlin/org/move/ide/formatter/settings/MoveCodeStyleMainPanel.kt | pontem-network | 279,299,159 | false | {"Kotlin": 2194717, "Move": 40802, "Lex": 5547, "HTML": 1941, "Java": 1275} | package org.move.ide.formatter.settings
import com.intellij.application.options.TabbedLanguageCodeStylePanel
import com.intellij.psi.codeStyle.CodeStyleSettings
import org.move.lang.MoveLanguage
class MoveCodeStyleMainPanel(currentSettings: CodeStyleSettings, settings: CodeStyleSettings) :
TabbedLanguageCodeStyle... | 3 | Kotlin | 29 | 69 | d9950d24e9d5733c4e8aee0e0b41f6269b150a63 | 587 | intellij-move | MIT License |
src/main/kotlin/com/theendercore/npctrader/screen/widgets/TradeGridWidget.kt | theendercore | 575,087,171 | false | null | package com.theendercore.npctrader.screen.widgets
import com.mojang.blaze3d.systems.RenderSystem
import com.theendercore.npctrader.data.interactions.trades.Trade
import com.theendercore.npctrader.screen.components.TradeButton
import com.theendercore.npctrader.screen.widgets.TradeGridWidget.TradeButtonRowEntry
import d... | 0 | Kotlin | 0 | 0 | 1dea3115347f68721a65e09cec3cb5448cbc2899 | 2,710 | NPCTraderMod | MIT License |
src/main/kotlin/fetchers/ShikiFetcher.kt | nunsez | 648,148,278 | false | null | package com.example.anidiff_jvm.fetchers
import com.example.anidiff_jvm.entities.ShikiAnimeEntity
import com.example.anidiff_jvm.settings.Settings
import com.example.anidiff_jvm.entities.ShikiMangaEntity
import com.example.anidiff_jvm.settings.ShikiSettings
import io.ktor.client.*
import io.ktor.client.call.*
import i... | 0 | Kotlin | 0 | 0 | e13feb54459e4ac533d0e115bbfc49cd7e562241 | 791 | anidiff_jvm | Apache License 2.0 |
ui-list/src/main/java/com/suleymancelik/github/ui/list/ui/RepoListFragment.kt | suleymanccelik | 315,060,941 | false | null | package com.suleymancelik.github.ui.list.ui
import android.content.Context
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.View
import androidx.core.os.bundleOf
import androidx.core.widget.doAfterTextChanged
import androidx.navigation.fragment.findNavController
import co... | 0 | Kotlin | 0 | 0 | 658bb1d0a65fe4b1c60810c20c0b164fc61019dd | 7,071 | RepoList | Apache License 2.0 |
app/src/main/java/com/jshvarts/notespaging/presentation/notelist/NoteAdapter.kt | jshvarts | 149,038,970 | false | null | package com.jshvarts.notespaging.presentation.notelist
import android.support.v7.util.DiffUtil.calculateDiff
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.TextView
import com.jshvarts.notespaging.R
import com.jshvarts.notespaging.do... | 3 | Kotlin | 20 | 144 | d89f0fed222f6673db078fb48d83e8402c4df48e | 1,653 | PagingRoom | Apache License 2.0 |
simple-microservice/src/test/kotlin/org/learning/by/example/spring/kube/playground/simple/microservice/SimpleHandlerTest.kt | LearningByExample | 121,017,872 | false | null | package org.learning.by.example.spring.kube.playground.simple.microservice
import com.nhaarman.mockito_kotlin.doReturn
import com.nhaarman.mockito_kotlin.reset
import com.nhaarman.mockito_kotlin.whenever
import org.amshove.kluent.`should equal to`
import org.amshove.kluent.mock
import org.junit.Test
import org.junit.r... | 2 | Kotlin | 0 | 7 | c22abd50687657ab8210c2baacec4284a82ca22e | 1,376 | spring-kube-playground | MIT License |
src/main/kotlin/no/nav/syfo/domain/PersonIdentNumber.kt | navikt | 162,450,971 | false | null | package no.nav.syfo.domain
data class Fodselsnummer(val value: String) {
private val elevenDigits = Regex("^\\d{11}\$")
init {
if (!elevenDigits.matches(value)) {
throw IllegalArgumentException("$value is not a valid Fodselsnummer")
}
}
}
| 0 | Kotlin | 0 | 0 | d0d989fe4703c37f0cf37502ba0639ceeb4e2516 | 281 | syfomoteadmin | MIT License |
app/src/main/java/id/fathonyfath/githubtrending/data/source/remote/RemoteGithubDataSource.kt | fathonyfath | 212,020,598 | false | {"Kotlin": 50477} | package id.fathonyfath.githubtrending.data.source.remote
import id.fathonyfath.githubtrending.core.RepositoryResponseToRepositoryMapper
import id.fathonyfath.githubtrending.core.mapUsing
import id.fathonyfath.githubtrending.data.cache.RepositoriesCache
import id.fathonyfath.githubtrending.data.source.GithubDataSource
... | 0 | Kotlin | 0 | 0 | e55617c645fd287f1c0056d153f41d19d41f051a | 1,226 | github-trending | MIT License |
kotlin/src/src/main/java/com/techlabcamp/neuronet/ui/frag/FinancialSalesFrag.kt | dimske-sys | 610,048,630 | false | null | package com.techlabcamp.neuronet.ui.frag
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.techlabcamp.neuronet.R
import com.techlabcamp.neuronet.databinding.EmptyStateBinding
import com.techlabcamp.neuron... | 0 | Kotlin | 0 | 0 | 0f4cc0534a3c77a8edfb0fa043fb2ed7e2707250 | 2,890 | neuronet | Apache License 2.0 |
json-builder/kotlin/src/generated/kotlin/divkit/dsl/EvaluableType.kt | divkit | 523,491,444 | false | {"Kotlin": 7327303, "Swift": 5164616, "Svelte": 1148832, "TypeScript": 912803, "Dart": 630920, "Python": 536031, "Java": 507940, "JavaScript": 152546, "CSS": 37870, "HTML": 23434, "C++": 20911, "CMake": 18677, "Shell": 8895, "PEG.js": 7210, "Ruby": 3723, "C": 1425, "Objective-C": 38} | @file:Suppress(
"unused",
"UNUSED_PARAMETER",
)
package divkit.dsl
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonValue
import divkit.dsl.annotation.*
import divkit.dsl.core.*
import divkit.dsl.scope.*
import... | 5 | Kotlin | 128 | 2,240 | dd102394ed7b240ace9eaef9228567f98e54d9cf | 708 | divkit | Apache License 2.0 |
app/src/main/java/com/example/gocut/ui/theme/Type.kt | haircut-reservation | 520,370,510 | false | null | package com.example.gocut.ui.theme
import androidx.compose.material.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
import com.example.gocut.... | 0 | Kotlin | 0 | 0 | 468328337d16444ab13a5f44395a3df673b40512 | 1,551 | AndroidClient | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.