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/com/nurbk/ps/movieappq/model/trailer/Trailer.kt | noor1yasser9 | 347,884,673 | false | null | package com.nurbk.ps.movieappq.model.trailer
import com.google.gson.annotations.SerializedName
data class Trailer(
@SerializedName("id")
var id: Int,
@SerializedName("results")
var results: List<Result>
) | 0 | Kotlin | 2 | 5 | 7bb595e6d3e67bdff6f5964ab5b2c09e9f9f3e01 | 223 | MovieAppQ | Apache License 2.0 |
src/main/kotlin/com/grappenmaker/aoc/year22/Day21JVM.kt | 770grappenmaker | 434,645,245 | false | null | package com.grappenmaker.aoc.year22
import com.grappenmaker.aoc.*
import org.objectweb.asm.Opcodes.*
fun main() = simplePuzzle(21, 2022) {
val cName = "com/grappenmaker/aoc/year22/Day21JVMGenerated"
partOne = generateClass(name = cName, implements = listOf(internalNameOf<Day21Eval>())) {
inputLines.fo... | 0 | Kotlin | 0 | 4 | 2c65356a0938463c1ed79e12dc54fc8fc21afa31 | 1,378 | advent-of-code | The Unlicense |
adapters/src/main/kotlin/com/rviewer/beers/adapters/repository/mapper/UsageEntityMapper.kt | makcon | 736,968,979 | false | {"Kotlin": 75766, "Makefile": 274} | package com.rviewer.beers.adapters.repository.mapper
import com.rviewer.beers.adapters.repository.entity.UsageEntity
import com.rviewer.beers.domain.model.PageResult
import com.rviewer.beers.domain.model.Usage
import org.springframework.data.domain.Page
import java.util.*
fun Usage.toEntity() = UsageEntity(
id = ... | 0 | Kotlin | 0 | 0 | 218741c7facf8ea72e75b43bf0f0a42d8ba8016c | 833 | beers-service | MIT License |
projects/create-and-vary-a-licence-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/ManagerService.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 3107358, "HTML": 50736, "D2": 27334, "Ruby": 22747, "Shell": 12351, "SCSS": 5590, "JavaScript": 2998, "HCL": 2712, "Dockerfile": 2102} | package uk.gov.justice.digital.hmpps.service
import org.springframework.ldap.core.LdapTemplate
import org.springframework.stereotype.Service
import uk.gov.justice.digital.hmpps.api.model.ManagedOffender
import uk.gov.justice.digital.hmpps.api.model.Manager
import uk.gov.justice.digital.hmpps.api.model.Name
import uk.g... | 24 | Kotlin | 0 | 2 | b8d163a7adef343bb3ceae83c426e149ac2cf15a | 2,493 | hmpps-probation-integration-services | MIT License |
app/composeApp/src/commonMain/kotlin/com/xboxgamecollection/app/features/auth/data/model/AuthLoginRequest.kt | alexaragao | 809,759,421 | false | {"Kotlin": 126157, "Dockerfile": 709, "Swift": 522} | package com.xboxgamecollection.app.features.auth.data.model
import kotlinx.serialization.Serializable
@Serializable
data class AuthLoginRequest(
val nickname: String,
val password: String,
)
| 0 | Kotlin | 0 | 1 | 25cdf1704a2f5a9a587dce225cb612df731c38e7 | 201 | xbox-game-collection-app | MIT License |
app/src/main/java/com/example/myrakamin/CekSaldoActivity.kt | k3-it-perbankan-rakamin | 701,141,972 | false | {"Kotlin": 15820, "Java": 1477} | package com.example.myrakamin
import android.content.Intent
import android.os.Bundle
import android.view.Gravity
import android.view.View
import android.widget.ImageButton
import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.ActionBarDrawerToggle
import androidx.appcompat.app.AppCom... | 0 | Kotlin | 0 | 0 | 5b2f7c84e2ebb5576cd7a01df010e99987ac006b | 4,266 | k3-java-mobile-hw7 | MIT License |
mpp-library/src/commonTest/kotlin/TestingServiceRegistry.kt | thumbcat-io | 225,277,850 | false | null | package io.thumbcat.oss.gtcompanion
import com.russhwolf.settings.Settings
import org.koin.core.context.startKoin
import org.koin.core.context.stopKoin
import org.koin.dsl.module
object TestingServiceRegistry {
internal fun appStart(settings: Settings) {
val coreModule = module {
single { set... | 0 | Kotlin | 0 | 4 | 4e353b414a4842e4562eda98c8bba6ade3c61313 | 443 | gtcompanion | Apache License 2.0 |
app/src/main/java/com/zeronesky/kcoolweather/db/Province.kt | zyxins | 123,904,974 | false | null | package com.zeronesky.kcoolweather.db
import org.litepal.crud.DataSupport
/**
* Created by zyxins on 05/03/2018.
*/
class Province: DataSupport() {
var id: Int =0
var provinceName: String? = ""
var provinceCode: Int = 0
}
| 0 | Kotlin | 0 | 0 | f2e84590dbefe9dbb2463310a052234885cef2f8 | 240 | kcoolweather | Apache License 2.0 |
src/main/java/com/ncorti/aoc2021/Exercise15.kt | cortinico | 433,486,684 | false | null | package com.ncorti.aoc2021
import java.util.PriorityQueue
object Exercise15 {
private fun getInput() =
getInputAsTest("15") { split("\n") }
.map { line -> line.toCharArray().map { it.digitToInt() }.toTypedArray() }
.toTypedArray()
// Not the most elegant solution but it does ... | 0 | Kotlin | 0 | 4 | af3df72d31b74857201c85f923a96f563c450996 | 2,529 | adventofcode-2021 | MIT License |
src/test/kotlin/sparta/nbcamp/wachu/domain/wine/WinePromotionDBTest.kt | spartaKotlinTeamSober | 828,133,738 | false | {"Kotlin": 153377} | package sparta.nbcamp.wachu.domain.wine
import jakarta.transaction.Transactional
import org.junit.jupiter.api.Test
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.... | 13 | Kotlin | 0 | 0 | 1e08b2b05db756d7058a6c10f8f372211b47ed12 | 2,083 | wachu_server | MIT License |
app/src/main/java/com/sahu/costats/ext/LargeValueFormatter.kt | sahruday | 391,406,875 | false | null | package com.sahu.costats.ext
import java.text.DecimalFormat
import java.text.DecimalFormatSymbols
import java.util.*
/**
* Predefined value-formatter that formats large numbers in a pretty way.
* Outputs: 856 = 856; 1000 = 1k; 5821 = 5.8k; 10500 = 10k; 101800 = 102k;
* 2000000 = 2m; 7800000 = 7.8m; 92150000 = 92m... | 0 | Kotlin | 0 | 0 | 25fdfc67a8728b46b2dd7f2bd0f8e4421e17fa54 | 2,207 | CoStats | Apache License 2.0 |
src/main/kotlin/adventofcode/year2021/Day06Lanternfish.kt | pfolta | 573,956,675 | false | {"Kotlin": 189633, "Dockerfile": 227} | package adventofcode.year2021
import adventofcode.Puzzle
import adventofcode.PuzzleInput
class Day06Lanternfish(customInput: PuzzleInput? = null) : Puzzle(customInput) {
private val fish by lazy { input.split(",").map(String::toInt) }
private val fishByAge by lazy { fish.groupingBy { it }.eachCount().map { (... | 0 | Kotlin | 0 | 0 | 20b8e19ed81a018b866290c6be6df7ec22afb454 | 984 | AdventOfCode | MIT License |
core/src/main/kotlin/com/milkcocoa/info/milkyway/api/atproto/server/CheckAccountStatus.kt | milkcocoa0902 | 777,786,753 | false | {"Kotlin": 218032} | package com.milkcocoa.info.milkyway.api.atproto.server
import com.milkcocoa.info.milkyway.atproto.action.AtProtoActions
import com.milkcocoa.info.milkyway.atproto.method.AtProtocolGet
import com.milkcocoa.info.milkyway.domain.Domain
import com.milkcocoa.info.milkyway.models.AtProtocolModel
import com.milkcocoa.info.mi... | 0 | Kotlin | 0 | 0 | e8cf6757bc1041e3b3b381e4ad3ce5e64e869d19 | 1,452 | Milkyway | MIT License |
app/src/main/java/com/devhomc/videoplayersample/service/PlayerService.kt | oidy | 534,576,264 | false | {"Kotlin": 16666} | package com.devhomc.videoplayersample.service
import android.app.PendingIntent
import android.app.PendingIntent.FLAG_IMMUTABLE
import android.content.Intent
import androidx.media3.common.MediaItem
import androidx.media3.exoplayer.ExoPlayer
import androidx.media3.session.MediaSession
import androidx.media3.session.Medi... | 0 | Kotlin | 0 | 17 | c079b4c81ae6ffa228c7e93ce687e8369edda69b | 1,728 | VideoPlayerSample | Apache License 2.0 |
examples/travel-agency-minimal/src/main/kotlin/io/holunda/axon/camunda/example/travel/minimal/process/TravelAgencyConfiguration.kt | holunda-io | 126,392,447 | false | null | package io.holunda.axon.camunda.example.travel.minimal.process
import io.holunda.axon.camunda.config.AbstractEventCommandFactory
import io.holunda.axon.camunda.config.CamundaAxonEventCommandFactoryRegistry
import io.holunda.axon.camunda.config.CamundaEvent
import io.holunda.axon.camunda.example.travel.airline.BookFlig... | 1 | Kotlin | 1 | 20 | 901b3fc618a8779715ff75cce83924c85600aac5 | 4,221 | axon-camunda | Apache License 2.0 |
src/main/kotlin/ch/sourcemotion/vertx/kinesis/consumer/orchestra/consumer/fetching/RecordBatchStream.kt | wem | 253,237,315 | false | null | package ch.sourcemotion.vertx.kinesis.consumer.orchestra.consumer.fetching
import ch.sourcemotion.vertx.kinesis.consumer.orchestra.impl.SequenceNumber
import ch.sourcemotion.vertx.kinesis.consumer.orchestra.impl.ShardIterator
import kotlinx.coroutines.channels.Channel
import software.amazon.awssdk.services.kinesis.mod... | 10 | Kotlin | 0 | 3 | a2290613daf15c96034bf5d3d67103ddc8741776 | 3,159 | vertx-kinesis-consumer-orchestra | MIT License |
src/main/kotlin/ch/sourcemotion/vertx/kinesis/consumer/orchestra/consumer/fetching/RecordBatchStream.kt | wem | 253,237,315 | false | null | package ch.sourcemotion.vertx.kinesis.consumer.orchestra.consumer.fetching
import ch.sourcemotion.vertx.kinesis.consumer.orchestra.impl.SequenceNumber
import ch.sourcemotion.vertx.kinesis.consumer.orchestra.impl.ShardIterator
import kotlinx.coroutines.channels.Channel
import software.amazon.awssdk.services.kinesis.mod... | 10 | Kotlin | 0 | 3 | a2290613daf15c96034bf5d3d67103ddc8741776 | 3,159 | vertx-kinesis-consumer-orchestra | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/makerecalldecisionapi/exception/NoCvlLicenceByIdException.kt | ministryofjustice | 478,614,213 | false | {"Kotlin": 1564618, "Shell": 18570, "Mustache": 1801, "Dockerfile": 1150, "Ruby": 229} | package uk.gov.justice.digital.hmpps.makerecalldecisionapi.exception
class NoCvlLicenceByIdException(message: String) : RuntimeException(message)
| 0 | Kotlin | 1 | 3 | ca415dc5bc4d069eb81a71f8139e0f8daaf3eabb | 147 | make-recall-decision-api | MIT License |
nativechain-with-lightweight-pow/src/test/kotlin/com/sys1yagi/nativechain/NativeChainSpec.kt | sys1yagi | 116,396,177 | false | null | package com.sys1yagi.nativechain
import com.nhaarman.mockito_kotlin.mock
import com.nhaarman.mockito_kotlin.whenever
import com.sys1yagi.nativechain.util.DefaultTimeProvider
import com.sys1yagi.nativechain.util.GenesisBlock
import com.sys1yagi.nativechain.util.TimeProvider
import org.assertj.core.api.Assertions.assert... | 0 | Kotlin | 2 | 4 | b106c8beb2449ff1760dee71fba4349940475b18 | 3,893 | nativechain-kotlin | MIT License |
features/home/src/androidTest/java/com/prof18/filmatic/features/home/presentation/HomeFragmentTest.kt | prof18 | 189,304,492 | false | null | package com.prof18.filmatic.features.home.presentation
import android.content.res.Resources
import androidx.recyclerview.widget.RecyclerView
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.IdlingRegistry
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.esp... | 1 | Kotlin | 3 | 4 | 95175c808870c4aaa8f8d6218511f59f36b228cb | 4,509 | Filmatic | Apache License 2.0 |
src/commonTest/kotlin/io/github/optimumcode/json/schema/assertions/general/JsonSchemaConstValidationTest.kt | OptimumCode | 665,024,908 | false | {"Kotlin": 494076} | package io.github.optimumcode.json.schema.assertions.general
import io.github.optimumcode.json.pointer.JsonPointer
import io.github.optimumcode.json.schema.JsonSchema
import io.github.optimumcode.json.schema.ValidationError
import io.github.optimumcode.json.schema.base.KEY
import io.kotest.core.spec.style.FunSpec
impo... | 7 | Kotlin | 0 | 9 | 61e36f29adaf6538fd38307296cc5dd1339e1ffa | 2,200 | json-schema-validator | MIT License |
eprefs/src/androidTest/java/com/muddassir/eprefs/TestObject.kt | muddassir235 | 292,286,063 | false | null | package com.muddassir.eprefs
data class TestObject(
val boolean: Boolean = true,
val int: Int = 0,
val long: Long = 0L,
val float: Float = 1.0f,
val string: String = "",
val booleanArray: Array<Boolean> = arrayOf(false, false, false),
val intArray: Array<Int> = arrayOf(1, 2, 3),
val lon... | 0 | Kotlin | 0 | 2 | 20a4d0d00910939942467337035cb26fc70015e4 | 1,859 | eprefs | MIT License |
src/main/kotlin/engine/input/GestureManager.kt | CozmicGames | 580,563,255 | false | {"Kotlin": 612441} | package engine.input
import com.cozmicgames.Kore
import com.cozmicgames.input
import com.cozmicgames.input.InputListener
import com.cozmicgames.utils.Disposable
import com.cozmicgames.utils.Time
import com.cozmicgames.utils.Updateable
import com.cozmicgames.utils.maths.Rectangle
import com.cozmicgames.utils.maths.Vect... | 0 | Kotlin | 0 | 0 | bf27eeb3d4e4520f91a54549be9de6fe84446e6f | 2,841 | Sandbox2D | MIT License |
src/jsMain/kotlin/presentation/features/chat/components/MessageBubble.kt | Tanexc | 667,134,735 | false | null | package presentation.features.chat.components
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Icon
import androidx.compose.material3.IconB... | 0 | Kotlin | 0 | 3 | 27bc23f5ab9dbc8ec7da5fc7812555bbbcaeb0a7 | 5,424 | ComposeWebCakes | Apache License 2.0 |
MobileApp/app/src/main/java/com/example/mobileassignment3/SubjectDatabase.kt | VincentTech8 | 844,326,782 | false | {"Kotlin": 91647} | package com.example.mobileassignment3
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
@Database(entities = [Subject::class], version = 2, exportSchema = false)
// Abstract class representing the Room database instance for Subject entities
abstra... | 0 | Kotlin | 0 | 0 | f9564a48b5e687d1712ea27ba0100858adb48f34 | 1,381 | FIT5046-mobileapp-project | MIT License |
src/main/kotlin/cn/rtast/fancybot/util/str/StringFormatter.kt | RTAkland | 848,208,941 | false | {"Kotlin": 309459} | /*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/9/12
*/
package cn.rtast.fancybot.util.str
import java.awt.Graphics2D
import java.net.URLEncoder
import java.security.MessageDigest
fun setTruncate(origin: String, g2d: Graphics2D, maxWidth: Int = 500): String {
val fontMetrics = g2d.fontMetrics... | 0 | Kotlin | 0 | 1 | 7e851e831a471247d06353bf8e4067a9cbb4a1e5 | 1,812 | FancyBot | Apache License 2.0 |
app/src/main/java/com/thechance/clubs/di/NetworkModule.kt | Salmon-family | 569,890,321 | false | {"Kotlin": 837143} | package com.thechance.clubs.di
import com.common.remote.FirebaseCloudMessagingService
import com.devfalah.remote.AuthInterceptor
import com.devfalah.remote.ClubService
import com.devfalah.remote.DdosInterceptor
import com.google.firebase.firestore.FirebaseFirestore
import com.thechance.clubs.BuildConfig
import com.the... | 11 | Kotlin | 19 | 24 | 7589d73a400c78ecfa94b24d87189b4f5e01de9b | 4,107 | Clubs | Apache License 2.0 |
app/src/main/java/com/ayatkhraisat/mvp_example/data/DataSourceFactory.kt | AyatKhraisat | 158,123,741 | false | null | package com.ayatkhraisat.mvp_example.data
import androidx.lifecycle.MutableLiveData
import androidx.paging.DataSource
import com.ayatkhraisat.mvp_example.models.Model
import javax.inject.Inject
/**
* Created by Ayat khraisat on 2/12/19
* akhraisat@blessedtreeit.com
* <p>
* Project Name: MVP_Architecture
* <p>
... | 0 | Kotlin | 2 | 5 | bd8bd152431505fff2168af177f2e2554016af76 | 752 | MVP-Architecture | Apache License 2.0 |
server/src/main/kotlin/com/studystream/app/server/feature/ticket/routes/type/List.kt | ImpossibleAccuracy | 834,219,225 | false | {"Kotlin": 141133, "Dockerfile": 618} | package com.studystream.app.server.feature.ticket.routes.type
import com.studystream.app.domain.service.TicketService
import com.studystream.app.server.feature.ticket.Tickets
import com.studystream.app.server.mapper.toDto
import com.studystream.app.server.utils.endpoint
import com.studystream.app.server.utils.typeSafe... | 0 | Kotlin | 0 | 0 | a34321630eacff596bbcd117a292bd4a52429c49 | 936 | study-stream | The Unlicense |
src/main/kotlin/org/learning/by/example/reactive/kotlin/microservices/KotlinReactiveMS/services/SunriseSunsetServiceImpl.kt | wanglinsong | 93,335,816 | true | {"Kotlin": 68412, "Shell": 6468, "HTML": 5217, "Batchfile": 4994} | package org.learning.by.example.reactive.kotlin.microservices.KotlinReactiveMS.services
import org.learning.by.example.reactive.kotlin.microservices.KotlinReactiveMS.exceptions.GetSunriseSunsetException
import org.learning.by.example.reactive.kotlin.microservices.KotlinReactiveMS.model.GeoTimesResponse
import org.lear... | 0 | Kotlin | 0 | 0 | 4d4cb9d25c4ec540a38272e07da91213a3475658 | 2,516 | KotlinReactiveMS | MIT License |
jupyter-lib/lib/src/main/kotlin/jupyter/kotlin/cellExtensions.kt | Kotlin | 63,066,291 | false | {"Kotlin": 864116, "JavaScript": 40044, "CSS": 16243, "Python": 14915, "Jupyter Notebook": 1290, "Shell": 74} | package jupyter.kotlin
import org.jetbrains.kotlinx.jupyter.api.ExecutionCallback
import org.jetbrains.kotlinx.jupyter.api.KotlinKernelHost
import org.jetbrains.kotlinx.jupyter.api.ResultsAccessor
import org.jetbrains.kotlinx.jupyter.api.libraries.CodeExecution
import org.jetbrains.kotlinx.jupyter.api.libraries.Jupyte... | 65 | Kotlin | 108 | 984 | 94794065fd0a616b757a8cabf4574bb63344facb | 3,419 | kotlin-jupyter | Apache License 2.0 |
gradle/build-logic/convention/src/main/kotlin/io/filmtime/gradle/plugins/FeaturePlugin.kt | moallemi | 633,160,161 | false | null | package io.filmtime.gradle.plugins
import io.filmtime.gradle.libs
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.dependencies
import org.gradle.kotlin.dsl.project
class FeaturePlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
pluginMan... | 21 | null | 14 | 87 | ad3eeed30bed20216a9fa12e34f06e43b70a74cc | 927 | Film-Time | MIT License |
GithubBrowserSample/feature/login/src/main/java/com/example/feature/login/LoginHelper.kt | MinamiMunakata | 337,965,646 | false | null | package com.example.feature.login
import android.content.Intent
import android.net.Uri
import com.example.data.api.AccessTokenParameter
import com.example.data.api.GithubAuthService
import com.example.data.repository.AccessTokenRepository
import com.example.envvar.EnvVar
import com.example.model.AccessToken
import tim... | 0 | Kotlin | 0 | 0 | 11aff18e4f1ea624c8c6b6b81ab50620eb13e15d | 1,673 | droidkaigi-architecture-components-sample | Apache License 2.0 |
kotlin/src/main/java/app/allever/android/sample/kotlin/KotlinMainFragment.kt | devallever | 522,186,250 | false | null | package app.allever.android.sample.kotlin
import app.allever.android.lib.common.FragmentActivity
import app.allever.android.lib.common.ListFragment
import app.allever.android.lib.common.ListViewModel
import app.allever.android.lib.common.adapter.TextAdapter
import app.allever.android.lib.common.databinding.FragmentLis... | 1 | Kotlin | 0 | 3 | ab06fa0373867048aa7dfa3ec56b3bf8abbe955d | 821 | AndroidSampleLibs | Apache License 2.0 |
src/jsMain/kotlin/mapbox/Mapbox.kt | dellisd | 597,549,419 | false | null | @file:JsModule("mapbox-gl")
@file:JsNonModule
@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS")
package mapbox
import geojson.Feature
import geojson.FeatureCollection
import geojson.Point
import org.khronos.webgl.ArrayBufferView
import ... | 0 | Kotlin | 1 | 1 | 0393b3eae4f14cb9c6579d2092f047734ce200c6 | 77,838 | compose-web-mapbox | MIT License |
walletlibrary/src/test/java/com/microsoft/walletlibrary/networking/entities/openid4vci/credentialmetadata/CredentialSubjectDefinitionTest.kt | microsoft | 567,422,889 | false | {"Kotlin": 1363558} | package com.microsoft.walletlibrary.networking.entities.openid4vci.credentialmetadata
import android.content.res.Configuration
import android.content.res.Resources
import androidx.core.os.ConfigurationCompat
import androidx.core.os.LocaleListCompat
import io.mockk.every
import io.mockk.mockk
import io.mockk.mockkStati... | 11 | Kotlin | 8 | 20 | 10881fd0cad0613cfc2194c12eeda0b26f2cd801 | 5,823 | entra-verifiedid-wallet-library-android | MIT License |
src/jvmMain/kotlin/ess/papyrus/Variable.kt | jfmherokiller | 366,592,978 | false | null | /*
* Copyright 2016 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 0 | Kotlin | 0 | 0 | cff93de2d16b33afc4cc046347d856cb6281795a | 5,798 | ResaverResaved | Apache License 2.0 |
src/main/kotlin/de/msiemens/educomp/front/semck/LValueCheck.kt | msiemens | 315,987,850 | false | null | package de.msiemens.educomp.front.semck
import de.msiemens.educomp.driver.Driver
import de.msiemens.educomp.front.ast.*
object LValueCheck {
fun run(program: Program) {
object : Visitor() {
override fun visitExpression(expression: Node<Expression>) {
when (expression.value) {
... | 0 | Kotlin | 0 | 1 | c72a765c9234e009b5939394d7d107f14926254a | 911 | RusTiny-JVM | MIT License |
src/main/kotlin/de/msiemens/educomp/front/semck/LValueCheck.kt | msiemens | 315,987,850 | false | null | package de.msiemens.educomp.front.semck
import de.msiemens.educomp.driver.Driver
import de.msiemens.educomp.front.ast.*
object LValueCheck {
fun run(program: Program) {
object : Visitor() {
override fun visitExpression(expression: Node<Expression>) {
when (expression.value) {
... | 0 | Kotlin | 0 | 1 | c72a765c9234e009b5939394d7d107f14926254a | 911 | RusTiny-JVM | MIT License |
sharing-service/src/de/faweizz/topicservice/service/polling/Pollable.kt | faweizz | 390,689,980 | false | null | package de.faweizz.topicservice.service.polling
interface Pollable {
val id: String
val actorsToAccept: Set<String>
val acceptedActors: MutableSet<String>
val declinedActors: MutableSet<String>
fun canAccept(actor: String): Boolean {
return actorsToAccept.contains(actor)
&... | 0 | Kotlin | 0 | 0 | b5b494e81e6643c86d51f884309497bc78715f36 | 948 | florescence | Apache License 2.0 |
presentation/viewModel/src/main/java/com/example/viewmodel/favourites/FavouritesUiEffect.kt | Abdallahx3x | 672,252,032 | false | {"Kotlin": 179589} | package com.example.viewmodel.favourites
import com.example.viewmodel.base.BaseViewModel
sealed interface FavouritesUiEffect : BaseViewModel.BaseUiEffect {
data class NavigateToDetails(
val newsItem: String
) : FavouritesUiEffect
} | 0 | Kotlin | 1 | 7 | 6a8e3157efabaa72fbd2419e03726f83e6b6107c | 249 | NewsHive | MIT License |
MessageApp/app/src/main/java/ge/tmaisuradze/Main/MainInteractor.kt | tmspaceape | 516,868,120 | false | null | package ge.tmaisuradze.Main
import android.util.Log
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.database.ChildEventListener
import com.google.firebase.database.DataSnapshot
import com.google.firebase.database.DatabaseError
import com.google.firebase.database.FirebaseDatabase
import com.goog... | 0 | Kotlin | 0 | 0 | 7cae8ed925e46d2e5937964a81ec167ba99eefca | 4,534 | MessageApp | MIT License |
SpringBootSampleProjects/ShareLinks/src/main/kotlin/com/bschandramohan/app/sharelinks/api/LinkApi.kt | bschandramohan | 168,417,540 | false | null | package com.bschandramohan.app.sharelinks.api
class LinkApi | 0 | Kotlin | 0 | 0 | d97e948a85b905790e8a6d712c403d043ba4e0ef | 60 | SpringConnect | MIT License |
src/main/kotlin/com/bajdcc/OP/grammar/handler/IPatternHandler.kt | bajdcc | 32,624,604 | false | {"Kotlin": 1131761, "HTML": 42480, "CSS": 37889, "JavaScript": 2703} | package com.bajdcc.OP.grammar.handler
import com.bajdcc.util.lexer.token.Token
/**
* 归约动作处理器
*
* @author bajdcc
*/
interface IPatternHandler {
/**
* 获取归约动作描述
*
* @return 动作描述
*/
val patternName: String
/**
* 处理
*
* @param tokens 有序终结符(用于判定)
* @param symbols 有... | 0 | Kotlin | 20 | 65 | 90b19af98da99b53bba5b3269ad5666df7c05e49 | 426 | jMiniLang | MIT License |
src/test/kotlin/com/minskrotterdam/airquality/services/MeasurementsServiceIT.kt | dmitrychebayewski | 245,884,429 | false | null | package com.minskrotterdam.airquality.services
import com.google.gson.reflect.TypeToken
import com.minskrotterdam.airquality.models.measurements.Data
import com.minskrotterdam.airquality.routes.MEASUREMENTS_PATH
import com.minskrotterdam.airquality.routes.MEASUREMENT_REGION_PATH
import com.minskrotterdam.airquality.ro... | 0 | Kotlin | 0 | 0 | 4aef42fff44875a240eccd41f6e72848aaad5d91 | 7,453 | airrotterdam-api | Apache License 2.0 |
sykepenger-model/src/test/kotlin/no/nav/helse/utbetalingslinjer/OppdragBuilderTest.kt | fredgeorge | 342,671,617 | true | {"Kotlin": 2975603, "Dockerfile": 67} | package no.nav.helse.utbetalingslinjer
import no.nav.helse.person.Aktivitetslogg
import no.nav.helse.serde.reflection.ReflectInstance.Companion.get
import no.nav.helse.testhelpers.*
import no.nav.helse.utbetalingslinjer.Fagområde.SykepengerRefusjon
import no.nav.helse.utbetalingstidslinje.MaksimumUtbetaling
import org... | 0 | null | 0 | 0 | 5b9dfb0a41b9415f49aa16a238637769d40dadea | 6,674 | helse-spleis | MIT License |
play-block-handler/src/main/kotlin/org/example/bh/demos/basic/BasicKotlinDemo.kt | dowenliu-xyz | 808,693,582 | false | {"Gradle Kotlin DSL": 13, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 2, "Java": 399, "YAML": 4, "INI": 6, "Kotlin": 354, "Java Properties": 1} | package org.example.bh.demos.basic
import com.alibaba.csp.sentinel.annotation.SentinelResource
import com.alibaba.csp.sentinel.slots.block.BlockException
import org.example.bh.biz.Greeting
import org.example.bh.biz.Greeting.doBlockHandle
import org.springframework.stereotype.Component
/**
* case: annotation-base bea... | 0 | Java | 0 | 1 | 8b6df6f693a0c7efa25c3a7d634823d7b8ec4915 | 767 | sentinel-plays | Apache License 2.0 |
app/src/main/java/com/example/pillee/jetpackcompnavigation/model/Users.kt | 20Anna00 | 561,843,560 | false | {"Kotlin": 120615} | package com.example.pillee.jetpackcompnavigation.model
data class Users(
val id: String,
val name: String,
val email: String
){
constructor() : this("","", "")
}
| 0 | Kotlin | 0 | 0 | c1baafc65772a54a1d6ec5636f7fbe261975bb05 | 181 | PAMN_App | MIT License |
integrationTest/src/jvmMain/kotlin/main.kt | ozdroid | 414,037,561 | true | {"Kotlin": 38068, "HTML": 290} | import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.window.*
import app.softwork.routingcompose.*
fun main() = application {
repeat(2) {
var isOpen by remember { mutableStateOf(true) }
if (isOpen) {
... | 0 | null | 0 | 0 | 77256e1e078345cf1386d997da22fb722f6f9a2a | 1,293 | routing-compose | Apache License 2.0 |
worldwind/src/jvmCommonMain/kotlin/earth/worldwind/util/kgl/Types.kt | WorldWindEarth | 488,505,165 | false | {"Kotlin": 2798182, "JavaScript": 459619, "HTML": 108987, "CSS": 8778} | package earth.worldwind.util.kgl
actual data class KglShader(val id: Int = 0) {
actual companion object{ actual val NONE = KglShader() }
actual fun isValid() = id != 0
}
actual data class KglProgram(val id: Int = 0) {
actual companion object{ actual val NONE = KglProgram() }
actual fun isValid() = id ... | 22 | Kotlin | 12 | 98 | b5ee69cdd30f6c6a90bf3bec638a3bc5bdb0fbc2 | 942 | WorldWindKotlin | Apache License 2.0 |
app/src/main/java/com/mertyazi/mertyazi/details/business/entities/MovieDetails.kt | MertYazi | 581,894,945 | false | null | package com.mertyazi.mertyazi.details.business.entities
data class MovieDetails(
val backdrop_path: String?,
val genres: List<Genre>?,
val homepage: String?,
val id: Int?,
val imdb_id: String?,
val overview: String?,
val poster_path: String?,
val release_date: String?,
val runtime: ... | 0 | Kotlin | 0 | 1 | 16d41049c367fb010500a57c9f0ec46f4c162676 | 443 | MoviesApp | Apache License 2.0 |
app/src/main/java/com/allat/mboychenko/silverthread/domain/interactor/AppSettingsStorageInteractor.kt | glmcz | 269,649,668 | true | {"Kotlin": 494342} | package com.allat.mboychenko.silverthread.domain.interactor
import com.allat.mboychenko.silverthread.data.storage.preferences.Storage
import java.util.*
class AppSettingsStorageInteractor(private val storage: Storage) : AppSettingsStorage {
override fun appFirstLaunch(): Boolean {
val firstLaunch = stora... | 0 | null | 0 | 0 | 4928d888e025188ab854f59121b54acfc4c06265 | 1,096 | SilverThread | Apache License 2.0 |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/areas/spawns/spawns_13122.plugin.kts | 2011Scape | 578,880,245 | false | {"Kotlin": 8904349, "Dockerfile": 1354} | package gg.rsmod.plugins.content.areas.spawns
spawn_npc(
npc = Npcs.BASILISK,
x = 3264,
z = 4256,
height = 0,
walkRadius = 5,
direction = Direction.NORTH,
static = false,
) // Basilisk
| 39 | Kotlin | 143 | 34 | e5400cc71bfa087164153d468979c5a3abc24841 | 214 | game | Apache License 2.0 |
tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/edit/abstracts/EditLinkPreviewOptionsContainer.kt | InsanusMokrassar | 163,152,024 | false | {"Kotlin": 3243076, "Shell": 373} | package dev.inmo.tgbotapi.requests.edit.abstracts
import dev.inmo.tgbotapi.abstracts.types.LinkPreviewOptionsContainer
interface EditLinkPreviewOptionsContainer : LinkPreviewOptionsContainer
| 13 | Kotlin | 29 | 358 | 482c375327b7087699a4cb8bb06cb09869f07630 | 193 | ktgbotapi | Apache License 2.0 |
app/src/main/java/com/example/sunnyweather/logic/network/ServiceCreator.kt | LYHazard | 475,024,760 | false | {"Kotlin": 24114} | package com.example.sunnyweather.logic.network
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
object ServiceCreator {
private const val BASE_URL = "https://api.caiyunapp.com/"
private val retrofit = Retrofit.Builder().baseUrl(BASE_URL).addConverterFactory(
GsonConverter... | 0 | Kotlin | 0 | 0 | 98efcfd88e3705ab1530c42991f49a1ee1ce4d21 | 493 | SunnyWeather | Apache License 2.0 |
app/src/main/java/com/ps/omarmattr/qalby/ui/viewmodel/MainViewModel.kt | omarmattr | 374,086,593 | false | null | package com.ps.omarmattr.qalby.ui.viewmodel
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import com.ps.omarmattr.qalby.repository.LocationRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
@HiltViewModel
class ... | 2 | Kotlin | 0 | 3 | 23b7c09e3d46e73a7ebf8435a73b8f1daba43bf4 | 703 | Qalby | Apache License 2.0 |
src/main/kotlin/com/example/acl/domains/profiles/models/enums/MaritalStatus.kt | teambankrupt | 292,072,589 | false | {"JavaScript": 6283406, "HTML": 4192901, "CSS": 663888, "SCSS": 166369, "Kotlin": 111982, "CoffeeScript": 83631, "Java": 13686, "PHP": 2157, "Less": 484, "Shell": 444} | package com.example.acl.domains.profiles.models.enums
import com.fasterxml.jackson.annotation.JsonProperty
/**
* @project IntelliJ IDEA
* @author mir00r on 7/3/21
*/
enum class MaritalStatus(
@JsonProperty("label") var label: String
) {
MARRIED("Married"),
UNMARRIED("Unmarried"),
DIVORCED("Divorce... | 0 | JavaScript | 0 | 2 | 73ed61a63b4d23d40daaee5ca7ac9829d3ede5df | 422 | acl | Apache License 2.0 |
apps/etterlatte-migrering/src/main/kotlin/migrering/verifisering/Verifiserer.kt | navikt | 417,041,535 | false | {"Kotlin": 5056581, "TypeScript": 1175431, "Handlebars": 21474, "Shell": 10666, "HTML": 1776, "CSS": 598, "Dockerfile": 587} | package no.nav.etterlatte.migrering.verifisering
import kotlinx.coroutines.runBlocking
import no.nav.etterlatte.funksjonsbrytere.FeatureToggleService
import no.nav.etterlatte.libs.common.logging.samleExceptions
import no.nav.etterlatte.libs.common.pdl.PersonDTO
import no.nav.etterlatte.libs.common.person.Folkeregister... | 18 | Kotlin | 0 | 5 | faf599c009e392d0042b85951c46d4bb64e7ab0b | 9,920 | pensjon-etterlatte-saksbehandling | MIT License |
utils/src/main/java/com/kayu/utils/permission/AfterPermissionGranted.kt | MySelfKiller | 587,607,611 | false | null | package com.kayu.utils.permission
import java.lang.annotation.Retention
import java.lang.annotation.RetentionPolicy
@Retention(RetentionPolicy.RUNTIME)
@Target(
AnnotationTarget.FUNCTION,
AnnotationTarget.PROPERTY_GETTER,
AnnotationTarget.PROPERTY_SETTER
)
annotation class AfterPermissionGranted(val value... | 0 | Kotlin | 0 | 0 | 3bd7769ec60e9f1c782c47b452536417e7b6af97 | 326 | CarOwnerPayBusiness | Apache License 2.0 |
runtime/src/main/java/io/novafoundation/nova/runtime/multiNetwork/asset/remote/model/EVMInstanceRemote.kt | novasamatech | 415,834,480 | false | {"Kotlin": 7663256, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.runtime.multiNetwork.asset.remote.model
class EVMInstanceRemote(
val chainId: String,
val contractAddress: String
)
| 17 | Kotlin | 5 | 8 | 278eb6da5bcbff8b1d8947534099d6f9ba543357 | 156 | nova-wallet-android | Apache License 2.0 |
src/jsBackendMain/kotlin/de/robolab/client/app/controller/SystemController.kt | pixix4 | 243,975,894 | false | null | package de.robolab.client.app.controller
import de.robolab.client.utils.ContextMenu
import de.westermann.kobserve.base.ObservableValue
import de.westermann.kobserve.property.constObservable
actual object SystemController {
actual val memoryUsageProperty: ObservableValue<String> = constObservable("")
actual f... | 4 | Kotlin | 0 | 2 | 1f20731971a9b02f971f01ab8ae8f4e506ff542b | 458 | robolab-renderer | MIT License |
src/main/kotlin/dev/lunarcoffee/beanly/exts/commands/ConfigCommands.kt | LunarCoffee | 184,699,115 | false | null | package dev.lunarcoffee.beanly.exts.commands
import dev.lunarcoffee.beanly.consts.GUILD_OVERRIDES
import dev.lunarcoffee.beanly.exts.commands.utility.GO
import dev.lunarcoffee.beanly.exts.commands.utility.GuildOverrides
import dev.lunarcoffee.beanly.trimToDescription
import dev.lunarcoffee.framework.api.dsl.command
im... | 0 | Kotlin | 0 | 0 | 8f428aa32dd7b69903bf57dab67e248fdbda688d | 3,559 | Beanly | MIT License |
app/src/main/java/com/example/abetterhusbandv2/repository/AccountService.kt | ImAngelParraga | 497,082,602 | false | null | package com.example.abetterhusbandv2.repository
interface AccountService {
fun createAnonymousAccount(onResult: (Throwable?, String?) -> Unit)
fun authenticate(email: String, password: String, onResult: (Throwable?) -> Unit)
fun createAccount(email: String, password: String, onResult: (Throwable?) -> Unit)... | 0 | Kotlin | 0 | 1 | c577c33373c7ea555ca63f71e70fef49af6af68b | 384 | ABetterHusband | Apache License 2.0 |
Codelabs/Dependency Injection/Koin/MySimpleLogin/app/src/main/java/com/dicoding/mysimplelogin/MyApplication.kt | patriciafiona | 731,611,881 | false | {"Kotlin": 298580} | package com.dicoding.mysimplelogin
import android.app.Application
import org.koin.android.ext.koin.androidContext
import org.koin.core.context.startKoin
open class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
startKoin {
androidContext(this@MyApplication)
... | 0 | Kotlin | 0 | 1 | 4e29e2e206d92ac6c3e041909c9120e85685938a | 372 | Dicoding---Menjadi-Android-Developer-Expert | MIT License |
android/src/main/kotlin/com/example/flutter_opentok/TokBoxViewController.kt | spiritinlife | 328,997,370 | true | {"Swift": 32106, "Dart": 31220, "Kotlin": 16989, "Ruby": 2766, "Objective-C": 565} | package com.example.flutter_opentok
import android.content.Context
import android.graphics.Color
import android.widget.FrameLayout
import io.flutter.plugin.common.BinaryMessenger
import io.flutter.plugin.common.EventChannel
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
class... | 0 | Swift | 0 | 0 | b345c53fe760f1ecc177b947d6ebbc7a0ff4c2f2 | 3,491 | flutter_opentok | MIT License |
src/main/kotlin/co/nums/intellij/aem/htl/documentation/HtlExpressionOptionDocGenerator.kt | karollewandowski | 74,054,504 | false | null | package co.nums.intellij.aem.htl.documentation
import co.nums.intellij.aem.htl.definitions.HtlExpressionOption
import com.intellij.psi.PsiElement
object HtlExpressionOptionDocGenerator {
private val expressionOptionsDocs = HtlExpressionOption.values().associate { Pair(it.identifier, it.description) }
fun ge... | 0 | Kotlin | 8 | 26 | 9e76302b897bddb9ce6721d67787e92be575794f | 392 | aem-intellij-plugin | MIT License |
kotlin/simple-hexagonal/adapters/out/external/src/main/kotlin/com/example/external/config/ExternalAdapterConfig.kt | Gummybearr | 461,541,289 | false | null | package com.example.external.config
import com.example.external.adapter.AdvertiserNoticePortAdapter
import com.example.application.port.out.AdvertiserNoticePort
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
@Configuration
class ExternalAdapterConfig {
... | 0 | Kotlin | 3 | 19 | e627e0ac9b03aa38ad388b55603e87b44bbaeec0 | 437 | random-kata | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsworkload/integration/offenderManager/GetOverviewForOffenderManager.kt | ministryofjustice | 378,843,394 | false | {"PLpgSQL": 472290, "Kotlin": 436140, "Dockerfile": 1715} | package uk.gov.justice.digital.hmpps.hmppsworkload.integration.offenderManager
import org.junit.jupiter.api.Test
import org.springframework.data.repository.findByIdOrNull
import uk.gov.justice.digital.hmpps.hmppsworkload.domain.CaseType
import uk.gov.justice.digital.hmpps.hmppsworkload.domain.Tier
import uk.gov.justic... | 14 | PLpgSQL | 0 | 0 | 93ad98d7641fa391aae2753b3cefd38b543f1e74 | 9,996 | hmpps-workload | MIT License |
slack/adapter/src/commonMain/kotlin/com/gchristov/thecodinglove/slack/adapter/http/mapper/SlackInteractivityMapper.kt | gchristov | 533,472,792 | false | {"Kotlin": 453742, "CSS": 87216, "HTML": 54731, "Dockerfile": 2872, "Shell": 1398, "JavaScript": 742} | package com.gchristov.thecodinglove.slack.adapter.http.mapper
import com.gchristov.thecodinglove.slack.adapter.http.model.ApiSlackInteractivity
import com.gchristov.thecodinglove.slack.adapter.pubsub.model.SlackInteractivityPubSubMessage
internal fun ApiSlackInteractivity.toPubSubMessage() = SlackInteractivityPubSubM... | 0 | Kotlin | 0 | 3 | 8aec4bdad826c1bbddc2ca041955f05847312ab8 | 1,746 | thecodinglove-kotlinjs | Apache License 2.0 |
modules/ui/src/main/kotlin/com/harleyoconnor/gitdesk/ui/repository/ignored/RuleCellController.kt | Harleyoc1 | 437,374,163 | false | {"Kotlin": 627023, "CSS": 15559, "Java": 5354} | package com.harleyoconnor.gitdesk.ui.repository.ignored
import com.harleyoconnor.gitdesk.git.repository.IgnoreFile
import com.harleyoconnor.gitdesk.ui.UIResource
import com.harleyoconnor.gitdesk.ui.view.ResourceViewLoader
import com.harleyoconnor.gitdesk.ui.view.ViewController
import com.harleyoconnor.gitdesk.ui.view.... | 0 | Kotlin | 0 | 0 | 88e49e1e3f1072fd16e7651dc716b891c50cfa71 | 3,036 | GitDesk | MIT License |
app/src/main/java/br/com/angelcomp/noteapp/feature_note/data/repository/NoteRepositoryImpl.kt | angelcomp | 440,534,711 | false | {"Kotlin": 41059} | package br.com.angelcomp.noteapp.feature_note.data.repository
import br.com.angelcomp.noteapp.feature_note.data.data_source.NoteDao
import br.com.angelcomp.noteapp.feature_note.domain.model.Note
import br.com.angelcomp.noteapp.feature_note.domain.repository.NoteRepository
import kotlinx.coroutines.flow.Flow
class Not... | 0 | Kotlin | 0 | 1 | cee8cfd9d785c8f80633bacab76b793d3e19fd67 | 742 | NoteApp | MIT License |
server/src/main/kotlin/nl/knaw/huc/annorepo/health/ServerHealthCheck.kt | knaw-huc | 473,687,323 | false | {"Kotlin": 396803, "Java": 27543, "Makefile": 7032, "Shell": 6521, "Dockerfile": 577, "HTML": 247} | package nl.knaw.huc.annorepo.health
import com.codahale.metrics.health.HealthCheck
class ServerHealthCheck : HealthCheck() {
override fun check(): Result? =
Result.healthy()
}
| 19 | Kotlin | 1 | 8 | 6b525ba2609681350b90e294196ab2cacca6daad | 192 | annorepo | Apache License 2.0 |
src/main/kotlin/no/nav/hjelpemidler/soknad/mottak/river/VedtaksresultatFraInfotrygd.kt | navikt | 326,995,575 | false | {"Kotlin": 178959, "Dockerfile": 217} | package no.nav.hjelpemidler.soknad.mottak.river
import io.github.oshai.kotlinlogging.KotlinLogging
import no.nav.helse.rapids_rivers.JsonMessage
import no.nav.helse.rapids_rivers.MessageContext
import no.nav.helse.rapids_rivers.RapidsConnection
import no.nav.helse.rapids_rivers.River
import no.nav.helse.rapids_rivers.... | 0 | Kotlin | 0 | 0 | 92678f121bfd1403c795820327f21c0a881a889f | 4,589 | hm-soknadsbehandling | MIT License |
atomicswapcore/src/main/kotlin/io/horizontalsystems/atomicswapcore/SwapFactory.kt | horizontalsystems | 197,322,282 | false | null | package io.horizontalsystems.atomicswapcore
import java.security.MessageDigest
import java.util.*
class SwapFactory(private val db: SwapDatabase) {
val supportedCoins get() = swapBlockchainCreators.keys
private val swapBlockchainCreators = mutableMapOf<String, ISwapBlockchainCreator>()
fun registerSwapB... | 0 | Kotlin | 10 | 17 | 235472d4c58ab9abe4a6ef0e2e16cc23513b5af7 | 5,464 | atomic-swap-kit-android | MIT License |
sdk/src/main/java/com/seamlesspay/ui/utils/ViewExt.kt | seamlesspay | 235,817,887 | false | {"Kotlin": 190728, "Java": 131412} | package com.seamlesspay.ui.utils
import android.widget.TextView
fun TextView.setCursorColor(scale: Float) {
val resultTextSize = textSize * scale
textSize = resultTextSize
} | 11 | Kotlin | 1 | 2 | ceefb734015ad35bb8a556ba6b2933687b59ef7f | 180 | seamlesspay-android | MIT License |
app/src/main/java/com/example/chatbot/constants.kt | sarvesh8073 | 835,220,266 | false | {"Kotlin": 12250} | package com.example.chatbot
object constants {
val apikey= "ADD YOUR API KEY HERE"
} | 0 | Kotlin | 0 | 0 | 0279bd1e470d01c5b4c6d6f69a1747d110f68e25 | 89 | Chat-Bot-Android-App | MIT License |
src/main/kotlin/com/valaphee/tesseract/inventory/item/craft/CraftingEventPacket.kt | valaphee | 400,115,259 | false | null | /*
* MIT License
*
* Copyright (c) 2021, Valaphee.
*
* 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, modif... | 0 | null | 2 | 19 | 184ad06676128f05d4a81534e183192af60eed00 | 3,215 | tesseract | MIT License |
kompot/src/main/kotlin/com/revolut/kompot/navigable/vc/test/ModelStateTestExt.kt | revolut-mobile | 488,970,565 | false | {"Kotlin": 795294} | /*
* Copyright (C) 2022 Revolut
*
* 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 ... | 0 | Kotlin | 5 | 100 | b0da9ef98e13f0e7b62f96a4b9a6275e56a66555 | 1,210 | kompot | Apache License 2.0 |
app/src/main/java/ss/team16/nthulostfound/di/ApolloModule.kt | NTHULostFound | 503,250,151 | false | null | package ss.team16.nthulostfound.di
import com.apollographql.apollo3.ApolloClient
import com.apollographql.apollo3.network.okHttpClient
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import okhttp3.OkHttpClient
import ss.team16.nthulostfound.dom... | 0 | Kotlin | 0 | 2 | 5b4b880abb320e5ebd2b03c3cc1da4a94012abcc | 1,246 | NTHULostFound | MIT License |
app/src/main/java/com/example/gdgfinder/add/AddGdgFragment.kt | luispolippo | 364,013,558 | false | null | package com.example.gdgfinder.add
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import com.example.gdgfinder.R
import com.example.gdg... | 0 | Kotlin | 0 | 0 | c275db9ffc22d4ffcd6eab5a7e25a5a1fb35773d | 1,489 | GDG-Finder | MIT License |
src/main/kotlin/org/vitrivr/cottontail/database/queries/Node.kt | medha-3102 | 352,125,677 | true | {"Kotlin": 1692036, "Dockerfile": 478} | package org.vitrivr.cottontail.database.queries
import org.vitrivr.cottontail.database.queries.binding.BindingContext
import org.vitrivr.cottontail.model.values.types.Value
/**
* A [Node] is an object in the tree-like structure of a query plan, be it logical, physical or operational.
*
* @author <NAME>
* @version... | 0 | null | 0 | 0 | 8d6e3c2185d54c2501fe4ef0e15431a6a76dd5f6 | 1,217 | cottontaildb | MIT License |
library-filekit/src/appleMain/kotlin/dev/zwander/kotlin/file/filekit/FileKitExtensions.apple.kt | zacharee | 845,830,932 | false | {"Kotlin": 82786} | package dev.zwander.kotlin.file.filekit
import dev.zwander.kotlin.file.IPlatformFile
import io.github.vinceglb.filekit.core.PlatformDirectory
import io.github.vinceglb.filekit.core.PlatformFile
actual fun PlatformFile.toKmpFile(): IPlatformFile {
return dev.zwander.kotlin.file.PlatformFile(nsUrl)
}
actual fun Pl... | 0 | Kotlin | 0 | 3 | 35e9981dafef306361fa489996eb4015d2c6f8d0 | 422 | KMPFile | MIT License |
sam-kotlin-core/src/main/kotlin/software/elborai/api/services/blocking/CheckDepositServiceImpl.kt | DefinitelyATestOrg | 787,029,213 | false | {"Kotlin": 12996764, "Shell": 3638, "Dockerfile": 366} | // File generated from our OpenAPI spec by Stainless.
package software.elborai.api.services.blocking
import com.fasterxml.jackson.databind.json.JsonMapper
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonProperty
import kotlin.LazyThreadSafetyMode.PUBLICATION
import java... | 1 | Kotlin | 0 | 0 | 3a5229b8bc5cf400f07efbd41e00b9cf40663f97 | 5,206 | sam-kotlin | Apache License 2.0 |
MythicDoors/app/src/main/java/org/helios/mythicdoors/model/entities/Jackpot.kt | Dazdwc | 697,206,895 | false | {"Kotlin": 348153} | package org.helios.mythicdoors.model.entities
import com.google.firebase.Timestamp
import com.squareup.moshi.Json
data class Jackpot(
@Json(name = "pot")
private val pot: Long,
@Json(name = "timestamp")
private val timestamp: Timestamp
) {
companion object {
fun create(
pot: Lo... | 0 | Kotlin | 0 | 1 | 498a86609267122e9e20c95c49d803beecf2815b | 904 | AppNativas | Creative Commons Zero v1.0 Universal |
kotlin-in-action/src/object_keyword/ObjectKeywordTest4.kt | chiclaim | 97,095,916 | false | null | package object_keyword
/**
* Desc: companion object 实现接口 演示
* Created by Chiclaim on 2018/9/20.
*/
interface IAnimal {
fun eat()
}
class ObjectKeywordTest4 {
companion object : IAnimal {
override fun eat() {
println("eating apple")
}
}
}
fun feed(animal: IAnimal) {
an... | 0 | Kotlin | 10 | 25 | da08018c2fe20595293a4dbb1a08de75c3db3042 | 561 | KotlinTutorials | Apache License 2.0 |
app/src/main/java/com/keridano/soccersim/extension/LiveDataExtension.kt | keridano | 489,078,382 | false | null | package com.keridano.soccersim.extension
import androidx.lifecycle.MutableLiveData
/**
* Extension used to ensure null safety when posting MutableLiveData values
*/
inline fun <T> MutableLiveData<T>?.reassign(mapper: (T) -> (T)) {
this?.value?.let { v ->
this.postValue(mapper(v))
}
} | 0 | Kotlin | 0 | 0 | e2917b70246c42dd0c1b147270b8cf643ec1c96a | 304 | Soccer-Sim | MIT License |
app/src/main/java/com/example/habit/domain/UseCases/SocialUseCase/GetMembersUseCase.kt | vickatGit | 663,121,210 | false | {"Kotlin": 482474, "Java": 4691} | package com.example.habit.domain.UseCases.SocialUseCase
import com.example.habit.domain.Repository.SocialRepo
import com.example.habit.domain.models.Follow.Follow
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class GetMembersUseCase @Inject constructor(
private val socialRepo: SocialRepo
) {
... | 0 | Kotlin | 0 | 0 | 67559162f6501881b4fbd9ff807e6e13023fc087 | 425 | HB | MIT License |
composeApp/src/commonMain/kotlin/org/dev/http/util/JsonUtil.kt | 13022631363 | 753,168,671 | false | {"Kotlin": 38969} | package org.dev.http.util
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
fun json (prettyPrint: Boolean, ignoreUnknownKeys: Boolean): Json
{
return Json {
this.prettyPrint = prettyPrint
this.ignoreUnknownKeys = ignoreUnknownKeys
this.isLenient = true
... | 0 | Kotlin | 0 | 0 | abe3067f2f69db319d23ad1876d47cbbb2e8d82a | 650 | YuanqiQishi | Apache License 2.0 |
app/src/main/java/com/rami/koroutinesdemo/ui/models/SimpleMovieItem.kt | rami-de | 214,674,311 | false | null | package com.rami.koroutinesdemo.ui.models
data class SimpleMovieItem(val title: String = "Some movie",
val posterUrl: String = "Some url",
val rating: String = "8.3",
val releaseYear: String = "2018",
val id: In... | 0 | Kotlin | 0 | 0 | 2b748717e49ead520bc5c4f2b247b4e7fc826f83 | 326 | KoroutinesDemo | MIT License |
src/main/kotlin/com/github/pawelkowalski92/aoc/day2/game/GameValidator.kt | pawelkowalski92 | 726,175,728 | false | {"Kotlin": 15947} | package com.github.pawelkowalski92.aoc.day2.game
class GameValidator(
private val maximumDraw: Draw
) {
fun isGamePossible(game: Game): Boolean = game.draws.all(maximumDraw::contains)
} | 0 | Kotlin | 0 | 0 | a12796ea2e0cd5ef674311b284e5ee2aa65b13be | 196 | advent-of-code-2023 | Apache License 2.0 |
contracts/src/main/kotlin/com/template/contracts/BoardContract.kt | rogersanick | 195,434,318 | true | {"Kotlin": 70239, "HTML": 2045, "JavaScript": 1722} | package com.template.contracts
import com.template.states.BoardState
import net.corda.core.contracts.CommandData
import net.corda.core.contracts.Contract
import net.corda.core.contracts.requireSingleCommand
import net.corda.core.contracts.requireThat
import net.corda.core.identity.Party
import net.corda.core.transacti... | 0 | Kotlin | 0 | 0 | c60b7efdd67aa525ddf7b658ac4345878c196854 | 6,681 | tictactoe | Apache License 2.0 |
reduks-android/src/main/kotlin/com/beyondeye/reduksAndroid/activity/ReduksActivity.kt | beyondeye | 59,747,728 | false | {"Kotlin": 505882, "Java": 192306} | package com.beyondeye.reduksAndroid.activity
import android.util.Log
import com.beyondeye.reduks.Reduks
import com.beyondeye.reduks.StoreCreator
/**
* base interface for KovenantReduksActivity and RxReduksActivity
* Created by daely on 10/5/2016.
*/
interface ReduksActivity<S> {
val reduks: Reduks<S>
/**
... | 5 | Kotlin | 10 | 111 | 80b84d221b92aef0b172938c2e6efaef973269b1 | 961 | Reduks | Apache License 2.0 |
src/main/kotlin/de/pgebert/aoc/days/Day23.kt | pgebert | 724,032,034 | false | {"Kotlin": 62307} | package de.pgebert.aoc.days
import de.pgebert.aoc.Day
import de.pgebert.aoc.NOT_IMPLEMENTED
class Day23(input: String? = null) : Day(23, "Day23", input) {
override fun partOne() = NOT_IMPLEMENTED
override fun partTwo() = NOT_IMPLEMENTED
}
| 0 | Kotlin | 1 | 0 | 08076b02353f8a2c7910ee97aeb4e70de5c17182 | 251 | advent-of-code-2023 | MIT License |
app/src/main/java/apollozhu/github/io/azdmv/Model/QuizSet.kt | ApolloZhu | 116,250,749 | false | null | package apollozhu.github.io.azdmv.model
import android.content.Context
import apollozhu.github.io.azdmv.R
import org.json.JSONArray
import org.json.JSONObject
object QuizSet {
private lateinit var _quizzes: JSONArray
var needsContext = true
private set
fun setContext(ctx: () -> Context) {
... | 0 | Kotlin | 0 | 1 | 82f81d7757a7a4bd796be82539ed5ec0bb82ae42 | 2,057 | AZDMV-Android | MIT License |
app/src/main/java/com/lubosoft/smsforwarder/utilities/CharacterUtils.kt | lbobowiec | 201,331,114 | false | null | package com.lubosoft.smsforwarder.utilities
import android.text.TextUtils
import com.lubosoft.smsforwarder.data.room.PhoneNumberData
object CharacterUtils {
private fun firstDigitOrFirstCharacter(text: String): Char {
if (!TextUtils.isEmpty(text)) {
return text.firstOrNull { Character.isDigit... | 0 | Kotlin | 0 | 0 | 947975c8b1d42c15e01b2b936e47042169472195 | 657 | SmsForwarder | MIT License |
src/main/kotlin/commands/fun/Doggo.kt | daksh7011 | 440,123,158 | false | null | package commands.`fun`
import com.kotlindiscord.kord.extensions.commands.Arguments
import com.kotlindiscord.kord.extensions.commands.converters.impl.defaultingString
import com.kotlindiscord.kord.extensions.extensions.Extension
import com.kotlindiscord.kord.extensions.extensions.chatCommand
import com.kotlindiscord.ko... | 0 | Kotlin | 0 | 0 | 4ad33716223657dcfa716b7ae90add6d13987cc8 | 4,269 | Troy | MIT License |
app/src/main/java/ch/skew/remotrix/background/CommandService.kt | MangoCubes | 633,411,142 | false | {"Kotlin": 148487} | package ch.skew.remotrix.background
import android.app.Service
import android.content.Intent
import android.net.Uri
import android.os.IBinder
import android.provider.ContactsContract
import android.telephony.SmsManager
import androidx.core.app.NotificationCompat
import ch.skew.remotrix.R
import ch.skew.remotrix.classe... | 1 | Kotlin | 0 | 9 | 9984a23c08c2a8a27075b82b32499258ed66f7ff | 26,172 | remotrix | Apache License 2.0 |
domain/usecase/src/main/java/repo/AuthenticationRepository.kt | The-Cupcake-team | 646,926,125 | false | null | package repo
import com.cupcake.models.Token
import com.cupcake.models.User
interface AuthenticationRepository {
suspend fun register(
fullName: String,
userName: String,
email: String,
password: String,
jobTitleId: Int
): User
suspend fun login(
userName: ... | 2 | Kotlin | 1 | 2 | 342b634756ae6a12c7113a5854f66147cae8710d | 592 | Jobs-finder | MIT License |
bitapp/src/main/java/com/atech/bit/ui/fragments/notice/NoticeViewModel.kt | aiyu-ayaan | 489,575,997 | false | null | /*
* BIT Lalpur App
*
* Created by Ayaan on 3/13/22, 10:32 AM
* Copyright (c) 2022 . All rights reserved.
* Last modified 3/12/22, 4:49 PM
*/
package com.atech.bit.ui.fragments.notice
import androidx.lifecycle.*
import com.atech.core.utils.MainStateEvent
import com.atech.core.data.ui.notice.Notice3
import com... | 6 | Kotlin | 5 | 13 | 96f082c8e1fb1eb4aa446afce83f98b7494b4884 | 1,721 | BIT-App | MIT License |
oknet/src/main/java/com/jdoit/oknet/MethodProcessor.kt | sunjc53yy | 472,627,397 | false | null | /*
* Copyright 2022 sunjichang
*
* 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 ... | 0 | Kotlin | 0 | 0 | 724f9f29318a071a842e2450ad7097cb1b5c3981 | 3,042 | oknet | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.