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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
platform/navigation/navigator/kernel/implementation/src/main/kotlin/aa/weather/navigation/navigator/NavigatorModule.kt | marwinxxii | 608,084,351 | false | null | package aa.weather.navigation.navigator
import aa.weather.component.di.AppPlugin
import aa.weather.component.di.AppPluginKey
import aa.weather.navigation.navigator.screen.api.ScreenNavigatorProvider
import dagger.Binds
import dagger.Module
import dagger.Provides
import dagger.multibindings.IntoMap
import javax.inject.... | 0 | Kotlin | 0 | 0 | 9d056070987da45ca1bf496f98ca54c8c5cfef97 | 856 | weather-app | Apache License 2.0 |
app/src/main/java/com/babylon/wallet/android/utils/BigDecimalExtensions.kt | radixdlt | 513,047,280 | false | {"Kotlin": 4329774, "HTML": 215350, "Java": 18496, "Ruby": 2757, "Shell": 1962} | @file:Suppress("MagicNumber")
package com.babylon.wallet.android.utils
import java.math.BigDecimal
import java.math.RoundingMode
fun BigDecimal.toRETDecimalString(): String = setScale(18, RoundingMode.HALF_UP).toPlainString()
| 4 | Kotlin | 11 | 6 | 61fec2927d38fd134cef97947a65ab2fa532ae41 | 229 | babylon-wallet-android | Apache License 2.0 |
connectors/jdbc-connector/src/main/java/com/orbitalhq/connectors/jdbc/BaseJdbcOperationInvoker.kt | orbitalapi | 541,496,668 | false | {"TypeScript": 9344934, "Kotlin": 5669840, "HTML": 201985, "SCSS": 170620, "HCL": 55741, "Java": 29373, "JavaScript": 24697, "Shell": 8800, "Dockerfile": 7001, "Smarty": 4741, "CSS": 2966, "Mustache": 1392, "Batchfile": 983, "MDX": 884, "PLpgSQL": 337} | package com.orbitalhq.connectors.jdbc
import com.orbitalhq.connectors.collectionTypeOrType
import com.orbitalhq.connectors.config.jdbc.JdbcConnectionConfiguration
import com.orbitalhq.connectors.resultType
import com.orbitalhq.models.DataSource
import com.orbitalhq.models.OperationResult
import com.orbitalhq.models.Ty... | 9 | TypeScript | 10 | 292 | 2be59abde0bd93578f12fc1e2ecf1f458a0212ec | 4,788 | orbital | Apache License 2.0 |
appModules/navigation/src/commonMain/kotlin/dev/reprator/screens/Screens.kt | TheReprator | 781,077,991 | false | {"Kotlin": 399028, "Swift": 5325, "HTML": 357, "JavaScript": 92} | package dev.reprator.screens
import com.slack.circuit.runtime.screen.Screen
@Parcelize
object SplashScreen : AccountBookScreen(name = "SplashScreen()")
@Parcelize
object SettingsScreen : AccountBookScreen(name = "Settings()")
@Parcelize
object DevSettingsScreen : AccountBookScreen(name = "DevelopmentSettings()")
@... | 1 | Kotlin | 0 | 0 | 1468ecc36c791f643973d0fadae9f6154d726b84 | 814 | ExpenseManagment | Apache License 2.0 |
api/src/main/kotlin/com/ssu/commerce/auth/domain/PointAccountRepository.kt | ssu-commerce | 478,587,254 | false | {"Kotlin": 20966} | package com.ssu.commerce.auth.domain
import org.springframework.data.jpa.repository.JpaRepository
import java.util.UUID
interface PointAccountRepository : JpaRepository<PointAccount, Long> {
fun findByAccount_AccountId(accountId: UUID): PointAccount
}
| 4 | Kotlin | 1 | 0 | 58b37295dac5d6f47aa968c027bb01b9e7207d47 | 258 | auth-server | MIT License |
herminedb-driver/src/main/kotlin/org/hermine/internal/db/driver/OperationGroupImpl.kt | pull-vert | 136,531,074 | false | {"Java": 1537434, "Kotlin": 45389} | /*
* Copyright 2018 HermineDB's author : Frédéric Montariol. Use of this source code is governed by the Apache 2.0 license.
*/
package org.hermine.internal.db.driver
import jdk.incubator.sql2.*
import kotlinx.coroutines.CompletableDeferred
import kotlinx.coroutines.Deferred
import kotlinx.coroutines.Job
import kotl... | 0 | Java | 0 | 2 | 719c2202bdb00c1503c9b2844e3c4d2c308f359d | 7,542 | herminedb | Apache License 2.0 |
ArtSpace/app/src/main/java/com/example/artspace/MainActivity.kt | ydv-ankit | 666,011,142 | false | null | package com.example.artspace
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.... | 0 | Kotlin | 0 | 0 | f78ac2a28e6e93094a13d599d5ba0f9ec3998d7c | 3,206 | kotlin-apps-practice | MIT License |
app/src/main/java/com/sama/users/domain/UserDeviceRegistrations.kt | sama-app | 363,692,054 | false | null | package com.sama.users.domain
import com.sama.common.DomainEntity
import com.sama.common.NotFoundException
import com.sama.common.ValueObject
import java.util.UUID
@DomainEntity
data class UserDeviceRegistrations(val userId: UserId, val deviceRegistrations: Set<DeviceRegistration>) {
val isRegistered = deviceRegi... | 0 | Kotlin | 1 | 2 | a73319e26a22bf09aeb6bcc1cc2feaf3723ba0b9 | 1,043 | sama-service | Apache License 2.0 |
app/src/main/java/com/fenghuang/caipiaobao/helper/span/NumberTypefaceSpan.kt | tracyly | 262,531,465 | false | {"Java": 1886821, "Kotlin": 1650417, "HTML": 41991} | package com.fenghuang.caipiaobao.helper.span
import android.graphics.Paint
import android.graphics.Typeface
import android.text.TextPaint
import android.text.style.TypefaceSpan
/**
*
* author : Peter
* date : 2019/7/3013:39
* desc : 自定义数字字体Span
*/
class NumberTypefaceSpan(family: String, private val ... | 1 | null | 1 | 1 | b4f57b41ba0018299d47be4d7705f0dfb1b8cf04 | 1,000 | cpb2.0 | Apache License 2.0 |
packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/data/RecentTaskThumbnailLoader.kt | liu-wanshun | 595,904,109 | true | null | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Java | 1 | 2 | e99201cd9b6a123b16c30cce427a2dc31bb2f501 | 1,619 | platform_frameworks_base | Apache License 2.0 |
native_library/android/FirebaseANE/DynamicLinks/src/main/java/com/tuarua/firebase/dynamiclinks/extensions/FreAndroidParameters.kt | morristech | 190,721,056 | true | {"ActionScript": 600651, "Swift": 387718, "Kotlin": 345447, "Shell": 118960, "Objective-C": 70526, "Java": 61410, "Batchfile": 18834, "PowerShell": 15037, "C": 2596} | /*
* Copyright 2018 Tua Rua Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 0 | ActionScript | 0 | 0 | 75b2f39cc3a3f25563d7741e92f8a12d3c1eace4 | 1,560 | Firebase-ANE | Apache License 2.0 |
src/test/kotlin/com/coditory/gradle/manifest/base/SystemProperties.kt | coditory | 250,088,548 | false | null | package com.coditory.gradle.manifest.base
import java.util.Properties
object SystemProperties {
fun <T> withSystemProperties(properties: Map<String, String>, call: () -> T): T {
val backup = toMap(System.getProperties())
setSystemProperties(properties)
try {
return call()
... | 1 | Kotlin | 1 | 9 | 8aab42b33567d3a7c01dc3c83085d3cfb692daf9 | 1,017 | gradle-manifest-plugin | MIT License |
peacock-support/src/main/kotlin/com/peacock/support/authentication/resolver/AuthenticationCodeResolver.kt | peacock-123 | 828,176,906 | false | {"Kotlin": 74462} | package com.peacock.support.authentication.resolver
import com.peacock.core.domain.vo.Email
import com.peacock.support.authentication.AuthCode
interface AuthenticationCodeResolver {
fun resolve(
code: AuthCode,
redirectUri: String?,
): Email
}
| 0 | Kotlin | 0 | 0 | 7b46858ebad85d005b7e87a69c92d5150f072b04 | 270 | peacock-server | MIT License |
app/src/main/java/com/krykun/movieapp/feature/moviedetails/view/ErrorView.kt | JekaK | 508,341,591 | false | {"Kotlin": 470505} | package com.krykun.movieapp.feature.moviedetails.view
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
i... | 0 | Kotlin | 0 | 7 | b46b296c16e23a6394e382a7d30b34176d443d90 | 939 | MoviesApp | Apache License 2.0 |
src/test/kotlin/g0901_1000/s0996_number_of_squareful_arrays/SolutionTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4901773, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g0901_1000.s0996_number_of_squareful_arrays
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
internal class SolutionTest {
@Test
fun numSquarefulPerms() {
assertThat(Solution().numSquarefulPerms(intArrayOf(1, 17, 8)), equal... | 0 | Kotlin | 20 | 43 | 471d45c60f669ea1a2e103e6b4d8d54da55711df | 465 | LeetCode-in-Kotlin | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/Steak.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.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 | 3,501 | icons | MIT License |
utils/src/commonMain/kotlin/com/badoo/reaktive/utils/clock/Clock.kt | badoo | 174,194,386 | false | null | package com.badoo.reaktive.utils.clock
interface Clock {
val uptimeMillis: Long
val uptimeNanos: Long
}
| 8 | Kotlin | 49 | 956 | c712c70be2493956e7057f0f30199994571b3670 | 115 | Reaktive | Apache License 2.0 |
app/src/main/kotlin/io/cintroy/www/bus/injection/scopes/PerFragment.kt | cintory | 164,553,090 | false | null | package io.cintroy.www.bus.injection.scopes
import javax.inject.Scope
/**
* Created by Cintory on 2019/10/12 10:39
* Email:<EMAIL>
*/
@Scope
internal annotation class PerFragment | 0 | Kotlin | 0 | 0 | 8973ea9b79a840720f3ac51f852cdcd5b64ad33e | 184 | Bus | Apache License 2.0 |
src/main/kotlin/VisibilityModifiers.kt | CogitoCoder | 533,452,617 | false | null | fun main() {
val objOuter: Outer = Outer()
// println(objOuter.a) -> private, can be accessible only in that class
// println(objOuter.b) -> protected, only visible in subclasses
println(objOuter.c) // internal, same as public within a module
println(objOuter.d) // public
val objSubclass: Subcl... | 0 | Kotlin | 0 | 5 | f3293e91212e973945a96f6ae90f2c442acb9298 | 1,629 | Kotlin_Tutorial | MIT License |
app/src/main/java/com/vinicius/githubapi/remote/network/GithubException.kt | KhomDrake | 471,202,847 | false | {"Kotlin": 122985} | package com.vinicius.androidexercises.remote.network
import java.io.IOException
abstract class GithubException() : IOException()
class InvalidQException : GithubException()
class PageNumberTooLarge : GithubException()
class DefaultException : GithubException() | 0 | Kotlin | 0 | 0 | 54ff30b6598f469be66ef2cbbfe7eff815114d5f | 265 | android-exercises | X.Net License |
app/src/main/java/com/example/wishlist/WishlistItem.kt | jwong1209 | 538,741,849 | false | null | class WishlistItem(
val itemName: String,
val number: String,
val url: String) {
} | 1 | Kotlin | 0 | 0 | e7c450294eec7fdafaa7baa04e822007eac56c05 | 94 | Wishlist | Apache License 2.0 |
app/src/main/java/bzh/zelyon/listdetail/model/Region.kt | zelyon | 169,545,180 | false | null | package bzh.zelyon.listdetail.model
import androidx.room.*
import bzh.zelyon.listdetail.BuildConfig
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
@Entity(tableName = "region")
data class Region(
@PrimaryKey @ColumnInfo(name = "id") @SerializedName("id") @Expose var id... | 0 | Kotlin | 0 | 0 | c770df9d8584605694d34ca9dc929f6520ce2523 | 1,059 | ListDetail | Apache License 2.0 |
app/src/main/java/com/vitorpamplona/amethyst/service/MoneroDataSource.kt | retrnull | 827,005,629 | false | {"Kotlin": 5175042, "HTML": 836484, "Java": 189063, "C++": 76000, "Dockerfile": 30817, "CMake": 8487, "Makefile": 2641, "Shell": 1488} | /**
* Copyright (c) 2024 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to use,
* copy, modify, merge, publish, di... | 5 | Kotlin | 3 | 34 | d33428614279300c503770c10a4305ca2a4d5ab6 | 2,136 | garnet | MIT License |
app/src/main/java/com/engency/blackjack/ScoreOverview.kt | ScoutingRudyardKipling | 148,063,240 | false | {"Kotlin": 51145} | package com.engency.blackjack
import android.content.Context
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ListView
import com.en... | 8 | Kotlin | 0 | 2 | 0c0d790c03980e09bfed49910daa229a109c8a6a | 2,928 | BlackJackClient | MIT License |
kotlin-electron/src/jsMain/generated/electron/utility/Net.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
package electron.utility
typealias Net = electron.core.Net
| 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 114 | kotlin-wrappers | Apache License 2.0 |
codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/AWSHttpProtocolRestXMLCustomizations.kt | awslabs | 278,475,105 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
package software.amazon.smithy.aws.swift.codegen.restxml
import software.amazon.smithy.aws.swift.codegen.AWSHttpProtocolCustomizations
import software.amazon.smithy.aws.swift.codegen.AWSHttpRequestXMLE... | 75 | Kotlin | 12 | 161 | f9ff097e413cba9260ecf4c087664e1c65a38527 | 1,429 | aws-sdk-swift | Apache License 2.0 |
common/src/main/kotlin/juuxel/adorn/lib/AdornTags.kt | SiongSng | 379,790,081 | true | {"Kotlin": 357071, "Java": 13797, "Shell": 1583} | package juuxel.adorn.lib
import juuxel.adorn.AdornCommon
import juuxel.adorn.platform.PlatformBridges
import net.minecraft.block.Block
import net.minecraft.item.Item
import net.minecraft.tag.Tag
import net.minecraft.util.Identifier
object AdornTags {
val CHAIRS = blockAndItem(AdornCommon.id("chairs"))
val TAB... | 0 | null | 0 | 0 | 0179c07871d32dc44ce0ec04c9cb94aed3cd2ab6 | 2,214 | Adorn | MIT License |
src/main/kotlin/com/nekofar/milad/intellij/gridsome/cli/GridsomeCliProjectModuleBuilder.kt | KartanHQ | 599,509,782 | false | {"Kotlin": 2861} | package com.nekofar.milad.intellij.gridsome.cli
import com.intellij.ide.util.projectWizard.WebTemplateNewProjectWizard
import com.intellij.ide.wizard.GeneratorNewProjectWizardBuilderAdapter
class GridsomeCliProjectModuleBuilder : GeneratorNewProjectWizardBuilderAdapter(WebTemplateNewProjectWizard(
GridsomeCliProj... | 1 | Kotlin | 0 | 0 | a24f2ce2990984c56a4130715027a534d74a2f27 | 338 | intellij-gridsome | Apache License 2.0 |
src/commonTest/kotlin/org/tix/integrations/shared/custom/CustomRequestMethodTest.kt | ncipollo | 336,920,234 | false | {"Kotlin": 601503} | package org.tix.integrations.shared.custom
import io.ktor.http.*
import kotlin.test.Test
import kotlin.test.expect
class CustomRequestMethodTest {
@Test
fun toHttpMethod() {
val expected = listOf(HttpMethod.Delete, HttpMethod.Get, HttpMethod.Post, HttpMethod.Put)
expect(expected) {
... | 8 | Kotlin | 0 | 3 | 02f87c827c1159af055f5afc5481afd45c013703 | 393 | tix-core | MIT License |
feature4a/src/main/java/com/example/feature4a/di/Feature4aActivityModule.kt | ChicK00o | 194,475,938 | false | null | package com.example.feature4a.di
import android.support.v7.app.AppCompatActivity
import com.example.core_utils.di.BaseActivityModule
import com.example.core_utils.di.ActivityScope
import com.example.feature4a.Feature4aActivity
import dagger.Binds
import dagger.Module
@Module(includes = arrayOf(BaseActivityModule::cla... | 0 | Kotlin | 0 | 1 | 83626707c0559443c90d60afb009d9dd5ba29b5f | 498 | android-multi-module-playground | MIT License |
android/player/src/test/java/com/intuit/playerui/android/renderer/HydrationScopeTest.kt | player-ui | 513,673,239 | false | {"TypeScript": 1216687, "Kotlin": 940522, "Swift": 571596, "Starlark": 119515, "C++": 43679, "JavaScript": 11082, "Shell": 10507, "Ruby": 5513, "MDX": 2317, "Smarty": 2143, "CSS": 1627, "Just": 1552} | package com.intuit.playerui.android.renderer
import android.view.View
import android.widget.TextView
import com.intuit.playerui.android.AndroidPlayer
import com.intuit.playerui.android.AssetContext
import com.intuit.playerui.android.asset.SuspendableAsset
import com.intuit.playerui.core.asset.Asset
import com.intuit.p... | 78 | TypeScript | 45 | 71 | 12b4867a6996848ec14ccefbdbe74360052bf3a5 | 5,112 | player | MIT License |
app/src/main/java/com/vcheck/sdk/core/util/utils/common_utils.kt | VCheckOrg | 791,853,873 | false | {"Kotlin": 332989, "Java": 13291} | package com.vcheck.sdk.core.util.utils
import android.annotation.SuppressLint
import android.content.Context
import android.media.Image
import android.os.Build
import android.os.VibrationEffect
import android.os.Vibrator
import androidx.core.content.ContextCompat.getSystemService
import androidx.core.graphics.ColorUti... | 0 | Kotlin | 0 | 0 | 88ddb5aba95f38020853cdf5b1c898455af0d1c3 | 1,710 | vycheck_android | MIT License |
common/grid/src/test/kotlin/com/curtislb/adventofcode/common/grid/EmptyGridTest.kt | curtislb | 226,797,689 | false | {"Kotlin": 1905641} | package com.curtislb.adventofcode.common.grid
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
/**
* Tests the [EmptyGrid] object.
*/
class EmptyGridTest {
private lateinit var grid: Grid<Any>
... | 0 | Kotlin | 1 | 1 | addf5ae8d002d30abf1ab816e23502a296debc4e | 2,693 | AdventOfCode | MIT License |
core/src/main/java/br/com/moov/core/result/Result.kt | alex-tavella | 79,517,727 | false | null | /*
* Copyright 2021 <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... | 3 | Kotlin | 1 | 0 | 5f14670bddfbbdc0da1a3d394193dc87f9ea1996 | 1,848 | MooV | Apache License 2.0 |
app/src/main/java/com/example/clock/viewmodel/ClockViewModel.kt | lliukhi | 846,473,979 | false | {"Kotlin": 29272} | package com.example.clock.viewmodel
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.switchMap
import com.example.clock.data.model.Clock
import com.example.clock.data.repository.ClockRepository
class Clo... | 0 | Kotlin | 0 | 0 | 052d41922b28e8e95c9f34b9620798a4d1838b5e | 637 | clock | Apache License 2.0 |
notifications/src/main/java/io/karte/android/notifications/internal/wrapper/MessageWrapper.kt | tmk815 | 405,880,429 | true | {"Kotlin": 688922, "Java": 20411, "Ruby": 10189, "Shell": 3734, "Groovy": 710, "CSS": 157} | //
// Copyright 2020 PLAID, Inc.
//
// 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 applicable law or agr... | 0 | null | 0 | 0 | 3b6ba3ee7e8b4ca1298b12f0819e6b8b0efb8017 | 1,696 | karte-android-sdk | Apache License 2.0 |
shared/src/iosMain/kotlin/util/platform.kt | hyeok713 | 664,711,285 | false | null | package util
actual fun getPlatformName(): String = "iOS"
| 0 | Kotlin | 0 | 0 | 4daab9cac93d28ef0f91517562a5259d8c618015 | 59 | compose-multiplatform-ios-android-template | Apache License 2.0 |
utbot-core/src/main/kotlin/org/utbot/common/ClassLoaderUtil.kt | UnitTestBot | 480,810,501 | false | null | package org.utbot.common
import java.net.URLClassLoader
/**
* Checks that the class given by its binary name is on classpath of this classloader.
*
* Note: if the specified class is on classpath, `true` is returned even when
* superclass (or implemented interfaces) aren't on the classpath.
*/
fun URLClassLoader.... | 397 | Kotlin | 32 | 91 | f9c95348acb59c1b4fc212ecb36e6b2968e9ac5a | 487 | UTBotJava | Apache License 2.0 |
src/main/kotlin/com/innopolis/innoqueue/webclients/firebase/service/NotificationTextFormerService.kt | InnoQueue | 614,501,046 | false | {"Kotlin": 241002, "HTML": 2611, "Python": 1208, "Dockerfile": 799, "Shell": 440, "Procfile": 86} | package com.innopolis.innoqueue.webclients.firebase.service
import com.innopolis.innoqueue.webclients.firebase.model.FirebaseRecipients
import com.innopolis.innoqueue.webclients.firebase.model.TitleBody
interface NotificationTextFormerService {
fun getTitleBody(firebaseRecipients: FirebaseRecipients, isPersonal: ... | 25 | Kotlin | 0 | 1 | e02530d0a57d077572d1f75013b0beb995b35f18 | 342 | backend | MIT License |
src/main/kotlin/com/innopolis/innoqueue/webclients/firebase/service/NotificationTextFormerService.kt | InnoQueue | 614,501,046 | false | {"Kotlin": 241002, "HTML": 2611, "Python": 1208, "Dockerfile": 799, "Shell": 440, "Procfile": 86} | package com.innopolis.innoqueue.webclients.firebase.service
import com.innopolis.innoqueue.webclients.firebase.model.FirebaseRecipients
import com.innopolis.innoqueue.webclients.firebase.model.TitleBody
interface NotificationTextFormerService {
fun getTitleBody(firebaseRecipients: FirebaseRecipients, isPersonal: ... | 25 | Kotlin | 0 | 1 | e02530d0a57d077572d1f75013b0beb995b35f18 | 342 | backend | MIT License |
misk-admin/src/main/kotlin/misk/web/dashboard/DashboardNavbarStatus.kt | cashapp | 113,107,217 | false | {"Kotlin": 3843790, "TypeScript": 232251, "Java": 83564, "JavaScript": 5073, "Shell": 3462, "HTML": 1536, "CSS": 58} | package misk.web.dashboard
import misk.web.dashboard.ValidWebEntry.Companion.slugify
/**
* Banner text to show below the dashboard navbar
* 0 or 1 [DashboardNavbarStatus] should be bound per dashboard
*/
@Deprecated("DashboardNavbarStatus will not be supported in Misk Dashboards v2 and will be deleted shortly. Use... | 169 | Kotlin | 169 | 400 | 13dcba0c4e69cc2856021270c99857e7e91af27d | 810 | misk | Apache License 2.0 |
src/main/kotlin/me/luna/trollhack/module/modules/render/HungerOverlay.kt | NotMonika | 509,752,527 | false | {"Kotlin": 2035807, "Java": 168054, "GLSL": 91098} | package me.luna.trollhack.module.modules.render
import me.luna.trollhack.event.events.render.RenderOverlayEvent
import me.luna.trollhack.event.listener
import me.luna.trollhack.module.Category
import me.luna.trollhack.module.Module
import me.luna.trollhack.util.extension.fastCeil
import me.luna.trollhack.util.graphics... | 0 | Kotlin | 0 | 0 | 543ac418b69e0c7359cde487e828b4c3d2260241 | 4,661 | MorisaHack | Do What The F*ck You Want To Public License |
src/main/kotlin/com/example/arthur/testesReactive/repository/TaskRepository.kt | arthur-sh | 370,512,400 | false | null | package com.example.arthur.testesReactive.repository
import com.example.arthur.testesReactive.domain.Task
import org.springframework.data.mongodb.repository.Query
import org.springframework.data.mongodb.repository.ReactiveMongoRepository
import org.springframework.stereotype.Repository
import reactor.core.publisher.Fl... | 0 | Kotlin | 0 | 0 | 5bb4f9276f952d7dd527d2edc81fec5797c4a92f | 576 | KotlinWebfluxTests | MIT License |
filesystem/src/jvmMain/kotlin/nio/NioSync.kt | illarionov | 848,247,126 | false | {"Kotlin": 1163678, "ANTLR": 6038, "TypeScript": 3148, "CSS": 1042, "FreeMarker": 450, "JavaScript": 89} | /*
* Copyright 2024, the wasi-emscripten-host project authors and contributors. Please see the AUTHORS file
* for details. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
* SPDX-License-Identifier: Apache-2.0
*/
package at.released.weh.filesystem.nio
import arr... | 1 | Kotlin | 0 | 3 | 8960e9ee5feb1ef319446725f4ca60e55d5b1c83 | 1,052 | wasi-emscripten-host | Apache License 2.0 |
src/jvmMain/kotlin/org/duangsuse/bin/ByteStreamImpl.kt | duangsuse-valid-projects | 233,615,277 | false | null | package org.duangsuse.bin
import org.duangsuse.bin.type.Buffer
import org.duangsuse.bin.type.Cnt
import org.duangsuse.bin.type.IdxRange
import org.duangsuse.bin.type.Nat8
import java.io.InputStream
import java.io.OutputStream
class InStreamNat8Reader(private val in_stream: InputStream, private val mark_size: Cnt = 0)... | 0 | Kotlin | 0 | 3 | 48d877686a1255815910cae1ef20901fbc608ae9 | 1,157 | SomeAXML | Apache License 2.0 |
app/src/main/java/org/ignisus/mangobet/MainActivity.kt | mangobet | 709,247,514 | false | {"Kotlin": 16274} | package org.ignisus.mangobet
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.material3.... | 0 | Kotlin | 0 | 0 | ddab19e45f1863812f18a9f767dc5a410bd2ac06 | 1,308 | mangobet-mobile | Creative Commons Zero v1.0 Universal |
build/assets/compose/vitaminassets/flags/Tt.kt | Decathlon | 511,157,831 | false | {"Kotlin": 4443549, "HTML": 226066, "Swift": 163852, "TypeScript": 60822, "CSS": 53872, "JavaScript": 33103, "Handlebars": 771} | package com.decathlon.vitamin.compose.vitaminassets.flags
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.... | 1 | Kotlin | 5 | 33 | c2c9cfa43128d412b7b2841cabd76952a13db2e1 | 3,641 | vitamin-design | Apache License 2.0 |
feature/webview/src/main/kotlin/org/bmsk/feature/webview/navigation/WebViewNavGraphImpl.kt | AndroidStudy-bmsk | 632,254,827 | false | {"Kotlin": 119717} | package org.bmsk.feature.webview.navigation
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavType
import androidx.navigation.compose.composable
import androidx.navigation.navArgument
import org.bmsk.feature.webview.WebViewRoute
import org.bmsk.lifemash.feature.topic.api.WebViewNavGraph
import o... | 1 | Kotlin | 1 | 0 | 3e0d37ea57a8cb8877bd65130e249ceeea897d51 | 976 | LifeMash-NewsApp | MIT License |
plugins/kotlin-dataframe/testData/testUtils.kt | Kotlin | 259,256,617 | false | {"Kotlin": 8227503, "Java": 17608, "JavaScript": 11483, "CSS": 3083, "HTML": 137, "Shell": 73} | import org.jetbrains.kotlinx.dataframe.*
import org.jetbrains.kotlinx.dataframe.annotations.*
import org.jetbrains.kotlinx.dataframe.api.*
import org.jetbrains.kotlinx.dataframe.io.*
inline fun <reified T> DataFrame<T>.compareSchemas(strict: Boolean = false) {
val schema = schema()
val compileTimeSchema = comp... | 235 | Kotlin | 60 | 833 | 54d00e69ae7c06ff254c6591242413eaf7894f01 | 722 | dataframe | Apache License 2.0 |
src/test/kotlin/com/yapp/web2/domain/remind/service/RemindServiceTest.kt | YAPP-19th | 399,059,127 | false | null | //package com.yapp.web2.domain.remind.service
//
//import com.yapp.web2.domain.account.entity.Account
//import com.yapp.web2.domain.account.repository.AccountRepository
//import com.yapp.web2.domain.bookmark.entity.Bookmark
//import com.yapp.web2.domain.bookmark.entity.Remind
//import com.yapp.web2.domain.bookmark.repo... | 10 | Kotlin | 1 | 7 | ecc6a3da2a66dceb1a25a4cfe9ed699f0325180a | 6,033 | Web-Team-2-Backend | Apache License 2.0 |
app/src/main/java/za/co/dubedivine/journalapp/firebaseSyncService/FirebaseSyncService.kt | dubeboy | 139,355,314 | false | {"Kotlin": 43699} | package za.co.dubedivine.journalapp.firebaseSyncService
import android.arch.lifecycle.LiveData
import android.support.v7.preference.PreferenceManager
import android.util.Log
import android.widget.Toast
import za.co.dubedivine.journalapp.executors.AppExecutors
import com.google.firebase.firestore.FirebaseFirestore
impo... | 0 | Kotlin | 0 | 0 | 1b874bea7a367ddcf565b71434139c8ed5ecaf09 | 2,141 | ALCJournalAPP | MIT License |
sample/shared/shared/src/commonMain/kotlin/com/arkivanov/sample/shared/counters/PreviewCountersComponent.kt | arkivanov | 437,015,897 | false | {"Kotlin": 700677} | package com.arkivanov.sample.shared.counters
import com.arkivanov.decompose.ComponentContext
import com.arkivanov.decompose.router.stack.ChildStack
import com.arkivanov.decompose.value.MutableValue
import com.arkivanov.decompose.value.Value
import com.arkivanov.sample.shared.PreviewComponentContext
import com.arkivano... | 8 | Kotlin | 84 | 2,207 | 8af551e8895951a5082a5d2750335713d673f80b | 865 | Decompose | Apache License 2.0 |
app/src/main/java/org/discovr/mobile/movies/data/repository/MovieRepository.kt | asatger | 711,133,406 | false | {"Kotlin": 35858} | package org.discovr.mobile.movies.data.repository
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flowOf
import org.discovr.mobile.core.data.remote.mappers.toDomain
import org.discovr.mobile.core.data.util.networkBoundResource
import org.discovr.mobile.core.domain.Page
import org.discovr.mobile.core... | 0 | Kotlin | 0 | 0 | 68bbb4e74cfc25b3d0b974f0e30a55ff64e2404b | 1,170 | discovr | MIT License |
css-gg/src/commonMain/kotlin/compose/icons/cssggicons/Serverless.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36756847} | package compose.icons.cssggicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.graphics... | 15 | Kotlin | 20 | 460 | 651badc4ace0137c5541f859f61ffa91e5242b83 | 3,902 | compose-icons | MIT License |
css-gg/src/commonMain/kotlin/compose/icons/cssggicons/Serverless.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36756847} | package compose.icons.cssggicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.graphics... | 15 | Kotlin | 20 | 460 | 651badc4ace0137c5541f859f61ffa91e5242b83 | 3,902 | compose-icons | MIT License |
kotlin/src/x2022/day5/Day5.kt | freeformz | 573,924,591 | false | {"Kotlin": 43093, "Go": 7781} | package day5
import readInput
fun parseStackInput(stackInput: List<String>): List<ArrayDeque<Char>> {
val stacks = stackInput[0].split(" ").mapNotNull { it.ifEmpty { null }?.toInt() }.map {
ArrayDeque<Char>()
}
stackInput.drop(1).forEach {
it.chunked(4).forEachIndexed { i, its ->
... | 0 | Kotlin | 0 | 0 | 5110fe86387d9323eeb40abd6798ae98e65ab240 | 2,137 | adventOfCode | Apache License 2.0 |
app/src/main/java/com/thiruppathik/beercraft/ui/CartActivity.kt | thiruppathi3 | 140,655,572 | false | {"Kotlin": 30110} | package com.thiruppathik.beercraft.ui
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.LinearLayoutManager
import android.view.View
import android.widget.Toast
import com.thiruppathik.beercraft.Injection
import com.thiruppathik.beercraft.R
import com.thiruppathi... | 0 | Kotlin | 0 | 0 | 2260309af392bb17e034e54aa57812a48cbcfe9b | 1,975 | beer_craft | MIT License |
components/accounts/tests/barinek/bigstar/accounts/AccountsControllerTest.kt | nagavejju | 129,252,081 | true | {"Kotlin": 18795, "HTML": 18} | package barinek.bigstar.accounts
import com.fasterxml.jackson.databind.ObjectMapper
import io.barinek.bigstar.jdbc.DataSourceConfig
import io.barinek.bigstar.rest.BasicApp
import io.barinek.bigstar.rest.RestTemplate
import org.eclipse.jetty.server.Handler
import org.eclipse.jetty.server.handler.HandlerList
import org.... | 0 | Kotlin | 0 | 0 | 2db7acc17bb1e10d9d7541ad9ba80d0d929375d9 | 3,193 | bigstar | Apache License 2.0 |
core/src/main/kotlin/dd4/core/util/Extentions.kt | fromage-fraser | 492,221,484 | false | null | package dd4.core.util
import java.util.Locale
fun String.upperCaseFirst(): String =
this.replaceFirstChar {
if (it.isLowerCase()) it.titlecase(Locale.getDefault())
else it.toString()
}
| 0 | Kotlin | 0 | 0 | 385d143b62623ad6f4c7036e5edc0f2c2e9b2474 | 227 | dd4-tools | MIT License |
app/src/main/java/pro/fateev/diary/extensions/FormattingExtensions.kt | PoisonousJohn | 669,796,348 | false | null | /*
* Copyright 2023 Ivan Fateev
*
* 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 | 00ca68a811349160af03d5e0f85852317a18e24a | 915 | EasyDiary | Apache License 2.0 |
app/src/main/java/com/umaplasticsfsm/app/xmlmodel/UserLocationList.kt | DebashisINT | 740,356,583 | false | {"Kotlin": 13950763, "Java": 1000924} | package com.umaplasticsfsm.app.xmlmodel
import com.umaplasticsfsm.features.location.UserLocationDataEntity
/**
* Created by Kinsuk on 16-01-2019.
*/
class UserLocationList {
//@JacksonXmlElementWrapper(useWrapping = false)
var userLocationDataEntities : List<UserLocationDataEntity>? =null
} | 0 | Kotlin | 0 | 0 | 2ccc871bdcf7df2d08825d0b9ded73b11495519e | 304 | UmaPlastics | Apache License 2.0 |
app/src/main/java/com/hi/dhl/pokemon/data/mapper/Mapper.kt | hi-dhl | 279,366,649 | false | null | package com.hi.dhl.pokemon.data.mapper
/**
* <pre>
* author: dhl
* date : 2020/7/11
* desc :
* </pre>
*/
interface Mapper<I, O> {
fun map(input: I): O
} | 0 | Kotlin | 243 | 1,528 | ed204eaefa6f2929c04f3de668ae5d23db13f5d9 | 177 | PokemonGo | Apache License 2.0 |
src/jsMain/kotlin/presentation/features/settings/components/RegistrationForm.kt | Tanexc | 667,134,735 | false | null | package presentation.features.settings.components
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Clear
import androidx.com... | 0 | Kotlin | 0 | 3 | 27bc23f5ab9dbc8ec7da5fc7812555bbbcaeb0a7 | 8,611 | ComposeWebCakes | Apache License 2.0 |
ulyp-ui/src/main/kotlin/com/ulyp/ui/looknfeel/ThemeManager.kt | 0xaa4eb | 393,146,539 | false | {"Java": 742834, "Kotlin": 89669, "CSS": 5953} | package com.ulyp.ui.looknfeel
import com.ulyp.ui.SceneRegistry
import org.springframework.stereotype.Service
@Service
class ThemeManager() {
private lateinit var sceneRegistry: SceneRegistry
var currentTheme: Theme = Theme.DARK
fun changeTheme(theme: Theme) {
sceneRegistry.scenes().forEach { s... | 5 | Java | 2 | 14 | fbc91a84d75983d608ba37b4722ae1269e89dd09 | 799 | ulyp | Apache License 2.0 |
src/main/kotlin/io/aethibo/features/articles/data/repository/ArticlesRepositoryImpl.kt | primepixel | 726,740,875 | false | {"Kotlin": 66411} | package io.aethibo.features.articles.data.repository
import io.aethibo.core.config.DatabaseFactory.dbQuery
import io.aethibo.core.exceptions.NotFoundResponse
import io.aethibo.features.articles.data.table.Articles
import io.aethibo.features.articles.data.table.ArticlesTags
import io.aethibo.features.articles.data.tabl... | 0 | Kotlin | 0 | 0 | 0d6a5d26de40aec4ef72f908b0e29a38dfbf3627 | 7,906 | Atlas | Apache License 2.0 |
detekt-rules/src/test/resources/cases/DataClassContainsFunctionsPositive.kt | redwarp | 114,749,379 | true | {"Kotlin": 658863, "Groovy": 1433, "HTML": 698} | @file:Suppress("unused")
package cases
data class DataClassWithFunctions(val i: Int) { // reports 2
fun f1() {}
fun f2() {}
data class NestedDataClassWithConversionFunction(val i : Int) { // reports 1
fun toDataClassWithOverriddenMethods() = DataClassWithOverriddenMethods(i)
}
}
| 0 | Kotlin | 0 | 1 | ef0416cae794782d00fbc358d12fa5f24fed9bd3 | 290 | detekt | Apache License 2.0 |
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/KotlinGrammar.kt | gradle | 302,322 | false | {"Groovy": 33309780, "Java": 30797028, "Kotlin": 3552953, "C++": 888505, "JavaScript": 76180, "HTML": 15779, "CSS": 13668, "Shell": 12214, "XSLT": 7121, "C": 5785, "Scala": 2817, "Gherkin": 192, "Python": 58, "Brainfuck": 54} | /*
* Copyright 2023 the original author or authors.
*
* 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... | 2,663 | Groovy | 4552 | 15,640 | 3fde2e4dd65124d0f3b2ef42f7e93446ccd7cced | 8,575 | gradle | Apache License 2.0 |
BasicStateCodelab/app/src/main/java/com/example/basicstatecodelab/WellnessViewModal.kt | zaidazaize | 665,764,719 | false | null | package com.example.basicstatecodelab
import androidx.compose.runtime.toMutableStateList
import androidx.lifecycle.ViewModel
import com.example.basicstatecodelab.models.WellnessTask
class WellnessViewModal : ViewModel() {
private val _task = getWellnessTask().toMutableStateList()
val task: List<WellnessTask>
... | 0 | Kotlin | 0 | 0 | c69a75fcd18d917dda4a427aefa0326a3a54686c | 673 | androidTestProjects | MIT License |
src/backend/ci/core/stream/api-stream/src/main/kotlin/com/tencent/devops/stream/pojo/StreamBuildBranch.kt | Florence-y | 466,159,327 | true | {"Kotlin": 32055720, "Java": 5630945, "Vue": 5114034, "Go": 2452911, "JavaScript": 1705688, "Lua": 782810, "Dart": 551043, "TypeScript": 401445, "Shell": 395465, "SCSS": 382534, "C++": 149772, "HTML": 134571, "CSS": 92893, "Python": 50689, "C": 33502, "Smarty": 27962, "Less": 24714, "Objective-C": 18613, "Dockerfile": ... | package com.tencent.devops.stream.pojo
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
@ApiModel("仓库中所有已构建的分支列表")
data class StreamBuildBranch(
@ApiModelProperty("分支名")
val branchName: String,
@ApiModelProperty("项目ID")
val gitProjectId: Long,
@ApiModelProperty... | 0 | Kotlin | 0 | 2 | 58baee8fabd09ff8e42885162a3b894bab1577da | 366 | bk-ci | MIT License |
geary-papermc-bridge/src/main/kotlin/com/mineinabyss/geary/papermc/configlang/systems/ConditionsToRoles.kt | MineInAbyss | 592,086,123 | false | {"Kotlin": 153813} | package com.mineinabyss.geary.papermc.configlang.systems
import com.mineinabyss.geary.annotations.optin.UnsafeAccessors
import com.mineinabyss.geary.papermc.commons.events.configurable.components.EventCondition
import com.mineinabyss.geary.papermc.commons.events.configurable.components.EventConditions
import com.minei... | 2 | Kotlin | 0 | 1 | 8bfbacb7ba25d52baf868339c4f40e9ee733d100 | 1,351 | geary-papermc | MIT License |
src/main/kotlin/org/nissy/plugins/kotlin/inspection/MainInspection.kt | takete2 | 633,756,751 | false | null | package org.nissy.plugins.kotlin.inspection
import com.intellij.codeInspection.LocalInspectionTool
import com.intellij.codeInspection.ProblemsHolder
import com.intellij.openapi.components.ServiceManager
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiElementVisitor
import com.intellij.psi.impl.source.tre... | 0 | Kotlin | 0 | 1 | 0c8ef04eb27912e3f001e69fb53634165b6a9b5d | 3,858 | KtCodeHelper | Apache License 2.0 |
composeApp/src/commonMain/kotlin/com/calvin/box/movie/feature/vod/VodListScreen.kt | lhzheng880828 | 834,021,637 | false | {"Kotlin": 588223, "JavaScript": 198922, "Java": 116056, "Ruby": 2141, "Swift": 1155, "HTML": 334, "CSS": 102} | package com.calvin.box.movie.feature.vod
import androidx.compose.animation.AnimatedContent
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundati... | 0 | Kotlin | 0 | 0 | 4c4916dc84d2b4ecfe8814b37014be379c38c22d | 4,726 | MovieBox | Apache License 2.0 |
kotlin/src/katas/kotlin/adventofcode/day8/Part1.kt | serpro69 | 336,764,380 | true | {"Roff": 9263219, "JavaScript": 1513061, "Kotlin": 820074, "Scala": 475843, "Java": 475579, "Groovy": 414833, "Haskell": 148306, "HTML": 112989, "Ruby": 87169, "Python": 35433, "Rust": 32693, "C": 31069, "Clojure": 23648, "Lua": 19599, "C#": 12576, "q": 10881, "Scheme": 10734, "CSS": 8639, "R": 7235, "Racket": 6875, "C... | package katas.kotlin.adventofcode.day8
import java.io.*
fun main() {
val digits = File("src/katas/kotlin/adventofcode/day8/input.txt").readText().map { it.toString().toInt() }
val width = 25
val height = 6
val layerSize = width * height
val layer = digits.chunked(layerSize)
.minBy { layer... | 0 | null | 0 | 0 | ff190e3e6f587848859a469a7ee84d49fa72f1c4 | 436 | katas | The Unlicense |
code/jvm/src/main/kotlin/aguDataSystem/server/service/prediction/PredictionService.kt | AGU-Data-System | 765,690,492 | false | {"Kotlin": 723386, "TypeScript": 153702, "JavaScript": 1600, "CSS": 925, "Shell": 889, "HTML": 267} | package aguDataSystem.server.service.prediction
import aguDataSystem.server.domain.agu.AGUBasicInfo
import aguDataSystem.server.domain.alerts.AlertCreationDTO
import aguDataSystem.server.domain.load.ScheduledLoadCreationDTO
import aguDataSystem.server.domain.measure.GasMeasure
import aguDataSystem.server.domain.provid... | 0 | Kotlin | 0 | 1 | d15ebfbd457a375a173090a15531d292c86aaafe | 18,605 | AGU-Data-System | MIT License |
src/main/kotlin/s4got10dev/crypto/exchange/interfaces/rest/controller/WalletController.kt | s4got10dev | 774,954,841 | false | {"Kotlin": 220989} | package s4got10dev.crypto.exchange.interfaces.rest.controller
import java.net.URI
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.RestController
import reactor.core.publisher.Mono
import s4got10dev.crypto.exchange.application.service.WalletService
import s4got10dev.crypto.... | 0 | Kotlin | 0 | 0 | db2433e2aa44cfa23745be8c2448a8c117dfdc50 | 2,660 | crypto-exchange | MIT License |
network-protection/network-protection-internal/src/main/java/com/duckduckgo/networkprotection/internal/network/NetPInternalEnvDataStore.kt | duckduckgo | 78,869,127 | false | {"Kotlin": 14333964, "HTML": 63593, "Ruby": 20564, "C++": 10312, "JavaScript": 8463, "CMake": 1992, "C": 1076, "Shell": 784} | /*
* Copyright (c) 2023 DuckDuckGo
*
* 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 ... | 67 | Kotlin | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 1,797 | Android | Apache License 2.0 |
spinner/src/main/java/com/lavergne/spinner/SpinnerDialog.kt | remylavergne | 210,926,819 | false | null | package com.lavergne.spinner
import android.app.AlertDialog
import android.app.Dialog
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.widget.ArrayAdapter
import android.widget.ListView
import android.widget.Toast
import androidx.annotation.LayoutRes
import androidx.a... | 0 | Kotlin | 0 | 3 | a668cb72a0df8d32549af35395d8901c1f211f5e | 4,446 | spinner-android | MIT License |
app/src/main/java/com/example/borutoapp/navigation/NavGraph.kt | renato-viana | 493,854,743 | false | null | package com.example.borutoapp.navigation
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.NavType
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.navArgument
import com.example.borutoap... | 0 | Kotlin | 0 | 0 | 937e08cecde47248a818c2938cd7cdbc3b6857d8 | 1,321 | borutoapp | Apache License 2.0 |
ktx-radix-tool/ktx-radix-tool-test/src/main/java/io/arkitik/ktx/radix/tool/test/dto/TestClassData.kt | arkitik | 305,525,406 | false | null | package io.arkitik.ktx.radix.tool.test.dto
/**
* Created By [*<NAME> *](https://www.linkedin.com/in/iloom/)
* Created At 30, **Fri Oct, 2020**
* Project *ktx-radix* [https://arkitik.io]
*/
data class TestClassData(
val scenarios: List<TestScenario>,
) | 1 | Kotlin | 1 | 0 | fc6f66dadecf3ebec5cad051ece06a37828889fb | 261 | ktx-radix | Apache License 2.0 |
app/src/main/kotlin/info/dvkr/screenstream/ui/fragment/SettingsFragment.kt | EmadAlhdad | 271,803,225 | true | {"Kotlin": 244406, "HTML": 4698} | package info.dvkr.screenstream.ui.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.elvishew.xlog.XLog
import com.google.android.material.ta... | 0 | Kotlin | 0 | 1 | bdf30c94feb2d6be214eb237348560441cc889c1 | 2,496 | ScreenStream.Emadalhdad | MIT License |
app/src/main/java/com/dm/materialcomponents/TextInputActivity.kt | DenysZP | 143,293,945 | false | null | package com.dm.materialcomponents
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_text_input.*
class TextInputActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... | 0 | Kotlin | 0 | 0 | 69b524e79ec79220ce3bfbf6cea7f86f8494370b | 433 | MaterialComponentsSample | Apache License 2.0 |
representasjon/src/test/kotlin/no/nav/helse/sparkel/representasjon/RepresentasjonRiverTest.kt | navikt | 341,650,641 | false | {"Kotlin": 746878, "Shell": 1607, "Dockerfile": 168} | package no.nav.helse.sparkel.representasjon
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.ObjectMapper
import io.mockk.every
import io.mockk.mockk
import java.util.UUID
import no.nav.helse.rapids_rivers.testsupport.TestRapid
import org.intellij.lang.annotations.Language
import or... | 0 | Kotlin | 1 | 0 | afebdda216f9bfc86789534a80ad59f07373bc8e | 1,799 | helse-sparkelapper | MIT License |
src/main/kotlin/no/nav/tjenestepensjon/simulering/v2025/tjenestepensjon/v1/service/klp/KLPTjenestepensjonClient.kt | navikt | 184,583,998 | false | {"Kotlin": 338844, "Dockerfile": 97} | package no.nav.tjenestepensjon.simulering.v2025.tjenestepensjon.v1.service.klp
import io.github.oshai.kotlinlogging.KotlinLogging
import no.nav.tjenestepensjon.simulering.ping.PingResponse
import no.nav.tjenestepensjon.simulering.ping.Pingable
import no.nav.tjenestepensjon.simulering.v2025.tjenestepensjon.v1.domain.Si... | 8 | Kotlin | 0 | 0 | f9180440c8a800035dffbb5363af7918072c6ac9 | 2,724 | tjenestepensjon-simulering | MIT License |
core/remote/src/main/kotlin/com/theophiluskibet/remote/model/CharacterResponse.kt | kibettheophilus | 811,054,900 | false | {"Kotlin": 66991} | /**
* MIT License
*
* Copyright (c) 2024 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | 3 | Kotlin | 0 | 2 | ae20b26772d6c543fdf03c6bdfab33fe880970d8 | 1,940 | koin-playground | MIT License |
src/test/kotlin/chapter4/solutions/ex8/listing.kt | DavidGomesh | 680,857,367 | false | {"Kotlin": 159910} | package chapter4.solutions.ex8
//tag::init[]
sealed class Partial<out A, out B>
data class Failures<out A>(val get: List<A>) : Partial<A, Nothing>()
data class Success<out B>(val get: B) : Partial<Nothing, B>()
//end::init[]
| 0 | Kotlin | 0 | 0 | 6701481feba3a38cd96262c888e3f61e09bc85e6 | 227 | fp-kotlin | MIT License |
trixnity-core/src/commonMain/kotlin/net/folivo/trixnity/core/model/events/m/key/verification/VerificationStartEventContent.kt | benkuly | 330,904,570 | false | null | package net.folivo.trixnity.core.model.events.m.key.verification
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonClassDiscriminator
import net.folivo.trixnity.core.model.events.RelatesTo
im... | 0 | Kotlin | 3 | 24 | b469cde81341e70b31e7143972ca1dadcc70817d | 1,906 | trixnity | Apache License 2.0 |
app/src/main/kotlin/com/gonodono/smssender/data/SmsSenderDatabase.kt | gonodono | 615,690,160 | false | {"Kotlin": 33831} | package com.gonodono.smssender.data
import androidx.room.Database
import androidx.room.RoomDatabase
@Database(
entities = [Message::class, SendTask::class],
version = 1,
exportSchema = false
)
abstract class SmsSenderDatabase : RoomDatabase() {
abstract val messageDao: MessageDao
abstract val se... | 0 | Kotlin | 0 | 0 | cfa895e5de2f74e662aa68c0d68b7638b8b3af40 | 344 | sms-sender | MIT License |
src/Day02.kt | alexladeira | 573,196,827 | false | null | fun main() {
val finalValues = mapOf("X" to 1, "Y" to 2, "Z" to 3)
val sum = readInput("Day02").fold(0) { acc, s ->
val values = s.split(" ").toMutableList()
values[1] = updateSecondValue(values)
when {
"A" == values[0] && "Z" == values[1] || "C" == values[0] && "Y" == value... | 0 | Kotlin | 0 | 0 | facafc2d92de2ad2b6264610be4159c8135babcb | 1,058 | aoc-2022-in-kotlin | Apache License 2.0 |
technocracy.foundation/src/main/kotlin/net/cydhra/technocracy/foundation/liquids/general/BaseFluidPlaceable.kt | frozolotl | 206,179,330 | true | {"Kotlin": 789585} | package net.cydhra.technocracy.foundation.liquids.general
import java.awt.Color
class BaseFluidPlaceable(fluidName: String, color: Color, opaqueTexture: Boolean) : BaseFluid(fluidName, color,
opaqueTexture = opaqueTexture) | 0 | Kotlin | 0 | 0 | 5edb6a699cd39417c4a313d56bacd39077bb23eb | 233 | Technocracy | MIT License |
app/src/main/java/com/kylecorry/weight_tracker/ui/WeightListItemMapper.kt | kylecorry31 | 656,392,429 | false | null | package com.kylecorry.weight_tracker.ui
import android.content.Context
import com.kylecorry.ceres.list.ListItem
import com.kylecorry.ceres.list.ListItemMapper
import com.kylecorry.ceres.list.ListMenuItem
import com.kylecorry.sol.time.Time.toZonedDateTime
import com.kylecorry.sol.units.Reading
import com.kylecorry.weig... | 0 | Kotlin | 0 | 0 | 2ff4ecaa92a58339334d963b18170a14a93e2220 | 1,118 | Weight-Tracker | MIT License |
app/src/main/java/com/example/emojigarden/LoginVm.kt | mongodb-developer | 323,881,786 | false | null | package com.example.emojigarden
import android.app.Application
import android.util.Log
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.AndroidViewModel
import androidx.compose.runtime.getValue
import androidx.compose.runtime.setValue
/**
* Methods to:
* 1. Login anonymously with MongoDb Rea... | 0 | Kotlin | 4 | 4 | 9c304ba4b9dcf904d40f160c2e37845156ffbd3c | 1,186 | EmojiGarden | Apache License 2.0 |
src/test/kotlin/jsonsql/integration/AliasTest.kt | tim-patterson | 131,454,972 | false | null | package jsonsql.integration
import org.junit.platform.runner.JUnitPlatform
import org.junit.runner.RunWith
import org.spekframework.spek2.Spek
import org.spekframework.spek2.style.specification.describe
@RunWith(JUnitPlatform::class)
object AliasTest: Spek({
describe("Column Aliases") {
it("basic with a... | 1 | Kotlin | 1 | 3 | 1fc28152476ad9ebcc2b1aefce1c2c6636a98083 | 1,787 | jsonsql | MIT License |
src/main/kotlin/com/github/carrot372/namlan/tokenizer/Tokenizer.kt | carrot372 | 491,486,114 | false | null | /*
* Copyright (c) 2022. carrot
* 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 | 4095c211d625c5639ffb43d024ee14b3161de3e3 | 6,203 | Namlan-for-Minecraft | Apache License 2.0 |
data/src/main/java/com/vr/data/di/DataModule.kt | vidalrmrz | 280,246,328 | false | null | package com.vr.data.di
import com.vr.data.repositories.SearchRepositoryImpl
import com.vr.domain.repositories.SearchRepository
import org.koin.dsl.module
val dataModule = module {
single<SearchRepository> { SearchRepositoryImpl(get()) }
} | 0 | Kotlin | 0 | 0 | 2538e56cf63937fa22ba30462429389d85666f5b | 244 | mecali | Apache License 2.0 |
src/main/kotlin/org/jitsi/nlj/util/ClockUtils.kt | jitsi | 165,715,677 | false | null | /*
* Copyright @ 2018 - present 8x8, Inc.
*
* 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 ... | 8 | null | 51 | 33 | 62df6da57f86dc8943b239dbea738f1fc1c9d534 | 986 | jitsi-media-transform | Apache License 2.0 |
kotlin-electron/src/jsMain/generated/electron/utility/DevicePermissionHandlerHandlerDetails.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
package electron.utility
typealias DevicePermissionHandlerHandlerDetails = electron.core.DevicePermissionHandlerHandlerDetails
| 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 182 | kotlin-wrappers | Apache License 2.0 |
feature/data/src/main/java/com/montfel/gamerguide/feature/data/mapper/PlatformsMapper.kt | Montfel | 537,669,918 | false | {"Kotlin": 40222, "Ruby": 2789} | package com.montfel.gamerguide.feature.data.mapper
import com.montfel.gamerguide.feature.data.model.dto.PlatformsDto
import com.montfel.gamerguide.feature.domain.model.Platforms
internal fun PlatformsDto.toDomain() = Platforms(
platform = platform.toDomain(),
releasedAt = releasedAt
)
| 6 | Kotlin | 0 | 2 | 5083aaadc959447bebe18c71e2f1a856343be9e1 | 296 | gamer-guide | MIT License |
gateway/src/main/kotlin/org/heeheepresso/gateway/user/UserService.kt | HeeHeePresso | 758,780,391 | false | {"Kotlin": 7433} | package org.heeheepresso.gateway.user
import org.heeheepresso.gateway.user.api.UserApiService
import org.springframework.stereotype.Service
import java.util.concurrent.ConcurrentHashMap
@Service
class UserService(
private val userApi: UserApiService
) {
private val userRoleCache = ConcurrentHashMap<String, U... | 2 | Kotlin | 0 | 0 | cb1ba900780188af461b390f307e435d4595e6f8 | 538 | Backend | Apache License 2.0 |
app/src/main/java/com/benjaminwan/composelocation/loclib/IOnLocationListener.kt | PhoneTools | 392,888,257 | false | null | package com.benjaminwan.composelocation.loclib
import android.location.Location
interface IOnLocationListener {
fun onLocationChanged(location: Location)//位置信息
fun onSatellitesChanged(satellites: List<Satellite>)//卫星列表
fun onNmeaChanged(nmea: Nmea)//原始GPS信息
fun onFirstFix(firstFixTimeMs: Int)//初次定位时间 ... | 0 | Kotlin | 0 | 5 | 5b8ccba06e8161c6130f77a6d34d92d2bda3ea18 | 378 | ComposeLocation | Apache License 2.0 |
src/main/kotlin/no/nav/lydia/ia/sak/domene/spørreundersøkelse/SpørsmålOgSvaralternativer.kt | navikt | 444,072,054 | false | {"Kotlin": 916949, "Python": 5547, "Shell": 1074, "Dockerfile": 207} | package no.nav.lydia.ia.sak.domene.spørreundersøkelse
import java.util.UUID
data class SpørsmålOgSvaralternativer(
val spørsmålId: UUID,
val spørsmåltekst: String,
val svaralternativer: List<Svaralternativ>,
val flervalg: Boolean,
) | 1 | Kotlin | 0 | 1 | 8a748ea749c30455dacd7f07c993addbacce53f8 | 238 | lydia-api | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.