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/us/jwf/aoc2020/Day25ComboBreaker.kt | jasonwyatt | 318,073,137 | false | null | package us.jwf.aoc2020
import java.io.Reader
import us.jwf.aoc.Day
/**
* Day 25 of AoC 2020.
*/
class Day25ComboBreaker : Day<Long, Int> {
/**
* You finally reach the check-in desk. Unfortunately, their registration systems are currently
* offline, and they cannot check you in. Noticing the look on your fac... | 0 | Kotlin | 0 | 0 | 0c92a62ba324aaa1f21d70b0f9f5d1a2c52e6868 | 5,441 | AdventOfCode-Kotlin | Apache License 2.0 |
composeApp/src/commonMain/kotlin/presentation/screen/navigation/HomeNavRoutes.kt | saifi369 | 833,042,897 | false | {"Kotlin": 116258, "Swift": 632} | package presentation.screen.navigation
import kotlinx.serialization.Serializable
@Serializable
sealed class HomeNavRoutes {
@Serializable
data object Home : HomeNavRoutes()
} | 0 | Kotlin | 0 | 0 | 5be256ee98e067b394d960ac8748e7a33a782e82 | 184 | KMP-ExpenseTracker | Apache License 2.0 |
generator/kotlin/src/commonMain/kotlin/org/timemates/rrpc/generator/kotlin/typemodel/Types.kt | timemates | 713,625,067 | false | {"Kotlin": 261080} | package org.timemates.rrpc.codegen.typemodel
import com.squareup.kotlinpoet.ClassName
import com.squareup.kotlinpoet.ParameterizedTypeName
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import com.squareup.kotlinpoet.TypeName
internal object Types {
fun Flow(ofTypeName: TypeName): ... | 8 | Kotlin | 0 | 8 | e349daf1ae419c3cf544dc9b27a93f2274ad90e3 | 4,474 | rrpc-kotlin | MIT License |
search/src/main/kotlin/com/github/davinkevin/istiobestfriendsk8s/search/SearchApplication.kt | davinkevin | 165,526,246 | false | {"Shell": 6410, "Kotlin": 4974} | package com.github.davinkevin.istiobestfriendsk8s.search
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.stereotyp... | 0 | Shell | 1 | 2 | 986ee783e3d56a76b2192727fdbf71676c93ddd6 | 1,104 | istio-best-friends-k8s-demo | Apache License 2.0 |
android-app/app/src/main/java/io/github/mkckr0/audio_share_app/model/HomeViewModel.kt | mkckr0 | 556,491,507 | false | null | /**
* Copyright 2022-2024 mkckr0 <https://github.com/mkckr0>
*
* 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
*
* ... | 20 | null | 42 | 861 | 2e151cceb181f913ff4bd6d284b214b037c04097 | 3,703 | audio-share | Apache License 2.0 |
src/me/anno/utils/structures/lists/UpdatingList.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.utils.structures.lists
/**
* quite expensive list, however it can be flexible for things, which accept just a list
* be wary, not all things may be ok with a live changing list!
* */
class UpdatingList<V>(val content: () -> List<V>) : List<V> {
override val size: Int
get() = content().s... | 0 | Kotlin | 2 | 9 | 94bc7c74436aa567ec3c19f386dd67af0f1ced00 | 1,308 | RemsEngine | Apache License 2.0 |
kotlin-electron/src/jsMain/generated/electron/core/ScreenEvent.kt | JetBrains | 93,250,841 | false | null | // Generated by Karakum - do not modify it manually!
package electron.core
@Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE")
@seskar.js.JsVirtual
sealed external interface ScreenEvent {
sealed interface DISPLAY_ADDED : node.events.LegacyEventType
sealed interface DISPLAY_METRICS_CHANGED : node.events.LegacyEve... | 40 | null | 165 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 1,197 | kotlin-wrappers | Apache License 2.0 |
app/src/main/kotlin/cz/kotox/kotiheating/model/db/HeatingStatusDao.kt | kotoMJ | 104,669,944 | false | null | package cz.kotox.kotiheating.model.db
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy.REPLACE
import androidx.room.Query
import cz.kotox.kotiheating.model.entity.HeatingDeviceStatus
@Dao
interface HeatingStatusDao {
@Insert(onConflict =... | 0 | Kotlin | 0 | 1 | 4cf45ac7cdc8340f934e3a1385f146b0d4ceeffd | 638 | kotiheating-android | Apache License 2.0 |
app/src/main/kotlin/cz/kotox/kotiheating/model/db/HeatingStatusDao.kt | kotoMJ | 104,669,944 | false | null | package cz.kotox.kotiheating.model.db
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy.REPLACE
import androidx.room.Query
import cz.kotox.kotiheating.model.entity.HeatingDeviceStatus
@Dao
interface HeatingStatusDao {
@Insert(onConflict =... | 0 | Kotlin | 0 | 1 | 4cf45ac7cdc8340f934e3a1385f146b0d4ceeffd | 638 | kotiheating-android | Apache License 2.0 |
app/src/main/kotlin/com/deepschneider/addressbook/fragments/UserInfoFragment.kt | dredwardhyde | 582,743,355 | false | null | package com.deepschneider.addressbook.fragments
import android.app.Activity
import android.content.Context
import android.content.res.ColorStateList
import android.graphics.Color
import android.os.Bundle
import android.util.Log
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
... | 0 | Kotlin | 3 | 6 | 3a31b1d80d1d984ebaf6d8a7e7f6393f407f68bf | 3,623 | addressbook-android-app | Apache License 2.0 |
ok-marketplace-api-v2-kmp/src/commonMain/kotlin/ProductSerializers.kt | otuskotlin | 462,372,364 | false | null | package ru.otus.otuskotlin.marketplace.api.v2
import ru.otus.otuskotlin.marketplace.api.v2.models.*
/**
* Список сериализаторов для всех объектов
*/
internal object ProductSerializers {
val bolt = ProductSerializer(AdProductBolt.serializer())
}
| 0 | Kotlin | 5 | 1 | f0af66ea368c6d0908dc7dc8cd7a22bf6bb73228 | 253 | 202202-ok-marketplace | MIT License |
src/main/kotlin/player/PlayerInput.kt | numq | 606,499,322 | false | {"Kotlin": 31106} | package player
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.Icon
import androidx.compose.material.IconButton
import androidx.co... | 0 | Kotlin | 1 | 9 | 44703ec537bad7ce7246e83e7dbee57da5c28fe4 | 2,331 | jetpack-compose-desktop-media-player | MIT License |
springmvc-partition/src/main/kotlin/nxcloud/ext/springmvc/partition/interceptor/BaseHandlerInterceptorAdapter.kt | Sunshow | 623,245,152 | false | {"Kotlin": 11815} | package nxcloud.ext.springmvc.partition.interceptor
import org.springframework.core.annotation.AnnotationUtils
import org.springframework.web.method.HandlerMethod
import org.springframework.web.servlet.AsyncHandlerInterceptor
abstract class BaseHandlerInterceptorAdapter : AsyncHandlerInterceptor {
protected open... | 0 | Kotlin | 0 | 0 | e5d2add5414349944e0fef701e237a9dd304e25f | 968 | nxcloud-springmvc-partition | Apache License 2.0 |
src/test/kotlin/kotlinmud/time/service/TimeServiceTest.kt | danielmunro | 241,230,796 | false | null | package kotlinmud.time.service
import assertk.assertThat
import assertk.assertions.isEqualTo
import assertk.assertions.isFalse
import kotlinmud.test.helper.createTestService
import kotlinx.coroutines.runBlocking
import org.junit.Test
class TimeServiceTest {
@Test
fun testTimeServicePulseSanityCheck() {
... | 0 | Kotlin | 1 | 9 | b7ee0d21ae813990896b1b8c6703da9bd1f1fc5b | 928 | kotlinmud | MIT License |
src/main/kotlin/de/kleinkop/pushover4k/client/Utils.kt | YoouDo | 586,498,732 | false | null | package de.kleinkop.pushover4k.client
import java.time.LocalDateTime
import java.time.OffsetDateTime
import java.time.ZoneId
import java.time.ZoneOffset
fun String.nullable(): String? = when (this) {
"" -> null
else -> this
}
fun Long.toLocalDateTimeUTC(): LocalDateTime = LocalDateTime.ofEpochSecond(this, 0,... | 0 | Kotlin | 0 | 0 | e4d36d3d0308cad2ad1fafe5383ba7bf4b47647d | 599 | pushover4k | Apache License 2.0 |
src/me/anno/graph/render/Texture.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.graph.render
import me.anno.gpu.deferred.DeferredLayerType
import me.anno.gpu.texture.ITexture2D
import me.anno.gpu.texture.Texture2D
import me.anno.gpu.texture.TextureLib.whiteTexture
import me.anno.utils.Color.toHexColor
import me.anno.utils.Color.white4
import org.joml.Vector4f
class Texture privat... | 0 | Kotlin | 1 | 9 | 566e183d43bff96ee3006fecf0142e6d20828857 | 1,393 | RemsEngine | Apache License 2.0 |
Fragments/WorkOrders/WorkOrdersInsertFragment.kt | georeaper | 852,383,858 | false | {"Kotlin": 560550} | package com.gkprojects.cmmsandroidapp.Fragments.WorkOrders
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.Fr... | 0 | Kotlin | 0 | 0 | ead876d15542a773f84db60d89a2360dc940b268 | 2,063 | CMMSmobile | MIT License |
app/src/main/java/com/innercirclesoftware/trimio/trim/periodic/Frequency.kt | maciej-kaznowski | 163,348,833 | false | {"Kotlin": 47701} | package com.innercirclesoftware.trimio.trim.periodic
enum class Frequency {
NEVER,
DAILY,
WEEKLY,
FORTNIGHTLY,
MONTHLY
} | 1 | Kotlin | 0 | 0 | 66b3d72445fe57985a773d1a508747709399178e | 141 | TrimIO | Apache License 2.0 |
client/src/commonTest/kotlin/serialize/rule/TestConsequence.kt | algolia | 153,273,215 | false | null | package serialize.rule
import attributeA
import com.algolia.search.helper.toObjectID
import com.algolia.search.model.rule.Anchoring
import com.algolia.search.model.rule.AutomaticFacetFilters
import com.algolia.search.model.rule.Condition
import com.algolia.search.model.rule.Consequence
import com.algolia.search.model.... | 8 | Kotlin | 11 | 43 | 1e538208c9aa109653f334ecd22a8205e294c5c1 | 4,515 | algoliasearch-client-kotlin | MIT License |
libs/tangleLib076/src/main/java/tangle/benchmark/tangleLib076/TangleLib076Fragment.kt | RBusarow | 415,108,675 | false | null | package tangle.benchmark.tangleLib076
import androidx.fragment.app.Fragment
import tangle.fragment.ContributesFragment
import tangle.fragment.FragmentInject
import tangle.fragment.FragmentInjectFactory
import tangle.inject.TangleParam
import javax.inject.Inject
@ContributesFragment(Unit::class)
class TangleLib076Frag... | 0 | Kotlin | 0 | 1 | b271faeb36f8f57977dd2b43d276098e1932f4eb | 360 | tangle-benchmark-project | Apache License 2.0 |
firebase-analytics/src/androidMain/kotlin/suntrix/kmp/firebase/analytics/ConsentStatus.kt | kotlin-multiplatform | 542,823,504 | false | {"Kotlin": 126662, "Makefile": 152} | package suntrix.kmp.firebase.analytics
/**
* Created by <NAME> on 21/03/2023
*/
actual typealias ConsentStatus = com.google.firebase.analytics.FirebaseAnalytics.ConsentStatus | 0 | Kotlin | 0 | 1 | 684e9142ce9fced949c1a9c539e8651aeb0a87da | 177 | firebase-kmp-sdks | MIT License |
gradle-plugin/src/main/kotlin/app/softwork/kobol/gradle/KobolDependencies.kt | hfhbd | 494,537,230 | false | {"Kotlin": 515181, "Lex": 13670} | package app.softwork.kobol.gradle
import org.gradle.api.artifacts.dsl.Dependencies
import org.gradle.api.artifacts.dsl.DependencyCollector
interface KobolDependencies : Dependencies {
val compiler: DependencyCollector
}
| 50 | Kotlin | 0 | 1 | a587019ce67db0cacc3cf6a1e9b61e4d0d74cbc2 | 226 | kobol | Apache License 2.0 |
src/main/kotlin/de/flapdoodle/tab/io/mapper/ColumnMapper.kt | flapdoodle-oss | 237,231,857 | false | {"Kotlin": 268896, "CSS": 6498, "Shell": 80} | package de.flapdoodle.tab.io.mapper
import de.flapdoodle.tab.io.adapter.ToFileMapping
import de.flapdoodle.tab.io.adapter.ToModelMapping
import de.flapdoodle.tab.io.file.FileColumn
import de.flapdoodle.tab.model.data.Column
import kotlin.reflect.KClass
interface ColumnMapper {
fun toFile(toFileMapping: ToFileMapp... | 0 | Kotlin | 1 | 0 | ae589187a369dc46bad6b5a7bcdc33ee6552a959 | 505 | tab | Apache License 2.0 |
serializer/src/commonMain/kotlin/org/angproj/io/pipe/Memory.kt | angelos-project | 486,974,547 | false | {"Kotlin": 128831, "C++": 8700, "C": 2529} | /**
* Copyright (c) 2022 by Kristoffer Paulsson <kristoffer.paulsson@talenten.se>.
*
* This software is available under the terms of the MIT license. Parts are licensed
* under different terms if stated. The legal terms are attached to the LICENSE file
* and are made available on:
*
* https://opensource.org... | 0 | Kotlin | 0 | 0 | 049203e515e5230e8f2b4e5205e1a1d1d5ae4a31 | 527 | angelos-project-serializer | MIT License |
build-conventions/src/main/kotlin/util/_global.kt | mpetuska | 430,798,310 | false | null | @file:Suppress("PackageDirectoryMismatch")
import de.fayard.refreshVersions.core.*
import org.gradle.api.*
import org.gradle.api.provider.*
import org.gradle.kotlin.dsl.*
import org.jetbrains.kotlin.gradle.plugin.*
val NamedDomainObjectContainer<KotlinSourceSet>.jsMain: NamedDomainObjectProvider<KotlinSourceSet>
ge... | 9 | Kotlin | 14 | 91 | f59bf9a9ec18b7755f6618b72634d32a17cf6632 | 873 | kmdc | Apache License 2.0 |
src/main/java/com/what3words/addressvalidator/javawrapper/utils/AddressLookUpServiceUtils.kt | what3words | 538,914,401 | false | {"Kotlin": 115964} | package com.what3words.addressvalidator.javawrapper.utils
import com.what3words.addressvalidator.javawrapper.What3WordsAddressValidator
import com.what3words.addressvalidator.javawrapper.addresslookupservice.AddressLookUpService
import com.what3words.addressvalidator.javawrapper.addresslookupservice.data8.What3WordsAd... | 0 | Kotlin | 0 | 0 | 27a9e74284e56338ab7574e228100b4d9eed31e1 | 2,117 | w3w-address-validator-java-wrapper | MIT License |
android/src/main/java/hu/tsulok/mlkit/textrecognizer/domain/model/RecognizerResult.kt | tsulok | 555,413,150 | false | null | package hu.tsulok.mlkit.textrecognizer.domain.model
sealed class RecognizerResult {
data class Text(val content: String, val confidence: Double) : RecognizerResult()
data class Barcode(val content: String) : RecognizerResult()
}
| 0 | Kotlin | 0 | 0 | 92461c219d76c0cce0d1c8c1422432773ef96fb3 | 238 | mlkit-barcode-text-scanner | MIT License |
src/jvmMain/kotlin/com/github/winterreisender/webviewko/WebviewJNA.kt | Winterreisender | 508,626,353 | false | {"Kotlin": 132748, "Java": 5583} | /*
* Copyright (C) 2022. Winterreisender
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1 | Kotlin | 3 | 37 | 3b91ddc436c837827c75cc4852aa9ec0986ef67d | 10,011 | webviewko | Apache License 2.0 |
engine/src/main/kotlin/hamburg.remme/lwjgl/GameObject.kt | dremme | 162,707,404 | false | null | package hamburg.remme.lwjgl
import hamburg.remme.lwjgl.scene.Model
import org.joml.Quaternionf
import org.joml.Vector3f
class GameObject<T : Application<T>>(val model: Model, vararg val behaviors: Behavior<T>) {
val position: Vector3f = Vector3f()
val scale: Vector3f = Vector3f(1f)
val rotation: Quaterni... | 0 | Kotlin | 0 | 1 | 9ad1434357e75c10e6f94ce0ed9f2c9f1ab5b745 | 343 | lwjgl-engine-kotlin | MIT License |
src/main/kotlin/io/api/bloxy/util/KlaxonConverters.kt | XMaxZone | 170,307,546 | true | {"Kotlin": 241425} | package io.api.bloxy.util
import com.beust.klaxon.Converter
import com.beust.klaxon.JsonValue
import io.api.bloxy.model.dto.dex.Args
/**
* Klaxon JSON parser extensions
*
* @author GoodforGod
* @since 22.11.2018
*/
//@Target(AnnotationTarget.FIELD)
//internal annotation class KlaxonBigDecimal
@Target(Annotatio... | 0 | Kotlin | 0 | 0 | 522df5a60a3a11a806656df0c7a6799a776c6eca | 1,107 | bloxy-api | MIT License |
LiveDataDemo/app/src/main/java/guandong/com/livedatademo/adapter/ItemAdapter.kt | chenguandong | 126,266,901 | false | null | package guandong.com.livedatademo.adapter
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import guandong.com.livedatademo.R
/**
* @author guandongchen
* @date 2018/3/22
*/
class ItemAdapter : BaseQuickAdapter<String, BaseViewHolder> {
constructor(lay... | 0 | Kotlin | 1 | 0 | 14562ba0fb37e3bdada4481952d041d86f60829c | 618 | LiveDataDemo | MIT License |
app/src/main/java/com/batdemir/template/data/local/datasource/StackOverFlowLocalDataSource.kt | batdemir | 332,173,381 | false | null | package com.batdemir.template.data.local.datasource
import androidx.lifecycle.LiveData
import androidx.paging.PagingSource
import com.batdemir.template.data.entities.db.StackOverFlowUser
import com.batdemir.template.data.local.base.BaseDataSource
import com.batdemir.template.data.local.dao.StackOverFlowDao
import java... | 0 | Kotlin | 1 | 4 | ec88f6cdcab230886923f67c4f921aa03b591019 | 1,096 | kotlin.template.project | Apache License 2.0 |
presentation/src/main/java/com/glowka/rafal/pokemon/presentation/binding/fields/ProgressFieldBindingModel.kt | RafalGlowka | 497,595,957 | false | null | package com.glowka.rafal.pokemon.presentation.binding.fields
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.glowka.rafal.pokemon.domain.utils.EMPTY
/**
* Created by Rafal on 17.04.2021.
*/
interface ProgressFieldBindingModel {
val label: LiveData<String>
val progress: L... | 0 | Kotlin | 0 | 0 | 1c41d9a66d584eaaf946c25f2fb11638fddd0a82 | 707 | pokemon | Apache License 2.0 |
app/src/main/java/com/therajanmaurya/fallingwords/ui/main/MainFragment.kt | therajanmaurya | 272,349,114 | false | null | package com.therajanmaurya.fallingwords.ui.main
import android.animation.ValueAnimator
import android.os.Bundle
import android.util.DisplayMetrics
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.LinearInterpolator
import androidx.fragment.app.Frag... | 0 | Kotlin | 0 | 1 | 86cde3522a5dd6625235e2053d5d1ec4c9c84df2 | 4,877 | Falling-Words | Apache License 2.0 |
app/src/main/java/com/akhbulatov/wordkeeper/core/di/CoreFactory.kt | akhbulatov | 65,332,258 | false | {"Kotlin": 96728} | package com.akhbulatov.wordkeeper.core.di
import android.content.SharedPreferences
import com.akhbulatov.wordkeeper.core.preferences.di.PreferencesFactory
class CoreFactory(
private val sharedPrefs: SharedPreferences
) {
val preferencesFactory: PreferencesFactory by lazy {
PreferencesFactory(
... | 0 | Kotlin | 0 | 2 | d4961bf7ed763c7fadebcaaf24d605e2ee32d378 | 369 | wordkeeper | Apache License 2.0 |
meistercharts-canvas/src/commonMain/kotlin/com/meistercharts/charts/FixedChartGestalt.kt | Neckar-IT | 599,079,962 | false | {"Kotlin": 5819931, "HTML": 87784, "JavaScript": 1378, "CSS": 1114} | /**
* Copyright 2023 Neckar IT GmbH, Mössingen, Germany
*
* 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 appli... | 3 | Kotlin | 3 | 5 | ed849503e845b9d603598e8d379f6525a7a92ee2 | 1,341 | meistercharts | Apache License 2.0 |
src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLowerBoundTxDetector.kt | drpcorg | 509,408,072 | false | {"Kotlin": 1449341, "Groovy": 585772, "Java": 148989, "JavaScript": 5522, "Shell": 646, "Makefile": 497, "Dockerfile": 103} | package io.emeraldpay.dshackle.upstream.ethereum
import io.emeraldpay.dshackle.Defaults
import io.emeraldpay.dshackle.data.BlockContainer
import io.emeraldpay.dshackle.upstream.ChainRequest
import io.emeraldpay.dshackle.upstream.Upstream
import io.emeraldpay.dshackle.upstream.lowerbound.LowerBoundData
import io.emeral... | 2 | Kotlin | 12 | 38 | 2800556ff1587ccc7f7dd0aca7a43833048f035a | 2,811 | dshackle | Apache License 2.0 |
src/test/kotlin/tech/dolch/plantarch/SequenceDiagramTest.kt | MrDolch | 412,704,741 | false | null | package tech.dolch.plantarch
import org.junit.jupiter.api.Test
import java.nio.file.Path
internal class SequenceDiagramTest {
@Test
fun toPlantuml() {
val testee = SequenceDiagram(
"Sequence Diagram of PlantArch",
"Shows the dependencies of the classes in package tech.dolch.pla... | 0 | Kotlin | 0 | 0 | 350d5b870b52ad4d84470cd68ef2c4f55c9c6795 | 724 | plantarch | Apache License 2.0 |
sample/app/src/main/kotlin/me/retty/reduxkt/sample/extend/Extensions.kt | RettyEng | 92,383,084 | false | null | package me.retty.reduxkt.sample.extend
import android.app.Activity
import android.view.View
/**
* Created by atsukofukui on 2017/08/25.
*/
inline fun <reified T : View> Activity.bindView(resId: Int,
noinline onClick: ((View) -> Unit)? = null): Lazy<T> =
lazy {... | 0 | Kotlin | 5 | 31 | aeaff8d0b064ff87da51a880c24e10ff638b31d7 | 587 | redux-kt | MIT License |
src/main/kotlin/icu/windea/pls/config/config/CwtInlineableConfig.kt | DragonKnightOfBreeze | 328,104,626 | false | {"Kotlin": 3217334, "Java": 164704, "Lex": 42942, "HTML": 24942, "Shell": 2741} | package icu.windea.pls.config.config
import icu.windea.pls.cwt.psi.*
interface CwtInlineableConfig<out T: CwtMemberElement>: CwtConfig<T> {
val name: String
val config: CwtMemberConfig<T>
} | 13 | Kotlin | 4 | 31 | 402162ca4e24216f7fe2f05b7a7299143846092f | 193 | Paradox-Language-Support | MIT License |
o11nplugin-contrail-generator/src/main/kotlin/net/juniper/contrail/vro/generator/model/ModelGenerator.kt | tungstenfabric | 237,744,206 | false | {"Kotlin": 495480, "Groovy": 208986, "FreeMarker": 32247, "JavaScript": 27521, "Makefile": 696} | /*
* Copyright (c) 2018 Juniper Networks, Inc. All rights reserved.
*/
package net.juniper.contrail.vro.generator.model
import net.juniper.contrail.vro.config.Config
import net.juniper.contrail.vro.config.ObjectClass
import net.juniper.contrail.vro.config.PropertyClass
import net.juniper.contrail.vro.config.div
imp... | 7 | Kotlin | 3 | 0 | a6b91e98a3e7dcbd93229d795f30fb9a18d79a99 | 2,420 | tf-vro-plugin | Apache License 2.0 |
app/src/main/java/com/hinterlong/kevin/swishticker/ui/adapters/GameItem.kt | kevinhinterlong | 173,180,120 | false | {"Kotlin": 85445} | package com.hinterlong.kevin.swishticker.ui.adapters
import android.graphics.Typeface
import android.view.View
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.Observer
import com.google.android.material.snackbar.BaseTransientBottomBar
import com.google.android.material.snackbar.Snackbar
import com.h... | 1 | Kotlin | 3 | 1 | 4a193ff7b5928e16cf4c504d052d42efe6328b76 | 6,079 | SwishTicker | Apache License 2.0 |
src/main/kotlin/com/github/hooll/redpacket/api/hook/HookAbstract.kt | hooll | 736,656,400 | false | {"Kotlin": 45183} | package com.github.hooll.redpacket.api.hook
import org.bukkit.Bukkit
abstract class HookAbstract {
open val name by lazy { getPluginName() }
val plugin: org.bukkit.plugin.Plugin? by lazy { Bukkit.getPluginManager().getPlugin(name) }
val isHooked by lazy {
plugin != null && plugin!!.isEnabled
... | 0 | Kotlin | 0 | 0 | 99dfa290f4ae5641d79fdb9eb306f6077a840fb8 | 620 | RedPacket | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/babylon/wallet/android/presentation/settings/troubleshooting/accountrecoveryscan/scan/AccountRecoveryScanViewModel.kt | radixdlt | 513,047,280 | false | {"Kotlin": 4396911, "HTML": 215350, "Java": 18502, "Ruby": 2757, "Shell": 1962} | package com.babylon.wallet.android.presentation.settings.accountsecurity.accountrecoveryscan.scan
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.viewModelScope
import com.babylon.wallet.android.data.repository.ResolveAccountsLedgerStateRepository
import com.babylon.wallet.android.domain.model.Acc... | 4 | Kotlin | 11 | 6 | eb666c1abddf5c47aafc03a9561edd89e21d57ff | 11,911 | babylon-wallet-android | Apache License 2.0 |
PermissionHelper/src/main/java/com/mathias8dev/permissionhelper/permission/MultiplePermissionHelperScopeImpl.kt | mathias8dev | 705,602,967 | false | null | package com.mathias8dev.permissionhelper.permission
import android.content.Context
import androidx.compose.runtime.Stable
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
@Stable
internal class MultiplePermissionHelperScopeImpl internal constructor(
permissions: Collection<Permission>,
contex... | 0 | null | 0 | 1 | 8dc0a18db6e0239fe06f76fb45e7a27e3816cc1f | 4,891 | PermissionHelper | Apache License 2.0 |
karibu-testing-v10/kt10-tests/src/main/kotlin/com/github/mvysny/kaributesting/v10/ReviewsList.kt | mmneri | 162,411,093 | true | {"Kotlin": 241174, "Java": 42742, "HTML": 18862} | package com.github.mvysny.kaributesting.v10
import com.vaadin.flow.component.Tag
import com.vaadin.flow.component.button.Button
import com.vaadin.flow.component.dependency.HtmlImport
import com.vaadin.flow.component.html.H1
import com.vaadin.flow.component.polymertemplate.Id
import com.vaadin.flow.component.polymertem... | 0 | Kotlin | 0 | 0 | b8cbbfc61b4a02b0b0a07c1469a4fda6e4741b0d | 969 | karibu-testing | Apache License 2.0 |
godot-kotlin/godot-library/src/nativeGen/kotlin/godot/CameraFeed.kt | utopia-rise | 238,721,773 | false | {"Kotlin": 655494, "Shell": 171} | // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY! ALL CHANGES TO IT WILL BE OVERWRITTEN ON EACH BUILD
package godot
import godot.CameraFeed
import godot.core.Transform2D
import godot.icalls._icall_Boolean
import godot.icalls._icall_Long
import godot.icalls._icall_String
import godot.icalls._icall_Transform2D
import ... | 17 | Kotlin | 17 | 286 | 8d51f614df62a97f16e800e6635ea39e7eb1fd62 | 3,417 | godot-kotlin-native | MIT License |
android/app/src/main/kotlin/com/noxasch/floating_search_bar_basic/MainActivity.kt | noxasch | 365,315,869 | false | {"Dart": 4015, "HTML": 1539, "Swift": 404, "Kotlin": 142, "Objective-C": 38} | package com.noxasch.floating_search_bar_basic
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | f7a562775737c0eb401b0e3f02c30149d74e43c4 | 142 | floating_search_bar_basic | Do What The F*ck You Want To Public License |
app/src/main/java/com/hotmail/or_dvir/arisquiz/retrofit/TriviaResponse.kt | or-dvir | 746,373,095 | false | {"Kotlin": 17680} | package com.hotmail.or_dvir.arisquiz.retrofit
sealed class TriviaResponse<T>(val responseCode: Int, val data: T? = null) {
class Success<T>(data: T) : TriviaResponse<T>(CODE_SUCCESS, data)
class NoResult<T> : TriviaResponse<T>(CODE_NO_RESULT)
class InvalidParameter<T> : TriviaResponse<T>(CODE_INVALID_PARAM... | 0 | Kotlin | 0 | 0 | 980028a064be71561348733f72e0ffb5a4c82f26 | 1,543 | ArisQuiz | Apache License 2.0 |
kotlin/src/src/main/java/com/techlabcamp/neuronet/presenterImpl/FinancialSalesPresenterImpl.kt | dimske-sys | 610,048,630 | false | null | package com.techlabcamp.neuronet.presenterImpl
import com.techlabcamp.neuronet.manager.net.ApiService
import com.techlabcamp.neuronet.manager.net.CustomCallback
import com.techlabcamp.neuronet.manager.net.RetryListener
import com.techlabcamp.neuronet.model.Data
import com.techlabcamp.neuronet.model.SalesRes
import com... | 0 | Kotlin | 0 | 0 | 0f4cc0534a3c77a8edfb0fa043fb2ed7e2707250 | 1,257 | neuronet | Apache License 2.0 |
networking/src/main/java/com/fabiel/casas/networking/http/GitHubApi.kt | fabiel-casas | 649,274,733 | false | null | package com.fabiel.casas.networking.http
import com.fabiel.casas.networking.http.response.SearchUserResponse
import com.fabiel.casas.networking.http.response.UserResponse
import com.fabiel.casas.networking.http.response.UserSearchResponse
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query... | 0 | Kotlin | 0 | 0 | bd6e93db7d2d5c121abba052e26dfa27a2d057ae | 691 | GithubSearch | Apache License 2.0 |
HW6/app/src/main/java/com/keddad/hw6/MainActivity.kt | keddad | 538,222,943 | false | {"Kotlin": 33430} | package com.keddad.hw6
import android.animation.ObjectAnimator
import android.graphics.Color
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.animation.AnimationUtils
import android.widget.Button
import android.widget.TextView
import kotlin.random.Random
class MainActivity ... | 0 | Kotlin | 0 | 0 | 72cf2da8f07ce51407a6067650835f49c729f31c | 1,336 | hse-android-22-23 | MIT License |
app/src/main/java/com/seank/kotlinflowplayground/domain/Exceptions.kt | seanKenkeremath | 262,187,264 | false | null | package com.seank.kotlinflowplayground.domain
class GenericException(override val message: String? = "Generic Error"): Exception()
class NetworkException(): Exception("Network Error") | 0 | Kotlin | 1 | 0 | bb42f106a395a1024aa7289c1e7154199a609f57 | 185 | AndroidMvvmExample | Apache License 2.0 |
app/src/main/java/net/onamap/android/util/AssetUtils.kt | handstandtech | 80,885,303 | false | null | package net.onamap.android.util
import android.content.Context
import java.io.BufferedReader
import java.io.IOException
import java.io.InputStream
import java.io.InputStreamReader
object AssetUtils {
fun doit(context: Context, filename: String?): String? {
var str: String? = null
try {
... | 0 | Kotlin | 0 | 0 | 02deb6886b623d5b8375fc59f1fd3935d1c21f7a | 804 | onamap-android | Apache License 2.0 |
src/main/kotlin/org/cloud_assess/dto/response/QuantityDto.kt | kleis-technology | 693,726,341 | false | {"Kotlin": 30470, "Dockerfile": 807, "Shell": 70} | package org.cloud_assess.dto.response
import com.fasterxml.jackson.annotation.JsonProperty
data class QuantityDto(
@get:JsonProperty("amount") val amount: Double,
@get:JsonProperty("unit") val unit: String,
)
| 0 | Kotlin | 2 | 8 | 5f0461a518b6d3eee93cd7a89174034995e69104 | 219 | cloud-assess | Apache License 2.0 |
app/src/main/java/com/luuu/seven/adapter/ComicIndexAdapter.kt | bighanber | 117,523,975 | false | null | package com.luuu.seven.adapter
import android.view.View
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.luuu.seven.R
import com.luuu.seven.bean.Ind... | 0 | Kotlin | 2 | 2 | dcd634473bc4e5594ee05f499366aca49015f50b | 2,002 | Seven | MIT License |
ktstrings/src/main/kotlin/com/kotlinground/strings/maximumtime/maximumTime.kt | BrianLusina | 113,182,832 | false | null | package com.kotlinground.strings.maximumtime
/**
* Finds the maximum time from a given string input of the format hh:mm
* @param time [String] time string of format hh:mm with some digits set as ?
* @return [String] maximum possible time
*/
fun maximumTime(time: String): String {
val hoursAndMinutes = time.toC... | 0 | Kotlin | 1 | 2 | abf4ff467a7ffe8bdac4ac5a846c56a6e797be44 | 772 | KotlinGround | MIT License |
app/src/main/java/dev/jylha/station/ui/common/SearchBar.kt | jylha | 292,642,089 | false | {"Kotlin": 382924} | package dev.jylha.station.ui.common
import android.content.res.Configuration
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.... | 0 | Kotlin | 0 | 1 | f42e247334db737428ed3aa94bde8afe66caa98e | 5,001 | station | Apache License 2.0 |
src/main/kotlin/io/mustelidae/smallclawedotter/api/domain/topic/api/TopicController.kt | otter-world | 415,599,312 | false | null | package io.mustelidae.smallclawedotter.api.domain.topic.api
import io.mustelidae.smallclawedotter.api.common.ProductCode
import io.mustelidae.smallclawedotter.api.common.Replies
import io.mustelidae.smallclawedotter.api.common.Reply
import io.mustelidae.smallclawedotter.api.common.toReplies
import io.mustelidae.smallc... | 3 | Kotlin | 0 | 0 | 9af7a8e637f96de8fa5a5d1b5a732525cea37ae7 | 3,214 | small-clawed-otter | MIT License |
guide/computed/main/lodash/Lodash.kt | nosix | 98,655,395 | false | null | @file:JsNonModule
@file:JsModule("lodash")
package lodash
external fun debounce(func: () -> Unit, wait: Int? = definedExternally, options: Any? = definedExternally): Function<Any>
external fun capitalize(string: String): String | 1 | Kotlin | 19 | 186 | 364c70597bb2fececb9011e7a4d4a53eefa2bc86 | 229 | vue-kotlin | Apache License 2.0 |
NativeMobileClient/app/src/main/java/dev/fstudio/nativemobileclient/di/NetworkModule.kt | Kamillaova | 463,396,605 | false | {"Kotlin": 78372} | package dev.fstudio.nativemobileclient.di
import android.content.Context
import com.jakewharton.retrofit2.converter.kotlinx.serialization.asConverterFactory
import dev.fstudio.nativemobileclient.api.MCWorldApi
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.json.Json
import okhtt... | 0 | Kotlin | 0 | 1 | a935ae2b1831949a347c954c70c3df6628d3dde5 | 1,536 | Ellison | MIT License |
android/src/oldarch/QuickActionsSpec.kt | sriharsha-y | 845,394,919 | false | {"Kotlin": 14621, "Objective-C++": 9135, "TypeScript": 4277, "Objective-C": 3404, "Ruby": 3274, "JavaScript": 1613, "C": 103, "Swift": 64} | package com.quickactions
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
import com.facebook.react.bridge.Promise
abstract class QuickActionsSpec internal constructor(context: ReactApplicationContext) :
ReactContextBaseJavaModule(context) {
}
| 0 | Kotlin | 0 | 0 | 435530495748566ab29c8ebe6b0010b903820449 | 318 | react-native-quick-actions | MIT License |
app/src/main/java/com/arnyminerz/paraulogic/utils/JsonUtils.kt | Paraulogic | 467,264,620 | false | null | package com.arnyminerz.paraulogic.utils
import org.json.JSONArray
import org.json.JSONObject
fun String.toJsonArray(): JSONArray = JSONArray(this)
fun <T> JSONArray.mapJsonObject(constructor: (json: JSONObject) -> T): List<T> =
arrayListOf<T>().apply {
for (i in 0 until length())
add(construc... | 3 | Kotlin | 0 | 1 | 51def1a95decd2f0b3ed6526c63fb87edeb760a1 | 894 | Android | Apache License 2.0 |
navansatt/src/main/kotlin/no/nav/amt/tiltak/navansatt/NavAnsattServiceImpl.kt | navikt | 393,356,849 | false | {"Kotlin": 732743, "PLpgSQL": 635, "Dockerfile": 95} | package no.nav.amt.tiltak.navansatt
import no.nav.amt.tiltak.clients.amt_person.AmtPersonClient
import no.nav.amt.tiltak.core.domain.nav_ansatt.NavAnsatt
import no.nav.amt.tiltak.core.port.NavAnsattService
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Component
import java.util.UUID
@Component
... | 1 | Kotlin | 3 | 4 | 910cc008575835291173e94dbdfb555e5cd989e0 | 1,633 | amt-tiltak | MIT License |
cameraK/src/commonMain/kotlin/com/kashif/cameraK/CameraController.kt | Kashif-E | 857,451,193 | false | {"Kotlin": 38425, "Swift": 522} | package com.kashif.cameraK
expect class CameraController() {
suspend fun takePicture(imageFormat: ImageFormat) :ImageCaptureResult
fun savePicture(fileName: String, fileData: ByteArray, directory: Directory)
fun toggleFlashMode()
fun toggleCameraLens()
fun getFlashMode(): FlashMode
fun getCamer... | 0 | Kotlin | 2 | 15 | 2f405b65d1042b0faa947468bebf36171f5f7e09 | 1,044 | CameraK | MIT License |
components/membership/membership-group-read-impl/src/test/kotlin/net/corda/membership/impl/read/reader/MembershipGroupReaderImplTest.kt | corda | 346,070,752 | false | null | package net.corda.membership.impl.read.reader
import net.corda.membership.impl.read.TestProperties
import net.corda.membership.impl.read.TestProperties.Companion.GROUP_ID_1
import net.corda.membership.impl.read.cache.MemberListCache
import net.corda.membership.impl.read.cache.MembershipGroupReadCache
import net.corda.... | 82 | Kotlin | 7 | 24 | 17f5d2e5585a8ac56e559d1c099eaee414e6ec5a | 8,944 | corda-runtime-os | Apache License 2.0 |
sample/src/androidTest/kotlin/dev/olshevski/navigation/reimagined/sample/PassValuesScreenTest.kt | olshevski | 455,126,442 | false | {"Kotlin": 359651, "Shell": 242} | package dev.olshevski.navigation.reimagined.sample
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.performClick
import dev.olshevski.navigation.testutils.getString
import org.junit.Before
import org.junit.Rule
import org.junit.Test
priva... | 5 | Kotlin | 17 | 507 | 665ddfce244666e2a6679b9ca1a5363b49a623b7 | 4,091 | compose-navigation-reimagined | MIT License |
daemon/src/main/kotlin/dev/krud/boost/daemon/actuator/model/ScheduledTasksActuatorResponse.kt | krud-dev | 576,882,508 | false | null | package dev.krud.boost.daemon.actuator.model
import dev.krud.boost.daemon.utils.TypeDefaults
data class ScheduledTasksActuatorResponse(
val cron: List<Cron> = emptyList(),
val fixedDelay: List<FixedDelayOrRate> = emptyList(),
val fixedRate: List<FixedDelayOrRate> = emptyList(),
val custom: List<Custom... | 41 | TypeScript | 6 | 251 | 1f3db028ac7d60faa6c30daabbb41482e814d23f | 856 | ostara | Apache License 2.0 |
library/verification-sms/src/main/java/com/sinch/verification/sms/verification/SmsVerificationData.kt | sinch | 353,915,754 | false | null | package com.sinch.verification.flashcall.verification
import com.sinch.verification.core.internal.VerificationMethodType
import com.sinch.verification.core.verification.model.VerificationData
import com.sinch.verification.core.verification.model.VerificationSourceType
import com.sinch.verification.core.verification.mo... | 0 | Kotlin | 1 | 0 | 9ff7e4b0311a0a8609dc5faac91d0e78b4e9afff | 1,173 | verification-android-sdk | Apache License 2.0 |
src/commonMain/kotlin/com/twingineer/ktemplar/Json.kt | TwingineerHQ | 835,118,772 | false | {"Kotlin": 12716} | package com.twingineer.ktemplar
import kotlinx.serialization.json.JsonPrimitive
public val TemplateScope.json: InterpolatingAppender
get() = JsonAppender((this as TemplateScopeBase).out)
internal class JsonAppender(out: Appendable) : InterpolatingAppender(out) {
override fun Appendable.appendParameter(param... | 0 | Kotlin | 0 | 0 | 79829aa92841eb1ffe5eaf9fc06a98d6c00d0d8c | 557 | ktemplar | Apache License 2.0 |
src/commonMain/kotlin/com/twingineer/ktemplar/Json.kt | TwingineerHQ | 835,118,772 | false | {"Kotlin": 12716} | package com.twingineer.ktemplar
import kotlinx.serialization.json.JsonPrimitive
public val TemplateScope.json: InterpolatingAppender
get() = JsonAppender((this as TemplateScopeBase).out)
internal class JsonAppender(out: Appendable) : InterpolatingAppender(out) {
override fun Appendable.appendParameter(param... | 0 | Kotlin | 0 | 0 | 79829aa92841eb1ffe5eaf9fc06a98d6c00d0d8c | 557 | ktemplar | Apache License 2.0 |
app/src/main/java/com/jst/retrofitwithcoroutine/ui/main/api/TranslateApiService.kt | ShuangtaoJia | 322,591,577 | false | null | package com.jst.retrofitwithcoroutine.ui.main.api
import com.jst.network.ApiResult
import com.jst.network.retrofit
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST
interface TranslateApiService {
@FormUrlEncoded
@POST("translate?doctype=json")
suspend fun transla... | 3 | Kotlin | 9 | 46 | 358fdbfe5f259f211819722337e752b71342b942 | 705 | RetrofitWithCoroutineDemo | Apache License 2.0 |
client/src/main/kotlin/com/lowes/auditor/client/usecase/EventLogUseCase.kt | lowes | 460,314,173 | false | {"Kotlin": 185721, "Java": 12313} | package com.lowes.auditor.client.usecase
import com.lowes.auditor.client.entities.domain.AuditorEventConfig
import com.lowes.auditor.client.entities.domain.EventSourceConfig
import com.lowes.auditor.client.entities.interfaces.infrastructure.frameworks.ObjectLogGenerator
import com.lowes.auditor.client.entities.util.or... | 6 | Kotlin | 8 | 12 | 9e995377e5dd8669c96a13d79a196737a41cef2b | 1,882 | auditor | Apache License 2.0 |
kotlin-plugin/src/main/kotlin/net/afanasev/sekret/kotlin/FieldInfo.kt | aafanasev | 188,990,870 | false | null | package net.afanasev.sekret.kotlin
data class FieldInfo(
val desc: String,
val needToHide: Boolean,
val isNullable: Boolean,
val wrapperClassName: String?,
)
| 4 | Kotlin | 5 | 91 | 7c7c9c41c0a7840f91a7bd581c52c3887abd625a | 175 | sekret | MIT License |
app/src/main/java/abdullah/elamien/bloodbank/eventbus/AuthenticationEvent.kt | mars-amn | 194,006,072 | false | null | package abdullah.elamien.bloodbank.eventbus
/**
* Created by AbdullahAtta on 6/24/2019.
*/
class AuthenticationEvent(val authenticationEventMessage: String)
| 0 | Kotlin | 3 | 14 | e165fe3ade9c04b4dba3f2b90e9b3ff457fb4b67 | 160 | BloodBank | MIT License |
core/remote/src/main/kotlin/com/alexeymerov/radiostations/core/remote/api/RadioApi.kt | AlexeyMerov | 636,705,016 | false | null | package com.alexeymerov.radiostations.core.remote.api
import com.alexeymerov.radiostations.core.remote.response.CategoryBody
import com.alexeymerov.radiostations.core.remote.response.MainBody
import com.alexeymerov.radiostations.core.remote.response.MediaBody
import retrofit2.Response
import retrofit2.http.GET
import ... | 0 | null | 0 | 4 | 850e4241b3023507d48a98ee84b6659698817e12 | 653 | RadioStations | MIT License |
src/main/java/at/xirado/bean/data/database/entity/DiscordOAuthSession.kt | Xirado | 327,963,193 | false | {"Java": 251459, "Kotlin": 113288} | /*
* Copyright 2024 Marcel Korzonek and contributors
*
* 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 applicab... | 1 | Java | 6 | 12 | faa17beb0ce8f6c5ee95e40506830be1a8786c80 | 1,467 | Bean | Apache License 2.0 |
presentation/src/main/java/dev/sudnik/basecleanandroid/presentation/State.kt | yaroslavsudnik | 197,771,160 | false | null | package dev.sudnik.basecleanandroid.presentation
sealed class State<out T> {
object Loading : State<Nothing>()
class Render<T>(val dataState: T) : State<T>()
sealed class DefaultError<T> : State<T>() {
class DefaultAuthError<T> : DefaultError<T>()
class DefaultNotFound<T> : DefaultError<T>(... | 1 | Kotlin | 1 | 0 | 48a7af8ae46f52cabd2f86921db1d52c638108d0 | 463 | base-clean-android | Apache License 2.0 |
app/src/main/java/com/mrtckr/livecoding2/ui/compose/musicplayer/widgets/player/SliderSeekBar.kt | Mrtckr008 | 747,623,658 | false | {"Kotlin": 364803} | package com.mrtckr.livecoding2.ui.compose.musicplayer.widgets.player
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.heig... | 0 | Kotlin | 1 | 13 | 8634bdbb3ba69aa2888e1214113b8fd827dfb08a | 2,455 | Android-Sample-Best-Practices | The Unlicense |
SharedCode/src/commonMain/kotlin/presenters/ApplicationPresenter.kt | louis-vs | 385,538,788 | true | {"Kotlin": 39215, "Swift": 14901} | package com.softwire.lner.trainboard.mobile.presenters
import com.softwire.lner.trainboard.mobile.AppDispatchersImpl
import com.softwire.lner.trainboard.mobile.contracts.ApplicationContract
import com.softwire.lner.trainboard.mobile.createAppTitle
import com.softwire.lner.trainboard.mobile.http.ApiClient
import com.so... | 0 | Kotlin | 0 | 0 | bd1b6faac78fb3afbd19c3f699c059d3c232eec3 | 4,891 | trainboard-kotlin | Apache License 2.0 |
model/src/main/kotlin/io/sparkled/model/playlist/PlaylistSummary.kt | jeffdbeats | 208,570,966 | true | {"Kotlin": 374254, "JavaScript": 194627, "CSS": 6973, "HTML": 1319} | package io.sparkled.model.playlist
class PlaylistSummary {
private var sequenceCount: Int? = null
private var durationSeconds: Int? = null
fun getSequenceCount(): Int? {
return sequenceCount
}
fun setSequenceCount(sequenceCount: Int): PlaylistSummary {
this.sequenceCount = sequen... | 0 | null | 0 | 1 | fe9d05789b338d17bbb46fad8cc1ba6f33b7096c | 1,234 | sparkled | MIT License |
vcs/git/src/test/kotlin/ru/ivk1800/vcs/git/test/RawDiffBuilder.kt | ivk1800 | 577,871,072 | false | {"Kotlin": 377020} | package ru.ivk1800.vcs.git.test
internal class RawDiffBuilder {
private var diff: String? = null
private var newFile: String? = null
private var deletedFile: String? = null
private var renameFrom: String? = null
private var renameTo: String? = null
private var similarityIndex: String? = null
... | 0 | Kotlin | 1 | 0 | c4721d7f90b4eaed9634d7855847cdd42a58be3d | 2,508 | diff-compose | MIT License |
app/src/main/java/com/stevechalker/shoppingapp/manager_specials/ManagerSpecialsAdapter.kt | SteveChalker | 281,261,702 | false | null | package com.stevechalker.shoppingapp.manager_specials
import android.graphics.Paint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.cardview.widget.CardView
import androidx.recyclerview.widget.Recyc... | 0 | Kotlin | 0 | 0 | 1ac1b17cc9e2daddf4265b61b932c0a393568864 | 2,474 | shoppingapp | Apache License 2.0 |
features/lesson/src/main/java/com/ribsky/lesson/model/BaseItem.kt | nexy791 | 607,748,138 | false | null | package com.ribsky.lesson.model
import com.ribsky.lesson.adapter.chat.factory.type.TypeFactory
interface BaseItem {
val id: Int
fun type(typeFactory: TypeFactory): Int
}
| 0 | Kotlin | 0 | 7 | d2e9f7c04635e1793bfe8f421b4bc5ef162556c0 | 181 | dymka | Apache License 2.0 |
src/main/kotlin/g0501_0600/s0507_perfect_number/Solution.kt | javadev | 190,711,550 | false | {"Kotlin": 4909193, "TypeScript": 50446, "Python": 3646, "Shell": 994} | package g0501_0600.s0507_perfect_number
// #Easy #Math #2023_01_06_Time_172_ms_(81.82%)_Space_34.1_MB_(18.18%)
class Solution {
fun checkPerfectNumber(num: Int): Boolean {
var s = 1
for (sq in Math.sqrt(num.toDouble()).toInt() downTo 2) {
if (num % sq == 0) {
s += sq + ... | 0 | Kotlin | 20 | 43 | 62708bc4d70ca2bfb6942e4bbfb4c64641e598e8 | 397 | LeetCode-in-Kotlin | MIT License |
brouter-compile-common/src/main/java/com/bilibili/brouter/common/meta/ModuleMeta.kt | bilibili | 289,221,560 | false | null | package com.bilibili.brouter.common.meta
import com.bilibili.brouter.model.AttributeBean
import com.bilibili.brouter.model.StubModuleMeta
import com.bilibili.brouter.model.StubRoutes
import com.google.gson.annotations.SerializedName
data class ModuleMeta(
val moduleName: String,
val bootstrapMode: String,
... | 7 | Kotlin | 26 | 299 | 14e82c7f9967e773412f226c3c6e0b975bad4ca6 | 2,774 | BRouter | Apache License 2.0 |
crawler.lazada/src/main/kotlin/com/net/crawlers/lazada/LazadaDB.kt | dongqianwei | 139,382,680 | false | {"Kotlin": 28659} | package com.net.crawlers.lazada
import com.net.ktwebmagic.dbservice.WebMagicDBService
import org.jetbrains.exposed.sql.Column
import org.jetbrains.exposed.sql.Table
import org.jetbrains.exposed.sql.deleteAll
import org.jetbrains.exposed.sql.insert
import org.jetbrains.exposed.sql.transactions.transaction
object Produ... | 0 | Kotlin | 1 | 0 | aef3bf01cf4e6f31cb6c0c367e8217a0fd389f94 | 1,670 | webmagicKt | Apache License 2.0 |
app/src/main/java/droiddevelopers254/devfestnairobi/datastates/FiltersState.kt | android254 | 149,591,294 | false | {"Gradle": 3, "Java Properties": 2, "Markdown": 839, "Shell": 4, "Text": 457, "Ignore List": 83, "Batchfile": 1, "JSON": 748, "Proguard": 1, "Java": 3, "XML": 89, "Kotlin": 86, "HTML": 53, "JavaScript": 5078, "JSON with Comments": 16, "YAML": 86, "Makefile": 21, "Handlebars": 1, "CoffeeScript": 10, "Option List": 4, "E... | package droiddevelopers254.devfestnairobi.datastates
import droiddevelopers254.devfestnairobi.models.FiltersModel
data class FiltersState (
val filtersModelList: List<FiltersModel>?,
val databaseError : String?
)
| 5 | Kotlin | 21 | 15 | 739b1d08c5f297226b6ca469410d427750574506 | 231 | DevFest18 | MIT License |
app/src/main/java/org/apache/fineract/data/services/TellersService.kt | apache | 122,860,146 | false | null | package org.apache.fineract.data.services
import io.reactivex.Observable
import org.apache.fineract.data.models.teller.Teller
import org.apache.fineract.data.remote.EndPoints
import retrofit2.http.GET
import retrofit2.http.Path
interface TellersService {
@GET(EndPoints.API_TELLER_PATH + "/offices/{officeIdentifi... | 105 | Java | 155 | 36 | 7d1039a4d29a30a40d1b800a55d7c5e81350d6e7 | 677 | fineract-cn-mobile | Apache License 2.0 |
analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/LLFirResolvePhaseChecker.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.low.level.api.fir.util
import org.jetbrains.kotlin.fir.declarations.Fir... | 166 | null | 5771 | 46,772 | bef0946ab7e5acd5b24b971eca532c43c8eba750 | 784 | kotlin | Apache License 2.0 |
plugins/gradle/testSources/org/jetbrains/plugins/gradle/testFramework/util/buildscript/TestKotlinDslGradleBuildScriptBuilder.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.plugins.gradle.testFramework.util.buildscript
import com.intellij.testFramework.UsefulTestCase
import org.gradle.util.GradleVersion
import org.jetbrains.annotations.ApiStatus
i... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 1,342 | intellij-community | Apache License 2.0 |
SingleModuleApp/app/src/main/java/com/github/yamamotoj/singlemoduleapp/package74/Foo07476.kt | yamamotoj | 163,851,411 | false | null | package com.github.yamamotoj.singlemoduleapp.package74
class Foo07476 {
fun method0() {
Foo07475().method5()
}
fun method1() {
method0()
}
fun method2() {
method1()
}
fun method3() {
method2()
}
fun method4() {
method3()
}
fun met... | 0 | Kotlin | 0 | 9 | 2a771697dfebca9201f6df5ef8441578b5102641 | 355 | android_multi_module_experiment | Apache License 2.0 |
sample/src/main/java/indi/yume/tools/yroute/sample/normal/SingleStackActivity.kt | Yumenokanata | 192,206,400 | false | {"Gradle": 6, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Text": 2, "Ignore List": 3, "Batchfile": 1, "Proguard": 2, "Java": 2, "XML": 35, "Kotlin": 33, "INI": 1} | package indi.yume.tools.yroute.sample.normal
import android.os.Bundle
import indi.yume.tools.yroute.*
import indi.yume.tools.yroute.datatype.CoreEngine
import indi.yume.tools.yroute.datatype.start
import indi.yume.tools.yroute.sample.App
import indi.yume.tools.yroute.sample.R
import kotlinx.coroutines.MainScope
import... | 0 | Kotlin | 1 | 17 | e286dc339c457ba82231bb0774ec6a4e18248fa3 | 1,233 | YRoute | Apache License 2.0 |
app/src/main/java/com/example/david/kotlinchuck/findJoke/ui/SearchFragment.kt | Davids89 | 95,695,595 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "Java": 2, "XML": 11, "Kotlin": 41} | package com.example.david.kotlinchuck.findJoke.ui
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.ImageButton
import com.example.david.kotlinchuck.MyApp
import ... | 0 | Kotlin | 1 | 1 | c0b073b922bd90058f81a5756058c9b18121a0b9 | 2,502 | KotlinChuck | Apache License 2.0 |
app/src/main/java/by/vshkl/android/pik/ui/imagepager/ImagePagerPresenter.kt | vshkl | 92,876,985 | false | null | package by.vshkl.android.pik.ui.imagepager
import android.content.Context
import by.vshkl.android.pik.BasePresenter
import by.vshkl.android.pik.local.Storage
import by.vshkl.android.pik.util.RxUtils
import com.arellomobile.mvp.InjectViewState
import java.lang.ref.WeakReference
@InjectViewState
class ImagePagerPresent... | 1 | Kotlin | 1 | 1 | cec5710b67301cffb6a450440ab0aef785f88ea5 | 759 | Pik | Apache License 2.0 |
partiql-lang/src/main/kotlin/org/partiql/lang/eval/physical/VariableBinding.kt | partiql | 186,474,394 | false | {"Kotlin": 6791850, "HTML": 103438, "ANTLR": 34531, "Inno Setup": 3838, "Java": 1949, "Shell": 748} | package org.partiql.lang.eval.physical
import org.partiql.lang.eval.physical.operators.ValueExpression
/**
* A compiled variable binding.
*
* @property setFunc The function to be invoked at evaluation-time to set the value of the variable.
* @property expr The function to be invoked at evaluation-time to compute ... | 306 | Kotlin | 60 | 539 | 306ec7c1dc143660d6d861cc9626cbc3ac444ec6 | 547 | partiql-lang-kotlin | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/intentions/convertToRawStringTemplate/spaceBeforeBreak.kt | ingokegel | 72,937,917 | false | null | val spaceBeforeLineBreak = "Hello, " <caret>+
" \nworld!" | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 65 | intellij-community | Apache License 2.0 |
android/src/main/kotlin/cn/bingoogolapple/idea/android/action/common/SettingsDeveloper.kt | bingoogolapple | 184,895,520 | false | null | package cn.bingoogolapple.idea.android.action.common
import cn.bingoogolapple.idea.android.util.AdbUtil
class SettingsDeveloper : BaseAction("打开开发者页面") {
override fun onChildThread() {
AdbUtil.startActivityWithAction("android.settings.APPLICATION_DEVELOPMENT_SETTINGS")
}
}
| 1 | Kotlin | 1 | 3 | b1e717ec0230f78418b9d7ce7a7eb13d79d16566 | 292 | plugin-idea | Apache License 2.0 |
notepad/src/main/java/gapp/season/notepad/NoteHelper.kt | guangGG | 250,942,837 | false | null | package gapp.season.notepad
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Build
import android.util.Base64
import gapp.season.encryptlib.code.HexUtil
import gapp.season.encryptlib.symmetric.AESUtil
import gapp.season.notepad.db.NoteDbHelper
import gapp.seaso... | 0 | Kotlin | 0 | 2 | d5d9f24c2d5325f55c81c84a0b804a21ddb1f457 | 3,803 | RoamCatX | Apache License 2.0 |
rxaa/src/main/kotlin/me/ilich/rxandroidaudio/LowpassFilter.kt | dsokolov | 75,215,794 | false | null | package me.ilich.rxandroidaudio
import android.media.AudioFormat
/**
* Base on http://www.it1me.com/it-answers?id=34312682&ttl=Reimplement+vDSP_deq22+for+Biquad+IIR+Filter+by+hand
*/
sealed class LowpassFilter<T>(cornerFrequency: Float, Q: Float, audioOptions: AudioOptions, bufferSize: Int) {
companion object... | 0 | Kotlin | 0 | 2 | 363ed477ee33ceb1852bfc1ba76d415cd4a175b5 | 5,362 | RxAndroidAudio | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.