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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
generator/src/main/kotlin/fixie/generator/speed/SpeedClassGenerator.kt | knokko | 687,847,559 | false | {"Kotlin": 421410} | package fixie.generator.speed
import fixie.generator.number.FloatType
import fixie.generator.quantity.HybridQuantityClassGenerator
import java.io.PrintWriter
internal class SpeedClassGenerator(
writer: PrintWriter,
speed: SpeedClass,
packageName: String
) : HybridQuantityClassGenerator<SpeedCl... | 0 | Kotlin | 0 | 0 | 5ad29202e30e0779bccc7147670342bd08066132 | 3,793 | fixie | MIT License |
app/src/main/java/com/example/telehealth/data/repository/ProfileRepository.kt | TomPham204 | 724,119,803 | false | {"Kotlin": 99766, "Python": 8126} | package com.example.telehealth.data.repository
import android.content.Context
import android.util.Log
import com.example.telehealth.data.database.FirestoreDB
import com.example.telehealth.data.dataclass.ProfileModel
import com.google.firebase.firestore.toObject
import kotlinx.coroutines.tasks.await
class ProfileRepos... | 1 | Kotlin | 0 | 0 | 071929af048221c26cc2427b9697b5428d66f554 | 2,282 | Telehealth | MIT License |
features/trends/src/test/java/com/lcabral/trends/di/TrendingModuleTest.kt | LucianaCabral | 635,352,087 | false | null | package com.lcabral.trends.di
import org.junit.Test
import org.koin.test.KoinTest
import org.koin.test.check.checkModules
class TrendingModuleTest : KoinTest {
@Test
fun verifyKoinApp() {
checkModules {
listOf(modules())
}
}
} | 0 | Kotlin | 0 | 0 | dec9df792c33dbb1615a25851a23539009a0daa0 | 269 | art_seventh | MIT License |
shared/core/utils/src/main/kotlin/ru/hh/plugins/extensions/openapi/ProjectExt.kt | hhru | 159,637,875 | false | {"Kotlin": 476963, "Shell": 3314} | package ru.hh.plugins.extensions.openapi
import com.intellij.openapi.module.Module
import com.intellij.openapi.module.ModuleManager
import com.intellij.openapi.project.Project
import com.intellij.psi.codeStyle.CodeStyleManager
import org.jetbrains.kotlin.idea.util.projectStructure.allModules
import ru.hh.plugins.exten... | 15 | Kotlin | 18 | 156 | 8f4e52c65b45a70268a7693af0261440864abcae | 2,425 | android-multimodule-plugin | MIT License |
analytics/src/main/java/at/nineyards/analytics/model/AnalyticsConstant.kt | Lois9Y | 104,047,406 | false | null | package at.nineyards.analytics.model
/**
* Created by Lois-9Y on 19/09/2017.
*/
data class AnalyticsConstant(
val name : String,
val value : String
) | 0 | Kotlin | 0 | 0 | 32254dadc728171751d15891745b1ceda2e0a01f | 168 | AnalyticsManager | MIT License |
Server/src/main/kotlin/com/example/model/Salary.kt | Samiaza | 763,873,364 | false | {"Kotlin": 64686} | package com.example.model
enum class Salary(val range: IntRange) {
LOW(0..salaryMiddleLimit){
override val valueStr = "< $salaryMiddleLimit"
},
MID(salaryMiddleLimit..salaryHighLimit){
override val valueStr = "$salaryMiddleLimit - $salaryHighLimit"
},
HIGH(salaryHighLimit..Int.MAX_V... | 0 | Kotlin | 0 | 0 | fb59707f7f6bd6235c0428c29e786cf3c9b374ba | 422 | Job-Center | MIT License |
src/main/kotlin/jb/plugin/autojs/ui/Hint.kt | wilinz | 566,405,466 | false | {"Kotlin": 53762, "Java": 9325} | package jb.plugin.autojs.ui
import com.intellij.openapi.ui.popup.JBPopupFactory
class Hint {
companion object {
fun hint() {
//这个展示,是纵向排列的
JBPopupFactory.getInstance().createConfirmation(
"标题",
"qd",
"取消",
Runnable {
... | 0 | null | 0 | 0 | 7087f02c50b5a9dc50c9fb3435d17e2e0e704edd | 496 | autojsPlugin | Apache License 2.0 |
app/src/main/java/com/zacharee1/systemuituner/anim/PrefAnimator.kt | zacharee | 221,786,635 | false | {"Kotlin": 681812, "AIDL": 1172} | package com.zacharee1.systemuituner.anim
import androidx.recyclerview.widget.RecyclerView
import jp.wasabeef.recyclerview.animators.BaseItemAnimator
class PrefAnimator : BaseItemAnimator() {
override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {
holder.itemView.animate()
.alpha(0f)
... | 25 | Kotlin | 174 | 994 | 27672d3a0ad7caf1dce360dc1a0651926903b8a8 | 1,181 | Tweaker | MIT License |
app/src/main/java/com/example/favdish/view/fragments/DishDetailsFragment.kt | fangshuo-an | 393,351,712 | false | null | package com.example.favdish.view.fragments
import android.content.Intent
import android.graphics.drawable.Drawable
import android.os.Build
import android.os.Bundle
import android.text.Html
import android.util.Log
import android.view.*
import android.widget.Toast
import androidx.core.content.ContextCompat
import androi... | 0 | Kotlin | 0 | 0 | 2485e80145d5f698b6a60a188a08a55eb7a6c7c7 | 8,859 | FavDish | Apache License 2.0 |
app/src/main/java/ci/projccb/mobile/models/ConcernesModel.kt | SICADEVD | 686,088,142 | false | {"Kotlin": 1404930, "Java": 20027} | package ci.projccb.mobile.models
import android.os.Parcelable
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import ci.projccb.mobile.tools.Constants
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parceli... | 0 | Kotlin | 0 | 2 | 8b740f5350f4a1788b34c3ab55c733e13e4f13e2 | 1,353 | ccbm | Apache License 2.0 |
browser-kotlin/src/jsMain/kotlin/web/cssom/LinkStyle.kt | karakum-team | 393,199,102 | false | null | // Automatically generated - do not modify!
package web.cssom
external interface LinkStyle {
val sheet: CSSStyleSheet?
}
| 0 | Kotlin | 6 | 22 | 340fa5d93f874ebf14810ab797a9808af574e058 | 127 | types-kotlin | Apache License 2.0 |
app/src/main/java/de/eloc/eloc_control_panel/activities/RegisterActivity.kt | EDsteve | 562,096,533 | false | {"Kotlin": 307261, "Java": 67203, "Batchfile": 122} | package de.eloc.eloc_control_panel.activities
import android.os.Bundle
import android.view.View
import androidx.lifecycle.ViewModelProvider
import de.eloc.eloc_control_panel.R
import de.eloc.eloc_control_panel.databinding.ActivityRegisterBinding
import de.eloc.eloc_control_panel.data.UserAccountViewModel
import de.elo... | 4 | Kotlin | 1 | 0 | e784985a673beb5d93a18cca63408a47e17d86c5 | 4,486 | ELOC-Control-Panel | MIT License |
airbyte-workload-launcher/src/test/kotlin/pods/KubeResourceMonitorTest.kt | revanthkumar385 | 762,871,810 | true | {"Java Properties": 2, "Starlark": 3, "YAML": 262, "Gradle Kotlin DSL": 47, "Dotenv": 6, "Ignore List": 26, "INI": 10, "Shell": 58, "Markdown": 69, "EditorConfig": 1, "TOML": 2, "Batchfile": 1, "Text": 39, "XML": 9, "Gradle": 5, "Kotlin": 296, "Dockerfile": 24, "Java": 1461, "JSON with Comments": 3, "JSON": 190, "JavaS... | /*
* Copyright (c) 2020-2024 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.workload.launcher.pods
import io.airbyte.workload.launcher.metrics.CustomMetricPublisher
import io.airbyte.workload.launcher.metrics.WorkloadLauncherMetricMetadata
import io.airbyte.workload.launcher.pods.KubeResourceMonitor.Comp... | 0 | Java | 0 | 0 | c8191053edcf9ef9bdc21a42f133a186b72bdeeb | 6,175 | airbyte-platform | MIT License |
app/src/main/java/com/ibrajix/jetpacker/ui/fragments/FundingSuccessFragment.kt | ibrajix | 436,044,248 | false | {"Kotlin": 33368} | /*
* Written and Developed by Inuwa Ibrahim - https://linktr.ee/Ibrajix
*/
package com.ibrajix.jetpacker.ui.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavCon... | 0 | Kotlin | 1 | 15 | f4e01e506acb3d0fcae66c05e877b45e5216d405 | 1,437 | JetPacker | Apache License 2.0 |
src/main/kotlin/io/noizwaves/codexform/step/JavaReplaceMethodWith.kt | noizwaves | 141,843,876 | false | null | package io.noizwaves.codexform.step
import java.nio.file.Files
import java.nio.file.Path
import java.util.*
import kotlin.streams.toList
abstract class JavaReplaceMethodWith(
private val packageName: String,
private val className: String,
private val method: Method
) : Step {
override fun ... | 0 | Kotlin | 0 | 0 | 8d02dfdf784c4b8b1217eb2b15d8ef80c2602507 | 2,517 | codexform | MIT License |
support/hibernate-reactive/src/test/kotlin/com/linecorp/kotlinjdsl/support/hibernate/reactive/extension/StageSessionExtensionsTest.kt | line | 442,633,985 | false | {"Kotlin": 1959613, "JavaScript": 5144, "Shell": 1023} | package com.linecorp.kotlinjdsl.support.hibernate.reactive.extension
import com.linecorp.kotlinjdsl.querymodel.jpql.delete.DeleteQuery
import com.linecorp.kotlinjdsl.querymodel.jpql.select.SelectQuery
import com.linecorp.kotlinjdsl.querymodel.jpql.update.UpdateQuery
import com.linecorp.kotlinjdsl.render.RenderContext
... | 7 | Kotlin | 86 | 705 | 3a58ff84b1c91bbefd428634f74a94a18c9b76fd | 5,087 | kotlin-jdsl | Apache License 2.0 |
app/src/androidTest/java/com/jefferson/apps/real_world/android/real_worldandroidapp/common/data/preferences/FakePreferences.kt | jeffersoncsilva | 840,062,108 | false | {"Kotlin": 122563} | package com.jefferson.apps.real_world.android.real_worldandroidapp.common.data.preferences
import com.jefferson.apps.real_world.android.real_worldandroidapp.common.data.preferences.Preferences
import com.jefferson.apps.real_world.android.real_worldandroidapp.common.data.preferences.PreferencesConstants
class FakePref... | 0 | Kotlin | 0 | 0 | 3a3a23da1931cf23f5668a81286744057a539ff8 | 1,223 | realworldandroid | Apache License 2.0 |
src/test/kotlin/de/hennihaus/objectmothers/PaginationObjectMother.kt | hennihaus | 484,714,079 | false | null | package de.hennihaus.objectmothers
import de.hennihaus.bamdatamodel.Team
import de.hennihaus.bamdatamodel.objectmothers.TeamObjectMother.getFirstTeam
import de.hennihaus.bamdatamodel.objectmothers.TeamObjectMother.getSecondTeam
import de.hennihaus.bamdatamodel.objectmothers.TeamObjectMother.getThirdTeam
import de.henn... | 32 | Kotlin | 0 | 0 | d9e57a5ca5f0712671cf4e26c578c1fb22c0262f | 5,255 | bamconfigbackend | Apache License 2.0 |
src/main/kotlin/org/carPooling/shared/domain/CarPoolingRepository.kt | ortzit | 588,298,236 | false | null | package org.carPooling.shared.domain
interface CarPoolingRepository {
fun clear()
} | 0 | Kotlin | 0 | 0 | a39c6ad957e366480e19adef9a6089e1300535d1 | 88 | car-pooling | MIT License |
core/codegen/src/main/kotlin/dev/luna5ama/kmogus/CoreCodeGenProvider.kt | Luna5ama | 644,705,174 | false | {"Kotlin": 169436} | package dev.luna5ama.kmogus
import com.google.devtools.ksp.processing.SymbolProcessor
import com.google.devtools.ksp.processing.SymbolProcessorEnvironment
import com.google.devtools.ksp.processing.SymbolProcessorProvider
class CoreCodeGenProvider : SymbolProcessorProvider {
override fun create(environment: Symbol... | 0 | Kotlin | 0 | 4 | 31f6a67e4ecccff0a8b20b6431f95eea05f57870 | 417 | Kmogus | MIT License |
src/main/kotlin/com/cuupa/opengarden/Search.kt | Cuupa | 478,063,266 | false | null | package com.cuupa.opengarden
data class Search(var disabled: Boolean = false, var searchTerm: String? = "", var textSearch: String = "Search", var placeholder: String = "Tomato") | 14 | Kotlin | 0 | 0 | c71b87dbdb4e97afb42a3dc7546a17cd8e8c8b5e | 179 | open-garden | MIT License |
src/main/java/pine/toast/library/utilities/ScoreboardManager.kt | ToastArgumentative | 780,500,995 | false | {"Kotlin": 79880, "Java": 43662} | package pine.toast.library.utilities
import org.bukkit.entity.Player
import org.bukkit.event.Listener
import pine.toast.library.utilities.fastboard.FastBoard
import java.util.*
object ScoreboardManager : Listener {
private val scoreboards: MutableMap<UUID, FastBoard> = mutableMapOf()
fun createNewScoreb... | 0 | Kotlin | 0 | 2 | 1062d8e4725086a4f6da4cf092425f14fd908766 | 860 | ToastWonderland | MIT License |
foundation-runtimes/kotlinx/collections/atomic/src/commonMain/kotlin/kotlinx/collections/atomic/MutableAtomicCollection.kt | aSoft-Ltd | 402,249,541 | false | {"Kotlin": 388694, "HTML": 12147, "Java": 9764, "JavaScript": 6769} | package kotlinx.collections.atomic
import kotlinx.collections.interoperable.MutableCollection
interface MutableAtomicCollection<E, C : MutableCollection<E>> : AtomicCollection<E, C>, MutableCollection<E> {
fun <T> doAction(run: C.() -> T): T
override fun iterator(): MutableIterator<E> = atomic.value.iterator(... | 6 | Kotlin | 0 | 0 | 4885fcfb3695187b436bb5a2967808b1eeaa161f | 323 | foundation | MIT License |
presentation/src/main/java/com/zekierciyas/presentation/profile/ProfileViewModel.kt | zekierciyas | 599,050,840 | false | null | package com.zekierciyas.presentation.profile
import androidx.lifecycle.ViewModel
import com.zekierciyas.cache.data.ProfileDataProvider
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class ProfileViewModel @Inject constructor(
private val dummyData: ProfileDataProvider... | 0 | Kotlin | 0 | 1 | 8bbb2d368ab477654e4396144fe4bd0d77c7ab6d | 394 | SociallyDemo | MIT License |
modules/services/core-ui/src/commonMain/kotlin/com/makeevrserg/empireprojekt/mobile/core/ui/components/topbar/AstraLargeAppBar.kt | makeevrserg | 655,032,944 | false | null | package com.makeevrserg.empireprojekt.mobile.core.ui.components.topbar
import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.size
import androidx.compose.material.MaterialTheme
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ChevronLeft
... | 2 | null | 0 | 3 | eb10c10e72044cd80eec07d96dba2d59ca3d0341 | 2,867 | EmpireProjekt-Mobile | RSA Message-Digest License |
src/main/java/com/mineinabyss/mobzy/registration/MobzyNMSTypeInjector.kt | c-sig | 387,629,883 | true | {"Kotlin": 141406} | package com.mineinabyss.mobzy.registration
import com.mineinabyss.geary.ecs.api.entities.GearyEntity
import com.mineinabyss.geary.ecs.api.systems.TickingSystem
import com.mineinabyss.geary.ecs.components.*
import com.mineinabyss.geary.ecs.prefab.PrefabKey
import com.mineinabyss.idofront.nms.aliases.NMSEntity
import co... | 0 | null | 0 | 0 | 78daf91acd0fd78e70501bfbe12ce874db043a8b | 4,661 | Mobzy | MIT License |
MCron/src/main/kotlin/city/newnan/mcron/CronManager.kt | NewNanCity | 467,094,551 | false | null | package city.newnan.mcron
import city.newnan.violet.message.MessageManager
import city.newnan.violet.config.ConfigManager
import city.newnan.violet.config.setListIfNull
import me.lucko.helper.Schedulers
import org.bukkit.Bukkit
import org.bukkit.command.CommandSender
import java.io.IOException
import java.text.SimpleD... | 0 | Kotlin | 0 | 3 | e12cf5f846770a1fb75c3f9453b0b25300e0cf7e | 9,187 | Plugins | MIT License |
app/src/main/java/com/flimbis/exfile/util/SimpleDividerItemDecoration.kt | isnirp | 158,856,107 | false | null | package com.flimbis.exfile.util
import androidx.recyclerview.widget.RecyclerView
import android.content.Context
import android.graphics.Canvas
import android.graphics.drawable.Drawable
import androidx.core.content.ContextCompat
import com.flimbis.exfile.R
class SimpleDividerItemDecoration(context: Context?) : Recycl... | 0 | Kotlin | 0 | 0 | b9b3d08bc3b7667e729bc56976cb366229c024fb | 1,313 | Exfile | Apache License 2.0 |
feature/anime/core/source/local/api/src/main/java/com/lelestacia/hayate/feature/anime/core/source/local/api/entity/trailer/AnimeTrailerEntity.kt | gab-stargazer | 717,145,817 | false | {"Kotlin": 459698} | package com.lelestacia.hayate.feature.anime.core.source.local.api.entity.trailer
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class AnimeTrailerEntity(
@Json(name = "youtube_id")
val youtubeId: String?,
@Json(name = "url")
val url: String... | 0 | Kotlin | 0 | 4 | 892b443a225f787aa99631a3fb02fad517f7f19f | 452 | hayate | MIT License |
app/src/main/java/com/personal/tmdb/detail/presentation/person/PersonViewModel.kt | Avvami | 755,489,313 | false | {"Kotlin": 656155} | package com.personal.tmdb.detail.presentation.person
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.person... | 0 | Kotlin | 0 | 2 | d5b4d2ee9eb9616ab0e217f8d6fff45723bf5e58 | 4,228 | TMDB | MIT License |
shared/src/androidMain/kotlin/core/presentation/theme/Theme.android.kt | joaomanaia | 700,458,525 | false | {"Kotlin": 49359, "Shell": 228} | package core.presentation.theme
import android.app.Activity
import android.os.Build
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.dynamicDarkColorScheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtim... | 0 | Kotlin | 0 | 1 | db8658ed90dd7fc55df2041d9e23f44d9c213293 | 1,535 | compose-gobblet | Apache License 2.0 |
domain-jvm/src/main/kotlin/studio/lunabee/onesafe/domain/usecase/item/ReorderChildrenAtParentLastPositionUseCase.kt | LunabeeStudio | 624,544,471 | false | null | /*
* Copyright (c) 2023 Lunabee Studio
*
* 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 agree... | 0 | null | 1 | 2 | 6ea85e549543fa2a51eef486af1f81b9326e6467 | 2,107 | oneSafe6_SDK_Android | Apache License 2.0 |
vscode/src/main/kotlin/vscode/index.vscode.scm.module_vscode.kt | ALikhachev | 412,965,192 | false | {"Kotlin": 173475} | @file:JsModule("vscode")
@file:JsNonModule
@file:JsQualifier("scm")
@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS")
package vscode.scm
import kotlin.js.*
import org.khronos.webgl.*
import org.w3c.dom.*
import org.w3c.dom.events.*
impor... | 0 | Kotlin | 0 | 3 | 8ab5229183e712ecf3d30bba21a1be77905c9935 | 783 | vs-code-hello-world-kt-extension | MIT License |
avatargenlib/src/main/java/com/avatarfirst/avatargenlib/AvatarConstants.kt | AmosKorir | 235,802,339 | false | null | package com.avatarfirst.avatargenlib
/**
* Created by Korir on 1/22/20.
* <EMAIL>
*/
class AvatarConstants {
companion object {
val CIRCLE = 1
val RECTANGLE = 0
val COLOR900=900
val COLOR400=400
val COLOR700=700
}
} | 3 | Kotlin | 21 | 65 | e0c31fdad0b9ffb5a42ab78d586603109cb6eb54 | 243 | AvatarImageGenerator | Apache License 2.0 |
app/src/test/java/net/skyscanner/backpack/compose/map/BpkHotelMapMarkerTest.kt | Skyscanner | 117,813,847 | false | {"Kotlin": 2128015, "Shell": 3031, "Python": 2149} | /**
* Backpack for Android - Skyscanner's Design System
*
* Copyright 2018 Skyscanner Ltd
*
* 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... | 4 | Kotlin | 32 | 133 | 5cf310a42bca8aec8810ac835c25c505ed6b08f3 | 1,202 | backpack-android | Apache License 2.0 |
src/test/kotlin/no/nav/amt/deltaker/ApplicationTest.kt | navikt | 756,768,265 | false | {"Kotlin": 181432, "PLpgSQL": 635, "Dockerfile": 169} | package no.nav.amt.deltaker
import io.kotest.matchers.shouldBe
import io.ktor.client.request.get
import io.ktor.client.statement.bodyAsText
import io.ktor.http.HttpStatusCode
import io.ktor.server.testing.testApplication
import io.mockk.mockk
import no.nav.amt.deltaker.application.plugins.configureAuthentication
impor... | 1 | Kotlin | 0 | 0 | 587ac84f1db40322ae34cfb800a34bbd64ef055d | 1,097 | amt-deltaker | MIT License |
string-annotations/views/src/main/java/com/mmolosay/stringannotations/views/args/PixelSize.kt | mmolosay | 519,758,730 | false | null | package com.mmolosay.stringannotations.compose.args
import com.mmolosay.stringannotations.args.types.TextSize
/*
* Copyright 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... | 0 | Kotlin | 0 | 1 | 458fe7fd6c0529490b7851ec6e783834d0a53422 | 994 | StringAnnotations | Apache License 2.0 |
app/src/main/java/com/fmoreno/pokeapp/persistence/Converters.kt | fmoreno24 | 572,396,836 | false | {"Kotlin": 96867, "Java": 2650} | package com.fmoreno.pokeapp.persistence
import android.content.ContentValues.TAG
import android.util.Log
import androidx.room.TypeConverter
object Converters {
@TypeConverter
@JvmStatic
fun stringToList(data: String?): List<String>? {
return data?.let {
it.split(",").map {
... | 0 | Kotlin | 0 | 1 | 82fcdb8996b10542f6b8d2df5ee31f71bda9d965 | 705 | PokeApp | MIT License |
src/main/kotlin/me/sd_master92/customvoting/gui/buttons/shortcuts/PlayerInfoOverviewShortcut.kt | sanderderks | 306,723,396 | false | {"Kotlin": 444261} | package me.sd_master92.customvoting.gui.buttons.shortcuts
import com.github.shynixn.mccoroutine.bukkit.launch
import me.sd_master92.core.inventory.BaseItem
import me.sd_master92.core.inventory.GUI
import me.sd_master92.customvoting.CV
import me.sd_master92.customvoting.constants.enumerations.PMessage
import me.sd_mast... | 22 | Kotlin | 2 | 0 | 9613467cd3dd027b914ff7579353c17a090c891c | 1,271 | CustomVoting | MIT License |
src/main/java/space/impact/impact_compat/common/item/materials/MaterialGeneratedItemsPage1.kt | GT-IMPACT | 658,419,880 | false | null | package space.impact.impact_compat.common.item.materials
import net.minecraft.item.ItemStack
import space.impact.impact_compat.common.item.materials.api.CompatMaterial.Companion.MAX_MATERIALS
import space.impact.impact_compat.common.item.materials.api.OreDictionary
import space.impact.impact_compat.common.item.meta.Me... | 0 | Kotlin | 0 | 0 | 18ab2a6b7a88a76eb90a4edef9a8ce9db207f3c7 | 971 | Impact-compat | MIT License |
feature/class/src/main/java/com/muammarahlnn/learnyscape/feature/aclass/composable/ClassDetailsCard.kt | muammarahlnn | 663,132,195 | false | {"Kotlin": 1073986} | package com.muammarahlnn.learnyscape.feature.aclass.composable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
impo... | 0 | Kotlin | 0 | 0 | c9c827aef5560504255cb62d72303a85cd393d2a | 2,028 | Learnyscape | Apache License 2.0 |
jiamang/js/src/main/kotlin/moe/leekcake/we/sample/manager/MainCanvasManager.kt | leekcake | 208,479,415 | false | null | package moe.leekcake.we.sample.manager
import moe.leekcake.we.basekit.Utils.halfPI
import moe.leekcake.we.basekit.manager.CanvasManager
import moe.leekcake.we.sample.ConfigureStore
import moe.leekcake.we.sample.JiamangLeader
import moe.leekcake.we.sample.container.ClothespinViewer
import org.w3c.dom.Image
import kotli... | 0 | Kotlin | 0 | 0 | 35520c8cbab6aa8167493631cbfb942530894f76 | 1,826 | WE-jiamang | MIT License |
web3/src/commonTest/kotlin/dev.icerock.moko.web3/Web3Test.kt | y9san9 | 388,410,783 | true | {"Kotlin": 88311} | /*
* Copyright 2020 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.moko.web3
import com.soywiz.kbignum.BigInt
import com.soywiz.kbignum.bi
import dev.icerock.moko.web3.contract.AddressParam
import dev.icerock.moko.web3.contract.SmartContract
import dev.icerock... | 0 | Kotlin | 0 | 0 | 79a13ea4dde66b98cfa61a8c8f226ffc2d2a5b7e | 10,318 | moko-web3 | Apache License 2.0 |
src/main/kotlin/helpers/Booleans.kt | ChippyPlus | 850,474,357 | false | {"Kotlin": 118176, "Python": 2374, "F#": 446, "Java": 228, "Shell": 226} | package helpers
fun Boolean.toInt() = if (this) 1 else 0
fun Boolean.toLong() = if (this) 1L else 0L | 0 | Kotlin | 0 | 1 | 3193e1baffe8c3ac78df073ce1faa3123f22f0f8 | 101 | MVM | MIT License |
increase-kotlin-core/src/test/kotlin/com/increase/api/models/CardRetrieveParamsTest.kt | Increase | 614,596,742 | false | {"Kotlin": 10575238, "Shell": 3638, "Dockerfile": 399} | // File generated from our OpenAPI spec by Stainless.
package com.increase.api.models
import com.increase.api.models.*
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
class CardRetrieveParamsTest {
@Test
fun createCardRetrieveParams() {
CardRetrieveParams.builder(... | 0 | Kotlin | 0 | 5 | dc1361d08cb41ff45817c2e7638f53356f15cf8e | 695 | increase-kotlin | Apache License 2.0 |
local_libs/lib-dex-commons/src/main/kotlin/gov/cdc/dex/reports/HL7RedactorReport.kt | CDCgov | 510,836,864 | false | {"Kotlin": 789992, "Scala": 208820, "Python": 54355, "Java": 18013, "Shell": 16604, "Batchfile": 11894, "Go": 8661, "Dockerfile": 8140, "JavaScript": 7609, "Groovy": 4230, "HTML": 2177, "CSS": 979} | package gov.cdc.dex.reports
import gov.cdc.hl7.RedactInfo
data class HL7RedactorReport (
val report: RedactorReportData?,
val configs: List<String>?
): StageContent (
contentSchemaName = "hl7v2-redact",
contentSchemaVersion = "1.0.0"
)
data class RedactorReportData (
val entries: List<Red... | 108 | Kotlin | 14 | 10 | fd3f8608e6fb66a67bc4ef208b9df87a3b45e139 | 340 | data-exchange-hl7 | Apache License 2.0 |
app/src/main/java/com/yakasoftware/zerotech/views/FavoriteScreen.kt | YA-KA-SOFTWARE | 688,571,192 | false | {"Kotlin": 1705631, "JavaScript": 1060} | package com.yakasoftware.zerotech.views
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
imp... | 0 | Kotlin | 0 | 0 | ebb0567edf7cf79dc74c15c1c0183f011bf1dccd | 33,799 | zerotech | MIT License |
packages/embedded/src/main/kotlin/elide/embedded/impl/EmbeddedAppManagerImpl.kt | elide-dev | 506,113,888 | false | {"Kotlin": 4544382, "JavaScript": 1201497, "Java": 302542, "Protocol Buffer": 276092, "Shell": 84860, "Dockerfile": 51144, "Cap'n Proto": 35188, "Makefile": 30147, "CSS": 14730, "Python": 5989, "C": 4348, "Batchfile": 3016, "Ruby": 2474, "Handlebars": 1954, "HTML": 1010, "Rust": 525, "Swift": 23} | /*
* Copyright (c) 2024 Elide Technologies, Inc.
*
* Licensed under the MIT license (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://opensource.org/license/mit/
*
* Unless required by applicable law or agreed to in writing,... | 45 | Kotlin | 15 | 86 | bd9f5aed8523648256c9e9a29d87bd3c2b09ac54 | 788 | elide | MIT License |
composeApp/src/commonMain/kotlin/apps/currency_converter_udemy/utils/Functions.kt | vengateshm | 818,708,913 | false | {"Kotlin": 136686, "Swift": 1088, "HTML": 353, "CSS": 102} | package apps.currency_converter_udemy.utils
import androidx.compose.runtime.Composable
import androidx.compose.ui.text.font.FontFamily
import composemultiplatformsamples.composeapp.generated.resources.Res
import composemultiplatformsamples.composeapp.generated.resources.bebas_neue_regular
import kotlinx.datetime.Clock... | 0 | Kotlin | 0 | 0 | 7a9cb5f525586ee81842db4d3b2870c6f13dbe81 | 1,486 | ComposeMultiplatformSamples | Apache License 2.0 |
app/src/main/java/com/fruitable/Fruitable/app/presentation/viewmodel/user/UserInfoUpdateViewModel.kt | ApptiveDev | 535,231,127 | false | {"Kotlin": 234453} | package com.fruitable.Fruitable.app.presentation.viewmodel.user
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.fruitable.Fruitable.app.data.network.dto.user.NicknameDTO
import com.fruitable.Fru... | 0 | Kotlin | 3 | 3 | 70217aa3ebcf0a278fe2cb9fa9791e2621fd8f4f | 7,366 | apptive-17th-fruitable-frontend | MIT License |
app/src/main/java/com/example/instaparse/LoginActivity.kt | jackkououou | 474,101,609 | false | {"Kotlin": 20382} | package com.example.instaparse
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.EditText
import android.widget.Toast
import com.parse.ParseObject
import com.parse.ParseUser
class LoginActiv... | 2 | Kotlin | 0 | 0 | 76dabe95c7091e9d92717f204f14f9095cfde09b | 2,563 | InstaParse | Apache License 2.0 |
src/commonTest/kotlin/TestUtil.kt | GoLangsam | 397,872,334 | true | {"Kotlin": 174027, "Shell": 1083} | import com.soywiz.korge.view.Stage
import org.andstatus.game2048.model.Square
import org.andstatus.game2048.myLog
import org.andstatus.game2048.view.ViewData
import org.andstatus.game2048.view.viewData
// TODO: Make some separate class for this...
private val uninitializedLazy = lazy { throw IllegalStateException("Val... | 0 | null | 0 | 0 | bd222558816205a5dcac1b27114c64ef11efa739 | 2,132 | game2048 | Apache License 2.0 |
backend/src/main/kotlin/com/github/davinkevin/podcastserver/manager/worker/rss/RSSFinder.kt | rrymm | 188,617,315 | true | {"HTML": 20676268, "Kotlin": 946925, "TypeScript": 162734, "JavaScript": 95206, "Java": 76050, "CSS": 26948, "Shell": 5639, "Dockerfile": 3085, "Smarty": 328} | package com.github.davinkevin.podcastserver.manager.worker.rss
import arrow.core.Option
import arrow.core.getOrElse
import arrow.core.orElse
import com.github.davinkevin.podcastserver.service.ImageService
import com.github.davinkevin.podcastserver.service.JdomService
import com.github.davinkevin.podcastserver.entity.C... | 0 | HTML | 0 | 0 | 65533e8c266cdd929fa199f0d53a60117641199e | 2,311 | Podcast-Server | Apache License 2.0 |
src/main/kotlin/com/vermouthx/stocker/actions/StockerResetAction.kt | WhiteVermouth | 281,630,639 | false | {"Kotlin": 65200, "Java": 20100} | package com.vermouthx.stocker.actions
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.vermouthx.stocker.settings.StockerSetting
class StockerResetAction : AnAction() {
override fun update(e: AnActionEvent) {
val project = e.project
... | 11 | Kotlin | 12 | 92 | b8366c7372da6cc7e8ba47b2ceb53bd60f23f943 | 662 | intellij-investor-dashboard | Apache License 2.0 |
datalogger/src/main/java/org/obd/graphs/bl/datalogger/MetricsObserver.kt | tzebrowski | 326,375,780 | false | null | package org.obd.graphs.bl.datalogger
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.MutableLiveData
import org.obd.graphs.bl.trip.tripManager
import org.obd.metrics.api.model.*
internal class MetricsObserver : Lifecycle, ReplyObserver<Reply<*>>() {
private val metrics: MutableLiveData<ObdMetr... | 1 | Kotlin | 2 | 8 | 1d11f7c13f95cacbd40f68596895615b6676f4c0 | 1,247 | ObdGraphs | Apache License 2.0 |
app/src/main/java/in/dimigo/dimigoin/ui/splash/SplashActivity.kt | dimigo-din | 276,088,881 | false | {"Kotlin": 156078, "Ruby": 939} | package `in`.dimigo.dimigoin.ui.splash
import `in`.dimigo.dimigoin.R
import `in`.dimigo.dimigoin.data.usecase.auth.AuthUseCase
import `in`.dimigo.dimigoin.data.usecase.user.UserUseCase
import `in`.dimigo.dimigoin.data.util.SharedPreferencesManager
import `in`.dimigo.dimigoin.di.restartKoin
import `in`.dimigo.dimigoin.... | 10 | Kotlin | 1 | 21 | b89dbdb7f5a540d59a0b70bc91fb29eb7d6a9846 | 2,625 | dimigoin-android | Apache License 2.0 |
app/src/main/java/com/radityalabs/android/corona/features/main/presentation/sheet/BottomSheetUseCase.kt | jedsada-gh | 252,252,312 | true | {"Kotlin": 34244} | package com.radityalabs.android.corona.features.main.presentation.sheet
import com.radityalabs.android.corona.features.main.presentation.uimodel.FeedModel
interface BottomSheetUseCase {
suspend fun fetchFeeds(): List<FeedModel>
}
class BottomSheetUseCaseImpl(
private val repository: BottomSheetRepository
) :... | 0 | null | 0 | 1 | 3a1e4890def9fa8ff1a18f30551912ea3b472d5c | 445 | COVID-20 | Apache License 2.0 |
spring/src/test/kotlin/io/github/ccjhr/hikaku/converters/spring/consumes/SpringConverterConsumesTest.kt | cc-jhr | 494,216,376 | true | {"Kotlin": 738994, "RAML": 5024} | package io.github.ccjhr.hikaku.converters.spring.consumes
import io.github.ccjhr.collection.containsExactly
import io.github.ccjhr.hikaku.converters.spring.SpringConverter
import io.github.ccjhr.hikaku.endpoints.Endpoint
import io.github.ccjhr.hikaku.endpoints.HttpMethod.*
import io.github.ccjhr.mustSatisfy
import org... | 0 | Kotlin | 0 | 0 | 8cf34fdbd714539b126d8bf1a8ca705e1b2c69b1 | 83,697 | hikaku | Apache License 2.0 |
server/src/test/kotlin/io/rippledown/textdiff/DiffGeneratorTest.kt | TimLavers | 513,037,911 | false | {"Kotlin": 1155031, "Gherkin": 83762} | package io.rippledown.textdiff
import io.kotest.matchers.shouldBe
import io.rippledown.model.diff.Addition
import io.rippledown.model.diff.Removal
import io.rippledown.model.diff.Replacement
import io.rippledown.model.diff.Unchanged
import org.junit.Test
class DiffGeneratorTest {
@Test
fun add() {
di... | 0 | Kotlin | 0 | 0 | 6bfe6e87d9f300f8e7eaa74afe2be2feee4b4252 | 4,706 | OpenRDR | MIT License |
architecture/kmm-tagd-core/src/commonMain/kotlin/io/tagd/core/Cancellable.kt | pavan2you | 589,617,975 | false | {"Kotlin": 584478, "Shell": 5260, "Swift": 1392} | /*
* Copyright (C) 2021 The TagD Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 0 | Kotlin | 3 | 2 | bf366e513f98f6af03f77e3755d3dfc65d6d060b | 1,172 | kmm-clean-architecture | Apache License 2.0 |
app/src/main/java/com/example/sakina/core/util/Resource.kt | ahmedfkri | 727,766,275 | false | {"Kotlin": 179142} | package com.example.sakina.core.util
sealed class Resource<T>(
val data: T? = null,
val message: String? = null,
val code: Int? = null
) {
class Loading<T>(data: T? = null) : Resource<T>(data)
class Success<T>(data: T?) : Resource<T>(data)
class Error<T>(message: String?, data: T? = null, code... | 0 | Kotlin | 0 | 0 | c876e59a4e2a1d8d6945f9903cf73ea454a4c2d6 | 365 | Sakina | MIT License |
cohort-core/src/main/kotlin/com/sksamuel/cohort/gc/Garbage.kt | sksamuel | 342,731,382 | false | {"Kotlin": 163582} | package com.sksamuel.cohort.gc
import java.lang.management.ManagementFactory
fun getGcInfo(): Result<GCInfo> = runCatching {
GCInfo(
ManagementFactory.getGarbageCollectorMXBeans().map {
GarbageCollector(
it.name,
it.collectionTime,
it.collectionCount,
)
})
}
data class G... | 4 | Kotlin | 4 | 97 | 0e113858c6d7f924e5831ed40716988f187e355e | 480 | cohort | Apache License 2.0 |
app/src/main/java/br/com/fiereck/academia/model/WorkoutModel.kt | tiagofiereck | 385,329,146 | false | null | package br.com.fiereck.academia.model
data class WorkoutModel(
val nameWorkout: String,
val description: String,
val date: Long,
val id: String
)
| 0 | Kotlin | 0 | 0 | ca98fdbcd97ecd9f0140baf97927d2c6877e2caa | 163 | Academia | MIT License |
sample/src/main/java/com/google/android/horologist/spec/SideComposables.kt | google | 451,563,714 | false | {"Kotlin": 3151160, "Shell": 5169, "Java": 708, "Starlark": 361} | /*
* Copyright 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 16 | Kotlin | 93 | 565 | bde87db14f63338904550fc1827d0141ebe24d9a | 2,865 | horologist | Apache License 2.0 |
app/src/main/java/com/qweex/quite/QuiteAdapter.kt | jonnypetraglia | 113,760,546 | false | null | package com.qweex.quite
import android.content.Context
import android.database.Cursor
import android.net.Uri
import android.provider.MediaStore
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter
import android.support.v4.view.PagerAdapter
import android.util.Log
import jav... | 0 | Kotlin | 0 | 0 | 6c56c1a922d2e6cf2017dcbc2ba11865b035d058 | 5,033 | quite-android | MIT License |
app/src/main/java/com/iostyle/jetpack/ui/fragment/LoginFragment.kt | iostyle | 203,972,145 | false | null | package com.iostyle.jetpack.ui.fragment
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.EditText
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.... | 0 | Kotlin | 0 | 1 | 9b672ba527d0224957581bfdd800dc6c0818cc40 | 1,107 | LearnJetpack | MIT License |
src/test/kotlin/de/smartsquare/starter/mqtt/KGenericContainer.kt | SmartsquareGmbH | 344,485,602 | false | null | package de.smartsquare.starter.mqtt
import org.testcontainers.containers.GenericContainer
import org.testcontainers.utility.DockerImageName
class KGenericContainer(imageName: DockerImageName) : GenericContainer<KGenericContainer>(imageName)
| 1 | Kotlin | 2 | 5 | 6d667db20f6d1ca10fa6305cb09e071960710568 | 243 | mqtt-starter | MIT License |
app/src/main/java/com/example/androiddevchallenge/DogDetails.kt | onlyloveyd | 343,257,406 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | a22239bcf519bdf8f94e288184d77fe115b8bfb1 | 4,214 | Jetpack-Compose-Dog | Apache License 2.0 |
server/web/src/test/kotlin/hu/bme/softarch/amoeba/web/db/DbGameRepoTest.kt | mktiti | 215,282,983 | false | null | package hu.bme.softarch.amoeba.web.db
import hu.bme.softarch.amoeba.game.Pos
import hu.bme.softarch.amoeba.game.Sign
import hu.bme.softarch.amoeba.web.api.FullGame
import hu.bme.softarch.amoeba.web.api.GameData
import hu.bme.softarch.amoeba.web.api.GameInfo
import hu.bme.softarch.amoeba.web.util.setLogLocation
import ... | 3 | Kotlin | 0 | 0 | 630f250dfbcfe80766dd581b5c4c390c54ccdd29 | 5,037 | OnlineAmoeba | MIT License |
secure-shared-preferences/src/main/java/com/github/ibara1454/secure_shared_preferences/cipher/Encoder.kt | ibara1454 | 257,060,858 | false | null | package com.github.ibara1454.secure_shared_preferences.cipher
/**
* The encoder provides the method [encode] to transform the original data into another format.
*/
interface Encoder<T> {
/**
* Transform the given data to another format.
* @param data any data.
* @returns transformed data.
*/
... | 1 | Kotlin | 0 | 2 | b0173fe5fc802472e68634372fe2b94150a6101a | 349 | secure-shared-preferences | MIT License |
src/main/kotlin/react/bootstrap/components/alert/Alert.kt | bmalkow | 261,381,403 | true | {"Kotlin": 255733, "CSS": 1187, "HTML": 690, "JavaScript": 557} | package react.bootstrap.components.alert
import kotlinx.html.ButtonType
import kotlinx.html.js.onClickFunction
import kotlinx.html.role
import org.w3c.dom.events.Event
import react.RBuilder
import react.RComponent
import react.RHandler
import react.RState
import react.ReactElement
import react.bootstrap.appendClass
im... | 0 | null | 1 | 0 | 06819e7f9030cfa69c35cd1fe6eeb3610abed623 | 3,084 | kotlin-react-bootstrap | MIT License |
src/main/kotlin/demo/job/DemoJob9.kt | gdg-minsk | 793,403,177 | false | {"Kotlin": 26922} | package demo.job
import demo.suspension.delay
import kotlinx.coroutines.Job
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
| 0 | Kotlin | 0 | 0 | b272950f708218ddccf574181edcf5bfa3d43ddc | 149 | coffe-code-kotlin-coroutines | Apache License 2.0 |
lib-testing/src/main/kotlin/djei/clockpanda/testing/TestApp.kt | Djei | 676,192,849 | false | null | package djei.clockpanda.testing
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.properties.ConfigurationPropertiesScan
@SpringBootApplication(
scanBasePackages = ["djei.clockpanda"]
)
@ConfigurationPropertiesScan(basePackages = ["djei.clockpanda"])
class... | 0 | Kotlin | 0 | 2 | e6869ca9a7edb0dcaa3cfe41eb62c7946bb04769 | 329 | clockpanda | Apache License 2.0 |
apollo-ast/src/main/kotlin/com/apollographql/apollo3/ast/gql.kt | Pitel | 382,259,274 | true | {"Kotlin": 1351692, "ANTLR": 8207, "Java": 3282, "Shell": 832} | package com.apollographql.apollo3.ast
/**
* The GraphQL AST definition
*
* This is all in one file so we can use sealed classes. Extensions are in gqlxyz.kt
*/
/**
* A node in the GraphQL AST.
*
* The structure of the different nodes matches closely the one of the GraphQL specification
* (https://spec.graphql... | 0 | Kotlin | 0 | 0 | d6e74e0ca4c9029552c9b08b8898684734b994a6 | 32,788 | apollo-android | MIT License |
app/src/androidTest/java/com/csosa/healiostest/di/FakeNetworkModule.kt | cdavidsp | 466,561,851 | false | {"Kotlin": 68581} | package com.csosa.healiostest.di
import org.koin.dsl.module
val fakeNetworkModule = module {
single { provideRetrofit(okHttpClient = get(), url = "http://localhost:8082/") }
single { provideHealiosApiService(retrofit = get()) }
single { provideOkHttpClient() }
}
| 0 | Kotlin | 0 | 0 | 8b4cafa4bf270d46e318f2beeb2dcd3606814b1c | 280 | canarytest | Apache License 2.0 |
src/commonMain/kotlin/org/breact/helper/useEvent.kt | wy2010344 | 660,453,263 | false | null | package helper
fun <T:(vararg:Any?)->Any> useEvent(callback:T):T{
val get= useAlaway(callback)
return useCallback({
get().invoke(it)
},1) as T
} | 0 | Kotlin | 0 | 0 | bbd89583594284e008ad9125f7b0ea3efe10c8a4 | 165 | kotlin-better-react | MIT License |
inject/src/test/kotlin/fr/xgouchet/elmyr/inject/fixture/KotlinInjectedGenerics.kt | xgouchet | 92,030,208 | false | null | package fr.xgouchet.elmyr.inject.fixture
import fr.xgouchet.elmyr.annotation.Forgery
internal open class KotlinInjectedGenerics {
@Forgery lateinit var publicFooList: List<Foo>
@Forgery lateinit var publicFooSet: Set<Foo>
@Forgery lateinit var publicFooMap: Map<Foo, Bar>
@Forgery lateinit var publicF... | 6 | null | 3 | 83 | 0ab6c3a673fd8771e9fc02f0676a3a886992a1ef | 351 | Elmyr | MIT License |
src/main/kotlin/ru/krindra/vknorthtypes/utils/UtilsShortLink.kt | kravandir | 745,597,090 | false | {"Kotlin": 633233} | package ru.krindra.vknorthtypes.utils
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class UtilsShortLink (
@SerialName("url") val url: String? = null,
@SerialName("access_key") val accessKey: String? = null,
@SerialName("short_url") val shortUrl: Stri... | 0 | Kotlin | 0 | 0 | 508d2d1d59c4606a99af60b924c6509cfec6ef6c | 382 | VkNorthTypes | MIT License |
Abstract Games/src/main/kotlin/com/castlefrog/games/asg/hex/HexPresenter.kt | paulalewis | 95,318,844 | false | {"Kotlin": 41436, "Java": 24010} | package com.castlefrog.games.asg.hex
import com.castlefrog.agl.domains.hex.HexAction
import com.castlefrog.agl.domains.hex.HexSimulator
import com.castlefrog.agl.domains.hex.HexState
import com.castlefrog.agl.util.isTerminalState
import com.castlefrog.games.asg.model.Domain
import com.castlefrog.games.asg.model.Game
i... | 0 | Kotlin | 0 | 0 | 77df4bf995fc05fe92bf303b0c1e0d88bb915003 | 1,458 | abstract-games | MIT License |
src/commonTest/kotlin/it/czerwinski/kotlin/util/SuccessFiltersTest.kt | sczerwinski | 128,371,706 | false | {"Kotlin": 182571, "Java": 198} | /*
* Copyright 2018-2022 Slawomir Czerwinski
* Copyright EPFL and Lightbend, 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
*... | 8 | Kotlin | 2 | 7 | 6f1dbd9b90aabc4514f590b5709bbcfd5672be95 | 4,340 | kotlin-util | Apache License 2.0 |
app/src/main/java/com/example/android/cryptoalert/ui/news/NewsViewModel.kt | adrianpbv | 527,847,165 | false | null | package com.example.android.cryptoalert.ui.news
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class NewsViewModel : ViewModel() {
private val _text = MutableLiveData<String>().apply {
value = "This is news Fragment"
}
val text: Li... | 0 | Kotlin | 0 | 0 | 44a5396f7e639635fcfafce4a469f82630041f39 | 345 | CryptoAlert | Apache License 2.0 |
app/src/main/java/com/github/skytoph/simpleweather/data/weather/cache/model/content/ContentDB.kt | skytoph | 482,520,275 | false | {"Kotlin": 376392} | package com.github.skytoph.simpleweather.data.weather.cache.model.content
import com.github.skytoph.simpleweather.core.Mappable
import com.github.skytoph.simpleweather.data.weather.cache.model.content.forecast.ForecastDB
import com.github.skytoph.simpleweather.data.weather.mapper.content.ContentDBToDataMapper
import c... | 0 | Kotlin | 0 | 0 | 68b7ff8c2f81578c63ba2b305de4d3e387b533dd | 1,177 | SimpleWeather | MIT License |
simplex/src/main/java/io/em2m/simplex/parser/ExprParser.kt | juliencruz | 252,764,841 | true | {"Kotlin": 496366, "Java": 1906} | package io.em2m.simplex.parser
import io.em2m.simplex.model.*
class ExprParser(private val keyResolver: KeyResolver, private val pipeTransformResolver: PipeTransformResolver) {
private val pipeExpr = Regex("\\$\\{([^}]*)}")
fun parse(expr: String): ValueExpr {
val text = expr.split(pipeExpr).map(::C... | 0 | Kotlin | 0 | 0 | deeeac56c6fecacaa7d619ff5802d236c3be88d9 | 2,322 | em2m-java-sdk | Apache License 2.0 |
app/src/main/java/com/example/newstrending/ui/home/view/HomeActivity.kt | pavanmankar | 716,406,389 | false | {"Kotlin": 67346} | package com.example.newstrending.ui.home.view
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.newstrending.databinding.ActivityMainBinding
import com.example.newstrending.ui.country.view.CountryListActivity
import com.example.newstrending.ui.home.viewmodel.HomeViewModel
impo... | 0 | Kotlin | 2 | 5 | 965c4dd0681807bbc62e9ff2a87fb5efbb92ac9f | 1,808 | newsAppDaggerHilt | Apache License 2.0 |
app/src/main/java/com/kylecorry/trail_sense/weather/ui/WeatherFragment.kt | kylecorry31 | 215,154,276 | false | null | package com.kylecorry.trail_sense.weather.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isInvisible
import androidx.core.view.isVisible
import com.kylecorry.andromeda.alerts.toast
import com.kylecorry.andromeda.core.syste... | 281 | Kotlin | 37 | 396 | f42af867337e90b18fb91590246ec72f04021f2e | 13,054 | Trail-Sense | MIT License |
app/src/main/kotlin/com/github/hiking93/m3demo/widgets/WidgetSectionTypes.kt | Dcard | 539,924,454 | false | {"Kotlin": 51532} | package com.github.hiking93.m3demo.widgets
object WidgetSectionTypes {
const val BUTTONS = 0
const val FAB = 10
const val SEGMENTED_BUTTONS = 20
const val CHIPS = 30
const val PROGRESS_INDICATORS = 40
const val SLIDERS = 50
const val CHECK_BOX = 60
const val RADIO_BUTTON = 70
const ... | 0 | Kotlin | 0 | 10 | ad01b40a6862c78a90813b721229c5b906433fb5 | 419 | material3-android-demo | Apache License 2.0 |
src/main/kotlin/com/github/godmoonlight/moonstyle/services/MyApplicationService.kt | sudajiaqi | 316,188,061 | false | {"Kotlin": 44912} | package com.github.godmoonlight.moonstyle.services
import com.github.godmoonlight.moonstyle.MoonStyle
import com.github.godmoonlight.moonstyle.settings.MoonSettingConfig
import com.github.godmoonlight.moonstyle.settings.ToJsonConfig
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi... | 1 | Kotlin | 0 | 1 | f1104a95edb2e94e42050dc8244c1d43498cedd0 | 1,302 | moon-style | Apache License 2.0 |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/TextBold.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.regular
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Regular.TextBold: ImageVector
get() {
if (_textBold != null) {
... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 1,834 | compose-fluent-ui | Apache License 2.0 |
Collection/Map/part04.kt | scp504677840 | 133,541,707 | false | null | package part07
/**
* Runtime
*/
fun main(args: Array<String>) {
println("Runtime.version:${Runtime.version()}")
val runtime = Runtime.getRuntime()
//val p = runtime.exec("notepad.exe")
//暂停一会
//Thread.sleep(5000)
//杀掉子线程
//p.destroy()
} | 0 | Kotlin | 0 | 0 | 36f9b85bf8d955b12a69684fc013125a26cae846 | 272 | JavaKotlin | Apache License 2.0 |
src/main/kotlin/com/github/pushpavel/autocp/gather/filegen/FileGenerationListener.kt | Pushpavel | 372,015,012 | false | {"Kotlin": 167445, "HTML": 56159} | package com.github.pushpavel.autocp.gather.filegen
import com.github.pushpavel.autocp.database.models.Problem
import com.github.pushpavel.autocp.gather.models.BatchJson
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.util.messages.Topic
interface FileGenerationListener {
companion object {
... | 22 | Kotlin | 13 | 41 | 6324b29ecb1576b8bb8691586659f0f57415676b | 604 | AutoCp | MIT License |
sample/app/src/commonMain/kotlin/com/number869/decomposeSimplifications/ui/screens/category2option1/Category2Option1Screen.kt | Number869 | 720,841,879 | false | {"Kotlin": 98117, "Shell": 579} | package com.number869.decomposeSimplifications.ui.screens.category2option1
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import andr... | 0 | Kotlin | 0 | 2 | 768cb4aa56fea4c53e59dcfef4955ad7891dfb73 | 893 | DecomposeSimplifications | Apache License 2.0 |
app/src/main/java/com/example/foodrecipeapplicaiton/ui/theme/DarkColor.kt | sumeyrapolat | 809,992,467 | false | {"Kotlin": 147568} | package com.example.foodrecipeapplicaiton.ui.theme
import androidx.compose.ui.graphics.Color
//My Colors
val TextColorDark = Color(0xFFFFFFFF)
val OutlinedTextFieldColorDark = Color(0xFFCCCCCC)
val LabelColorDark = Color(0xFF888888)
val HintColorDark = Color(0xFF444444)
val BackgroundColorDark = Color(0xFF000000)
va... | 0 | Kotlin | 0 | 0 | f5a364557dafbdec33c3a26cf153f9d05fdc7ef4 | 489 | FoodRecipeApplication | MIT License |
app/src/main/java/com/onkarnene/synerzip/weather/Extension.kt | Onkarn92 | 303,047,197 | false | {"Kotlin": 46985} | package com.onkarnene.synerzip.weather
import android.content.Context
import android.os.Handler
import android.view.inputmethod.InputMethodManager
import android.widget.EditText
import com.google.android.material.textfield.TextInputEditText
import com.google.android.material.textfield.TextInputLayout
import com.onkarn... | 0 | Kotlin | 0 | 0 | 0b877f3db8a30179d2479a7fe5b43cd5071306e2 | 1,502 | weather-app | MIT License |
src/main/java/io/github/eendroroy/portwallet/request/nested/ShippingRequest.kt | eendroroy | 738,849,450 | false | {"Kotlin": 28925} | package io.github.eendroroy.portwallet.request.nested
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonRootName
@JsonRootName("shipping")
data class ShippingRequest(
@JsonProperty("customer") var customer: CustomerRequest? = null
)
| 0 | Kotlin | 0 | 0 | b2f237dad82a432f4c03361760d1686b51e8e52f | 286 | portwallet-sdk | MIT License |
app/src/main/java/br/edu/utfpr/marvas/greenbenchmark/ui/account/AccountFragment.kt | marvastsi | 555,979,108 | false | null | package br.edu.utfpr.marvas.greenbenchmark.ui.account
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Color
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view... | 0 | Kotlin | 0 | 0 | b2dcdda0b2dbb5e971c97bbcabd11f6018f8367a | 10,100 | benchmark-android-app | MIT License |
src/main/kotlin/tk/skulk/kraft/player/KraftPlayer.kt | Skulk-Network | 548,319,303 | false | null | package tk.skulk.kraft.player
import org.bukkit.entity.Player as BukkitPlayer
public fun BukkitPlayer.toKraft(): KraftPlayer = KraftPlayerImpl(this)
public interface KraftPlayer : KraftOfflinePlayer {
override val bukkit: BukkitPlayer
}
| 0 | Kotlin | 0 | 3 | 54216110ed4778b878afcb1ed4db42b4db14d46c | 244 | Kraft | MIT License |
app/src/main/java/com/github/kieuthang/login_chat/common/utils/TimeUtils.kt | KieuThang | 155,848,776 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "XML": 31, "Kotlin": 51, "Java": 4} | package com.github.kieuthang.login_chat.common.utils
import android.annotation.SuppressLint
import java.text.ParseException
import java.text.SimpleDateFormat
import java.util.*
object TimeUtils {
fun convertDateTime(drawTime: String?): Long {
val calendar = Calendar.getInstance()
val simpleDateFo... | 1 | null | 1 | 1 | 6285c0a85430f1c2133c531f5ae7b0b106fc2ec6 | 1,838 | Socket.Chat_Android | MIT License |
lib/common/src/main/java/com/tongsr/common/svga/utils/log/DefaultLogCat.kt | ujffdi | 628,844,063 | false | {"Java": 1874289, "Kotlin": 463042, "Groovy": 31947} | package com.tongsr.common.svga.utils.log
import android.util.Log
import com.tongsr.common.svga.utils.log.ILogger
/**
* 内部默认 ILogger 接口实现
*/
class DefaultLogCat : ILogger {
override fun verbose(tag: String, msg: String) {
Log.v(tag, msg)
}
override fun info(tag: String, msg: String) {
Lo... | 1 | null | 1 | 1 | d5004ca96f384cb26dbc610617107c3f12f05211 | 613 | Eyepetizer | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/editor/quickDoc/multiplatform/OnActualValueParameterDeclaration.kt | JetBrains | 2,489,216 | false | null | // PLATFORM: Common
// FILE: Foo.kt
/**
* Doc for expected class Foo
*
* @param param doc for expected `param` of function `foo`
*/
expect fun foo(param: String)
// PLATFORM: Jvm
// FILE: Foo.kt
// MAIN
actual fun foo(pa<caret>ram: String) {}
//INFO: <div class='definition'><pre><span style="color:#000080;font-we... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 685 | intellij-community | Apache License 2.0 |
app/src/main/java/com/andreapivetta/blu/ui/search/tweets/SearchTweetPresenter.kt | ziggy42 | 59,509,988 | false | null | package com.andreapivetta.blu.ui.search.tweets
import com.andreapivetta.blu.data.model.Tweet
import com.andreapivetta.blu.data.twitter.TwitterAPI
import com.andreapivetta.blu.ui.timeline.TimelinePresenter
import rx.android.schedulers.AndroidSchedulers
import rx.schedulers.Schedulers
import timber.log.Timber
import twi... | 2 | null | 16 | 78 | 2443e47e0af3d89424a93d264782f7e3e7c44a47 | 2,329 | Blum | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.