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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
examples/Ping/ping/src/main/java/com/storyteller_f/ping/WallpaperListFragment.kt | storytellerF | 576,917,592 | false | null | package com.storyteller_f.ping
import android.app.Activity
import android.app.WallpaperManager
import android.content.ComponentName
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.HapticFeedbackConstants
import android.view.View
import androidx.activity.result.contrac... | 3 | Kotlin | 0 | 2 | 59963efa3791c18f4bca85dcf2730269045fb63d | 5,153 | common-ui-list-structure | MIT License |
examples/Ping/ping/src/main/java/com/storyteller_f/ping/WallpaperListFragment.kt | storytellerF | 576,917,592 | false | null | package com.storyteller_f.ping
import android.app.Activity
import android.app.WallpaperManager
import android.content.ComponentName
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.HapticFeedbackConstants
import android.view.View
import androidx.activity.result.contrac... | 3 | Kotlin | 0 | 2 | 59963efa3791c18f4bca85dcf2730269045fb63d | 5,153 | common-ui-list-structure | MIT License |
build-logic/src/main/kotlin/io/github/droidkaigi/confsched2023/primitive/KmpAndroidHiltPlugin.kt | DroidKaigi | 622,108,841 | false | null | package io.github.droidkaigi.confsched2023.primitive
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.internal.artifacts.dependencies.DefaultExternalModuleDependency
import org.gradle.kotlin.dsl.get
@Suppress("unused")
class KmpAndroidHiltPlugin : Plugin<Project> {
override fun app... | 59 | null | 207 | 626 | f255ed2f6f07f9f6f83bc3b15384b9bcf001d8e8 | 1,423 | conference-app-2023 | Apache License 2.0 |
MyApplication/app/src/main/java/com/example/myapplication/utils/NetworkLiveData.kt | btLong402 | 739,641,082 | false | {"Kotlin": 31503} | package com.example.myapplication.utils
import android.content.Context
import android.net.ConnectivityManager
import android.net.Network
import android.net.NetworkRequest
import androidx.lifecycle.LiveData
class NetworkLiveData(context: Context) : LiveData<Boolean>() {
private val connectivityManager = context.g... | 0 | Kotlin | 0 | 0 | 2b63fc0a9c420b81c68474d02f6a28e5b2639177 | 1,005 | Kotlin-TodoApp | Apache License 2.0 |
app/src/main/java/com/copticomm/yunweibao/common/communication/command/WrapCommand.kt | delikely | 202,367,753 | true | {"Kotlin": 191673} | package com.copticomm.yunweibao.common.communication.command
import com.copticomm.yunweibao.common.communication.message.Message
/**
* 包裹命令
*
* @param command 真正与硬件进行交互的命令
* @param description 命令描述,用于错误提示
* @param hasResult 是否有返回值
* @param delay 超时时长(毫秒)
*/
class WrapCommand(val command: Command,
... | 0 | Kotlin | 0 | 1 | 7c438d5312d06f22defc122fcf217b3767edb685 | 1,104 | yunweibao | Apache License 2.0 |
app/src/main/java/com/wardellbagby/sensordisabler/views/Conversions.kt | wardellbagby | 20,633,743 | false | null | package com.wardellbagby.sensordisabler.views
import android.content.res.Resources
val Int.dp: Int
get() = (this * Resources.getSystem().displayMetrics.density).toInt() | 0 | Kotlin | 16 | 39 | ac2dda13bea421be2bf1bd2715e02de54a5ffdf9 | 172 | sensor-disabler | MIT License |
src/main/kotlin/com/example/rx/RxApplication.kt | joshlong-attic | 346,906,376 | false | {"Kotlin": 2768, "HTML": 384} | package com.example.rx
import com.fasterxml.jackson.databind.ObjectMapper
import kotlinx.coroutines.reactive.asFlow
import org.springframework.boot.ApplicationRunner
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.context.sup... | 0 | Kotlin | 0 | 2 | 120b9f5fc6d269b895d6666f6c642e43b3bafcd0 | 2,570 | rx-kotlin-native | Apache License 2.0 |
app/src/main/java/com/tktkokym/currencyviewer/room/CurrencyBaseTable.kt | TktkOkym | 205,659,017 | false | null | package com.tktkokym.currencyviewer.room
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "currency_table")
data class CurrencyBaseTable(
@PrimaryKey
val base: String,
val timestamp: Long,
val rates: Map<String, Double>
) | 0 | Kotlin | 0 | 0 | 78235ce1e09a9a93becca33232e48b49ead31e43 | 270 | CurrencyViewer | Apache License 2.0 |
src/test/kotlin/g1101_1200/s1156_swap_for_longest_repeated_character_substring/SolutionTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4909193, "TypeScript": 50446, "Python": 3646, "Shell": 994} | package g1101_1200.s1156_swap_for_longest_repeated_character_substring
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
internal class SolutionTest {
@Test
fun maxRepOpt1() {
assertThat(Solution().maxRepOpt1("ababa"), equalTo(3))
... | 0 | Kotlin | 20 | 43 | 62708bc4d70ca2bfb6942e4bbfb4c64641e598e8 | 537 | LeetCode-in-Kotlin | MIT License |
base/src/main/java/com/github/libliboom/epubviewer/app/mvi/BaseStoreFactory.kt | libliboom | 258,487,396 | false | null | package com.github.libliboom.epubviewer.app.mvi
class BaseStoreFactory : StoreFactory {
override fun <Action, State, Result : Any> create(
name: String?,
initialState: State,
bootstrapper: Bootstrapper<Action>?,
middlewareFactory: () -> Middleware<Action, State, Result>,
reducer: Reducer<State, ... | 5 | Kotlin | 0 | 7 | 1e145f072d8087235361af8b291a9fb54eab093e | 513 | Epub-Viewer-Android | MIT License |
src/main/kotlin/com/tutorial/demo/convertor/FooConverter.kt | Treeeet | 516,060,515 | false | null | package com.tutorial.demo.convertor
import com.tutorial.demo.model.foo.FooEntity
import com.tutorial.demo.model.foo.Response.FooGetResponse
import org.springframework.stereotype.Component
@Component
class FooConverter {
fun createGetResponses(fooEntities: List<FooEntity>): List<FooGetResponse> {
var resu... | 0 | Kotlin | 0 | 0 | f691129dc90716acf3007db973d42d04d03e5bab | 675 | demo | MIT License |
project/app-infrastructure/src/main/java/mobi/lab/sample/infrastructure/common/http/RetrofitFactory.kt | siretjorro | 736,287,100 | false | {"Kotlin": 139934} | package mobi.lab.sample.infrastructure.common.http
import okhttp3.OkHttpClient
import retrofit2.Retrofit
class RetrofitFactory(private val errorTransformer: ErrorTransformer) {
fun newInstance(
baseUrl: String,
httpClient: OkHttpClient,
converterFactoryProvider: RetrofitConverterFactoryPr... | 2 | Kotlin | 0 | 0 | ae51ebd2c7aa75808672880c56278ca16c3ccce9 | 657 | throwable-test | MIT License |
src/main/kotlin/no/nav/helse/spion/web/dto/validation/CustomValiktorConstraints.kt | navikt | 219,727,169 | false | null | package no.nav.helse.spion.web.dto.validation
import org.valiktor.Constraint
import org.valiktor.Validator
interface CustomConstraint : Constraint {
override val messageBundle: String
get() = "validation/validation-messages"
}
class IdentitetsnummerConstraint : CustomConstraint
fun <E> Validator<E>.Pro... | 7 | null | 1 | 1 | a45ed814dc60be520a538263515b5f2f71b5cf95 | 678 | helse-spion | MIT License |
modules/ripple/src/main/kotlin/com/r3/corda/finance/ripple/utilities/SerializationUtils.kt | MasashiSalvador57f | 220,960,397 | true | {"Kotlin": 195595} | package com.r3.corda.finance.ripple.utilities
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.registerKotlinModule
import com.r3.corda.finance.ripple.types.ResultObject
val mapper = ObjectMapper().registerKotlinModule()
inline fun <reified T : ResultObject> deserialize(r... | 0 | null | 0 | 0 | b1a667fbad17666ef56862b00d5b16a460ad2b5c | 396 | corda-settler | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/CameraSecurity.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,667 | icons | MIT License |
processing-status-notifications-fa/src/test/kotlin/cache/InMemoryCacheServiceTest.kt | CDCgov | 679,761,337 | false | {"Kotlin": 536104, "Java": 30754, "Python": 12702, "TypeScript": 7647, "JavaScript": 2382} | package cache
import gov.cdc.ocio.cache.InMemoryCacheService
import gov.cdc.ocio.exception.BadStateException
import gov.cdc.ocio.model.http.SubscriptionType
import org.testng.Assert.*
import org.testng.annotations.Test
class InMemoryCacheServiceTest {
private var inMemoryCacheService: InMemoryCacheService = InMe... | 3 | Kotlin | 0 | 1 | fb9b66269dd8887ac0cec9190941a220eac01ccf | 2,900 | data-exchange-processing-status | Apache License 2.0 |
src/main/kotlin/com/statsradio/tracing/sentry/SentryTrace.kt | statsradio | 205,160,037 | false | null | package com.statsradio.tracing.sentry
import com.statsradio.tracing.Trace
import io.sentry.context.Context
import io.sentry.event.Breadcrumb
import io.sentry.event.BreadcrumbBuilder
import java.time.Instant
import java.util.*
data class SentryTrace(
private val context: Context,
private val message: String,
... | 6 | null | 1 | 2 | df694704ffa1b704207d18596fc7d889ccabf49d | 1,484 | aws-lambda4j | MIT License |
shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/feeds/ui/expanded/SourcesAll.kt | msasikanth | 632,826,313 | false | {"Kotlin": 858776, "Swift": 8517, "JavaScript": 3432, "CSS": 947, "Shell": 227} | /*
* Copyright 2024 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 35 | Kotlin | 72 | 1,713 | e7b3f1057d8295e1d83a041df68aec7bfefcd6e8 | 10,501 | twine | Apache License 2.0 |
server/src/main/kotlin/com/espero/yaade/Main.kt | EsperoTech | 471,369,341 | false | {"TypeScript": 230384, "Kotlin": 102164, "CSS": 57186, "Java": 29150, "JavaScript": 14758, "HTML": 741, "Shell": 619, "Dockerfile": 154} | package com.espero.yaade
import com.espero.yaade.init.createDaoManager
import com.espero.yaade.model.db.CollectionDb
import com.espero.yaade.model.db.ConfigDb
import com.espero.yaade.server.Server
import io.vertx.core.Vertx
import io.vertx.core.json.JsonObject
val PORT = System.getenv("YAADE_PORT")?.toInt() ?: 9339
v... | 21 | TypeScript | 57 | 1,398 | 5546fe46fd3acf41072b975152f37289ccc6ef3d | 824 | yaade | MIT License |
common/initializers/src/main/java/com/bwaim/initializers/RemoteCrashKeys.kt | Bwaim | 407,897,383 | false | {"Kotlin": 54155} | package com.bwaim.initializers
internal object RemoteCrashKeys {
const val KEY_PRIORITY = "priority"
const val KEY_TAG = "tag"
const val KEY_MESSAGE = "message"
}
| 0 | Kotlin | 0 | 9 | 92cc40b48d30ba64760bb17c90ed8e781a7cae86 | 176 | android-skeleton | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/kinesisfirehose/CfnDeliveryStreamCopyCommandPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.kinesisfirehose
import cloudshift.awscdk.common.CdkDslMarker
i... | 4 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 2,399 | awscdk-dsl-kotlin | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/kinesisfirehose/CfnDeliveryStreamCopyCommandPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.kinesisfirehose
import cloudshift.awscdk.common.CdkDslMarker
i... | 4 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 2,399 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/com/github/leonardoz/kanbapp/view/viewmodel/ColumnViewModel.kt | LeonardoZ | 161,324,422 | false | null | package com.github.leonardoz.kanbapp.view.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.github.leonardoz.kanbapp.data.entity.Board
import com.github.leonardoz.kanbapp.data.entity.Column
imp... | 0 | Kotlin | 0 | 0 | 55715f293518fc6b4a0bf839238629cbca134807 | 881 | kanbapp | MIT License |
src/main/kotlin/bgp/notifications/NotificationListeners.kt | FAWC438 | 443,940,908 | false | {"Kotlin": 185867} | package bgp.notifications
/**
* [ExportListener] 侦听 [ExportNotification]。
*
*/
interface ExportListener {
/**
* 发出出口通知时调用。
*/
fun onExport(notification: ExportNotification)
}
/**
* [LearnListener] 监听 [LearnNotification]。
*
*/
interface LearnListener {
/**
* 在发出学习通知时调用。
*/
f... | 0 | Kotlin | 0 | 3 | 8a1f75ee37535ba87d98c3e0fe93d79e5fb83c38 | 711 | BGP-ASPA | MIT License |
fetcher/base-fetcher/src/test/kotlin/it/skrape/fetcher/ScraperTest.kt | skrapeit | 165,720,614 | false | {"Kotlin": 358229, "HTML": 8217} | package it.skrape.fetcher
import Testcontainer
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import setupStub
private val wiremock = Testcontainer.wiremock
class ScraperTest {
@Test
@Disabled("need to mock HttpFetcher")
fun `can scrape directly with default options`() {
... | 30 | Kotlin | 58 | 793 | 0cf3e5c2f5322deabf28c5872624d2f876d321c7 | 966 | skrape.it | MIT License |
src/main/kotlin/driver/tools/GuiStreams.kt | DEIS-Tools | 553,528,774 | false | null | package driver.tools
import java.io.InputStream
import java.io.OutputStream
data class GuiStreams(val input: InputStream, val output: OutputStream, val error: OutputStream) | 0 | Kotlin | 0 | 0 | c21f18c71352c2b7ed33c80a4a9b9e7fd6bc1718 | 174 | UPPAAL-ProtoSugar | MIT License |
app/src/test/java/com/hacybeyker/movieoh/domain/usecase/SimilarUseCaseTest.kt | Hacybeyker | 469,929,594 | false | null | package com.hacybeyker.movieoh.domain.usecase
import com.hacybeyker.movieoh.domain.entity.MovieEntity
import com.hacybeyker.movieoh.domain.repository.SimilarRepository
import com.hacybeyker.movieoh.utils.TestCoroutineRule
import kotlinx.coroutines.ExperimentalCoroutinesApi
import org.junit.Assert.assertNotNull
import ... | 0 | Kotlin | 0 | 0 | 83b4477cb731ee94476e330f002844edc1df6b3b | 1,417 | MovieOh | Apache License 2.0 |
app/src/main/java/com/nhnextsoft/qrcode/ui/splash/SplashActivity.kt | nts6920 | 497,127,126 | false | {"Kotlin": 227192, "Java": 3990} | package com.nhnextsoft.qrcode.ui.splash
import android.os.Bundle
import android.os.CountDownTimer
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.animation.ExperimentalAnimationApi
import com.nhnextsoft.qrcode.R
import com.nhnextsoft.qrcode.ui.feature.entry.QrEntryPointCodeActivity
class Splas... | 0 | Kotlin | 0 | 0 | 9c114c13cb5c581b86bfb3eb0b20af432a93d62e | 954 | QrCode | Apache License 2.0 |
StoryApp/app/src/main/java/com/wororn/storyapp/interfaces/setmodes/ModesActivity.kt | wororn | 663,959,996 | false | null | package com.wororn.storyapp.interfaces.setmodes
import android.annotation.SuppressLint
import android.os.Bundle
import android.widget.CompoundButton
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.lifecycle.ViewModelProvider
import com.google.android.mate... | 0 | Kotlin | 0 | 0 | 55ed2f2af7a44c64a3c0db7a65733685689e35c1 | 1,805 | android-intermediate-I | MIT License |
app/src/main/java/com/erick/herrera/shoppinglist/ui/ShoppingViewModel.kt | erickahr86 | 789,259,386 | false | {"Kotlin": 41158} | package com.erick.herrera.shoppinglist.ui
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.erick.herrera.shoppinglist.data.local.ShoppingItem
import com.erick.herrera.shoppinglist.data.remote.responses.I... | 0 | Kotlin | 0 | 0 | b703751b5f4146213e7ee20b14dacc3b46823e4c | 4,086 | ShoppingList | MIT License |
app/src/main/kotlin/pro/krit/fmpdaoexample/daos/IZtMp08Dao.kt | Rasalexman | 469,790,371 | false | null | package pro.krit.fmpdaoexample.daos
import com.mobrun.plugin.models.StatusSelectTable
import pro.krit.fmpdaoexample.models.ZtMp08Entity
import pro.krit.generated.request.ZtMp08RequestEtDataModel
import pro.krit.hhivecore.annotations.FmpLocalDao
import pro.krit.hhivecore.base.IDao
@FmpLocalDao(
resourceName = "zs_... | 1 | Kotlin | 1 | 0 | 1a4de1e7704f643ca90fc336aa4b2f8c14b95b68 | 496 | FmpDao | Apache License 2.0 |
src/main/kotlin/edu/kit/compiler/backend/register/calls/X64ABICallingConvention.kt | compilerpraktikum | 418,499,542 | false | {"Kotlin": 669262, "Dockerfile": 817, "Shell": 718, "C": 306} | @file:Suppress("DuplicatedCode")
package edu.kit.compiler.backend.register.calls
import edu.kit.compiler.backend.molkir.Width
import edu.kit.compiler.backend.register.EnumRegister
import edu.kit.compiler.backend.register.PlatformInstruction
import edu.kit.compiler.backend.register.PlatformTarget
import edu.kit.compil... | 4 | Kotlin | 1 | 3 | adac6790a5c43a7748d82c8be2284b871c898aea | 10,606 | compiler | MIT License |
nebulosa-wcs/src/main/kotlin/nebulosa/wcs/projection/AbstractProjection.kt | tiagohm | 568,578,345 | false | null | package nebulosa.wcs.projection
import nebulosa.constants.PIOVERTWO
import nebulosa.constants.TAU
import nebulosa.math.Angle
import nebulosa.math.Angle.Companion.rad
import nebulosa.math.PairOfAngle
import kotlin.math.*
abstract class AbstractProjection : Projection {
internal var celestialCoordinateNativePole =... | 2 | Kotlin | 0 | 2 | 9ccdfa8049d8ff034d282c065e71aec1a6ea6ab8 | 6,693 | nebulosa | MIT License |
src/main/kotlin/VKApi.kt | kechinvv | 565,257,841 | false | {"Kotlin": 13086, "Dockerfile": 266} | import com.google.gson.JsonObject
import com.google.gson.JsonParser
import khttp.extensions.fileLike
import khttp.get
import khttp.post
import kotlinx.coroutines.delay
import java.io.File
class VKApi() {
private val vkUrl = "https://api.vk.com/method/asr."
fun getUploadUrl(token: String): String {
val... | 0 | Kotlin | 0 | 0 | b91aa39d964d7978cb8c586222f9d1e33e244b69 | 2,303 | TgVoiceReader | Apache License 2.0 |
app/src/commonMain/kotlin/AppViewModel.kt | luca992 | 716,489,959 | false | {"Kotlin": 57321, "HTML": 359, "CSS": 108} | import androidx.compose.runtime.mutableStateOf
import com.ionspin.kotlin.bignum.integer.BigInteger
import datalayer.functions.getLendMarketState
import datalayer.functions.updateUserBalance
import types.LendOverseerMarket
import types.Loan
class AppViewModel(val repo: Repository, private val liquidator: Liquidator) {
... | 0 | Kotlin | 0 | 1 | 77a741440ccd5c25e1d94f85971cc7cb6375c910 | 1,373 | sienna-lend-liquidator | MIT License |
app/src/main/java/com/example/noteapp_architecture_sample/feature_note/domain/add_edit_note_redux/NoteSaveMiddleware.kt | hossainMuktaR | 667,001,535 | false | {"Kotlin": 60656} | package com.example.noteapp_architecture_sample.feature_note.domain.add_edit_note_redux
import android.util.Log
import com.example.noteapp_architecture_sample.feature_note.domain.model.InvalidNoteException
import com.example.noteapp_architecture_sample.feature_note.domain.model.Note
import com.example.noteapp_architec... | 0 | Kotlin | 0 | 0 | d0bc2eee3ba5ef86de4bad75cb063e74a728ce62 | 2,055 | NoteApp-Architecture-Sample.Android | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/batch/EmptyDirVolumeOptionsDsl.kt | F43nd1r | 643,016,506 | false | {"Kotlin": 5279682} | package com.faendir.awscdkkt.generated.services.batch
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.batch.EmptyDirVolumeOptions
@Generated
public fun buildEmptyDirVolumeOptions(initializer: @AwsCdkDsl
EmptyDirVolumeOptions.Build... | 2 | Kotlin | 0 | 4 | 1b83655fba2a79c80c258cdc18b7787fb0119f43 | 428 | aws-cdk-kt | Apache License 2.0 |
common/common_presentation/src/main/java/com/serj113/pokedex/common/presentation/PokemonStatus.kt | serj113 | 668,290,121 | false | {"Kotlin": 91077} | package com.serj113.pokedex.common.presentation
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.capitalize
import androidx.compose.ui.text.font.FontWeight
import com.serj113.pokedex.core.model.Stat
object PokemonStatus {
private const val MAX_HP = 300f
private const val MAX_ATTACK = 300f... | 0 | Kotlin | 0 | 0 | 904a11eccbc6a1ccfc57cb989fc470fd93a30bea | 2,049 | pokedex | Apache License 2.0 |
ktx/src/main/java/luyao/util/ktx/ext/AppExt.kt | lulululbj | 189,544,240 | false | null | package luyao.util.ktx.ext
import android.content.Context
import android.content.pm.PackageInfo
import android.content.pm.PackageManager
import android.os.Build
import luyao.util.ktx.bean.AppInfo
import java.io.File
/**
* Created by luyao
* on 2019/6/12 10:53
*/
val Context.versionName: String
get() = package... | 4 | null | 35 | 337 | b3d578339de31fa3226ac445ca0f89ff31d7986f | 1,756 | AndroidUtilCodeKTX | Apache License 2.0 |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/media/CameraLensFill.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.remix.remix.media
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... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,873 | compose-icon-collections | MIT License |
app/src/main/java/io/aayush/relabs/network/data/node/Nodes.kt | theimpulson | 679,298,392 | false | {"Kotlin": 143608} | package io.aayush.relabs.network.data.node
data class Nodes(
val nodes: Node = Node()
)
| 1 | Kotlin | 3 | 93 | b331860807efe1b17b3fdd5258993b8a7cfe39a9 | 93 | ReLabs | Apache License 2.0 |
core-data-map/src/main/java/com/rocket/android/core/data/map/CoreMapView.kt | Rocket-Beer | 388,802,591 | false | null | package com.rocket.android.core.data.map
import android.Manifest
import android.content.Context
import android.os.Bundle
import android.util.AttributeSet
import android.view.View
import androidx.annotation.RawRes
import androidx.annotation.RequiresPermission
import androidx.constraintlayout.widget.ConstraintLayout
imp... | 10 | Kotlin | 0 | 1 | 9eea36b27e5307702f58788fa80e58377ceb6136 | 17,767 | rocket-core-presentation | Apache License 2.0 |
app/src/main/java/droidkaigi/github/io/challenge2019/di/AppModule.kt | STAR-ZERO | 169,515,912 | true | {"Kotlin": 29824, "Java": 1167} | package droidkaigi.github.io.challenge2019.di
import androidx.lifecycle.ViewModel
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap
import droidkaigi.github.io.challenge2019.core.data.di.ViewModelKey
import droidkaigi.github.io.challenge2019.ui.main.MainViewModel
import droidkaigi.github.io.... | 1 | Kotlin | 0 | 0 | 74c58889d5829fb64b08c3fed48da14e38fab431 | 672 | codelabs-challenge-app-2019 | Apache License 2.0 |
app/src/main/java/ar/com/infrastructure/repositories/providers/local/db/RoomPostAppDatabase.kt | nicolaquartieri | 360,662,827 | false | null | package ar.com.infrastructure.repositories.providers.local.db
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import ar.com.infrastructure.repositories.providers.local.db.entities.PostEntity
@Database(
entities = [PostEntity::class],
ver... | 0 | Kotlin | 0 | 0 | fc867f9fe71a5a4540e157d57a1007f168ab4677 | 982 | post-app | MIT License |
app/src/main/java/se/deluxerpanda/short_message_service/smssender/MainActivity.kt | DeluxerPanda | 733,652,362 | false | {"Kotlin": 190782} | package se.deluxerpanda.short_message_service.smssender
import android.Manifest
import android.app.AlarmManager
import android.app.DatePickerDialog
import android.app.PendingIntent
import android.app.TimePickerDialog
import android.content.Context
import android.content.Intent
import android.content.pm.PackageInfo
imp... | 0 | Kotlin | 0 | 0 | fd8eae0576c73ee9d4bae3bae53ee2c03ad64569 | 68,547 | Short_Message_Service | MIT License |
core/ui/src/main/java/com/uragiristereo/mikansei/core/ui/navigation/MainRoute.kt | uragiristereo | 583,834,091 | false | {"Kotlin": 690341} | package com.uragiristereo.mikansei.core.ui.navigation
import com.github.uragiristereo.safer.compose.navigation.core.NavRoute
import com.uragiristereo.mikansei.core.model.danbooru.Post
import kotlinx.serialization.Serializable
sealed interface MainRoute : NavRoute {
object Home : MainRoute
@Serializable
d... | 0 | Kotlin | 0 | 3 | 9ee6cd4cfc080d640a178fe6d7f4bd4186bfb91d | 770 | Mikansei | Apache License 2.0 |
core/database/src/main/kotlin/com/inasweaterpoorlyknit/core/database/NoopDatabase.kt | Lucodivo | 762,597,375 | false | {"Kotlin": 551020} | package com.inasweaterpoorlyknit.core.database
import androidx.room.AutoMigration
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import com.inasweaterpoorlyknit.core.database.dao.ArticleDao
import com.inasweaterpo... | 0 | Kotlin | 0 | 3 | c5386378af29b386cda99b4406c2c43c19a48e90 | 1,095 | Merlinsbag | Apache License 2.0 |
core/src/main/kotlin/de/tschuehly/spring/viewcomponent/core/component/ViewContextMethodReturnValueHandler.kt | tschuehly | 604,349,993 | false | {"Kotlin": 30593, "HTML": 1767, "Shell": 596} | package de.tschuehly.spring.viewcomponent.core.component
import de.tschuehly.spring.viewcomponent.core.IViewContext
import org.springframework.core.MethodParameter
import org.springframework.stereotype.Component
import org.springframework.web.context.request.NativeWebRequest
import org.springframework.web.method.suppo... | 4 | Kotlin | 8 | 185 | dfb9c2ffac60a7cd55a49f05a53ad2312c3a6098 | 1,171 | spring-view-component | MIT License |
nativelogger/src/main/java/cn/jesse/nativelogger/util/CrashWatcher.kt | 284919275IOS | 499,047,712 | true | {"Java": 685158, "Kotlin": 112011} | package cn.jesse.nativelogger.util
/**
* 监听全局异常, 捕获并回调
*
* @author Jesse
*/
class CrashWatcher private constructor() : Thread.UncaughtExceptionHandler {
private var mDefaultHandler: Thread.UncaughtExceptionHandler? = null
private var listener: ((thread: Thread?, ex: Throwable?) -> Unit)? = null
fun i... | 0 | null | 0 | 0 | 4e0b4da53b87c6afa0c4787357b75ac1edd76a22 | 1,160 | XDroidMvp-AndroidX | MIT License |
app/src/main/java/des/c5inco/pokedexer/ui/pokedex/section/EvolutionsSection.kt | c5inco | 461,368,002 | false | {"Kotlin": 241571} | package des.c5inco.pokedexer.ui.pokedex.section
import android.content.res.Configuration.UI_MODE_NIGHT_YES
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.co... | 0 | Kotlin | 9 | 98 | b13637f927400219dd4110415740e6d913fb4dc3 | 6,494 | compose-pokedexer | MIT License |
client/configservice/update/src/commonMain/kotlin/com/oztechan/ccc/client/configservice/update/UpdateConfigServiceImpl.kt | Oztechan | 102,633,334 | false | null | package com.oztechan.ccc.client.configservice.update
import com.oztechan.ccc.client.configservice.update.mapper.toUpdateConfigModel
import com.oztechan.ccc.client.core.remoteconfig.BaseConfigService
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.json.Json
import com.oztechan.ccc.client.conf... | 28 | Kotlin | 27 | 248 | ee238a8b43dcd30a4e28950b23a77656de093658 | 942 | CCC | Apache License 2.0 |
common/src/jvmMain/kotlin/com/saveourtool/common/repository/OriginalLoginRepository.kt | saveourtool | 300,279,336 | false | {"Kotlin": 3428381, "SCSS": 86430, "JavaScript": 9061, "HTML": 8852, "Shell": 2770, "Smarty": 2608, "Dockerfile": 1366} | package com.saveourtool.common.repository
import com.saveourtool.common.entities.OriginalLogin
import com.saveourtool.common.spring.repository.BaseEntityRepository
import org.springframework.stereotype.Repository
/**
* Repository to access data about original user logins and sources
*/
@Repository
interface Origina... | 201 | Kotlin | 3 | 38 | 8f62e13ee6618a36ad2df7ff15ecfb8019ec19d5 | 645 | save-cloud | MIT License |
generator/src/test/kotlin/io/outfoxx/sunday/generator/swift/SwiftTest.kt | outfoxx | 336,954,223 | false | {"Kotlin": 1386423, "RAML": 60810, "Swift": 5605, "Java": 400} | /*
* Copyright 2020 Outfox, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 5 | Kotlin | 0 | 0 | 2f303d76874b545400703424d9ac4b9c7e4364e3 | 1,028 | sunday-generator | Apache License 2.0 |
src/main/kotlin/com/github/rebel000/cmdlineargs/treeactions/RenameAction.kt | rebel-000 | 611,632,280 | false | {"Kotlin": 80752} | package com.github.rebel000.cmdlineargs.treeactions
import com.github.rebel000.cmdlineargs.ui.ArgumentTree
import com.intellij.openapi.actionSystem.AnActionEvent
import javax.swing.tree.TreePath
class RenameAction : TreeActionBase() {
override fun actionPerformed(e: AnActionEvent) {
val tree = ArgumentTre... | 1 | Kotlin | 1 | 2 | 3570ea762cedd776f5a0451dc9e721fdc5943634 | 644 | CommandlineArgumentsWCheckboxes | Apache License 2.0 |
compiler/testData/codegen/box/inlineClasses/noReturnTypeMangling.kt | JetBrains | 3,432,266 | false | null | // WITH_STDLIB
// !LANGUAGE: -MangleClassMembersReturningInlineClasses
@Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
@kotlin.jvm.JvmInline
value class S(val x: String)
class Test {
fun getO() = S("O")
val k = S("K")
}
fun box(): String {
val t = Test()
return t.getO().x + t.k.x
} | 125 | Kotlin | 4813 | 39,375 | 83d2d2cfcfc3d9903c902ca348f331f89bed1076 | 314 | kotlin | Apache License 2.0 |
src/main/kotlin/com/fiap/payments/adapter/gateway/impl/PaymentGatewayImpl.kt | FIAP-3SOAT-G15 | 794,350,537 | false | {"Kotlin": 85816, "HCL": 3678, "Shell": 477, "Dockerfile": 285} | package com.fiap.payments.adapter.gateway.impl
import com.fiap.payments.adapter.gateway.PaymentGateway
import com.fiap.payments.adapter.messaging.PaymentSender
import com.fiap.payments.domain.entities.Payment
import com.fiap.payments.driver.database.persistence.mapper.PaymentMapper
import com.fiap.payments.driver.data... | 0 | Kotlin | 0 | 1 | e47abf394b386a1a67aaaf7f961870d27a218725 | 1,877 | payments-api | MIT License |
kotlin/src/test/kotlin/examples/disassemble/disassemble.kt | irmen | 244,240,778 | false | {"Python": 26838, "Kotlin": 20982, "C": 13351, "Assembly": 13318, "Makefile": 1612} | package examples.disassemble
import razorvine.ksim68k.Ksim68k
import java.io.File
import razorvine.ksim68k.Memory
fun disassemble(data: ByteArray) {
val memory = Memory(0x1000)
memory.load(0, data)
Ksim68k.useMemory(memory)
var pc = 0
while(pc < data.size) {
val (asm, size) = Ksim68k.disa... | 0 | Python | 0 | 2 | f16b22d4e72901c2ba785c75c527517f7c6bdb39 | 507 | ksim68k | MIT License |
app/src/main/java/de/fhe/ai/flipsen/database/local/shared_prefs/ValueStore.kt | fh-erfurt | 575,489,613 | false | null | package de.fhe.ai.flipsen.database.local.shared_prefs
import android.content.Context
import dagger.hilt.android.qualifiers.ApplicationContext
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class ValueStore @Inject constructor(@ApplicationContext context : Context){
val prefs = context.getShar... | 0 | Kotlin | 0 | 1 | ce9cdceca5deac561f9364a9416036062f4870e8 | 557 | ws2022_pme_flipsen | MIT License |
session-editor/src/main/kotlin/net/onefivefour/sessiontimer/sessioneditor/SessionEditorScreen.kt | OneFiveFour | 715,295,614 | false | {"Kotlin": 52065} | package net.onefivefour.sessiontimer.sessioneditor
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import net.onefivefour.sessiontimer.theme.typography
@Composable
fun SessionEditorScre... | 0 | Kotlin | 0 | 0 | 7530672315ad8c40865c1226031f8f701f4d062d | 955 | session-timer | Apache License 2.0 |
app/src/main/java/com/sjl/bookmark/api/WanAndroidApiService.kt | kellysong | 258,122,128 | false | {"HTML": 2024914, "Java": 804499, "Kotlin": 753949, "CSS": 18483, "JavaScript": 365} | package com.sjl.bookmark.api
import com.sjl.bookmark.entity.*
import com.sjl.bookmark.entity.Article.DatasBean
import io.reactivex.Observable
import retrofit2.http.*
interface WanAndroidApiService {
/**
* 置顶文章
* https://www.wanandroid.com/article/top/json
*/
@get:GET("article/top/json")
@ge... | 0 | HTML | 0 | 0 | edd0990579fe1368a58af87007be3cd68081f5c8 | 2,424 | my-bookmark-master | Apache License 2.0 |
app/src/main/kotlin/com/lightteam/modpeide/utils/event/PreferenceEvent.kt | VickyBOSS | 276,799,927 | true | {"Kotlin": 599951, "HTML": 11957} | /*
* Licensed to the Light Team Software (Light Team) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The Light Team licenses this file to You under the Apache License, Version 2.0
* (the "License"); y... | 0 | null | 0 | 0 | 58e293bd68d06647a80377f2d2b19cf747239a7c | 1,962 | ModPE-IDE | Apache License 2.0 |
lib/src/test/java/com/smileidentity/networking/EnhancedKycTest.kt | smileidentity | 576,345,086 | false | null | package com.smileidentity.networking
import com.smileidentity.SmileID
import com.smileidentity.models.EnhancedKycAsyncResponse
import com.smileidentity.models.EnhancedKycRequest
import com.smileidentity.models.JobType.EnhancedKyc
import com.smileidentity.models.PartnerParams
import org.junit.Test
class EnhancedKycTes... | 2 | Kotlin | 0 | 9 | 1beef41e99eddc39f37f3ba2010b141c0f3bcdb4 | 1,203 | android | MIT License |
yorkie/src/main/kotlin/dev/yorkie/core/Presences.kt | yorkie-team | 518,739,505 | false | null | package dev.yorkie.core
import dev.yorkie.document.time.ActorID
public typealias P = Map<String, String>
public class Presences private constructor(
private val map: MutableMap<ActorID, MutableMap<String, String>>,
) : Map<ActorID, P> by map {
internal constructor() : this(mutableMapOf())
public operat... | 4 | null | 2 | 8 | e6e3a00861c9afbf3c2d07cd08327b65d9d38521 | 1,414 | yorkie-android-sdk | Apache License 2.0 |
FFRv2/app/src/main/java/com/devingotaswitch/rankings/domain/appsync/tags/EfficientTag.kt | jbailey2010 | 91,362,935 | false | {"Kotlin": 694986} | package com.devingotaswitch.rankings.domain.appsync.tags
import com.devingotaswitch.utils.Constants
import java.util.*
class EfficientTag(count: Int) : Tag(count, Constants.EFFICIENT_TAG, Constants.EFFICIENT_TAG_REMOTE, HashSet(listOf(Constants.QB, Constants.RB, Constants.WR, Constants.TE))) | 10 | Kotlin | 0 | 0 | ba3fb10b541e67129c7b3ea81d90d64a7ab9694a | 294 | FFRv2 | Apache License 2.0 |
src/main/kotlin/info/jdavid/asynk/server/http/handler/BasicAuthHandler.kt | programingjd | 100,194,252 | false | {"Kotlin": 173560, "JavaScript": 818, "CSS": 592, "HTML": 337} | package info.jdavid.asynk.server.http.handler
import info.jdavid.asynk.http.Headers
import info.jdavid.asynk.server.http.base.AbstractHttpHandler
import info.jdavid.asynk.server.http.base.AuthHandler
import java.util.Base64
/**
* AuthHandler for Basic Authentication. This is a basic plaintext user/password authentic... | 0 | Kotlin | 0 | 0 | 97c988db1c15d61d10f5b55b04086a93866c43c1 | 5,666 | asynk_server | Apache License 2.0 |
hoplite-yaml/src/test/kotlin/com/sksamuel/hoplite/yaml/SnakeCaseTest.kt | sksamuel | 187,727,131 | false | {"Kotlin": 582464} | package com.sksamuel.hoplite.yaml
import com.sksamuel.hoplite.ConfigLoader
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
class SnakeCaseTest : StringSpec({
"testing config with a mix of snake and camel case" {
data class Foo(
val dripDrop: String,
val tipTap: Boolea... | 9 | Kotlin | 74 | 918 | c21e77ea11e26d7852cb6a1859bfc26dee74974e | 1,161 | hoplite | Apache License 2.0 |
app/src/main/java/com/fcamacho/mvvmexample/data/QuoteRepository.kt | jbj88817 | 197,632,123 | true | {"Kotlin": 461827, "Java": 261198, "Shell": 2979, "RenderScript": 2642} | package com.fcamacho.mvvmexample.data
class QuoteRepository private constructor(private val quoteDao: FakeQuoteDao) {
fun addQuote(quote: Quote) {
quoteDao.addQuote(quote)
}
fun getQuotes() = quoteDao.getQuotes()
companion object {
@Volatile
private var instance: QuoteReposito... | 0 | Kotlin | 0 | 0 | eb3c58108489df74b7559eb41fa2c47337c97269 | 505 | android-architecture-components | Apache License 2.0 |
app/src/main/java/io/github/kevinmhankes/jokeapi/api/JokeService.kt | kevinmhankes | 338,870,520 | false | null | package io.github.kevinmhankes.jokeapi.api
import androidx.lifecycle.LiveData
import io.github.kevinmhankes.jokeapi.model.Joke
import io.github.kevinmhankes.jokeapi.model.JokeResponse
import retrofit2.http.GET
import retrofit2.http.Query
/**
* @author Kevin.
* Created/Modified on February 14, 2021
*/
interface Jok... | 0 | Kotlin | 0 | 0 | 83fa10a8fbdeba7b43c9180663d8d0aebc2094a6 | 951 | JokeAPI-Android | Apache License 2.0 |
compiler/testData/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt | winterbe | 52,790,110 | true | {"Java": 15874459, "Kotlin": 12742950, "JavaScript": 177557, "Protocol Buffer": 42724, "HTML": 29983, "Lex": 16598, "ANTLR": 9689, "CSS": 9358, "Groovy": 7182, "Shell": 4704, "IDL": 4669, "Batchfile": 3703} | // FILE: A.kt
package pkg
interface ClassA {
companion object {
val DEFAULT = object : ClassA {
override fun toString() = "OK"
}
}
}
// FILE: B.kt
import pkg.ClassA
fun main(args: Array<String>) {
val obj = ClassA.DEFAULT
obj.toString()
}
| 0 | Java | 2 | 0 | 16afe74dc12922a9712223d4c0c802b84b32aa1e | 288 | kotlin | Apache License 2.0 |
android_java/app/src/main/java/org/tensorflow/lite/examples/imageclassification/fragments/DynamicBitmapSource.kt | ja-perez | 715,565,242 | false | {"CODEOWNERS": 1, "Text": 1, "Ignore List": 3, "Markdown": 2, "Gradle": 4, "Java Properties": 4, "Shell": 1, "Batchfile": 1, "Proguard": 1, "XML": 18, "Kotlin": 3, "Java": 8} | package org.tensorflow.lite.examples.imageclassification.fragments
import android.graphics.Bitmap
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
class DynamicBitmapSource(private val bitmapUpdaterApi: BitmapUpdaterApi... | 0 | Java | 0 | 0 | 926af5b5cb38a6aca0afa5440f808296109cd3a7 | 714 | AI_THM | Apache License 2.0 |
compiler/standard/src/main/java/gsonpath/adapter/standard/model/GsonObjectFactory.kt | LachlanMcKee | 53,666,769 | false | null | package gsonpath.adapter.standard.model
import gsonpath.GsonFieldValidationType
import gsonpath.ProcessingException
import gsonpath.model.FieldInfo
import gsonpath.model.FieldType
import java.util.regex.Pattern
import javax.lang.model.element.Element
class GsonObjectFactory(
private val gsonObjectValidator: G... | 6 | Kotlin | 4 | 57 | bc666ca0d7677443bd841d7f4ec49618ec5d2ede | 10,026 | gsonpath | MIT License |
app/src/main/java/com/yenaly/han1meviewer/ui/fragment/settings/PlayerSettingsFragment.kt | YenalyLiew | 524,046,895 | false | {"Kotlin": 533578, "Java": 98193} | package com.yenaly.han1meviewer.ui.fragment.settings
import android.os.Bundle
import androidx.annotation.IntRange
import androidx.preference.SeekBarPreference
import androidx.preference.SwitchPreferenceCompat
import com.yenaly.han1meviewer.R
import com.yenaly.han1meviewer.ui.activity.SettingsActivity
import com.yenaly... | 4 | Kotlin | 17 | 240 | af45df7f97483ec86c60cadaac8a60dd69084d69 | 2,906 | Han1meViewer | Apache License 2.0 |
src/main/java/miyucomics/hexical/state/KeybindData.kt | miyucomics | 757,094,041 | false | {"Kotlin": 229124, "Java": 27098} | package miyucomics.hexical.state
import java.util.UUID
object KeybindData {
val active: HashMap<UUID, HashMap<String, Boolean>> = HashMap()
val duration: HashMap<UUID, HashMap<String, Int>> = HashMap()
} | 0 | Kotlin | 1 | 0 | 2725974e3d2c74a3fd9219a81a6c38f227495491 | 207 | hexical | MIT License |
core-ui/src/main/kotlin/com/laomuji666/compose/core/ui/we/widget/WeTableInput.kt | laomuji666 | 844,336,531 | false | null | package com.laomuji666.compose.core.ui.we.widget
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxSize
import androidx.com... | 1 | null | 0 | 99 | 55ebed2733bdbc2330f3297b74b5514fea786ba3 | 5,622 | Quickly-Use-Jetpack-Compose | Apache License 2.0 |
src/main/kotlin/com/weefic/xtun/shadowsocks/ShadowSocksInboundDecoder.kt | hosijyun | 517,383,235 | false | {"Kotlin": 137384} | package com.weefic.xtun.shadowsocks
import com.weefic.xtun.shadowsocks.cipher.StreamCipher
import com.weefic.xtun.shadowsocks.cipher.StreamCipherProvider
import io.netty.buffer.ByteBuf
import io.netty.channel.ChannelHandlerContext
import io.netty.channel.ChannelInboundHandlerAdapter
import java.lang.Integer.min
class... | 0 | Kotlin | 0 | 1 | 2cdd245df04b39197416209c54dc478babf6febb | 1,726 | xTunnel | MIT License |
src/main/kotlin/com/github/suusan2go/kotlinfillclass/intentions/FillClassIntention.kt | jirokun | 163,091,487 | true | {"Kotlin": 4841} | package com.github.suusan2go.kotlinfillclass.intentions
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import org.jetbrains.kotlin.builtins.KotlinBuiltIns
import org.jetbrains.kotlin.descriptors.ConstructorDescriptor
import org.jetbrains.kotlin.descriptors.ValueParameterDescripto... | 0 | Kotlin | 0 | 0 | ea1d3c156b59631c5d7542d0c3e2e97067b58fce | 3,107 | kotlin-fill-class | MIT License |
physics/src/main/kotlin/balls/physics/tile/TileTree.kt | knokko | 865,591,691 | false | {"Kotlin": 294965, "GLSL": 302} | package balls.physics.tile
import balls.physics.util.GrowingBuffer
import fixie.*
import kotlin.math.max
import kotlin.math.min
private const val SPLIT_FACTOR = 10
private const val MAX_LEAFS = 50
private val MARGIN = 10.mm
class TileTree(
private val minX: Displacement,
private val minY: Displacement,
private va... | 0 | Kotlin | 0 | 0 | 16c28af4aacc0485a4b70d93e2b5eae485c55af7 | 4,320 | balls-of-steel | MIT License |
trackeroo-core-noop/src/main/java/ru/roansa/trackeroo_core_noop/logging/transform/MessageTransformer.kt | crazytosser00 | 585,481,414 | false | {"Kotlin": 74545, "Java": 171} | package ru.roansa.trackeroo_core.logging.transform
import ru.roansa.trackeroo_core.logging.LogEntity
class MessageTransformer : ILogTransformer {
override fun transform(previousResultString: String, logEntity: LogEntity) = ""
} | 0 | Kotlin | 0 | 0 | 02d232829cf74e895ce95c82e7fbf549932f673a | 235 | trackeroo | Apache License 2.0 |
src/main/kotlin/me/peckb/aoc/_2020/calendar/day06/Day06.kt | peckb1 | 433,943,215 | false | {"Kotlin": 818902} | package me.peckb.aoc._2020.calendar.day06
import javax.inject.Inject
import me.peckb.aoc.generators.InputGenerator.InputGeneratorFactory
class Day06 @Inject constructor(
private val generatorFactory: InputGeneratorFactory,
) {
fun partOne(filename: String) = generatorFactory.forFile(filename).read { input ->
... | 0 | Kotlin | 1 | 4 | 5507219c37a97500eed6e455520038549237b504 | 1,267 | advent-of-code | MIT License |
app/src/main/java/com/docwei/globaldot/MyApplication.kt | docwei2050 | 376,270,154 | false | null | package com.docwei.globaldot
import android.app.Application
import android.os.Build
import android.util.Log
import com.docwei.doblib.ZeTaTrack
/**
* Created by liwk on 2021/6/12.
*/
class MyApplication: Application() {
override fun onCreate() {
super.onCreate()
Log.e("ZeTadot","onCreate")
... | 0 | Kotlin | 0 | 0 | dac65118a41be1a60267b5cd4bfb6d2a485e44ac | 485 | globalDot | MIT License |
features/root/search/src/commonMain/kotlin/app/immich/kmp/features/root/search/SearchCompositor.kt | eygraber | 738,812,490 | false | {"Kotlin": 251181, "Shell": 1809, "JavaScript": 1484, "Swift": 615, "HTML": 567} | package app.immich.kmp.features.root.search
import androidx.compose.runtime.Composable
import com.eygraber.vice.ViceCompositor
import com.eygraber.virtue.di.scopes.SessionPortalSingleton
import me.tatarka.inject.annotations.Inject
@SessionPortalSingleton
@Inject
internal class SearchCompositor : ViceCompositor<Intent... | 4 | Kotlin | 0 | 2 | 48faf2af41557f9aa94db98c45fba2016c2e79de | 392 | immich-kmp | MIT License |
src/main/kotlin/net/casual/championships/commands/CasualCommand.kt | CasualChampionships | 334,382,250 | false | {"Kotlin": 345101, "Java": 7361} | package net.casual.championships.commands
import com.mojang.brigadier.builder.LiteralArgumentBuilder
import com.mojang.brigadier.context.CommandContext
import net.casual.arcade.commands.CommandTree
import net.casual.arcade.commands.success
import net.casual.arcade.minigame.utils.MinigameUtils.requiresAdminOrPermission... | 0 | Kotlin | 1 | 3 | 52b5f46fa57425582a4606191fd823da4051ab61 | 3,452 | CasualChampionships | MIT License |
src/main/kotlin/com/donaldwu/main/model/shop/ShopModel.kt | yeukfei02 | 256,950,400 | false | null | package com.donaldwu.main.model.shop
import com.donaldwu.main.common.Common
import com.donaldwu.main.tableinterface.shop.Shop
import com.donaldwu.main.table.shop.Shops
import me.liuwj.ktorm.dsl.*
import me.liuwj.ktorm.entity.add
import me.liuwj.ktorm.entity.find
import me.liuwj.ktorm.entity.sequenceOf
class ShopModel... | 1 | Kotlin | 0 | 0 | 40846a4f3e1050f26ce883a1f6b6aa49f5fef868 | 4,427 | flowerShopApi | MIT License |
cards/src/main/java/com/hatfat/cards/data/loader/LocalStorageWrapper.kt | scottrick | 337,184,629 | false | {"Kotlin": 337477} | package com.hatfat.cards.data.loader
import android.content.Context
import android.util.Log
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import java.io.*
class LocalStorageWrapper<T>(
private val context: Context,
private val gson: Gson,
private val resourceName: String,
privat... | 0 | Kotlin | 0 | 2 | d708591f6a7b1dc428cee44823f31f39973f5db0 | 1,595 | cards | MIT License |
openai-client/src/jsTest/kotlin/com.aallam.openai.client/internal/Coroutine.kt | Aallam | 345,180,734 | false | null | package com.aallam.openai.client.internal
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.asPromise
import kotlinx.coroutines.async
actual fun runBlockingTest(block: suspend CoroutineScope.() -> Unit): dynamic {
return GlobalScope.async(block = block).asPro... | 0 | Kotlin | 0 | 3 | 1c046f34b8cb39a84c1e43cd9771dbbc27a9b530 | 329 | openai-kotlin | MIT License |
gui/proxy-tool/src/main/kotlin/net/rsprox/gui/FiltersSidePanel.kt | blurite | 822,339,098 | false | null | package net.rsprox.gui
import com.formdev.flatlaf.extras.components.FlatButton
import com.formdev.flatlaf.extras.components.FlatButton.ButtonType
import com.formdev.flatlaf.extras.components.FlatLabel
import com.formdev.flatlaf.extras.components.FlatSeparator
import com.formdev.flatlaf.extras.components.FlatTabbedPane... | 8 | null | 9 | 26 | 778f024916cd0ad631caf6e49061bdb8742d44de | 18,536 | rsprox | MIT License |
app/src/main/java/fr/jorisfavier/youshallnotpass/utils/CustomLifecycle.kt | jorisfavier | 259,359,448 | false | {"Kotlin": 296450, "Java": 744} | package fr.jorisfavier.youshallnotpass.utils
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LifecycleRegistry
class CustomLifecycle(
parentLifecycle: Lifecycle,
) : LifecycleOwner {
private val lifecycl... | 0 | Kotlin | 0 | 0 | a583cd9c3d44a234969c088b28b7b4eae37feaff | 1,517 | YouShallNotPass-android | MIT License |
java/java-tests/testSrc/com/intellij/codeInsight/daemon/quickFix/CreateDirectoryPathFixTest.kt | hieuprogrammer | 284,920,751 | true | null | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInsight.daemon.quickFix
import com.intellij.codeInsight.intention.IntentionAction
import com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiRefe... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 1,751 | intellij-community | Apache License 2.0 |
feature/feed/domain/api/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/feed/domain/api/worker/FeedWorkScheduler.kt | savvasdalkitsis | 485,908,521 | false | {"Kotlin": 2667740, "Ruby": 1294, "PowerShell": 325, "Shell": 158} | /*
Copyright 2023 Savvas Dalkitsis
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, softwar... | 89 | Kotlin | 27 | 358 | 8d91fac8d8257853cd728ecd05b9b09a9fbed77b | 1,375 | uhuruphotos-android | Apache License 2.0 |
cosky-discovery/src/main/kotlin/me/ahoo/cosky/discovery/loadbalancer/AbstractLoadBalancer.kt | Ahoo-Wang | 360,576,464 | false | {"Kotlin": 399933, "TypeScript": 144057, "HTML": 48838, "Lua": 17987, "SCSS": 15903, "Java": 929, "CSS": 649, "Dockerfile": 570} | /*
* Copyright [2021-present] [<NAME> <<EMAIL>> (https://github.com/Ahoo-Wang)].
* 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... | 8 | Kotlin | 21 | 80 | 3361bbf31ed8422e216fd2e2b363e41423d8afbe | 2,544 | CoSky | Apache License 2.0 |
core/model/src/main/java/earth/core/database/MenageType.kt | darkwhite220 | 733,589,658 | false | {"Kotlin": 422132} | package earth.core.database
enum class MenageType(val price: Int) {
M(price = 150), M_OUT_CITY(price = 75), NM(price = 600), NM_OUT_CITY(price = 300)
}
| 0 | Kotlin | 0 | 1 | 77d7bd5af138079eb25e2c8f6a728546dbab4cab | 158 | AlgeriaBillsOnline | The Unlicense |
ocpp-2-0-core/src/main/kotlin/com/izivia/ocpp/core20/model/common/AdditionalInfoType.kt | IZIVIA | 501,708,979 | false | {"Kotlin": 1934096} | package com.izivia.ocpp.core20.model.common
data class AdditionalInfoType(
val additionalIdToken: String,
val type: String
)
| 6 | Kotlin | 10 | 32 | bd8e7334ae05ea75d02d96a508269acbe076bcd8 | 134 | ocpp-toolkit | MIT License |
app/src/main/java/com/dicoding/storyapp/ui/main/SplashscreenActivity.kt | firdausmuh | 708,458,083 | false | {"Kotlin": 60928} | package com.dicoding.storyapp.ui.main
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.View
import android.view.WindowInsets
import android.view.WindowManager
import android.widget.ProgressBar
import androidx.appcompat... | 0 | Kotlin | 0 | 1 | 99a7e3fb28b78b8b9b4688ab859cd08d8d81efdc | 1,679 | StoryApp | RSA Message-Digest License |
hoon/HoonAlgorithm/src/main/kotlin/programmers/lv01/Lv1_77884.kt | boris920308 | 618,428,844 | false | {"Kotlin": 135976, "Swift": 35553, "Java": 1947, "Rich Text Format": 407} | package main.kotlin.programmers.lv01
import kotlin.math.sqrt
/**
*
* https://school.programmers.co.kr/learn/courses/30/lessons/77884
*
* 약수의 개수와 덧셈
* 문제 설명
* 두 정수 left와 right가 매개변수로 주어집니다.
* left부터 right까지의 모든 수들 중에서, 약수의 개수가 짝수인 수는 더하고, 약수의 개수가 홀수인 수는 뺀 수를 return 하도록 solution 함수를 완성해주세요.
*
* 제한사항
* 1 ≤ lef... | 1 | Kotlin | 1 | 2 | 229dadc4c4bfe91f4252e465bc72cb6794d15806 | 1,576 | HoOne | Apache License 2.0 |
Android/BLUR/domain/src/main/java/com/blur/blur/domain/usecase/login/LoginUseCase.kt | kim-do-hyeon | 752,461,840 | false | {"Kotlin": 365399, "Swift": 75215, "Python": 66512, "JavaScript": 41759, "CSS": 6957, "HTML": 2674, "Shell": 176} | package com.blur.blur.domain.usecase.login
/**
* @author soohwan.ok
*/
interface LoginUseCase {
suspend operator fun invoke(
username:String,
password:String
):Result<String>
} | 0 | Kotlin | 2 | 6 | f350b6d1bc1a7630cb787107713ed47f50a7e84b | 204 | 2024-jj-capstone-design | MIT License |
code/scenes/src/main/kotlin/org/fbme/scenes/ext/contextMenu/CellSelectionOnPopupTrigger.kt | JetBrains | 267,360,098 | false | {"JetBrains MPS": 5551574, "Kotlin": 1343021, "C++": 54572, "Lua": 26921, "Tcl": 7529, "ANTLR": 4585} | package org.fbme.scenes.ext.contextMenu
import jetbrains.mps.nodeEditor.EditorComponent
import jetbrains.mps.nodeEditor.selection.EditorCellLabelSelection
import jetbrains.mps.openapi.editor.cells.CellConditions
import jetbrains.mps.openapi.editor.cells.CellTraversalUtil
import jetbrains.mps.openapi.editor.extensions.... | 12 | JetBrains MPS | 15 | 19 | 3198be65e4b63e4405ee7e523ec64f28d1231ba5 | 3,071 | fbme | Apache License 2.0 |
soapui-plugin/DifferenceNode.kt | denninger-eu | 244,302,123 | false | null | package eu.k5.soapui.plugin.imex.difference
import eu.k5.soapui.streams.listener.difference.Difference
import eu.k5.soapui.streams.listener.difference.Differences
class DifferenceNode {
var type: Differences.EntityType? = null
var name: String? = null
var description: String? = null
var reference:... | 5 | Kotlin | 0 | 0 | 665e54e4ac65d6c7e9805bb1b44f30f9ec702ce3 | 502 | soapui-utils | Apache License 2.0 |
hybid.demo/src/main/java/net/pubnative/lite/demo/ui/fragments/maxads/MaxAdsMediationBannerFragment.kt | pubnative | 315,887,000 | false | null | package net.pubnative.lite.demo.ui.fragments.maxads
import android.graphics.Color
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.*
import androidx.fragment.app.Fragment
import com.applovin.mediation.MaxAd
import com.applovin.mediation.MaxAdViewAdListener
import com.appl... | 1 | null | 1 | 7 | cb0e1e1724a538b05863195f850491a7457db6da | 3,123 | pubnative-hybid-android-sdk | MIT License |
apprating/src/main/java/com/mindera/skeletoid/apprating/dialogs/AppRatingDialog.kt | Mindera | 85,591,428 | false | {"Gradle": 12, "XML": 18, "CODEOWNERS": 1, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 9, "Batchfile": 1, "YAML": 1, "Markdown": 10, "Proguard": 8, "Kotlin": 160, "Java": 5} | package com.mindera.skeletoid.apprating.dialogs
import android.app.AlertDialog
import android.app.Dialog
import android.os.Bundle
import androidx.fragment.app.DialogFragment
import com.mindera.skeletoid.apprating.AppRatingInitializer
import com.mindera.skeletoid.apprating.R
import com.mindera.skeletoid.apprating.callb... | 7 | Kotlin | 3 | 24 | 881de796fbbe835c74f69f36ccf327bdcb0029f3 | 4,269 | skeletoid | MIT License |
src/main/kotlin/venus/riscv/Program.kt | ics-jku | 470,084,492 | true | {"JavaScript": 2768182, "Kotlin": 144645, "HTML": 32782, "CSS": 1899} | package venus.riscv
import venus.assembler.DebugInfo
import venus.linker.RelocationInfo
import venus.riscv.insts.dsl.relocators.Relocator
/**
* An (unlinked) program.
*
* @param name the name of the program, used for debug info
* @see venus.assembler.Assembler
* @see venus.linker.Linker
*/
class Program(val nam... | 1 | JavaScript | 1 | 4 | 429d323b98a33db67074e44f164c8d1044f406de | 3,209 | venus | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.