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
data/src/main/java/com/chun/data/model/Schedules.kt
nchungdev
398,720,732
false
null
package com.chun.data.model import com.google.gson.annotations.SerializedName open class Schedules<T> { @SerializedName("monday", alternate = ["tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]) var data: ArrayList<T>? = null }
0
Kotlin
0
0
92a75c4304243f379f168ad4eb786de1028cc727
255
AnimeDi
MIT License
breathOfTheWild/src/main/kotlin/breathOfTheWild/critter/CrittersRouter.kt
adamWeesner
239,233,558
false
null
package breathOfTheWild.critter import BaseRouter import shared.zelda.Critter import shared.zelda.responses.CrittersResponse import kotlin.reflect.full.createType data class CrittersRouter( override val basePath: String, override val service: CrittersService ) : BaseRouter<Critter, CrittersService>( Critt...
1
Kotlin
1
1
a04ad390fe844a7d89db2fa726599c23d3f796f6
382
weesnerDevelopment
MIT License
src/test/kotlin/nl/dirkgroot/adventofcode/year2022/Day07Test.kt
dirkgroot
317,968,017
false
{"Kotlin": 187862}
package nl.dirkgroot.adventofcode.year2022 import io.kotest.core.spec.style.StringSpec import io.kotest.matchers.shouldBe import nl.dirkgroot.adventofcode.util.input import nl.dirkgroot.adventofcode.util.invokedWith import java.util.* private fun solution1(input: String): Long { val directories = findDirectories(...
0
Kotlin
1
1
ffdffedc8659aa3deea3216d6a9a1fd4e02ec128
2,796
adventofcode-kotlin
MIT License
jetbrains-core/tst/software/aws/toolkits/jetbrains/services/codewhisperer/CodeWhispererClientAdaptorTest.kt
aws
91,485,909
false
null
// Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package software.aws.toolkits.jetbrains.services.codewhisperer import com.intellij.testFramework.DisposableRule import com.intellij.testFramework.ProjectRule import com.intellij.testFramework.RuleChain im...
306
Kotlin
141
643
09faf6a4bff65b80c5306a0dc0503b66f1e1aef9
17,845
aws-toolkit-jetbrains
Apache License 2.0
src/jvmMain/kotlin/ess/papyrus/StringTable.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
8,255
ResaverResaved
Apache License 2.0
exceptions/src/main/java/com/kylecorry/andromeda/exceptions/StackTraceBugReportGenerator.kt
kylecorry31
394,273,851
false
{"Kotlin": 838369, "Python": 307}
package com.kylecorry.andromeda.exceptions import android.content.Context class StackTraceBugReportGenerator : IBugReportGenerator { override fun generate(context: Context, throwable: Throwable): String { val message = throwable.message ?: "" val stackTrace = throwable.stackTraceToString() ...
43
Kotlin
4
21
0bc951ae92aa706bc8bbd742dc7b4a2ebc71152a
372
andromeda
MIT License
kotlin-electron/src/jsMain/generated/electron/main/PushNotifications.kt
JetBrains
93,250,841
false
{"Kotlin": 12635434, "JavaScript": 423801}
// Generated by Karakum - do not modify it manually! package electron.main typealias PushNotifications = electron.core.PushNotifications
38
Kotlin
162
1,347
997ed3902482883db4a9657585426f6ca167d556
139
kotlin-wrappers
Apache License 2.0
app/src/main/java/com/albuquerque/cryptoe_wallet/core/holder/BaseViewHolder.kt
rebecaalbuquerque
286,322,724
false
null
package com.albuquerque.cryptoe_wallet.core.holder import androidx.databinding.ViewDataBinding import androidx.recyclerview.widget.RecyclerView /** * Custom class that simplify the use a an ViewHolder for DataBinding usage. * */ abstract class BaseViewHolder<T>(var binding: ViewDataBinding): RecyclerView.ViewHolder...
0
Kotlin
0
0
6e8e78a9931d271d529f068c498a1748a813e12f
394
android-crypto-e-wallet
MIT License
features/labs/src/main/java/com/keelim/labs/ui/motion/MotionActivity.kt
keelim
202,127,420
false
null
/* * Designed and developed by 2021 keelim (Jaehyun Kim) * * 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 applica...
6
Kotlin
0
1
836c7fca6793ed74249f9430c798466b1a7aaa27
2,154
project_cnuBus
Apache License 2.0
src/main/kotlin/aoc2017/FractalArt.kt
komu
113,825,414
false
null
package komu.adventofcode.aoc2017 import komu.adventofcode.utils.nonEmptyLines fun fractalArt(input: String, iterations: Int): Int { val rules = RuleBook.parse(input) var block = Block(listOf(".#.", "..#", "###")) repeat(iterations) { block = block.enhance(rules) } return block.pixelsOn...
0
Kotlin
0
0
f07e74761d742c519fef4ba06fa474f1016bdbbd
3,809
advent-of-code
MIT License
azure-communication-ui/calling/src/main/java/com/azure/android/communication/ui/calling/redux/reducer/ToastNotificationReducer.kt
Azure
429,521,705
false
{"Kotlin": 2573728, "Java": 167445, "Shell": 3964, "HTML": 1856}
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.android.communication.ui.calling.redux.reducer import com.azure.android.communication.ui.calling.redux.action.Action import com.azure.android.communication.ui.calling.redux.action.ToastNotificationAction ...
6
Kotlin
27
24
96a897fb62cf8ce39a30f8bb7232df8aa888e084
970
communication-ui-library-android
MIT License
azure-communication-ui/calling/src/main/java/com/azure/android/communication/ui/calling/redux/reducer/ToastNotificationReducer.kt
Azure
429,521,705
false
{"Kotlin": 2573728, "Java": 167445, "Shell": 3964, "HTML": 1856}
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.android.communication.ui.calling.redux.reducer import com.azure.android.communication.ui.calling.redux.action.Action import com.azure.android.communication.ui.calling.redux.action.ToastNotificationAction ...
6
Kotlin
27
24
96a897fb62cf8ce39a30f8bb7232df8aa888e084
970
communication-ui-library-android
MIT License
aoc16/day_03/main.kt
viktormalik
436,281,279
false
{"Rust": 227300, "OCaml": 82410, "Kotlin": 78968, "Go": 30927, "Makefile": 13967, "Roff": 9981, "Shell": 2098}
import java.io.File fun isTriangle(sides: List<Int>): Boolean { val (a, b, c) = sides return a + b > c && a + c > b && b + c > a } fun vertical(chunk: List<String>, idx: Int): List<Int> = chunk.map { it.trim().split("\\s+".toRegex()).get(idx).toInt() } fun main() { val lines = File("input").readLines...
0
Rust
1
0
a85327c981794f2688f82cd8db703acbab2ff940
700
advent-of-code
MIT License
src/main/kotlin/no/nav/syfo/sykmelding/service/OppdaterTopicsService.kt
navikt
247,334,648
false
null
package no.nav.syfo.sykmelding.service import no.nav.syfo.log import no.nav.syfo.model.ReceivedSykmelding import org.apache.kafka.clients.producer.KafkaProducer import org.apache.kafka.clients.producer.ProducerRecord class OppdaterTopicsService( private val kafkaProducerReceivedSykmelding: KafkaProducer<String, R...
0
Kotlin
0
0
9751a00f96e790703f0c66f88b529d15dec0cbe6
877
egenmeldt-sykmelding-backend
MIT License
autofill/autofill-impl/src/main/java/com/duckduckgo/autofill/sync/CredentialsInvalidItemsView.kt
hojat72elect
822,396,044
false
{"Kotlin": 11626231, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784}
package com.duckduckgo.autofill.sync import android.annotation.SuppressLint import android.content.Context import android.text.SpannableStringBuilder import android.util.AttributeSet import android.widget.FrameLayout import androidx.core.view.isVisible import androidx.lifecycle.ViewModelProvider import androidx.lifecy...
0
Kotlin
0
0
b89591136b60933d6a03fac43a38ee183116b7f8
4,304
DuckDuckGo
Apache License 2.0
core/src/main/kotlin/dev/komu/kraken/model/actions/RestAction.kt
komu
83,556,775
false
{"Kotlin": 225797}
package dev.komu.kraken.model.actions import dev.komu.kraken.model.creature.Player class RestAction(private val player: Player) : Action { override fun perform(): ActionResult { player.message("Resting...") return ActionResult.Success } }
0
Kotlin
0
0
680362d8e27c475b4ef1e2d13b67cb87f67249f6
265
kraken
Apache License 2.0
util/src/test/kotlin/io/github/zebalu/advent2020/ResourceReaderTest.kt
zebalu
317,448,231
false
null
package io.github.zebalu.adven2020 import kotlin.test.assertEquals import org.junit.Test as test import io.github.zebalu.advent2020.ResourceReader class ResourceReaderTest { @test fun readsAllLines() { val lines = ResourceReader.lines("/test_1.txt") assertEquals(3, lines.size) } @test fun readGroups() { val ...
0
Kotlin
0
1
ca54c64a07755ba044440832ba4abaa7105cdd6e
473
advent2020
Apache License 2.0
src/main/kotlin/com/marvinelsen/willow/sources/moe/MoeParser.kt
HalfAnAvocado
717,460,519
false
{"Kotlin": 79178, "CSS": 1408}
package com.marvinelsen.willow.sources.moe import com.marvinelsen.willow.sources.common.Parser import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.json.Json import kotlinx.serialization.json.decodeFromStream import java.io.InputStream @OptIn(ExperimentalSerializationApi::class) obje...
15
Kotlin
0
5
cd4f8e383ef56baf0a07d71cb015bbd5f1f29063
458
willow
Apache License 2.0
src/test/io/github/config4k/TestToConfigForArbitraryGenericType.kt
hsyed
125,596,516
true
{"Kotlin": 52156, "Python": 449}
package io.github.config4k import org.jetbrains.spek.api.Spek import org.jetbrains.spek.api.dsl.context import org.jetbrains.spek.api.dsl.it class TestToConfigForArbitraryGenericType : Spek({ context("PetPerson>.toConfig") { it("should return Config having PetPerson<Dog>") { val person = PetPe...
0
Kotlin
0
0
ec5117f26dec3efdbd9a54683a07ef6aedd3ea29
1,385
config4k
Apache License 2.0
bjdui/src/main/kotlin/net/sonmoosans/bjdui/plugin/ui/hook/ButtonClick.kt
fuma-nama
502,647,871
false
{"Kotlin": 131688}
package net.sonmoosans.bjda.plugins.ui.hook import net.sonmoosans.bjda.plugins.ui.UIEvent import net.sonmoosans.bjda.plugins.ui.hook.event.ButtonListener import net.sonmoosans.bjda.ui.core.hooks.Delegate import net.sonmoosans.bjdui.types.AnyComponent import net.dv8tion.jda.api.events.interaction.component.ButtonIntera...
0
Kotlin
1
14
6a88eba7ced7e2392ce958289c9ba5e1141ad4f6
1,534
B-JDA
MIT License
kotlin-electron/src/jsMain/generated/electron/main/TouchBarPopover.kt
JetBrains
93,250,841
false
{"Kotlin": 11411371, "JavaScript": 154302}
package electron.main typealias TouchBarPopover = electron.core.TouchBarPopover
28
Kotlin
173
1,250
9e9dda28cf74f68b42a712c27f2e97d63af17628
81
kotlin-wrappers
Apache License 2.0
app/src/main/java/laurenyew/coxautomotiveapp/data/DealershipDao.kt
laurenyew
208,376,361
false
null
package laurenyew.coxautomotiveapp.data import androidx.lifecycle.LiveData import androidx.room.Dao import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query /** * Interface w/ Room to handle SQL Queries */ @Dao interface DealershipDao { @Insert(onConflict = OnConflictStrate...
0
Kotlin
0
0
97ae04f4238b22e0fc903a9ec4c96b44efea1bd5
563
CoxAutomotiveApp
MIT License
missingdot/src/commonMain/kotlin/dev/atsushieno/missingdot/xml/XmlNodeType.kt
atsushieno
398,649,969
false
null
package dev.atsushieno.missingdot.xml enum class XmlNodeType { Document, Doctype, Element, EndElement, Attribute, Text, Comment, ProcessingInstruction }
0
Kotlin
0
0
c11ad24b0b9834c878ca5178ecbd2e9c71238278
161
missing-dot
MIT License
shared/src/main/java/com/devlomi/shared/common/Extensions.kt
3llomi
569,805,694
false
{"Kotlin": 353465}
package com.devlomi.shared.common import android.content.Context import android.content.res.Configuration import android.graphics.Paint import android.graphics.Rect import android.util.TypedValue import com.batoulapps.adhan.CalculationParameters import com.batoulapps.adhan.Coordinates import com.batoulapps.adhan.Praye...
2
Kotlin
2
9
d42a6c69d5013177274d127484696173d67ee33d
3,336
PrayerWatchFace
Apache License 2.0
spring/src/test/kotlin/controller/RatingsControllerTest.kt
crowdproj
518,714,370
false
null
package com.crowdproj.rating.spring.controller import com.crowdproj.rating.api.v1.models.* import com.crowdproj.rating.common.CwpRatingContext import com.crowdproj.rating.mappers.* import com.crowdproj.rating.stubs.CwpRatingStub import com.fasterxml.jackson.databind.ObjectMapper import org.junit.jupiter.api.Test impor...
0
Kotlin
2
0
668859f333e9d397870f4492463dc948bdfea83a
2,547
crowdproj-ratings
Apache License 2.0
Android/app/src/main/java/ru/alexskvortsov/policlinic/domain/repository/DoctorProfileRepository.kt
AlexSkvor
244,438,301
false
null
package ru.alexskvortsov.policlinic.domain.repository import io.reactivex.Completable import io.reactivex.Observable import ru.alexskvortsov.policlinic.data.storage.database.entities.CompetenceEntity import ru.alexskvortsov.policlinic.domain.states.doctor.DoctorPerson interface DoctorProfileRepository { fun isLog...
0
Kotlin
0
0
5cc6a10a1399ee08643e69308afd4626938882b0
530
polyclinic
Apache License 2.0
Android/app/src/main/java/ru/alexskvortsov/policlinic/domain/repository/DoctorProfileRepository.kt
AlexSkvor
244,438,301
false
null
package ru.alexskvortsov.policlinic.domain.repository import io.reactivex.Completable import io.reactivex.Observable import ru.alexskvortsov.policlinic.data.storage.database.entities.CompetenceEntity import ru.alexskvortsov.policlinic.domain.states.doctor.DoctorPerson interface DoctorProfileRepository { fun isLog...
0
Kotlin
0
0
5cc6a10a1399ee08643e69308afd4626938882b0
530
polyclinic
Apache License 2.0
src/test/kotlin/g0001_0100/s0042_trapping_rain_water/SolutionTest.kt
javadev
190,711,550
false
{"Kotlin": 4870729, "TypeScript": 50437, "Python": 3646, "Shell": 994}
package g0001_0100.s0042_trapping_rain_water import org.hamcrest.CoreMatchers.equalTo import org.hamcrest.MatcherAssert.assertThat import org.junit.jupiter.api.Test internal class SolutionTest { @Test fun trap() { assertThat(Solution().trap(intArrayOf(0, 1, 0, 2, 1, 0, 1, 3, 2, 1, 2, 1)), equalTo(6)) ...
0
Kotlin
20
43
e8b08d4a512f037e40e358b078c0a091e691d88f
441
LeetCode-in-Kotlin
MIT License
app/src/main/java/com/femi/e_class/data/repository/base/BaseRepositoryImpl.kt
Vader-Femi
569,005,599
false
{"Kotlin": 164756}
package com.femi.e_class.data.repository.base import com.femi.e_class.data.UserPreferences import com.google.firebase.auth.FirebaseAuth import com.google.firebase.firestore.CollectionReference import kotlinx.coroutines.flow.first import javax.inject.Inject open class BaseRepositoryImpl @Inject constructor( privat...
0
Kotlin
0
1
2d9864966e47188927ebf7f5f180c56cce7c2482
1,403
Class-Konnect
Apache License 2.0
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/Cello.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
5,644
icons
MIT License
src/main/kotlin/com/skillw/pouvoir/internal/hologram/HologramLine.kt
Glom-c
396,683,163
false
null
package com.skillw.pouvoir.internal.hologram import io.netty.util.internal.ConcurrentSet import org.bukkit.Location import org.bukkit.entity.Player import taboolib.module.chat.colored private var index = 114514 private fun nextInt(): Int { return index++ } class HologramLine(location: Location, line: String) { ...
0
HTML
0
2
5608ced58650c3dac96c6c336a736a62fda9e5fb
1,577
Pouvoir
MIT License
features/src/main/kotlin/ru/mobileup/template/features/pokemons/ui/details/RealPokemonDetailsComponent.kt
MobileUpLLC
485,284,340
false
{"Kotlin": 124942, "FreeMarker": 3484, "Shell": 3159}
package ru.mobileup.template.features.pokemons.ui.details import com.arkivanov.decompose.ComponentContext import dev.icerock.moko.resources.desc.desc import me.aartikov.replica.single.Replica import ru.mobileup.template.core.error_handling.ErrorHandler import ru.mobileup.template.core.message.data.MessageService impor...
1
Kotlin
2
12
d2c6e03655532c2945013115869c763056951706
1,343
MobileUp-Android-Template
MIT License
AtomicKotlin/Power Tools/Operator Overloading/Examples/src/ContainerAccess.kt
fatiq123
726,462,263
false
{"Kotlin": 370528, "HTML": 6544, "JavaScript": 5252, "Java": 4416, "CSS": 3780, "Assembly": 94}
// OperatorOverloading/ContainerAccess.kt package operatoroverloading import atomictest.eq data class C(val c: MutableList<Int>) { override fun toString() = "C($c)" } operator fun C.contains(e: E) = e.v in c operator fun C.get(i: Int): E = E(c[i]) operator fun C.set(i: Int, e: E) { c[i] = e.v } fun main() { ...
0
Kotlin
0
0
3d351652ebe1dd7ef5f93e054c8f2692c89a144e
544
AtomicKotlinCourse
MIT License
src/jvmTest/kotlin/com/bkahlert/kommons/debug/TraceKtTest.kt
bkahlert
323,048,013
false
null
package com.bkahlert.kommons.debug import strikt.api.Assertion /** * Helper property that supports * [print debugging][https://en.wikipedia.org/wiki/Debugging#Print_debugging] * by printing `this` assertions builder's subject. */ @Deprecated("Don't forget to remove after you finished debugging.", replaceWith = Re...
7
Kotlin
0
9
35e2ac1c4246decdf7e7a1160bfdd5c9e28fd066
1,261
kommons
MIT License
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/crypto/broken/Eos.kt
Tlaster
560,394,734
false
{"Kotlin": 25133302}
package moe.tlaster.icons.vuesax.vuesaxicons.crypto.broken 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 an...
0
Kotlin
0
2
b8a8231e6637c2008f675ae76a3423b82ee53950
2,601
VuesaxIcons
MIT License
app/src/main/java/m/derakhshan/refectory/feature_authentication/presentation/sign_up/SignUpViewModel.kt
m-derakhshan
453,145,306
false
{"Kotlin": 122565}
package m.derakhshan.refectory.feature_authentication.presentation.sign_up import androidx.compose.runtime.State import androidx.compose.runtime.mutableStateOf import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import dagger.hilt.android.lifecycle.Hi...
0
Kotlin
0
0
9e0d512cf9419562e4fadf6a76c9b2b672886279
4,410
Refectory
The Unlicense
utils/src/commonMain/kotlin/io/github/dmitriy1892/kmp/libs/utils/coroutines/mutex/MutexExtensions.kt
Dmitriy1892
782,469,883
false
{"Kotlin": 75653, "Shell": 2195, "Swift": 342}
package io.github.dmitriy1892.kmp.libs.utils.coroutines.mutex import kotlinx.coroutines.runBlocking import kotlinx.coroutines.sync.Mutex import kotlinx.coroutines.sync.withLock /** * Locks the current thread until [action] was end his work. * * @param action suspendable action that need to execute * @return [T] ...
0
Kotlin
0
0
fce0d13490d4e45b1bd56a55effe4f5c6bfffec6
491
kmp-libs
Apache License 2.0
app/src/main/java/cn/junmov/mirror/user/ui/SyncFragment.kt
junmov
314,679,541
false
null
package cn.junmov.mirror.user.ui import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels import cn.junmov.mirror.databinding.FragmentSyncBinding import com.google.android.material.sn...
0
Kotlin
0
0
f328452115af11d9db77f8caaf5bda0b46f7a69b
1,112
mirror-android
MIT License
app/src/main/java/com/kylecorry/trail_sense/tools/battery/infrastructure/commands/BatteryLogCommand.kt
kylecorry31
215,154,276
false
null
package com.kylecorry.trail_sense.tools.battery.infrastructure.commands import android.content.Context import com.kylecorry.andromeda.battery.Battery import com.kylecorry.andromeda.battery.BatteryChargingStatus import com.kylecorry.trail_sense.shared.commands.CoroutineCommand import com.kylecorry.trail_sense.tools.bat...
405
Kotlin
44
677
83d40025d6d797c248af8ceba3a6bd2df7455af2
1,512
Trail-Sense
MIT License
Projeto 2/timeConverter2.0.kt
RafaPear
867,356,904
false
{"Kotlin": 5350, "Batchfile": 139}
fun clear(){print("\u001b[H\u001b[2J")} @Throws(NumberFormatException::class) fun main(){ var program = true while(program){ while(program){ //Set up User Input clear() println(">> Input seconds to convert, 0 to exit") print("<< ") var inputSeconds : Int = 1 //Get user input and test for...
0
Kotlin
0
0
dcb72c72aa48be1e46d78225b6ff008c31fcb55a
1,130
LEIC-Projetos-Kotlin
MIT License
shared/src/commonMain/kotlin/com/jetbrains/kmpapp/screens/SpeedViewModel.kt
vov4ik-v
806,748,892
false
{"Kotlin": 15320, "Swift": 4802}
package com.jetbrains.kmpapp.screens import com.rickclephas.kmm.viewmodel.KMMViewModel import kotlinx.coroutines.flow.MutableStateFlow class SpeedViewModel : KMMViewModel() { private val _speedData = MutableStateFlow<Float?>(null) // Функція для оновлення швидкості fun updateSpeed(speed: Float) { ...
0
Kotlin
0
0
e23eb1b6d975ce2c58b09c3d6df24c43a2cb0291
354
TrainApp
Apache License 2.0
im-user/user-domain/src/commonMain/kotlin/city/smartb/im/user/domain/features/command/UserUpdateFunction.kt
smartbcity
651,445,390
false
null
package city.smartb.im.user.domain.features.command import city.smartb.im.commons.model.Address import city.smartb.im.organization.domain.model.OrganizationId import city.smartb.im.user.domain.model.UserId import f2.dsl.cqrs.Command import f2.dsl.cqrs.Event import f2.dsl.fnc.F2Function import i2.keycloak.f2.role.domai...
0
Kotlin
0
0
6a727ac998241724d073ac66247496355316f934
2,503
connect-im
Apache License 2.0
src/main/kotlin/vlkv/configuration/yaml/DataFixes.kt
veelkoov
413,134,828
false
null
package vlkv.configuration.yaml class DataFixes { lateinit var fixes: List<Fix> }
0
Kotlin
0
0
a3e4fc164226ed639859d37f6f987ec4ae37c5ca
87
HoldMyAB
MIT License
user-service-remote/src/main/kotlin/io/github/pak3nuh/monolith/service/user/RemoteUserServiceFactory.kt
pak3nuh
660,976,930
false
{"Kotlin": 24611}
package io.github.pak3nuh.monolith.service.user import io.github.pak3nuh.monolith.core.service.DependencyDeclaration import io.github.pak3nuh.monolith.core.service.Service import io.github.pak3nuh.monolith.core.service.ServiceDependencies import io.github.pak3nuh.monolith.core.service.ServiceLocality import kotlin.ref...
0
Kotlin
0
0
f71a3a7d491937e83e31615dc208e08254723dea
710
awesome-monolith
MIT License
src/main/kotlin/io/zayasanton/app/api/filters/models/ExchangeRequest.kt
azayas97
784,997,922
false
{"Kotlin": 68644}
package io.zayasanton.app.api.filters.models data class ExchangeRequest( val userId: String, val sessionId: String, )
0
Kotlin
0
0
1cc7567bc10cd3da1ec216e79b61d85b89ce55c2
127
doctor-contact-service
MIT License
easypermission/src/main/java/aditya/wibisana/easypermission/ActionManageOverlayPermission.kt
adityawibisana
736,298,847
false
{"Kotlin": 10085}
package aditya.wibisana.easypermission import android.content.Context import android.content.Intent import android.graphics.PixelFormat import android.net.Uri import android.os.Build import android.provider.Settings import android.view.View import android.view.WindowManager import androidx.appcompat.app.AppCompatActiv...
0
Kotlin
0
0
1a68dfe08443e9e7309a9ed04c6c0dfcb31ee4ee
2,066
android_easy_permission
MIT License
shared/src/commonMain/kotlin/com/codewithfk/eventhub/event/data/response/Genre.kt
furqanullah717
698,731,559
false
{"Kotlin": 71888, "Swift": 802}
package com.codewithfk.eventhub.event.data.response data class Genre( val id: String, val name: String )
0
Kotlin
0
0
61edd24b574684028463528dee56527ce9225a9b
113
event-hub-kmm
MIT License
src/main/kotlin/dev/emortal/doors/pathfinding/Directions.kt
emortalmc
532,048,771
false
null
package dev.emortal.doors.pathfinding enum class Directions(val offX: Int, val offY: Int, val offZ: Int) { NORTH(0, 0, -1), EAST(1, 0, 0), SOUTH(0, 0, 1), WEST(-1, 0, 0), // NORTHUP(0, 1, -1), // SOUTHUP(0, 1, 1), // WESTUP(-1, 1, 0), // EASTUP(1, 1, 0), // // NORTHDOWN(0, -1, -1), // ...
1
Kotlin
1
2
a99f1cab532dde948b39b7ede26072d2395434ce
396
MineDoors
MIT License
app/src/main/java/pl/jakubokrasa/bikeroutes/features/photos/presentation/PhotoGalleryFragment.kt
JakubOkrasa
367,399,523
false
null
package pl.jakubokrasa.bikeroutes.features.photos.presentation import android.os.Bundle import android.view.View import org.koin.androidx.viewmodel.ext.android.sharedViewModel import pl.jakubokrasa.bikeroutes.R import pl.jakubokrasa.bikeroutes.core.base.presentation.BaseFragment import pl.jakubokrasa.bikeroutes.databi...
1
Kotlin
0
0
f392343249e3f4c15c54b4f01b26ec46cab2c41d
2,606
BikeRoutes
Apache License 2.0
app/src/main/java/io/github/droidkaigi/confsched2018/presentation/search/SearchSpeakersFragment.kt
satorufujiwara
119,129,920
true
{"Kotlin": 434412, "Ruby": 2122, "Java": 780}
package io.github.droidkaigi.confsched2018.presentation.search import android.arch.lifecycle.ViewModelProvider import android.arch.lifecycle.ViewModelProviders import android.os.Bundle import android.support.v4.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup impor...
0
Kotlin
0
1
70b07377c7f17839537f836039dd981d0f96fa08
4,274
conference-app-2018
Apache License 2.0
src/main/kotlin/com/github/strindberg/ideaemacs/services/MyProjectService.kt
strindberg
527,434,893
false
{"Kotlin": 7209}
package com.github.strindberg.ideaemacs.services import com.intellij.openapi.project.Project import com.github.strindberg.ideaemacs.MyBundle class MyProjectService(project: Project) { init { println(MyBundle.message("projectService", project.name)) System.getenv("CI") ?: TODO("Don't ...
0
Kotlin
0
0
19473e3eaf8d1f5c4ac1be9b3b7c33afc8b61b1d
443
IdeaEmacs
Apache License 2.0
app/src/main/java/com/example/androiddevchallenge/MainActivity.kt
ChiuLui
343,302,687
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
9127fe48c3e6d775aa41b0222717495769573712
5,718
ChallengePuppyAdoption
Apache License 2.0
lightweightlibrary/src/main/java/com/tradingview/lightweightcharts/api/options/models/HandleScrollOptions.kt
tradingview
284,986,398
false
null
package com.tradingview.lightweightcharts.api.options.models data class HandleScrollOptions( var mouseWheel: Boolean? = null, var pressedMouseMove: Boolean? = null, var horzTouchDrag: Boolean? = null, var vertTouchDrag: Boolean? = null ) inline fun handleScrollOptions(init: HandleScrollOptions.() -> U...
25
Kotlin
27
86
08c3dbda653a1d5f78f7c5d47c990c7f9887d9e4
394
lightweight-charts-android
Apache License 2.0
app/src/main/java/id/android/movie/presentation/ui/UiState.kt
budioktaviyan
273,710,455
false
null
package id.android.movie.presentation.ui import androidx.compose.Composable import androidx.compose.getValue import androidx.compose.onActive import androidx.compose.setValue import androidx.compose.state import id.android.movie.data.Result import id.android.movie.presentation.ui.UiState.Error import id.android.movie....
0
Kotlin
0
1
86aa19703b10632eb64f5b19859477b92756dd2a
1,588
movie-compose
MIT License
app/src/main/java/com/altaureum/covid/tracking/common/IntentData.kt
jllarraz
249,151,516
false
null
package com.altaureum.covid.tracking.common object IntentData { val KEY_DATA="KEY_DATA" val KEY_SERVICE_UUID="KEY_SERVICE_UUID" val KEY_INCLUDE_CLIENT_LOCATION="KEY_INCLUDE_CLIENT_LOCATION" }
0
Kotlin
1
2
08f20f2de577e2fdf76dd8c45bcff9109a5c9b54
204
CovidContactTracking
Apache License 2.0
app/src/main/java/com/example/flyapp/view/AirportFragment.kt
giobirkelund
415,696,064
false
null
package com.example.flyapp.view import android.os.Bundle import android.os.Handler import android.os.Looper import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.* import androidx.core.content.res.ResourcesCompat import androidx.fragment...
0
Kotlin
0
0
b6d0400fa6d142f39147257ae2a9a3756582b09b
5,931
Airplane-Enthusiast-Android-App
MIT License
v2-model/src/commonMain/kotlin/com/bselzer/gw2/v2/model/item/detail/ConsumableDetails.kt
Woody230
388,820,096
false
{"Kotlin": 750899}
package com.bselzer.gw2.v2.model.item.detail import com.bselzer.gw2.v2.model.color.DyeColorId import com.bselzer.gw2.v2.model.enumeration.wrapper.ConsumableDetailType import com.bselzer.gw2.v2.model.enumeration.wrapper.ConsumableUnlockType import com.bselzer.gw2.v2.model.guild.upgrade.GuildUpgradeId import com.bselzer...
2
Kotlin
0
2
32f1fd4fc4252dbe886b6fc0f4310cf34ac2ef27
2,693
GW2Wrapper
Apache License 2.0
app/src/main/java/com/olabode/wilson/pytutor/ui/auth/resetpassword/ResetPasswordViewModel.kt
whilson03
173,095,316
false
null
package com.olabode.wilson.pytutor.ui.auth.resetpassword import androidx.hilt.lifecycle.ViewModelInject import androidx.lifecycle.LiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.asLiveData import com.olabode.wilson.pytutor.repository.auth.AuthRepository import com.olabode.wilson.pytutor.utils.st...
2
Kotlin
3
4
440cdf95f1c7e750fcadb49623d6f15b993163cd
651
PyTutor
MIT License
spring-boot/projeto-plenitute-no-olhar/src/main/kotlin/kronos/projetoplenitutenoolhar/controller/AgendamentoController.kt
kronos-agendamento
758,290,087
false
{"Kotlin": 63915, "HTML": 38487, "CSS": 23175, "JavaScript": 5155}
package kronos.projetoplenitutenoolhar.controller import kronos.projetoplenitutenoolhar.dominio.Agendamento import kronos.projetoplenitutenoolhar.repositorio.AgendamentoRepository import org.springframework.beans.factory.annotation.Autowired import org.springframework.http.ResponseEntity import org.springframework.web...
0
Kotlin
0
2
da76a7a92ffb706f2651c332ec98da9793cb8eca
1,888
projeto-teste
MIT License
app/src/main/java/org/treeo/treeo/network/workers/UploadQueueWorker.kt
fairventures-worldwide
498,242,730
false
{"Kotlin": 586304, "C++": 87995, "Java": 3688, "CMake": 2149}
package org.treeo.treeo.network.workers import android.content.Context import android.content.SharedPreferences import androidx.hilt.work.HiltWorker import androidx.work.CoroutineWorker import androidx.work.WorkerParameters import com.google.gson.Gson import dagger.assisted.Assisted import dagger.assisted.AssistedInje...
0
Kotlin
0
0
2e3e780e325cb97c72a79d9d22fc7ac053fee350
5,875
treeo2-mobile-app-open
Apache License 2.0
src/main/kotlin/uk/gov/justice/digital/hmpps/subjectaccessrequestapi/config/AuthAwareAuthenticationToken.kt
ministryofjustice
712,487,650
false
{"Kotlin": 105831, "Dockerfile": 1374}
package uk.gov.justice.digital.hmpps.subjectaccessrequestapi.config import org.springframework.security.core.GrantedAuthority import org.springframework.security.oauth2.jwt.Jwt import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken class AuthAwareAuthenticationToken( jwt: J...
4
Kotlin
1
1
23349095fa075347ee75dcca8c67ed907c42f272
518
hmpps-subject-access-request-api
MIT License
composeApp/src/commonMain/kotlin/com/rwmobi/kunigami/domain/model/Tariff.kt
ryanw-mobile
794,752,204
false
{"Kotlin": 518481, "Swift": 693}
/* * Copyright (c) 2024. <NAME> * https://github.com/ryanw-mobile * Sponsored by RW MobiMedia UK Limited * */ package com.rwmobi.kunigami.domain.model import androidx.compose.runtime.Immutable @Immutable data class Tariff( val code: String, val fullName: String, val displayName: String, val vatI...
24
Kotlin
0
2
241e0ea08e92d663e8c9fb2732627dc054e24db6
392
OctoMeter
MIT License
app/src/main/kotlin/ru/cherryperry/amiami/screen/activity/OnBackKeyPressedListener.kt
wargry
139,280,084
true
{"Kotlin": 102696}
package ru.cherryperry.amiami.screen.activity interface OnBackKeyPressedListener { fun onBackPressed(): Boolean }
0
Kotlin
0
0
ada84ecfc0a574380f49446048be4e550a7ed018
119
Amiami-android-app
Apache License 2.0
app/src/main/java/com/databrains/bi4ss/models/StatisticsResponse.kt
DatabrainsDz
163,342,179
false
null
package com.databrains.bi4ss.models import com.google.gson.annotations.SerializedName class StatisticsResponse(@SerializedName("title") val title: String, @SerializedName("status") val status: String, @SerializedName("data") val data: DataStats)
0
Kotlin
0
1
fd2b9f5c11e036a640928d74f0e94a0e95a369a7
297
BI4SS-Android
Apache License 2.0
app/src/main/java/com/weighttracker/screen/converter/ConverterState.kt
nicolegeorgieva
556,229,503
false
{"Kotlin": 221653}
package com.weighttracker.screen.converter data class ConverterState( val lb: Double?, val kg: Double?, val feet: Double?, val m: Double? )
0
Kotlin
0
5
9df6604d4968d62958667658a33ee7cb64c86db7
156
weight-tracker-android
MIT License
kotlin/ex-200/src/second/210804-2-078-ElvisOperator.kt
cureasher
388,688,952
false
null
package code.second fun main(args: Array<String>) { val numbernull: Int? = null println(numbernull ?: 0) val numberfifteen: Int? = 15 println(numberfifteen ?: 0) var text: String? = null println(text ?: "Hello") }
0
Kotlin
0
0
9893a70ed6b1400bc7a2e004d4f400760f46fb42
239
TIL
MIT License
app/src/debug/java/com/serj113/imaginemovies/wrapper/DebugApplicationWrapperImpl.kt
serj113
260,604,628
false
null
package com.serj113.imaginemovies.wrapper import android.app.Application class DebugApplicationWrapperImpl : ApplicationWrapper { override fun setupFlipper(application: Application) { FlipperDeps.setup(application) } }
0
Kotlin
0
4
c20db689fd0236df08237adb0c948586eef83ab0
236
Imagine-Movies
Apache License 2.0
node/src/main/kotlin/me/slavita/construction/world/GameWorld.kt
Roman-Andr
535,243,293
false
{"Kotlin": 482345}
package me.slavita.construction.world import me.func.MetaWorld import me.func.builder.MetaSubscriber import me.func.mod.reactive.ReactivePlace import me.func.unit.Building import me.func.world.WorldMeta import me.slavita.construction.app import me.slavita.construction.city.CityGlows import me.slavita.construction.city...
0
Kotlin
0
1
e4e3c255bbfdfb5369ca66e57842e2c8712d2a10
3,488
simulator-mayor
Apache License 2.0
settings/src/main/java/org/futo/circles/settings/feature/advanced/AdvancedSettingsDialogFragment.kt
circles-project
615,347,618
false
{"Kotlin": 1307644, "C": 137821, "C++": 12364, "Shell": 3202, "CMake": 1680, "Ruby": 922}
package org.futo.circles.settings.feature.advanced import android.os.Bundle import android.view.View import androidx.appcompat.app.AppCompatActivity import dagger.hilt.android.AndroidEntryPoint import org.futo.circles.core.base.fragment.BaseFullscreenDialogFragment import org.futo.circles.core.extensions.showNoInterne...
8
Kotlin
4
29
7edec708f9c491a7b6f139fc2f2aa3e2b7149112
2,045
circles-android
Apache License 2.0
screencaptor/src/main/java/com/wealthfront/screencaptor/ScreenshotQuality.kt
wealthfront
267,915,434
false
{"Kotlin": 38185}
package com.wealthfront.screencaptor /** * Specifies the compression quality of the screenshot. */ enum class ScreenshotQuality(val value: Int) { LOW(25), MID(50), HIGH(75), BEST(100) }
5
Kotlin
3
15
fc84ba0d36fdbb648c3ab889ca21b96207e193e5
197
screencaptor
Apache License 2.0
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/LightEmergencyOn.kt
localhostov
808,861,591
false
{"Kotlin": 79430321, "HTML": 331, "CSS": 102}
package me.localx.icons.rounded.filled import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter ...
1
Kotlin
0
5
cbd8b510fca0e5e40e95498834f23ec73cc8f245
5,053
icons
MIT License
HenCoderSample/app/src/main/java/com/apkfuns/hencodersample/CustomView.kt
pengwei1024
81,442,430
false
{"Java": 91397, "Kotlin": 39733, "Objective-C": 31279, "C++": 6937, "CMake": 3430, "HTML": 1446, "Ruby": 516, "Shell": 336}
package com.apkfuns.hencodersample import android.content.Context import android.graphics.* import android.util.AttributeSet import android.view.View /** * Created by pengwei on 2017/12/6. */ class CustomView : View { private val paint: Paint = Paint() private val rectPaint:Paint = Paint() private val ...
1
null
1
1
b3e7b092f4eff16f03cc5c8aa8fc42c5ee87e89c
2,370
sampleShare
Apache License 2.0
android/app/src/main/java/com/algorand/android/modules/swap/previewsummary/ui/usecase/SwapPreviewSummaryPreviewUseCase.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
2,839
pera-wallet
Apache License 2.0
ui-components/src/main/java/com/example/ui_components/buttons/AnonymousButton.kt
4mr0m3r0
259,181,662
false
{"Kotlin": 58386}
package com.example.ui_components.buttons import androidx.compose.foundation.layout.padding import androidx.compose.material3.Icon import androidx.compose.material3.OutlinedButton import androidx.compose.material3.Surface import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx...
0
Kotlin
1
4
f8c1723b4e547fcfc0f9eba1727ec719a909cdf5
1,360
composing-atomic-design
MIT License
app/src/main/java/com/example/mcdonalds/model/DownloadManager.kt
AlexTesta00
481,898,468
false
null
package com.example.mcdonalds.model import android.app.Activity import androidx.appcompat.app.AppCompatActivity import androidx.recyclerview.widget.RecyclerView import com.example.mcdonalds.controller.CategoryAdapter import com.example.mcdonalds.controller.ProductAdapter import com.example.mcdonalds.utils.MessageManag...
0
Kotlin
0
0
c2648c80ed70804dde353a57bf7ea8b01840603a
9,192
McDonaldsApp
Apache License 2.0
src/main/kotlin/devs/delminius/plugins/Koin.kt
MilicTG
438,282,980
false
{"Kotlin": 31091, "HTML": 7785, "Shell": 7548, "JavaScript": 5252, "Batchfile": 4533, "CSS": 3780, "Assembly": 10}
package devs.delminius.plugins import devs.delminius.di.koinModule import io.ktor.application.* import org.koin.ktor.ext.Koin import org.koin.logger.slf4jLogger fun Application.configureKoin() { install(Koin) { // slf4jLogger() modules(koinModule) } }
0
Kotlin
0
0
74c6989c0ae937331479d36e596615c0c9a6fe02
276
BorutoServer
MIT License
app/src/main/java/isel/pdm/ee/battleship/game/domain/Coordinates.kt
RaulJCS5
687,139,113
false
{"Kotlin": 192619}
package isel.pdm.ee.battleship.game.domain const val BOARD_SIDE = 10 /** * Represents coordinates in the board. * @property row The row of the coordinate. * @property column The column of the coordinate. */ data class Coordinate(val row: Int, val column: Int) { init { require(isValidRow(row) && isValid...
0
Kotlin
0
0
398944274ea3b4cfcf092f204a71b07ec46c6352
654
battleships-ee
MIT License
api-tester/src/main/java/com/revenuecat/apitester/kotlin/PresentedOfferingContextAPI.kt
RevenueCat
127,346,826
false
{"Kotlin": 2863661, "Java": 78781, "Ruby": 27742, "Shell": 443}
package com.revenuecat.apitester.kotlin import com.revenuecat.purchases.PresentedOfferingContext @Suppress("unused", "UNUSED_VARIABLE") private class PresentedOfferingContextAPI { fun check(presentedOfferingContext: PresentedOfferingContext) { val offeringIdentifier: String = presentedOfferingContext.offe...
22
Kotlin
41
220
6bac0e0da280cb49450990c3967c66156d5f126d
473
purchases-android
MIT License
src/main/kotlin/no/fintlabs/operator/api/Constants.kt
FINTLabs
540,843,912
false
{"Kotlin": 125215, "Smarty": 1822, "Dockerfile": 157}
package no.fintlabs.operator.api const val DEPLOYMENT_CORRELATION_ID_ANNOTATION = "fintlabs.no/deployment-correlation-id" val MANAGED_BY_FLAISERATOR_LABEL = "app.kubernetes.io/managed-by" to "flaiserator" const val MANAGED_BY_FLAISERATOR_SELECTOR = "app.kubernetes.io/managed-by=flaiserator" const val ORG_ID_LABEL = ...
0
Kotlin
0
0
9e75df325ef180cd32a1dc1e8b770228d136cb8d
447
flaiserator
MIT License
ksoc-client-shared/src/commonMain/kotlin/com/kotlineering/ksoc/client/domain/auth/AuthService.kt
redefinescience
613,084,470
false
null
package com.kotlineering.ksoc.client.domain.auth import com.kotlineering.ksoc.client.domain.ServiceResult import com.kotlineering.ksoc.client.remote.ApiResult import com.kotlineering.ksoc.client.domain.user.UserInfo import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.flow.distinctUntilChanged impo...
6
Kotlin
0
0
ffda4017261729c2792d946c5a514dd1eb31532c
2,688
ksoc-client
Apache License 2.0
core/main/kotlin/me/kgustave/dkt/core/internal/websocket/handlers/GuildMemberRemoveHandler.kt
Shengaero
151,363,236
false
null
/* * Copyright 2018 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
1
Kotlin
0
10
745f72c59ed8e331975f0f62057f8f09fb9722fc
2,644
discord.kt
Apache License 2.0
src/main/kotlin/website/cousinomath/Scanner.kt
CousinoMath
190,498,147
false
null
package website.cousinomath class Scanner(val source: String) { val length = this.source.length var tokens: MutableList<Token> = ArrayList<Token>() var start = 0 var current = 0 val constants = setOf("e", "pi") val functions = setOf("acos", "asin", "atan", "cos", "exp", "log", "sin", "tan") fun lex(): R...
0
Kotlin
0
0
b64a0d14d5a0cbfacdae732cdbc611ae80f951df
2,563
kt-calculator
MIT License
src/client/kotlin/dev/dakoda/dvr/skills/gui/DVRSkillsGUI.kt
vanilla-refresh
707,433,202
false
{"Kotlin": 116265, "Java": 31150}
package dev.dakoda.dvr.skills.gui import net.minecraft.util.Identifier object DVRSkillsGUI { val EXP_BAR_LONG_EMPTY = Identifier("dvr-skills", "menu/exp_bar_long_empty") val EXP_BAR_LONG_EMPTY_HOVERED = Identifier("dvr-skills", "menu/exp_bar_long_empty_hovered") val EXP_BAR_LONG_FULL = Identifier("dvr-ski...
0
Kotlin
0
0
8237fac7fdb9c3ff7645786b5c39fd9e9c4e701e
962
dvr-skills
MIT License
api/src/main/kotlin/glimpse/models/Model.kt
glimpse-graphics
44,015,157
false
{"Kotlin": 207226, "GLSL": 7035}
package glimpse.models import glimpse.Matrix import glimpse.MatrixBuilder import glimpse.matrix /** * A three-dimensional model. * * @param mesh Mesh defining model's surface. * @param transformation Model transformation matrix lambda. */ class Model(val mesh: Mesh, val transformation: () -> Matrix = { Matrix.ID...
0
Kotlin
0
16
5069cc1c3f2d8cb344740f3d33bcf11848f94583
711
glimpse-framework
Apache License 2.0
cache/src/main/kotlin/org/openrs2/cache/MutableNamedEntry.kt
openrs2
315,027,372
false
null
package org.openrs2.cache import org.openrs2.util.krHashCode public interface MutableNamedEntry : NamedEntry { public override var nameHash: Int public fun setName(name: String) { nameHash = name.krHashCode() } public fun clearName() { nameHash = -1 } public fun remove() }
0
Kotlin
2
8
12eba96055ba13e8a8e3ec0ad3be7d93b3dd5b1b
319
openrs2
ISC License
satisfaketion-core/src/test/kotlin/io/github/rgbrizzlehizzle/satisfaketion/core/util/TestModels.kt
rgbrizzlehizzle
368,589,852
false
null
package io.github.rgbrizzlehizzle.satisfaketion.core.util data class SimpleDataClass(val a: String, val b: Int) data class AnotherSimpleClass(val c: Boolean, val d: String = "hey dude")
4
Kotlin
1
6
60e769997cf2272f90f6be13c6cf810ce50ef593
187
satisfaketion
MIT License
app/src/main/java/com/koodipuukko/dragonsquad/UnitMap.kt
tmmvn
450,234,293
false
{"Kotlin": 297115, "Java": 366}
package com.koodipuukko.dragonsquad class UnitMap
0
Kotlin
0
1
aa10dfac2364fd19898614fa218ba21f3964b84c
51
kotlin-android-game-snippets
Eiffel Forum License v2.0
klang/klang/src/main/kotlin/klang/parser/json/domain/Node.kt
ygdrasil-io
634,882,904
false
{"Kotlin": 292451, "C": 3541, "Shell": 2951, "Objective-C": 1076, "C++": 567}
package klang.parser.json.domain import arrow.core.raise.either import kotlinx.serialization.json.* import mu.KotlinLogging data class Node<T>(val content: T, val children: List<Node<T>>) { fun notLastOf(sibling: List<Node<T>>): Boolean = sibling.last() != this } typealias TranslationUnitNode = Node<Pair<Translatio...
2
Kotlin
1
0
5889fb009a06f141d238587b7288ef727873253e
1,033
klang
MIT License
lib/src/test/kotlin/io/kpeg/samples/seq.kt
AzimMuradov
378,630,452
false
null
package io.kpeg.samples import io.kpeg.pe.Symbol.Rule fun Rule.seq() { // John 42 - OK // John 402 - OK // John -4 - FAIL // John 0 - OK // John 034034 - OK // Jon 42 - FAIL data class Person(val name: String, val age: Int) seq<Person> { val name = +lite...
0
Kotlin
0
6
4d05b7f82d63edb01588de7846316be1ff2cbfc7
645
kpeg
Apache License 2.0
app/src/main/java/com/onixen/audioplayer/views/fragments/TracksListFragment.kt
Onixen
699,858,385
false
{"Kotlin": 35183}
package com.onixen.audioplayer.views.fragments import android.os.Bundle import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import com.onixen.audioplayer.R import com.onixen.audioplayer.databinding.TracksListFragmentBin...
0
Kotlin
0
0
dbadc0f4b7e43c9e6ba65cf4c4f0653351aa9d9a
2,086
player-wave-bar
Apache License 2.0
core/src/main/java/dev/sunnyday/core/runtime/util.kt
SunnyDayDev
178,215,276
false
null
package dev.sunnyday.core.runtime /** * Created by Aleksandr Tcikin (SunnyDay.Dev) on 2019-03-28. * mail: mail@sunnyday.dev */ inline fun <F: Any, S: Any, T> zipIfNonNil(f: F?, s: S?, zipper: (F, S) -> T): T? { val fNonNil = f ?: return null val sNonNil = s ?: return null return zipper(fNonNil, sNonNil...
0
Kotlin
0
0
ec79bad3cc61ecb2e0b2fa651caa6f73ccf39b33
665
core
MIT License
remote/src/main/kotlin/io/github/gmvalentino8/github/sample/remote/models/CodeMinusScanningMinusAlertMinusDismissedMinusReasonApiModel.kt
wasabi-muffin
462,369,263
false
{"Kotlin": 2712155, "Mustache": 4796, "Ruby": 1144, "Shell": 812}
/** * GitHub v3 REST API * * GitHub's v3 REST API. * * The version of the OpenAPI document: 1.1.4 * * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit this file manually. */ @file:Suppress( "ArrayInDataClass", "EnumEntryName", "R...
0
Kotlin
0
1
2194a2504bde08427ad461d92586497c7187fb40
2,231
github-sample-project
Apache License 2.0
common/src/main/kotlin/com/scurab/kuproxy/matcher/RequestMatcher.kt
jbruchanov
359,263,583
false
null
package com.scurab.kuproxy.matcher import com.scurab.kuproxy.comm.IRequest interface RequestMatcher { fun isMatching(real: IRequest, stored: IRequest): Boolean }
0
Kotlin
0
1
2e10d85e7e318850679be3a21fe4406645f88811
168
kuproxy
Apache License 2.0
Pictures.kts
tiwiz
363,271,795
false
null
#!/usr/bin/env kscript @file:DependsOn("com.squareup.okhttp3:okhttp:4.9.1") @file:DependsOn("com.fasterxml.jackson.module:jackson-module-kotlin:2.12.2") import com.fasterxml.jackson.annotation.JsonAutoDetect import com.fasterxml.jackson.annotation.JsonProperty import com.fasterxml.jackson.databind.DeserializationFeat...
0
Kotlin
0
2
183dd1f6fd03856f97af651382d16ef5f3d789ef
3,095
robactions
MIT License
app/src/main/java/com/kryptkode/template/app/di/application/AppModule.kt
trizzi
261,194,267
true
{"Kotlin": 29901}
package com.kryptkode.template.app.di.application import android.content.Context import android.content.SharedPreferences import com.kryptkode.template.BuildConfig import com.kryptkode.template.app.data.dispatchers.AppDispatchers import com.kryptkode.template.app.data.local.prefs.AppPrefs import com.kryptkode.template...
0
null
0
0
358647b896fbd522469e25dd52cad121a8bf0722
1,872
android-template-single-module
Apache License 2.0
app/src/main/java/id/teman/app/domain/model/order/OrderEstimationResponseSpec.kt
RifqiFadhell
681,462,989
false
null
package id.teman.app.domain.model.order import android.os.Parcelable import com.google.android.gms.maps.model.LatLng import kotlinx.parcelize.Parcelize @Parcelize data class OrderEstimationResponseSpec( val distance: String, val totalPrice: Double, val paymentBreakdown: List<OrderPaymentSpec>, val ori...
0
Kotlin
0
0
4414ca5c417e7ca0cebd341becec901335e77c6a
726
Teman-App-Mobile
Apache License 2.0
commonMain/src/main/java/com/rayliu/commonmain/data/api/BookSearchApi.kt
YuanLiou
111,275,765
false
null
package com.rayliu.commonmain.data.api import com.rayliu.commonmain.BuildConfig import io.ktor.client.* import io.ktor.client.request.* import com.rayliu.commonmain.data.dto.NetworkCrawerResult class BookSearchApi( private val httpClient: HttpClient ) : BookSearchService { private val url = BuildConfig.HOST_...
2
Kotlin
3
32
0a310fe534fe04be6bf1316f97cd40ef6e6386ef
968
TaiwanEbookSearch
MIT License
adaptive-lib/adaptive-browser/src/jsMain/kotlin/hu/simplexion/adaptive/html/div.kt
spxbhuhb
788,711,010
false
{"Kotlin": 963434, "CSS": 47382, "Java": 16814, "HTML": 2759, "JavaScript": 896}
/* * Copyright © 2020-2024, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license. */ package hu.simplexion.adaptive.html import hu.simplexion.adaptive.base.Adaptive import hu.simplexion.adaptive.base.AdaptiveAdapter import hu.simplexion.adaptive.base.AdaptiveFragment i...
0
Kotlin
0
0
f3550c330c1b66014e922b30c8a8586d6e9d31d8
1,401
adaptive
Apache License 2.0
components/virtual-node/cpk-write-service-impl/src/main/kotlin/net/corda/cpk/write/impl/services/db/impl/DBCpkStorage.kt
corda
346,070,752
false
null
package net.corda.cpk.write.impl.services.db.impl import net.corda.cpk.write.impl.services.db.CpkStorage import net.corda.libs.cpi.datamodel.CpkFile import net.corda.libs.cpi.datamodel.repository.CpkFileRepositoryImpl import net.corda.orm.utils.transaction import net.corda.v5.crypto.SecureHash import org.slf4j.LoggerF...
127
Kotlin
11
34
aedf118b542a571efdf0ac07496e35935866b85f
1,264
corda-runtime-os
Apache License 2.0
bot/connector-rest/src/main/kotlin/RestConnectorProvider.kt
kchiron
192,942,545
true
{"Kotlin": 3816372, "TypeScript": 606849, "HTML": 212373, "CSS": 63959, "JavaScript": 4142, "Shell": 3046}
/* * Copyright (C) 2017 VSCT * * 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 wri...
0
Kotlin
0
0
0f06c44cd851dded24177ff8e0c53b6fc6fa4dd0
2,042
tock
Apache License 2.0