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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/Whale.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.outline
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,719 | icons | MIT License |
network/core/src/test/java/com/yigitozgumus/core/ExampleUnitTest.kt | yigitozgumus | 475,998,040 | false | {"Kotlin": 49621} | /*
* Created by yigitozgumus on 4/2/22, 11:44 AM
* Copyright (c) 2022 . All rights reserved.
* Last modified 4/2/22, 11:44 AM
*/
package com.yigitozgumus.api
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing d... | 0 | Kotlin | 0 | 0 | ca3ff32aaab6fd96fcee9f7c69098f99d10300ed | 479 | DemoCurrencyApplication | MIT License |
Compose/app/src/main/java/com/example/compose/MainActivity.kt | fairoozp | 356,848,633 | false | null | package com.example.compose
import android.content.res.Configuration
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.Image
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import andr... | 0 | Kotlin | 0 | 1 | 09bfb87ce91f6ccb6f8b08534b127f77116a5179 | 2,624 | Android_Kotlin_projects | MIT License |
Pokedex/app/src/main/java/com/dam/pokedex/models/PokemonDetails/PalParkEncounter.kt | JiaChengZhang14 | 758,592,292 | false | {"Kotlin": 25453} | package com.dam.pokedex.models.PokemonDetails
import kotlinx.serialization.Serializable
@Serializable
data class PalParkEncounter(
val area: Area,
val base_score: Int,
val rate: Int
) | 0 | Kotlin | 0 | 0 | c99cd1d9e8b60b68240cebfe83b7fac2e03e07b3 | 197 | Custom-Pokedex | MIT License |
mapcompose/src/main/java/ovh/plrapps/mapcompose/api/PathApi.kt | p-lr | 359,208,603 | false | null | @file:Suppress("unused")
package ovh.plrapps.mapcompose.api
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.Dp
import ovh.plrapps.mapcompose.ui.paths.PathData
import ovh.plrapps.mapcompose.ui.paths.PathDataBuilder
import ovh.plrapps.mapcompose.ui.state.MapState
/**
* Adds a path, optionall... | 6 | null | 7 | 96 | e65762b45cc7418cbae54e0673405d109da7aadd | 2,261 | MapCompose | Apache License 2.0 |
LearningFlutter/android/app/src/main/kotlin/com/example/LearningFlutter/MainActivity.kt | MartinALund | 263,854,396 | false | {"Dart": 4130, "Swift": 404, "Kotlin": 132, "Objective-C": 38} | package com.example.LearningFlutter
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 1dbd5196bf74682b020557feb4b4fdb2560e1d77 | 132 | LearningFlutter | Apache License 2.0 |
src/main/kotlin/PenPal.kt | nolequen | 162,179,912 | false | null | package su.nlq.icq.bot
open class PenPal(internal val id: String) | 0 | Kotlin | 1 | 0 | 9cedccc0ababdb8a5b4ff80c92f79255f8831781 | 66 | icq-bot-core | MIT License |
app/src/main/java/afkt/project/feature/dev_widget/view_assist/ViewAssistUtils.kt | afkT | 147,776,221 | false | null | package afkt.project.feature.dev_widget.view_assist
import afkt.project.R
import android.view.LayoutInflater
import android.view.View
import dev.widget.assist.ViewAssist
/**
* detail: ViewAssist Adapter 工具类
* @author Ttt
*/
object ViewAssistUtils {
/**
* 注册 Recycler Loading type
* @param viewAssist ... | 2 | null | 302 | 882 | 2fd4c7582a97968d73d67124b6b2e57eda18e90f | 2,321 | DevUtils | Apache License 2.0 |
src/main/java/com/github/pfmiles/icapserver/impl/protocol/IcapStdMethod.kt | pfmiles | 709,756,537 | true | {"YAML": 2, "Maven POM": 1, "Markdown": 1, "Text": 1, "Ignore List": 1, "Java": 12, "Kotlin": 16, "XML": 1} | package com.github.pfmiles.icapserver.impl.protocol
import com.github.pfmiles.icapserver.IcapMethod
/**
* The standard methods of ICAP protocol.
*
* @author pf-miles
*/
internal enum class IcapStdMethod : IcapMethod {
OPTIONS, REQMOD, RESPMOD
} | 9 | Java | 0 | 0 | 8613f574efc37b2774002e8d4e6e732fda502578 | 254 | icap-server | MIT License |
mobile/src/main/java/com/cm/media/entity/discover/DiscoverItem.kt | zhangwenxue | 157,227,854 | false | {"Java": 1368464, "Kotlin": 17634} | package com.cm.media.entity.discover
data class DiscoverItem(val attention: Int, val id: Int, var img: String, val isSubscribe: Int, var title: String) | 0 | Java | 1 | 2 | bf6facc4047e52af024d75e06cea4fd432d1dc4d | 152 | CMMedia | Apache License 2.0 |
src/main/kotlin/bubby/client/events/MoveUpdateEvent.kt | XeonLyfe | 374,812,621 | true | {"Java Properties": 1, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Text": 1, "Gradle": 1, "Ignore List": 1, "Kotlin": 138, "Java": 51, "JSON": 4, "INI": 1} | package bubby.client.events
import bubby.api.event.Event
class MoveUpdateEvent: Event()
| 0 | null | 0 | 1 | fb85860f66eda8e1f910c1cb0fd4aaf1b223a4ea | 90 | bubbyclient | Apache License 2.0 |
idea/testData/editor/quickDoc/OnEnumEntry.kt | JakeWharton | 99,388,807 | false | null | enum class TestEnum{
A, B, <caret>C
}
//INFO: <pre><b>enum entry</b> C <i>defined in</i> TestEnum</pre><b>Enum constant ordinal: 2</b>
| 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 142 | kotlin | Apache License 2.0 |
idea/testData/editor/quickDoc/OnEnumEntry.kt | JakeWharton | 99,388,807 | false | null | enum class TestEnum{
A, B, <caret>C
}
//INFO: <pre><b>enum entry</b> C <i>defined in</i> TestEnum</pre><b>Enum constant ordinal: 2</b>
| 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 142 | kotlin | Apache License 2.0 |
shared/src/main/java/org/odk/collect/shared/collections/CollectionExtensions.kt | getodk | 40,213,809 | false | null | package org.odk.collect.shared.collections
import org.json.JSONArray
import kotlin.math.abs
object CollectionExtensions {
fun <T> List<T>.itemFromHashOf(any: Any): T {
val index = abs(any.hashCode()) % this.size
return this[index]
}
fun JSONArray.has(value: Any): Boolean {
for (i... | 283 | null | 1372 | 717 | 63050fdd265c42f3c340f0ada5cdff3c52a883bc | 466 | collect | Apache License 2.0 |
backend.native/tests/runtime/basic/statements0.kt | damalmax | 100,103,267 | true | {"Kotlin": 3264868, "C++": 694226, "C": 154816, "Groovy": 43464, "Protocol Buffer": 11804, "Batchfile": 6134, "Shell": 6114, "JavaScript": 5058, "Pascal": 1546, "Makefile": 1341, "Java": 782} | fun simple() {
var a = 238
a++
println(a)
--a
println(a)
}
class Foo() {
val j = 2
var i = 29
fun more() {
i++
}
fun less() {
--i
}
}
fun fields() {
val foo = Foo()
foo.more()
println(foo.i)
foo.less()
println(foo.i)
}
fun main(args: A... | 0 | Kotlin | 0 | 0 | c7843aa9c76f37b521a562565945a55373563c34 | 363 | kotlin-native | Apache License 2.0 |
hello-algo/hello-algo-main/codes/kotlin/chapter_stack_and_queue/array_queue.kt | CoderDream | 402,249,596 | false | {"Maven POM": 206, "XML": 643, "Text": 661, "Ignore List": 121, "Markdown": 677, "YAML": 235, "JSON": 112, "JavaScript": 832, "EditorConfig": 9, "Browserslist": 15, "HTML": 431, "robots.txt": 1, "SVG": 21, "Vue": 121, "Java": 4312, "Java Properties": 58, "SQL": 25, "Batchfile": 33, "Shell": 71, "Dockerfile": 23, "INI":... | /**
* File: array_queue.kt
* Created Time: 2024-01-25
* Author: curtishd (<EMAIL>)
*/
package chapter_stack_and_queue
/* 基于环形数组实现的队列 */
class ArrayQueue(capacity: Int) {
private val nums: IntArray = IntArray(capacity) // 用于存储队列元素的数组
private var front: Int = 0 // 队首指针,指向队首元素
private var queSize: Int = ... | 1 | Java | 5 | 5 | 1af9462ce13a6fd1125a160e418b549c4510fa30 | 2,296 | java-architect-util | Apache License 2.0 |
app/src/main/java/com/ng/ui/other/zoom/ZoomActivity.kt | jiangzhengnan | 185,233,735 | false | null | package com.ng.ui.other.zoom
import android.os.Build
import android.os.Bundle
import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatActivity
import com.ng.nguilib.layout.zoom.ZoomLayout3
import com.ng.ui.R
import kotlinx.android.synthetic.main.activity_zoom.*
/**
* 描述:
* @author Jzn
* @date... | 0 | null | 68 | 243 | f528f8ad912f89c66ea3622f2e93a31db062cd93 | 732 | NguiLib | Apache License 2.0 |
mvi-arch/src/main/java/ru/touchin/roboswag/mvi_arch/core/Store.kt | TouchInstinct | 148,156,940 | false | null | package ru.touchin.roboswag.mvi_arch.core
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.cancel
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlo... | 15 | Java | 6 | 21 | 3b35c16cde524bf4400ad29f34c71fde2001a2e2 | 3,811 | RoboSwag | Apache License 2.0 |
SearchModule/src/main/kotlin/Searchmodule.kt | RainChain-Zero | 469,065,463 | false | {"Java": 134525, "Kotlin": 115635} | package rainchain
import Utils.OkhttpUtil
import com.alibaba.fastjson.JSON
import com.alibaba.fastjson.JSONObject
import kotlinx.serialization.json.JsonObject
import net.mamoe.mirai.console.plugin.jvm.JvmPluginDescription
import net.mamoe.mirai.console.plugin.jvm.KotlinPlugin
import net.mamoe.mirai.event.GlobalEventCh... | 1 | Java | 1 | 2 | ed4655d6caaab2d570ba0e0e1b70116ff20ad829 | 2,438 | Jasmine_Mirai_Plugins_Center | MIT License |
privacystreams-app/src/main/java/io/github/privacystreams/app/PStreamBroadcastReceiver.kt | PrivacyStreams | 82,502,054 | false | {"Java": 633040, "Kotlin": 51276} | package io.github.privacystreams.app
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import io.github.privacystreams.app.db.PStreamCollectService
/**
* Receive broadcasts and react
*/
class PStreamBroadcastReceiver(): BroadcastReceiver() ... | 7 | Java | 43 | 272 | 3f4d2873d51afd30c037cd3925aeee742a6e911f | 617 | PrivacyStreams | Apache License 2.0 |
tutorials/tutorial-sample/src/main/java/com/zhuinden/simplestacktutorials/steps/step_8/features/main/MainKey.kt | SEAbdulbasit | 330,345,962 | false | null | package com.zhuinden.simplestacktutorials.steps.step_8.features.main
import androidx.fragment.app.Fragment
import com.zhuinden.simplestack.ServiceBinder
import com.zhuinden.simplestackextensions.servicesktx.add
import com.zhuinden.simplestackextensions.servicesktx.get
import com.zhuinden.simplestackextensions.services... | 1 | null | 1 | 2 | b8a95bcf90f7014ed097bec68ecd55140370bec6 | 901 | simple-stack | Apache License 2.0 |
sentry/src/test/java/io/sentry/RequestDetailsResolverTest.kt | getsentry | 3,368,190 | false | null | package io.sentry
import io.sentry.exception.InvalidDsnException
import java.net.URL
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
import kotlin.test.assertNotNull
class RequestDetailsResolverTest {
@Test
fun `When options doesn't have a valid DSN, it throws Inval... | 189 | null | 427 | 995 | 549cbb4657b9dea1048c4882e79504e87d6acc4f | 1,857 | sentry-java | MIT License |
idea/testData/quickfix/createLabel/breakNoLoop.kt | JakeWharton | 99,388,807 | true | null | // "Create label foo@" "false"
// ACTION: Do not show return expression hints
// ERROR: The label '@foo' does not denote a loop
// ERROR: Unresolved reference: @foo
fun test() {
break@<caret>foo
} | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 201 | kotlin | Apache License 2.0 |
test/iv_properties/N35HowDelegatesWorkKtTest.kt | Kotlin | 17,946,069 | false | null | package iv_properties
import iii_conventions.MyDate
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
class N35HowDelegatesWorkKtTest {
@Test
fun testDate() {
val d = D()
/* Month numbering starts with 0 (0-Jan, 1-Feb, ... 11-Dec) */
d.date = MyDate... | 37 | Kotlin | 1456 | 2,598 | 5935a3cab5293bd7967b1bf1f4d2ae713f9e0e9e | 464 | kotlin-koans | MIT License |
base/promena-transformer/contract/src/main/kotlin/pl/beone/promena/transformer/contract/Transformer.kt | BeOne-PL | 235,044,896 | false | null | package pl.beone.promena.transformer.contract
import pl.beone.promena.transformer.applicationmodel.exception.transformer.TransformationNotSupportedException
import pl.beone.promena.transformer.applicationmodel.mediatype.MediaType
import pl.beone.promena.transformer.contract.data.DataDescriptor
import pl.beone.promena.... | 2 | Kotlin | 1 | 9 | adbc25d2cd3acf1990f7188938fee25d834aa0db | 1,315 | promena | Apache License 2.0 |
android/apollo/src/main/java/io/muun/apollo/domain/errors/ExchangeRateWindowTooOldError.kt | muun | 150,655,434 | false | null | package io.muun.apollo.domain.errors
import io.muun.common.exception.PotentialBug
class ExchangeRateWindowTooOldError : MuunError(), PotentialBug
| 21 | Java | 21 | 148 | 2c5c2400b8092080dd4edb48bedfb1e4cf13396e | 148 | apollo | MIT License |
kotlintest-tests/kotlintest-tests-core/src/test/kotlin/com/sksamuel/kotlintest/specs/shouldspec/ShouldSpecOneInstanceTest.kt | vinicri | 156,184,572 | true | {"Kotlin": 870811, "Java": 6857} | package com.sksamuel.kotlintest.specs
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import java.util.concurrent.atomic.AtomicInteger
class ShouldSpecOneInstanceTest : ShouldSpec() {
override fun isInstancePerTest(): Boolean = true
val count = AtomicInteger(0)
init {
"1" {
coun... | 0 | Kotlin | 0 | 1 | cb82314ae7dfe0039f87c49698b3ba4bb008d516 | 1,127 | kotlintest | Apache License 2.0 |
network-tasks/src/test/java/io/appmetrica/analytics/networktasks/internal/FullUrlFormerTest.kt | appmetrica | 650,662,094 | false | {"Java": 5812288, "C++": 5729793, "Kotlin": 2632367, "Python": 229161, "Objective-C++": 152166, "C": 127185, "Assembly": 59003, "Emacs Lisp": 14657, "Objective-C": 10302, "Starlark": 7767, "Shell": 5746, "Go": 4930, "CMake": 3562, "CSS": 1454, "AppleScript": 1429, "AIDL": 504} | package io.appmetrica.analytics.networktasks.internal
import android.net.Uri
import org.assertj.core.api.Assertions.assertThat
import org.junit.Assert.assertThrows
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.kotlin.any
import org.mockito.kotlin.doAnswer
import org.mockito.kotlin.doReturn
i... | 3 | Java | 5 | 54 | 81572296e16423617822fbc19c2465d6b7b4713e | 3,528 | appmetrica-sdk-android | MIT License |
test-suite-kotlin/src/test/kotlin/io/micronaut/docs/server/suspend/SuspendService.kt | micronaut-projects | 124,230,204 | false | null | package io.micronaut.docs.server.suspend
import io.micronaut.http.HttpRequest
import io.micronaut.http.context.ServerRequestContext
import io.micronaut.retry.annotation.Retryable
import kotlinx.coroutines.delay
import javax.inject.Singleton
@Singleton
open class SuspendService(
private val suspendRequestScopedSer... | 365 | Java | 850 | 5,102 | 09225886bd68b9197c3780943ddf288b28f042bd | 1,822 | micronaut-core | Apache License 2.0 |
Beginner/URI 1930.kt | AbdurRahimRatulAliKhan | 540,721,840 | false | {"Java": 523518, "Pascal": 31605, "C#": 31245, "Scala": 31168, "C": 27639, "JavaScript": 27009, "Kotlin": 19873, "Python": 19693, "Go": 19519, "C++": 18870, "Haskell": 18358, "Dart": 17572, "PHP": 17426, "R": 16944, "Clojure": 15918, "OCaml": 15511, "Lua": 13909, "Ruby": 10936} | import java.util.Scanner;
fun main(args: Array<String>) {
val leitor = Scanner(System.`in`);
val T1: Int = leitor.nextInt();
val T2: Int = leitor.nextInt();
val T3: Int = leitor.nextInt();
val T4: Int = leitor.nextInt();
val totalTomadas: Int = (T1 + T2 + T3 + T4) - 3;
println(totalT... | 1 | null | 1 | 1 | ef162dba6d828d1a33ef646852621e235242bca2 | 330 | Beecrowd-URI-Online-Judge-Solutions | MIT License |
src/main/kotlin/ui/composable/sections/log/FontSize.kt | jskako | 686,469,615 | false | {"Kotlin": 183833, "VBScript": 410, "Batchfile": 108} | package ui.composable.sections.log
enum class FontSize {
INCREASE, DECREASE
} | 6 | Kotlin | 1 | 16 | 4c7cb21a2096e742b3ff45c860048d4a6047aada | 82 | DroidSense | Apache License 2.0 |
server/src/main/java/org/jetbrains/bsp/bazel/server/bloop/BspModuleExporter.kt | JetBrains | 288,953,714 | false | null | package org.jetbrains.bsp.bazel.server.bloop
import bloop.config.Config
import bloop.config.Config.*
import org.jetbrains.bsp.bazel.server.bloop.ScalaInterop.toListOption
import org.jetbrains.bsp.bazel.server.bloop.ScalaInterop.toOption
import org.jetbrains.bsp.bazel.server.bloop.ScalaInterop.toScalaList
import org.je... | 7 | Kotlin | 32 | 112 | 22b79516848f4b1f44245f54aff9358c83ce53c0 | 7,385 | bazel-bsp | Apache License 2.0 |
05_RESTinPracticewithSpringBootandKotlin/05B_ParametersAndExceptionHandler/rest-with-spring-boot-and-kotlin-erudio/src/main/kotlin/br/com/erudio/math/SimpleMath.kt | leandrocgsi | 511,973,637 | false | null | package br.com.erudio.math
import kotlin.math.sqrt
class SimpleMath {
fun sum(numberOne: Double, numberTwo: Double) = numberOne + numberTwo
fun subtraction(numberOne: Double, numberTwo: Double) = numberOne - numberTwo
fun multiplication(numberOne: Double, numberTwo: Double) = numberOne * numberTwo
... | 0 | null | 0 | 3 | f00336c9ee75bdfd250b58a0b8b920c35cd6387c | 530 | erudio-microservices-kotlin | Apache License 2.0 |
detekt/wrapper/src/main/kotlin/io/buildfoundation/bazel/detekt/main.kt | justhecuke-zz | 268,666,437 | true | {"Starlark": 18701, "Kotlin": 13619, "Shell": 3647} | @file:JvmName("Main")
package io.buildfoundation.bazel.detekt
import io.buildfoundation.bazel.detekt.execute.Detekt
import io.buildfoundation.bazel.detekt.execute.Executable
import io.buildfoundation.bazel.detekt.execute.WorkerExecutable
import io.buildfoundation.bazel.detekt.stream.Streams
import io.buildfoundation.... | 0 | null | 0 | 0 | bffa68b4948aa26153185f4feda278557dc01951 | 1,019 | bazel_rules_detekt | Apache License 2.0 |
app/src/main/java/compose/stockmarket/data/repository/StockRepositoryImpl.kt | kelvinkioko | 504,771,872 | false | {"Kotlin": 43393} | package compose.stockmarket.data.repository
import compose.stockmarket.data.csv.CSVParser
import compose.stockmarket.data.local.StockDatabase
import compose.stockmarket.data.mapper.toCompanyInfoModel
import compose.stockmarket.data.mapper.toCompanyListingEntity
import compose.stockmarket.data.mapper.toCompanyListingMo... | 0 | Kotlin | 0 | 0 | cd237caa5ccb2abd1fd8b369bd2b9889f5c695a0 | 4,427 | StockMarket | Apache License 2.0 |
src/main/kotlin/me/galaran/nyamine/extension/ItemExt.kt | galaran | 308,542,958 | false | null | package me.galaran.nyamine.extension
import org.bukkit.Material
import org.bukkit.inventory.ItemStack
import org.bukkit.inventory.meta.ItemMeta
fun Material.stackOfOne() = ItemStack(this)
fun ItemStack.updateMeta(action: (ItemMeta) -> Unit): ItemStack {
val meta = this.itemMeta
action(meta)
this.itemMeta... | 0 | Kotlin | 0 | 0 | 1023818704c53cc31a0dadafd83030ace6ce1d62 | 346 | nyamine-features | MIT License |
app/src/main/java/com/arcadone/cloudsharesnap/presentation/theme/ThemeColors.kt | ArcaDone | 679,173,240 | false | null | package com.arcadone.cloudsharesnap.presentation.theme
import androidx.compose.ui.graphics.Color
val LightColors = CustomColors(
color01 = Color(0xFF6CA6CD),
color02 = Color(0xFFE6F7FF),
color03 = Color(0xFFADD8E6),
color04 = Color(0xFF87CEEB),
color05 = Color(0xFF4682B4),
color06 = Color(0xF... | 0 | Kotlin | 0 | 1 | 4a034a920e15ca3da94eec301568e59f29626f55 | 1,107 | Cloud-Share-Snap | MIT License |
coroutine_cachepro/src/main/java/com/pv_libs/coroutine_cachepro/annotations/Annotations.kt | pv-libs | 262,783,333 | false | null | package com.pv_libs.cachepro_rxjava.annotations
internal class Annotations {
private val forceNetworkCallAnnotation: ForceNetworkCall by lazy {
Annotations::class.java.getDeclaredMethod("getForceNetworkCall")
.getAnnotation(ForceNetworkCall::class.java)
}
private val forceCacheCallAnno... | 0 | Kotlin | 0 | 1 | d19eb990ad1eb8f71fb33ed2873b8f33515a96be | 648 | RxCachePro | MIT License |
data/database/src/commonMain/kotlin/ly/david/musicsearch/data/database/mapper/MapToPlaceListItemModel.kt | lydavid | 458,021,427 | false | {"Kotlin": 1354732, "HTML": 674577, "Python": 3489, "Shell": 1543, "Ruby": 955} | package ly.david.musicsearch.data.database.mapper
import ly.david.musicsearch.core.models.LifeSpanUiModel
import ly.david.musicsearch.core.models.listitem.PlaceListItemModel
import ly.david.musicsearch.core.models.place.CoordinatesUiModel
fun mapToPlaceListItemModel(
id: String,
name: String,
disambiguati... | 115 | Kotlin | 0 | 6 | 4f49e75742e4c2135161e98df9db15b418c6c3fe | 838 | MusicSearch | Apache License 2.0 |
core/src/main/kotlin/gropius/service/architecture/ViewService.kt | ccims | 487,996,394 | false | {"Kotlin": 1147551, "Dockerfile": 263} | package gropius.service.architecture
import gropius.authorization.GropiusAuthorizationContext
import gropius.dto.input.architecture.layout.CreateViewInput
import gropius.dto.input.architecture.layout.UpdateViewInput
import gropius.dto.input.common.DeleteNodeInput
import gropius.dto.input.ifPresent
import gropius.model... | 6 | Kotlin | 1 | 0 | c8c1389102d19b79d2abbf6488d5ae7aebb36706 | 4,922 | gropius-backend | MIT License |
src/ko/newtoki/src/eu/kanade/tachiyomi/extension/ko/newtoki/DomainNumber.kt | Mangatsu | 453,422,398 | true | {"Kotlin": 4745122} | package eu.kanade.tachiyomi.extension.ko.newtoki
import android.util.Log
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.Interceptor
import okhttp3.Response
import java.io.IOException
/**
* Source changes domain names every few days (e.g. newtoki31.net to newtoki32.net)
... | 0 | Kotlin | 0 | 0 | 3446cc572aeb4ba10880ba4908d70388c52c224c | 3,181 | tachiyomi-extensions | Apache License 2.0 |
app/src/main/java/xyz/teamgravity/postsktorclient/data/remote/PostsApiImpl.kt | hectorally94 | 566,387,802 | false | {"Kotlin": 12641} | package xyz.teamgravity.postsktorclient.data.remote
import io.ktor.client.*
import io.ktor.client.request.*
import io.ktor.http.*
import xyz.teamgravity.postsktorclient.data.remote.dto.PostDto
class PostsApiImpl(private val client: HttpClient) : PostsApi {
override suspend fun getPosts(): List<PostDto> {
... | 0 | Kotlin | 0 | 2 | 734db8923a48780b572764bb909dce7964281592 | 595 | PostsKtorClient | Apache License 2.0 |
app/src/main/java/com/appchamp/wordchunks/ui/game/GameActivity.kt | luhongwu | 144,697,733 | false | {"Gradle": 3, "Java Properties": 2, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "JSON": 1, "Proguard": 1, "Kotlin": 53, "XML": 85, "Java": 2} | /*
* Copyright 2017 <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 writin... | 1 | null | 9 | 1 | fb56b3bb4da2008a99068f27d9e202d083725124 | 8,985 | WordChunks | Apache License 2.0 |
helper/src/main/java/com/win/mvvmhelper/widget/state/BaseEmptyCallback.kt | baowenqing | 589,388,687 | false | null | package com.win.mvvmhelper.widget.state
import com.kingja.loadsir.callback.Callback
import com.win.mvvmhelper.R
/**
* 作者 : hegaojian
* 时间 : 2020/12/14
* 描述 :
*/
class BaseEmptyCallback : Callback() {
override fun onCreateView(): Int {
return R.layout.layout_empty
}
} | 0 | Kotlin | 1 | 1 | bd80f5dad175d8555f3dd6acdb0b519870a0285d | 291 | MvvmHelper | Apache License 2.0 |
src/main/kotlin/com/miquido/stringstranslator/mapper/SingleStringsLocalModelMapper.kt | miquido | 185,740,724 | false | null | package com.miquido.stringstranslator.mapper
import com.miquido.stringstranslator.model.configuration.Android
import com.miquido.stringstranslator.model.configuration.Ios
import com.miquido.stringstranslator.model.configuration.Platform
import com.miquido.stringstranslator.model.configuration.Web
import com.miquido.st... | 0 | Kotlin | 1 | 3 | 6e18752563582621928f8ef40043a7f0a27a6d08 | 3,143 | 2match | Apache License 2.0 |
app/src/main/java/com/wuruoye/know/ui/home/adapter/RecordTypeRVAdapter.kt | ruoyewu | 176,071,372 | false | null | package com.wuruoye.know.ui.home.adapter
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.wuruoye.know.R
import com.wuruoye.know.model.beans.RecordType
import com.wuruoye.library.adapter.WB... | 0 | Kotlin | 0 | 0 | e35ce90cadab323b7a33ec2d52d214dfd4868b20 | 1,282 | know | Apache License 2.0 |
app/src/main/java/com/hammer/talkbbokki/data/entity/CommentsItemEntity.kt | Nexters | 588,815,777 | false | null | package com.hammer.talkbbokki.data.entity
data class CommentsCountEntity(
val result: Int
)
| 10 | Kotlin | 1 | 1 | 0654b098fbee3fd5b2c538c098cf8f028cb9078b | 97 | talkbbokki-android | Apache License 2.0 |
app/src/main/kotlin/com/illiarb/tmdbclient/modules/details/v2/components/MoviePhoto.kt | ilya-rb | 152,124,194 | false | null | package com.illiarb.tmdbclient.modules.details.v2.components
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compos... | 0 | null | 1 | 5 | 2a316e72c6ce68759627e52a749b7f02d91b2787 | 1,140 | Tmdb-Client | MIT License |
app/src/main/java/com/example/budgetapplication/data/categories/OfflineCategoriesRepository.kt | afcarzero1 | 677,854,405 | false | {"Kotlin": 303779} | package com.example.budgetapplication.data.categories
import kotlinx.coroutines.flow.Flow
class OfflineCategoriesRepository(
private val categoryDao: CategoryDao
) : CategoriesRepository {
override suspend fun insert(category: Category) = categoryDao.insert(category)
override suspend fun update(category:... | 0 | Kotlin | 0 | 0 | c10f911c5367d25f24ef68de189ed5c2586a4b37 | 945 | Budget | MIT License |
boo/src/main/java/com/larvalabs/boo/Util.kt | david082321 | 244,025,265 | true | {"Kotlin": 379481} | package com.larvalabs.boo
import android.util.Log
import android.view.animation.PathInterpolator
object Util {
private const val VERBOSE_ON = false
private const val TAG = "unlookable"
/**
* Use for everything but entering/exiting..
*/
val PATH_CURVE = PathInterpolator(0.4f, 0.0f, 0.2f, 1f)
/**
... | 0 | null | 0 | 0 | 2f46fe5040665975403f25f75507af0bdef6393c | 958 | tujian-kt | MIT License |
src/main/java/org/digma/intellij/plugin/dashboard/outgoing/BackendInfoMessage.kt | digma-ai | 472,408,329 | false | {"Kotlin": 1198585, "Java": 780476, "C#": 114216, "FreeMarker": 15244, "HTML": 12089, "Shell": 5404} | package org.digma.intellij.plugin.dashboard.outgoing
import org.digma.intellij.plugin.model.rest.AboutResult
data class BackendInfoMessage(val type: String, val action: String, val payload: AboutResult)
| 307 | Kotlin | 6 | 18 | fc5e9e843a7c8f3e4fda1fb57ebe60f6c3e022aa | 206 | digma-intellij-plugin | MIT License |
app/src/main/java/com/cyberknights4911/scouting/database/EventTeamCrossRef.kt | Krylez | 692,210,890 | false | {"Kotlin": 84897, "PowerShell": 862} | package com.cyberknights4911.scouting.database
import androidx.room.Entity
@Entity(
tableName = "event_team_crossref_table",
primaryKeys = ["event_key", "team_key"]
)
data class EventTeamCrossRef(
val event_key: String,
val team_key: String
)
| 0 | Kotlin | 0 | 0 | 889cde5140d27d2c7ecc6c20ff6c588e3fff9880 | 261 | FRC-2023-scouting-app-sample | Apache License 2.0 |
app/src/main/java/com/hadesmori/notes/ui/notes/NotesFragment.kt | HadesMori | 837,200,734 | false | {"Kotlin": 23415} | package com.hadesmori.notes.ui.notes
import android.app.Activity
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.InputMethodManager
import android.widget.SearchView
... | 0 | Kotlin | 0 | 4 | 0fcf2918608436545875640d39cd090c9c4a9744 | 3,630 | notes | Apache License 2.0 |
app/src/main/java/br/com/aramizu/idog/utils/DrawableResources.kt | aramizu | 150,366,378 | false | {"Gradle": 4, "Java Properties": 1, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "INI": 1, "Proguard": 1, "JSON": 1, "Kotlin": 71, "XML": 34, "Java": 2} | package br.com.aramizu.idog.utils
import android.graphics.drawable.Drawable
import br.com.aramizu.idog.config.IDogApplication
class DrawableResources {
companion object {
fun get(identifier: Int): Drawable? {
return IDogApplication.applicationContext()?.getDrawable(identifier)
}
}... | 1 | null | 1 | 1 | 46c751f33dfeb252a7601e125ec8334fa46798c1 | 322 | idog-android | Open LDAP Public License v2.3 |
src/main/kotlin/no/nav/syfo/oppfolgingstilfelle/kafka/KafkaOppfolgingstilfellePersonService.kt | navikt | 189,998,720 | false | null | package no.nav.syfo.oppfolgingstilfelle.kafka
import no.nav.syfo.application.database.DatabaseInterface
import no.nav.syfo.personstatus.*
import no.nav.syfo.personstatus.domain.PPersonOversiktStatus
import no.nav.syfo.personstatus.domain.PersonOppfolgingstilfelle
import org.apache.kafka.clients.consumer.*
import org.s... | 0 | Kotlin | 0 | 0 | e5bf6ed6f4efdfd3bb9f5ad94ae41490b03cf1c4 | 6,172 | syfooversiktsrv | MIT License |
presentation/src/main/java/io/github/joelkanyi/presentation/language/LanguageViewModel.kt | joelkanyi | 831,768,225 | false | {"Kotlin": 159312, "Shell": 23} | /*
* Copyright 2024 <NAME>.
* SPDX-License-Identifier: Apache-2.0
*/
package io.github.joelkanyi.presentation.language
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import io.github.joelkanyi.domain.repository.PreferenceRepository
i... | 1 | Kotlin | 6 | 60 | b533b954b3ecdc56fdac1c2887755ab6a3f257f9 | 1,083 | NewsApp | Apache License 2.0 |
reactive/kotlinx-coroutines-reactor/src/Migration.kt | hitherejoe | 231,934,506 | true | {"Kotlin": 2640560, "Java": 30547, "CSS": 8215, "Shell": 3332, "JavaScript": 2529, "Ruby": 1932, "HTML": 1675, "Prolog": 422} | @file:JvmName("FlowKt")
package kotlinx.coroutines.reactor
import kotlinx.coroutines.flow.*
import reactor.core.publisher.*
@Deprecated(
message = "Replaced in favor of ReactiveFlow extension, please import kotlinx.coroutines.reactor.* instead of kotlinx.coroutines.reactor.FlowKt",
level = DeprecationLevel.E... | 0 | Kotlin | 0 | 1 | 349ef14a3e8bd6df41f4f032da8c0c5fa309d80a | 414 | kotlinx.coroutines | Apache License 2.0 |
compiler/testData/codegen/box/delegation/kt44199.kt | JetBrains | 3,432,266 | false | null | import kotlin.reflect.KProperty
class WrapperDelegate<T>(val value: T) {
inline operator fun getValue(thisRef: Any?, property: KProperty<*>) = value
}
class NameWrapperDelegate<T>(val build: (String) -> T) {
inline operator fun provideDelegate(thisRef: Any?, property: KProperty<*>) = WrapperDelegate(build(pro... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 520 | kotlin | Apache License 2.0 |
apps/etterlatte-tidshendelser/src/main/kotlin/no/nav/etterlatte/tidshendelser/Hendelse.kt | navikt | 417,041,535 | false | {"Kotlin": 5369771, "TypeScript": 1270964, "Handlebars": 21854, "Shell": 10666, "HTML": 1776, "CSS": 598, "Dockerfile": 587} | package no.nav.etterlatte.tidshendelser
import java.time.LocalDate
import java.time.LocalDateTime
import java.time.YearMonth
import java.util.UUID
data class HendelserJobb(
val id: Int,
val opprettet: LocalDateTime,
val endret: LocalDateTime,
val versjon: Int,
val type: JobbType,
val kjoeredat... | 21 | Kotlin | 0 | 6 | cb2f66b3d6bef0ab72b82ca34a7f2e371ff4269c | 1,161 | pensjon-etterlatte-saksbehandling | MIT License |
app-ui-catalog/src/main/java/app/k9mail/ui/catalog/ui/atom/items/ColorItems.kt | thunderbird | 1,326,671 | false | null | package app.k9mail.ui.catalog.ui.atom.items
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.grid.LazyGridScope
import androidx.compose.runtime.Composable
import androidx.compose... | 789 | null | 2414 | 9,379 | 71f6713a2e7cc9d587e849329908fc2526f3923a | 2,623 | thunderbird-android | Apache License 2.0 |
common/src/main/java/android/util/BV.kt | eastar-dev | 188,695,253 | false | null | package android.util
import android.content.ContentResolver
import android.content.Context
import android.net.Uri
import androidx.annotation.RawRes
import dev.eastar.ktx.appName
import dev.eastar.ktx.getDrawableId
import dev.eastar.ktx.getRawString
import java.util.*
object BV {
lateinit var CONTEXT: Context
... | 0 | Kotlin | 0 | 1 | 100cf219787346561cc9af83db555f3f363cd0c7 | 1,234 | _EastarStudyLogForAndroid | Apache License 2.0 |
app/src/main/java/io/horizontalsystems/bankwallet/modules/walletconnect/version1/WC1RequestManager.kt | horizontalsystems | 142,825,178 | false | null | package io.horizontalsystems.bankwallet.modules.walletconnect.version1
class WC1RequestManager {
private val pendingRequests = hashMapOf<String, MutableList<WC1Request>>()
fun getNextRequest(peerId: String): WC1Request? {
return pendingRequests[peerId]?.firstOrNull()
}
fun save(peerId: String... | 47 | Kotlin | 334 | 672 | becd3af848071035ac41819676c25f2b07cc2622 | 772 | unstoppable-wallet-android | MIT License |
src/main/kotlin/com/wcarmon/codegen/ast/AnnotationExpression.kt | wcarmon | 382,707,115 | false | null | package com.wcarmon.codegen.ast
/**
*
* See https://docs.oracle.com/javase/tutorial/java/annotations/basics.html
* See https://kotlinlang.org/docs/annotations.html
* See https://kotlinlang.org/spec/annotations.html
* See https://www.typescriptlang.org/docs/handbook/decorators.html
* See https://www.digitalocean... | 0 | Kotlin | 0 | 0 | c79fc1bb2a6f748b3fdd09e3e64fe854fa85f650 | 1,249 | codegen | MIT License |
src/main/kotlin/pl/illegaldump/coordinates/entity/CoordinateEntity.kt | illegal-dump | 585,880,030 | false | null | package pl.illegaldump.coordinates.entity
import java.sql.Timestamp
import java.time.LocalDateTime
import java.time.ZoneOffset
import javax.persistence.*
/**
* default values to avoid hibernate default constructor requirement
*/
@Entity
@Table(name = "coordinate")
data class CoordinateEntity(
@Id
@Generated... | 0 | Kotlin | 0 | 0 | 42384aa72ba263ad5e376807294d1d0dae33a79c | 744 | coordinates | MIT License |
ui/src/main/java/dev/efrenospino/exptracker/ui/ComposeApp.kt | efrenospino | 724,179,011 | false | {"Kotlin": 74529} | package dev.efrenospino.exptracker.ui
import android.content.Context
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.lifecycle.viewmodel.compose.viewModel
import androidx.navigation.compose.rememberNavController
import dev.efrenospino.exptracker.domain.usecases.Filte... | 0 | Kotlin | 0 | 0 | e2e4782f4124efff435b08c757169a6c57583bd4 | 3,595 | expenses-tracker-kt | MIT License |
app/src/main/java/com/tomclaw/drawa/draw/ToolProvider.kt | solkin | 62,579,229 | false | null | package com.tomclaw.drawa.draw
import com.tomclaw.drawa.draw.tools.Tool
interface ToolProvider {
fun getTool(type: Int): Tool
fun listTools(): List<Tool>
}
class ToolProviderImpl(toolSet: Set<Tool>) : ToolProvider {
private val tools = HashMap<Int, Tool>()
init {
toolSet.forEach { tool -... | 1 | null | 6 | 22 | 131f0ef2a9ea88854f18ecef2250d5396da225e2 | 580 | drawa-android | Apache License 2.0 |
baseLib/src/main/java/me/ycdev/android/lib/common/manager/NotifyAction.kt | yongce | 12,662,755 | false | null | package me.ycdev.android.lib.common.manager
interface NotifyAction<IListener> {
fun notify(listener: IListener)
}
| 0 | Kotlin | 6 | 19 | 5ffb4444b1e285a5f31138bbb98a39f869342c15 | 119 | AndroidLib | Apache License 2.0 |
src/main/kotlin/error/DimensionPluginException.kt | DhiWise | 436,566,283 | false | {"Kotlin": 22944, "Java": 926} | package error
import util.GROUP_ID
open class DimensionPluginException(
val header: String, message: String?
) : Exception(message)
class FileWriteException(
message: String?
) : DimensionPluginException("File creation exception:", message)
class WrongHeightException :
DimensionPluginException(GROUP_ID,... | 0 | Kotlin | 1 | 5 | 03a4a7f13b4cb7f0a7a0c63be482782e67092b24 | 583 | PxToDpConverter | MIT License |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnVodSource.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 142794926} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.mediatailor
import io.cloudshiftdev.awscdk.CfnResource
import io.cloudshiftdev.awscdk.CfnTag
import i... | 4 | Kotlin | 0 | 4 | e15f2e27e08adeb755ad44b2424c195521a6f5ba | 19,722 | kotlin-cdk-wrapper | Apache License 2.0 |
modules/mockk/src/commonTest/kotlin/io/mockk/it/VerificationErrorsTest.kt | mockk | 107,331,132 | false | null | package io.mockk.it
import io.mockk.*
import io.mockk.test.SkipInstrumentedAndroidTest
import kotlin.test.Test
import kotlin.test.fail
class VerificationErrorsTest {
val mock = mockk<MockCls>("mock")
val openMock = mockk<OpenMockCls>("mock")
private fun expectVerificationError(vararg messages: String, bl... | 296 | null | 344 | 5,426 | 79abc96d3235710d61beaf677ea1349ba12eea0c | 5,589 | mockk | Apache License 2.0 |
src/commonMain/kotlin/com/adyen/model/checkout/ResponseAdditionalDataDomesticError.kt | tjerkw | 733,432,442 | false | {"Kotlin": 5043126, "Makefile": 6356} | /**
* Adyen Checkout API
*
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides in... | 0 | Kotlin | 0 | 0 | 2da5aea5519b2dfa84454fe1665e9699edc87507 | 3,216 | adyen-kotlin-multiplatform-api-library | MIT License |
src/main/kotlin/moe/gensoukyo/gui/pages/WxAlchemyScreen.kt | MineCraftGensoukyo | 402,519,776 | false | null | package moe.gensoukyo.gui.pages
import me.wuxie.wakeshow.wakeshow.ui.WInventoryScreen
class WxAlchemyScreen(id: String?, background: String?, x: Int, y: Int, w: Int, h: Int, slotLeft: Int, slotTop: Int) :
WInventoryScreen(
id, background, x, y,
w,
h,
slotLeft,
slotTop
)... | 0 | Kotlin | 0 | 1 | 692dfea15cec05aecbe20d9b86beba1721282a5d | 359 | MCGUserGUI | MIT License |
app/src/main/java/com/wikicious/app/core/managers/KeyStoreCleaner.kt | wikicious | 717,459,357 | false | {"Kotlin": 4486268, "Shell": 6082, "Ruby": 1350} | package com.wikicious.app.core.managers
import com.wikicious.app.core.IAccountManager
import com.wikicious.app.core.ILocalStorage
import com.wikicious.app.core.IWalletManager
import io.horizontalsystems.core.IKeyStoreCleaner
class KeyStoreCleaner(
private val localStorage: ILocalStorage,
private val a... | 0 | Kotlin | 0 | 0 | 7f462a98165f1c324cf377ae8b5e4cf1398f54a3 | 737 | wikicious-wallet-android | MIT License |
ComposePrefs/src/main/java/com/jamal/composeprefs/ui/prefs/TextPref.kt | JamalMulla | 441,966,707 | false | {"Kotlin": 65454} | package com.jamal.composeprefs3.ui.prefs
import androidx.compose.foundation.clickable
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import com.jamal.composeprefs3.ui.PrefsListItem
import com.jamal.composepref... | 4 | Kotlin | 6 | 65 | e3aa7329ba2664d32ad6f47c49f0bbcca8dbf583 | 2,197 | ComposePrefs | MIT License |
src/main/java/org/chillout1778/commands/intake/IntakeAngleCommand.kt | FIRST1778 | 804,127,627 | false | {"Kotlin": 67840, "Java": 26498} | package org.chillout1778.commands.intake
import edu.wpi.first.wpilibj2.command.Command
import org.chillout1778.Robot
import org.chillout1778.subsystems.IntakeWrist
import org.chillout1778.subsystems.ShooterRollers
class IntakeAngleCommand(private val inputState: IntakeWrist.State): Command() {
init {
addR... | 0 | Kotlin | 0 | 0 | 955a9bc8c76fa185c61ccde67af98b8f45785730 | 842 | 2024-Robot-Code-Public | MIT License |
core-legacy/src/main/java/com/dipien/core/utils/RandomUtils.kt | dipien | 83,250,302 | false | null | package com.dipien.core.utils
import java.util.Random
import kotlin.math.abs
object RandomUtils {
private val RANDOM = Random()
fun getLong(): Long {
return abs(RANDOM.nextLong())
}
fun getInt(): Int {
return abs(RANDOM.nextInt())
}
fun get16BitsInt(): Int {
return ... | 3 | null | 1 | 3 | 755109b4b63969287b64f42973bdb287ab06c13f | 435 | kotlin-libraries | Apache License 2.0 |
src/main/kotlin/dev/lupluv/simplegamemode/commands/GamemodeCommand.kt | LUPLUV | 544,405,622 | false | {"Kotlin": 14276} | package dev.lupluv.simplegamemode.commands
import dev.lupluv.simplegamemode.utils.Config
import dev.lupluv.simplegamemode.utils.sendCMessage
import dev.lupluv.simplegamemode.utils.translation
import org.bukkit.Bukkit
import org.bukkit.GameMode
import org.bukkit.command.Command
import org.bukkit.command.CommandExecutor... | 0 | Kotlin | 0 | 0 | 5c817c5b6360a1f7beebce8ab6bef747cabc81b8 | 3,451 | SimpleGamemode | Apache License 2.0 |
src/test/kotlin/de/jodamob/junit5/SealedClassesSourceTest.kt | dpreussler | 235,895,791 | false | {"Kotlin": 8460} | package de.jodamob.junit5
import org.junit.jupiter.api.AfterAll
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.TestInstance
import org.junit.jupiter.params.ParameterizedTest
import kotlin.reflect.KClass
sealed class Letters {
object A: Letters()
object... | 0 | Kotlin | 2 | 23 | e75f8b7caa21e456a22ba513d8454cc6001d4acc | 3,915 | junit5-kotlin | MIT License |
app/src/main/java/com/renamecompanyname/renameappname/ui/home/HomeScreen.kt | pim-developer | 839,680,760 | false | {"Kotlin": 12667} | package com.renamecompanyname.renameappname.ui.home
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import android... | 11 | Kotlin | 0 | 1 | 2068ad8eef01bdeb03a989a8ac33eb5c32a2d53c | 2,707 | modern-android-template-quick-start | MIT License |
src/main/kotlin/ru/amai/study/hackerrank/practice/interviewPreparationKit/arrays/manipulation/ArrayManipulation.kt | slobanov | 200,526,003 | false | null | package ru.amai.study.hackerrank.practice.interviewPreparationKit.arrays.manipulation
import java.lang.Long.max
import java.util.*
fun arrayManipulation(n: Int, queries: Array<IntArray>): Long {
val array = Array(n) { 0L }
queries.forEach { (a, b, k) ->
array[a - 1] = array[a - 1] + k
if (b < ... | 0 | Kotlin | 0 | 0 | 2cfdf851e1a635b811af82d599681b316b5bde7c | 971 | kotlin-hackerrank | MIT License |
app/src/main/java/com/basarcelebi/fuelpriceapp/Navigation.kt | celebibasar | 772,601,968 | false | {"Kotlin": 14529} | package com.basarcelebi.fuelpriceapp
import androidx.compose.runtime.Composable
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import com.basarcelebi.fuelpriceapp.screens.FuelPriceScreen
@Composable
fun Navigation() {
... | 0 | Kotlin | 0 | 0 | c59a29b8744bb697b69da781fbbcfcad4c862050 | 695 | Fuel-Prices-Turkey | MIT License |
app/src/main/java/dxmnd/com/mymusicplayer/main/adapter/models/MainRecyclerViewModel.kt | KimHunJin | 101,188,391 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 2, "XML": 35, "Kotlin": 32} | package dxmnd.com.mymusicplayer.main.adapter.models
import dxmnd.com.mymusicplayer.service.model.MediaItem
/**
* Created by HunJin on 2017-09-04.
*/
interface MainRecyclerViewModel {
fun addItem(mainMusicItem: List<MediaItem>)
fun getItem(position: Int): MediaItem?
fun getItemCount(): Int
fun re... | 0 | Kotlin | 0 | 0 | e9fc8dc43545f3f2f0fc09afb392216aca097fa1 | 356 | MyMusicPlayer | Apache License 2.0 |
src/main/kotlin/logic/ChessGame.kt | VasilyShcherbinin | 364,439,268 | false | null | package logic
import java.lang.IllegalStateException
class ChessGame {
companion object {
const val GAME_STATE_WHITE = 0
const val GAME_STATE_BLACK = 1
const val GAME_STATE_END = 2
}
private var gameState = GAME_STATE_WHITE
var pieces: MutableList<Piece> = ArrayList()
pr... | 0 | Kotlin | 0 | 0 | 39dbb374fe552a3c76a7f09129903bda91738580 | 5,149 | KotlinChess-Proghammer | MIT License |
src/code/easy/ReverseInteger/ReverseInteger.kt | alphanication | 522,141,372 | false | {"Kotlin": 19353} | package code.easy.ReverseInteger
private const val MINUS = "-"
private const val EMPTY_STRING = ""
class ReverseInteger {
fun reverseInteger(integer: Int) : Int {
return try {
val symbol = if (integer > 0) 1 else -1
Integer.parseInt(integer.toString().replace(MINUS, EMPTY_STRING).... | 1 | Kotlin | 0 | 3 | 03774232214d26631729117c3eb9729218b008be | 404 | leetcode-kotlin | MIT License |
app/src/main/java/com/chiclaim/play/android/bean/ro/ArticleListRO.kt | chiclaim | 362,377,203 | false | null | package com.chiclaim.play.android.bean.ro
/**
*
* @author by <EMAIL>
*/
class ArticleListRO(val pageIndex: Int, val categoryId: Int) {
} | 0 | Kotlin | 0 | 0 | 92fdf477dd7ca6b41d6b0e540d466046fcbc0bc4 | 140 | EnjoyAndroid | Apache License 2.0 |
study/Study11/app/src/main/java/org/techtown/movie/Utils.kt | mike-jung | 281,814,310 | false | null | package org.techtown.movie
import java.text.NumberFormat
import java.text.SimpleDateFormat
import java.util.*
class Utils {
companion object {
val dateFormat = SimpleDateFormat("yyyyMMdd")
val dateFormat2 = SimpleDateFormat("yyyy-MM-dd")
fun addComma(value:Int?):String? {
retu... | 0 | null | 17 | 13 | f7b6f1df6d5445bee3b02c63527c997da22157f1 | 396 | kotlin-android | Apache License 2.0 |
auth-oauth/src/jvmMain/kotlin/io/ashdavies/playground/NotionSettings.kt | ashdavies | 36,688,248 | false | null | package io.ashdavies.playground
import io.ktor.client.request.basicAuth
import io.ktor.http.HttpMethod
import io.ktor.server.auth.OAuthServerSettings
private const val DEFAULT_HOST =
"https://api.notion.com/v1/oauth"
private val NotionClientId: String
get() = System.getenv("NOTION_CLIENT_ID")
private val No... | 3 | Kotlin | 33 | 111 | c4883dcd30f489e61f3969b6dbfe6f3c2be0642b | 879 | playground.ashdavies.dev | Apache License 2.0 |
app/src/main/java/com/anorlddroid/patricemulindi/views/HomeFragment.kt | anorld-droid | 518,767,123 | false | {"Kotlin": 27390} | package com.anorlddroid.patricemulindi.views
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.NumberPicker
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import ... | 0 | Kotlin | 0 | 0 | 48d94bfba8b2541bd909877aecf4cad7a5f45cfe | 5,161 | BMI_Calculator | Apache License 2.0 |
kcrud-base/src/main/kotlin/kcrud/base/errors/AppException.kt | perracodex | 682,128,013 | false | null | /*
* Copyright (c) 2024-Present Perracodex. Use of this source code is governed by an MIT license.
*/
package kdoc.base.errors
import io.ktor.http.*
import kotlinx.serialization.Serializable
/**
* The application exception class, directly incorporating HTTP status, error code, and description.
*
* @param status... | 0 | null | 0 | 2 | fa17eed99e804de86509384d56d6e93832fb9b3f | 2,876 | Kcrud | MIT License |
app/src/main/java/app/zhrfnnn/newsapp/ui/main/home/HomeVM.kt | zhrfnnn | 666,948,654 | false | null | package app.zhrfnnn.newsapp.ui.main.home
import androidx.lifecycle.MutableLiveData
import app.zhrfnnn.newsapp.data.model.Article
import app.zhrfnnn.newsapp.data.usecase.news.GetHeadlinesUseCase
import app.zhrfnnn.newsapp.ui.base.BaseActivity
import app.zhrfnnn.newsapp.ui.base.BaseVM
import app.zhrfnnn.newsapp.util.log... | 0 | Kotlin | 0 | 0 | 980e6e5b74b86018e0e84a81ffde8d1e93edede1 | 1,256 | newsapp | Apache License 2.0 |
src/commonMain/kotlin/data/socketbonus/SocB2863.kt | marisa-ashkandi | 332,658,265 | false | null | package data.socketbonus
import data.Constants
data class SocB2863 (
override var id: Int = 2863,
override var stat: Constants.StatType = Constants.StatType.INTELLECT,
override var amount: Int = 3
) : SocketBonusRaw()
| 21 | Kotlin | 11 | 25 | 9cb6a0e51a650b5d04c63883cb9bf3f64057ce73 | 226 | tbcsim | MIT License |
src/main/java/me/johnythecarrot/droopswebsocket/enums/Verbosity.kt | JohnyTheCarrot | 248,715,979 | false | null | package me.johnythecarrot.droopswebsocket.enums
enum class Verbosity {
NONE,
LOW,
MEDIUM,
HIGH
} | 0 | Kotlin | 0 | 0 | 0c4868187c5c8c284601f09119831e01470c36e1 | 113 | DroopsWebSocket | Apache License 2.0 |
application/src/main/java/com/iamkurtgoz/application/local/db/ECommerceDatabase.kt | iamkurtgoz | 464,093,153 | false | null | package com.iamkurtgoz.application.local.db
import androidx.room.Database
import androidx.room.RoomDatabase
import com.iamkurtgoz.application.local.dao.ProductCategoryDAO
import com.iamkurtgoz.application.local.dao.ProductDAO
import com.iamkurtgoz.application.local.entity.ProductCategoryEntity
import com.iamkurtgoz.ap... | 0 | Kotlin | 1 | 25 | 57f7a95021a125e0cdae4924c32891f6b70b0c5a | 777 | ECommerceAndroidCompose | MIT License |
privacy-config/privacy-config-store/src/main/java/com/duckduckgo/privacy/config/store/features/gpc/GpcHeadersDao.kt | duckduckgo | 78,869,127 | false | null | /*
* Copyright (c) 2021 DuckDuckGo
*
* 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 ... | 67 | null | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 1,511 | Android | Apache License 2.0 |
schema-kenerator-test/src/test/kotlin/io/github/smiley4/schemakenerator/test/MergeGettersTest.kt | SMILEY4 | 729,430,513 | false | {"Kotlin": 808327} | package io.github.smiley4.schemakenerator.test
import io.github.smiley4.schemakenerator.core.annotations.Description
import io.github.smiley4.schemakenerator.core.data.ObjectTypeData
import io.github.smiley4.schemakenerator.core.data.PropertyType
import io.github.smiley4.schemakenerator.core.data.Visibility
import io.... | 6 | Kotlin | 4 | 9 | 28f02706ccdfba235654c33738001ab98588c015 | 2,174 | schema-kenerator | Apache License 2.0 |
schema-kenerator-test/src/test/kotlin/io/github/smiley4/schemakenerator/test/MergeGettersTest.kt | SMILEY4 | 729,430,513 | false | {"Kotlin": 808327} | package io.github.smiley4.schemakenerator.test
import io.github.smiley4.schemakenerator.core.annotations.Description
import io.github.smiley4.schemakenerator.core.data.ObjectTypeData
import io.github.smiley4.schemakenerator.core.data.PropertyType
import io.github.smiley4.schemakenerator.core.data.Visibility
import io.... | 6 | Kotlin | 4 | 9 | 28f02706ccdfba235654c33738001ab98588c015 | 2,174 | schema-kenerator | Apache License 2.0 |
app/src/main/java/com/shenyong/aabills/listdata/AaFriend.kt | AndrewShen812 | 148,644,530 | false | null | package com.shenyong.aabills.listdata
import android.databinding.ObservableField
import android.graphics.drawable.GradientDrawable
import com.sddy.baseui.recycler.BaseHolderData
import com.sddy.baseui.recycler.databinding.BaseBindingHolder
import com.shenyong.aabills.R
import com.shenyong.aabills.databinding.LayoutAaF... | 1 | null | 1 | 1 | e361c6e106117e8138db50ab3d50549e8d7677e1 | 723 | AABills | Apache License 2.0 |
fundamentos/fundamentos-gerais/src/main/kotlin/a/conceitosiniciais/01-DeclaracaoVariaveisUnsigned.kt | CarlosRobertoMedeiros | 725,864,363 | false | {"Kotlin": 76226, "Java": 78} | package a.conceitosiniciais
fun main() {
println("Declaração de Variáveis Unsigned - Sem Sinal do 0 ao 255 " +
"\nFloat e Double não tem Unsigned .." +
"\nApenas Números Inteiros")
println("ULong MAX ${ULong.MAX_VALUE} - Min ${ULong.MIN_VALUE}");
println("UInt MAX ${UInt.MAX_VALUE... | 0 | Kotlin | 0 | 0 | f7fb3affb466fe3d35fb94f5e8452129aabc4d13 | 625 | repo-kotlin-developer- | RSA Message-Digest License |
src/main/kotlin/dev/storozhenko/familybot/feature/pidor/services/PidorAutoSelectScheduler.kt | AngryJKirk | 114,262,178 | false | {"Kotlin": 485518, "Shell": 2369, "Dockerfile": 1922} | package dev.storozhenko.familybot.feature.pidor.services
import dev.storozhenko.familybot.core.telegram.FamilyBot
import io.github.oshai.kotlinlogging.KotlinLogging
import org.springframework.scheduling.annotation.Scheduled
import org.springframework.stereotype.Component
@Component
class PidorAutoSelectScheduler(
... | 0 | Kotlin | 5 | 115 | 4c12c75b939472ccb73bb7595b66022516a5b056 | 704 | familybot | MIT License |
data/RF00287/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF00287"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
4 to 5... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 659 | Rfam-for-RNArtist | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.