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/algorithmic_toolbox/week2/Person.kt | eniltonangelim | 369,331,780 | false | null | package algorithmic_toolbox.week2
abstract class Person (id:Int, name: String) {
abstract fun login(): Boolean;
}
| 0 | Kotlin | 0 | 0 | 031bccb323339bec05e8973af7832edc99426bc1 | 119 | AlgorithmicToolbox | MIT License |
src/test/kotlin/com/compiler/server/KotlinFeatureSince170.kt | JetBrains | 219,478,945 | false | {"Kotlin": 448742, "Dockerfile": 2244, "Shell": 225} | package com.compiler.server
import com.compiler.server.base.BaseExecutorTest
import org.junit.jupiter.api.Test
class KotlinFeatureSince170 : BaseExecutorTest() {
@Test
fun `maxOrNull for empty list returns null`() {
run(
code = """
fun main() {
val numbers = listOf<Int>()
... | 32 | Kotlin | 72 | 236 | 7c344a36287913df7b00bd780b3d104e9c79f178 | 2,569 | kotlin-compiler-server | Apache License 2.0 |
android/src/main/kotlin/com/sayx/hm_cloud/model/PlayPartyRoomInfoEvent.kt | Rambo0422 | 584,657,563 | false | {"Kotlin": 511975, "Objective-C": 417868, "C++": 23762, "CMake": 19412, "Dart": 8471, "HTML": 4798, "C": 3793, "Swift": 1581, "Java": 1522, "Ruby": 1406} | package com.sayx.hm_cloud.model
class PlayPartyRoomInfoEvent(
val controlInfos: List<ControlInfo>,
val roomInfo: PlayPartyRoomInfo
) | 0 | Kotlin | 0 | 0 | 4e7948674b303da093579c19fe6450355565020d | 141 | hm_cloud_flutter | MIT License |
src/main/kotlin/org/kamiblue/client/util/CachedValues.kt | NotMonika | 509,486,355 | false | {"Kotlin": 1389924, "Java": 110277, "Shell": 15180, "GLSL": 3626} | package org.kamiblue.client.util
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import org.kamiblue.client.util.threads.defaultScope
import kotlin.coroutines.CoroutineContext
import kotlin.reflect.KProperty
open class CachedValue<T>(
protected val updateTime: Long,
timeUnit: TimeUnit =... | 0 | Kotlin | 0 | 0 | 88dc5a7e96ba358898b03681bfdf760e93f94812 | 1,599 | __AntiZhangZongZe__ | Do What The F*ck You Want To Public License |
server/src/main/kotlin/com/github/windsekirun/kohakunas/dashboard/modules/auth/JwtConfig.kt | WindSekirun | 487,203,207 | false | {"Kotlin": 43435, "TypeScript": 12413, "Vue": 9450, "Python": 1541, "Dockerfile": 575, "HTML": 415, "SCSS": 64, "Shell": 35} | package com.github.windsekirun.kohakunas.dashboard.modules.auth
import com.auth0.jwt.JWT
import com.auth0.jwt.JWTVerifier
import com.auth0.jwt.algorithms.Algorithm
import com.github.windsekirun.kohakunas.dashboard.config.Config
import com.github.windsekirun.kohakunas.dashboard.model.dto.LoginDTO
import com.github.wind... | 0 | Kotlin | 0 | 0 | 10c767d353c22b7487acd9a502c4b19ccf1475c7 | 2,054 | kohakunas-dashboard | MIT License |
Chapter17/src/kotlinexamples/GameDifficultyFactory.kt | PacktPublishing | 164,067,642 | false | {"Text": 1, "Ignore List": 23, "Markdown": 5, "HTML": 2, "XML": 93, "Kotlin": 95, "Java": 18, "Gradle": 8, "INI": 4, "Shell": 3, "Batchfile": 3, "Gradle Kotlin DSL": 3, "Java Properties": 2, "Proguard": 1, "Ruby": 2, "OpenStep Property List": 3, "Swift": 2, "JSON": 2} | package kotlinexamples
enum class GameDifficulty {
EASY, NORMAL, HARD
}
class DifficultySettings private constructor(
val label: String,
val lives: Int,
val enemySpeed: Float,
val enemyHealth: Float
) {
companion object Factory {
@JvmStatic
fun getSettings(difficulty: GameDiff... | 0 | Kotlin | 32 | 51 | 9fd893de74c2546e2059606f4f87e2ddaa9644ea | 803 | Mastering-Kotlin | MIT License |
kpd/src/main/kotlin/io/foxcapades/lib/kps/kpd/BooleanDeque.kt | Foxcapades | 512,726,396 | false | {"Kotlin": 669435, "Makefile": 1207} | package io.foxcapades.lib.kps.kpd
import io.foxcapades.lib.kps.kpd.base.AbstractBooleanDeque
/**
* Boolean Deque
*
* A deque type that deals in unboxed [Boolean] values.
*
* @author <NAME> - https://github.com/foxcapades
* @since v1.0.0
*/
class BooleanDeque : PrimitiveDeque, AbstractBooleanDeque<BooleanDeque>... | 2 | Kotlin | 0 | 0 | 145dc2f5f183abb6ba6d7e28e8ec333ca6e8f4ad | 1,457 | kps | MIT License |
uniflow-androidx/src/main/java/io/uniflow/androidx/flow/LiveDataPublisher.kt | niltsiar | 252,766,233 | true | {"Kotlin": 113585, "Shell": 236} | package io.uniflow.androidx.flow
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import io.uniflow.core.flow.DataPublisher
import io.uniflow.core.flow.data.Event
import io.uniflow.core.flow.data.UIEvent
import io.uniflow.core.flow.data.UIState
import io.uniflow.core.logger.UniFlowLogger
im... | 0 | Kotlin | 0 | 0 | 17b23208257c4c8564a4da9ce7ce3dc4573f256d | 1,326 | uniflow-kt | Apache License 2.0 |
status/src/main/java/com/pyamsoft/tetherfi/status/StatusScreen.kt | pyamsoft | 475,225,784 | false | null | package com.pyamsoft.tetherfi.status
import android.os.Build
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.infiniteRepe... | 4 | Kotlin | 2 | 52 | 75adef3c88e8957b874c0e58f2bdec5d5ef3151c | 30,340 | tetherfi | Apache License 2.0 |
src/main/kotlin/org/kamiblue/botkt/command/commands/info/ServerInfoCommand.kt | l1ving | 288,019,910 | false | null | package org.kamiblue.botkt.command.commands.info
import org.kamiblue.botkt.command.BotCommand
import org.kamiblue.botkt.command.Category
import org.kamiblue.botkt.utils.Colors
object ServerInfoCommand : BotCommand(
name = "serverinfo",
alias = arrayOf("info", "guildinfo", "guild"),
category = Category.INF... | 8 | Kotlin | 4 | 14 | b6f49dc530ded6ef3daa0959e62234ed86098a19 | 1,260 | bot-kt | ISC License |
app/src/main/java/com/example/androiddevchallenge/ui/screen/home/Home.kt | clockvoid | 347,287,370 | 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 | 6b7152d18a5dfa386939bdd5107d250cea2f6b36 | 3,632 | compose-speed-round | Apache License 2.0 |
wework/src/main/java/com/magic/wework/apis/com/tencent/wework/foundation/observer/IObservers.kt | graysign | 256,120,123 | false | null | package com.magic.wework.apis.com.tencent.wework.foundation.observer
interface IObservers {
/** com.tencent.wework.foundation.observer.IDepartmentServiceObserver */
interface IDepartmentServiceObserver {
companion object {
const val STATE_ERROR = 2
const val STATE_FIRST_ERROR ... | 0 | null | 79 | 26 | fc82c867d6b13b3dcf0bd63e2feaa066c6193fe2 | 854 | XMagicHooker | MIT License |
app/src/main/java/com/kittydev/dynamicformbuilder/MainActivity.kt | padmadev | 302,112,124 | false | null | package com.kittydev.dynamicformbuilder
import android.graphics.Color
import android.os.Bundle
import android.view.View
import android.widget.LinearLayout
import androidx.appcompat.app.AppCompatActivity
import com.kittydev.kittydevdynamicformbuilde.KittyButton
import com.kittydev.kittydevdynamicformbuilde.KittyObject
... | 0 | Kotlin | 0 | 0 | 128a06575502dc398590482718ab7532a5a356aa | 1,522 | Kittydev-Dynamic-FormBulider | Apache License 2.0 |
src/main/kotlin/net/bladehunt/kotstom/dsl/item/Item.kt | bladehuntmc | 822,386,546 | false | {"Kotlin": 117270} | package net.bladehunt.kotstom.dsl.item
import net.bladehunt.kotstom.extension.adventure.asMini
import net.kyori.adventure.text.Component
import net.minestom.server.item.ItemComponent
import net.minestom.server.item.ItemStack
import net.minestom.server.item.Material
import net.minestom.server.item.component.Unbreakable... | 0 | Kotlin | 0 | 9 | f0bd4675be3ecd858b057d2d936aa93e5ed20cc2 | 3,284 | KotStom | MIT License |
src/main/kotlin/beatwalls/Main.kt | Kleiark | 239,992,352 | true | {"Kotlin": 137223} | package beatwalls
import kotlinx.coroutines.ExperimentalCoroutinesApi
import mu.KotlinLogging
import java.io.File
import kotlin.system.exitProcess
@ExperimentalCoroutinesApi
suspend fun main(args: Array<String>) {
checkOptions(args)
checkPath()
update()
run()
runOnChange { run() }
}
fun checkPat... | 0 | null | 0 | 0 | f8b0587ad1d170376b2f26d693075c7f0ab1c9a4 | 1,271 | beatwalls-1 | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsinterventionsservice/jpa/specification/ReferralSummarySpecifications.kt | ministryofjustice | 312,544,431 | false | {"Kotlin": 1706888, "Mustache": 5562, "Shell": 2684, "PLpgSQL": 2362, "Dockerfile": 1980} | package uk.gov.justice.digital.hmpps.hmppsinterventionsservice.jpa.specification
import org.springframework.data.jpa.domain.Specification
import uk.gov.justice.digital.hmpps.hmppsinterventionsservice.jpa.entity.AuthUser
import uk.gov.justice.digital.hmpps.hmppsinterventionsservice.jpa.model.ReferralSummary
import java... | 8 | Kotlin | 1 | 2 | ba44e866429054452016b73eb71936a61e8ca645 | 2,883 | hmpps-interventions-service | MIT License |
app/src/main/java/com/example/newsfeedapp/model/Markup.kt | doctor-blue | 393,233,150 | false | null | package com.example.newsfeedapp.model
import com.example.newsfeedapp.base.Model
import com.google.gson.annotations.SerializedName
data class Markup(
@SerializedName("markup_type")
var markupType: Int?,
@SerializedName("start")
var start: Int?,
@SerializedName("end")
var end: Int?,
@Serial... | 0 | Kotlin | 0 | 0 | 9b55413ac75d037c901805a6dd15eff1fdd0d851 | 369 | news_feed_app | Apache License 2.0 |
docs-examples/example-kotlin/src/test/kotlin/io/micronaut/nats/docs/jetstream/kv/KeyValueStoreHolder.kt | micronaut-projects | 217,083,524 | false | {"Java": 254598, "Groovy": 98220, "Kotlin": 42005} | package io.micronaut.nats.docs.jetstream.kv
import io.micronaut.context.annotation.Requires
// tag::imports[]
import io.micronaut.nats.jetstream.annotation.KeyValueStore
import io.nats.client.KeyValue
import jakarta.inject.Inject
import jakarta.inject.Singleton
// end::imports[]
@Requires(property = "spec.name", val... | 8 | Java | 9 | 14 | cb451856920200b70ca7e7c2277d4e5d2c93bdec | 588 | micronaut-nats | Apache License 2.0 |
core/src/commonMain/kotlin/work/socialhub/kslack/entity/Im.kt | uakihir0 | 794,979,552 | false | {"Kotlin": 868677, "Ruby": 2164, "Shell": 2095, "Makefile": 316} | package work.socialhub.kslack.entity
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlin.js.JsExport
/**
* https://api.slack.com/types/im
*/
@JsExport
@Serializable
class Im {
var id: String? = null
@SerialName("is_im")
var im = false
var user: String? ... | 5 | Kotlin | 0 | 0 | 3975e9de4fae5ef2ddc5b013c2a346536852f7b3 | 686 | kslack | MIT License |
app/src/main/java/com/flowfoundation/wallet/utils/AnimationUtils.kt | Outblock | 692,942,645 | false | {"Kotlin": 2429248, "Java": 104150} | package com.flowfoundation.wallet.utils
import android.animation.*
import android.view.View
import android.view.animation.AlphaAnimation
import android.view.animation.Interpolator
import androidx.annotation.ColorInt
import androidx.interpolator.view.animation.FastOutSlowInInterpolator
fun createScaleObjectAnimation(
... | 62 | Kotlin | 5 | 0 | 8ad633b7bccc02ae6b3005ca3989379ed8fb248d | 2,193 | FRW-Android | Apache License 2.0 |
layoutlibrary/src/main/java/com/jesen/cod/layoutlibrary/v1/_LinearLayout.kt | Jesen0823 | 343,987,158 | false | null | package com.jesen.cod.layoutlibrary.v1
import android.content.Context
import android.view.View
import android.widget.LinearLayout
const val MATCH_PARENT = -1
const val WRAP_CONTENT = -2
@Deprecated("V1版本存在隐式调用隐患,不可用")
class _LinearLayout(context: Context) : LinearLayout(context),
DSLViewParent<LinearLayout.Layou... | 2 | Kotlin | 0 | 0 | 69f9b7ec07bc70545feff5788b02a29373fe66cf | 1,101 | GitAppKotlin | Apache License 2.0 |
app/src/main/java/dev/kingbond/moveon/data/model/modelClass.kt | Kingbond470 | 422,909,035 | false | {"Kotlin": 129863, "Java": 9137} | package dev.kingbond.moveon.data.model
class modelClass {
} | 0 | Kotlin | 0 | 5 | b1f790c6cf43354857f1f98e217fe68bdb3e9e3a | 60 | Move-On | MIT License |
src/main/kotlin/no/java/moresleep/talk/ReadOneSession.kt | javaBin | 314,846,016 | false | null | package no.java.moresleep.talk
import no.java.moresleep.*
class ReadOneSession : Command {
override fun execute(systemUser: SystemUser, parameters: Map<String, String>): TalkDetail {
val id = parameters["id"]?:throw BadRequest("Missing id")
val talkinDb:TalkInDb = TalkRepo.aTalk(id)?:throw BadRequ... | 1 | Kotlin | 1 | 0 | 6fc72ede40a10b68a90f0359e563404c4b16e43e | 618 | moresleep | Apache License 2.0 |
filetree/src/main/kotlin/com/zyron/filetree/viewholder/FileTreeViewHolder.kt | Zyron-Official | 824,960,784 | false | {"Kotlin": 48768} | /**
* Copyright 2024 Zyron Official.
*
* 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... | 1 | Kotlin | 0 | 5 | da290b379cabdf418cbfd52bc01fb3ffcbebc72e | 1,700 | FileTree | Apache License 2.0 |
src/main/kotlin/org/jetbrains/plugins/feature/suggester/settings/FeatureSuggesterConfigurable.kt | a-kuznetsova | 327,264,043 | true | {"Kotlin": 240382, "Java": 2147, "JavaScript": 1672, "Python": 1037} | package org.jetbrains.plugins.feature.suggester.settings
import com.intellij.openapi.extensions.BaseExtensionPointName
import com.intellij.openapi.options.Configurable
import org.jetbrains.plugins.feature.suggester.suggesters.FeatureSuggester
import javax.swing.JComponent
class FeatureSuggesterConfigurable : Configur... | 0 | null | 0 | 0 | a3908d24c63a9f368ab379b1bb15706b4b8f00fb | 1,526 | intellij-feature-suggester | Apache License 2.0 |
source/app/src/main/java/com/apion/apionhome/ui/detail/DetailImageFragment.kt | ApionTech | 386,238,144 | false | null | package com.apion.apionhome.ui.detail
import androidx.navigation.fragment.findNavController
import androidx.navigation.fragment.navArgs
import androidx.viewpager2.widget.ViewPager2
import com.apion.apionhome.base.BindingFragment
import com.apion.apionhome.databinding.FragmentDetailImageBinding
import com.apion.apionho... | 0 | Kotlin | 1 | 0 | 24ddb088ffd985dcd34e3e8deeb5edcc1d717558 | 1,306 | apion_home | Apache License 2.0 |
src/main/kotlin/no/nav/bidrag/dokument/dto/Distribusjon.kt | navikt | 157,381,054 | false | null | package no.nav.bidrag.dokument.dto
import io.swagger.v3.oas.annotations.media.Schema
@Schema(description = "Bestill distribusjon av journalpost")
data class DistribuerJournalpostRequest(
@Schema(description = "Identifiserer batch som forsendelsen inngår i. Brukes for sporing") val batchId: String? = null,
@Sc... | 2 | Kotlin | 0 | 1 | 88f31f40adb2f47c6e3f267a793828c36e2fd1c7 | 1,397 | bidrag-dokument-dto | MIT License |
ksol-core/src/main/kotlin/com/dgsd/ksol/core/utils/EncodingUtils.kt | dlgrech | 524,875,633 | false | null | package com.dgsd.ksol.core.utils
import okio.ByteString.Companion.toByteString
import org.bitcoinj.core.Base58
object EncodingUtils {
fun encodeBase58(input: ByteArray): String {
return Base58.encode(input)
}
fun encodeBase64(input: ByteArray): String {
return input.toByteString().base64()
}
} | 0 | Kotlin | 2 | 9 | 153e922fa405d6ba6c33041002bcf53d6293c7cf | 314 | ksol | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/secretsmanager/CfnRotationScheduleRotationRulesPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.secretsmanager
import cloudshift.awscdk.common.CdkDslMarker
im... | 4 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 4,970 | awscdk-dsl-kotlin | Apache License 2.0 |
boxicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/boxicons/boxicons/solid/BxsCoffeeAlt.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.boxicons.boxicons.solid
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.graphic... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,817 | compose-icon-collections | MIT License |
project/common-bridge/src/main/kotlin/ink/ptms/artifex/bridge/ContainerOperator.kt | TabooLib | 492,563,163 | false | null | package ink.ptms.artifex.bridge
import taboolib.module.database.Where
import java.util.UUID
/**
* Artifex
* ink.ptms.artifex.bridge.ContainerOperator
*
* @author 坏黑
* @since 2022/5/25 00:35
*/
abstract class ContainerOperator {
abstract fun keys(uniqueId: UUID): List<String>
abstract operator fun get(... | 0 | Kotlin | 4 | 22 | 566482d83000c09ee233adf7e1f88152700b3c86 | 777 | artifex | Creative Commons Zero v1.0 Universal |
build-logic/common-plugins/src/main/kotlin/GitHubPackages.kt | xtclang | 196,110,471 | false | null | import XdkPropertiesImpl.Companion.REDACTED
import com.fasterxml.jackson.databind.JsonNode
import io.github.rybalkinsd.kohttp.dsl.context.Method
import io.github.rybalkinsd.kohttp.dsl.context.Method.DELETE
import io.github.rybalkinsd.kohttp.dsl.context.Method.GET
import io.github.rybalkinsd.kohttp.dsl.http
import io.gi... | 31 | null | 15 | 189 | e3fc42b9577f459a64c189e49a336891647ae360 | 6,817 | xvm | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/FlagUsa.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
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
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,628 | icons | MIT License |
app/src/androidTest/java/com/sd/demo/datastore/DatastoreTest.kt | zj565061763 | 815,453,423 | false | {"Kotlin": 16095} | package com.sd.demo.datastore
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.sd.lib.datastore.FDatastore
import kotlinx.coroutines.runBlocking
import org.junit.Test
import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class)
class DatastoreTest {
@Test
fun testGetDatastoreApi() {
v... | 0 | Kotlin | 0 | 0 | a1ef048b6e610d33a01ff1e89474f8ff3de00cc9 | 900 | datastore | MIT License |
src/day11/b/day11b.kt | pghj | 577,868,985 | false | {"Kotlin": 94937} | package day11.b
import readInputLines
import shouldBe
fun main() {
val monkeys = readInput()
fun doMonkey(m: Monkey) {
val it = m.items.iterator()
while(it.hasNext()) {
val item = it.next(); it.remove()
m.activity++
item.rem = m.operation(item.rem)
... | 0 | Kotlin | 0 | 0 | 4b6911ee7dfc7c731610a0514d664143525b0954 | 2,858 | advent-of-code-2022 | Apache License 2.0 |
plugins/power-assert/testData/codegen/infix/ExtensionNonInfixConstantReceiver.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // FUNCTION: infix.extension.mustEqual
import infix.extension.*
fun box() = expectThrowableMessage {
1.mustEqual(2 + 4)
}
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 128 | kotlin | Apache License 2.0 |
core/src/main/kotlin/com/github/magicpen/core/workflow/Argument.kt | liqiha0 | 347,020,906 | false | null | package com.github.magicpen.core.workflow
interface Argument {
fun getValue(context: Context): Any
} | 0 | Kotlin | 0 | 0 | 54170bd3c37d5ae7a3b9621aff5d8582cc23ce1d | 105 | magic-pen | Apache License 2.0 |
Problems/Algorithms/633. Sum of Square Numbers/SumSquare.kt | xuedong | 189,745,542 | false | {"Text": 1, "Ignore List": 1, "Markdown": 1, "Python": 498, "Kotlin": 443, "Java": 343, "Go": 55, "C++": 150, "Rust": 141, "Ruby": 2, "Dart": 1, "Erlang": 1, "Racket": 1, "Elixir": 1, "Scala": 2, "C": 2, "JavaScript": 22, "C#": 2, "Shell": 2, "SQL": 34, "JSON": 1, "Swift": 1, "TSX": 1} | class Solution {
fun judgeSquareSum(c: Int): Boolean {
if (isPerfectSquare(c)) return true
var a = 1
while (a * a <= c / 2) {
val num = c - a * a
if (isPerfectSquare(num)) {
return true
}
a++
}
... | 0 | Kotlin | 0 | 1 | a96d39cd0217f2e8b4e43b8c0472e30c3bb0ad44 | 904 | leet-code | MIT License |
basic_widgets_example01/android/app/src/main/kotlin/com/nano/basic_widgets_example01/MainActivity.kt | SevdanurGENC | 338,597,027 | false | {"Dart": 132353, "Objective-C": 16683, "Shell": 9168, "Java": 8254, "Swift": 2085, "Kotlin": 703} | package com.nano.basic_widgets_example01
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 1 | 7 | 8b752f8d7c48d346f9e72a2a2f5cddc2f1d4a267 | 137 | Mobile-Programming-Lecture-Notes | MIT License |
HW5/app/src/main/java/com/keddad/hw5/MainActivity.kt | keddad | 538,222,943 | false | {"Kotlin": 33430} | package com.keddad.hw5
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bu... | 0 | Kotlin | 0 | 0 | 72cf2da8f07ce51407a6067650835f49c729f31c | 1,759 | hse-android-22-23 | MIT License |
advent-of-code2016/src/main/kotlin/day08/Advent8.kt | REDNBLACK | 128,669,137 | false | null | package day08
import array2d
import day08.Operation.Type.*
import parseInput
import splitToLines
/**
You come across a door implementing what you can only assume is an implementation of two-factor authentication after a long game of requirements telephone.
To get past the door, you first swipe a keycard (no problem;... | 0 | Kotlin | 0 | 0 | e282d1f0fd0b973e4b701c8c2af1dbf4f4a149c7 | 5,052 | courses | MIT License |
marcel-compilation/marcel-parser/src/main/kotlin/com/tambapps/marcel/parser/cst/AbstractCstNode.kt | tambapps | 587,877,674 | false | {"Maven POM": 26, "Text": 1, "Ignore List": 11, "Markdown": 87, "Kotlin": 465, "Gradle Kotlin DSL": 5, "INI": 4, "Java Properties": 4, "Shell": 5, "Batchfile": 2, "Proguard": 8, "XML": 83, "Java": 226, "YAML": 1, "JavaScript": 1, "TOML": 1, "Gradle": 5, "JFlex": 1} | package com.tambapps.marcel.parser.cst
import com.tambapps.marcel.lexer.LexToken
/**
* Concrete Syntax Tree (AKA Parser Tree) node
*/
abstract class AbstractCstNode(
override val parent: CstNode?,
override val tokenStart: LexToken,
override val tokenEnd: LexToken
): CstNode {
open val value: Any? = null
... | 0 | Java | 0 | 7 | 83bf3562f8bb6b43fe5d6f2e13c9ed5ad3300bce | 629 | marcel | Apache License 2.0 |
src/main/kotlin/io/github/shaksternano/borgar/command/ChangeExtensionCommand.kt | ShaksterNano | 482,092,089 | false | {"Java": 468238, "Kotlin": 64603} | package io.github.shaksternano.borgar.command
import com.google.common.collect.ListMultimap
import com.google.common.io.Files
import io.github.shaksternano.borgar.command.util.CommandResponse
import io.github.shaksternano.borgar.util.MessageUtil
import io.ktor.client.*
import io.ktor.client.call.*
import io.ktor.clien... | 2 | Kotlin | 3 | 10 | d0d3ec8969973194071196f41d56bc22d9780491 | 2,077 | borgar | MIT License |
Application/src/main/java/com/example/android/ui/fragment/bgTestGraph/GraphViewModel.kt | Nazmul56 | 567,401,882 | false | {"Java Properties": 5, "YAML": 1, "Gradle": 3, "Shell": 1, "Markdown": 3, "Batchfile": 1, "Text": 17, "Ignore List": 1, "INI": 7, "XML": 279, "Kotlin": 27, "Java": 42, "JSON": 267, "Motorola 68K Assembly": 1, "SQL": 1, "HTML": 1} | package com.example.android.ui.fragment.bgTestGraph
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class GraphViewModel : ViewModel() {
private val _text = MutableLiveData<String>().apply {
value = "This is home Fragment"
}
val tex... | 1 | null | 1 | 1 | 354f2b321f6cd2f0f11af5fdff8f16b98eed17ee | 349 | HRVDetector | Apache License 2.0 |
app/src/main/java/com/devicewifitracker/android/room/database/AppDatabase.kt | wanghoa | 542,192,628 | false | {"Java": 434396, "Kotlin": 221472} | package com.devicewifitracker.android.room.database
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import com.devicewifitracker.android.room.dao.Organizatio... | 1 | null | 1 | 1 | 028916627beb4ea1827fa497433741749268ef25 | 1,850 | DeviceScanner | Apache License 2.0 |
app/src/main/java/com/loan/golden/cash/money/loan/data/param/DeviceInfoParam.kt | williamXw | 693,063,899 | false | {"Java": 2423785, "Kotlin": 747998} | package com.loan.golden.cash.money.loan.data.param
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
/**
* @Author : hxw
* @Date : 2023/10/20 13:15
* @Describe :
*/
@Parcelize
class DeviceInfoParam(
val model: ModelBean? = null
) : Parcelable {
@Parcelize
class ModelBea... | 1 | null | 1 | 1 | 2ba6be236ce6de634dda7d02f78d87b4a6f9c7f6 | 7,024 | goldenMoney | Apache License 2.0 |
app/src/main/java/com/vinova/dotify/model/User.kt | tahn98 | 192,324,274 | false | null | package com.vinova.dotify.model
import java.io.Serializable
class User :Serializable {
var uid: String=""
var email: String=""
var username: String=""
var gender: String=""
var birthdate: String=""
var profile_photo: String=""
} | 2 | Kotlin | 2 | 0 | 5220956e7fd2ffc84c87a6077aff4cf7f010e778 | 254 | Dotify | Apache License 2.0 |
uploadservice/src/main/java/net/gotev/uploadservice/network/hurl/HurlStack.kt | EulerBlind | 218,795,972 | true | {"Kotlin": 139546, "Shell": 1187} | package net.gotev.uploadservice.network.hurl
import java.io.IOException
import net.gotev.uploadservice.network.HttpRequest
import net.gotev.uploadservice.network.HttpStack
class HurlStack(
private val followRedirects: Boolean = true,
private val useCaches: Boolean = false,
private val connectTimeout: Int ... | 0 | null | 0 | 0 | 09fd35faf81c221348f3d58560635fb80a4b4df5 | 663 | android-upload-service | Apache License 2.0 |
src/tr/strayfansub/src/eu/kanade/tachiyomi/extension/tr/strayfansub/StrayFansub.kt | komikku-app | 720,497,299 | false | {"Kotlin": 6409055, "JavaScript": 2160} | package eu.kanade.tachiyomi.extension.tr.strayfansub
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.model.Page
import org.jsoup.nodes.Document
import java.text.SimpleDateFormat
import java.util.Locale
class StrayFansub : Madara(
"Stray Fansub",
"https://strayfansub.com",
... | 8 | Kotlin | 2 | 19 | 88bafd3e5fb05cd4690fc46e4a7d624a2595e7f3 | 877 | komikku-extensions | Apache License 2.0 |
internal-storage-file-provider/src/main/java/com/github/ai/isfprovider/domain/MimeTypeProvider.kt | aivanovski | 410,594,542 | false | {"Kotlin": 203162} | package com.github.ai.isfprovider.domain
import android.webkit.MimeTypeMap
import com.github.ai.isfprovider.MimeTypes
import com.github.ai.isfprovider.entity.FileModel
internal class MimeTypeProvider {
fun getMimeType(file: FileModel): String? {
return when {
file.isDirectory -> MimeTypes.DIR... | 0 | Kotlin | 0 | 1 | 170ce125fcee81b057e12fd5416efacca029d3ad | 432 | internal-storage-file-provider | Apache License 2.0 |
features/currencyexchange/presentation/src/androidMain/kotlin/com/mindera/kmpexample/currencyexchange/opensource/OpensourceHeaderScene.kt | Mindera | 767,105,015 | false | {"Kotlin": 89862, "Swift": 422} | package com.mindera.kmpexample.currencyexchange.opensource
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose... | 0 | Kotlin | 0 | 1 | 1c24d2aeade48da855424296ca036e6c1da1c1b3 | 1,959 | Android-KMP-Template | Apache License 2.0 |
ch01/src/main/kotlin/VariableTest.kt | EDDI-RobotAcademy | 600,673,939 | false | null | fun main () {
val variableTest = VariableTest()
val result = variableTest.sum(3, 7)
println(result)
val name: String = "rich";
println(name)
}
class VariableTest {
fun sum (number1: Int, number2: Int) = number1 + number2
} | 0 | Kotlin | 0 | 0 | 892147fb862e1207d6bfe821c501e3d0af9dd869 | 248 | Kotlin-Basic-Programming | MIT License |
app/src/main/java/com/poc/firstprojectinfnet/home/data/datasource/DistrictDataSource.kt | OsvaldoAironInfnet | 623,234,281 | false | null | package com.poc.firstprojectinfnet.home.data.datasource
import com.poc.firstprojectinfnet.home.data.DistrictDate
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import org.json.JSONObject
import java.net.URL
class DistrictDataSource {
suspend fun getCityDistrict(latitude: Double, long... | 0 | Kotlin | 0 | 0 | fbb4558137580777eb2f60003a4167a10b619440 | 776 | TasksTwo | MIT License |
src/main/kotlin/tech/relaycorp/relaynet/keystores/MissingKeyException.kt | relaycorp | 171,718,724 | false | {"Kotlin": 543225} | package tech.relaycorp.relaynet.keystores
import tech.relaycorp.relaynet.RelaynetException
class MissingKeyException(message: String) : RelaynetException(message, null)
| 10 | Kotlin | 0 | 2 | 0999cf6d732449351866846fea4066183307d533 | 171 | awala-jvm | Apache License 2.0 |
android/src/main/java/com/ramitsuri/choresclient/android/work/PushMessageTokenUploader.kt | ramitsuri | 426,858,599 | false | {"Kotlin": 404799, "Shell": 8337, "Ruby": 1624, "Swift": 1574} | package com.ramitsuri.choresclient.android.work
import android.content.Context
import androidx.work.Constraints
import androidx.work.CoroutineWorker
import androidx.work.ExistingWorkPolicy
import androidx.work.NetworkType
import androidx.work.OneTimeWorkRequest
import androidx.work.WorkManager
import androidx.work.Wor... | 0 | Kotlin | 0 | 2 | 6c5fe6165b5705e4597c588e40c7b0ad3db8d4c7 | 2,515 | chores-client | MIT License |
ioswrapper-annotation/src/commonMain/kotlin/com/futuremind/iossuspendwrapper/ExportedScopeProvider.kt | cybernetics | 333,022,421 | true | {"Kotlin": 27925} | package com.futuremind.iossuspendwrapper
@Retention(AnnotationRetention.SOURCE)
@Target(AnnotationTarget.CLASS)
annotation class ExportedScopeProvider | 0 | null | 0 | 0 | 9aff9ef931dddc77255fa5fbcbb34d0e95609f0a | 151 | kmm-ios-suspendwrapper | MIT License |
data/src/main/kotlin/team/ommaya/wequiz/android/data/model/statistic/QuizStatisticFormattedResponse.kt | mash-up-kr | 628,190,373 | false | null | /*
* Designed and developed by "옴마야" Team 2023.
*
* Licensed under the MIT.
* Please see full license: https://github.com/mash-up-kr/WeQuiz-Android/blob/main/LICENSE
*/
package team.ommaya.wequiz.android.data.model.statistic
import com.fasterxml.jackson.annotation.JsonProperty
internal data class QuizStatisticF... | 3 | Kotlin | 0 | 6 | 39797f2a4a882b344e10e2f71f72190d437e0acf | 549 | WeQuiz-Android | MIT License |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/nearby/modules/tekhistory/DefaultTEKHistoryProvider.kt | fynngodau | 316,435,356 | true | {"Kotlin": 1918111, "HTML": 220745, "Java": 11067} | package de.rki.coronawarnapp.nearby.modules.tekhistory
import android.content.IntentSender
import com.google.android.gms.common.api.ApiException
import com.google.android.gms.common.api.Status
import com.google.android.gms.nearby.exposurenotification.ExposureNotificationClient
import com.google.android.gms.nearby.expo... | 0 | Kotlin | 0 | 0 | dfc1d918472a50c2f358b1f3ce54de72696cede7 | 2,435 | cwa-app-android | Apache License 2.0 |
deep_learning/src/main/kotlin/org/deep_thinker/dl/math/Vec.kt | jt70 | 717,930,853 | false | {"Kotlin": 82882, "Java": 71278} | package org.deep_thinker.dl.math
import java.util.*
import java.util.stream.DoubleStream
class Vec {
val data: DoubleArray
constructor(data: DoubleArray) {
this.data = data
}
constructor(vararg data: Int) : this(Arrays.stream(data).asDoubleStream().toArray())
constructor(size: Int) {
... | 0 | Kotlin | 0 | 10 | e2c35f3d695b9705c9af5194468c6d2a0cecf002 | 4,065 | deep_thinker | MIT License |
src/main/kotlin/edu/mit/reserve/ui/views/PatientInput.kt | JohnEFerguson | 267,182,093 | false | {"Kotlin": 47625, "Batchfile": 2176, "Shell": 27} | package edu.mit.reserve.ui.views
import edu.mit.reserve.lottery.models.Category
import edu.mit.reserve.ui.controllers.LotteryController
import javafx.beans.property.SimpleBooleanProperty
import javafx.beans.property.SimpleObjectProperty
import javafx.beans.property.SimpleSetProperty
import javafx.beans.property.Simple... | 5 | Kotlin | 0 | 2 | 0235b504400ef8ff9807724cdd231e6e31af11d6 | 5,171 | project-reserve-tornado-executable | MIT License |
declarations/src/main/kotlin/telemetry/telemetry.kt | p-h | 358,263,783 | true | {"Kotlin": 347068} | package telemetry
import kotlin.Suppress
import kotlin.js.Promise
/**
* Type of scalar: 'count' for numeric values, 'string' for string values, 'boolean' for boolean
values. Maps to <code>nsITelemetry.SCALAR_TYPE_*</code>. */
typealias ScalarType = String
/**
* Represents registration data for a Telemetry ... | 0 | Kotlin | 0 | 1 | 7338c5e0042da76c7c943de4228388180a43fc66 | 8,846 | kotlin-webextensions-declarations | Apache License 2.0 |
kairo-exception/src/main/kotlin/kairo/exception/UnsupportedMediaTypeException.kt | hudson155 | 836,940,978 | false | {"Kotlin": 486567, "HCL": 1700} | package kairo.exception
import io.ktor.http.HttpStatusCode
public abstract class UnsupportedMediaTypeException(
message: String,
cause: Exception? = null,
) : KairoException(message, cause) {
final override val statusCode: HttpStatusCode = HttpStatusCode.UnsupportedMediaType
}
| 0 | Kotlin | 1 | 9 | da21d969005c51aa6d30ac20b1e682452494c50c | 286 | kairo | Apache License 2.0 |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/quicksight/CfnTemplateWordCloudChartConfigurationPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.quicksight
import cloudshift.awscdk.common.CdkDslMarker
import software.amazon.awscdk.IResolvable
impor... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 2,765 | awscdk-dsl-kotlin | Apache License 2.0 |
src/main/java/tik/prometheus/rest/models/SensorAllocationId.kt | Prometheus-Greenhouse | 531,893,984 | false | {"Kotlin": 62536, "Java": 30145, "HTML": 645} | package tik.prometheus.rest.models
import java.io.Serializable
class SensorAllocationId(
var greenhouseId: Long? = null,
var sensorId: Long? = null,
) : Serializable | 0 | Kotlin | 0 | 0 | a152d5a4b79cec253ff423d97c20be2a83d6c3d3 | 175 | prometheus-rest-service | MIT License |
telegram-bot/src/main/kotlin/eu/vendeli/tgbot/api/Message.kt | vendelieu | 496,567,172 | false | {"Kotlin": 520294, "CSS": 356} | @file:Suppress("MatchingDeclarationName")
package eu.vendeli.tgbot.api
import eu.vendeli.tgbot.interfaces.Action
import eu.vendeli.tgbot.interfaces.features.EntitiesFeature
import eu.vendeli.tgbot.interfaces.features.MarkupFeature
import eu.vendeli.tgbot.interfaces.features.OptionsFeature
import eu.vendeli.tgbot.type... | 5 | Kotlin | 6 | 116 | 744bbcf1fe96fcb52c50ddf11cf2dd9a3f98c4b5 | 1,591 | telegram-bot | Apache License 2.0 |
DSLs/kubernetes/dsl/src/main/kotlin-gen/dev/forkhandles/k8s/resourceFieldRef.kt | fork-handles | 649,794,132 | false | {"Kotlin": 575626, "Shell": 2264, "Just": 1042, "Nix": 740} | // GENERATED
package dev.forkhandles.k8s
import io.fabric8.kubernetes.api.model.DownwardAPIVolumeFile as model_DownwardAPIVolumeFile
import io.fabric8.kubernetes.api.model.EnvVarSource as model_EnvVarSource
import io.fabric8.kubernetes.api.model.ResourceFieldSelector as model_ResourceFieldSelector
fun model_DownwardA... | 0 | Kotlin | 0 | 9 | 68221cee577ea16dc498745606d07b0fb62f5cb7 | 761 | k8s-dsl | MIT License |
app/src/test/java/coolpharaoh/tee/speicher/tea/timer/views/show_tea/countdowntimer/BackgroundTimerTest.kt | pase13voxi | 189,609,464 | false | null | package coolpharaoh.tee.speicher.tea.timer.views.show_tea.countdowntimer
import android.app.AlarmManager
import android.app.AlarmManager.AlarmClockInfo
import android.app.Application
import android.app.PendingIntent
import android.content.Context
import io.mockk.every
import io.mockk.impl.annotations.RelaxedMockK
impo... | 0 | Kotlin | 0 | 0 | ef4cfd9c13fdf1efa3f10b2f9e8df2f2ba00497e | 2,673 | TeaMemory | Apache License 2.0 |
src/main/kotlin/com/sumygg/anarts/arts/contourline/ContourLineConfig.kt | sumy7 | 352,382,800 | false | null | package com.sumygg.anarts.arts.contourline
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.ui.graphics.Color
import com.sumygg.anarts.arts.ArtsConfig
import com.sumygg.anarts.ui.formitem.ColorChooseFormItem
import com.sumygg.anarts.ui.formitem.C... | 0 | Kotlin | 0 | 6 | eed93c9fa4b658ccfb69eb1fb9fb569f3dbb6649 | 799 | an-arts | MIT License |
app/src/main/kotlin/com/virajbhartiya/pyxis/ui/activities/login/InterfaceInteractorLogin.kt | virajbhartiya | 644,530,410 | false | null | package com.virajbhartiya.pyxis.ui.activities.login
import com.virajbhartiya.pyxis.di.PerActivity
import com.virajbhartiya.pyxis.ui.activities.base.InterfaceInteractor
@PerActivity
interface InterfaceInteractorLogin<V : InterfaceViewLogin> : InterfaceInteractor<V> {
fun signInDisposable(email: String, pass: Stri... | 0 | Kotlin | 0 | 0 | 497696bd6a24a4d9c30117614b65eecb485a7f6e | 325 | Pyxis | Apache License 2.0 |
app/src/main/java/com/admin/ozieats_app/model/UserIdModel.kt | chetan532 | 602,176,592 | false | {"Kotlin": 547623, "Java": 49451} | package com.admin.ozieats_app.model
import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class UserIdModel: BaseObservable() {
@SerializedName("user_id")
@Expose
@get:Bindable
var us... | 0 | Kotlin | 0 | 0 | 4fd3704a83c8e3ad7026bfda167c9b9b654384b1 | 337 | ozieats | MIT License |
wessager/src/main/java/com/ohyooo/network/Constants.kt | ohyooo | 245,038,844 | false | null | package com.ohyooo.network
internal object Constants {
const val PREFIX = "/Wessager"
const val SESSION_ID = "SESSION_ID"
const val EXPIRE_TIME = "EXPIRE_TIME"
const val PAYLOAD = "PAYLOAD"
} | 0 | Kotlin | 0 | 4 | 3d45276ce02e1601b0f7b5972a933d475d0ba163 | 209 | Wessager | Do What The F*ck You Want To Public License |
app/src/main/java/com/invictus/kidsGrowthTracker/features/autoDateTimePage/utils/AutoDateTimePageUtil.kt | Mr-Ajay-Singh | 834,828,457 | false | {"Kotlin": 339334} | package com.invictus.kidsGrowthTracker.features.autoDateTimePage.utils
import android.content.Intent
import android.provider.Settings
import splitties.init.appCtx
object AutoDateTimePageUtil {
fun isAutoTimeOff(): Boolean {
return if (com.invictus.kidsGrowthTracker.BuildConfig.DEBUG) {
false
... | 0 | Kotlin | 0 | 0 | 613e5e357c3cdc3138d2840eebe26f3e022483f8 | 655 | App-Boilerplate | MIT License |
core/data/src/main/java/ksnd/hiraganaconverter/core/data/PreferenceKeys.kt | kosenda | 565,470,862 | false | {"Kotlin": 301916, "Ruby": 230} | package ksnd.hiraganaconverter.core.data
import androidx.datastore.preferences.core.booleanPreferencesKey
import androidx.datastore.preferences.core.intPreferencesKey
import androidx.datastore.preferences.core.stringPreferencesKey
object PreferenceKeys {
val THEME_NUM = intPreferencesKey("theme_num")
val FONT... | 11 | Kotlin | 1 | 29 | 77b04cb3a7b3dbf1baf9d62b527eeb0bcf85b834 | 582 | hiragana-converter | Apache License 2.0 |
app/src/main/java/com/android/amit/instaclone/view/story/ShowStoryViewModel.kt | amit7127 | 268,000,968 | false | null | package com.android.amit.instaclone.view.story
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.android.amit.instaclone.data.Resource
import com.android.amit.instaclone.data.StoryModel
import com.android.amit.instaclone.data.UserDetailsModel
import com.android.amit.instaclone.re... | 0 | Kotlin | 0 | 1 | 80a94147e538c821db2730ae80a449013d616eb4 | 1,185 | Instagram-Clone | Apache License 2.0 |
acornui-utils/src/commonMain/kotlin/com/acornui/math/Pad.kt | fuzzyweapon | 130,889,917 | true | {"Kotlin": 2963922, "JavaScript": 15366, "HTML": 5956, "Java": 4507} | /*
* Copyright 2015 Nicholas Bilyk
*
* 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 ... | 0 | Kotlin | 1 | 0 | a57100f894721ee342d23fe8cacb3fcbcedbe6dc | 3,893 | acornui | Apache License 2.0 |
src/main/kotlin/ee/tenman/portfolio/domain/TransactionType.kt | ktenman | 823,358,247 | false | {"Kotlin": 136959, "Vue": 43557, "Python": 12702, "TypeScript": 11409, "Shell": 923, "Dockerfile": 876, "PLpgSQL": 644, "HTML": 642, "JavaScript": 576, "CSS": 177} | package ee.tenman.portfolio.domain
enum class TransactionType {
BUY, SELL
}
| 19 | Kotlin | 1 | 1 | dffd7339f08a4ad7ab09804d28d4232ab5c1421b | 79 | portfolio | Apache License 2.0 |
photolibrary/src/main/java/top/limuyang2/photolibrary/util/LPPImageType.kt | limuyang2 | 143,600,725 | false | null | package top.limuyang2.photolibrary.util
import android.media.MediaFormat.MIMETYPE_IMAGE_ANDROID_HEIC
import android.os.Build
import androidx.annotation.RequiresApi
import java.util.*
/**
* 图片类型枚举
*/
enum class LPPImageType {
JPEG {
override fun getType(): Array<String> = arrayOf("image/jpeg", "image/jpg... | 4 | Kotlin | 15 | 115 | 14357351d600b86f2df92639355bfdce0b1a786c | 1,780 | LPhotoPicker | Apache License 2.0 |
app/src/main/java/com/example/ar/core/filament/hello/ar/presentation/ArScene.kt | GokulDas027 | 437,953,841 | false | {"Kotlin": 116696, "Groovy": 5338, "Shell": 363} | package com.example.ar.core.filament.hello.ar.presentation
import android.annotation.SuppressLint
import android.view.Choreographer
import android.view.MotionEvent
import android.view.SurfaceView
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner
import com.example.ar.core.fila... | 1 | Kotlin | 1 | 9 | 234a00fca5dfd43a60596d1ddfa86d1e0b443eed | 9,443 | hello_ar_filament | MIT License |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/Byte.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: Byte
*
* Full name: System`Byte
*
* Usage: Byte represents a single byte of data in Read.
*
... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 893 | mathemagika | Apache License 2.0 |
app/src/main/java/io/github/prekara/android/AsyncTask/Listener/AsyncNextListener.kt | mizucoffee | 128,065,826 | true | {"Kotlin": 30226} | package io.github.prekara.android.AsyncTask.Listener
import io.github.prekara.android.Model.Server
/**
* Created by developer on 4/4/18.
*/
interface AsyncNextListener {
fun preExecute()
fun postExecute()
fun doInBackground(): String
} | 0 | Kotlin | 0 | 0 | 7ecfa96dce9b3bf271b4b8cac1f75ddc4ed57fa5 | 252 | PreKara-Android | MIT License |
src/rider/main/kotlin/com/jetbrains/observables/ui/dsl/ObservableDslEx.kt | JetBrains | 426,422,572 | false | null | package com.jetbrains.observables.ui.dsl
import com.intellij.openapi.editor.event.DocumentEvent
import com.intellij.openapi.editor.event.DocumentListener
import com.intellij.openapi.observable.util.whenTextChanged
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.ComboBox
import com.intellij.o... | 15 | Kotlin | 9 | 159 | 49e085af5d2fc331094a7747558f4a29df46f4f7 | 5,411 | rider-efcore | MIT License |
app/src/main/java/com/hxbreak/animalcrossingtools/view/CommonStatusGroup.kt | HxBreak | 268,269,758 | false | null | package com.hxbreak.animalcrossingtools.view
import android.annotation.SuppressLint
import android.content.Context
import android.util.AttributeSet
import android.view.*
import android.widget.Button
import android.widget.Scroller
import android.widget.TextView
import androidx.annotation.IntDef
import androidx.core.con... | 0 | Kotlin | 1 | 6 | ced2cb55e8d6c33da4678b48957428c593c95dbe | 14,297 | AnimalCrossingTools-Android | MIT License |
android/src/main/kotlin/com/ae/cache_audio_player/CacheAudioPlayerPlugin.kt | wengxianxun | 369,479,142 | true | {"Swift": 20810, "Dart": 14533, "Java": 12552, "Kotlin": 4643, "Ruby": 4157, "Objective-C": 759} | package com.ae.cache_audio_player
import android.content.Context
import androidx.annotation.NonNull;
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.plugin.common.EventChannel
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.com... | 0 | Swift | 0 | 0 | 59328a67c5ffd31f373a2883227a655324b0bad7 | 4,218 | cache_audio_player | MIT License |
app/src/main/java/com/thelumierguy/astroadventures/utils/HapticService.kt | thelumiereguy | 300,906,577 | false | null | package com.thelumierguy.astroadventures.utils
import android.content.Context
import android.content.Context.VIBRATOR_SERVICE
import android.os.VibrationEffect
import android.os.Vibrator
class HapticService(context: Context) {
private var vibratorService: Vibrator? = null
init {
vibratorService = c... | 0 | Kotlin | 9 | 58 | 74c73b82e0a52c488f7bf946ba5e6f3744da2e76 | 694 | AstroAdventures-Android | Apache License 2.0 |
client_end_user/shared/src/commonMain/kotlin/data/remote/model/MealCartDto.kt | TheChance101 | 671,967,732 | false | {"Kotlin": 2473455, "Ruby": 8872, "HTML": 6083, "Swift": 4726, "JavaScript": 3082, "CSS": 1436, "Dockerfile": 1407, "Shell": 1140} | package data.remote.model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class MealCartDto (
@SerialName("restaurantId") val restaurantId: String,
@SerialName("mealId") val mealId: String,
@SerialName("quantity") val quantity: Int,
)
| 4 | Kotlin | 55 | 572 | 1d2e72ba7def605529213ac771cd85cbab832241 | 302 | beep-beep | Apache License 2.0 |
datamodel/src/main/kotlin/de/westermann/robots/datamodel/util/Brightness.kt | pixix4 | 130,015,411 | false | null | package de.westermann.robots.datamodel.util
/**
* @author lars
*/
enum class Brightness {
LIGHT, DARK
} | 0 | Kotlin | 0 | 0 | 383475939c2ba1bf95b458edf762e123b10e8509 | 110 | Robots | Apache License 2.0 |
app/src/main/java/com/jawnnypoo/geotune/activity/MainActivity.kt | Commit451 | 58,508,396 | false | null | package com.jawnnypoo.geotune.activity
import android.Manifest
import android.annotation.TargetApi
import android.app.Activity
import android.app.LoaderManager
import android.content.ContentValues
import android.content.Intent
import android.content.Loader
import android.content.pm.PackageManager
import android.media.... | 0 | Kotlin | 2 | 8 | 776e36f119efc855a76c4acd92caa9498f934392 | 9,613 | GeoTune | Apache License 2.0 |
custom-vu/src/main/kotlin/jces1209/vu/page/admin/workflow/view/status/StatusWorkflowPage.kt | ssagnes | 301,400,123 | true | {"Kotlin": 273226} | package jces1209.vu.page.admin.workflow.view.status
import com.atlassian.performance.tools.jiraactions.api.page.wait
import jces1209.vu.page.admin.workflow.view.ViewWorkflowPage
import jces1209.vu.wait
import org.openqa.selenium.By
import org.openqa.selenium.WebDriver
import org.openqa.selenium.support.ui.ExpectedCond... | 0 | null | 0 | 0 | a2bcc10cca4b1fb04327dc189033dafe9b41d003 | 1,632 | jces-1209 | Apache License 2.0 |
composeApp/src/commonMain/kotlin/com/carpisoft/guau/customer/ui/GetCustomerViewModel.kt | wgcarvajal | 683,392,078 | false | {"Kotlin": 404670, "Swift": 1993, "Shell": 228} | package com.carpisoft.guau.customer.ui
import androidx.compose.runtime.Composable
import dev.icerock.moko.mvvm.compose.getViewModel
import dev.icerock.moko.mvvm.compose.viewModelFactory
import org.koin.compose.koinInject
@Composable
fun GetCustomerViewModel(customerViewModel: CustomerViewModel = koinInject()):Custome... | 0 | Kotlin | 0 | 0 | 7971f12e4a2b2763eb23dbfca8b56fdddc6db37e | 449 | guau-multiplatform | Apache License 2.0 |
frfragmentlistener/src/main/java/org/fog_rock/frfragmentlistener/fragment/FRFragmentExtensions.kt | sallyluenoa | 371,963,151 | false | {"Kotlin": 68339} | /*
* Copyright (c) 2021 SallyLueNoa
*
* 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... | 2 | Kotlin | 0 | 0 | fae0ba27b2372193cc570cc32d443734ee795cc2 | 1,923 | FRFragmentListener | Apache License 2.0 |
data/src/main/java/com/cleanarch/data/repository/movie/favorite/FavoriteMoviesDataSource.kt | rudraksh021 | 721,624,416 | false | {"Kotlin": 280236} | package com.cleanarch.data.repository.movie.favorite
import androidx.paging.PagingSource
import com.cleanarch.data.entities.MovieDbData
import com.cleanarch.domain.util.Result
/**
* Created by <NAME> on 05/12/2023
*/
interface FavoriteMoviesDataSource {
interface Local {
fun favoriteMovies(): PagingSou... | 0 | Kotlin | 0 | 0 | c9c68799526eb5a293b3db9e3268588a2a0ce92d | 593 | tech-test-base | Apache License 2.0 |
app/src/main/java/com/oguzdogdu/wallies/presentation/collections/CollectionViewModel.kt | oguzsout | 616,912,430 | false | null | package com.oguzdogdu.wallies.presentation.collections
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.cachedIn
import com.oguzdogdu.domain.usecase.collection.GetCollectionsUseCase
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
import k... | 0 | null | 0 | 7 | ce97aa9cf043862c58e409a32c12a21a3ffc0d14 | 1,090 | Wallies | MIT License |
app/src/test/kotlin/com/thundermaps/apilib/android/impl/resources/TaskResourceImplTest.kt | SaferMe | 240,105,080 | false | null | package com.thundermaps.apilib.android.impl.resources
import android.util.Log
import com.google.gson.Gson
import com.thundermaps.apilib.android.api.resources.Task
import com.thundermaps.apilib.android.api.responses.models.ResultHandler
import com.thundermaps.apilib.android.impl.AndroidClient
import io.ktor.client.requ... | 2 | Kotlin | 0 | 0 | c56862f8b504879996f1232079b62a81a5e402ef | 10,913 | saferme-api-client-android | MIT License |
app/src/test/java/com/kinandcarta/create/proxytoggle/broadcast/ProxyUpdateListenerProviderImplTest.kt | theappbusiness | 275,194,675 | false | null | package com.kinandcarta.create.proxytoggle.broadcast
import com.google.common.truth.Truth.assertThat
import com.kinandcarta.create.proxytoggle.feature.widget.broadcast.WidgetProxyUpdateListener
import io.mockk.mockk
import org.junit.Test
class ProxyUpdateListenerProviderImplTest {
private lateinit var subject: P... | 0 | Kotlin | 31 | 181 | c50e721d5263bd4fd84ae2f4e7f21774af8bc32a | 698 | android-proxy-toggle | MIT License |
archer-core/src/androidMain/kotlin/com/m2f/archer/datasource/SharedPreferencesDataSource.kt | m2f-kt | 725,163,141 | false | {"Kotlin": 33202, "JavaScript": 1057} | package com.m2f.archer.datasource
import android.content.SharedPreferences
import arrow.core.Either
import arrow.core.raise.either
import com.m2f.archer.crud.DeleteDataSource
import com.m2f.archer.crud.StoreDataSource
import com.m2f.archer.failure.DataEmpty
import com.m2f.archer.failure.DataNotFound
import com.m2f.arc... | 4 | Kotlin | 3 | 7 | 6061f51bb731f597fa22cd4b32056ae1eee1fa5f | 2,146 | Archer | Apache License 2.0 |
app/src/main/java/com/rgbstudios/todomobile/ui/fragments/OnboardingFragment.kt | cooncudee | 673,320,875 | false | {"Kotlin": 337116} | package com.rgbstudios.todomobile.ui.fragments
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
import androidx.viewpager2.widget.ViewPager2
import com.rgbstudio... | 0 | Kotlin | 0 | 2 | 2fee10f774058bab2f6be4eff2707b953a339c40 | 2,706 | TODO_Mobile | MIT License |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bulk/Driverrefresh.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.bulk
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.co... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 8,144 | VuesaxIcons | MIT License |
app/src/main/java/com/romzc/app/MainActivity.kt | romzc | 620,051,453 | false | null | package com.romzc.app
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import com.romzc.app.databinding.ActivityMainBinding
import com.romzc.app.viewmodel.CharactersViewModel
class MainActivity : ActivityCallback... | 0 | Kotlin | 0 | 0 | 53bcbe36da6f7824b0658abed32c46fcb1378d7e | 1,365 | rick-morty-app | MIT License |
data/RF02802/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF02802"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
5 to 1... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 1,361 | Rfam-for-RNArtist | MIT License |
src/com/jetbrains/php/ssr/dsl/entities/ConstraintName.kt | wbars | 141,590,154 | false | null | package com.jetbrains.php.ssr.dsl.entities
enum class ConstraintName(val docName: String, val string: Boolean) {
NAME("name", true),
REGEXP("regExp", true),
MIN_COUNT("minCount", false),
MAX_COUNT("maxCount", false),
TYPE("type", true),
REFERENCE_CONSTRAINT_NAME("referenceName", true),
REFERENCE_CONSTRAI... | 6 | Kotlin | 0 | 2 | 193204dee96b3a68aef99e51e75a0f72f008447d | 371 | php-ssr | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.