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/test/java/com/github/greennick/properties/generic/FirePropertyTest.kt | green-nick | 170,363,475 | false | null | package com.github.greennick.properties.generic
import com.github.greennick.properties.firePropertyOf
import org.junit.Test
class FirePropertyTest {
@Test
fun `listener triggered only once`() {
var calls = 0
val property = firePropertyOf("Hello")
property.subscribe { calls++ }
... | 0 | Kotlin | 0 | 8 | 969741bf9750634e7c5a673c7551746fc4a1e1ab | 1,243 | properties | MIT License |
src/main/kotlin/archives/tater/netherarchives/Utils.kt | JosiahFu | 711,624,418 | false | {"Kotlin": 54202, "Java": 9054} | package archives.tater.netherarchives
import net.minecraft.util.math.BlockPos
import net.minecraft.util.math.random.Random
// iterateInSquare uses the same blockPos object and mutates it, so we need this to use proper collection operations
fun Iterable<BlockPos>.listCopy(): List<BlockPos> = map(BlockPos::mutableCopy)... | 0 | Kotlin | 0 | 0 | e6f81c0ddc5d06ad6ff4101a15b72c8ef7cadbce | 537 | NetherArchives | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/example/electrorui/ui/adapters/FamiliaAdapter.kt | Christian9324 | 699,140,999 | false | {"Kotlin": 328590} | package com.example.electrorui.ui.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.example.electrorui.databinding.ViewFamiliasItemBinding
import com.example.electrorui.databinding.ViewRegistroItemBinding
import com.example.electrorui.... | 0 | Kotlin | 0 | 0 | 0f764b77a7f70e6be41a357e9c1f9cfee8a79a3e | 1,466 | RUIElectronicoA | The Unlicense |
cobalt.core/src/commonMain/kotlin/org/hexworks/cobalt/databinding/api/collection/ObservableListBinding.kt | ethanmdavidson | 408,243,027 | true | {"Kotlin": 203396} | package org.hexworks.cobalt.databinding.api.collection
import kotlinx.collections.immutable.PersistentList
import org.hexworks.cobalt.databinding.api.binding.Binding
import org.hexworks.cobalt.databinding.api.event.ListChange
interface ObservableListBinding<T : Any> : ObservableList<T>, Binding<PersistentList<T>>
| 0 | Kotlin | 0 | 0 | 80b98772607ff80eb6a6f60fcaec09fdb262649a | 317 | cobalt | Apache License 2.0 |
klinechart/src/main/java/com/liihuu/klinechart/model/WrModel.kt | liihuu | 163,390,765 | false | null | package com.liihuu.klinechart.model
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
/**
* @Author lihu <EMAIL>
* @Date 2019-05-14-19:13
*/
@Parcelize
data class WrModel(
val wr1: Double?,
val wr2: Double?,
val wr3: Double?
): Parcelable | 5 | Kotlin | 13 | 60 | 67625eda0b9709078e007d713c2de26f29e03184 | 274 | KLineChartAndroid | MIT License |
src/main/kotlin/mcpc/tedo627/commandshortcut/gui/ShortcutSettingGui.kt | tedo0627 | 458,543,279 | false | {"Kotlin": 14978} | package mcpc.tedo627.commandshortcut.gui
import mcpc.tedo627.commandshortcut.Shortcut
import mcpc.tedo627.commandshortcut.ShortcutManager
import net.minecraft.client.Minecraft
import net.minecraft.client.gui.FontRenderer
import net.minecraft.client.gui.screen.Screen
import net.minecraft.client.gui.widget.TextFieldWidg... | 0 | Kotlin | 0 | 0 | 3119d3f10def24503d346b159dd0f2c3911a0ff2 | 5,780 | CommandShortcut | MIT License |
src/test/kotlin/no/nav/samordning/hendelser/feed/FeedControllerTest.kt | navikt | 156,209,069 | false | {"Kotlin": 62825, "Dockerfile": 88} | package no.nav.samordning.hendelser.feed
import io.zonky.test.db.AutoConfigureEmbeddedDatabase
import no.nav.pensjonsamhandling.maskinporten.validation.test.AutoConfigureMaskinportenValidator
import no.nav.pensjonsamhandling.maskinporten.validation.test.MaskinportenValidatorTokenGenerator
import no.nav.samordning.hend... | 4 | Kotlin | 0 | 1 | 94b652018725327dcc71be4d9dde03b64406bced | 4,086 | samordning-hendelse-api | MIT License |
draftsman/src/main/kotlin/com/gojek/draftsman/internal/drawer/ModernDrawerLayout.kt | gojek | 457,289,341 | false | {"Kotlin": 81164} | package com.gojek.draftsman.internal.drawer
import android.animation.Animator
import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.animation.ValueAnimator
import android.content.Context
import android.graphics.*
import android.graphics.Paint.ANTI_ALIAS_FLAG
import android.graphic... | 2 | Kotlin | 18 | 254 | b0909fb15abad702dd8b8a985f7c60e2f92bdbf0 | 11,849 | draftsman | Apache License 2.0 |
app/src/main/java/com/santi/rickymortyapi/data/CharacterPagingSource.kt | GedankenExperiment | 425,820,755 | false | {"Kotlin": 29159} | package com.santi.rickymortyapi.data
import android.net.Uri
import android.util.Log
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.santi.rickymortyapi.model.FullCharacter
import com.santi.rickymortyapi.model.FullLocation
import com.santi.rickymortyapi.network.RetrofitService
import j... | 0 | Kotlin | 0 | 0 | 1034530cf9471bda930700c2b86870e451534532 | 1,977 | RickyMorty | Apache License 2.0 |
module/parser/src/jsMain/kotlin/org/cru/godtools/tool/JsParserConfig.kt | CruGlobal | 310,338,913 | false | null | package org.cru.godtools.tool
import org.cru.godtools.tool.model.DeviceType
internal actual val DEFAULT_SUPPORTED_DEVICE_TYPES = setOf(DeviceType.WEB)
| 4 | Kotlin | 1 | 0 | d5ed4bd5446a994124b281070ab565feb6f33cc4 | 153 | kotlin-mpp-godtools-tool-parser | MIT License |
http-api-client/src/commonTest/kotlin/au/com/redcrew/apisdkcreator/httpclient/matchers/matchers.kt | RedCrewOS | 370,915,550 | false | null | package au.com.redcrew.apisdkcreator.httpclient.matchers
import arrow.core.*
import io.kotest.matchers.Matcher
import io.kotest.matchers.MatcherResult
fun <T> notEqual(expected: T, actual: T): Boolean =
expected != actual
fun <T> MatcherResult.Companion.test(predicate: (T, T) -> Boolean, expected: T, actual: T):... | 0 | HTML | 0 | 1 | 33e3f58c55ef61e4b4124223b5c77c32ee0f0412 | 1,072 | api-sdk-creator-kotlin | MIT License |
app/src/main/java/com/example/pd/register/RegisterFragment.kt | notjl | 573,363,827 | false | {"Kotlin": 14534} | package com.example.pd.register
import android.os.Bundle
import android.view.*
import androidx.fragment.app.Fragment
import android.widget.Toast
import androidx.fragment.app.activityViewModels
import androidx.navigation.findNavController
import androidx.navigation.fragment.findNavController
import androidx.navigation... | 0 | Kotlin | 0 | 0 | e60704f8ed9c6f9886c363bc39e07f81e16cd306 | 3,030 | BioPin-Companion-App | MIT License |
lse-reference/src/jsMain/kotlin/game/Item.kt | Cdm2883 | 755,032,373 | false | {"Kotlin": 98556} | // https://github.com/LiteLDev/LegacyScriptEngine/blob/main/src/legacy/api/ItemAPI.cpp
external class LLSE_Item(nullptr: Nothing) {}
typealias Item = LLSE_Item
| 0 | Kotlin | 0 | 3 | 7b643091e4bd6f8c0c62ddf00d458a0af9fbea3a | 161 | levilamina-kotlin-js-plugin-template | Apache License 2.0 |
app/src/main/java/com/sama/integration/google/calendar/domain/Exceptions.kt | sama-app | 363,692,054 | false | null | package com.sama.integration.google.calendar.domain
import java.util.UUID
class ChannelClosedException(channelId: UUID) : RuntimeException("Channel#$channelId is already closed") | 0 | Kotlin | 1 | 2 | a73319e26a22bf09aeb6bcc1cc2feaf3723ba0b9 | 180 | sama-service | Apache License 2.0 |
app/src/main/java/com/filippoengidashet/johnlewis/mvvm/data/model/dto/AdditionalServices.kt | filippoengidashet | 457,080,903 | false | {"Kotlin": 45679} | package com.filippoengidashet.johnlewis.mvvm.data.model.dto
/**
* @author <NAME>
* @version 1.0.0
* @since Tue, 08/02/2022 at 13:17.
*/
class AdditionalServices(val includedServices: List<String>?)
| 0 | Kotlin | 0 | 0 | 656c9b6e072453e525256da0d2815c157713eeba | 203 | John-Lewis-Products | Apache License 2.0 |
producer/src/main/kotlin/streams/procedures/StreamsProcedures.kt | F-Guardian | 218,759,208 | true | {"Kotlin": 869548, "Python": 4123} | package streams.procedures
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import org.neo4j.graphdb.GraphDatabaseService
import org.neo4j.kernel.internal.GraphDatabaseAPI
import org.neo4j.logging.Log
import org.neo4j.procedure.Context
import org.neo4j.... | 0 | Kotlin | 0 | 1 | a1f6db9dab305bd5d15827ee81f3020f8cf1362e | 4,403 | neo4j-streams | Apache License 2.0 |
app/src/main/java/com/tommannson/familycooking/ui/screens/recipe/create/state/steps/RecipeExtractionStep.kt | TomMannson | 742,552,338 | false | {"Kotlin": 194627} | package com.tommannson.familycooking.ui.screens.recipe.create.state.steps
import androidx.compose.runtime.Stable
import androidx.compose.runtime.derivedStateOf
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import com.tommannson.familyco... | 0 | Kotlin | 0 | 0 | b18a988014fd7875d525479f3bd350a219e0cbce | 3,743 | CookMe | MIT License |
src/main/kotlin/app/domain/entities/values/Password.kt | bed72 | 664,335,364 | false | {"Kotlin": 19877} | package app.domain.entities.values
import arrow.core.Nel
import arrow.core.right
import arrow.core.Either
import arrow.core.leftNel
import app.domain.entities.Message
@JvmInline
value class Password private constructor(val value: String) {
operator fun invoke() = value
companion object {
operator fu... | 0 | Kotlin | 0 | 0 | 7d4d93f97afcb3dbfc8406fbb5997073bbe1cc5f | 1,019 | KingsCross | Apache License 2.0 |
modules/query-es/src/main/kotlin/com/farcsal/query/es/EBooleanField.kt | fzoli | 541,286,565 | false | {"Kotlin": 369907, "ANTLR": 1659} | /*
* Copyright 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 1 | f15a2fa71eedb13057331d1b59433adb2e437e19 | 1,411 | dql-kotlin | Apache License 2.0 |
src/main/kotlin/com/booleworks/kjobs/control/polling/LongPollManager.kt | booleworks | 627,499,254 | false | {"Kotlin": 348126} | package com.booleworks.kjobs.control.polling
import com.booleworks.kjobs.control.polling.NopLongPollManager.subscribe
import com.booleworks.kjobs.data.JobStatus
import com.booleworks.kjobs.data.PollStatus
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Deferred
import kotlin.time.Duration
/**
* In... | 0 | Kotlin | 0 | 3 | c0c9e66cc5987ac0dc9a8f0e262dfd24547efad7 | 4,070 | kjobs | MIT License |
app/src/main/kotlin/com/adriangl/pokeapi_mvvm/utils/injection/KodeinUtils.kt | davidbaena | 209,520,325 | true | {"Kotlin": 47564} | package com.adriangl.pokeapi_mvvm.utils.injection
import androidx.annotation.MainThread
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelProviders
import mini.Store
impo... | 0 | null | 0 | 0 | 964c0254c243102d92fa3c29f32863700c2e8b09 | 2,902 | PokeApiMiniMVVM | Apache License 2.0 |
app/src/main/java/com/example/deamhome/presentation/detail/ProductDetailActivity.kt | S-OSTeam | 686,905,420 | false | {"Kotlin": 67631} | package com.example.deamhome.presentation.detail
import android.os.Bundle
import androidx.lifecycle.lifecycleScope
import com.example.deamhome.R
import com.example.deamhome.app.DeamHomeApplication
import com.example.deamhome.common.base.BindingActivity
import com.example.deamhome.databinding.ActivityProductDetailBindi... | 0 | Kotlin | 0 | 0 | 753cf19f1ad7e492876b3ed31c96150bd17050e5 | 756 | shop-app | MIT License |
jvm/word-finder/src/main/kotlin/net/maelbrancke/filip/service/ApplicationStarter.kt | filipmaelbrancke | 597,192,385 | false | {"Rust": 268793, "Kotlin": 47518, "Shell": 17239, "Dockerfile": 478, "PLpgSQL": 238} | package net.maelbrancke.filip.service
import arrow.core.Either
import arrow.core.raise.either
import net.maelbrancke.filip.DomainError
import net.maelbrancke.filip.WordCombination
import net.maelbrancke.filip.logger
import net.maelbrancke.filip.repo.WordPersistence
interface ApplicationStarter {
suspend fun inser... | 0 | Rust | 0 | 0 | cc93acb760ec3d2b5ec150d8ef545869704d36a4 | 969 | playground | MIT License |
sdk/src/main/kotlin/com/tpay/sdk/server/dto/parts/PayerUrlDTO.kt | tpay-com | 702,885,281 | false | {"Kotlin": 521890} | package com.tpay.sdk.server.dto.parts
import androidx.annotation.Keep
import org.json.JSONObject
@Keep
internal class PayerUrlDTO : JSONObject() {
var success: String? = null
set(value) {
put("success", value)
field = value
}
var error: String? = null
set(value... | 0 | Kotlin | 1 | 0 | b75aa85efa7cabbd628e95111b770d9b2cc2b639 | 393 | tpay-android | MIT License |
kotunil/src/commonTest/kotlin/eu/sirotin/kotunil/currency/TurkishLiraTest.kt | vsirotin | 542,600,036 | false | {"Kotlin": 1297267, "Java": 163060, "JavaScript": 67657, "HTML": 7913} | package eu.sirotin.kotunil.currency
import kotlin.test.Test
import kotlin.test.assertEquals
internal class TurkishLiraTest {
@Test
fun testCreation() {
assertEquals(TRY, TurkishLira())
assertEquals(12.TRY, TurkishLira(12.0))
}
@Test
fun testUnitSymbols() {
val s = TRY... | 15 | Kotlin | 4 | 95 | 6283b7edc3b39e1275f7a7111ecc709e8ae5c402 | 637 | si-units | Apache License 2.0 |
src/main/kotlin/br/com/zup/edu/pix/registra/NovaChavePixService.kt | matheuscosantos | 346,376,080 | true | {"Kotlin": 58754, "Dockerfile": 167} | package br.com.zup.edu.pix.registra
import br.com.zup.edu.integration.bcb.BancoCentralClient
import br.com.zup.edu.integration.bcb.CreatePixKeyRequest
import br.com.zup.edu.integration.itau.ContasDeClientesNoItauClient
import br.com.zup.edu.pix.ChavePix
import br.com.zup.edu.pix.ChavePixExistenteException
import br.co... | 0 | Kotlin | 0 | 0 | 5b6de3b5cd71fab021762c2a20c1bba672456197 | 1,837 | orange-talents-01-template-pix-keymanager-grpc | Apache License 2.0 |
shared/src/commonMain/kotlin/ScreenBComponent.kt | UmairSiddique1 | 731,106,413 | false | {"Kotlin": 36148, "Swift": 592, "Shell": 228} | import com.arkivanov.decompose.ComponentContext
class ScreenBComponent(val text:String, componentContext: ComponentContext):ComponentContext by componentContext{
} | 0 | Kotlin | 0 | 0 | 59ffca81cd6cbb68ed0987a78a2721c43abc35b4 | 164 | CMM-Second | Apache License 2.0 |
app/src/main/java/com/flexcode/authenticationapp/data/remote/response/AuthResponse.kt | Felix-Kariuki | 507,851,744 | false | {"Kotlin": 44611} | package com.flexcode.authenticationapp.data.remote.response
import com.google.gson.annotations.SerializedName
data class AuthResponse(
@SerializedName("token")
val token : String
)
| 0 | Kotlin | 4 | 21 | a64e76f4e9c9da81d904b5b9eb4c62672d405dec | 191 | Authentication | MIT License |
app/src/main/kotlin/com.jdamcd.sudoku/browse/PuzzleListFragment.kt | jasmineleon | 290,962,146 | true | {"Kotlin": 214884} | package com.jdamcd.sudoku.browse
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.SimpleItemAnimator
import com.jdamcd.sudoku.R
import com.jdamcd.sudoku.base.BaseFragment
import com.jdamcd.sudoku.repository.Level
impo... | 0 | null | 0 | 0 | 463f9abaa5a996b1d971ab4ec72912c6d7b55a36 | 2,080 | material-sudoku | Apache License 2.0 |
lib_image_picker/src/main/java/crocodile8/image_picker_plus/provider/GalleryProvider.kt | Andrew0000 | 631,278,281 | false | {"Kotlin": 36719} | package crocodile8.image_picker_plus.provider
import android.app.Activity
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.core.net.toUri
import crocodile8.image_picker_plus.PickRequest
import crocodile8.image_picker_plus.TypeFilte... | 2 | Kotlin | 0 | 5 | bb57c7c43f582f9cae52775f39369b4f03924647 | 2,830 | ImagePickerPlus | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/pecs/jpc/controller/JourneyPriceCatalogueControllerTest.kt | ministryofjustice | 292,861,912 | false | {"Kotlin": 875203, "HTML": 131707, "Shell": 20530, "CSS": 19037, "Mustache": 4593, "Dockerfile": 1328} | package uk.gov.justice.digital.hmpps.pecs.jpc.controller
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.mockito.kotlin.whenever
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockM... | 1 | Kotlin | 2 | 3 | f53ee728d5bea3453a5cde02d8751a13069cc335 | 3,970 | calculate-journey-variable-payments | MIT License |
app/src/main/java/com/primalabs/primavreme/MainActivity.kt | zprima | 354,273,921 | false | null | package com.primalabs.primavreme
import android.os.Bundle
import android.util.Log
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.animation.*
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.foun... | 0 | Kotlin | 0 | 0 | fe5f67c1bace18107689afa4e27b6f9ab3c2defc | 27,276 | prima-vreme | Apache License 2.0 |
persistence/src/test/kotlin/com/github/jactor/persistence/guestbook/GuestBookEntryRepositoryTest.kt | jactor-rises | 463,152,761 | false | {"Kotlin": 274265, "HTML": 10548, "Gherkin": 4063, "CSS": 2049} | package com.github.jactor.persistence.guestbook
import org.junit.jupiter.api.Test
import com.github.jactor.persistence.AbstractSpringBootNoDirtyContextTest
import com.github.jactor.persistence.address.AddressModel
import com.github.jactor.persistence.person.PersonModel
import com.github.jactor.persistence.user.UserMod... | 0 | Kotlin | 0 | 0 | 56174905dd9c2eb6f4b9ea8c15869231e62549bb | 7,525 | jactor-modules | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/glue/ActionPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.glue
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.glue.CfnTrigger
@Generated
public fun buildActionProperty(initializer: @AwsCdkDsl
CfnTrigger.ActionProperty.Builder.() -> Unit): ... | 1 | Kotlin | 0 | 0 | 451a1e42282de74a9a119a5716bd95b913662e7c | 415 | aws-cdk-kt | Apache License 2.0 |
android/app/src/main/kotlin/com/example/conversation_ranking_app/MainActivity.kt | ashwinpilgaonkar | 423,558,260 | false | {"Dart": 68403, "HTML": 4942, "Ruby": 1592, "Swift": 404, "Kotlin": 141, "Objective-C": 38} | package com.example.conversation_ranking_app
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 53ec5d57fc6012cb1bef2596da4cea6398c78352 | 141 | conversation-ranking-app | MIT License |
parser/src/main/kotlin/com/theeasiestway/entities/RssEntity.kt | theeasiestway | 198,079,594 | false | null | package com.theeasiestway.entities
open class RssEntity {
var title: String? = null
private set
var link: String? = null
private set
var description: String? = null
private set
var pubDate: String? = null
private set
open fun setTitle(title: String?) : RssEntity... | 0 | Kotlin | 0 | 0 | ea00b772b92e111f5a5b6a221119b3d3b52954fa | 1,030 | rss-parser-kotlin | Apache License 2.0 |
src/main/java/com/example/workmanager/WorkerRenameFactory.kt | vshpyrka | 755,524,995 | false | {"Kotlin": 28365, "CMake": 920, "C++": 440} | package com.example.workmanager
import android.content.Context
import androidx.work.CoroutineWorker
import androidx.work.ListenableWorker
import androidx.work.WorkerFactory
import androidx.work.WorkerParameters
class WorkerRenameFactory : WorkerFactory() {
override fun createWorker(
appContext: Context,
... | 0 | Kotlin | 0 | 0 | 22ce6b8484269ed8f9af967056bb550a794997bb | 804 | android-workmanager-example | Apache License 2.0 |
common-dependencies/src/main/kotlin/com/github/komamj/util/ProjectExt.kt | componentization-architechture | 316,873,838 | false | null | package com.github.komamj.util
import org.gradle.api.Project
import org.gradle.kotlin.dsl.dependencies
fun Project.addCoroutines(configurationName: String = "implementation") {
dependencies {
add(configurationName, "org.jetbrains.kotlinx:kotlinx-coroutines-core:$COROUTINES")
add(configurationName,... | 0 | Kotlin | 0 | 1 | caee137fcb29792c62ad56761016706456369170 | 392 | gradle-plugin | Apache License 2.0 |
src/main/kotlin/com/charleskorn/kaml/YamlConfiguration.kt | EdwarDDay | 207,233,135 | true | {"Kotlin": 256402, "Batchfile": 7582, "Shell": 3988} | /*
Copyright 2018-2019 Charles Korn.
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 t... | 0 | Kotlin | 0 | 1 | f5db1c77f3f8795d3ba0da4da6274eeabe65e393 | 1,485 | kaml | Apache License 2.0 |
modules/core/src/main/java/de/deutschebahn/bahnhoflive/ui/accessibility/SpokenFeedbackAccessibilityLiveData.kt | dbbahnhoflive | 267,806,942 | false | {"Kotlin": 1166808, "Java": 919061, "HTML": 43851} | package de.deutschebahn.bahnhoflive.ui.accessibility
import android.content.Context
import android.view.accessibility.AccessibilityManager
import androidx.lifecycle.LiveData
import de.deutschebahn.bahnhoflive.util.accessibility.accessibilityManager
import de.deutschebahn.bahnhoflive.util.accessibility.isSpokenFeedback... | 0 | Kotlin | 4 | 33 | ae72e13b97a60ca942b63ff36f8b982ea0a7bb4f | 1,193 | dbbahnhoflive-android | Apache License 2.0 |
06-security-best-practices/starter/app/src/main/java/com/raywenderlich/android/organizedsimplenotes/MainActivityViewModel.kt | raywenderlich | 273,212,706 | false | null | package com.raywenderlich.android.organizedsimplenotes
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
private const val ENCRYPTED_PREFS = "ENCRYPTED_PREFS"
private const val ENCRYPTED_PREFS_ENCRYPTION_KEY = "ENCRYP... | 10 | Kotlin | 1 | 2 | 2a5967a21b6f5fc5019b478f2819acc5d7c7ea22 | 973 | paps-materials | Apache License 2.0 |
cache/src/main/kotlin/com/cinema/entract/cache/repository/CinemaCacheRepo.kt | StephaneBg | 147,789,207 | false | null | /*
* Copyright 2019 <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... | 0 | Kotlin | 0 | 6 | 4453e5f02a0b2c6683cbbab4f8a8c551258930d6 | 2,525 | entract-cinema-android | Apache License 2.0 |
AzurLaneLibrary/src/main/kotlin/DataVersion.kt | AdorableParker | 519,499,809 | false | null | package org.nymph
import net.mamoe.mirai.console.command.*
import org.nymph.AzurLaneLibrary.SQLiteLink
object DataVersion : SimpleCommand(
AzurLaneLibrary, "DataVersion", "数据版本",
description = "数据库数据版本"
) {
override val usage = "${CommandManager.commandPrefix}数据版本\t#$description"
@Handler
suspen... | 0 | Kotlin | 0 | 0 | 34ca0d5d5ab303b4d30bbd9415e1d17f2849bab7 | 1,111 | MiraiConsolePlugins | Apache License 2.0 |
ProjectAudioAssets/app/src/main/java/me/liuqingwen/android/projectaudioassets/MainActivity.kt | spkingr | 99,180,956 | false | null | package me.liuqingwen.android.projectaudioassets
import android.media.AudioAttributes
import android.media.AudioManager
import android.media.SoundPool
import android.os.Build
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v7.widget.GridLayoutManager
import android.suppo... | 0 | Kotlin | 30 | 94 | 43756ad5107521e8156b0e5afa9e83fd0c20092a | 2,914 | 50-android-kotlin-projects-in-100-days | MIT License |
app/src/main/java/com/sebastijanzindl/galore/presentation/screens/generateCocktailLoading/GenerateCocktailLoadingScreen.kt | m1thrandir225 | 743,270,603 | false | {"Kotlin": 400176} | package com.sebastijanzindl.galore.presentation.screens.generateCocktailLoading
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMa... | 0 | Kotlin | 0 | 0 | f578b800dbc6be3ab7421662176d8f4b7d652c03 | 3,487 | galore-android | MIT License |
nebulosa-indi-protocol/src/main/kotlin/nebulosa/indi/protocol/parser/INDIProtocolParser.kt | tiagohm | 568,578,345 | false | {"Kotlin": 2712371, "TypeScript": 513759, "HTML": 249483, "JavaScript": 120539, "SCSS": 11332, "Python": 2817, "Makefile": 445} | package nebulosa.indi.protocol.parser
import nebulosa.indi.protocol.io.INDIInputStream
interface INDIProtocolParser : INDIProtocolHandler, AutoCloseable {
val input: INDIInputStream?
val isClosed: Boolean
}
| 29 | Kotlin | 2 | 4 | 723ede857d8fbf608562e93030719ae26dd0aad1 | 219 | nebulosa | MIT License |
health/connect/connect-client/src/main/java/androidx/health/connect/client/records/SwimmingStrokesRecord.kt | KOLANICH-libs | 445,548,183 | true | {"Kotlin": 68310818, "Java": 60327498, "C++": 9028407, "Python": 292398, "AIDL": 264519, "Shell": 174895, "HTML": 21175, "ANTLR": 19860, "CMake": 12136, "TypeScript": 7599, "C": 7083, "Swift": 3153, "JavaScript": 1343} | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Kotlin | 0 | 0 | c542b3a7cf2c46dfe3e071ca57956761e90aaff3 | 4,533 | androidx | Apache License 2.0 |
r2dbc-mysql/src/main/java/JasyncDatabaseException.kt | mirromutth | 176,066,212 | true | {"Kotlin": 679473, "Java": 15957, "Shell": 3740} | package com.github.jasync.r2dbc.mysql
import io.r2dbc.spi.R2dbcException
class JasyncDatabaseException(reason: String,
sqlState: String,
errorCode: Int,
cause: Throwable): R2dbcException(reason, sqlState, errorCode, cause)
| 0 | Kotlin | 0 | 2 | 76854b2df7ba39c4843d8c372343403721c4c8b7 | 315 | jasync-sql | Apache License 2.0 |
app/src/main/kotlin/com/awesome/un/ui/post/PostViewModel.kt | stanfit | 230,573,240 | false | {"Kotlin": 18638} | package com.awesome.un.ui.post
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.liveData
import com.awesome.un.App
import com.awesome.un.domain.usecase.PostUseCase
import kotlinx.coroutines.delay
import timber.log.Timber
/**
* Post List Screen's ViewModel. [AndroidViewModel] subclass.
*
* @prop... | 0 | Kotlin | 0 | 0 | fa67068d66e6d821a02aa50610a5c6a7bbfc8c43 | 794 | android-clean-architecture | MIT License |
domain/src/main/java/org/commcare/dalvik/domain/repositories/TranslationRepository.kt | dimagi | 531,775,811 | false | null | package org.commcare.dalvik.domain.repositories
import org.commcare.dalvik.domain.model.TranslationModel
interface TranslationRepository {
suspend fun getTranslationData(langCode:String) :TranslationModel?
} | 0 | Kotlin | 1 | 0 | e5e4c7f57f1eebfe12c8fcf4af2f160acf3f6d46 | 213 | abdm-app | Apache License 2.0 |
src/main/kotlin/gameWindows.kt | lwd1815 | 105,521,563 | false | null | import business.Blockable
import business.Movable
import enums.DIrections
import javafx.scene.input.KeyCode
import javafx.scene.input.KeyCodeCombination
import javafx.scene.input.KeyEvent
import model.Tank
import org.itheima.kotlin.game.core.Window
import org.lwd.game.Config
import org.lwd.game.model.*
import java.io.F... | 0 | Kotlin | 0 | 3 | b7689ee0bb3f781f56ad80c535fd9f577b828615 | 2,809 | TankDZ | Apache License 2.0 |
app/src/main/java/com/goms/goms_android_v2/GomsApplication.kt | team-haribo | 740,096,241 | false | {"Kotlin": 621219} | package com.goms.goms_android_v2
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class GomsApplication : Application() {} | 5 | Kotlin | 0 | 9 | 32b6b960f997e282a05c8409d6e045e6f95822d5 | 164 | GOMS-Android-V2 | MIT License |
app/src/main/java/ru/terrakok/gitlabclient/presentation/project/files/ProjectFileDestination.kt | dector | 341,706,824 | false | null | package ru.terrakok.gitlabclient.presentation.project.files
import android.os.Bundle
class ProjectFileDestination {
var defaultPath: String = ""
private set
var branchName: String = ""
private set
val paths = arrayListOf<String>()
interface Callback {
fun onMoveForward(fromRo... | 0 | Kotlin | 0 | 1 | 7258eb2bc4ca9fcd1ebf3029217d80d6fd2de4b9 | 2,252 | gitfox-mirror | Apache License 2.0 |
src/test/kotlin/game/GameTest.kt | danieldinter | 563,899,846 | false | {"Kotlin": 89806} | package game
import gg.dani.chess.game.Checkmate
import gg.dani.chess.game.Game
import gg.dani.chess.helpers.Color
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
class GameKotest : StringSpec({
val game = Game()
"fools mate" {
val board = game.board
val f2 =... | 0 | Kotlin | 0 | 0 | 5ed082dbdc03c2342958b5ded0d85ea41c3c7673 | 1,551 | kotlin-chess | MIT License |
libraries/push/impl/src/test/kotlin/io/element/android/libraries/push/impl/notifications/fake/FakeActiveNotificationsProvider.kt | element-hq | 546,522,002 | false | {"Kotlin": 8692554, "Python": 57175, "Shell": 39911, "JavaScript": 20399, "Java": 9607, "HTML": 9416, "CSS": 2519, "Ruby": 44} | /*
* Copyright (c) 2024 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 263 | Kotlin | 129 | 955 | 31d0621fa15fe153bfd36104e560c9703eabe917 | 2,649 | element-x-android | Apache License 2.0 |
user-agent/src/main/kotlin/ru/touchin/ua/devices/DevicePlatformFactory.kt | TouchInstinct | 256,563,788 | false | null | package ru.touchin.ua.devices
import ru.touchin.common.devices.enums.DevicePlatform
import ua_parser.Parser as UaParser
class DevicePlatformFactory {
fun fromUserAgent(userAgent: String): DevicePlatform {
val client = UaParser().parse(userAgent)
if (client.device.family.matches(HUAWEI_DEVICE_FAM... | 1 | Kotlin | 1 | 3 | c8ed908656dc5d28b77961131188ef5b65a98e0d | 1,204 | Backend-common | Apache License 2.0 |
domain/src/main/java/com/oguzdogdu/domain/usecase/favorites/GetDeleteFromFavoritesUseCase.kt | oguzsout | 616,912,430 | false | {"Kotlin": 456497} | package com.oguzdogdu.domain.usecase.favorites
import com.oguzdogdu.domain.model.favorites.FavoriteImages
interface GetDeleteFromFavoritesUseCase {
suspend operator fun invoke(favoriteImage: FavoriteImages?)
} | 0 | Kotlin | 0 | 8 | 88456612d6a87b23a253f5b1df495d1c7ca0449a | 215 | Wallies | MIT License |
app/src/main/java/com/jetpackcomposedemo/ui/room/ui/TodoViewModel.kt | manipatel30 | 605,739,159 | false | null | package com.jetpackcomposedemo.ui.room.ui
import android.util.Log
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.jetpackcomposedemo.ui.room.TodoRepository
import com.jetpackcomposedemo.u... | 0 | Kotlin | 0 | 0 | dea6eca1cc40ec05c842d123efa21d718683ffe5 | 1,094 | composedemo | Apache License 2.0 |
src/main/kotlin/com/github/dixtdf/archive/manager/action/PackGroupAction.kt | dixtdf | 724,939,196 | false | {"Kotlin": 68786} | package com.github.dixtdf.archive.manager.action
import com.github.dixtdf.archive.manager.action.utils.MessageUtils
import com.intellij.openapi.actionSystem.ActionGroup
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.Defa... | 0 | Kotlin | 1 | 1 | e70199fec53cca094549ef73acb0084cb2c213e5 | 538 | ArchiveManager | Apache License 2.0 |
app/src/main/java/com/ksnk/radio/di/modules/ActivityModules.kt | Ksnk-dm | 482,930,083 | false | null | package com.ksnk.radio.di.modules
import com.ksnk.radio.ui.main.MainActivity
import dagger.Module
import dagger.android.ContributesAndroidInjector
@Module
abstract class ActivityModules {
@ContributesAndroidInjector
abstract fun bindMainActivity(): MainActivity?
} | 2 | Kotlin | 1 | 0 | eee36f663a8165d0769ae60243afee0a0b068035 | 274 | Radio | Apache License 2.0 |
kmpp/src/iosMain/kotlin/com/piasy/kmpp/api/Logger.kt | Piasy | 211,461,023 | false | {"Objective-C": 70662, "C": 17733, "Kotlin": 7604, "C++": 6154, "Swift": 4053, "Shell": 694, "Batchfile": 505} | package com.piasy.kmpp.api
import platform.Foundation.NSLog
import platform.Foundation.NSThread
/**
* Created by Piasy{github.com/Piasy} on 2019/10/7.
*/
actual class Logger {
actual fun info(tag: String, content: String) {
NSLog("$tag: $content @ ${NSThread.currentThread.description}")
}
}
| 0 | Objective-C | 0 | 6 | 02c4e01f22887deac73fc07c12004c6e7a24f202 | 312 | KmppBootstrap | MIT License |
app/src/main/java/com/example/project3/MathScreen.kt | pascalkoj | 693,393,119 | false | {"Kotlin": 17075} | package com.example.project3
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.TextView
import androidx.navigation.fragment.NavHostFragment
import androidx.navigatio... | 0 | Kotlin | 0 | 0 | c524c8929b09eb8d4f5ede8710e5076376b98721 | 3,930 | project3 | Apache License 2.0 |
src/commonMain/kotlin/main.kt | ryopei | 215,591,957 | false | null | import com.soywiz.klock.seconds
import com.soywiz.korau.sound.nativeSoundProvider
import com.soywiz.korau.sound.readNativeSound
import com.soywiz.korge.*
import com.soywiz.korge.animate.AnLibrary
import com.soywiz.korge.animate.AnMovieClip
import com.soywiz.korge.animate.serialization.readAni
import com.soywiz.korge.in... | 0 | Kotlin | 0 | 0 | a25e5f9a7dd3080a7aa286a940b5ca8d63bdfe19 | 3,559 | korge-hello-world | MIT License |
android/src/main/kotlin/com/pravera/flutter_secure_keyboard/FlutterSecureKeyboardPluginChannel.kt | Dev-hwang | 325,221,130 | false | {"Dart": 50456, "Kotlin": 3294, "Swift": 2524, "Ruby": 2247, "Objective-C": 804} | package com.pravera.flutter_secure_keyboard
import android.app.Activity
import io.flutter.plugin.common.BinaryMessenger
/** FlutterSecureKeyboardPluginChannel */
interface FlutterSecureKeyboardPluginChannel {
fun init(messenger: BinaryMessenger)
fun setActivity(activity: Activity?)
fun dispose()
}
| 1 | Dart | 8 | 28 | 79f548228ee3863ea0a36fdde744e9a0aa56f772 | 304 | flutter_secure_keyboard | MIT License |
src/main/kotlin/com/nuc/evaluate/vo/TitleVO.kt | codacy-badger | 163,490,462 | true | {"Kotlin": 54712} | package com.nuc.evaluate.vo
import com.nuc.evaluate.po.Title
/**
* @author 杨晓辉 2018/2/4 10:26
* 返回到页面的试题视图
*/
class TitleVO {
var id: Long = 0
lateinit var num: String
lateinit var title: String
lateinit var category: String
var difficulty: String? = null
var score: Double = 0.0
var com... | 0 | Kotlin | 0 | 0 | 51d5745fb54ea0c7fa70abb7cc2d71f2dcf23cac | 1,604 | evaluate | Apache License 2.0 |
app/src/main/java/com/example/composepokemonapp/data/remote/response/GenerationI.kt | NimeshVasani | 640,294,775 | false | {"Kotlin": 40899} | package com.example.composepokemonapp.data.remote.response
data class GenerationI(
val red_blue: RedBlue,
val yellow: Yellow
) | 0 | Kotlin | 0 | 1 | b98f14534e10895b0cb91177edcb43f78400681e | 135 | Compose-Pokemon-App | Info-ZIP License |
core/src/main/java/com/rahmadev/hamba/core/presentation/adapter/QuranAdapter.kt | rahmadnoorikhsan | 729,571,011 | false | {"Kotlin": 78137, "Java": 3429} | package com.rahmadev.hamba.core.presentation.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.rahmadev.hamba.core.R
import com.rahmadev.hamba.... | 0 | Kotlin | 0 | 0 | ad589c072d95ffe43c5a6274219550e9742969e7 | 1,805 | Hamba | MIT License |
src/main/kotlin/me/fzzyhmstrs/amethyst_imbuement/spells/WitheringBoltAugment.kt | fzzyhmstrs | 461,338,617 | false | null | package me.fzzyhmstrs.amethyst_imbuement.spells
import me.fzzyhmstrs.amethyst_core.augments.ScepterAugment
import me.fzzyhmstrs.amethyst_core.augments.base.ProjectileAugment
import me.fzzyhmstrs.amethyst_core.augments.data.AugmentDatapoint
import me.fzzyhmstrs.amethyst_core.augments.paired.AugmentType
import me.fzzyhm... | 14 | Kotlin | 7 | 3 | 2614d0138c139d378c27e460d9a141799565920c | 3,332 | ai | MIT License |
src/day11/Day11.kt | commanderpepper | 574,647,779 | false | null | package day11
import readInput
fun main (){
val day11Input = readInput("day11")
val monkeysListPartOne = parseInput(day11Input)
val monkeysListPartTwo = parseInput(day11Input)
println(monkeyBusiness(monkeys = monkeysListPartOne, rounds = 20, worryDivisor = 3L))
println(monkeyBusiness(monkeys = mon... | 0 | Kotlin | 0 | 1 | fef291c511408c1a6f34a24ed7070ceabc0894a1 | 5,134 | advent-of-code-kotlin-2022 | Apache License 2.0 |
example-app/src/commonMain/kotlin/com/lightningkite/mppexampleapp/InfiniteImagesScreen.kt | lightningkite | 778,386,343 | false | {"Kotlin": 2224994, "Swift": 7449, "Ruby": 4925, "CSS": 4562, "HTML": 4084, "HCL": 880, "JavaScript": 302, "Objective-C": 142, "C": 104, "Shell": 49} | package com.lightningkite.mppexampleapp
import com.lightningkite.kiteui.views.ViewWriter
import com.lightningkite.kiteui.*
import com.lightningkite.kiteui.models.*
import com.lightningkite.kiteui.navigation.Screen
import com.lightningkite.kiteui.navigation.dialogScreenNavigator
import com.lightningkite.kiteui.navigati... | 3 | Kotlin | 0 | 2 | 58ee76ab3e8e7cab71e65a18c302367c6a641da5 | 4,880 | kiteui | Apache License 2.0 |
trec-service/src/main/kotlin/eu/jrie/put/trec/domain/index/index.kt | jakubriegel | 323,860,098 | false | null | package eu.jrie.put.trec.domain.index
import eu.jrie.put.trec.api.IndexAlgorithm
import eu.jrie.put.trec.api.IndexEngine
import eu.jrie.put.trec.api.IndexEngine.ELASTICSEARCH
import eu.jrie.put.trec.api.IndexEngine.TERRIER
import eu.jrie.put.trec.domain.Article
import eu.jrie.put.trec.domain.query.Topic
import eu.jrie... | 0 | Kotlin | 0 | 0 | a96c16aabb83766e0da88264b3b61e4d3b1d1f44 | 2,137 | trec-analyzer | MIT License |
app/src/main/java/xyz/fairportstudios/popularin/enums/PointType.kt | rgxcp | 277,228,278 | false | null | package xyz.fairportstudios.popularin.enums
enum class PointType {
FAVORITE, REVIEW, WATCHLIST
} | 0 | Kotlin | 0 | 0 | ac82b65d5f43d07b64aa5010218c663983c839cb | 101 | PopularinKotlin | MIT License |
Fabric/src/main/kotlin/mod/master_bw3/hexui/fabric/networking/MsgSetScreenS2C.kt | Master-Bw3 | 838,004,671 | false | {"Kotlin": 53480, "Java": 2260} | package mod.master_bw3.hexui.fabric.networking
import at.petrak.hexcasting.api.casting.iota.Iota
import at.petrak.hexcasting.api.casting.iota.IotaType
import at.petrak.hexcasting.api.casting.iota.ListIota
import at.petrak.hexcasting.api.utils.putCompound
import dev.architectury.networking.NetworkManager.PacketContext
... | 0 | Kotlin | 0 | 0 | eedc226cdf514ef3f6d17fa6a4b3fd5a1f950fcd | 958 | hex-ui | MIT License |
app/src/main/java/com/hypertrack/android/utils/GoogleServicesUtils.kt | hypertrack | 241,723,736 | false | null | package com.hypertrack.android.utils
import com.google.android.gms.tasks.Task
import kotlin.coroutines.resume
import kotlin.coroutines.suspendCoroutine
import com.google.android.play.core.tasks.Task as PlayTask
suspend fun <T : Any> Task<T>?.toSuspendCoroutine(): Result<T> = suspendCoroutine { continuation ->
if ... | 1 | Kotlin | 17 | 31 | 7a613e4b618043d95e101b819d903c3b1eda6773 | 1,014 | visits-android | MIT License |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bold/Cpusetting.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.co... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 10,260 | VuesaxIcons | MIT License |
HIGOODS-Api/src/main/kotlin/com/higoods/api/config/jwt/JwtOIDCHelper.kt | higoods-hongik | 663,934,695 | false | null | package com.higoods.api.config.jwt
import com.depromeet.whatnow.config.jwt.OIDCDecodePayload
import com.higoods.common.annotation.Helper
import com.higoods.common.const.KID
import com.higoods.common.exception.custom.InvalidTokenException
import io.jsonwebtoken.Claims
import io.jsonwebtoken.Header
import io.jsonwebtoke... | 6 | Kotlin | 0 | 1 | 22f2895454eaec7ada1c341e3b9a9371970f09ab | 2,354 | HIGOODS-Backend | MIT License |
mobikulOC/src/main/java/webkul/opencart/mobikul/model/AddToWishlist/AddtoWishlist.kt | fortunedev223 | 435,488,584 | false | {"Kotlin": 1128789, "Java": 655153} | package webkul.opencart.mobikul.model.AddToWishlist
/**
* Created by manish.choudhary on 2/8/17.
*/
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
import webkul.opencart.mobikul.model.BaseModel.BaseModel
class AddtoWishlist : BaseModel() {
@SerializedName("total")... | 0 | Kotlin | 0 | 0 | fe2513dab910dc471810fa37d6c01c848712c295 | 449 | Boutiquey_Android | MIT License |
features/core/ui/viewmodel/lib/src/test/java/viewmodel/AbstractBaseViewModelDisposableTest.kt | game-x50 | 361,364,864 | false | null | package viewmodel
import com.ruslan.hlushan.core.thread.test.utils.ThreadCheckerStub
import com.ruslan.hlushan.core.ui.viewmodel.test.utils.TestBaseViewModelCleanUpRule
import com.ruslan.hlushan.third_party.rxjava2.test.utils.TestSchedulerCleanUpRule
import io.reactivex.schedulers.TestScheduler
import org.junit.Before... | 22 | Kotlin | 0 | 0 | 159a035109fab5cf777dd7a60f142a89f441df63 | 1,013 | android_client_app | Apache License 2.0 |
ui/widget/src/main/kotlin/ru/maksonic/beresta/ui/widget/dialog/BaseDialog.kt | maksonic | 580,058,579 | false | null | package ru.maksonic.beresta.ui.widget.dialog
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation... | 0 | Kotlin | 0 | 0 | c54eb2c7e994988cea1d086c134dafb88dc5d390 | 3,205 | Beresta | MIT License |
src/main/kotlin/com/skillw/randomitem/internal/type/WeightType.kt | Glom-c | 474,664,541 | false | {"HTML": 1249224, "Kotlin": 91795, "JavaScript": 26016, "CSS": 21580, "Assembly": 2} | package com.skillw.randomitem.internal.type
import com.skillw.pouvoir.util.StringUtils.toList
import com.skillw.randomitem.api.variable.type.BaseVariableType
import com.skillw.randomitem.util.ListUtils.getMultiple
import taboolib.common5.Coerce
import taboolib.common5.RandomList
import java.util.function.Function
impo... | 0 | HTML | 0 | 2 | e6714dd0cb17216de38bc37058f768b2aeec5511 | 1,262 | RandomItem-III | MIT License |
app/src/main/java/com/example/snapstory/ui/onboarding/OnboardingActivity.kt | syenirasheila | 804,532,533 | false | {"Kotlin": 96042} | package com.example.snapstory.ui.onboarding
import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.activity.OnBackPressedCallback
import androidx.appcompat.app.AppCompatActivity
import com.example.snap... | 0 | Kotlin | 0 | 0 | 1ace917f6e6dfc5ea19c3092cd4b1cbe7ec49baf | 3,360 | SnapStory | MIT License |
core/android/main/kotlin/com/meowbase/toolkit/data/ColorState.kt | siylt007 | 336,180,880 | true | {"Kotlin": 1405824, "Java": 474434, "Dart": 14190, "HTML": 70} | @file:Suppress("MemberVisibilityCanBePrivate")
package com.meowbase.toolkit.data
import android.annotation.SuppressLint
/*
* author: 凛
* date: 2020/10/1 下午16:50
* github: https://github.com/RinOrz
* description: Indicates color status
*/
inline class ColorState(val res: Int?) {
companion object {
/** When... | 0 | null | 0 | 0 | df82f0588beb13fbd22308b3d015852c25781612 | 4,323 | toolkit | Apache License 2.0 |
5/PR5_3+/app/src/main/java/ru/myitschool/lab23_5_3/SettingsActivity.kt | Purpurum | 580,288,282 | false | null | package ru.myitschool.PR5_3
import android.content.Context.*
import android.content.SharedPreferences
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import android.os.Bundle
import android.widget.TextView
import andro... | 0 | Kotlin | 0 | 0 | 247e216e5e3e33eb0dbb25fc4e1305036df3667e | 3,680 | MD-NARFU | MIT License |
src/jvmMain/kotlin/acidicoala/koalageddon/settings/ui/SettingsScreen.kt | acidicoala | 584,899,259 | false | null | package acidicoala.koalageddon.settings.ui
import acidicoala.koalageddon.BuildConfig
import acidicoala.koalageddon.core.model.LangString
import acidicoala.koalageddon.core.model.Settings
import acidicoala.koalageddon.core.ui.composable.*
import acidicoala.koalageddon.core.ui.composition.LocalSettings
import acidicoala... | 3 | Kotlin | 21 | 272 | 4bb78260cc241069730236ccc130356357ac90e6 | 3,552 | Koalageddon2 | The Unlicense |
app/src/main/java/com/krutkowski/omvice/KoinModules.kt | konradrutkowski | 516,687,523 | false | null | package com.krutkowski.omvice
import com.krutkowski.omvice.api.networkModule
import com.krutkowski.omvice.data.LocalRoomStorage
import com.krutkowski.omvice.data.RoomStorage
import com.krutkowski.omvice.data.stream.StreamDataSource
import com.krutkowski.omvice.data.stream.StreamRepository
import com.krutkowski.omvice.... | 0 | Kotlin | 0 | 0 | c25f2d1c2e109ec69b7365efe066ae732703d705 | 1,357 | omvice | Apache License 2.0 |
src/main/kotlin/therealfarfetchd/powerline/common/api/block/FluidPipeContainer.kt | Darkstrumn | 131,374,601 | true | {"Kotlin": 369119, "Assembly": 52301, "Shell": 2306, "GLSL": 1113} | package therealfarfetchd.powerline.common.api.block
import net.minecraft.util.EnumFacing
import net.minecraftforge.fluids.Fluid
import net.minecraftforge.fluids.FluidRegistry
import therealfarfetchd.quacklib.common.api.INeighborSupport
import therealfarfetchd.quacklib.common.api.extensions.mapWithCopy
import therealfa... | 0 | Kotlin | 0 | 0 | 9c5f4d614eb7af91dec06400a658b0c6eb9fb656 | 2,829 | HCTM | MIT License |
app/src/main/java/org/task/manager/data/network/model/request/BookRequest.kt | Steampunk1453 | 279,327,096 | false | null | package org.task.manager.data.network.model.request
import com.google.gson.annotations.SerializedName
import org.task.manager.domain.model.Book
data class BookRequest(
@SerializedName("id")
val id: Long?,
@SerializedName("title")
val title: String,
@SerializedName("author")
var author: Strin... | 0 | Kotlin | 1 | 9 | 612c7a0a3c3a86d0a7f185e88273d6cccd991a03 | 1,052 | todo-task-manager-android | Apache License 2.0 |
compiler-plugin/src/main/kotlin/com/lhwdev/ktui/plugin/compiler/util/irStdlibUtils.kt | ppwasin | 328,231,754 | true | {"Kotlin": 516602} | package com.lhwdev.ktui.plugin.compiler.util
import org.jetbrains.kotlin.ir.util.kotlinPackageFqn
fun IrElementScope.irError(message: String) =
irCall(irFunctionSymbol(kotlinPackageFqn, "error", 1), valueArguments = listOf(irString(message)))
| 0 | null | 0 | 0 | a2559a1c036d72eb2b2a26616bef1df07dcf7671 | 247 | kt-ui | Apache License 2.0 |
src/cipher/encipher.kt | ginestra | 122,474,609 | false | null | package cipher
/**
* Takes a string and rotates each character contained within the English
* alphabet to the next character using the offset (must be between 0 and 25).
*
* @throws IllegalArgumentException if offset is not between 0 and 25
*/
fun encipher(str: String, offset: Int): String {
// Enforce a rang... | 0 | Kotlin | 0 | 1 | 4cc03407e8c3cd17c2cca390d3bc0d3b2ee9b716 | 1,703 | sdp-cw2 | MIT License |
src/main/kotlin/bagguley/knes/papu/ChannelNoise.kt | bagguley | 669,578,913 | false | null | package bagguley.knes.papu
class ChannelNoise(val papu: Papu) {
var isEnabled:Boolean = false
set(value) {
field = value
if (!value) {
lengthCounter = 0
}
updateSampleValue()
}
var envDecayDisable:Boolean = false
var envDecayLoopEnable:Boolean = false
... | 0 | Kotlin | 0 | 0 | 45cd840d014d7474be7959364638bf9221646ba0 | 3,499 | knes | MIT License |
src/main/kotlin/org/sonatype/maven/polyglot/kotlin/model/Plugin.kt | slezhnin | 74,742,614 | false | null | package org.sonatype.maven.polyglot.kotlin.model
data class Plugin(
val gav: Gav,
val extensions: Boolean = false,
val executions: Sequence<Execution> = emptySequence(),
val dependencies: Sequence<Dependency> = emptySequence(),
val inherited: Boolean = true,
val configur... | 0 | Kotlin | 0 | 0 | 5eabd5fbedb1a67c1fc6ee6d0b29502ed9fed134 | 344 | polyglot-kotlin | Apache License 2.0 |
src/main/kotlin/com/hj/leetcode/kotlin/problem931/Solution.kt | hj-core | 534,054,064 | false | {"Kotlin": 800976} | package com.hj.leetcode.kotlin.problem931
/**
* LeetCode page: [931. Minimum Falling Path Sum](https://leetcode.com/problems/minimum-falling-path-sum/description/);
*/
class Solution {
/* Complexity:
* Time O(MN) and Space O(N) where M and N are the number of rows and
* columns of matrix;
*/
f... | 0 | Kotlin | 0 | 2 | ffe7cea0e532ecc27682cb534c0a76e2d0bd756d | 907 | hj-leetcode-kotlin | Apache License 2.0 |
core/src/main/java/com/github/grishberg/profiler/plugins/stages/methods/StageRelatedToMethods.kt | Grigory-Rylov | 256,819,360 | false | null | package com.github.grishberg.profiler.plugins.stages.methods
import com.github.grishberg.profiler.plugins.stages.Stage
/**
* @param name - method name
* @param index - index of called method [name]
*/
data class MethodWithIndex(
val name: String,
val index: Int? = null
) {
fun getMethodIndex(): Int {
... | 19 | Kotlin | 3 | 97 | e0ba609640cea72c301ff1537dc9cdd9b67bfe4c | 808 | android-methods-profiler | Apache License 2.0 |
src/main/kotlin/com/fwdekker/randomness/ui/JSpinnerHelper.kt | FWDekker | 96,791,256 | false | null | package com.fwdekker.randomness.ui
import com.fwdekker.randomness.Bundle
import javax.swing.JSpinner
/**
* Binds two spinners that form a range of valid values together.
*
* This function adds listeners to the spinners so that if one spinner's value is adjusted, the other's value is also
* adjusted if not doing ... | 14 | Kotlin | 7 | 39 | bbeac32f79a2ceff802a87329e712f98ec0b82c1 | 1,546 | intellij-randomness | MIT License |
simplified-ui-catalog/src/test/kotlin/org/nypl/simplified/ui/catalog/CatalogBookDetailFragmentTest.kt | NYPL-Simplified | 30,199,881 | false | {"Kotlin": 2986168, "Java": 384210, "HTML": 109577, "Shell": 3481, "Ruby": 356} | package org.nypl.simplified.ui.catalog
import androidx.core.os.bundleOf
import androidx.fragment.app.testing.FragmentScenario
import androidx.fragment.app.testing.launchFragmentInContainer
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.... | 109 | Kotlin | 21 | 32 | 781e4e2122f1528253a6cf17931083944f91ceba | 4,398 | Simplified-Android-Core | Apache License 2.0 |
proteus-compiler-kotlin/src/main/kotlin/lang/proteus/binding/BoundBreakStatement.kt | julian-hartl | 584,782,799 | false | null | package lang.proteus.binding
internal class BoundBreakStatement: BoundStatement() {
} | 1 | Kotlin | 0 | 0 | 4ac2a1e2c7867d449de053e1be958c81e619a4f9 | 87 | proteus | MIT License |
kotlinflexiblesearch/kotlinsrc/com/github/listemanuel95/flexiblesearch/tests/BasicTests.kt | listemanuel95 | 678,568,346 | false | null | package com.github.listemanuel95.flexiblesearch.tests
import com.github.listemanuel95.flexiblesearch.utils.*
import de.hybris.platform.core.model.product.UnitModel
import kotlin.test.Test
import kotlin.test.assertEquals
class BasicTests {
@Test
fun `Simple Query Test`() {
val query = buildQuery("${se... | 0 | Kotlin | 0 | 0 | f5046118aa84117d1c0e4fdf3a3a92149616f6cc | 2,200 | kotlinflexiblesearch | MIT License |
app/src/main/java/cloud/my_task/mytaskandroid/data/TaskRepository.kt | Hellsos | 152,995,590 | false | null | package cloud.my_task.mytaskandroid.data
class TaskRepository private constructor(private val taskDAO: TaskDAO) {
fun addTask(task: Task) {
taskDAO.addTask(task)
}
fun getTasks() = taskDAO.getTasks()
fun setCurrentTask(task: Task) {
taskDAO.setCurrentTask(task)
}
fun getCurr... | 0 | Kotlin | 0 | 0 | 3c28c644b737462a8377ce42b4a06a2b60827269 | 691 | my-task-android | MIT License |
app/features/chat/src/main/java/com/can_apps/chat/data/MessageDto.kt | Canato | 287,899,145 | false | null | package com.can_apps.chat.data
import java.util.Locale
data class NewMessageDto(
val text: MessageTextDto,
val holder: MessageHolderEnumDto
)
data class MessageDto(
val id: MessageIdDto,
val text: MessageTextDto,
val timestamp: MessageTimestampDto,
val holder: MessageHolderEnumDto,
val ha... | 4 | Kotlin | 2 | 19 | 141112bdf6dfe80faf31154b03061ce909d12300 | 837 | showcase | Freetype Project License |
app/src/main/java/ru/aasmc/weather/util/BindingAdapter.kt | aasmc | 537,532,336 | false | {"Kotlin": 115025} | package ru.aasmc.weather.util
import android.widget.TextView
import androidx.databinding.BindingAdapter
import com.github.pwittchen.weathericonview.WeatherIconView
import ru.aasmc.weather.R
@BindingAdapter("setIcon")
fun WeatherIconView.showIcon(condition: String?) {
val context = this.context
WeatherIconGene... | 0 | Kotlin | 0 | 0 | c362fe35c672a5204b89820875d80310e2563814 | 766 | Weather | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.