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/kawaii/nahida/actest/module/modules/commnds/CommandEnderChestModule.kt | NahidaLing | 864,875,780 | false | {"Kotlin": 37171} | package kawaii.nahida.actest.module.modules.commnds
import kawaii.nahida.actest.module.Module
import org.bukkit.event.EventHandler
import org.bukkit.event.player.PlayerCommandPreprocessEvent
@Suppress("Unused")
class CommandEnderChestModule : Module("CommandEnderChest") {
@EventHandler
fun onPlayerCommand(ev... | 0 | Kotlin | 0 | 1 | 5f87acab61e6468feaf37b5f984842869193d132 | 667 | ACTestPlugin | MIT License |
hero/ui-heroList/src/main/kotlin/com/mitch/ui_herolist/ui/HeroListEvents.kt | AlekseevArtem | 400,860,573 | false | null | package com.mitch.ui_herolist.ui
sealed class HeroListEvents{
object GetHeroes: HeroListEvents()
}
| 0 | Kotlin | 0 | 0 | 4707e885a931dc4a46382a29e74d687943452ac8 | 105 | Dota2Heroes | Apache License 2.0 |
presentation/src/main/java/com/bikcodeh/mubi/presentation/screens/profile/ProfileScreen.kt | Bikcodeh | 553,763,395 | false | {"Kotlin": 253338} | package com.bikcodeh.mubi.presentation.screens.profile
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.ExperimentalLifecycleComposeApi
import androi... | 0 | Kotlin | 0 | 1 | 25929e402744a1070357ff1af9b05eb7d8bd345c | 1,027 | Mubi | MIT License |
Async/app/src/main/java/com/leo/async/usecases/GetInformation.kt | leonelgomez1990 | 456,679,517 | false | {"Kotlin": 10666} | package com.leo.async.usecases
import com.leo.async.data.InformationRepository
class GetInformation (
val informationRepository: InformationRepository
) {
suspend operator fun invoke() = informationRepository.getInformation()
} | 0 | Kotlin | 0 | 0 | b1cf41e5b7ec21062a67fc86c8a910db14cb6a54 | 245 | kotlin-arch | MIT License |
feature/home/src/main/java/com/tmdb/feature/home/HomeScreen.kt | ductam1987 | 670,563,569 | false | null | package com.tmdb.feature.home
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.l... | 0 | Kotlin | 0 | 2 | 0ea1ae15bbfff390c341e3376af2c884a050af3e | 6,876 | TMDB-Compose-Koin-UDF | Apache License 2.0 |
src/main/kotlin/xyz/gameoholic/partigon/particle/loop/ReverseLoop.kt | Gameoholic | 680,129,215 | false | {"Kotlin": 73114} | package xyz.gameoholic.partigon.particle.loop
import org.bstats.charts.AdvancedPie
import xyz.gameoholic.partigon.PartigonPlugin
import xyz.gameoholic.partigon.util.inject
/**
* When loop reaches end, reverses the animation, playing it the same way but from point 2 to point 1,
* and vice versa.
* @param duration T... | 0 | Kotlin | 0 | 3 | 9f8765134aa9d8aed47d7ebcd9180096dd045501 | 1,234 | Partigon | MIT License |
androidApp/src/main/java/com/gosunet/krepesmultiplatform/androidApp/features/crepeslist/CrepesList.kt | tonicfx | 316,340,241 | true | {"Kotlin": 34942, "Swift": 17994, "Ruby": 386, "HTML": 191} | package com.gosunet.krepesmultiplatform.androidApp.features.crepeslist
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import androidx.compose.foundation.Image
import androidx.compose.foundation.Text
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row... | 0 | Kotlin | 0 | 0 | 921c60eeb8e5f346deaa9717485a14f672c9a7fe | 3,530 | KrepesMultiPlatform | MIT License |
analyzer/src/test/kotlin/si/ivory/analyzer/example/EventPublisher.kt | simvetanylen | 594,891,290 | false | null | package si.ivory.analyzer.example
interface EventPublisher {
fun publish(event: Any)
} | 0 | Kotlin | 0 | 0 | bd547d0ee0c559a29659811febcf715fa11be033 | 91 | ivory | Apache License 2.0 |
src/test/kotlin/nl/jackploeg/aoc/_2022/calendar/day14/Day14Test.kt | jackploeg | 736,755,380 | false | {"Kotlin": 318734} | package nl.jackploeg.aoc._2022.calendar.day14
import javax.inject.Inject
import nl.jackploeg.aoc._2022.DaggerTestDayComponent
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
internal class Day14Test {
@Inject
lateinit var day14: Day14... | 0 | Kotlin | 0 | 0 | f2b873b6cf24bf95a4ba3d0e4f6e007b96423b76 | 965 | advent-of-code | MIT License |
alchemy-core/src/androidMain/kotlin/com/alchemy/sdk/util/Dispatchers.kt | tguerin | 534,856,094 | false | null | package com.alchemy.sdk.util
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
actual class Dispatchers(
actual val io: CoroutineDispatcher = Dispatchers.IO,
actual val main: CoroutineDispatcher = Dispatchers.Main
) {
actual constructor() : this(
Dispatchers.IO,
... | 4 | Kotlin | 0 | 3 | 9768a7ab07d9955e3036c32b1f4497527f237b34 | 352 | alchemy-sdk-kotlin | MIT License |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/BinocularsSolid.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.lineawesomeicons
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
... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 5,092 | compose-icons | MIT License |
http4k-typesafe-openapi/src/test/kotlin/org/http4k/typesafe/openapi/HeadersTest.kt | savagematt | 251,337,496 | true | {"Kotlin": 1938601, "JavaScript": 133282, "Java": 31515, "Shell": 10427, "HTML": 2049, "Handlebars": 1130, "Pug": 944, "CSS": 832} | package org.http4k.typesafe.openapi
import com.natpryce.Result
import com.natpryce.hamkrest.assertion.assertThat
import com.natpryce.hamkrest.equalTo
import org.http4k.core.Method.GET
import org.http4k.core.Request
import org.http4k.core.Status.Companion.BAD_REQUEST
import org.http4k.openapi.OpenApiParameter
import or... | 0 | Kotlin | 0 | 0 | 9cc8ef11121bfbe10a1cd0ca58a17885c297af52 | 1,911 | http4k | Apache License 2.0 |
kontroller/src/test/kotlin/no/ssb/kostra/validation/rule/barnevern/individrule/Melding03Test.kt | statisticsnorway | 414,216,275 | false | {"Kotlin": 1603185, "TypeScript": 57803, "Batchfile": 6608, "HTML": 694, "SCSS": 110} | package no.ssb.kostra.validation.rule.barnevern.individrule
import io.kotest.core.spec.style.BehaviorSpec
import no.ssb.kostra.validation.report.Severity
import no.ssb.kostra.validation.rule.ForAllRowItem
import no.ssb.kostra.validation.rule.KostraTestFactory.validationRuleWithArgsTest
import no.ssb.kostra.validation.... | 2 | Kotlin | 0 | 1 | 298df2fc967ad79edbdfe50ceaabbb1ce2c9d969 | 1,986 | kostra-kontrollprogram | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/BoxingGlove.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,515 | icons | MIT License |
okkeyboard/src/main/java/com/kelin/okkeyboard/handlers/CarKeyboardHandler.kt | kelinZhou | 344,328,104 | false | null | package com.kelin.okkeyboard.handlers
import android.inputmethodservice.Keyboard
import android.text.Editable
import android.text.Selection
import com.kelin.okkeyboard.*
/**
* **描述:** 车牌号键盘提供者。
*
* **创建人:** kelin
*
* **创建时间:** 2021/3/2 4:56 PM
*
* **版本:** v 1.0.0
*/
sealed class CarKeyboardHandler : KeyboardH... | 0 | Kotlin | 0 | 0 | a88cff5079338e63d21d3e59e6ac0eeb413294a4 | 2,801 | OkKeyboard | Apache License 2.0 |
presentation/src/main/java/com/ezzy/presentation/profile/ProfileScreen.kt | EzekielWachira | 742,792,801 | false | {"Kotlin": 231925} | package com.ezzy.presentation.profile
import android.widget.Toast
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fill... | 0 | Kotlin | 0 | 0 | 4021ffb25fdb7aa82c57bae5de02379c319b19fe | 6,001 | Tripitaca | MIT License |
app/src/main/java/com/app/moodtrack_android/messaging/MessageJobIntentService.kt | martinheitmann | 431,879,047 | false | {"Kotlin": 272822} | package com.app.moodtrack_android.messaging
import android.app.PendingIntent
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.Bundle
import android.util.Base64
import android.util.Log
import androidx.core.app.JobIntentService
import androidx.navigatio... | 0 | Kotlin | 1 | 0 | 9b774c65c5e99e646c50370f17d97575b07ac46b | 8,851 | moodtrack-android | MIT License |
src/test/kotlin/PredicateTest.kt | solid-resourcepack | 822,729,366 | false | {"Kotlin": 28644} | import io.github.solid.resourcepack.api.builder.AdvancedResourcePack
import io.github.solid.resourcepack.api.builder.config.Predicate
import io.github.solid.resourcepack.material.SolidMaterial
import net.kyori.adventure.key.Key
import team.unnamed.creative.ResourcePack
val BOOST_ARROW = Key.key("test", "item/boost_arr... | 0 | Kotlin | 0 | 2 | c9811b294dcb41ae33d39310b2d2212a718fae60 | 759 | solid-api | Apache License 2.0 |
app/src/main/java/com/fappslab/mbchallenge/application/KoinDeclaration.kt | F4bioo | 845,138,188 | false | {"Kotlin": 241952} | package com.fappslab.mbchallenge.application
import android.app.Application
import com.fappslab.mbchallenge.BuildConfig
import com.fappslab.mbchallenge.libraries.arch.koin.koinshot.ModuleInitializer
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.Koin... | 0 | Kotlin | 0 | 0 | 7c8c26161507ad6f0d521f79eeeab3a65a90bb70 | 811 | MBChallenge | MIT License |
sushilib/src/main/java/com/zomato/sushilib/atoms/textviews/SushiTextView.kt | Zomato | 453,048,414 | false | null | package com.zomato.sushilib.atoms.textviews
import android.content.Context
import android.content.res.ColorStateList
import android.graphics.PorterDuff
import android.os.Build
import android.util.AttributeSet
import androidx.annotation.AttrRes
import androidx.annotation.StyleRes
import androidx.appcompat.widget.AppCom... | 0 | Kotlin | 7 | 93 | 3e976aa7b8b327826c3154b17b8c373987d0369a | 2,709 | sushi-ui-android | Apache License 2.0 |
src/main/kotlin/org/randomcat/agorabot/setup/features/RuleCommands.kt | randomnetcat | 291,139,813 | false | null | package org.randomcat.agorabot.setup.features
import org.randomcat.agorabot.Feature
import org.randomcat.agorabot.config.parsing.features.readRuleCommandsConfig
import org.randomcat.agorabot.features.rulesCommandsFeature
import org.randomcat.agorabot.setup.BotDataPaths
fun setupRuleCommandsFeature(paths: BotDataPaths... | 0 | Kotlin | 2 | 4 | dd8d0317af2830dbac6412c98b108d2f50777a80 | 536 | AgoraBot | MIT License |
scientist4k-http-core/src/main/kotlin/com/github/squirrelgrip/scientist4k/http/core/model/ExperimentRequest.kt | SquirrelGrip | 247,915,957 | true | {"Kotlin": 234965, "JavaScript": 2164, "HTML": 1653, "CSS": 930} | package com.github.squirrelgrip.scientist4k.http.core.model
import javax.servlet.http.Cookie
import javax.servlet.http.HttpServletRequest
import javax.servlet.http.HttpSession
/**
* TODO Handle Headers with multiple values
* TODO Handle Cookies
*/
data class ExperimentRequest(
val method: String,
v... | 0 | Kotlin | 0 | 2 | 5c88eb2bf0275c1c8ad139a78c9a1222f499ce4e | 2,732 | Scientist4K | MIT License |
src/main/kotlin/com/github/demicod/theoldreader/exception/ApiException.kt | demicod | 143,927,260 | false | null | package com.github.demicod.theoldreader.exception
class ApiException : Exception {
constructor(message: String?) : super(message)
constructor(message: String?, cause: Throwable?) : super(message, cause)
}
| 0 | Kotlin | 0 | 0 | 7baf031f300ca7c0ecd37b2eb3d7780bf231819f | 210 | theoldreader | MIT License |
app/src/main/java/de/lukasneugebauer/nextcloudcookbook/recipe/data/YieldCalculatorImpl.kt | lneugebauer | 397,373,765 | false | {"Kotlin": 331000, "Ruby": 2906, "Shell": 255} | package de.lukasneugebauer.nextcloudcookbook.recipe.data
import de.lukasneugebauer.nextcloudcookbook.recipe.domain.YieldCalculator
import java.text.NumberFormat
import java.util.Locale
class YieldCalculatorImpl(customLocale: Locale? = null) : YieldCalculator {
private val numberFormat =
if (customLocale !... | 14 | Kotlin | 8 | 46 | ac9a366e030b8420b456d773a152a945d016867f | 3,236 | nextcloud-cookbook | MIT License |
processor-common/src/main/java/boringyuri/processor/common/FileWriter.kt | anton-novikau | 252,574,617 | false | {"Kotlin": 210266, "Java": 63079, "Shell": 2935} | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 2 | Kotlin | 2 | 12 | ff4e4e1436cf0913207271ed0f777aeba810fdc5 | 1,794 | boringYURI | Apache License 2.0 |
oauth/src/main/java/jp/co/soramitsu/oauth/feature/change/email/model/ChangeEmailState.kt | sora-xor | 610,919,196 | false | {"Kotlin": 321971} | package jp.co.soramitsu.oauth.feature.change.email.model
import jp.co.soramitsu.oauth.feature.verify.model.ButtonState
import jp.co.soramitsu.ui_core.component.input.InputTextState
data class ChangeEmailState(
val inputTextState: InputTextState,
val buttonState: ButtonState
)
| 12 | Kotlin | 1 | 3 | f07bbcd675088bbbc74d6f32487b92768dba5ff2 | 287 | sora-card-android | Apache License 2.0 |
app/src/main/java/com/aredruss/mangatana/view/media/list/MediaListFragment.kt | Aredruss | 344,616,186 | false | null | package com.aredruss.mangatana.view.media.list
import android.os.Bundle
import android.view.View
import androidx.appcompat.widget.SearchView
import androidx.core.view.isVisible
import androidx.recyclerview.widget.GridLayoutManager
import by.kirich1409.viewbindingdelegate.viewBinding
import com.aredruss.mangatana.R
imp... | 0 | Kotlin | 2 | 17 | 834e540aebde85e31b409d21dc22f8a75527a37f | 8,999 | Mangatana | Apache License 2.0 |
app/src/main/java/com/liang/yuanshenalbum/widget/ViewPagerHelper.kt | MoonShadow66 | 521,549,062 | false | null | package com.liang.yuanshenalbum.widget
import androidx.viewpager.widget.ViewPager
class ViewPagerHelper(private val viewPager: ViewPager) {
init {
val scroller = VScroller(viewPager.context)
val cl = ViewPager::class.java
try {
//利用反射设置mScroller域为自己定义的WScroller,这里的命名(‘mScrolle... | 0 | Kotlin | 0 | 0 | e0c4d49d91554955542122f9f9ee582bc3645950 | 636 | YuanShenAlbum | Apache License 2.0 |
server/src/test/kotlin/io/rippledown/persistence/inmemory/InMemoryVerifiedTextStoreTest.kt | TimLavers | 513,037,911 | false | {"Kotlin": 940517, "Gherkin": 32098, "Java": 138} | package io.rippledown.persistence.inmemory
import io.kotest.matchers.shouldBe
import kotlin.test.Test
class InMemoryVerifiedTextStoreTest {
@Test
fun `should store the verified text corresponding to an id`() {
with(InMemoryVerifiedTextStore()) {
// given
get(0) shouldBe null
... | 2 | Kotlin | 0 | 0 | b53def050b700e81e4bbaf53c5715aafdffd2c02 | 440 | OpenRDR | MIT License |
nebulosa-retrofit/src/main/kotlin/nebulosa/retrofit/RawAsString.kt | tiagohm | 568,578,345 | false | {"Kotlin": 2741033, "TypeScript": 513674, "HTML": 249994, "JavaScript": 120539, "SCSS": 11332, "Python": 2817, "Makefile": 317} | package nebulosa.retrofit
@Target(AnnotationTarget.FUNCTION)
annotation class RawAsString
| 29 | Kotlin | 2 | 4 | f228706acd2c83397198a7606c0d8fa349213845 | 91 | nebulosa | MIT License |
app/src/main/kotlin/com/peecock/ymusic/ui/screens/player/Player.kt | geekeie | 852,991,746 | false | {"Kotlin": 3810622, "Batchfile": 445} | package com.peecock.ymusic.ui.screens.player
import android.annotation.SuppressLint
import android.content.ActivityNotFoundException
import android.content.Intent
import android.media.audiofx.AudioEffect
import androidx.activity.compose.BackHandler
import androidx.activity.compose.rememberLauncherForActivityResult
imp... | 0 | Kotlin | 0 | 0 | bcc8e691579ea2c6f04e9287e45056e9fb85c532 | 92,045 | YMusic | Apache License 2.0 |
src/main/kotlin/com/vvv/engine/service/TriePrefixService.kt | vicol13 | 530,589,547 | false | null | package com.vvv.engine.service
import com.vvv.engine.advice.TrackExecutionTime
import com.vvv.engine.utils.Trie
import com.vvv.engine.utils.WeightedTrie
open class TriePrefixService(set: Set<String>) : PrefixService {
private val trie: Trie
init {
this.trie = Trie(set)
}
@TrackExecutionTime
... | 0 | Kotlin | 0 | 1 | 534a40c5a4c0b02f1935ba4ea976d47cd8c43485 | 724 | search-engine | MIT License |
KotlinExample/src/main/kotlin/programmers/basic/Day22/평행/Solution.kt | sangki930 | 467,437,850 | false | {"Kotlin": 110206} | package programmers.basic.Day22.평행
class Solution {
fun solution(dots: Array<IntArray>): Int {
val x1 = dots[0][0]
val y1 = dots[0][1]
val x2 = dots[1][0]
val y2 = dots[1][1]
val x3 = dots[2][0]
val y3 = dots[2][1]
val x4 = dots[3][0]
val y4 = dots[3]... | 0 | Kotlin | 0 | 0 | d8c8599bfe99acd160dadc2f6727a5ae87a1bad0 | 811 | Kotlin | Apache License 2.0 |
myddd-vertx-media/myddd-vertx-media-domain/src/main/kotlin/org/myddd/vertx/media/domain/MediaRepository.kt | mydddOrg | 394,671,816 | false | null | package org.myddd.vertx.media.domain
import io.vertx.core.Future
interface MediaRepository {
fun nextId():String?
suspend fun queryByMediaId(mediaId:String):Future<Media?>
suspend fun queryByDigest(digest:String):Future<Media?>
suspend fun saveMedia(media: Media):Future<Media>
} | 0 | Kotlin | 0 | 6 | 2f03041f4a8984f6acba1f6ec31a22185f0fcb0e | 301 | myddd-vertx | MIT License |
app/src/main/java/ke/co/tulivuapps/hobbyhorsetours/data/di/HotelModule.kt | brendenozie | 685,892,586 | false | {"Kotlin": 880667} | package ke.co.tulivuapps.hobbyhorsetours.data.di
import androidx.compose.runtime.Stable
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ViewModelComponent
import ke.co.tulivuapps.hobbyhorsetours.data.local.dao.HotelDao
import ke.co.tulivuapps.hobbyhorsetou... | 0 | Kotlin | 0 | 0 | 38200eb57d06c4bfb5bbcc607bd2977ecbf2d859 | 1,352 | HobbyHorseToursAndroidApp | The Unlicense |
actions/src/main/kotlin/com/alfresco/content/actions/ActionCreateFolder.kt | Alfresco | 201,430,708 | false | null | package com.alfresco.content.actions
import android.content.Context
import android.view.View
import com.alfresco.content.data.BrowseRepository
import com.alfresco.content.data.Entry
import kotlin.coroutines.resume
import kotlin.coroutines.suspendCoroutine
import kotlinx.coroutines.CancellationException
import kotlinx.... | 2 | Kotlin | 2 | 3 | 04da85b580cae72b6c117672f12b2beff0a0de97 | 1,603 | alfresco-mobile-workspace-android | Apache License 2.0 |
app/src/main/java/com/santansarah/oauthxml/utils/Constants.kt | santansarah | 661,455,248 | false | null | package com.santansarah.oauthxml.utils
import com.santansarah.oauthxml.BuildConfig
const val BASE_URL = "https://github.com"
const val API_URL = " https://api.github.com"
const val AUTH_PATH = "$BASE_URL/login/oauth/authorize"
const val TOKEN_PATH = "$BASE_URL/login/oauth/access_token"
const val CLIENT_ID = BuildConf... | 0 | Kotlin | 0 | 0 | d1d05375d283b203baf93ae3d6f5bc3aa29b526a | 510 | oauth-xml | MIT License |
libraries/core/src/main/kotlin/com/bumble/appyx/core/navigation/transition/TransitionDescriptor.kt | bumble-tech | 493,334,393 | false | null | package com.bumble.appyx.core.navigation.transition
import androidx.compose.runtime.Immutable
import com.bumble.appyx.core.navigation.Operation
@Immutable
data class TransitionDescriptor<NavTarget, out State>(
val params: TransitionParams,
val operation: Operation<NavTarget, out State>,
val element: NavTa... | 68 | Kotlin | 45 | 754 | 1c13ab49fb3e2eb0bcd192332d597f8c05d3f6a9 | 377 | appyx | Apache License 2.0 |
src/jvmTest/kotlin/org/angproj/crypt/sec/ConversionTest.kt | angelos-project | 677,062,617 | false | {"Kotlin": 18069186, "Java": 273216} | package org.angproj.crypt.sec
import org.angproj.aux.util.BinHex
import kotlin.test.Test
import kotlin.test.assertContentEquals
class ConversionTest {
val testPrimeCurve = Secp256Koblitz1
@Test
fun octetExport() {
val q = testPrimeCurve.domainParameters
assertContentEquals(Conversion.in... | 0 | Kotlin | 0 | 0 | cf5c860cfa05d6dc0d0d4c0affeec808bf1f0b6a | 1,475 | angelos-project-crypt | MIT License |
app/src/main/java/com/amitghasoliya/notesapp/models/UserRequest.kt | amitghasoliya | 767,163,070 | false | {"Kotlin": 87342} | package com.amitghasoliya.notesapp.models
data class UserRequest(
val email: String,
val password: String,
val username: String
)
data class UserDelete(
val id: String
) | 0 | Kotlin | 0 | 1 | 2648ca44c56da974425f9df32374cfd0fef72f72 | 186 | notes_app_kotlin_android | MIT License |
BasicAndroidAccessibility-Kotlin/app/src/main/java/com/example/android/server/HelloController.kt | javawww | 449,597,516 | true | {"Kotlin": 103707, "Java": 20702} | package com.example.android.server
import com.yanzhenjie.andserver.annotation.GetMapping
import com.yanzhenjie.andserver.annotation.RequestMapping
import com.yanzhenjie.andserver.annotation.RestController
/**
* 测试接口
*/
@RestController
@RequestMapping(path = ["/hello"])
class HelloController {
@GetMapping(path ... | 0 | Kotlin | 0 | 0 | 5275a1e5b415d115ae07d99028280b176e508830 | 392 | android-accessibility | Apache License 2.0 |
src/test/kotlin/com/jay/monitoring/MonitoringApplicationTests.kt | jay-choe | 732,410,644 | false | {"Kotlin": 498} | package com.jay.monitoring
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class MonitoringApplicationTests {
@Test
fun contextLoads() {
}
}
| 0 | Kotlin | 0 | 0 | 8481b71e5ada87e6798e69322909d0409954f9c3 | 219 | goodmorning | Apache License 2.0 |
src/main/kotlin/ws/WebSocketServer.kt | paroquet | 230,206,935 | false | null | package ws
class WebSocketServer : SimpleEndPoint() {
override fun onOpen(session: Session) {
println("Server onOpen")
}
override fun onMessage(session: Session, message: String) {
println("server 收到消息 $message")
session.sendText("server 发送消息 hello")
}
override fun onMessage(session: Session, ... | 0 | Kotlin | 1 | 0 | aa438fc6691c3b74e1feafa26e2b117d69b35582 | 584 | websocket-server | MIT License |
common/src/commonMain/kotlin/com/aitorgf/threekt/types/Map.kt | tokkenno | 276,641,018 | false | null | package com.aitorgf.threekt.types
import kotlin.js.ExperimentalJsExport
import kotlin.js.JsExport
@ExperimentalJsExport
@JsExport
class Map {
private var entries: Array<MapEntry> = emptyArray()
val size: Int
get() = this.entries.size
val keys: Array<String>
get() = this.entries.map { it.... | 0 | Kotlin | 0 | 0 | ae7731892ca6784f382c858bf623d68f73819fe9 | 1,233 | threekt | MIT License |
src/main/kotlin/protocol/ForConditionKt.kt | i3biscotti | 736,031,193 | false | {"Kotlin": 627343, "Java": 23218, "ANTLR": 9453, "Dockerfile": 272} | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: statements.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package protocol;
@kotlin.jvm.JvmName("-initializeforCondition")
public inline fun forCondition(block: protocol.ForConditionKt.Dsl.() -> kotlin.Uni... | 0 | Kotlin | 0 | 0 | bb87f5eff6f424bca654a0f5313ee9d9ce267281 | 3,531 | kotlin2ast-engine | Apache License 2.0 |
library/generator/src/main/java/io/mehow/laboratory/generator/FeatureFlagModel.kt | boguszpawlowski | 387,763,435 | true | {"Kotlin": 324311, "Shell": 2768, "HTML": 261, "CSS": 188} | package io.mehow.laboratory.generator
import arrow.core.Either
import arrow.core.Nel
import arrow.core.extensions.either.applicative.applicative
import arrow.core.extensions.either.applicative.map
import arrow.core.extensions.fx
import arrow.core.extensions.list.traverse.traverse
import arrow.core.fix
import arrow.cor... | 0 | null | 0 | 0 | 08e0d941c8bb4bc6d137eba4151c49376e3f9578 | 6,887 | laboratory | Apache License 2.0 |
core/src/commonMain/kotlin/tech/skot/core/SKLogPrinter.kt | skot-framework | 235,318,194 | false | null | package tech.skot.core
expect object SKLogPrinter {
fun d(tag:String, message: String)
fun i(tag:String, message:String)
fun v(tag:String, message:String)
fun w(tag:String, message:String)
fun e(e:Throwable, tag:String, message:String? = null)
} | 1 | null | 4 | 6 | 8fcff82c719c9775e63da9c3808817704068cbba | 266 | skot | Apache License 2.0 |
app/src/main/java/red/padraig/syncsong/data/SSTrack.kt | Red350 | 159,534,341 | false | null | package red.padraig.syncsong.data
import android.graphics.Bitmap
import android.os.Parcel
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import com.spotify.protocol.types.ImageUri
// Sync Song Track. An object representing a single track within this app.
data class SSTrack(
@Se... | 0 | Kotlin | 0 | 0 | e7641138612802a3ea66e1632397bedc6edae386 | 1,840 | sync-song-app | MIT License |
app/src/main/java/io/add/calendar/domain/DatetimeInference.kt | XinyueZ | 200,510,186 | false | null | package io.add.calendar.domain
import android.content.Context
import android.icu.util.Calendar
import android.telephony.TelephonyManager
import android.util.Log
import androidx.core.content.getSystemService
import androidx.core.os.LocaleListCompat
import androidx.textclassifier.TextClassification
import androidx.textc... | 1 | Kotlin | 0 | 0 | a037ddedd8886193e62698eb38f56ef00679e321 | 7,906 | AddCalendar | Apache License 2.0 |
src/main/kotlin/com/navelplace/jsemver/Exceptions.kt | BrianDeacon | 126,040,923 | false | {"Kotlin": 98222, "ANTLR": 3616} | package com.navelplace.jsemver
/**
* @suppress
*/
open class SemverException(message: String): RuntimeException(message)
/**
* @suppress
*/
class InvalidVersionFormatException(val format: String): SemverException("Invalid version format: $format")
/**
* @suppress
*/
open class InvalidRequirementFormatExceptio... | 1 | Kotlin | 1 | 0 | cc2d54102b1fa4c95529b30df6fd71f3111f2c48 | 366 | jsemver | Apache License 2.0 |
app/src/main/java/com/notesync/notes/framework/dataSource/cache/implementation/AuthDaoServiceImpl.kt | AgarwalsRahul | 410,538,003 | false | {"Kotlin": 427137, "JavaScript": 1559, "Shell": 739} | package com.notesync.notes.framework.dataSource.cache.implementation
import com.notesync.notes.business.domain.model.User
import com.notesync.notes.framework.dataSource.cache.abstraction.AuthDaoService
import com.notesync.notes.framework.dataSource.cache.database.AuthDao
import com.notesync.notes.framework.dataSource.... | 0 | Kotlin | 2 | 5 | 9b4c16efffcb3dfe314a2f45c4ffae318717e05f | 914 | Sync-Note | Apache License 2.0 |
compose/src/main/kotlin/startup/KtlCncInitializer.kt | 85vmh | 543,628,296 | false | null | package startup
import app.Files
import com.mindovercnc.linuxcnc.CncInitializer
import mu.KotlinLogging
import okio.FileSystem
object KtlCncInitializer {
fun initialise() {
val appDir = Files.appDir
FileSystem.SYSTEM.createDirectories(appDir)
println(appDir)
logger.info { "Created... | 0 | Kotlin | 1 | 2 | ed1002352f1a9b437869b560510365e1467d6b8c | 444 | mindovercnclathe | Apache License 2.0 |
infrastructure/src/main/kotlin/com/lukinhasssss/catalogo/infrastructure/graphql/GenreGraphQLController.kt | Lukinhasssss | 643,341,523 | false | {"Kotlin": 451959, "Dockerfile": 1593, "Shell": 492} | package com.lukinhasssss.catalogo.infrastructure.graphql
import com.lukinhasssss.catalogo.application.genre.list.ListGenreUseCase
import com.lukinhasssss.catalogo.application.genre.save.SaveGenreUseCase
import com.lukinhasssss.catalogo.infrastructure.configuration.security.Roles
import com.lukinhasssss.catalogo.infras... | 1 | Kotlin | 0 | 0 | 61d76ebbef228a97363bffdab78180014a836696 | 1,863 | catalogo-de-videos | MIT License |
features/core/thread/lib/src/main/java/com/ruslan/hlushan/core/thread/ThreadChecker.kt | game-x50 | 361,364,864 | false | null | package com.ruslan.hlushan.core.thread
interface ThreadChecker {
val isNeededThread: Boolean
}
fun ThreadChecker.checkThread() = check(this.isNeededThread) | 22 | Kotlin | 0 | 0 | 159a035109fab5cf777dd7a60f142a89f441df63 | 162 | android_client_app | Apache License 2.0 |
src/main/java/com/dystopia/api/provider/DiffProvider.kt | tseylerd | 120,107,315 | false | null | package com.dystopia.api.provider
interface DiffProvider<E> {
fun different(first: E, second: E): E
fun same(element: E): E
} | 0 | Kotlin | 0 | 0 | b85deba8b0517f1a32a6770225384d48651fc534 | 134 | dystopia-model | Apache License 2.0 |
app/src/main/java/com/rafay/notes/domain/models/LocalProfile.kt | rafayali | 200,348,454 | false | null | package com.rafay.notes.domain.models
/**
* Data class for storing loggedIn user profile information
*/
data class LocalProfile(
val firstName: String,
val lastName: String?,
val email: String,
val dob: String
)
| 10 | Kotlin | 2 | 7 | 42a177ca833567ec403f59b553e2de2813a88def | 231 | notes | Apache License 2.0 |
adapters/adapter-coroutines/src/commonMain/kotlin/com/divpundir/mavlink/adapters/coroutines/IoDispatcher.kt | divyanshupundir | 484,943,163 | false | {"Kotlin": 2961421} | package com.divpundir.mavlink.adapters.coroutines
import kotlinx.coroutines.CoroutineDispatcher
internal expect val IoDispatcher: CoroutineDispatcher
| 1 | Kotlin | 7 | 48 | 647efb2f1a1d00ae410a0a5ad08e2111fe17214e | 152 | mavlink-kotlin | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/opmodes/NewDriveToTag.kt | GearUp12499-org | 630,593,823 | true | {"Java Properties": 1, "PowerShell": 1, "Shell": 1, "Markdown": 11, "Batchfile": 1, "Gradle Kotlin DSL": 1, "Kotlin": 40, "Java": 87, "Python": 1, "INI": 1} | package org.firstinspires.ftc.teamcode.opmodes
import android.util.Log
import android.util.Size
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode
import com.qualcomm.robotcore.eventloop.opmode.TeleOp
import dev.aether.collaborative_multitasking.MultitaskScheduler
import org.firstinspires.ftc.robotcore.extern... | 0 | Java | 0 | 0 | f85006b20d52b775478100c6752466a6cbcf0dec | 5,352 | GearUp2023-4 | BSD 3-Clause Clear License |
giokit/src/main/java/com/growingio/giokit/utils/SdkV3InfoUtils.kt | gflkdns | 605,931,859 | true | {"Java Properties": 2, "Gradle": 13, "Shell": 3, "Markdown": 1, "Batchfile": 1, "Ignore List": 7, "INI": 6, "Proguard": 5, "Java": 105, "XML": 127, "YAML": 2, "Kotlin": 106, "JavaScript": 1} | package com.growingio.giokit.utils
import android.app.Activity
import android.content.Context
import android.content.pm.PackageInfo
import android.content.pm.PackageManager
import android.content.res.Resources
import android.os.Build
import com.growingio.android.sdk.TrackerContext
import com.growingio.android.sdk.auto... | 0 | null | 0 | 0 | 008f5be5c4884e0348d73783dbc5fdfb23c82581 | 10,911 | giokit-android | Apache License 2.0 |
app/src/main/java/com/hazz/aipick/ui/activity/PayActivity.kt | q513718201 | 232,772,377 | false | {"Java": 997236, "Kotlin": 609033} | package com.hazz.aipick.ui.activity
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Intent
import android.graphics.Color
import android.os.Handler
import android.os.Message
import android.support.v7.widget.Toolbar
import android.text.TextUtils
import android.util.Log
import an... | 1 | null | 1 | 1 | a9ca66fb384edc7cc53dd239f216ecdde07c09f6 | 7,411 | Aipick | Apache License 2.0 |
MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/RealtimeLineChartActivity.kt | Amir-yazdanmanesh | 646,947,873 | true | {"Batchfile": 1, "Shell": 1, "Markdown": 7, "INI": 1, "Java": 165, "Java Properties": 1, "Proguard": 1, "Kotlin": 58} | package com.xxmassdeveloper.mpchartexample
import android.Manifest
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.Color
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.view.Windo... | 0 | Java | 0 | 2 | 339d56e4f1b4182672719e175c2550a527a341b6 | 7,139 | AndroidChart | Apache License 2.0 |
src/main/kotlin/com/cluster/data/SimpleS3.kt | hexlabsio | 131,974,377 | false | {"Kotlin": 28426} | package com.cluster.data
import com.amazonaws.services.s3.AmazonS3
import com.amazonaws.services.s3.model.ObjectListing
import com.amazonaws.services.s3.model.ObjectMetadata
import com.amazonaws.services.s3.model.PutObjectResult
import java.io.InputStream
interface SimpleS3{
fun doesObjectExist(bucket: String, ke... | 4 | Kotlin | 0 | 0 | 1f8aaab978e16695b781c1676121c5b0ea4893fc | 1,298 | cloud-resource-finder | Apache License 2.0 |
platform/platform-impl/src/com/intellij/ide/plugins/ProjectPluginTrackerManager.kt | hai-ping | 335,897,390 | true | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.plugins
import com.intellij.ide.AppLifecycleListener
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.*
... | 0 | null | 0 | 0 | 3e1b9a7b8e02803c717f4462924a2cbcfff5cc68 | 7,107 | intellij-community | Apache License 2.0 |
MLKitLanguageDetection/app/src/main/java/com/example/mlkitlanguagedetection/ui/home/HomeFragment.kt | cewaphi | 334,760,962 | false | null | package com.example.mlkitlanguagedetection.ui.home
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifec... | 0 | Kotlin | 0 | 0 | 80605722c599c3d0b718c1155be6ab26b2aa4cbd | 3,100 | common-android-tasks | MIT License |
src/main/kotlin/com/pineypiney/game_engine/objects/components/TextureMapsComponent.kt | PineyPiney | 491,900,499 | false | {"Kotlin": 579098, "GLSL": 32418} | package com.pineypiney.game_engine.objects.components
import com.pineypiney.game_engine.objects.GameObject
import com.pineypiney.game_engine.resources.textures.Texture
class TextureMapsComponent(parent: GameObject, val textures: Map<String, Texture> = emptyMap()): Component(parent, "TMC"), PreRenderComponent {
c... | 0 | Kotlin | 0 | 0 | bd05a4b88d530c397a3e9fc36b7f75363dfec1b8 | 911 | GameEngine | MIT License |
src/main/kotlin/datastructure/linkedlist/LinkedList.kt | janbarari | 385,123,974 | false | null | package datastructure.linkedlist
class LinkedList<T>: Iterable<T>, Collection<T>, MutableIterable<T>, MutableCollection<T> {
private var head: Node<T>? = null
private var tail: Node<T>? = null
override var size = 0
private set
override fun isEmpty(): Boolean {
return size == 0
}
... | 0 | Kotlin | 1 | 7 | 2e8ba69f220840881cc11e107ab6b3657c30f87c | 6,677 | datastructures_and_algorithms | Apache License 2.0 |
app/src/main/java/com/prmto/mova_movieapp/core/data/data_source/remote/TMDBApi.kt | tolgaprm | 541,709,201 | false | {"Kotlin": 531468} | package com.prmto.mova_movieapp.core.data.data_source.remote
import com.prmto.mova_movieapp.core.data.dto.GenreList
import retrofit2.http.GET
import retrofit2.http.Query
interface TMDBApi {
@GET("genre/movie/list")
suspend fun getMovieGenreList(
@Query("language") language: String
): GenreList
... | 1 | Kotlin | 3 | 55 | 816f5eceec10a5aae39e8594f7f02744050c16f9 | 441 | Mova-MovieApp | Apache License 2.0 |
data/RF00087/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF00087"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
1 to 4... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 661 | Rfam-for-RNArtist | MIT License |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/logos/YuqueFill.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.remix.remix.logos
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.Stro... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,925 | compose-icon-collections | MIT License |
src/test/java/guru/springframework/sfgpetclinic/services/springdatajpa/PetSDJpaServiceIT.kt | adrianbadarau | 179,070,960 | true | {"Kotlin": 47191, "Java": 2201} | package guru.springframework.sfgpetclinic.services.springdatajpa
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Assertions.*
internal class PetSDJpaServiceIT {
@BeforeEach
fun setUp() {
}
@Test
fun findAll() {
}
@Test
fun find... | 0 | Kotlin | 0 | 0 | cbd206ac8f44483ae573ab7f009dc239c9cea9b0 | 447 | testing-java-junit5 | Apache License 2.0 |
app/src/main/java/io/bibuti/opennews/core/BaseFragment.kt | bibutikoley | 325,942,445 | false | null | package io.bibuti.opennews.core
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.fragment.app.Fragment
/**
* t... | 0 | Kotlin | 0 | 1 | c59e27f8bc771d8339728657f7ee96d0e5d26520 | 793 | OpenNews | MIT License |
data/RF00754/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF00754"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
5 to 6... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 1,649 | Rfam-for-RNArtist | MIT License |
effect_player_arcloud_example/src/main/java/com/banuba/sdk/example/effect_player_arcloud_example/Application.kt | MaksimABanuba | 434,158,454 | false | {"GLSL": 124045, "Kotlin": 37519, "JavaScript": 11358} | package com.banuba.sdk.example.effect_player_arcloud_example
import com.banuba.sdk.arcloud.di.ArCloudKoinModule
import com.banuba.sdk.example.common.BANUBA_CLIENT_TOKEN
import com.banuba.sdk.example.effect_player_arcloud_example.arcloud.MainKoinModule
import com.banuba.sdk.manager.BanubaSdkManager
import org.koin.andr... | 0 | GLSL | 0 | 0 | dedfcf647940d48edf76927af777b76b48039565 | 1,075 | arcloud-android-kotlin | MIT License |
src/main/kotlin/com/dc2f/loader/ContentDefReflection.kt | dc2f | 169,700,633 | false | {"Kotlin": 154139, "Shell": 419, "Sass": 44} | package com.dc2f.loader
import com.dc2f.*
import com.dc2f.util.*
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.databind.*
import mu.KotlinLogging
import org.reflections.Reflections
import java.lang.reflect.Modifier
import kotlin.reflect.*
import kotlin.reflect.full.*
import kotlin.ref... | 0 | Kotlin | 0 | 1 | 3eebc777ef432c5c1e16245cf8a66b5e4b80685d | 12,772 | dc2f.kt | Apache License 2.0 |
cli/src/main/kotlin/ls/kafka/backup/cli/commands/Restore.kt | lovelysystems | 685,887,345 | false | {"Kotlin": 69423, "Shell": 4118, "Dockerfile": 704} | package ls.kafka.backup.cli.commands
import kotlinx.coroutines.runBlocking
import ls.kafka.backup.s3.BackupBucket
import ls.kafka.backup.s3.S3Config
import org.apache.kafka.clients.admin.AdminClientConfig
import picocli.CommandLine.Command
import picocli.CommandLine.Option
import java.util.*
@Command(name = "restore"... | 0 | Kotlin | 0 | 0 | a1749cb025e21ecadf560a1b14b965a91dbf700d | 2,915 | lovely-kafka-backup | Apache License 2.0 |
data/hibernate/src/main/kotlin/io/bluetape4k/hibernate/converters/CompressedStringConverter.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.hibernate.converters
import io.bluetape4k.io.compressor.Compressor
import io.bluetape4k.io.compressor.Compressors
import jakarta.persistence.AttributeConverter
import jakarta.persistence.Converter
/**
* 문자열을 압축해서 문자열로 저장하는 JPA Converter 입니다.
*/
abstract class AbstractCompressedStringConverter(... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 1,237 | bluetape4k | MIT License |
buildSrc/src/main/kotlin/BuildConfig.kt | 2BAB | 92,044,857 | false | null | object BuildConfig {
object Versions {
const val sealVersion = "3.3.0"
}
} | 0 | Kotlin | 23 | 222 | 5a2c6efbcc04ea065d8efbae9e129523dd571ada | 92 | Seal | Apache License 2.0 |
app/src/main/java/com/example/myquizapp/QuizQuestionsActivity.kt | creativelyContent | 452,977,009 | false | {"Kotlin": 12498} | package com.example.myquizapp
import android.content.Intent
import android.graphics.Color
import android.graphics.Typeface
import android.os.Bundle
import android.view.View
import android.widget.*
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
class QuizQuestionsActivity : ... | 0 | Kotlin | 0 | 0 | 1e8bda2fe6e47c4ef067dc460211875e55b7a1e8 | 6,540 | QuizApp | Creative Commons Zero v1.0 Universal |
src/commonMain/kotlin/data/socketbonus/SocB76.kt | marisa-ashkandi | 332,658,265 | false | null | package data.socketbonus
import data.Constants
data class SocB76 (
override var id: Int = 76,
override var stat: Constants.StatType = Constants.StatType.AGILITY,
override var amount: Int = 3
) : SocketBonusRaw ()
| 21 | Kotlin | 11 | 25 | 9cb6a0e51a650b5d04c63883cb9bf3f64057ce73 | 221 | tbcsim | MIT License |
aws/ses/src/test/kotlin/io/bluetape4k/aws/ses/model/DestinationSupportTest.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.aws.ses.model
import io.bluetape4k.logging.KLogging
import org.amshove.kluent.shouldBeEqualTo
import org.junit.jupiter.api.Test
class DestinationSupportTest {
companion object: KLogging()
@Test
fun `build destination`() {
val destination = destinationOf(
toAddre... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 681 | bluetape4k | MIT License |
shuttle/design/src/main/kotlin/shuttle/design/model/WidgetPreviewUiModel.kt | fardavide | 462,194,990 | false | {"Kotlin": 465845, "Shell": 11573} | package shuttle.design.model
import android.graphics.drawable.Drawable
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.TextUnit
import arrow.optics.optics
@optics data class WidgetPreviewUiModel(
val apps: List<WidgetPreviewAppUiModel>,
val layout: WidgetLayoutUiModel
) {
companion obje... | 12 | Kotlin | 1 | 14 | 375798a9ea6433839d5d34965afd0b216f82391a | 765 | Shuttle | Apache License 2.0 |
services/hanke-service/src/test/kotlin/fi/hel/haitaton/hanke/test/JacksonTestExtension.kt | City-of-Helsinki | 300,534,352 | false | {"Kotlin": 1912011, "Mustache": 92562, "Shell": 23444, "Batchfile": 5169, "PLpgSQL": 1115, "Dockerfile": 371} | package fi.hel.haitaton.hanke.test
import com.fasterxml.jackson.databind.module.SimpleModule
import fi.hel.haitaton.hanke.OBJECT_MAPPER
import fi.hel.haitaton.hanke.hakemus.Hakemus
import fi.hel.haitaton.hanke.hakemus.HakemusDeserializer
import fi.hel.haitaton.hanke.hakemus.HakemusResponse
import fi.hel.haitaton.hanke... | 2 | Kotlin | 5 | 4 | 72c671b6105f8706dae713e680ae0c2c0be6a63f | 1,337 | haitaton-backend | MIT License |
src/test/resources/test-compile-data/jvm/kotlin-web-site/whatsnew14/ad8e7706416536cc082340d4c8bd1621.16.kt | AlexanderPrendota | 219,478,945 | false | null | data class OrderItem(val name: String, val price: Double, val count: Int)
fun main() {
//sampleStart
val order = listOf<OrderItem>(
OrderItem("Cake", price = 10.0, count = 1),
OrderItem("Coffee", price = 2.5, count = 3),
OrderItem("Tea", price = 1.5, count = 2))
val total = order.sumOf... | 14 | Kotlin | 47 | 89 | 95326951087813b6dea8b5ef4234fc06f252bd80 | 485 | kotlin-compiler-server | Apache License 2.0 |
src/main/java/com/example/kotlin/training/section_01_syntax/Task01.kt | macbre | 113,159,186 | true | {"Kotlin": 15714, "Java": 2577} | package com.example.kotlin.training.section_01_syntax
class Task01 {
fun generateGreetings(name: String): String {
return "Hello ${name.toUpperCase()}!"
}
} | 0 | Kotlin | 0 | 0 | 53d4adad6a7a09ee81da4251cf1f4fb5f580b1af | 175 | kotlin-training | Apache License 2.0 |
app/src/main/java/garypan/com/imagebrowserforreddit/ui/views/ImagePopUpView.kt | garypan51 | 154,085,664 | false | null | package garypan.com.imagebrowserforreddit.ui.views
import android.content.Context
import android.graphics.drawable.Drawable
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
import android.view.WindowManager
import android.widget.*
import com.bumptech.glide.Glide
import com.bumpte... | 0 | Kotlin | 0 | 0 | 2a28c841e4618ab85b0d119ebd3f837fff18506d | 4,509 | Image-Browser-For-Reddit | MIT License |
HMCardview/src/main/java/com/yuan/hmcardview/ShadowDrawable.kt | zchao-ysu | 639,289,704 | false | null | package com.yuan.hmcardview
import android.graphics.BlurMaskFilter
import android.graphics.Rect
import android.graphics.drawable.PaintDrawable
class ShadowDrawable() : PaintDrawable() {
var mShadowEffect: Float = 0f
set(value) {
if (field != value) {
field = value
... | 0 | Kotlin | 0 | 1 | f611b8b87c1a2f65cbcf2e51e01ccdc2322755a0 | 1,054 | HMShadowCardView | MIT License |
bones/src/main/java/pro/horovodovodo4ka/bones/ui/ContainerFragmentSibling.kt | horovodovodo4ka | 123,154,278 | false | null | package pro.horovodovodo4ka.bones.ui
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentTransaction
import pro.horovodovodo4ka.bones.Bone
import pro.horovodovodo4ka.bones.Finger
import pro.horovodovodo4ka.bones.Spine
import pro.horovodovodo4ka.bones.... | 0 | Kotlin | 2 | 12 | dcf5e6349ecb11871e3706c3087113c85b49d402 | 1,337 | bones | The Unlicense |
common/src/main/java/io/novafoundation/nova/common/data/GoogleApiAvailabilityProvider.kt | novasamatech | 415,834,480 | false | {"Kotlin": 11121812, "Rust": 25308, "Java": 17664, "JavaScript": 425} | package io.novafoundation.nova.common.data
import android.content.Context
import com.google.android.gms.common.ConnectionResult
import com.google.android.gms.common.GoogleApiAvailability
interface GoogleApiAvailabilityProvider {
fun isAvailable(): Boolean
}
internal class RealGoogleApiAvailabilityProvider(
... | 12 | Kotlin | 30 | 50 | 127f8739ca86dc74d006f018237daed0de5095a1 | 640 | nova-wallet-android | Apache License 2.0 |
common/src/main/java/io/novafoundation/nova/common/data/GoogleApiAvailabilityProvider.kt | novasamatech | 415,834,480 | false | {"Kotlin": 11121812, "Rust": 25308, "Java": 17664, "JavaScript": 425} | package io.novafoundation.nova.common.data
import android.content.Context
import com.google.android.gms.common.ConnectionResult
import com.google.android.gms.common.GoogleApiAvailability
interface GoogleApiAvailabilityProvider {
fun isAvailable(): Boolean
}
internal class RealGoogleApiAvailabilityProvider(
... | 12 | Kotlin | 30 | 50 | 127f8739ca86dc74d006f018237daed0de5095a1 | 640 | nova-wallet-android | Apache License 2.0 |
app/src/main/java/com/dss886/dotaautochess/feature/filter/list/FilterListAdapter.kt | dss886 | 168,908,148 | false | null | package com.dss886.dotaautochess.feature.filter.list
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.dss886.dotaautochess.R
import com.dss886.dotaautochess.data.Hero
import com.dss886.dotaautochess.feature.hero.... | 0 | Kotlin | 3 | 14 | a2aebbe0746040ec1943ef0173fdf6b428f3e36e | 2,163 | AutoChessHelper | Apache License 2.0 |
src/main/kotlin/ru/justagod/mincer/filter/AnnotationClassFilter.kt | JustAGod1 | 179,755,842 | false | {"Kotlin": 232280, "Java": 12281} | package ru.justagod.mincer.filter
import org.objectweb.asm.ClassReader
import ru.justagod.mincer.Mincer
import ru.justagod.model.ClassTypeReference
class AnnotationClassFilter(private val target: ClassTypeReference) : ClassFilter {
override fun isValid(name: ClassTypeReference, mincer: Mincer): Boolean {
... | 0 | Kotlin | 0 | 0 | 5f635e045a6e1323571e492723110de280232c5a | 604 | cutter | MIT License |
ioka/src/main/java/kz/ioka/android/ioka/presentation/webView/WebViewFragment.kt | iokadev | 452,776,665 | false | null | package kz.ioka.android.ioka.presentation.webView
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.View
import android.webkit.CookieManager
import android.webkit.WebStorage
import android.webkit.WebView
import android.webkit.WebViewClient
import android.widget.FrameLayout
import andr... | 0 | Kotlin | 0 | 0 | e095b7c443dad4d9954f0dcac19d2a23edd4d9eb | 5,849 | ioka-android | MIT License |
app/src/test/java/com/girlify/dolarapp/dolar/domain/GetDollarsUseCaseTest.kt | honeybadger2788 | 636,435,895 | false | null | package com.girlify.dolarapp.dolar.domain
import com.girlify.dolarapp.dolar.data.DollarRepository
import com.girlify.dolarapp.dolar.ui.dollar.model.DollarModel
import io.mockk.MockKAnnotations
import io.mockk.coEvery
import io.mockk.coVerify
import io.mockk.impl.annotations.RelaxedMockK
import kotlinx.coroutines.flow.... | 0 | Kotlin | 0 | 0 | f358103fa5d9a5d3473422d655a1ca9db538d46b | 2,036 | DolarApp | MIT License |
kotlinx-coroutines-core/jvm/src/Executors.kt | jeziellago | 367,042,540 | true | {"Kotlin": 3239863, "Java": 30193, "SCSS": 7897, "Shell": 3332, "Python": 3107, "HTML": 1675, "JavaScript": 1127, "CSS": 319} | /*
* Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines
import kotlinx.coroutines.internal.*
import java.io.*
import java.util.concurrent.*
import kotlin.coroutines.*
/**
* [CoroutineDispatcher] that has underlying [Executor] for dispa... | 0 | null | 0 | 1 | e88e58d5c2b2f0f119bdbb6d5e43454fb7226982 | 7,184 | kotlinx.coroutines | Apache License 2.0 |
services/hanke-service/src/main/kotlin/fi/hel/haitaton/hanke/HankeErrorSerializer.kt | City-of-Helsinki | 300,534,352 | false | null | package fi.hel.haitaton.hanke
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.databind.SerializerProvider
import com.fasterxml.jackson.databind.ser.std.StdSerializer
class HankeErrorSerializer : StdSerializer<HankeError>(HankeError::class.java) {
override fun serialize(value: HankeErr... | 1 | Kotlin | 4 | 1 | 89ac42586cfb1355f79b09062ba54736a4a6adfd | 624 | haitaton-backend | MIT License |
src/iosMain/kotlin/com/myunidays/kiterable/IterableApi.kt | MyUNiDAYS | 561,441,423 | false | {"Kotlin": 23934, "Ruby": 1725} | package com.myunidays.kiterable
import com.myunidays.kiterable.models.Context
import com.myunidays.kiterable.models.IterableConfig
import com.myunidays.kiterable.models.IterableInAppMessage
import com.myunidays.kiterable.models.PayloadData
import platform.Foundation.NSData
import platform.UIKit.UIApplicationLaunchOpti... | 0 | Kotlin | 0 | 0 | c46ffeba0688063b2ac4a4fce38e244b36ce3a58 | 3,050 | KIterable-pre-template | MIT License |
app/src/main/java/com/richard/ticketmaster/di/NetworkModule.kt | AbdulRehmanNazar | 807,679,848 | false | {"Kotlin": 39545} | package com.richard.ticketmaster.di
import android.content.Context
import com.richard.ticketmaster.data.api.APIService
import com.richard.ticketmaster.data.local.AddressDao
import com.richard.ticketmaster.data.local.AppDataBase
import com.richard.ticketmaster.data.local.CityDao
import com.richard.ticketmaster.data.loc... | 0 | Kotlin | 0 | 0 | 6cc1420f418ce15e09a509f68614a686cfc7822b | 3,212 | MusicEvents | Apache License 2.0 |
src/test/kotlin/com/turbomates/time/period/OffsetDateTimeTest.kt | turbomates | 556,838,637 | false | {"Kotlin": 17004, "Makefile": 1218} | package com.turbomates.time.period
import org.junit.jupiter.api.Test
import java.time.OffsetDateTime
import java.time.ZoneOffset
import kotlin.test.assertEquals
class OffsetDateTimeTest {
@Test
fun `start of week`() {
assertEquals(
OffsetDateTime.of(2022, 6, 27, 0, 0, 0, 0, ZoneOffset.UTC)... | 0 | Kotlin | 0 | 0 | 2dad3e4cd6ba38412251c1ac91dd273145878ab2 | 639 | kotlin-time | MIT License |
app/src/main/java/nick/mirosh/newsapp/di/ServiceModule.kt | nsmirosh | 644,001,365 | false | {"Kotlin": 68302} | package nick.mirosh.newsapp.di
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import kotlinx.coroutines.ExperimentalCoroutinesApi
import nick.mirosh.newsapp.data.repository.NetworkConnectivityManager
import nick.mirosh.newsapp.domain.network.repos... | 0 | Kotlin | 1 | 2 | 40ba93be62c96df3476d3facee7d51c440e714da | 668 | NewsApp | MIT License |
app/src/main/java/com/lianyi/paimonsnotebook/ui/screen/cultivate_project/view/CultivateProjectScreen.kt | QooLianyi | 435,314,581 | false | {"Kotlin": 1855635} | package com.lianyi.paimonsnotebook.ui.screen.cultivate_project.view
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.compose.animation.Crossfade
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layo... | 1 | Kotlin | 2 | 36 | 7af1f8cce2f8eea3f72b3735e820508510b3112e | 11,263 | PaimonsNotebook | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.