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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/dev/gmarques/bancodedados/data/room/entidades/relacoes/InstanciaComPropriedades.kt | GilianMarques | 598,830,131 | false | null | package dev.gmarques.bancodedados.data.room.entidades.relacoes
import androidx.room.Embedded
import androidx.room.Relation
import dev.gmarques.bancodedados.data.room.entidades.PropriedadeEntidade
import dev.gmarques.bancodedados.data.room.entidades.InstanciaEntidade
/**
* Data class para recuperar do banco de dados ... | 0 | Kotlin | 0 | 0 | 411e3a70650b78811c510723aa3b79efdd3c938a | 611 | BancoDeDados | MIT License |
shepherd-web/src/test/kotlin/ui/LoginRouteTest.kt | mvysny | 644,365,109 | false | {"Kotlin": 181865, "Java": 784, "HTML": 497, "TypeScript": 275, "CSS": 85} | package com.github.mvysny.shepherd.web.ui
import com.github.mvysny.kaributesting.v10._expectOne
import com.github.mvysny.kaributesting.v10._get
import com.github.mvysny.kaributesting.v10._login
import com.github.mvysny.kaributools.navigateTo
import com.github.mvysny.shepherd.web.AbstractAppTest
import com.vaadin.flow.... | 5 | Kotlin | 1 | 1 | 04cd05a974e8b0a57ffa53eeec7dbdf24ca61a73 | 905 | shepherd-java-client | Apache License 2.0 |
resources-generator/src/main/kotlin/dev/icerock/gradle/generator/android/AndroidAssetsGenerator.kt | krottv | 393,746,734 | true | {"Kotlin": 198697} | /*
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.gradle.generator.android
import com.squareup.kotlinpoet.CodeBlock
import com.squareup.kotlinpoet.KModifier
import dev.icerock.gradle.generator.AssetsGenerator
import dev.icerock.gradle.generato... | 0 | Kotlin | 0 | 0 | cfa806e850e2b761a8ac06db54eae5237f114fd9 | 1,419 | moko-resources | Apache License 2.0 |
plugins/contracts/contracts-subplugins/src/org/jetbrains/kotlin/contracts/contextual/safebuilders/CallVerifier.kt | demiurg906 | 125,360,148 | true | {"Kotlin": 31706399, "Java": 7644320, "JavaScript": 152543, "HTML": 68656, "Lex": 18275, "IDL": 10060, "ANTLR": 9803, "Shell": 6769, "Groovy": 5466, "CSS": 4679, "Batchfile": 4437} | /*
* Copyright 2010-2018 JetBrains s.r.o. 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.contracts.contextual.safebuilders
import org.jetbrains.kotlin.contracts.contextual.cfg.ContextContracts
import org.jetbrains.k... | 0 | Kotlin | 0 | 0 | 9731c7eab974cd9dfab9dc48c71bc5988f3eb97c | 2,091 | kotlin | Apache License 2.0 |
src/main/kotlin/no/nav/familie/ba/sak/kjerne/tidslinje/komposisjon/TidslinjeSomKomprimerer.kt | navikt | 224,639,942 | false | {"Kotlin": 6310108, "Gherkin": 535764, "PLpgSQL": 4478, "Shell": 1628, "Dockerfile": 196} | package no.nav.familie.ba.sak.kjerne.tidslinje.komposisjon
import no.nav.familie.ba.sak.kjerne.tidslinje.Tidslinje
import no.nav.familie.ba.sak.kjerne.tidslinje.tidspunkt.Tidsenhet
import no.nav.familie.ba.sak.kjerne.tidslinje.tidsrom
/**
* Extension-funksjon som slår sammen påfølgende perioder der innholdet er likt... | 8 | Kotlin | 1 | 9 | bd5a056879c1f09d01e9b7fd76ffcf4a2a407379 | 563 | familie-ba-sak | MIT License |
src/main/kotlin/org/cdb/homunculus/controller/AlertController.kt | CodeDrillBrigade | 714,769,385 | false | {"Kotlin": 190419, "Dockerfile": 336} | package org.cdb.homunculus.controller
import io.ktor.server.application.call
import io.ktor.server.request.receive
import io.ktor.server.response.respond
import io.ktor.server.routing.Routing
import io.ktor.server.routing.route
import kotlinx.coroutines.flow.toList
import org.cdb.homunculus.logic.AlertLogic
import org... | 0 | Kotlin | 0 | 0 | 9830788175ad4ecf8e0a8d8a08b8c1f1c075f4cf | 3,009 | Homunculus | MIT License |
shop/src/main/java/com/tezro/api/shop/client/data/requests/SendMessageRequestBody.kt | tezro-official | 376,328,822 | false | null | package com.tezro.api.shop.client.data.requests
import com.google.gson.annotations.SerializedName
import com.tezro.api.shop.client.data.common.MessageEntityBody
internal data class SendMessageRequestBody(
@SerializedName("message") val message: String,
@SerializedName("entities") val entities: List<MessageEnt... | 0 | Kotlin | 0 | 4 | 3952247894d8aca9097d69861b0482fff10be9b1 | 331 | open-api | Apache License 2.0 |
src/main/kotlin/jp/ac/osaka_u/sdl/nil/usecase/preprocess/kotlin/KotlinTransformer.kt | kusumotolab | 295,970,504 | false | null | package jp.ac.osaka_u.sdl.nil.usecase.preprocess.kotlin
import jp.ac.osaka_u.sdl.nil.NILConfig
import jp.ac.osaka_u.sdl.nil.parser.kotlin.KotlinLexer
import jp.ac.osaka_u.sdl.nil.parser.kotlin.KotlinParser
import jp.ac.osaka_u.sdl.nil.parser.kotlin.KotlinParserBaseListener
import jp.ac.osaka_u.sdl.nil.usecase.preproce... | 0 | null | 3 | 13 | d43a91e9a5ebef9d20c900046c9d6aa2b3b03b95 | 1,261 | NIL | MIT License |
Test/app/src/main/java/com/newrelic/coretest/MainActivity.kt | newrelic | 149,266,412 | false | {"Gradle": 9, "Markdown": 2, "Java Properties": 5, "YAML": 1, "Shell": 2, "Text": 1, "Ignore List": 9, "Batchfile": 2, "INI": 3, "Proguard": 5, "Java": 23, "XML": 37, "Kotlin": 12} | package com.newrelic.coretest
import android.os.Bundle
import android.util.Log
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.newrelic.coretest.tests.*
class MainActivity : AppCompatActivity() {
lateinit var textView : TextView
override fun onCreate(savedInstanceSta... | 0 | Java | 10 | 5 | 5b73a5f05bccb359195981aa17941b02e081ed3e | 1,229 | video-agent-android | Apache License 2.0 |
src/graphics/renderers/SquareRenderer.kt | abocquet | 117,430,584 | false | null | package graphics.renderers
import graphics.DrawRequest
import models.AbstractObject
open class SquareRenderer : AbstractRenderer() {
override fun draw(obj: AbstractObject, r: DrawRequest, offset: Int, delta_t: Double) {
r.rect(obj.position.x.toInt() - offset, obj.position.y.toInt(), obj.dimension.width,... | 1 | null | 1 | 1 | 080598a5420a5cfaed76a8e9fb6e882ab79a6307 | 352 | autoplay | The Unlicense |
j2k/tests/testData/fileOrElement/nullability/MethodReturnsNullInAnonymousClass.kt | zarechenskiy | 27,313,453 | true | {"Markdown": 21, "XML": 504, "Ant Build System": 33, "Ignore List": 8, "Kotlin": 14560, "Java": 4036, "Protocol Buffer": 2, "Roff": 18, "Roff Manpage": 4, "Text": 3020, "JAR Manifest": 1, "INI": 6, "HTML": 102, "Groovy": 7, "Gradle": 62, "Maven POM": 39, "Java Properties": 10, "CSS": 10, "JavaScript": 53, "JFlex": 3, "... | // ERROR: Return type of 'get' is not a subtype of the return type of overridden member public abstract fun get(): kotlin.String defined in Getter
trait Getter {
public fun get(): String
}
class C {
fun foo(b: Boolean): String {
val getter = object : Getter {
override fun get(): String? {
... | 0 | Java | 0 | 0 | cb9c28e73fc3f88d8e08ec7661ac169434c8311f | 396 | kotlin | Apache License 2.0 |
src/main/kotlin/com/firsttimeinforever/intellij/pdf/viewer/ui/editor/PdfFileEditor.kt | NikolaiSviridov | 292,094,300 | true | {"Kotlin": 99005, "TypeScript": 29859, "Less": 1350, "HTML": 301} | package com.firsttimeinforever.intellij.pdf.viewer.ui.editor
import com.firsttimeinforever.intellij.pdf.viewer.ui.editor.panel.PdfEditorPanelProvider
import com.firsttimeinforever.intellij.pdf.viewer.ui.editor.panel.PdfFileEditorPanel
import com.intellij.openapi.fileEditor.FileEditor
import com.intellij.openapi.fileEd... | 0 | Kotlin | 0 | 0 | 7b0959e038a781fc5e98db60e6ccb6373f740709 | 2,852 | intellij-pdf-viewer | MIT License |
oauth/src/main/kotlin/io/solarconnect/security/oauth/auth/OAuthAuthenticationManager.kt | solarconnect-io | 108,113,733 | false | {"Gradle": 6, "Markdown": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Java": 5, "Kotlin": 52, "Groovy": 2} | package io.solarconnect.security.oauth.auth
import io.solarconnect.security.core.auth.FindUserAuthorityService
import org.springframework.security.authentication.AuthenticationManager
import org.springframework.security.core.Authentication
import org.springframework.security.core.GrantedAuthority
/**
* @author chaee... | 1 | null | 1 | 1 | 94e4d8e907bbc607c1bd7c9d12d352b4729b5ef6 | 1,111 | spring-security-business | MIT License |
src/main/kotlin/no/nav/klage/oppgave/api/controller/CleanupHjelpemidlerController.kt | navikt | 297,650,936 | false | null | package no.nav.klage.oppgave.api.controller
import no.nav.klage.oppgave.config.SecurityConfiguration
import no.nav.klage.oppgave.exceptions.MissingTilgangException
import no.nav.klage.oppgave.service.AdminService
import no.nav.klage.oppgave.service.CleanupHjelpemidlerService
import no.nav.klage.oppgave.service.Innlogg... | 3 | Kotlin | 1 | 1 | b06e34fbd2fef35a0d7fb2c44439cd018ffdad36 | 1,635 | kabal-api | MIT License |
compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractComposeLikeAbstractBytecodeTextTest.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | /*
* Copyright 2010-2024 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.test.runners.codegen
import org.jetbrains.kotlin.test.FirParser
import org.jetbr... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,189 | kotlin | Apache License 2.0 |
app/src/main/kotlin/com/yizhenwind/keeper/ui/account/create/CreateAccountFragment.kt | WangZhiYao | 658,053,133 | false | {"Kotlin": 91950} | package com.yizhenwind.keeper.ui.account.create
import androidx.fragment.app.viewModels
import com.yizhenwind.keeper.base.BaseFragment
import com.yizhenwind.keeper.common.ext.navigateUp
import com.yizhenwind.keeper.common.ext.showSnack
import com.yizhenwind.keeper.databinding.FragmentCreateAccountBinding
import dagger... | 2 | Kotlin | 0 | 2 | fcea6e7ce6ea9d99d08d28873d8187d1881c5ffe | 1,192 | Keeper | Apache License 2.0 |
ktlint/src/main/kotlin/com/github/shyiko/ktlint/internal/EditorConfig.kt | msdgwzhy6 | 112,148,154 | true | {"Kotlin": 214508, "Shell": 7817, "Python": 6083, "Batchfile": 3012, "Ruby": 830} | package com.github.shyiko.ktlint.internal
import java.io.ByteArrayInputStream
import java.nio.file.Files
import java.nio.file.Path
import java.nio.file.Paths
import java.util.Properties
class EditorConfig private constructor (
val parent: EditorConfig?,
val path: Path,
private val data: Map<String, String... | 0 | Kotlin | 0 | 1 | f3ca6b2a9f079dc6584c10b8ee7b2db76dce147e | 5,436 | ktlint | MIT License |
src/main/kotlin/com/masdiq/plugins/Session.kt | mas-diq | 651,884,974 | false | null | package com.masdiq.plugins
import com.masdiq.model.auth.UserSession
import io.ktor.server.application.*
import io.ktor.server.sessions.*
import io.ktor.util.*
import java.io.File
fun Application.configureSession() {
install(Sessions) {
val secretEncryptKey = hex("<KEY>")
val secretAuthKey = hex("<... | 0 | Kotlin | 1 | 0 | 57d49ef031600916b9fb28c474386d5981b90816 | 652 | akia-backend-ktor-v1 | Apache License 2.0 |
data/src/iosMain/kotlin/in/surajsau/jisho/data/expected/IosDriverFactory.kt | surajsau | 489,927,815 | false | null | package `in`.surajsau.jisho.data.expected
import com.squareup.sqldelight.db.SqlDriver
import com.squareup.sqldelight.drivers.native.NativeSqliteDriver
import `in`.surajsau.jisho.data.db.Jisho
import org.koin.core.scope.Scope
actual fun Scope.createDriver(databaseName: String): SqlDriver {
return NativeSqliteDrive... | 0 | Kotlin | 0 | 1 | 161bbb0225d5c57dbbc9467140c3a9dee38b0f64 | 352 | Multiplatform-Jisho | Apache License 2.0 |
src/main/kotlin/de/javaclub/playground/hexagonal/domain/DeletionStatistic.kt | cryptoki | 228,270,982 | false | null | package de.javaclub.playground.hexagonal.domain
data class DeletionStatistic(
val successful: List<DeletionProof>,
val failure: List<DeletionProof>,
val repaired: List<DeletionProof>) | 0 | Kotlin | 0 | 1 | 40af542fd2f0c74784f933ddc3b4473c11a9c857 | 208 | playground-hexagonal | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bulk/Messageadd.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.bulk
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.co... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 5,167 | VuesaxIcons | MIT License |
core/kotlin/src/main/java/com/pilinhas/android/core/kotlin/extensions/FlowExtensions.kt | pilinhasapp | 587,541,347 | false | null | package com.pilinhas.android.core.kotlin.extensions
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.flatMapConcat
import kotlinx.coroutines.flow.flowOf
import kotlinx.coroutines.flow.map
inline fun <T, R> Flow<T?>.mapIfNot... | 0 | Kotlin | 0 | 0 | 075edd796b36203b4950567aecd303e22a330b43 | 1,468 | Android | MIT License |
app/src/main/kotlin/com/igorwojda/showcase/base/delegate/FragmentViewBindingDelegate.kt | igorwojda | 158,460,787 | false | null | package com.igorwojda.showcase.base.delegate
import android.view.View
import androidx.fragment.app.Fragment
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.Observer
import androidx.viewbinding.ViewBinding
import k... | 36 | Kotlin | 762 | 5,527 | f7919d0a9a718433b85583b285b1b99e19df27f0 | 2,263 | android-showcase | MIT License |
app/src/main/java/org/cavedon/takehome/model/Starship.kt | fcavedon | 538,230,343 | false | null | package org.cavedon.takehome.model
data class Starship(val name: String, val model: String, val length: String)
| 0 | Kotlin | 0 | 0 | a972a1165df6789a383215ad7daafd7bb38d4444 | 114 | TakeHomeTemplate | Apache License 2.0 |
mpp/src/commonMain/kotlin/com.w10group.hertzdictionary/manager/FileReadManagerService.kt | qiaoyuang | 119,500,508 | false | null | package com.w10group.hertzdictionary.manager
/**
* Created by Administrator on 2018/7/8.
* 本地文件读取并显示服务
*/
internal expect suspend fun readFileToString(fileName: String): List<String>
typealias KV = Pair<String, String>
internal expect suspend fun readFileToKV( fileName: String): List<KV> | 0 | Kotlin | 2 | 10 | 46e494cd5a60e853bd49cc9b7589ac2b38ea2dab | 295 | HertzDictionary | Apache License 2.0 |
src/main/kotlin/me/liuli/jbs/utils/WordSelector.kt | UnlegitMC | 460,058,925 | false | {"Kotlin": 16092} | package me.liuli.jbs.utils
import me.liuli.jbs.JByteStopper
class WordSelector(val words: List<String> = JByteStopper.configuration.randomWords) {
var count = 0
fun select(): String {
val index = count++ % words.size
return words[index] + if(count / words.size > 1) count / words.size else ""
... | 0 | Kotlin | 2 | 5 | f649fc759e3e6a40e45ad34cafac3bc4f6267b6c | 327 | JByteStopper | MIT License |
app/src/main/java/dev/liinahamari/follower/receivers/LowBatteryReceiver.kt | liinahamari | 328,799,879 | false | null | /*
* Copyright 2020-2021 liinahamari
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,
* publish, ... | 24 | Kotlin | 0 | 1 | 8932c08fbb0aa99b086e927007f06777afeabe7c | 1,711 | Follower | MIT License |
android/app/src/main/java/com/github/apognu/push/MessagingService.kt | apognu | 437,890,775 | false | {"Kotlin": 23458, "Rust": 4451} | package com.github.apognu.push
import android.annotation.SuppressLint
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import androidx.core.app.NotificationCompat
import androidx.core.app.Notifica... | 0 | Kotlin | 0 | 0 | ed1a50fc5702ed6f52a3a6547b82ed02902310da | 3,100 | pouche | MIT License |
oppgave-endret/src/main/kotlin/no/nav/helse/sparkel/oppgaveendret/GosysOppgaveEndretProducer.kt | navikt | 341,650,641 | false | null | package no.nav.helse.sparkel.oppgaveendret
import java.time.LocalDateTime
import java.util.UUID
import net.logstash.logback.argument.StructuredArguments.keyValue
import no.nav.helse.rapids_rivers.JsonMessage
import no.nav.helse.rapids_rivers.RapidsConnection
import no.nav.helse.sparkel.oppgaveendret.oppgave.Oppgave
im... | 1 | Kotlin | 1 | 2 | 7a4704c6c15e0699ef49be291a483bd8965350ab | 1,658 | helse-sparkelapper | MIT License |
src/main/kotlin/io/kstud/gui/KGLScreen.kt | minecraft-simon | 724,721,438 | false | {"Kotlin": 14160, "GLSL": 734, "Java": 508} | package io.kstud.gui
import net.minecraft.client.MinecraftClient
import net.minecraft.client.gui.DrawContext
import net.minecraft.client.gui.screen.Screen
import net.minecraft.text.Text
import org.lwjgl.BufferUtils
import org.lwjgl.opengl.GL20.*
import org.lwjgl.opengl.GL30.glBindVertexArray
import org.lwjgl.opengl.GL... | 0 | Kotlin | 0 | 1 | 482dd603273191c324204dfbd7cafa9c87e219e7 | 6,616 | kgl-dev | Creative Commons Zero v1.0 Universal |
day_13/src/main/kotlin/io/github/zebalu/advent2020/BusReader.kt | zebalu | 317,448,231 | false | null | package io.github.zebalu.advent2020
object BusReader {
fun readLines(lines: List<String>): BusFinder {
val regex = Regex("(\\d+)")
val now = lines[0].toInt()
val buses = regex.findAll(lines[1]).map { it.groupValues[1] }.map { it.toInt() }.toList()
return BusFinder(now, buses)
}
fun readBusRequest(lines: L... | 0 | Kotlin | 0 | 1 | ca54c64a07755ba044440832ba4abaa7105cdd6e | 1,007 | advent2020 | Apache License 2.0 |
app/src/main/java/com/omongole/fred/yomovieapp/presentation/common/Imageshimmer.kt | EngFred | 724,071,728 | false | {"Kotlin": 244248} | package com.omongole.fred.yomovieapp.presentation.common
import androidx.compose.animation.core.FastOutSlowInEasing
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.reme... | 0 | Kotlin | 0 | 0 | 8a1a747c8edde86fe63595f318e157f3bd6de630 | 2,444 | Cinema-app | MIT License |
src/commonMain/kotlin/it/krzeminski/snakeyaml/engine/kmp/schema/JsonSchema.kt | krzema12 | 642,543,787 | false | {"Kotlin": 510818, "Java": 392097} | package it.krzeminski.snakeyaml.engine.kmp.schema
import it.krzeminski.snakeyaml.engine.kmp.resolver.JsonScalarResolver
import it.krzeminski.snakeyaml.engine.kmp.resolver.ScalarResolver
expect open class JsonSchema(
scalarResolver: ScalarResolver = JsonScalarResolver(),
) : Schema
| 10 | Kotlin | 0 | 16 | e3918f3f13f968204113fec508eb3df113fa2eff | 288 | snakeyaml-engine-kmp | Apache License 2.0 |
app/src/main/java/co/sirano/news/di/UseCaseModule.kt | siranoB | 721,450,145 | false | {"Kotlin": 65891} | package co.sirano.news.di
import co.sirano.news.domain.usercase.GetNoLocalFileImgArticleEntityListUserCase
import co.sirano.news.domain.usercase.GetNoLocalFileImgArticleEntityListUserCaseImpl
import co.sirano.news.domain.usercase.GetTopHeadLinesUseCase
import co.sirano.news.domain.usercase.GetTopHeadLinesUseCaseImpl
i... | 0 | Kotlin | 0 | 0 | 5c8f86413c9043832dd97520d0b2e7e044ae767c | 1,740 | NewsApi | Apache License 2.0 |
components/finances/src/androidMain/kotlin/com/nikitakrapo/monkeybusiness/finances/accounts/BankAccountCardShimmer.kt | nikitakrapo | 529,813,711 | false | null | package com.nikitakrapo.monkeybusiness.finances.accounts
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.fo... | 0 | Kotlin | 0 | 3 | e71b42c3a60dbd34f7f018235157172de6b46a9c | 2,912 | Monkey-Business | Apache License 2.0 |
app/src/main/java/com/irofactory/hyperchess/model/game/Resolution.kt | HectorH06 | 769,393,396 | false | {"Kotlin": 177547} | package com.irofactory.hyperchess.model.game
enum class Resolution {
IN_PROGRESS, CHECKMATE, STALEMATE, DRAW_BY_REPETITION, INSUFFICIENT_MATERIAL
}
| 0 | Kotlin | 0 | 0 | ca36db9b813ccf8527e305137d3c0b6588ab23a4 | 153 | Hyperchess | Apache License 2.0 |
core/mobile/src/main/kotlin/com/boswelja/smartwatchextensions/core/watches/status/WatchStatusRepositoryImpl.kt | boswelja | 103,805,743 | false | {"Kotlin": 496889} | package com.boswelja.smartwatchextensions.core.watches.status
import com.boswelja.watchconnection.core.discovery.DiscoveryClient
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.mapLatest
internal class WatchStatusRepositoryImpl(
private val di... | 11 | Kotlin | 0 | 25 | ec7e9ad4c98e18a9a4b5c07f1d39f6c0b1fbfd65 | 1,079 | SmartwatchExtensions | Apache License 2.0 |
src/main/kotlin/gauravbrills/ignite/web/CacheController.kt | gauravbrills | 177,508,970 | false | null | package gauravbrills.ignite.web
import gauravbrills.ignite.cache.Trade
import org.apache.ignite.Ignite
import org.apache.ignite.cache.query.SqlFieldsQuery
import org.apache.ignite.cache.query.TextQuery
import org.springframework.http.MediaType
import org.springframework.web.bind.annotation.GetMapping
import org.spring... | 0 | Kotlin | 0 | 2 | e6845319e5354527a8b4081c0903579b3caf5dd8 | 2,845 | ignite-playground | Apache License 2.0 |
shared/src/commonMain/kotlin/com/ramitsuri/podcasts/viewmodel/QueueViewModel.kt | ramitsuri | 760,212,962 | false | {"Kotlin": 545554, "Shell": 9622, "Swift": 296} | package com.ramitsuri.podcasts.viewmodel
import com.ramitsuri.podcasts.model.PlayingState
import com.ramitsuri.podcasts.model.ui.QueueViewState
import com.ramitsuri.podcasts.repositories.EpisodesRepository
import com.ramitsuri.podcasts.settings.Settings
import com.ramitsuri.podcasts.utils.EpisodeController
import kotl... | 0 | Kotlin | 0 | 1 | ff807a58e7aa3dad1f2f3f50c2de65b16b744795 | 2,580 | podcasts | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/UpRight.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,560 | icons | MIT License |
src/me/anno/gpu/pipeline/LightRequest.kt | AntonioNoack | 456,513,348 | false | {"Kotlin": 10912545, "C": 236426, "Java": 6754, "Lua": 4496, "C++": 3070, "GLSL": 2698} | package me.anno.gpu.pipeline
import me.anno.ecs.components.light.LightComponent
import org.joml.Matrix4x3d
import org.joml.Matrix4x3f
class LightRequest(var light: LightComponent, var drawMatrix: Matrix4x3d, var invCamSpaceMatrix: Matrix4x3f) {
fun set(l: LightComponent, t: Matrix4x3d, i: Matrix4x3f) {
li... | 0 | Kotlin | 3 | 24 | 013af4d92e0f89a83958008fbe1d1fdd9a10e992 | 388 | RemsEngine | Apache License 2.0 |
src/main/kotlin/rs/dusk/network/codec/download/decode/DownloadConnectedDecoder.kt | FailZombie | 324,388,128 | true | {"Kotlin": 85527, "Java": 4112} | package rs.dusk.network.codec.download.decode
import rs.dusk.core.network.packet.PacketMetaData
import rs.dusk.core.network.packet.access.PacketReader
import rs.dusk.network.codec.download.DownloadServiceMessageDecoder
import rs.dusk.network.codec.download.DownloadServiceRequestOpcodes.CONNECTED
import rs.dusk.network... | 0 | null | 0 | 0 | 5f9e53a1575f3c547314ef0f8da86fb2556fc7b3 | 725 | dusk | Creative Commons Attribution 3.0 Unported |
src/KaraLib/src/kara/HtmlTemplate.kt | azhuchkov | 28,307,744 | true | {"Kotlin": 233283, "CSS": 144766, "JavaScript": 8745, "Java": 820} | package kara
import kotlin.html.*
import java.util.ArrayList
import javax.servlet.http.HttpServletResponse
public open class HtmlTemplateView<T : Template<HTML>>(val template: T, val build: T.() -> Unit) : ActionResult {
override fun writeResponse(context: ActionContext) {
writeResponse(context.response)
... | 0 | Kotlin | 0 | 0 | 5835eb69d4e2577bc40eb85644bfd14c13d6a455 | 713 | kara | Apache License 2.0 |
app/src/main/java/com/kenkoro/taurus/client/feature/dictionaries/presentation/util/DictionariesScreenShared.kt | kenkoro | 746,982,789 | false | {"Kotlin": 272290, "JavaScript": 64} | package com.kenkoro.taurus.client.feature.dictionaries.presentation.util
import com.kenkoro.taurus.client.feature.profile.domain.User
import com.kenkoro.taurus.client.feature.shared.components.util.NavItemWithNavigation
data class DictionariesScreenShared(
val user: User?,
val currentRoute: String,
val items: L... | 4 | Kotlin | 0 | 4 | f14526cccbf81ab247cae532709efe57b63b71f5 | 349 | taurus | Apache License 2.0 |
autopage/src/main/java/com/qdedu/autopage/AutoJ.kt | smartbackme | 347,809,468 | false | null | package com.qdedu.autopage
import android.app.Activity
import androidx.fragment.app.Fragment
import java.lang.reflect.Method
/**
* @author shidawei
* 创建日期:2021/3/12
* 描述:自动跳转工具
*/
const val SUFFIX = "Ap"
object AutoJ {
fun inject(activity: Activity) {
try {
val clazz: Class<*> = activity... | 0 | Kotlin | 1 | 34 | 1e12a18cb0fe43c6c72866829d5fdf9d501606c6 | 1,034 | AutoPage | MIT License |
coroutines/src/jsMain/kotlin/dev/schlaubi/stdx/coroutines/SuspendLazy.kt | DRSchlaubi | 475,237,145 | false | null | package dev.schlaubi.stdx.coroutines
/**
* Creates a [SuspendLazy] implementation using [LazyThreadSafetyMode.NONE] as JS doesn't provide thread safety.
*
* @see SuspendLazy
*/
public actual fun <T> suspendLazy(initializer: SuspendingInitializer<T>): SuspendLazy<T> = UnsafeSuspendLazyImpl(initializer)
/**
* Crea... | 0 | Kotlin | 4 | 11 | 59af3e837653129fba270c83866bafd0944a9c4b | 601 | stdx.kt | Apache License 2.0 |
coroutines/src/jsMain/kotlin/dev/schlaubi/stdx/coroutines/SuspendLazy.kt | DRSchlaubi | 475,237,145 | false | null | package dev.schlaubi.stdx.coroutines
/**
* Creates a [SuspendLazy] implementation using [LazyThreadSafetyMode.NONE] as JS doesn't provide thread safety.
*
* @see SuspendLazy
*/
public actual fun <T> suspendLazy(initializer: SuspendingInitializer<T>): SuspendLazy<T> = UnsafeSuspendLazyImpl(initializer)
/**
* Crea... | 0 | Kotlin | 4 | 11 | 59af3e837653129fba270c83866bafd0944a9c4b | 601 | stdx.kt | Apache License 2.0 |
app/src/main/java/volovyk/thenullpointer/ui/ConfirmationDialog.kt | oleksandrvolovyk | 706,337,016 | false | {"Kotlin": 52861} | package volovyk.thenullpointer.ui
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import volovyk.thenullpointer.R
@Composable
fun ConfirmationDialog(
... | 0 | Kotlin | 0 | 0 | c88aa66746ca673e3ac7b44dacf0766d44c06feb | 1,188 | the-null-pointer-android-client | MIT License |
src/star02.kt | a-red-christmas | 112,728,147 | false | null | fun main(args: Array<String>) {
val input = args[0]
var i = 0
var sum = 0
for (n in input) {
val halfway = atoi(halfwayElement(input, i))
val current = atoi(n)
if (current == halfway)
sum += halfway
i += 1
}
println(sum)
}
fun halfwayElement(s: St... | 0 | Kotlin | 0 | 0 | 14e50f42c6550110b7007088af96f0260f4ac887 | 389 | aoc2017-kt | Apache License 2.0 |
src/main/kotlin/io/maslick/revolutto/DIConf.kt | maslick | 208,226,196 | false | null | package io.maslick.revolutto
import io.ktor.util.KtorExperimentalAPI
import org.koin.core.KoinApplication
import org.koin.dsl.bind
import org.koin.dsl.module
val businessLogicModule = module {
single<ITransaction> { Transaction(get()) }
single<IBalance> { Balance(get()) }
}
val dbModule = module {
singl... | 0 | Kotlin | 0 | 2 | 8932690a9445bd33a5104a63defd6a43483f9bed | 503 | revolutto | MIT License |
src/main/kotlin/org/skellig/plugin/language/teststep/psi/lexer/LexerArrayProcessor.kt | skellig-framework | 309,154,374 | false | null | package org.skellig.plugin.language.teststep.psi.lexer
import org.skellig.plugin.language.teststep.psi.SkelligTestStepTokenTypes
import org.skellig.plugin.language.teststep.psi.lexer.SkelligTestStepLexer.Companion.ARRAY_STATE
import org.skellig.plugin.language.teststep.psi.lexer.SkelligTestStepLexer.Companion.STATE_DE... | 0 | Kotlin | 0 | 1 | 9eb8fef6f1054bcd0a3cbc4fcbefbebe64655397 | 1,165 | skellig-intellij-plugin | Apache License 2.0 |
browser-kotlin/src/jsMain/kotlin/js/intl/LocaleMatcher.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6272741} | // Automatically generated - do not modify!
package js.intl
import seskar.js.JsValue
sealed external interface LocaleMatcher {
companion object {
@JsValue("lookup")
val lookup: LocaleMatcher
@JsValue("best fit")
val bestFit: LocaleMatcher
}
}
| 0 | Kotlin | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 287 | types-kotlin | Apache License 2.0 |
app/src/main/java/com/faigenbloom/familybudget/common/FloatingActionButton.kt | ZakharchenkoWork | 706,155,222 | false | {"Kotlin": 746176} | package com.faigenbloom.familybudget.common
import android.annotation.SuppressLint
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.FastOutSlowInEasing
import androidx.compose.animation.core.tween
imp... | 0 | Kotlin | 0 | 0 | e81fa66d6afd5b79d3299583a73378c3ee1463ca | 8,874 | FamilyBudget | Apache License 2.0 |
feature/search/src/main/java/com/mrl/pixiv/search/viewmodel/result/SearchResultMiddleware.kt | master-lzh | 656,227,310 | false | {"Kotlin": 499117} | package com.mrl.pixiv.search.viewmodel.result
import com.mrl.pixiv.common.viewmodel.Middleware
import com.mrl.pixiv.data.search.SearchIllustQuery
import com.mrl.pixiv.repository.SearchRepository
import com.mrl.pixiv.util.queryParams
import org.koin.core.annotation.Factory
@Factory
class SearchResultMiddleware(
pr... | 1 | Kotlin | 0 | 19 | d23c86171381d7f2e43e647fdb72feac155a6ff3 | 2,108 | PiPixiv | Apache License 2.0 |
Plugin/src/main/kotlin/cn/ctcraft/ctonlinereward/bukkit/menu/actions/Action.kt | CoderKuo | 751,503,116 | false | {"Kotlin": 133399, "Java": 2251, "JavaScript": 2} | package cn.ctcraft.ctonlinereward.bukkit.menu.actions
import cn.ctcraft.ctonlinereward.common.CtOnlineRewardProxyPlayer
interface Action<T> {
val values: List<T>
fun call(player: CtOnlineRewardProxyPlayer?, map: Map<String, Any>?): Any?
} | 0 | Kotlin | 0 | 1 | 5422c5efc83c34c348db8d8f799b93120bc72de3 | 251 | CtOnlineReward2 | Creative Commons Zero v1.0 Universal |
android/app/src/main/java/com/algorand/android/assetsearch/data/mapper/AssetSearchDTOMapper.kt | perawallet | 364,359,642 | false | {"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596} | /*
* Copyright 2022 Pera Wallet, LDA
* 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 writing,... | 22 | Swift | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 1,526 | pera-wallet | Apache License 2.0 |
app/shared/bitkey-primitives/fake/src/commonMain/kotlin/build/wallet/bitkey/socrec/UnendorsedTrustedContactFake.kt | proto-at-block | 761,306,853 | false | {"C": 10424094, "Kotlin": 7156393, "Rust": 2046237, "Swift": 700307, "Python": 331492, "HCL": 271992, "Shell": 111209, "TypeScript": 102700, "C++": 64770, "Meson": 64234, "JavaScript": 36227, "Just": 28071, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.bitkey.socrec
import build.wallet.crypto.PublicKey
import build.wallet.encrypt.XCiphertext
import okio.ByteString.Companion.encodeUtf8
val UnendorsedTrustedContactFake = UnendorsedTrustedContact(
recoveryRelationshipId = "someRelationshipId",
trustedContactAlias = TrustedContactAlias("someCon... | 0 | C | 10 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 554 | bitkey | MIT License |
src/main/kotlin/grd/kotlin/authapi/jwt/JwtRequestFilter.kt | gardehal | 708,548,046 | false | {"Kotlin": 468271, "Shell": 612, "HTML": 331} | package grd.kotlin.authapi.jwt
import grd.kotlin.authapi.Log
import grd.kotlin.authapi.services.JwtService
import grd.kotlin.authapi.settings.Settings
import jakarta.servlet.FilterChain
import jakarta.servlet.ServletException
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletRespons... | 0 | Kotlin | 0 | 0 | 14ed0a4f310f90c32880bfd1d0eacbe4c8780bd0 | 4,007 | kotlin-auth-api | MIT License |
zedge/src/main/java/net/suyambu/zedge/Zedge.kt | whoisjeeva | 380,497,906 | false | {"Kotlin": 21809} | package net.suyambu.zedge
import net.suyambu.zedge.data.*
import org.json.JSONObject
import sh.fearless.hiper.Hiper
import sh.fearless.hiper.controllers.Caller
import java.net.URLEncoder
class Zedge {
companion object {
const val API_URL = "https://api-gateway.zedge.net/"
@Volatile private var wa... | 0 | Kotlin | 1 | 2 | 36b1e7fc28b7ea3211e5705a153ab31bd05dcfec | 16,534 | zedge | MIT License |
connectors/http/src/jvmMain/kotlin/com/river/connector/http/CustomHttpRequestBuilder.kt | River-Kt | 539,201,163 | false | {"Kotlin": 450835, "Shell": 268, "Python": 126} | package com.river.connector.http
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.jdk9.asPublisher
import java.net.URI
import java.net.http.HttpHeaders
import java.net.http.HttpRequest
import java.net.http.HttpRequest.BodyPublisher
import java.net.http.HttpRequest.BodyPublishers.*
import java.net.http.Htt... | 30 | Kotlin | 3 | 79 | 9841047b27268172a42e0e1ec74b095c0202a2cc | 7,092 | river | MIT License |
app/src/main/java/com/floatworld/diacsc/composes/login/signUpPage.kt | sheepthefather | 718,470,059 | false | {"Kotlin": 196025} | package com.floatworld.diacsc.composes.login
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compos... | 0 | Kotlin | 0 | 0 | bf389165e4fe65eb4dee8044134a5d1dfddcd55e | 3,322 | Diacsc | Apache License 2.0 |
composeApp/src/commonMain/kotlin/feature/main/entity/DisplayExt.kt | FrankieShao | 815,291,399 | false | {"Kotlin": 347190, "Swift": 657} | package feature.main.entity
import core.domain.model.Configure
import core.domain.model.Media
import core.domain.model.Movie
import core.domain.model.TVShow
import ui.DisplayItem
/**
* @author <NAME>
* @created 03/06/2024
* Description: Display Item Extension
*/
fun Movie.toDisplayItem(configure: Configure?) = D... | 0 | Kotlin | 0 | 0 | 5137399a0b2d5554aa49377ed5d853cfece5dc68 | 896 | FlickFusion | MIT License |
app/src/main/java/com/cngal/app/uistate/article/SingleArticleUiState.kt | CnGal | 648,083,407 | false | {"Kotlin": 421043} | package com.cngal.app.uistate.article
class SingleArticleUiState
{
var link :String=""
var shareText :String=""
} | 0 | Kotlin | 1 | 2 | 6703376adae97557825f39d7492a04b3aee55729 | 122 | cngal-jetpack-app | MIT License |
libs/core-search/src/main/kotlin/openBook/model/Book.kt | Arslanka-Educational | 784,642,540 | false | {"Kotlin": 121240} | package openBook.model
import java.util.Objects
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonValue
import openBook.model.BookStatus
/**
*
* @param id
* @param bookInfoId
* @param libraryId library this is in
* @param status
*/
data class Book(
@get:Js... | 1 | Kotlin | 0 | 4 | fba88651674e394bf2b302095fa3ff5fdc3cfc13 | 602 | OpenBook | Apache License 2.0 |
app/src/main/java/com/example/android/unscramble/ui/game/GameFragment.kt | codeitashu5 | 391,960,342 | false | null | /*
* Copyright (C) 2020 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 appl... | 0 | Kotlin | 0 | 0 | a29fce0bcf625804ca6f7bf335307bef22520f7f | 5,154 | ViewModel | Apache License 2.0 |
GreenGarbageApp/app/src/main/java/com/example/greengarbageapp/activities/MainActivity.kt | DIT113-V22 | 471,135,351 | false | {"Kotlin": 51182, "GDScript": 15484, "C++": 6087, "GAP": 348} | package com.example.greengarbageapp.activities
import android.media.AudioManager
import android.media.MediaPlayer
import android.os.Bundle
import android.view.View
import android.widget.ArrayAdapter
import android.widget.Button
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import android... | 0 | Kotlin | 2 | 1 | cf51b6b85e58a14f83a1d8cc2036f2d4641cf413 | 3,296 | group-07 | MIT License |
web/src/main/kotlin/showdown.web/ui/common/HookTest.kt | bbassett | 337,838,734 | true | {"Kotlin": 100750, "HTML": 1189, "CSS": 661, "JavaScript": 419} | package showdown.web.ui.common
import materialui.components.snackbar.enums.SnackbarOriginHorizontal
import materialui.components.snackbar.enums.SnackbarOriginVertical
import materialui.components.snackbar.horizontal
import materialui.components.snackbar.snackbar
import materialui.components.snackbar.vertical
import ma... | 0 | null | 0 | 0 | 953b63110280dba9952cdde4436ee828e27ea5de | 1,594 | Showdown | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/PuppyApplication.kt | vivart | 342,747,093 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | ffc1e71ec5bf57e742a8e1032a8606bad144b6fb | 1,274 | puppy | Apache License 2.0 |
common/src/main/java/com/yuriikonovalov/common/data/sources/UpdateBiometricAuthenticationOnSourceImpl.kt | yuriikonovalov | 563,974,428 | false | {"Kotlin": 872022} | package com.yuriikonovalov.common.data.sources
import com.yuriikonovalov.common.application.usecases.datasources.UpdateBiometricAuthenticationOnSource
import com.yuriikonovalov.common.data.local.AppPreferences
import javax.inject.Inject
class UpdateBiometricAuthenticationOnSourceImpl @Inject constructor(
private ... | 0 | Kotlin | 0 | 0 | 8063508f836512fc8f8a0ba18f794bb895ee2449 | 537 | budgethub | MIT License |
common/src/commonMain/kotlin/com/artemchep/keyguard/feature/duplicates/DuplicatesScreen.kt | AChep | 669,697,660 | false | {"Kotlin": 5516822, "HTML": 45876} | package com.artemchep.keyguard.feature.duplicates
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import com.artemchep.keyguard.feature.duplicates.list.DuplicatesListRoute
import com.artemchep.keyguard.feature.navigation.NavigationRouter
import com.artemchep.keyguard.feature.twopane... | 66 | Kotlin | 31 | 995 | 557bf42372ebb19007e3a8871e3f7cb8a7e50739 | 830 | keyguard-app | Linux Kernel Variant of OpenIB.org license |
base_component/src/main/java/com/william/base_component/manager/ActivityStackManager.kt | Seachal | 357,416,143 | true | {"Kotlin": 166552, "Java": 22100} | package com.william.base_component.manager
import android.app.Activity
import java.util.*
/**
* @author William
* @date 2020/4/17 11:44
* Class Comment:Activity Stack Manager
*/
object ActivityStackManager {
private var mActivityStack: Stack<Activity> = Stack()
/**
* push in
*/
fun addAct... | 0 | null | 0 | 0 | e4dc012c41c599055e62316e2055daad3177fb9c | 3,202 | EasyKotlin | Apache License 2.0 |
libraries/core/src/main/java/com/n27/core/presentation/detail/entities/DetailState.kt | Narsuf | 52,900,182 | false | {"Kotlin": 247331} | package com.n27.core.presentation.detail.entities
import com.n27.core.domain.election.Election
sealed class DetailState {
object Loading : DetailState()
data class Error(val error: String? = null) : DetailState()
data class Content(val election: Election) : DetailState()
}
| 1 | Kotlin | 0 | 2 | b61771d2c984840e21f4a8dfd4fb67dcb9480d73 | 289 | Elections | Apache License 2.0 |
src/main/kotlin/dokerplp/bot/model/service/FaqService.kt | dokerplp | 407,882,967 | false | {"Kotlin": 55171} | package dokerplp.bot.model.service
import dokerplp.bot.model.entity.FaqEntity
import org.springframework.stereotype.Service
@Service
interface FaqService {
fun findAll(): MutableIterable<FaqEntity>
fun save(entity: FaqEntity): FaqEntity
fun getById(id: Long): FaqEntity?
fun deleteAll()
} | 0 | Kotlin | 0 | 0 | b3c530a3c7aff82a9072348ba036b364f33d0769 | 306 | abit-vt-bot | Apache License 2.0 |
src/main/kotlin/mobi/appcent/openai/apis/EngineApi.kt | AppcentMobile | 624,070,344 | false | null | package mobi.appcent.openai.apis
import mobi.appcent.openai.common.UrlConstant
import mobi.appcent.openai.infrastructure.*
import mobi.appcent.openai.models.Engine
import mobi.appcent.openai.models.ListEnginesResponse
/**
* Created by erenalpaslan on 5.04.2023
*/
class EngineApi: BaseApi() {
/**
* Lists t... | 1 | Kotlin | 0 | 6 | 0bcf3b69ff1ba8e337113f74e4b0fb8880b28c06 | 2,066 | ACMOpenAI-Android | MIT License |
app/src/main/java/com/example/cupcake/model/OrderViewModel.kt | eduardobape | 409,770,117 | false | {"Kotlin": 20836} | package com.example.cupcake.model
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import java.text.NumberFormat
import java.text.SimpleDateFormat
import java.util.*
private const val PRICE_PER_CUPCAKE = 2.00
pri... | 0 | Kotlin | 0 | 0 | b2978df383aad38c528ca8e99f93754c16f7b8fc | 2,528 | cupcake-android-app | Apache License 2.0 |
app/src/main/java/com/softwarehut/mvpplayground/domain/splash/SplashView.kt | softwarehutpl | 139,710,457 | false | {"Kotlin": 49242} | package com.softwarehut.mvpplayground.domain.splash
import com.softwarehut.mvp.domain.paramless.View
interface SplashView : View {
fun navigateToIntroductionScreen()
} | 0 | Kotlin | 0 | 0 | fe91f41fad6413a8dabd3b3e9e1e0826e8cd7553 | 174 | MvpPlayground | Apache License 2.0 |
样例/数据容器.kts | PPKunOfficial | 475,409,421 | false | {"Kotlin": 3830} | //数组
//1.arrayOf创建数组
//arrayOf创建一个数组并且传递元素给变量,及 val n = arrayOf(1,2,3)
//arrayOf()内部可以填任意类型
//Example
val arrayOfCreate = arrayOf(false, 1, "二", "3")
//2.arrayOfNulls创建数组
//创建指定大小且所有元素都为空的数组
//集合中的元素必须被定义(也就是说必须元素类型相同)!
val arrayOfNullsCreate = arrayOfNulls<String>(5)
//(暂时不明白) 3.动态创建数组
// 用接受数组大小以及一个方法参数的Array构造方法
/... | 0 | Kotlin | 0 | 0 | c31e739d268f8f72485951c23619118649863af0 | 1,317 | kotlinLearning | MIT License |
courses/dicoding-android-ml/06-mediapipe/Latihan MediaPipe (image classification)/app/src/main/java/io/github/mrgsrylm/mycamera/ImageClassifierHelper.kt | mrgsrylm | 740,344,950 | false | {"Kotlin": 897760, "Swift": 3686, "Dart": 2768, "Java": 1281, "Shell": 1130, "JavaScript": 870} | package io.github.mrgsrylm.mycamera
import android.content.Context
import android.graphics.Bitmap
import android.os.SystemClock
import android.util.Log
import androidx.camera.core.ImageProxy
import com.google.mediapipe.framework.image.BitmapImageBuilder
import com.google.mediapipe.tasks.components.containers.Classific... | 0 | Kotlin | 0 | 1 | a119e6b1a8cdbec7c00be2467a5ca78a395cde40 | 3,424 | kotlin-sandbox | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/models/adjudications/AdjudicationsOffenceDetails.kt | ministryofjustice | 572,524,532 | false | {"Kotlin": 574045, "Python": 32511, "Shell": 13474, "Dockerfile": 1154, "Makefile": 684} | package uk.gov.justice.digital.hmpps.hmppsintegrationapi.models.adjudications
class AdjudicationsOffenceDetails(
val offenceCode: Number? = null,
val offenceRule: AdjudicationsOffenceRule? = null,
val victimPrisonersNumber: String? = null,
val victimStaffUsername: String? = null,
val victimOtherPersonsName: ... | 2 | Kotlin | 1 | 2 | 4d87385fc9811122e0f1ba8734a6068d9e231d32 | 338 | hmpps-integration-api | MIT License |
app/src/main/java/com/jacobgb24/smashrandomizer/controller/CharactersAdapter.kt | jacobgb24 | 176,039,141 | false | null | package com.jacobgb24.smashrandomizer.controller
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import android.widget.ImageView
import com.jacobgb24.smashrandomizer.R
import com.jacobgb24.smashrandomizer.model.C... | 0 | Kotlin | 0 | 0 | 3cd8a538f1690b5392d1f1246680a3a71d60bffc | 1,688 | SmashRandomizer | MIT License |
src/main/kotlin/ru/vevteev/tgbot/bot/commands/UnknownCommandExecutor.kt | v4eii | 680,279,098 | false | {"Kotlin": 52245, "Dockerfile": 88} | package ru.vevteev.tgbot.bot.commands
import org.springframework.context.MessageSource
import org.springframework.stereotype.Component
import org.telegram.telegrambots.meta.api.objects.Update
import ru.vevteev.tgbot.bot.TelegramLongPollingBotExt
import ru.vevteev.tgbot.extension.createSendMessage
import ru.vevteev.tgb... | 0 | Kotlin | 0 | 0 | 95b45466fc03583226f55ccaffe510f32c4723eb | 1,081 | tg-bot | MIT License |
androidboilerplate/src/main/java/com/curiosityio/androidboilerplate/util/InternetConnectionUtil.kt | curiosityio | 75,494,815 | false | null | package com.curiosityio.androidboilerplate.util
import android.content.Context
import android.net.ConnectivityManager
import android.provider.Settings
import java.io.IOException
import java.net.HttpURLConnection
import java.net.URL
open class InternetConnectionUtil() {
companion object {
fun isAnyInterne... | 3 | Kotlin | 0 | 8 | 2b8b8db04e02e1487c9429b62972b18c64320696 | 3,305 | AndroidBoilerplate | MIT License |
data/database/src/main/java/com/kafka/data/dao/EntityDao.kt | vipulyaara | 612,950,214 | false | {"Kotlin": 635130, "JavaScript": 440999, "HTML": 11959, "CSS": 7888, "Shell": 2974} | package com.kafka.data.dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Update
import com.kafka.data.entities.BaseEntity
interface EntityDao<in E : BaseEntity> {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insert(entity: E): Long
@Insert(onConf... | 5 | Kotlin | 10 | 86 | fa64a43602eecac8b93ae9e8b713f6d29ba90727 | 588 | Kafka | Apache License 2.0 |
libs/tangleLib034/src/main/java/tangle/benchmark/tangleLib034/TangleLib034Fragment.kt | RBusarow | 415,108,675 | false | null | package tangle.benchmark.tangleLib034
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 TangleLib034Frag... | 0 | Kotlin | 0 | 1 | b271faeb36f8f57977dd2b43d276098e1932f4eb | 360 | tangle-benchmark-project | Apache License 2.0 |
app/src/main/java/io/github/tonnyl/mango/data/Shot.kt | magicknight | 114,423,707 | true | {"Kotlin": 374834, "HTML": 31219} | /*
* Copyright (c) 2017 Lizhaotailang
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... | 0 | Kotlin | 0 | 0 | 063046c23618f9682860b669c58d4ef8384f1217 | 10,092 | Mango | MIT License |
domain/src/main/java/com/sedsoftware/yaptalker/domain/repository/LoginSessionRepository.kt | alerm-sml | 123,927,915 | true | {"Kotlin": 509954, "IDL": 1260, "Shell": 1229, "Prolog": 939, "Java": 823, "CSS": 50} | package com.sedsoftware.yaptalker.domain.repository
import com.sedsoftware.yaptalker.domain.entity.BaseEntity
import io.reactivex.Completable
import io.reactivex.Single
/**
* Interface that represents a Repository for getting user login session related data.
*/
interface LoginSessionRepository {
fun getLoginSess... | 0 | Kotlin | 0 | 0 | 6c06171d2af44b0bb9b7809221b2f594d2354102 | 501 | YapTalker | Apache License 2.0 |
app/src/main/java/com/nullpointer/runningcompose/ui/screens/statistics/componets/GraphRuns.kt | Hcnc100 | 492,511,541 | false | null | package com.nullpointer.runningcompose.ui.screens.statistics.componets
import androidx.compose.foundation.layout.*
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
imp... | 0 | Kotlin | 4 | 9 | 0f8906c0033dd111a35f1f69bde29e31a024af28 | 2,532 | RunningCompose | MIT License |
app/src/main/java/com/example/compose_tflite/plantsApi_feature/model/DummyData.kt | YadavYashvant | 702,524,655 | false | {"Kotlin": 50160} | package com.example.compose_tflite.plantsApi_feature.model
data class DummyData(
val title: String
)
| 0 | Kotlin | 1 | 1 | c21752f583a8a23fb3ec849f743adb8c6ee4c6bb | 106 | CropGuard | MIT License |
common/src/main/java/net/sistr/flexibleguns/entity/util/HasSenseMemory.kt | SistrScarlet | 437,250,021 | false | {"Kotlin": 239434, "Java": 36089} | package net.sistr.flexibleguns.entity.util
interface HasSenseMemory {
fun getSenseMemory(): SenseMemory
} | 0 | Kotlin | 0 | 2 | c00fbbfbd98a253f971cb9f5c87a4cf3eef9b6a2 | 112 | FlexibleGuns | MIT License |
features/currencyexchange/presentation/src/androidMain/kotlin/com/mindera/kmpexample/currencyexchange/language/LanguageApp.kt | Mindera | 767,105,015 | false | {"Kotlin": 89862, "Swift": 422} | package com.mindera.kmpexample.currencyexchange.language
import android.app.Application
import android.content.Context
open class LanguageApp : Application() {
override fun attachBaseContext(base: Context) {
super.attachBaseContext(LocaleHelper.setLocale(base,
LocaleHelper.getLanguageSharedPre... | 0 | Kotlin | 0 | 1 | 1c24d2aeade48da855424296ca036e6c1da1c1b3 | 353 | Android-KMP-Template | Apache License 2.0 |
TennisLabExposed/src/main/kotlin/repositories/maquina/IMaquinaEncordarRepository.kt | idanirf | 578,303,195 | false | {"Kotlin": 247706} | package repositories.maquina
import models.MaquinaEncordar
import repositories.ICRUDRepository
/**
* I maquina encordar repository
*
* @constructor Create empty I maquina encordar repository
*/
interface IMaquinaEncordarRepository: ICRUDRepository<MaquinaEncordar, Int> {
} | 0 | Kotlin | 2 | 2 | 618af3cdf691a44ba5ad4c0993b3aae0d0728f08 | 279 | AD-P2-jsanchez-drodriguez-amaldonado | MIT License |
auth/requester/src/main/kotlin/com/walletconnect/requester/ui/connect/pairing_select/PairingSelectionDialogFragment.kt | WalletConnect | 435,951,419 | false | null | package com.walletconnect.requester.ui.connect.pairing_select
import android.os.Bundle
import android.view.View
import androidx.fragment.app.DialogFragment
import androidx.navigation.fragment.findNavController
import androidx.navigation.navGraphViewModels
import com.walletconnect.requester.R
import com.walletconnect.r... | 131 | Kotlin | 51 | 148 | f54e9ebe97869065b15e307d16be8e5bee7635d0 | 1,758 | WalletConnectKotlinV2 | Apache License 2.0 |
app/src/main/java/com/evourse/instaclone/HomeFeedApis.kt | dayashanknar | 736,360,187 | false | {"Kotlin": 38103} | package com.evourse.instaclone
import com.evourse.instaclone.model.FeedResponseApi
import retrofit2.http.GET
import retrofit2.http.Query
interface HomeFeedApis {
@GET("/venCon")
suspend fun getMixContent(@Query("page") page: Int): FeedResponseApi
} | 0 | Kotlin | 0 | 0 | 72d4d9f1e711327c3cdf139ec935b9b82827f2ad | 259 | anonym | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/rds/ParameterGroupClusterBindOptionsDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.rds
import io.cloudshiftdev.awscdkdsl.common.CdkDslMarker... | 4 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 1,092 | awscdk-dsl-kotlin | Apache License 2.0 |
androidx/app/src/main/java/com/dxn/agventure/features/consumer/ui/home/ConsumerHome.kt | pallavi-sahu | 607,486,054 | false | {"Kotlin": 45286} | package com.dxn.agventure.features.consumer.ui.home
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.hilt.navigation.fragment.hiltNavGraphViewModels
import androidx.life... | 0 | Kotlin | 0 | 0 | 3af007fd871e5d1f882a6956bbcf442fb88de821 | 2,314 | Agventure | MIT License |
src/main/kotlin/io/github/glyphmods/solarpowered/content/optics/network/manager/ClientOpticalNetworkManager.kt | GlyphMods | 756,582,855 | false | {"Kotlin": 48642} | package io.github.glyphmods.solarpowered.content.optics.network.manager
import io.github.glyphmods.solarpowered.content.optics.network.ClientOpticalNetwork
import io.github.glyphmods.solarpowered.content.optics.network.OpticalNetworkChangePacket
import net.minecraft.client.Minecraft
import net.minecraft.client.multipl... | 0 | Kotlin | 0 | 1 | fd81b33db221154addde67f59cd705689a9723cc | 1,268 | SolarPowered | MIT License |
src/main/kotlin/kotlinmud/event/factory/FightEventFactory.kt | danielmunro | 241,230,796 | false | null | package kotlinmud.event.factory
import kotlinmud.event.impl.Event
import kotlinmud.event.impl.FightStartedEvent
import kotlinmud.event.impl.KillEvent
import kotlinmud.event.type.EventType
import kotlinmud.mob.fight.Round
import kotlinmud.mob.model.Fight
import kotlinmud.mob.model.Mob
import kotlinmud.mob.type.Disposit... | 0 | Kotlin | 1 | 9 | b7ee0d21ae813990896b1b8c6703da9bd1f1fc5b | 891 | kotlinmud | MIT License |
src/main/kotlin/kotlinmud/event/factory/FightEventFactory.kt | danielmunro | 241,230,796 | false | null | package kotlinmud.event.factory
import kotlinmud.event.impl.Event
import kotlinmud.event.impl.FightStartedEvent
import kotlinmud.event.impl.KillEvent
import kotlinmud.event.type.EventType
import kotlinmud.mob.fight.Round
import kotlinmud.mob.model.Fight
import kotlinmud.mob.model.Mob
import kotlinmud.mob.type.Disposit... | 0 | Kotlin | 1 | 9 | b7ee0d21ae813990896b1b8c6703da9bd1f1fc5b | 891 | kotlinmud | MIT License |
app/src/main/java/com/boolder/boolder/utils/extension/CameraOptionsExtensions.kt | boolder-org | 566,723,758 | false | {"Kotlin": 532905} | package com.boolder.boolder.utils.extension
import com.mapbox.maps.CameraOptions
fun CameraOptions.coerceZoomAtLeast(minZoom: Double): CameraOptions {
val zoom = zoom ?: return this
return CameraOptions.Builder()
.center(center)
.padding(padding)
.bearing(bearing)
.pitch(pitch... | 11 | Kotlin | 12 | 26 | dd93a7b9c29ee0eec80b63a62de4b5eea7203f6e | 384 | boolder-android | MIT License |
app/src/main/java/top/jiecs/screener/ui/settings/SettingsAdapter.kt | jiesou | 727,220,282 | false | {"Kotlin": 21536} | package top.jiecs.screener.ui.settings;
public class SettingsAdapter {
}
| 2 | Kotlin | 1 | 19 | f60884251cf5dc0d59f8bf369c4123958c345531 | 74 | Android-Screener | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.