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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/ink/ptms/chemdah/module/command/CommandChemdahPlayerLevel.kt | TabooLib | 338,114,548 | false | null | package ink.ptms.chemdah.module.command
import ink.ptms.chemdah.api.ChemdahAPI.chemdahProfile
import ink.ptms.chemdah.module.level.LevelSystem
import ink.ptms.chemdah.module.level.LevelSystem.getLevelOption
import ink.ptms.chemdah.module.level.LevelSystem.giveExperience
import ink.ptms.chemdah.module.level.LevelSystem... | 8 | Kotlin | 37 | 52 | f2e2c0616e223d58491e38a6f9abd5fb7f52565f | 4,626 | chemdah | MIT License |
wisefy/src/androidTest/java/com/isupatches/wisefy/GetCurrentNetworkInfoTest.kt | project-kotinos | 277,452,347 | false | {"Gradle": 16, "Markdown": 23, "Java Properties": 1, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "YAML": 3, "INI": 3, "Proguard": 3, "Kotlin": 190, "XML": 37, "Java": 1, "CSS": 1, "HTML": 195, "CODEOWNERS": 1} | package com.isupatches.wisefy
import android.net.NetworkInfo
import com.isupatches.wisefy.callbacks.GetCurrentNetworkInfoCallbacks
import com.isupatches.wisefy.constants.MISSING_PARAMETER
import com.isupatches.wisefy.internal.base.BaseInstrumentationTest
import org.junit.Assert.assertEquals
import org.junit.Assert.a... | 1 | null | 1 | 1 | dc056a2a725072d1c58d1803b5b12edf796f93ad | 3,552 | WiseFy | Apache License 2.0 |
arouter-compiler/src/main/java/com/alibaba/android/arouter/compiler/utils/KspUtils.kt | CxrHowen | 625,142,750 | false | {"Java Properties": 2, "Markdown": 3, "Gradle": 12, "Shell": 1, "Batchfile": 1, "Text": 1, "Ignore List": 1, "INI": 5, "Java": 82, "Kotlin": 12, "XML": 25, "YAML": 1, "Groovy": 6, "Proguard": 1, "HTML": 1} | package com.alibaba.android.arouter.compiler.utils
import com.google.devtools.ksp.KspExperimental
import com.google.devtools.ksp.getAnnotationsByType
import com.google.devtools.ksp.isAnnotationPresent
import com.google.devtools.ksp.symbol.KSAnnotated
import com.google.devtools.ksp.symbol.KSClassDeclaration
import com.... | 1 | null | 1 | 1 | 1b9adf4300ab8b6d701996c7977c330f55832de7 | 5,026 | ARouter | Apache License 2.0 |
simulator/runtime/src/main/kotlin/net/corda/simulator/runtime/SimulatedNodeBase.kt | corda | 346,070,752 | false | {"Kotlin": 18686067, "Java": 321931, "Smarty": 79539, "Shell": 56594, "Groovy": 28415, "TypeScript": 5826, "PowerShell": 4985, "Solidity": 2024} | package net.corda.simulator.runtime
import net.corda.simulator.SimulatedNode
import net.corda.simulator.crypto.HsmCategory
import net.corda.simulator.runtime.messaging.SimFiber
import net.corda.v5.application.persistence.PersistenceService
import org.slf4j.LoggerFactory
import java.security.PublicKey
abstract class S... | 130 | Kotlin | 15 | 42 | 6ef36ce2d679a07abf7a5d95a832e98bd4d4d763 | 967 | corda-runtime-os | Apache License 2.0 |
app/src/main/java/com/hani/btapp/core/service/FirmwareUpdateUiState.kt | tomrodinger | 534,168,828 | false | {"Kotlin": 135017} | package com.hani.btapp.core.service
/**
* Created by hanif on 2022-08-20.
*/
data class FirmwareUpdateUiState(
val isUpdating: Boolean = false,
val updateSteps: List<FirmwareUpdateUiStep> = listOf(),
val totalBytes: Int = 0,
val sentBytes: Int = 0,
) {
fun addStep(step: FirmwareUpdateUiStep): Fir... | 0 | Kotlin | 0 | 0 | 7bf08f9d0c2fc1d0eaee9e7bdb1071dcb7079e64 | 461 | Android_app_for_line_following_robot | Apache License 2.0 |
remark-sdk/src/main/java/com/stelmashchuk/remark/feature/post/PostComment.kt | VovaStelmashchuk | 350,405,976 | false | null | package com.stelmashchuk.remark.feature.post
import com.stelmashchuk.remark.api.comment.CommentRoot
import com.stelmashchuk.remark.api.comment.EditCommentUseCase
import com.stelmashchuk.remark.api.comment.PostCommentUseCase
internal class PostComment(
private val postCommentUseCase: PostCommentUseCase,
privat... | 8 | Kotlin | 2 | 4 | b18c9f3adb05f33d84bf60f3de7fbeb75edf195c | 1,188 | RadiotApp | MIT License |
cadenas-core/src/commonTest/kotlin/com/galois/cadenas/crypto/RoundTrip.kt | GaloisInc | 873,867,559 | false | {"Kotlin": 297817} | package com.galois.cadenas.crypto
import io.kotest.core.spec.style.StringSpec
import io.kotest.property.Arb
import io.kotest.property.arbitrary.byte
import io.kotest.property.arbitrary.byteArray
import io.kotest.property.arbitrary.constant
import io.kotest.property.arbitrary.int
import io.kotest.property.forAll
priva... | 1 | Kotlin | 0 | 0 | 13bec2fb2959936fce8d3461518cc2b3e542540c | 1,513 | Cadenas | MIT License |
baseRes/src/main/java/cn/mtjsoft/www/baseres/cache/SpUtlils.kt | mtjsoft | 481,203,216 | false | {"Kotlin": 35029, "Java": 12689} | package cn.mtjsoft.www.baseres.cache
object SpUtlils : ISp {
private val sp by lazy {
MmkvManager.mmkv
}
override fun putString(key: String, value: String) {
sp?.putString(key, value)
}
override fun getString(key: String, default: String): String {
return sp?.getString(ke... | 0 | Kotlin | 0 | 0 | 2c258fb55e1c1e4f8e292661de58096d022d2d91 | 1,233 | AudioAndVideoProject | Apache License 2.0 |
app/src/main/java/com/example/toncontest/ui/theme/screens/main/settings/SettingsScreen.kt | L0mTiCk | 625,185,980 | false | null | package com.example.toncontest.ui.theme.screens.main.settings
import android.content.Context
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundat... | 0 | Kotlin | 0 | 0 | 2115bf7c3bc4558a40d2ab9181b295940848df7b | 2,637 | TONContest | MIT License |
src/commonMain/kotlin/io/revenuemonster/sdk/model/response/TopUpHistory.kt | RevenueMonster | 370,565,536 | false | {"Kotlin": 74776} | package io.revenuemonster.sdk.model.response
import kotlinx.datetime.Instant
import kotlinx.serialization.Serializable
@Serializable
data class TopUpHistory(
val id: String,
val walletId: String,
val referenceId: String,
val adminId: String,
val detail: String,
val method: String,
val stat... | 5 | Kotlin | 0 | 2 | d5c60e62cc9242839dc45c7bafba1b4ef2d639ab | 384 | rm-kotlin-sdk | MIT License |
wraith/src/main/java/com/nomba/wraith/ui/shelters/transfer/TransferExpiredShelter.kt | kudi-inc | 762,178,069 | false | {"Kotlin": 110256} | package com.nomba.wraith.ui.shelters.transfer
import com.nomba.wraith.core.NombaManager
import com.nomba.wraith.core.Shelter
import com.nomba.wraith.databinding.TransferExpiredViewBinding
class TransferExpiredShelter(private var manager : NombaManager, activityTransferExpiredViewBinding: TransferExpiredViewBinding) ... | 0 | Kotlin | 0 | 0 | 339d91132edcc0c6fd72b1f79ce8287437fb2754 | 926 | nomba-android-sdk | MIT License |
app/src/main/java/com/battlelancer/seriesguide/shows/search/discover/ShowsDiscoverViewModel.kt | UweTrottmann | 1,990,682 | false | {"Kotlin": 2280980, "Java": 880919, "PowerShell": 1268} | // SPDX-License-Identifier: Apache-2.0
// Copyright 2018-2024 <NAME>
package com.battlelancer.seriesguide.shows.search.discover
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.asFlow
import androidx.lifecycle.viewModelScope
import com.battlelancer.seriesguide.provid... | 56 | Kotlin | 401 | 1,966 | c7bc6445ecc58b841c1887a56146dc2d2f817007 | 3,134 | SeriesGuide | Apache License 2.0 |
quickhttpclient/src/main/java/com/relatablecode/quickhttpclient/logging_utils/Logger.kt | thaer-al-khishen | 709,499,444 | false | {"Kotlin": 56738} | package com.relatablecode.quickhttpclient.logging_utils
import android.util.Log
/**
* A utility logger to aid in logging messages of different levels.
*/
object Logger {
var condition: Boolean = true
fun d(tag: String, message: String) {
if (condition) {
Log.d(tag, message)
}
... | 0 | Kotlin | 0 | 0 | 66365a96a81a038bf5703ce48c20f8f6afb3db98 | 487 | quick-http-client | Apache License 2.0 |
src/main/kotlin/com/microservices/service/SquigglyConfig.kt | nsm257 | 190,715,422 | false | null | package com.microservices.service
import com.fasterxml.jackson.databind.ObjectMapper
import com.github.bohnman.squiggly.web.SquigglyRequestFilter
import com.github.bohnman.squiggly.context.provider.SquigglyFilterHolder.setFilter
import com.github.bohnman.squiggly.web.RequestSquigglyContextProvider
import com.github.bo... | 0 | Kotlin | 0 | 0 | 6123dc49fa486ef353e47f96a8ba72060f73c302 | 1,034 | filter-service | Apache License 2.0 |
library/src/main/java/net/sarangnamu/common/arch/adapter/BkAdapter.kt | aucd29 | 46,907,830 | false | null | /*
* Copyright 2016 <NAME> All rights reserved.
* http://www.sarangnamu.net
*
* 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... | 0 | Kotlin | 0 | 0 | bc0630be6e34e4a3425883b49b70b507b6b184db | 5,749 | common | Apache License 2.0 |
src/commonMain/kotlin/fr/acinq/lightning/db/ChannelsDb.kt | ACINQ | 243,326,972 | false | null | package fr.acinq.lightning.db
import fr.acinq.bitcoin.ByteVector32
import fr.acinq.lightning.CltvExpiry
import fr.acinq.lightning.channel.ChannelStateWithCommitments
interface ChannelsDb {
suspend fun addOrUpdateChannel(state: ChannelStateWithCommitments)
suspend fun removeChannel(channelId: ByteVector32)
... | 16 | Kotlin | 10 | 38 | 57af9b447df16b7a0b537d054bf6112e6d9c13c5 | 655 | lightning-kmp | Apache License 2.0 |
kmm/kmm-gradle-plugins/src/main/kotlin/com/gchristov/newsfeed/kmmgradleplugins/KmmModulePlugin.kt | gchristov | 473,375,093 | false | {"Kotlin": 171793, "Swift": 75033, "Shell": 1988} | package com.gchristov.newsfeed.kmmgradleplugins
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
open class KmmModulePlugin : KmmPlatformPlugin() {
override fun apply(target: Project) {
super.apply(target)
targ... | 4 | Kotlin | 0 | 9 | 9beaad41f6111545edd6b70c792d3a9d0787794a | 1,102 | newsfeed-kmm | Apache License 2.0 |
newm-shared/src/main/kotlin/io/newm/shared/exception/HttpStatusException.kt | projectNEWM | 447,979,150 | false | {"Kotlin": 2397847, "HTML": 185274, "Dockerfile": 2535, "Shell": 1986, "Procfile": 60} | package io.newm.shared.exception
import io.ktor.http.HttpStatusCode
sealed class HttpStatusException(
val statusCode: HttpStatusCode,
message: String
) : Exception(message) {
companion object {
fun HttpStatusCode.toException(message: String): HttpStatusException =
when (this) {
... | 1 | Kotlin | 4 | 10 | 8ec8b7c249290f4d34dca9275d45b74571c7aaeb | 2,129 | newm-server | Apache License 2.0 |
src/main/kotlin/maliwan/mcbl/weapons/gun/behaviour/smg/Bitch.kt | HannahSchellekens | 868,217,631 | false | {"Kotlin": 661924} | package maliwan.mcbl.weapons.gun.behaviour.smg
import maliwan.mcbl.weapons.gun.*
import maliwan.mcbl.weapons.gun.behaviour.PostGenerationBehaviour
import maliwan.mcbl.weapons.gun.behaviour.UniqueGun
import maliwan.mcbl.weapons.gun.parts.SmgParts
/**
* @author <NAME>
*/
open class Bitch : UniqueGun, PostGenerationBe... | 0 | Kotlin | 0 | 1 | 794eb28189b26c92e8de3ade5eb0d36b9e799d08 | 894 | MCBorderlands | MIT License |
observablevalidatorsample/src/main/java/com/umobi/observablevalidatorsample/ui/login/MainActivity.kt | thalisvilela | 208,066,283 | false | null | package com.umobi.observablevalidatorsample.ui.login
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.ViewModelProviders
import com.google.android.material.snackbar.Snackbar
import com.umobi.observablevalidatorsample.databinding.ActivityMainBinding
import kotlinx.andro... | 0 | Kotlin | 2 | 9 | cffd45c65b73f6f1e3155fcafcaad63cf81c48d0 | 1,217 | ObservableValidator | Apache License 2.0 |
observablevalidatorsample/src/main/java/com/umobi/observablevalidatorsample/ui/login/MainActivity.kt | thalisvilela | 208,066,283 | false | null | package com.umobi.observablevalidatorsample.ui.login
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.ViewModelProviders
import com.google.android.material.snackbar.Snackbar
import com.umobi.observablevalidatorsample.databinding.ActivityMainBinding
import kotlinx.andro... | 0 | Kotlin | 2 | 9 | cffd45c65b73f6f1e3155fcafcaad63cf81c48d0 | 1,217 | ObservableValidator | Apache License 2.0 |
app/src/main/java/com/weixin/wuyezhiguhun/ydandroid/ydjoke/viewmodel/YDJokeViewModel.kt | wuyezhiguhun | 144,582,482 | false | null | package com.weixin.wuyezhiguhun.ydandroid.ydjoke.viewmodel
import com.weixin.wuyezhiguhun.ydandroid.ydjoke.data.YDJokeInfo
import okhttp3.*
import org.json.JSONObject
import java.io.IOException
import java.util.*
class YDJokeViewModel {
var dataList: ArrayList<YDJokeInfo> = ArrayList()
// var viewModelBack:... | 0 | Kotlin | 0 | 1 | aaf13dc341cc525d4232d56fe803bc3a73fbc055 | 3,571 | YDAndroid | MIT License |
gui/src/main/kotlin/no/uib/inf219/gui/backend/cb/simple/StringClassBuilder.kt | elgbar | 232,797,797 | false | null | /*
* Copyright 2020 <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... | 0 | Kotlin | 0 | 1 | 4ce6a92bfbe71e0245bd495f5dc9736741e022fd | 1,917 | HandcraftObjectsTool | Apache License 2.0 |
app/src/main/java/com/siju/acexplorer/storage/view/DragHelper.kt | siju-s | 427,592,750 | false | null | /*
* Copyright (C) 2017 Ace Explorer owned by Siju Sakaria
*
* 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 a... | 4 | Kotlin | 5 | 2 | 68338f005f8365609f115390e7d770197b807763 | 5,989 | AceExplorer | Apache License 2.0 |
src/main/kotlin/tokyo/aieuo/mineflow/trigger/event/BlockPlaceEventTrigger.kt | aieuo | 364,472,156 | false | null | package tokyo.aieuo.mineflow.trigger.event
import cn.nukkit.entity.Entity
import cn.nukkit.event.Event
import cn.nukkit.event.block.BlockPlaceEvent
import tokyo.aieuo.mineflow.utils.DummyVariableMap
import tokyo.aieuo.mineflow.utils.VariableMap
import tokyo.aieuo.mineflow.variable.DefaultVariables
import tokyo.aieuo.m... | 0 | Kotlin | 0 | 0 | 9c2ef7133d84c5d9b6f4336463d9e1d56442924a | 1,207 | Mineflow-Kotlin | MIT License |
features/forms/src/main/java/com/ramonpsatu/studyorganizer/features/forms/SubjectFormFragment.kt | ramonpsatu | 678,104,957 | false | null | package com.ramonpsatu.studyorganizer.features.forms
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle... | 0 | Kotlin | 0 | 0 | b2f41b28aec9444c2970f32950fed5f2b78d79bc | 52,805 | Study-Organizer | MIT License |
src/main/kotlin/com/rutilicus/uisetlist/UisetlistApplicationRunner.kt | rutilicus | 231,705,129 | false | null | package com.rutilicus.uisetlist
import com.rutilicus.uisetlist.repository.ConfigRepository
import org.springframework.boot.ApplicationArguments
import org.springframework.boot.ApplicationRunner
import org.springframework.stereotype.Component
@Component
class UisetlistApplicationRunner(val configRepository: ConfigRepo... | 4 | Kotlin | 1 | 1 | d3a8e7ea33baaed77003448b1a10090f597e0a80 | 820 | uisetlist | Apache License 2.0 |
engine/src/main/java/fr/jhelp/engine/animation/effect/ParticleNode.kt | jhelpgg | 264,682,891 | false | null | /*
* <h1>License :</h1> <br/>
* The following code is deliver as is. <br/>
* You can use, modify, the code as your need for any usage.<br/>
* But you can't do any action that avoid me or other person use, modify this code.<br/>
* The code is free for usage and modification, you can't change that fact.
*/
pac... | 4 | Kotlin | 0 | 0 | d912fedb330027216113f8af9f8974e8d2b1b7b6 | 16,010 | AndroidEngine3D | Apache License 2.0 |
app/src/main/java/com/heig/yfitops/domain/models/Playlist.kt | Alessandro-AP | 488,206,391 | false | null | package com.heig.yfitops.domain.models
import android.os.Parcelable
import android.util.Log
import com.google.firebase.firestore.DocumentSnapshot
import com.heig.yfitops.utils.Constants.PLAYLIST_IMAGE_URL
import com.heig.yfitops.utils.Constants.PLAYLIST_TITLE
import kotlinx.parcelize.Parcelize
/**
* Playlist Entity.... | 0 | Kotlin | 0 | 2 | 15be1734b3f1e7f13c5ef015f74a1df81cef1695 | 947 | Yfi-Tops | MIT License |
base/scan/scan-kapt/src/main/java/com/spirytusz/booster/processor/scan/kapt/KmPropertyResolver.kt | spirytusz | 392,160,927 | false | null | package com.spirytusz.booster.processor.scan.kapt
import com.google.gson.annotations.SerializedName
import com.spirytusz.booster.processor.base.data.DeclarationScope
import com.spirytusz.booster.processor.base.data.FieldInitializer
import com.spirytusz.booster.processor.base.data.KtField
import com.spirytusz.booster.p... | 1 | Kotlin | 4 | 27 | e2ede7bcece69832ae0267d1a34c4c6f2fdaac09 | 2,274 | GsonBooster | MIT License |
amazon/dynamodb/client/src/main/kotlin/org/http4k/connect/amazon/dynamodb/mapper/DynamoDbTableMapperExtensions.kt | http4k | 295,641,058 | false | {"Kotlin": 1624429, "Handlebars": 10370, "CSS": 5434, "Shell": 3178, "JavaScript": 2076, "Python": 1834, "HTML": 675} | package org.http4k.connect.amazon.dynamodb.mapper
fun <Document : Any, HashKey : Any, SortKey : Any> DynamoDbTableMapper<Document, HashKey, SortKey>.update(
hashKey: HashKey,
sortKey: SortKey? = null,
updateFn: (Document) -> Document
): Document? {
val original = get(hashKey, sortKey) ?: return null
... | 7 | Kotlin | 17 | 37 | 94e71e6bba87d9c79ac29f7ba23bdacd0fdf354c | 1,548 | http4k-connect | Apache License 2.0 |
app/src/main/java/com/example/android/architecture/blueprints/todoapp/domain/ActivateTasksUseCase.kt | tteukkeun | 279,205,014 | true | {"Kotlin": 237956} | package com.example.android.architecture.blueprints.todoapp.domain
import com.example.android.architecture.blueprints.todoapp.domain.entity.Task
import com.example.android.architecture.blueprints.todoapp.domain.repository.TasksRepository
import com.example.android.architecture.blueprints.todoapp.presentation.util.wrap... | 0 | Kotlin | 0 | 0 | 6afa7e892090ab494e99df706ce4c82a1d92964f | 591 | architecture-samples | Apache License 2.0 |
domain/src/main/java/com/afterroot/watchdone/domain/interactors/UpdateDiscover.kt | thesandipv | 255,834,235 | false | {"Kotlin": 558462, "Shell": 1180} | /*
* Copyright (C) 2020-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 agree... | 8 | Kotlin | 1 | 6 | 6772bfcc2ae1325df2d45365664d2ae012710873 | 2,479 | watchdone | Apache License 2.0 |
media/audio/src/main/java/com/google/android/horologist/audio/SystemAudioRepository.kt | google | 451,563,714 | false | {"Kotlin": 3151160, "Shell": 5169, "Java": 708, "Starlark": 361} | /*
* 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 applic... | 16 | Kotlin | 93 | 565 | bde87db14f63338904550fc1827d0141ebe24d9a | 8,672 | horologist | Apache License 2.0 |
src/main/kotlin/com/coder/gateway/models/TokenSource.kt | coder | 490,848,198 | false | {"Kotlin": 315951} | package com.coder.gateway.models
/**
* Describes where a token came from.
*/
enum class TokenSource {
CONFIG, // Pulled from the Coder CLI config.
USER, // Input by the user.
QUERY, // From the Gateway link as a query parameter.
LAST_USED, // Last used token, either from storage or curren... | 33 | Kotlin | 10 | 15 | be860cca9d571888d6309b55b2af36fc6509f0dd | 330 | jetbrains-coder | MIT License |
rubik/rubik_picker/src/main/java/com/rubik/pick/PickWhat.kt | baidu | 504,447,693 | false | {"Kotlin": 607049, "Java": 37304} | package com.rubik.pick
import com.ktnail.gradle.DependencyType
import com.rubik.context.extra.Context
import com.rubik.context.publication.LibType
class PickWhat(
val where: PickWhere,
val items: Array<What> = arrayOf(),
val forFlavor: String? = null,
val dev: Boolean? = null
) {
override fun to... | 1 | Kotlin | 7 | 153 | 065ba8f4652b39ff558a5e3f18b9893e2cf9bd25 | 2,593 | Rubik | Apache License 2.0 |
domain/src/main/java/com/flexcode/domain/utils/ResultWrapper.kt | Felix-Kariuki | 755,941,258 | false | {"Kotlin": 145949} | /**
*
* Copyright (c) 2024 <NAME>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish... | 1 | Kotlin | 0 | 3 | bc204d751626d21520f98f7b64886200735b2ef1 | 2,267 | GraphQlGithub | MIT License |
adaptive-lib-auto/src/jvmTest/kotlin/fun/adaptive/auto/integration/AutoTestService.kt | spxbhuhb | 788,711,010 | false | {"Kotlin": 2231374, "Java": 23999, "HTML": 7707, "JavaScript": 3880, "Shell": 687} | package `fun`.adaptive.auto.integration
import `fun`.adaptive.adat.toArray
import `fun`.adaptive.auto.api.originFile
import `fun`.adaptive.auto.api.originFolder
import `fun`.adaptive.auto.api.originInstance
import `fun`.adaptive.auto.api.originList
import `fun`.adaptive.auto.api.originListPoly
import `fun`.adaptive.au... | 28 | Kotlin | 0 | 3 | c0fd95c9654bee332c20f8f9373f1dae9132cf6b | 3,261 | adaptive | Apache License 2.0 |
samples/stopwatch-compose/src/main/java/com/instacart/formula/compose/stopwatch/StopwatchActivity.kt | instacart | 171,923,573 | false | {"Kotlin": 565903, "Shell": 1203, "Ruby": 256} | package com.instacart.formula.compose.stopwatch
import android.os.Bundle
import com.instacart.formula.android.FormulaAppCompatActivity
import com.instacart.formula.android.FormulaFragment
class StopwatchActivity : FormulaAppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCr... | 7 | Kotlin | 14 | 151 | 26d544ea41b7a5ab2fa1a3b9ac6b668e69fe4dff | 661 | formula | BSD 3-Clause Clear License |
app/src/main/java/com/example/boombox/data/network/VideosApi.kt | rajatsangrame | 521,908,183 | false | null | package com.example.boombox.data.network
import com.example.boombox.data.model.TrackResponse
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Query
interface VideosApi {
@GET("search")
suspend fun searchVideos(
@Query("query") query: String,
@Query("per_page") page: Int
): Resp... | 0 | Kotlin | 0 | 0 | f68761888cbac8df0d5d4a585daf528443425121 | 342 | boombox | Apache License 2.0 |
app/src/main/java/eu/caraus/appsflastfm/services/youtube/busevents/service/PlayingUpdate.kt | alexandrucaraus | 144,028,779 | false | {"Kotlin": 202701} | package eu.caraus.appsflastfm.services.youtube.busevents.service
import eu.caraus.appsflastfm.common.bus.events.service.ServiceEvent
import eu.caraus.appsflastfm.services.youtube.model.youtube.YouTubeVideo
class PlayingUpdate(val youTubeVideo: YouTubeVideo) : ServiceEvent() | 0 | Kotlin | 0 | 0 | fb9b4a218fa4c09b23b253eb75ee62456b4b47ff | 276 | ShowCase-AppsFactoryLastFmMvp | MIT License |
data/src/main/java/com/goms/data/datasource/outing/OutingDataSource.kt | team-haribo | 614,646,527 | false | {"Kotlin": 195760} | package com.goms.data.datasource.outing
import com.goms.data.model.outing.OutingCountResponse
import com.goms.data.model.user.UserResponse
import kotlinx.coroutines.flow.Flow
import retrofit2.Response
import java.util.UUID
interface OutingDataSource {
suspend fun outing(outingUUID: UUID): Flow<Response<Unit>>
... | 4 | Kotlin | 0 | 7 | c2593172e93f1732d39e4c3d850d68b6e14df0f7 | 438 | GOMS-Android | MIT License |
Matcheap/app/src/main/java/com/sandy/seoul_matcheap/util/helper/DataHelper.kt | SANDY-9 | 677,761,441 | false | null | package com.sandy.seoul_matcheap.util.helper
import android.content.Context
import java.text.SimpleDateFormat
import java.time.Duration
import java.time.LocalDate
import java.time.LocalTime
import java.time.format.DateTimeFormatter
import java.time.format.TextStyle
import java.util.*
import java.util.regex.Pattern
imp... | 0 | Kotlin | 0 | 0 | 6ff61f56e481a5fce9ef10ecafbc5132bdc2991c | 6,097 | Project_SeoulMatcheap2.0 | Apache License 2.0 |
valuedef-common/src/main/java/com/bennyhuo/kotlin/valuedef/common/error/ErrorKeys.kt | bennyhuo | 439,819,685 | false | null | package com.bennyhuo.kotlin.valuedef.common.error
/**
* Created by benny at 2022/1/16 8:43 AM.
*/
object ErrorKeys {
const val KEY_VALUE_MISMATCH = "inspection.valuedef.error.value.mismatch"
const val KEY_TYPE_CONFLICTS = "inspection.valuedef.error.type.conflicts"
const val KEY_DEF_CONFLICTS = "inspectio... | 0 | Kotlin | 0 | 4 | 5b5ebfe900e25372d3c076b24dfb175945866a38 | 429 | KotlinValueDef | MIT License |
valuedef-common/src/main/java/com/bennyhuo/kotlin/valuedef/common/error/ErrorKeys.kt | bennyhuo | 439,819,685 | false | null | package com.bennyhuo.kotlin.valuedef.common.error
/**
* Created by benny at 2022/1/16 8:43 AM.
*/
object ErrorKeys {
const val KEY_VALUE_MISMATCH = "inspection.valuedef.error.value.mismatch"
const val KEY_TYPE_CONFLICTS = "inspection.valuedef.error.type.conflicts"
const val KEY_DEF_CONFLICTS = "inspectio... | 0 | Kotlin | 0 | 4 | 5b5ebfe900e25372d3c076b24dfb175945866a38 | 429 | KotlinValueDef | MIT License |
toll-device-app/wallet/app/src/main/java/org/drdgvhbh/android/wallet/SetAllowanceViewModelFactory.kt | Azure-Samples | 181,102,598 | false | null | package org.drdgvhbh.android.wallet
import android.app.Activity
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import org.web3j.crypto.Credentials
import org... | 3 | JavaScript | 31 | 15 | bf3e044ad72b9fc58514f0c210f2484d55f83e03 | 1,326 | bc-community-samples | MIT License |
browser-kotlin/src/jsMain/kotlin/web/media/key/MediaKeySession.events.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6272741} | // Automatically generated - do not modify!
package web.media.key
import web.events.Event
import web.events.EventInstance
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keystatuseschange_event)
*/
inline val <C : MediaKeySession> C.keyStatusesChangeEvent: EventInstance<Event, C, C... | 0 | Kotlin | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 636 | types-kotlin | Apache License 2.0 |
src/main/kotlin/nl/chimpgamer/networkmanager/extensions/autoban/configuration/Settings.kt | ChimpGamer | 189,884,562 | false | {"Kotlin": 7784} | package nl.chimpgamer.networkmanager.extensions.autoban.configuration
import dev.dejvokep.boostedyaml.YamlDocument
import dev.dejvokep.boostedyaml.settings.dumper.DumperSettings
import dev.dejvokep.boostedyaml.settings.general.GeneralSettings
import dev.dejvokep.boostedyaml.settings.loader.LoaderSettings
import dev.de... | 0 | Kotlin | 0 | 2 | bae39cebb4bc054dacdce90b211d0bbee1144faa | 4,108 | AutoBan-Extension | Apache License 2.0 |
Interop/Runtime/src/native/kotlin/kotlinx/cinterop/ObjectiveCExportImpl.kt | juliuskunze | 116,136,849 | true | {"Kotlin": 4056983, "C++": 754448, "C": 134581, "Groovy": 56615, "Objective-C++": 36230, "JavaScript": 7772, "Shell": 6465, "Batchfile": 6254, "Python": 4775, "Objective-C": 2079, "Pascal": 1698, "Java": 782, "HTML": 185} | /*
* Copyright 2010-2017 JetBrains s.r.o.
*
* 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 agre... | 0 | Kotlin | 0 | 1 | 2e07b3f52f99b51d353a8c0e53bdf9fff86988e0 | 1,375 | kotlin-native | Apache License 2.0 |
data/src/commonMain/kotlin/com/inkapplications/data/transformer/StringTransformations.kt | InkApplications | 276,733,654 | false | {"Kotlin": 126744} | package com.inkapplications.data.transformer
object StringTransformations {
val StringToInt: DataTransformer<String, Int> = SimpleTransformer(
transformer = String::toInt,
reverseTransformer = Int::toString,
)
val StringToLong: DataTransformer<String, Long> = SimpleTransformer(
tra... | 0 | Kotlin | 2 | 1 | e4b4a171334256c1f90d56e66ab15094d8781cd3 | 1,406 | Watermelon | MIT License |
web-front/src/main/kotlin/com/isystk/sample/web/front/service/PasswordResetService.kt | isystk | 328,037,305 | false | {"Kotlin": 462354, "TypeScript": 88591, "HTML": 77276, "SCSS": 24557, "FreeMarker": 21801, "JavaScript": 5293, "Shell": 3607, "Dockerfile": 1581, "CSS": 942} | package com.isystk.sample.web.front.service
import com.google.common.collect.Maps
import com.isystk.sample.common.dto.mail.MailEntryRegistTemporary
import com.isystk.sample.common.exception.NoDataFoundException
import com.isystk.sample.common.helper.SendMailHelper
import com.isystk.sample.common.service.BaseTransactio... | 0 | Kotlin | 0 | 2 | 2e4e0c62af22c05403e5d3452ba08eb09c05a7f1 | 4,512 | kotlin-springboot-boilerplate | MIT License |
presentation/src/commonMain/kotlin/com/chrynan/chat/resources/DrawableIDs.kt | chRyNaN | 206,982,352 | false | null | package com.chrynan.chat.resources
interface DrawableIDs {
val bgAttachmentBadge: ResourceID
val bgLauncher: ResourceID
val icBadgeRemove: ResourceID
val icBottomNavbarConversation: ResourceID
val icBottomNavbarFeed: ResourceID
val icBottomNavbarSettings: ResourceID
val icMessageEdit... | 0 | Kotlin | 0 | 3 | 8269e4bcecad6ba4ef10e211ca4cb52e1cdff4b8 | 466 | Chat | Apache License 2.0 |
tests/src/main/kotlin/se/ansman/kotshi/TestFactory.kt | ansman | 95,685,398 | false | {"Kotlin": 392472, "Shell": 246} | package se.ansman.kotshi
import com.squareup.moshi.JsonAdapter
@OptIn(ExperimentalStdlibApi::class)
@KotshiJsonAdapterFactory
object TestFactory : JsonAdapter.Factory by KotshiTestFactory | 4 | Kotlin | 43 | 759 | 524311f039c15a4ca7b08bfcb27dbde1b2c2b6a0 | 189 | kotshi | Apache License 2.0 |
wireframe-test/src/main/java/ru/nsu/e/shelbogashev/wireframe/bsplineeditor/BSpline.kt | EricShelbogashev | 745,928,535 | false | {"Kotlin": 101898, "Java": 224} | package ru.nsu.e.shelbogashev.wireframe.bsplineeditor
import ru.nsu.e.shelbogashev.wireframe.utils.Matrix
import ru.nsu.e.shelbogashev.wireframe.utils.Point2D
import ru.nsu.e.shelbogashev.wireframe.utils.Settings
/**
* Класс для работы с B-сплайнами.
*/
class BSpline {
private val splineMatrix = Matrix(
... | 0 | Kotlin | 0 | 0 | 6881eb773624fa420425983e2a4b73cb76ce5f17 | 2,954 | engineering-computer-graphics | MIT License |
app/src/main/java/io/github/takusan23/akaridroid/ui/bottomsheet/data/BottomSheetResultData.kt | takusan23 | 584,131,815 | false | null | package io.github.takusan23.akaridroid.ui.bottomsheet.data
import io.github.takusan23.akaridroid.data.AudioAssetData
import io.github.takusan23.akaridroid.data.CanvasElementData
import io.github.takusan23.akaridroid.ui.bottomsheet.VideoEditMenuBottomSheetMenu
/** [BottomSheetState]で返す値 */
sealed class BottomSheetResu... | 0 | Kotlin | 0 | 0 | 8cf425ee3d739dd8be05033b020867c195569c78 | 992 | AkariDroid | Apache License 2.0 |
src/main/kotlin/br/com/alura/bytebank/main.kt | GiovanniMoratto | 396,122,536 | false | null | package br.com.alura.bytebank
import br.com.alura.bytebank.modelo.Cliente
import br.com.alura.bytebank.modelo.ContaPoupanca
import br.com.alura.bytebank.modelo.Endereco
import br.com.alura.bytebank.teste.testaHOF
/**
*@Author giovanni.moratto
*/
fun main() {
testaHOF()
}
fun testaRun() {
val taxaAnual = 0... | 0 | Kotlin | 0 | 0 | d406d46965c253f65035d45bc2119f72a33057a9 | 1,247 | kotlin-paradigma-funcional | MIT License |
backend/api/src/main/kotlin/io/tolgee/hateoas/machineTranslation/StreamedSuggestionItem.kt | tolgee | 303,766,501 | false | {"TypeScript": 2960870, "Kotlin": 2463774, "JavaScript": 19327, "Shell": 12678, "Dockerfile": 9468, "PLpgSQL": 663, "HTML": 439} | package io.tolgee.hateoas.machineTranslation
import io.tolgee.constants.Message
import io.tolgee.constants.MtServiceType
class StreamedSuggestionItem(
val serviceType: MtServiceType,
val result: TranslationItemModel?,
val errorMessage: Message? = null,
val errorParams: List<Any?>? = null,
val errorException... | 170 | TypeScript | 188 | 1,837 | 6e01eec3a19c151a6e0aca49e187e2d0deef3082 | 340 | tolgee-platform | Apache License 2.0 |
module/feature/home/src/commonMain/kotlin/org.starter.project.feature/home/component/article/ArticleListItem.kt | s-iwasaki-b | 868,326,943 | false | {"Kotlin": 58799, "Swift": 1058} | package org.starter.project.feature.home.component.article
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foun... | 0 | Kotlin | 0 | 0 | a38261d166296755c205e77ddcab2222f8c832ac | 3,633 | Compose-Multiplatform-Starter-Template | Apache License 2.0 |
app/src/main/java/com/xavier/wagner/todolist/uai/CreateTaskActivity.kt | wagnerxavierp | 402,940,216 | false | null | package com.xavier.wagner.todolist.uai
import android.app.AlertDialog
import android.content.DialogInterface
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.google.android.material.datepicker.MaterialDatePicker
import com.google.android.material.timepicke... | 0 | Kotlin | 0 | 0 | ec3fbebc9a044a4005fa6b938f70895f35e740d6 | 3,875 | To_do_list_android | MIT License |
theme-contract/src/main/java/com/orange/ouds/theme/tokens/semantic/OudsGridTokens.kt | Orange-OpenSource | 817,725,638 | false | {"Kotlin": 122970, "HTML": 14555, "CSS": 1404, "JavaScript": 197} | /*
* Software Name: OUDS Android
* SPDX-FileCopyrightText: Copyright (c) Orange SA
* SPDX-License-Identifier: MIT
*
* This software is distributed under the MIT license,
* the text of which is available at https://opensource.org/license/MIT/
* or see the "LICENSE" file for more details.
*
* Software descriptio... | 10 | Kotlin | 1 | 6 | 28e063d49eab2202570ac8897b3c40b0bed64b4d | 2,206 | ouds-android | MIT License |
nextgen-middleware/src/main/java/com/nextgenbroadcast/mobile/middleware/rpc/eventStream/EventStreamImpl.kt | jjustman | 418,004,011 | false | null | package com.nextgenbroadcast.mobile.middleware.rpc.eventStream
import com.nextgenbroadcast.mobile.middleware.rpc.RpcResponse
class EventStreamImpl : IEventStream {
override fun eventStreamSubscribe(schemeIdUri: String, value: String?): RpcResponse {
return RpcResponse()
}
override fun eventStream... | 0 | Kotlin | 0 | 5 | f0d91240d7c68c57c7ebfd0739148c86a38ffa58 | 420 | libatsc3-middleware-sample-app | MIT License |
src/main/kotlin/org/toml/lang/TomlFileTypeFactory.kt | stuartcarnie | 48,140,365 | false | null | package org.toml.lang
import com.intellij.openapi.fileTypes.ExtensionFileNameMatcher
import com.intellij.openapi.fileTypes.FileTypeConsumer
import com.intellij.openapi.fileTypes.FileTypeFactory
public class TomlFileTypeFactory : FileTypeFactory() {
override fun createFileTypes(consumer: FileTypeConsumer) {
... | 0 | Kotlin | 1 | 5 | 06b6f29e3d1de53a61ac121e9cd6c067275e3acb | 436 | toml-plugin | MIT License |
solar/src/main/java/com/chiksmedina/solar/boldduotone/money/Banknote2.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.boldduotone.money
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Co... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 6,046 | SolarIconSetAndroid | MIT License |
tv/src/main/java/com/aastudio/sarollahi/moviebox/KoinModule.kt | sarollahi | 327,908,585 | false | {"Kotlin": 450483} | /*
* Copyright (C) 2021 Seyed Ahmad Sarollahi
* All rights reserved.
*/
package com.aastudio.sarollahi.moviebox
import com.aastudio.sarollahi.moviebox.views.fragments.RootMovieViewModel
import org.koin.android.ext.koin.androidApplication
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module
... | 0 | Kotlin | 0 | 0 | 17acb53f4ab51e40126fa3136f851eb8895074c2 | 413 | MovieBox-Kotlin | Apache License 2.0 |
common/libs/logger/src/commonMain/kotlin/io/chefbook/libs/logger/Logger.kt | mephistolie | 379,951,682 | false | {"Kotlin": 1334117, "Ruby": 16819, "Swift": 352} | package io.chefbook.libs.logger
expect object Logger {
fun v(message: String?, vararg args: Any?)
fun v(t: Throwable?, message: String?, vararg args: Any?)
fun v(t: Throwable?)
fun d(message: String?, vararg args: Any?)
fun d(t: Throwable?, message: String?, vararg args: Any?)
fun d(t: Throwable?)
... | 0 | Kotlin | 0 | 12 | ddaf82ee3142f30aee8920d226a8f07873cdcffe | 713 | chefbook-mobile | Apache License 2.0 |
app/src/main/kotlin/com/releaseit/cryptoprices/repository/CryptoRepository.kt | JurajBegovac | 121,294,794 | false | null | package com.releaseit.cryptoprices.repository
import io.reactivex.Single
/**
* Created by jurajbegovac on 12/02/2018.
*/
interface CryptoRepository {
fun getCryptos(currency: Currency, limit: String): Single<List<Crypto>>
fun getCrypto(id: String, currency: Currency): Single<Crypto>
companion object {
... | 0 | Kotlin | 0 | 0 | 19d2881d8365f1284331b79024c3b430a11cd141 | 991 | CryptoPrices | MIT License |
ee/backend/tests/src/test/kotlin/io/tolgee/ee/EeTolgeeTranslatorControllerTest.kt | tolgee | 303,766,501 | false | {"TypeScript": 2960870, "Kotlin": 2463774, "JavaScript": 19327, "Shell": 12678, "Dockerfile": 9468, "PLpgSQL": 663, "HTML": 439} | package io.tolgee.ee
import io.tolgee.ProjectAuthControllerTest
import io.tolgee.api.SubscriptionStatus
import io.tolgee.component.machineTranslation.MtValueProvider
import io.tolgee.component.machineTranslation.providers.tolgee.TolgeeTranslateParams
import io.tolgee.constants.Feature
import io.tolgee.development.test... | 170 | TypeScript | 188 | 1,837 | 6e01eec3a19c151a6e0aca49e187e2d0deef3082 | 2,935 | tolgee-platform | Apache License 2.0 |
atala-prism-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/domain/models/keyManagement/DerivableKey.kt | input-output-hk | 564,174,099 | false | {"Kotlin": 534787, "Gherkin": 1987, "ANTLR": 1440, "JavaScript": 375} | package io.iohk.atala.prism.walletsdk.domain.models.keyManagement
import io.iohk.atala.prism.apollo.derivation.DerivationPath
interface DerivableKey {
fun derive(derivationPath: DerivationPath): PrivateKey
}
| 1 | Kotlin | 0 | 5 | 0549258251a69eebc3f032466263575966dbad21 | 214 | atala-prism-wallet-sdk-kmm | Apache License 2.0 |
android/src/main/java/com/companycamvibecheck/CompanycamVibeCheckModule.kt | CompanyCam | 719,714,006 | false | {"YAML": 5, "JSON with Comments": 1, "Ruby": 3, "JSON": 9, "JavaScript": 12, "Markdown": 4, "Text": 1, "Ignore List": 1, "Git Attributes": 1, "EditorConfig": 1, "TSX": 3, "CODEOWNERS": 1, "INI": 4, "Gradle": 4, "Shell": 6, "Batchfile": 2, "XML": 10, "Kotlin": 2, "Java Properties": 1, "Java": 4, "Dotenv": 1, "C": 1, "Sw... | package com.companycamvibecheck
import android.app.ActivityManager
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
import com.facebook.react.bridge.ReactMethod
import com.facebook.react.bridge.Promise
import android.content.Context
import android.os.... | 9 | Java | 0 | 2 | ced9e693c62df1c780d8d025cfeaefd71bf016b8 | 1,526 | companycam-vibe-check | MIT License |
cache/src/main/kotlin/com/impassive/cache/core/CustomCacheBuilder.kt | yangbiny | 548,708,667 | false | {"Gradle": 22, "Shell": 2, "Text": 1, "Ignore List": 1, "Batchfile": 2, "Git Attributes": 1, "Markdown": 4, "Java": 134, "INI": 2, "Kotlin": 38, "Scala": 8} | package com.impassive.cache.core
import com.impassive.cache.config.CustomCacheCommonCfg
import com.impassive.cache.core.decorator.AsyncWriteDecorator
import com.impassive.cache.core.decorator.TailDecorator
import com.impassive.cache.impl.lettuce.CustomLettuceCache
import com.impassive.cache.impl.lettuce.CustomLettuceC... | 0 | Java | 0 | 2 | 743c268d6c05c3e74a90586f618f79143fedb3b8 | 1,117 | learning | Apache License 2.0 |
src/main/kotlin/chapter12/mvc/BeatBar.kt | antop-dev | 485,700,651 | false | {"Java": 114489, "Kotlin": 83077} | package chapter12.mvc
import java.awt.BorderLayout
import javax.swing.JLabel
import javax.swing.JProgressBar
import javax.swing.border.EmptyBorder
import kotlin.concurrent.thread
class BeatBar : JProgressBar(0, 100) {
private val progressLabel: JLabel = JLabel("offline").apply {
horizontalAlignment = JLab... | 1 | null | 1 | 1 | ebabc19d6a742884873ff58e0449cc8cb8c39421 | 1,018 | head-first-design-patterns | MIT License |
app/src/main/java/com/example/thingsfortrip/data/models/Category.kt | maks099 | 692,361,020 | false | {"Kotlin": 71351} | package com.example.thingsfortrip.data.models
data class Category(val name: String = "", val code: Int = 0)
| 5 | Kotlin | 0 | 0 | f11db0bcbc2011ec0955b277bc8c36c05920d2a9 | 109 | ThingsForTrip | Apache License 2.0 |
examples/src/test/kotlin/ch/icken/model/ExamplesTest.kt | Thijsiez | 699,910,580 | false | {"Kotlin": 85947} | /*
* 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... | 0 | Kotlin | 0 | 1 | 730c2fd001db3cb85967cefe7886d4cdce095d7e | 1,486 | panache-kotlin-dsl | Apache License 2.0 |
common/src/androidMain/kotlin/com/artemchep/keyguard/android/PendingIntents.kt | AChep | 669,697,660 | false | {"Kotlin": 5516822, "HTML": 45876} | package com.artemchep.keyguard.android
import com.artemchep.keyguard.android.downloader.NotificationIdPool
object PendingIntents {
val autofill = NotificationIdPool.sequential(0)
val credential = NotificationIdPool.sequential(
start = 100000,
endExclusive = 200000,
)
}
| 66 | Kotlin | 31 | 995 | 557bf42372ebb19007e3a8871e3f7cb8a7e50739 | 300 | keyguard-app | Linux Kernel Variant of OpenIB.org license |
epubify/src/test/java/org/nextstack/epubify/ParserTest.kt | Nextstack-LLC | 786,416,395 | false | {"Kotlin": 78307, "JavaScript": 2163, "HTML": 1164} | package org.nextstack.epubify
import org.nextstack.epubify.parser.EpubParser
import junit.framework.TestCase.assertEquals
import junit.framework.TestCase.assertNotNull
import junit.framework.TestCase.assertNull
import kotlinx.coroutines.test.runTest
import org.apache.commons.text.StringEscapeUtils
import org.junit.Tes... | 0 | Kotlin | 0 | 1 | bcec7a41996bfdfa8c84523973b6117901c4d963 | 2,085 | epubify | MIT License |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/Closing.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: Closing
*
* Full name: System`Closing
*
* Closing[image, ker] gives the morphological c... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,201 | mathemagika | Apache License 2.0 |
Mitori-Satori/src/main/kotlin/xyz/xasmc/mitori/satori/router/ReactionApiRouter.kt | XAS-Dev | 832,216,378 | false | {"Kotlin": 71553, "Java": 179} | package xyz.xasmc.mitori.satori.router
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.request.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import xyz.xasmc.mitori.satori.api.ReactionApiHandler
import xyz.xasmc.mitori.satori.datatype.api.reaction.ReactionClear
impo... | 0 | Kotlin | 0 | 1 | ba84efef3d336ead22ddcb266063fc682ccdd925 | 1,429 | Mitori | MIT License |
src/main/kotlin/com/terraformation/backend/report/event/ReportSubmittedEvent.kt | terraware | 323,722,525 | false | {"Kotlin": 3741923, "HTML": 88820, "Python": 46278, "FreeMarker": 16407, "PLpgSQL": 3305, "Makefile": 746, "Dockerfile": 674} | package com.terraformation.backend.report.event
import com.terraformation.backend.db.default_schema.ReportId
import com.terraformation.backend.report.model.LatestReportBodyModel
/** Published when an organization admin submits a report. */
data class ReportSubmittedEvent(val reportId: ReportId, val body: LatestReport... | 3 | Kotlin | 1 | 9 | 4b567755b38c1021a76d677f22d865c45d4099b1 | 331 | terraware-server | Apache License 2.0 |
NatSample/app/src/androidTest/java/com/baobomb/nlautouitestsample/MoreViews.kt | MarcusCwl | 187,816,492 | false | null | package com.baobomb.nlautouitestsample
import android.support.test.espresso.Espresso
import android.support.test.espresso.action.ViewActions
import android.support.test.espresso.matcher.RootMatchers
import android.support.test.espresso.matcher.ViewMatchers
import android.support.test.espresso.matcher.ViewMatchers.with... | 0 | Kotlin | 0 | 0 | e6b94bccc4b2ed2b65b99a7f68b2409f2bfe4e43 | 963 | Nat | Apache License 2.0 |
src/main/kotlin/org/lnwza007/relay/service/nip01/EventValidator.kt | rushmi0 | 800,389,073 | false | {"Kotlin": 50472} | //package org.lnwza007.relay.service.nip01
//
//import org.lnwza007.relay.modules.Event
//import org.lnwza007.relay.service.nip01.Transform.toEvent
//import org.lnwza007.relay.service.nip13.ProofOfWork
//import org.lnwza007.util.Schnorr
//import org.lnwza007.util.ShiftTo.fromHex
//import org.lnwza007.util.ShiftTo.toJso... | 0 | Kotlin | 0 | 0 | 139ca7958b203ccc2ce55543f22f16709438eb8e | 3,575 | lnwza007 | MIT License |
app/src/androidTest/java/com/example/mymovies/AddHowIMetYourMotherToFavoritesThenDelete.kt | robdeputter | 217,722,349 | false | null | package com.example.mymovies
import android.view.View
import android.view.ViewGroup
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.action.ViewActions.replaceText
import androidx.test.espresso.action.ViewActions.closeSoftKeyboard
import ... | 0 | Kotlin | 0 | 1 | 08f2afc6240ee8d9c450358ccf70fca85b772c63 | 6,847 | MyMovies_Android | MIT License |
app/src/main/java/com/swensun/func/room/database/RoomEntity.kt | xjr0401 | 272,895,639 | true | {"Kotlin": 318083, "Java": 106595} | package com.swensun.func.room.database
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
class RoomEntity {
@PrimaryKey
var id = 0
var title: String = ""
} | 0 | null | 0 | 0 | d7a708f1a5b08c837bc87f28167da98e32a74d75 | 192 | Potato | Apache License 2.0 |
src/main/kotlin/com/alcosi/nft/apigateway/config/serialization/SerializationConfig.kt | alcosi | 713,491,219 | false | {"Kotlin": 334013, "Java": 39800, "HTML": 4727, "PLpgSQL": 1275, "JavaScript": 1127, "CSS": 824} | /*
* Copyright (c) 2023 Alcosi Group Ltd. and affiliates.
*
* 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 ap... | 0 | Kotlin | 0 | 0 | bdeb7b6511d0ffd0b5a8d332ff5490353d38dbae | 1,611 | alcosi_blockchain_api_gateway | Apache License 2.0 |
app/src/main/java/com/ieeevit/enigma8/view/privacy/PrivacyActivity.kt | IEEE-VIT | 403,345,348 | false | {"Kotlin": 288926} | package com.ieeevit.enigma8.view.privacy
import android.content.Intent
import android.graphics.LinearGradient
import android.graphics.Shader
import android.os.Bundle
import android.widget.EditText
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.... | 0 | Kotlin | 1 | 8 | fbb071f350e22ea6346b8e6773c5c83cfd7b0971 | 1,592 | enigma8-android | MIT License |
app/src/main/java/com/ieeevit/enigma8/view/privacy/PrivacyActivity.kt | IEEE-VIT | 403,345,348 | false | {"Kotlin": 288926} | package com.ieeevit.enigma8.view.privacy
import android.content.Intent
import android.graphics.LinearGradient
import android.graphics.Shader
import android.os.Bundle
import android.widget.EditText
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.... | 0 | Kotlin | 1 | 8 | fbb071f350e22ea6346b8e6773c5c83cfd7b0971 | 1,592 | enigma8-android | MIT License |
codegen/src/main/java/com/levinzonr/saferoute/codegen/models/RouteData.kt | levinzonr | 372,225,040 | false | null | package com.levinzonr.saferoute.codegen.models
import com.levinzonr.saferoute.codegen.constants.ClassNames
import com.levinzonr.saferoute.codegen.constants.Constants
import com.levinzonr.saferoute.codegen.core.Source
import com.squareup.kotlinpoet.ClassName
import com.squareup.kotlinpoet.ParameterizedTypeName.Companio... | 4 | Kotlin | 0 | 59 | 8d65e08c2aa5dbe3d0f829e605887e42f36dcd85 | 2,244 | compose-safe-routing | Apache License 2.0 |
app/src/main/java/com/wang/kotlindemo/mdoel/TextModel.kt | kingwang666 | 93,376,609 | false | null | package com.wang.kotlindemo.mdoel
/**
* Created on 2017/5/27.
* Author: wang
*/
data class TextMode(var clazz: Class<out Any>, var name: String = "test"){
} | 0 | Kotlin | 0 | 0 | 68b14e50db49d942693ba1beab5c8307f24b3f81 | 162 | KotlinLearn | Apache License 2.0 |
app/src/main/java/br/com/renancsdev/avenuecodeeventos/extension/String.kt | RenanCostaSilva | 775,714,533 | false | {"Kotlin": 27190} | package br.com.renancsdev.avenuecodeeventos.extension
import android.content.Context
import android.util.Log
import android.widget.Toast
import java.text.SimpleDateFormat
import java.util.Date
fun String.toastCurto(context: Context) {
return Toast.makeText(context , this, Toast.LENGTH_SHORT).show()
}
fun String... | 1 | Kotlin | 0 | 0 | fd9c60d148485dc4385ce35e81cab3b9881abe10 | 499 | AvenueCodeEvento | Apache License 2.0 |
plugins/network/ktor-no-op/src/main/kotlin/ir/amirab/debugboard/plugin/network/ktor/KtorToDebugBoard.kt | amir1376 | 606,913,822 | false | null | package ir.amirab.debugboard.plugin.network.ktor
import io.ktor.client.*
import io.ktor.client.plugins.*
import io.ktor.util.*
import ir.amirab.debugboard.core.DebugBoard
class KtorDebugBoard private constructor() {
companion object : HttpClientPlugin<Config, KtorDebugBoard> {
override val key: AttributeKe... | 0 | Kotlin | 1 | 17 | 26928c50831f6cdcc884e5bbf2d725abc06bff9e | 673 | debugboard | Apache License 2.0 |
platform/src/main/kotlin/com/samsung/healthcare/platform/adapter/persistence/project/healthdata/HeightRepository.kt | S-HealthStack | 520,365,362 | false | {"Kotlin": 894766, "Dockerfile": 1358, "ANTLR": 1066} | package com.samsung.healthcare.platform.adapter.persistence.project.healthdata
import com.samsung.healthcare.platform.adapter.persistence.entity.project.healthdata.HeightEntity
interface HeightRepository : SampleDataRepository<HeightEntity>
| 2 | Kotlin | 7 | 28 | b7e7d0b4cc8d1f1123c9f3bd08fa5cc66fbc9920 | 243 | backend-system | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/MugHotAlt.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.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 | 3,444 | icons | MIT License |
particleview/core/src/main/java/com/oscarliang/particleview/core/ParticleSystem.kt | iamoscarliang | 809,386,777 | false | {"Kotlin": 28821} | package com.oscarliang.particleview.core
import android.graphics.Canvas
import com.oscarliang.particleview.core.model.FloatOffset
import com.oscarliang.particleview.core.model.IntOffset
import kotlin.random.Random
class ParticleSystem(
val images: List<ParticleImage>,
val startX: FloatOffset,
val startY: ... | 0 | Kotlin | 0 | 3 | d2eaeca0fc27d5c76c1aacef172dc05080a768ef | 3,499 | particleview | MIT License |
kazuki-ksp/src/main/kotlin/com/anaplan/engineering/kazuki/ksp/SequenceType.kt | anaplan-engineering | 715,012,365 | false | {"Kotlin": 160848, "Shell": 827} | package com.anaplan.engineering.kazuki.ksp
import com.anaplan.engineering.kazuki.core.*
import com.anaplan.engineering.kazuki.core.internal._KSequence
import com.google.devtools.ksp.KspExperimental
import com.google.devtools.ksp.isAbstract
import com.google.devtools.ksp.isAnnotationPresent
import com.google.devtools.k... | 0 | Kotlin | 0 | 0 | 1853cc4d36f47d143d27624fa9d9e3e17fce4ddb | 11,136 | kazuki | MIT License |
app/src/main/java/com/swayy/musicpark/domain/use_cases/GetGenreUseCase.kt | gideonrotich | 557,405,183 | false | {"Kotlin": 274873} | package com.swayy.musicpark.domain.use_cases
import com.swayy.musicpark.domain.models.Genre
import com.swayy.musicpark.domain.repository.GenreRepository
import com.swayy.musicpark.util.Resource
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class GetGenreUseCase @Inject constructor(
private val re... | 0 | Kotlin | 6 | 58 | aa7ce4d7d4481a76b28de61a82d27958f92192d0 | 449 | MusicPark | MIT License |
app/src/main/java/com/jirawat/bddexample/BddExampleApplication.kt | tententen2 | 137,557,700 | false | {"Kotlin": 36736} | package com.jirawat.bddexample
import android.app.Application
import dagger.android.AndroidInjector
import dagger.android.support.DaggerApplication
open class BddExampleApplication:Application(){
// override fun applicationInjector(): AndroidInjector<out DaggerApplication> = DaggerAppComponent.builder().create(th... | 2 | Kotlin | 1 | 1 | 039cb7f4f6dda3c059ba6bc6a87bb12a585d5c5f | 326 | BDDExample | MIT License |
app/src/main/java/com/dreamsoftware/inquize/di/PreferencesModule.kt | sergio11 | 189,729,405 | false | {"Kotlin": 288983} | package com.dreamsoftware.inquize.di
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.preferencesDataStore
import com.dreamsoftware.inquize.data.local.preferences.datasource.IPreferencesDataSource
import... | 0 | Kotlin | 0 | 1 | 062ac9c8a942148d0008d2043d02db62ff964841 | 1,469 | inquize_android | The Unlicense |
app/src/main/java/com/example/myapplication/global/AppApplication.kt | techtamper | 350,005,912 | false | null | package com.example.myapplication.global
import android.app.Application
import android.content.res.Resources
import com.example.myapplication.global.koin.appModule
import com.example.myapplication.global.koin.repoModule
import com.example.myapplication.global.koin.viewModelModule
import org.koin.android.ext.koin.andro... | 0 | Kotlin | 0 | 0 | 74a89ee05f6ea02d20f12c1de481934cfccca48b | 968 | ProjectWithFlavor | Apache License 2.0 |
android-buddy-plugin/src/test/java/com/likethesalad/android/common/utils/android/AndroidVariantDataProviderTest.kt | LikeTheSalad | 289,290,234 | false | null | package com.likethesalad.android.common.utils.android
import com.android.build.gradle.AppExtension
import com.android.build.gradle.api.ApplicationVariant
import com.android.builder.model.BuildType
import com.android.builder.model.ProductFlavor
import com.google.common.truth.Truth
import com.likethesalad.android.common... | 0 | Kotlin | 6 | 43 | 1089f89e1f8ad5fb9fdfb9195592cc8a7d04e299 | 4,730 | android-buddy | MIT License |
kmm_decompose_sample/shared/src/commonMain/kotlin/com/decompose/components/document_list/DocumentList.kt | vladlen2010 | 444,197,061 | false | {"Kotlin": 144652, "Swift": 43044, "Ruby": 3488} | package com.decompose.components.document_list
import com.arkivanov.decompose.value.Value
interface DocumentList {
val model: Value<Model>
fun onItemClicked(itemId: String)
data class Model(
val documents: List<Document> = emptyList()
)
}
data class Document( //TODO: transfer to domain la... | 0 | Kotlin | 0 | 0 | c081daab714d85e73f639b46286e2b587d77aed8 | 367 | kmm-samples | Apache License 2.0 |
compiler/src/main/java/lang/taxi/query/TaxiQlQuery.kt | taxilang | 601,101,781 | false | {"Kotlin": 1691489, "ANTLR": 66160, "TypeScript": 12542, "JavaScript": 4324, "Shell": 1468, "Java": 1454, "MDX": 425} | package lang.taxi.query
import lang.taxi.accessors.ProjectionFunctionScope
import lang.taxi.mutations.Mutation
import lang.taxi.types.Annotatable
import lang.taxi.types.Annotation
import lang.taxi.types.ArrayType
import lang.taxi.types.Arrays
import lang.taxi.types.CompilationUnit
import lang.taxi.types.Compiled
impor... | 8 | Kotlin | 5 | 74 | 345f97596db7ef871cf0c28997f4effe9da0bccf | 2,063 | taxilang | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.