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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
application/src/main/java/com/iamkurtgoz/application/extensions/RepositoryExtensions.kt | iamkurtgoz | 464,093,153 | false | null | package com.iamkurtgoz.application.extensions
import androidx.paging.PagingData
import androidx.paging.map
import com.google.gson.Gson
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.*
import com.iamkurtgoz.domain.extension.isNull
import com.iamkurtgoz.domain.remote.resource.FlowResource
import co... | 0 | Kotlin | 1 | 25 | 57f7a95021a125e0cdae4924c32891f6b70b0c5a | 2,792 | ECommerceAndroidCompose | MIT License |
compiler/testData/codegen/boxInline/suspend/capturedVariables.kt | JetBrains | 3,432,266 | false | null | // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
// FILE: test.kt
// COMMON_COROUTINES_TEST
// WITH_RUNTIME
// WITH_COROUTINES
import COROUTINES_PACKAGE.*
import helpers.*
suspend inline fun test1(c: suspend () -> Unit) {
c()
}
suspend inline fun test2(crossinline c: suspend () -> Unit) {
val... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,281 | kotlin | Apache License 2.0 |
app/src/main/java/org/loecasi/android/feature/splash/SplashPresenter.kt | ramadani | 107,663,364 | false | null | package org.loecasi.android.feature.splash
import org.loecasi.android.data.network.Auth
import org.loecasi.android.feature.base.BasePresenter
import javax.inject.Inject
/**
* Created by dani on 10/31/17.
*/
class SplashPresenter<V : SplashMvpView> @Inject constructor(private val auth: Auth)
: BasePresenter<V>()... | 0 | Kotlin | 0 | 0 | 1399e6bc543f146f6760344209b75fe557ff55cb | 485 | Loecasi | MIT License |
core/src/main/java/com/skoumal/teanity/databinding/AdaptersGeneric.kt | skoumalcz | 138,592,452 | false | {"Kotlin": 152492} | package com.skoumal.teanity.databinding
import android.view.View
import androidx.core.view.isGone
import androidx.core.view.isInvisible
import androidx.databinding.BindingAdapter
@BindingAdapter("gone")
fun View.setGone(gone: Boolean) {
isGone = gone
}
@BindingAdapter("invisible")
fun View.setInvisible(invisible... | 0 | Kotlin | 3 | 8 | 38e9ea2fe31ef7e6e52e6ad807413b4caa2322a4 | 606 | teanity | Apache License 2.0 |
src/test/kotlin/io/github/cottonmc/proguardparser/test/MappingsSpek.kt | CottonMC | 230,476,608 | false | null | package io.github.cottonmc.proguardparser.test
import arrow.core.Either
import arrow.fx.IO
import arrow.fx.extensions.io.unsafeRun.runBlocking
import arrow.unsafe
import io.github.cottonmc.proguardparser.FieldMapping
import io.github.cottonmc.proguardparser.MethodMapping
import io.github.cottonmc.proguardparser.Projec... | 1 | Kotlin | 0 | 1 | 2ccb9c7a034c9af0dc3fae40a35cc52ed8062e53 | 4,034 | ProguardMappingsParser | MIT License |
src/main/kotlin/derivean/upgrade/u2020_11_16/storage/tables/BuildingAttributeTable.kt | marek-hanzal | 259,577,282 | false | null | package derivean.storage.tables
import org.jetbrains.exposed.dao.id.UUIDTable
import org.jetbrains.exposed.sql.ReferenceOption
object BuildingAttributeTable : UUIDTable("building-attribute") {
val building = reference("building", BuildingTable, ReferenceOption.CASCADE, ReferenceOption.CASCADE)
val attribute = refer... | 112 | Kotlin | 0 | 1 | 7a485228438c5fb9a61b1862e8164f5e87361e4a | 406 | DeRivean | Apache License 2.0 |
src/jsMain/kotlin/io/dcctech/mafita/frontend/browser/resources/AppLightTheme.kt | timoterik | 587,234,059 | false | {"Kotlin": 82347, "JavaScript": 856, "HTML": 776, "Dockerfile": 335} | /*
* Copyright © 2022-2023, DCCTech, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.dcctech.mafita.frontend.browser.resources
import zakadabar.core.browser.button.zkButtonStyles
import zakadabar.core.browser.layout.zkScrollBarStyles
import zakadabar.core.browse... | 0 | Kotlin | 0 | 0 | 52de5d4146e3da08ca1014abc46a820ad1c2ae00 | 2,302 | mafita | Apache License 2.0 |
src/test/kotlin/model/UnionTypeTest.kt | toolisticon | 493,962,736 | false | {"Kotlin": 175015} | package io.toolisticon.avro.kotlin.model
import io.toolisticon.avro.kotlin.builder.AvroBuilder.primitiveSchema
import io.toolisticon.avro.kotlin.builder.AvroBuilder.union
import io.toolisticon.avro.kotlin.model.SchemaType.NULL
import io.toolisticon.avro.kotlin.model.SchemaType.STRING
import org.assertj.core.api.Assert... | 6 | Kotlin | 0 | 4 | 9c2c11b79fcd4d75eaa8b4070d73ea0b825b1b5b | 1,197 | avro-kotlin | Apache License 2.0 |
networking/src/main/java/it/laface/networking/NetworkUtils.kt | carlaf92 | 249,497,287 | false | null | package it.laface.networking
import it.laface.base.NetworkError
import it.laface.base.NetworkResult
import it.laface.networking.IOExceptionInterceptor.Companion.GENERIC_EXCEPTION_STATUS_CODE
import it.laface.networking.IOExceptionInterceptor.Companion.MISSING_CONNECTION_STATUS_CODE
import it.laface.networking.IOExcept... | 1 | Kotlin | 0 | 5 | ece5ed250b5f188b985fb546d24981077ef99866 | 1,311 | nba-app | MIT License |
src/main/kotlin/Day08.kt | joostbaas | 573,096,671 | false | {"Kotlin": 45397} | fun List<String>.parse(): Forest =
Forest(map { line -> line.map { it.digitToInt() } })
data class Tree(val x: Int, val y: Int) {
fun treesBetween(other: Tree): List<Tree> {
require(other.x == x || other.y == y)
require(other != this)
return when {
other.x < x -> (other.x u... | 0 | Kotlin | 0 | 0 | 8d4e3c87f6f2e34002b6dbc89c377f5a0860f571 | 2,820 | advent-of-code-2022 | Apache License 2.0 |
src/main/kotlin/com/twcrone/spacemines/data/PodEntity.kt | space-mines | 174,262,991 | false | {"Kotlin": 11055, "Groovy": 2005} | package com.twcrone.spacemines.data
import javax.persistence.Entity
import javax.persistence.FetchType
import javax.persistence.GeneratedValue
import javax.persistence.GenerationType
import javax.persistence.Id
import javax.persistence.JoinColumn
import javax.persistence.ManyToOne
@Entity(name = "pod")
class PodEntit... | 0 | Kotlin | 0 | 0 | 9da5e3fea1ae200f2a551d0968bd963e83eebc91 | 629 | space-mines-api | MIT License |
src/androidMain/kotlin/com/ditchoom/buffer/JvmBuffer.kt | DitchOoM | 326,036,989 | false | null | package com.ditchoom.buffer
import android.os.Build
import android.os.Parcel
import android.os.ParcelFileDescriptor
import android.os.Parcelable.Creator
import kotlinx.coroutines.CoroutineName
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.cancel
import kotlinx... | 1 | null | 5 | 57 | 56bae8919a09ab89ba831bc8862200735c0f4f61 | 2,918 | buffer | Apache License 2.0 |
src/main/kotlin/me/steven/indrev/blocks/misc/DuctBlock.kt | GabrielOlvH | 265,247,813 | false | {"Gradle": 2, "Java Properties": 1, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Text": 1, "Markdown": 3, "INI": 1, "Java": 24, "JSON": 1480, "Kotlin": 365} | package me.steven.indrev.blocks.misc
import net.minecraft.block.BlockState
import net.minecraft.block.ShapeContext
import net.minecraft.util.math.BlockPos
import net.minecraft.util.math.Direction
import net.minecraft.util.shape.VoxelShape
import net.minecraft.world.BlockView
class DuctBlock(settings: Settings) : Hori... | 51 | Kotlin | 56 | 192 | 012a1b83f39ab50a10d03ef3c1a8e2651e517053 | 1,147 | Industrial-Revolution | Apache License 2.0 |
dashboard/src/main/java/mx/yellowme/youst/dashboard/ui/DashboardOptionAdapter.kt | yellowme | 191,184,085 | false | null | package mx.yellowme.youst.dashboard.ui
import android.view.LayoutInflater
import android.view.ViewGroup
import mx.yellowme.youst.core.hooks.recycler.ItemListener
import mx.yellowme.youst.core.hooks.recycler.SimpleRecyclerAdapter
import mx.yellowme.youst.dashboard.R
import mx.yellowme.youst.dashboard.domain.DashboardOp... | 9 | null | 2 | 9 | 83be5408b0cbdd9d8d88e7ab7dfc0eb0e88b7320 | 843 | youst-kotlin | MIT License |
src/test/kotlin/com/doist/gradle/androidtranslationscheck/AndroidTranslationsCheckPluginTest.kt | Doist | 317,819,000 | false | null | package com.doist.gradle.androidtranslationscheck
import org.gradle.testfixtures.ProjectBuilder
import org.junit.Test
class AndroidTranslationsCheckPluginTest {
@Test
fun `plugin is applied correctly to the project`() {
val project = ProjectBuilder.builder().build()
project.pluginManager.appl... | 0 | Kotlin | 0 | 1 | f99c4596e9549363d2cbf1078c047bd4f4a58034 | 478 | android-translations-check | MIT License |
app/src/main/java/io/horizontalsystems/bankwallet/ui/extensions/InputView.kt | horizontalsystems | 142,825,178 | false | null | package io.horizontalsystems.bankwallet.ui.extensions
import android.content.Context
import android.graphics.Typeface
import android.text.Editable
import android.text.TextWatcher
import android.util.AttributeSet
import android.view.animation.AnimationUtils
import androidx.compose.foundation.layout.padding
import andro... | 163 | Kotlin | 170 | 320 | a520b87e9553e69c76d9d48a0adb0268a53e65b2 | 4,577 | unstoppable-wallet-android | MIT License |
compiler/testData/compileJavaAgainstKotlin/targets/package-info.kt | jsyeo | 40,419,184 | true | {"Java": 15458673, "Kotlin": 9420270, "JavaScript": 176060, "Protocol Buffer": 40373, "HTML": 23495, "Lex": 17327, "ANTLR": 9689, "CSS": 9358, "Groovy": 4934, "Shell": 3931, "IDL": 3255, "Batchfile": 2831} | package test
target(AnnotationTarget.PACKAGE)
annotation class pck | 0 | Java | 0 | 0 | ef095dd5599a0fdd96054269a8d2bfa2b2ef28f8 | 67 | kotlin | Apache License 2.0 |
MentionMeAndroid/src/main/java/com/mentionme/lib/Parameters/MentionmeReferrerParameters.kt | mention-me | 180,824,724 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 2, "Text": 1, "Ignore List": 3, "Batchfile": 2, "Markdown": 1, "INI": 2, "Kotlin": 44, "XML": 35, "YAML": 2, "Proguard": 1, "Java": 1} | package com.mentionme.lib.Parameters
class MentionmeReferrerParameters(referrerMentionMeIdentifier: String, referrerToken: String){
/**
* Id representing the referrer returned by a successful name search
*/
public var referrerMentionMeIdentifier: String = referrerMentionMeIdentifier
/**
* T... | 8 | Kotlin | 0 | 0 | aad00fdc330816e3803c1bc30ecf9e768d5913ae | 451 | android-sdk | MIT License |
util/src/main/kotlin/org/tty/dioc/base/Init2.kt | h1542462994 | 374,315,892 | false | null | package org.tty.dioc.base
interface Init2<T1, T2> {
fun init(arg1: T1, arg2: T2)
} | 0 | Kotlin | 0 | 1 | f24ce47a59936ee21a7d705ef19b5c2e17208868 | 87 | dioc | MIT License |
app/src/main/java/com/example/filler/gui/game/GameUtils.kt | oriolagobat | 494,453,008 | false | null | package com.example.filler.gui.game
import android.content.Intent
import android.widget.GridView
import android.widget.TextView
import com.example.filler.R
import com.example.filler.constants.gui.Music
import com.example.filler.constants.logic.GameColor
import com.example.filler.constants.logic.GameState
import com.ex... | 1 | Kotlin | 0 | 1 | 27f15dfa611d15b9a15888bf87a408b992c3ef04 | 2,846 | Filler-Game-2 | MIT License |
app/src/main/java/com/dongbingbin/nativeutils/utils/CustomerObservable.kt | dongbingbin77 | 210,372,755 | false | null | package com.dongbingbin.nativeutils.utils
import io.reactivex.Observable
import io.reactivex.Observer
import io.reactivex.disposables.Disposable
class CustomerObservable<T>(upstream1:Observable<T> ) : Observable<T>(){
private var upstream: Observable<T> = upstream1
override fun subscribeActual(observer: Obse... | 1 | null | 1 | 1 | fdd061d35574f07e14b882e753ce534bc5c68f5e | 852 | NativeUtils | Apache License 2.0 |
app/src/main/java/com/bossed/waej/javebean/AdjRecordResponse.kt | Ltow | 710,230,789 | false | {"Kotlin": 2304560, "Java": 395495, "HTML": 71364} | package com.bossed.waej.javebean
import com.google.gson.annotations.SerializedName
data class AdjRecordResponse(
@SerializedName("code")
val code: Int,
@SerializedName("msg")
val msg: String,
@SerializedName("rows")
val rows: List<AdjRecordRow>,
@SerializedName("total")
val total: Int... | 0 | Kotlin | 0 | 0 | 8c2e9928f6c47484bec7a5beca32ed4b10200f9c | 1,728 | wananexiu | Mulan Permissive Software License, Version 2 |
core/ui/compose/designsystem/src/main/kotlin/app/k9mail/core/ui/compose/designsystem/atom/button/ButtonDefaults.kt | Amike31 | 627,818,014 | false | null | package app.k9mail.core.ui.compose.designsystem.atom.button
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.runtime.Composable
import app.k9mail.core.ui.compose.theme.MainTheme
@Composable
fun buttonContentPadding(): PaddingValues = PaddingValues(
start = MainTheme.spacings.quadrup... | 0 | Kotlin | 1 | 0 | 2b599570df5a52ab1601b86c3d5c62b14644e608 | 445 | IF4020_Email-Encryption | Apache License 2.0 |
vapi4k-core/src/main/kotlin/com/vapi4k/dsl/model/enums/MessageRoleType.kt | vapi4k | 867,257,277 | false | {"Kotlin": 927827, "JavaScript": 12815, "CSS": 8320, "Mermaid": 1873, "Makefile": 658, "Shell": 89, "HTML": 51} | /*
* Copyright © 2024 <NAME> (<EMAIL>)
*
* 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 | Kotlin | 0 | 0 | f219629ada847ecf166d60ace966adbf254214de | 791 | vapi4k-core | Apache License 2.0 |
compose/ui/ui-test-junit4/src/desktopTest/kotlin/androidx/compose/ui/test/junit4/CustomEffectContextRuleTest.kt | androidx | 256,589,781 | false | {"Kotlin": 102985855, "Java": 64492584, "C++": 9138822, "AIDL": 618584, "Python": 308339, "Shell": 184130, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 18033, "C": 16982, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2024 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 applica... | 30 | Kotlin | 950 | 5,148 | 21c345653501296116a1b618b668ab3088bbddfd | 2,784 | androidx | Apache License 2.0 |
compose/ui/ui-test-junit4/src/desktopTest/kotlin/androidx/compose/ui/test/junit4/CustomEffectContextRuleTest.kt | androidx | 256,589,781 | false | {"Kotlin": 102985855, "Java": 64492584, "C++": 9138822, "AIDL": 618584, "Python": 308339, "Shell": 184130, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 18033, "C": 16982, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2024 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 applica... | 30 | Kotlin | 950 | 5,148 | 21c345653501296116a1b618b668ab3088bbddfd | 2,784 | androidx | Apache License 2.0 |
app/src/main/java/com/bls/flight/ui/ticket/components/TabItem.kt | B-L-Studios | 700,247,918 | false | {"Kotlin": 133504} | package com.bls.flight.ui.ticket.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Tab
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable... | 0 | Kotlin | 0 | 0 | 3021ea1663086591d13f16470d602648d2b63d90 | 1,467 | FlightAir | Apache License 2.0 |
app/src/main/kotlin/dto/UpdateOrderRequest.kt | DiUS | 87,150,714 | false | null | package au.com.dius.coffee.dto
data class UpdateOrderRequest(
val name: String? = null
)
| 0 | Kotlin | 2 | 0 | 2bcc3bd702fbf9829a4f4c3d2bca64bc9f33ae8c | 92 | dius-mentor_boris_coffee-api | MIT License |
nanokt-jvm/src/test/java/com/conena/nanokt/jvm/io/ClosableExtensionsKtTest.kt | conena | 592,106,905 | false | null | /*
* Copyright (C) 2023 <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 i... | 1 | null | 1 | 77 | 0f3315d5a2d9ba602f6a4ea9757d859bdb040a29 | 1,842 | nanokt | Apache License 2.0 |
src/main/kotlin/com/miguel/rucoyapi/controllers/WandsController.kt | MiguelJeronimo | 705,820,521 | false | {"Kotlin": 132389, "Dockerfile": 869} | package com.miguel.rucoyapi.controllers
import com.miguel.rucoyapi.model.responses
import com.miguel.rucoyapi.repository.Repository
import org.apache.logging.log4j.LogManager
import org.apache.logging.log4j.Logger
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
... | 0 | Kotlin | 0 | 0 | c05ea4415138a2c6b032f9576079b2b7d955f0d0 | 1,395 | rucoy-api | MIT License |
app/src/main/java/com/example/todoscompose/Todo.kt | behrends | 705,599,200 | false | {"Kotlin": 7752} | package com.example.todoscompose
data class Todo(val text: String) | 0 | Kotlin | 0 | 0 | d2c0c736452c932ad3dc103f5ee24045ff4d4e25 | 67 | TodosCompose | MIT License |
src/main/java/cy/ac/ucy/cs/anyplace/lib/android/ui/smas/chat/components/Conversation.kt | dmsl | 300,647,134 | false | {"Kotlin": 744946, "Java": 15482} | package cy.ac.ucy.cs.anyplace.lib.android.ui.smas.chat.components
import android.graphics.Bitmap
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.found... | 0 | Kotlin | 1 | 3 | 653becd0961171ad33fa25fac2260927ce5f5175 | 13,583 | anyplace-lib-android | MIT License |
app/src/main/java/dev/gusriil/mindfullconnect/android/dto/post/PostResponseModel.kt | gusriil | 462,092,296 | false | null | package dev.gusriil.mindfullconnect.android.dto.post
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
import kotlinx.serialization.Serializable
@Serializable
@Parcelize
data class PostResponseModel(
val page: Int,
val pagesNumber: Int,
val results: List<PostModel>,
val size: Int
) : Par... | 0 | Kotlin | 0 | 2 | e67415e2dda0121911cbd2a41852ac44411570d8 | 327 | MindfullConnect | Apache License 2.0 |
testing/lab2/src/test/kotlin/dmitry/tpo2/pages/DeletePageTests.kt | Azmalent | 179,684,678 | false | null | package dmitry.tpo2.pages
import com.nhaarman.mockitokotlin2.doNothing
import com.nhaarman.mockitokotlin2.doReturn
import com.nhaarman.mockitokotlin2.spy
import com.nhaarman.mockitokotlin2.whenever
import io.kotlintest.specs.StringSpec
import org.junit.Assert.assertTrue
import org.mockito.ArgumentMatchers.anyInt
clas... | 0 | Kotlin | 0 | 0 | 3f5103bfc26ab988818b2a80d1e0df5ef787bbbd | 678 | itmo6 | Do What The F*ck You Want To Public License |
app/src/main/java/com/ttpsc/dynamics365fieldService/views/adapters/VerticalListAdapter.kt | microsoft | 293,627,613 | false | null | package com.ttpsc.dynamics365fieldService.views.adapters
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import com.ttpsc.dynamics365fieldService.R
import... | 1 | Kotlin | 2 | 9 | 62c2dad4cbbd4496a55aa3f644336044105bb1c1 | 3,494 | DynamicsWOM | MIT License |
app/src/main/java/com/example/ashish1/MainActivity.kt | ashish-monal | 529,170,272 | false | {"Kotlin": 87808} | package com.example.ashish1
import android.annotation.SuppressLint
import android.content.Intent
import android.content.pm.PackageManager
import android.content.res.Configuration
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.provider.MediaStore
import android.view.Menu
import a... | 0 | Kotlin | 0 | 0 | 6d4d393c40d9687969d39156dfc1eef47c09e205 | 13,709 | Music_Player | Freetype Project License |
compiler/testData/codegen/box/ieee754/kt48648_genericField.kt | JetBrains | 3,432,266 | false | null | // TARGET_BACKEND: JVM
// WITH_STDLIB
class V1<T : Number>(y: T) {
@JvmField
var x: T = y
}
class V2<T : Number> {
lateinit var x: T
}
fun check(a: V1<Float>, b: V2<Float>): Boolean =
a.x != b.x
fun box(): String {
val v1 = V1(1.0f)
val v2 = V2<Float>()
v2.x = 2.0f
return if (check(v... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 347 | kotlin | Apache License 2.0 |
src/main/kotlin/io/github/g0dkar/springApiComparator/internal/ApiComparator.kt | g0dkar | 458,298,516 | false | null | package io.github.g0dkar.springApiComparator.internal
import com.google.common.base.Stopwatch
import io.github.g0dkar.springApiComparator.launch
import kotlinx.coroutines.Job
import org.apache.hc.client5.http.classic.methods.HttpGet
import org.apache.hc.client5.http.impl.classic.CloseableHttpClient
import org.apache.h... | 1 | Kotlin | 0 | 0 | bf62e9eac70ad3d89ed74773f4ee65f114ade9b2 | 2,620 | spring-api-comparator | MIT License |
BackEnd_Learn/kotlin/auth/src/test/kotlin/io/github/leeseojune53/auth/AuthApplicationTests.kt | leeseojune53 | 255,096,458 | false | null | package io.github.leeseojune53.auth
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class AuthApplicationTests {
@Test
fun contextLoads() {
}
}
| 99 | null | 1 | 4 | f7c43422152ea71e79a6d9ee236dbef6d6bc121f | 222 | TIL | MIT License |
app/src/main/java/com/anitrack/ruby/anitrack/ui/javaReference/Hero.kt | urlop | 140,782,430 | false | {"Kotlin": 59555, "Java": 4940} | package com.anitrack.ruby.anitrack.ui.javaReference
class Hero {
private val name: String? = null
private val realname: String? = null
private val team: String? = null
private val firstappearance: String? = null
private val createdby: String? = null
private val publisher: String? = null
pri... | 0 | Kotlin | 0 | 0 | 21773c6a70e9bbff2856fae5fb86501cc70bb3c8 | 391 | AniTrack | Apache License 2.0 |
fiks-arkiv-forenklet-arkivering/src/main/kotlin/no/ks/fiks/io/arkiv/model/arkivmelding/ArkivmeldingBuilder.kt | ks-no | 462,694,499 | false | {"Kotlin": 138061, "Java": 12286} | package no.ks.fiks.io.arkiv.model.arkivmelding
import no.ks.fiks.arkiv.v1.arkivmelding.Arkivmelding
import org.w3c.dom.Node
import org.xml.sax.ContentHandler
import java.io.File
import java.io.OutputStream
import java.io.StringWriter
import java.io.Writer
import java.time.ZonedDateTime
import javax.xml.bind.JAXBContex... | 2 | Kotlin | 0 | 0 | aedcc48cf76284d896607cf40dea608270ed761f | 2,695 | fiks-arkiv-client-java | MIT License |
src/main/kotlin/com/github/frozencure/helix/subscriptions/model/Subscription.kt | frozencure | 253,615,832 | false | null | package com.github.frozencure.helix.subscriptions.model
import com.github.frozencure.helix.http.model.AbstractResource
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Subscription(
@SerialName("broadcaster_id")
val broadcasterId: String,
@SerialNa... | 3 | Kotlin | 3 | 17 | 285d49ad2ddf19f8ba2d0973ca17a40168fac914 | 786 | twitch-client | MIT License |
komeglem-core/src/jvmMain/kotlin/com/github/lppedd/komeglem/internal/Dispatchers.kt | lppedd | 423,237,155 | false | {"Kotlin": 32811} | package com.github.lppedd.komeglem.internal
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
@OptIn(ExperimentalCoroutinesApi::class)
internal actual fun Dispatchers.forEventLoop(): CoroutineDispatcher =
IO.limitedParallelism(1)
| 0 | Kotlin | 0 | 2 | 9a6b6ee7c5eee1f353eaba470e327e63e7a202e4 | 320 | komeglem | Apache License 2.0 |
src/main/kotlin/com/kryszak/gwatlin/api/gamemechanics/model/skill/SkillType.kt | Kryszak | 214,791,260 | false | null | package com.kryszak.gwatlin.api.gamemechanics.model.skill
import com.google.gson.annotations.SerializedName
/**
* Skill type values
*/
enum class SkillType {
@SerializedName("Bundle")
BUNDLE,
@SerializedName("Elite")
ELITE,
@SerializedName("Heal")
HEAL,
@SerializedName("Profession")
... | 10 | Kotlin | 0 | 3 | e86b74305df2b4af8deda8c0a5d2929d8110e41d | 419 | gwatlin | MIT License |
app/src/main/java/com/salihselimsekerci/yemeksepetikotlin/activities/ProductsActivity.kt | salihselimsekerci | 372,188,302 | false | null | package com.salihselimsekerci.yemeksepetikotlin.activities
import android.app.ProgressDialog
import android.content.DialogInterface
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AlertDialog
import androidx.recyclerview.widget.GridLayoutM... | 0 | Kotlin | 0 | 2 | 9e2a0ecc87fab8497c4c8bc9902fd4e0c6c129a5 | 6,675 | YemeksepetiKotlin | MIT License |
waltid-verifier-api/src/main/kotlin/id/walt/verifier/base/config/WebConfig.kt | walt-id | 701,058,624 | false | {"Kotlin": 2129639, "Vue": 327721, "TypeScript": 93015, "JavaScript": 20560, "Dockerfile": 7261, "Shell": 1651, "CSS": 404} | package id.walt.issuer.base.config
import kotlinx.serialization.Serializable
@Serializable
data class WebConfig(val webHost: String = "0.0.0.0", val webPort: Int = 3000) : BaseConfig
| 24 | Kotlin | 33 | 98 | a86bd0c843d594f6afe6e747d3c4de7d8a4789a8 | 186 | waltid-identity | Apache License 2.0 |
src/main/kotlin/no/nav/familie/ef/sak/opplysninger/personopplysninger/domene/Grunnlagsdata.kt | navikt | 206,805,010 | false | null | package no.nav.familie.ef.sak.opplysninger.personopplysninger.domene
import no.nav.familie.ef.sak.felles.domain.Sporbar
import org.springframework.data.annotation.Id
import org.springframework.data.relational.core.mapping.Embedded
import java.util.UUID
data class Grunnlagsdata(@Id
val behandl... | 8 | Kotlin | 2 | 0 | 826996ddfeb9a0ec01a8b3525cb5841bd41bd7dd | 595 | familie-ef-sak | MIT License |
src/main/kotlin/com/deflatedpickle/bugmagic/common/networking/handler/HandlerEntityTasks.kt | DeflatedPickle | 141,510,202 | false | null | /* Copyright (c) 2020 DeflatedPickle under the MIT license */
package com.deflatedpickle.bugmagic.common.networking.handler
import com.deflatedpickle.bugmagic.api.entity.mob.EntityCastable
import com.deflatedpickle.bugmagic.common.networking.message.MessageEntityTasks
import net.minecraft.client.Minecraft
import net.... | 18 | Kotlin | 1 | 3 | 1781740bb23631aee8daef0806441182c387044e | 1,244 | BugMagic | MIT License |
src/main/kotlin/com/sourcegraph/cody/error/CodyConsole.kt | sourcegraph | 702,947,607 | false | null | package com.sourcegraph.cody.error
import com.intellij.execution.filters.TextConsoleBuilderFactory
import com.intellij.execution.ui.ConsoleViewContentType
import com.intellij.openapi.application.runInEdt
import com.intellij.openapi.components.Service
import com.intellij.openapi.components.service
import com.intellij.o... | 358 | null | 22 | 67 | 437e3e2e53ae85edb7e445b2a0d412fbb7a54db0 | 1,951 | jetbrains | Apache License 2.0 |
core/src/commonMain/kotlin/work/socialhub/kslack/api/methods/request/chat/ChatScheduleMessageRequest.kt | uakihir0 | 794,979,552 | false | {"Kotlin": 945304, "Ruby": 2164, "Shell": 2095, "Makefile": 316} | package work.socialhub.kslack.api.methods.request.chat
import work.socialhub.kslack.api.methods.SlackApiRequest
import work.socialhub.kslack.entity.Attachment
import work.socialhub.kslack.entity.block.LayoutBlock
class ChatScheduleMessageRequest(
/** Authentication token. Requires scope: `chat:write` */
overr... | 5 | Kotlin | 0 | 0 | 4d7fe4d7658ebe5e7daac29f727db96a09deaead | 2,340 | kslack | MIT License |
src/org/covscript/devkt/lang/cov-constants.kt | covscript | 129,243,516 | false | null | package org.covscript.devkt.lang
import org.jetbrains.annotations.NonNls
@NonNls const val COV_NAME = "CovScript"
@NonNls const val COV_EXTENSION = "csc"
@NonNls const val COV_PKG_EXTENSION = "csp"
| 1 | null | 1 | 1 | 2b31391417dbe4d9b3e93bf21a5c98eca412d94b | 200 | covscript-devkt | MIT License |
src/test/kotlin/no/nav/hm/grunndata/media/model/MediaHandlerTest.kt | navikt | 600,005,685 | false | {"Kotlin": 44442, "Dockerfile": 98, "Shell": 53} | package no.nav.hm.grunndata.media.model
import io.kotest.common.runBlocking
import io.kotest.matchers.nulls.shouldNotBeNull
import io.kotest.matchers.shouldBe
import io.micronaut.test.annotation.MockBean
import io.micronaut.test.extensions.junit5.annotation.MicronautTest
import io.mockk.mockk
import no.nav.hm.grunndat... | 0 | Kotlin | 0 | 1 | 4403047e22b476577616a24cb60842ec15d2b5a5 | 3,393 | hm-grunndata-media | MIT License |
client/app/src/main/java/com/unina/natourkt/core/data/paging/UsersSource.kt | archer-65 | 433,413,556 | false | null | package com.unina.natourkt.core.data.paging
import android.util.Log
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.unina.natourkt.core.data.remote.dto.mapper.UserApiMapper
import com.unina.natourkt.core.data.remote.retrofit.UserApi
import com.unina.natourkt.core.data.repository.UserR... | 0 | Kotlin | 0 | 1 | d0c4881e6b8432aff5cf1751d58350da2d5a4461 | 2,064 | natour-2122 | Apache License 2.0 |
android/app/src/main/kotlin/com/example/chapter_1_challenge_2/MainActivity.kt | moraesnicol | 369,440,365 | false | {"Dart": 7336, "Swift": 404, "Kotlin": 138, "Objective-C": 38} | package com.example.chapter_1_challenge_2
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 0a68abcfe8595c23cfc218cf523ae01c2c2299bc | 138 | chapter_1_challenge_2 | MIT License |
wear-designer/src/com/android/tools/idea/wear/preview/animation/WrappersForLibraryClasses.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2024 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... | 5 | Kotlin | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 3,836 | android | Apache License 2.0 |
app/src/main/java/com/skyink/nubank/model/Payment.kt | DaltonChivambo | 557,543,275 | false | {"Kotlin": 6547} | package com.skyink.nubank.model
data class Payment (
val icon: Int? = null,
val title: String? = null
) | 0 | Kotlin | 0 | 3 | 75ac0ff509aec07b601692589245924e76843911 | 120 | Nubank | MIT License |
src/main/java/dev/blachut/svelte/lang/SvelteIndexedFileTypeProvider.kt | tomblachut | 184,821,501 | false | null | package dev.blachut.svelte.lang
import com.intellij.lang.javascript.index.IndexedFileTypeProvider
import com.intellij.openapi.fileTypes.FileType
class SvelteIndexedFileTypeProvider : IndexedFileTypeProvider {
override fun getFileTypesToIndex(): Array<FileType> = arrayOf(SvelteHtmlFileType.INSTANCE)
}
| 59 | null | 38 | 467 | 183c1af2ece3cf35dbd21c03b6b258ebfe105c20 | 308 | svelte-intellij | MIT License |
pixel/src/main/java/com/leonardpark/pixel/gallery/GalleryActivity.kt | leokwsw | 401,065,872 | false | null | package com.leonardpark.pixel.gallery
import android.content.Intent
import android.os.Bundle
import android.provider.MediaStore
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.recyclerview.widget... | 0 | Kotlin | 0 | 1 | e9b37e4bfabbb9b6ff26958c4992f24319f8f044 | 6,034 | pixel-image | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/client/CaseNotesClient.kt | ministryofjustice | 515,276,548 | false | {"Kotlin": 7376014, "Shell": 8593, "Dockerfile": 1780, "Mustache": 383} | package uk.gov.justice.digital.hmpps.approvedpremisesapi.client
import com.fasterxml.jackson.databind.ObjectMapper
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.stereotype.Component
import org.springframework.web.reactive.function.client.WebClient
import uk.gov.justice.digita... | 30 | Kotlin | 1 | 4 | b60a13416b658405051cdb661201560cbd6f7725 | 963 | hmpps-approved-premises-api | MIT License |
hklibrary/src/main/java/com/remote/hklibrary/Common.kt | xhh4215 | 244,554,186 | false | {"Java": 136718, "Kotlin": 21924} | package com.remote.hklibrary
| 1 | Java | 1 | 1 | bf6cf2a079f7a5e6f95da4fc1ffcfacf9f520201 | 30 | RemoteInquiry | Apache License 2.0 |
src/i_introduction/_9_Extension_Functions/ExtensionFunctions.kt | MarkyMarkMcDonald | 56,108,419 | false | null | package i_introduction._9_Extension_Functions
import util.TODO
import util.doc9
fun String.lastChar() = this.get(this.length - 1)
// 'this' can be omitted
fun String.lastChar1() = get(length - 1)
fun use() {
// try Ctrl+Space "default completion" after the dot: lastChar() is visible
"abc".lastChar()
}
// '... | 0 | Kotlin | 0 | 0 | eabacc140aeaf8606342a134894a19d333bb770e | 429 | kotlin-koans | MIT License |
app/src/main/java/com/marcossalto/peopleapp/di/AppModule.kt | marcossalto | 843,101,377 | false | {"Kotlin": 40412} | package com.marcossalto.peopleapp.di
import android.content.Context
import androidx.room.Room
import com.marcossalto.peopleapp.core.Constants.Companion.DATABASE_NAME
import com.marcossalto.peopleapp.data.repository.UserRepositoryImpl
import com.marcossalto.peopleapp.data.source.local.UserDB
import com.marcossalto.peop... | 0 | Kotlin | 0 | 0 | e89dbecc4cc1cc50db48e2aa0db999f54a7a1773 | 1,113 | people-app | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/models/CredentialsTest.kt | ministryofjustice | 572,524,532 | false | {"Kotlin": 678072, "Python": 32511, "Shell": 13474, "Dockerfile": 1154, "Makefile": 684} | package uk.gov.justice.digital.hmpps.hmppsintegrationapi.models
import io.kotest.core.spec.style.DescribeSpec
import io.kotest.matchers.shouldBe
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.models.hmpps.Credentials
class CredentialsTest : DescribeSpec({
describe("#toBasicAuth") {
it("returns username... | 1 | Kotlin | 1 | 2 | bd7520cc7c4bd93f0074a5c0ea247df7523cfffe | 547 | hmpps-integration-api | MIT License |
android/src/main/java/com/myapplication/MainActivity.kt | sigurdurrafn | 313,399,857 | false | null | package com.myapplication
import App
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.ui.platform.setContent
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setConten... | 2 | null | 1 | 7 | 882bc2be5aab4117a5eae4ad42ba7aa45fa2f1c7 | 359 | compose3d | Apache License 2.0 |
cloud/oauth-server/src/main/kotlin/pers/acp/admin/oauth/conf/AuthorizationServerConfiguration.kt | zhangbinhub | 162,155,230 | false | null | package pers.acp.admin.oauth.conf
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Configuration
import org.springframework.security.authentication.AuthenticationManager
import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServ... | 0 | null | 5 | 19 | 564b34c1f10a75dd4c4e822489d4f0efb9d38089 | 5,134 | acp-admin-cloud | Apache License 2.0 |
src/commonMain/kotlin/com/kodepad/irc/event/EventDispatcherImpl.kt | KodePadLaunch | 322,977,922 | false | null | package com.kodepad.irc.event
import kotlin.reflect.KClass
class EventDispatcherImpl: EventDispatcher {
private val eventListenerMap = HashMap<KClass<Event>, ArrayList<EventListener<Event>>>()
// todo: Check in and out syntax in kotlin
override fun <T : Event> addListener(kClass: KClass<T>, eventListener... | 0 | Kotlin | 0 | 0 | 2afdf0ed30ef8d11811424caa594e5ab9a6c2613 | 907 | IrcClient | Apache License 2.0 |
library/src/commonMain/kotlin/dev/afalabarce/kmm/jetpackcompose/localcomposition/LocalNetworkStatus.kt | afalabarce | 813,304,744 | false | {"Kotlin": 117698, "Ruby": 2250} | package dev.afalabarce.kmm.jetpackcompose.networking
import androidx.compose.runtime.compositionLocalOf
val LocalNetworkStatus = compositionLocalOf<NetworkStatus> {
NetworkStatus.Available
} | 0 | Kotlin | 0 | 0 | 8839e9134b03c924259dd06fa94fbc8671d76889 | 196 | kmm-jetpackcompose | Apache License 2.0 |
client/src/commonMain/kotlin/io/eqoty/secretk/types/response/logs/Attribute.kt | eqoty-labs | 473,021,738 | false | {"Kotlin": 212859, "Swift": 3532, "JavaScript": 427} | package io.eqoty.secretk.types.response.logs
@kotlinx.serialization.Serializable
data class Attribute(
var key: String,
var value: String
) | 6 | Kotlin | 2 | 9 | b534eee367d9b874ec125c8c9b8999dbbbb6052d | 148 | secretk | MIT License |
src/main/kotlin/com/lightningkite/kotlin/observable/property/LifecycleConnectable.ext.kt | rjaros | 107,966,730 | true | {"Kotlin": 125413} | package com.lightningkite.kotlin.observable.property
import com.lightningkite.kotlin.lifecycle.LifecycleConnectable
import com.lightningkite.kotlin.lifecycle.LifecycleListener
/**
* Extensions that allow using ObservablePropertys with the LifecycleConnectable.
* Created by jivie on 6/1/16.
*/
fun <T> LifecycleCon... | 0 | Kotlin | 0 | 2 | f173dd8f6d27104a8067c9006f20c30956460f86 | 5,764 | kotlin-observable-js | MIT License |
mylibrary/src/main/java/com/esp/library/utilities/data/Base.kt | ahsan1122 | 255,336,932 | false | null | package utilities.data
import com.google.gson.Gson
import java.io.Serializable
open class Base : Serializable {
lateinit var error: String
lateinit var error_description: String
fun toJson(): String {
val gson = Gson()
return gson.toJson(this)
}
}
| 1 | null | 1 | 1 | 6e962b8507eb55d5bfb646d230517ae93be14aa7 | 288 | ISP_Library | MIT License |
android/src/debug/kotlin/org/acyb/sayit/app/atom/DialogPreview.kt | a-cyborg | 766,941,087 | false | {"Kotlin": 165341} | /*
* Copyright (c) 2024 <NAME> (bitPogo) / All rights reserved.
*
* Use of this source code is governed by Apache v2.0
*/
package org.acyb.sayit.app.atom
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import org.acyb.sayit.app.molecule.TopAppBarGlobal
@Preview
@Comp... | 0 | Kotlin | 0 | 0 | dc69c992895d0377dc6cc499dfc3e9e876758873 | 788 | SayItAlarmMP | Apache License 2.0 |
app/src/main/java/com/example/composelearning/lists/RowAnim.kt | raghunandankavi2010 | 477,567,478 | false | {"Kotlin": 345409} | package com.example.composelearning.lists
import android.util.Log
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.tween
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import andr... | 0 | Kotlin | 0 | 2 | 5b4a26458e4416fe8319e0e33c3d0765d61efc25 | 9,265 | ComposeLearning | Apache License 2.0 |
app/src/main/java/ru/tech/imageresizershrinker/presentation/root/utils/state/Update.kt | T8RIN | 478,710,402 | false | null | package ru.tech.imageresizershrinker.core.ui.utils.state
import androidx.compose.runtime.MutableState
fun <T> MutableState<T>.update(
transform: (T) -> T
): MutableState<T> = apply {
this.value = transform(this.value)
} | 20 | null | 77 | 979 | 7d164a02c463afede47c785f8b182c954abfcde9 | 229 | ImageToolbox | Apache License 2.0 |
app/src/main/java/com/marcgdiez/jsonplaceholder/list/ItemsListPresenter.kt | mgdiez | 155,749,752 | false | {"Kotlin": 29634} | package com.marcgdiez.jsonplaceholder.list
import com.marcgdiez.jsonplaceholder.business.Item
import com.marcgdiez.jsonplaceholder.core.BasePresenter
import com.marcgdiez.jsonplaceholder.core.Failure
import com.marcgdiez.jsonplaceholder.list.usecase.GetItemsListUseCase
import kotlinx.coroutines.CoroutineDispatcher
imp... | 0 | Kotlin | 3 | 7 | 0de8487bfc59c2abc324ff9a90d4b7c34719ab05 | 1,143 | ForumDB-Kotlin-MVP | Apache License 2.0 |
src/main/kotlin/com/marcelorcorrea/pregnancycalculator/intent/CancelAndStopIntent.kt | marcelorcorrea | 223,477,814 | false | null | package com.marcelorcorrea.pregnancycalculator.intent
import com.hp.kalexa.core.intent.CancelIntentHandler
import com.hp.kalexa.core.intent.StopIntentHandler
import com.hp.kalexa.model.extension.getVal
import com.hp.kalexa.model.request.AlexaRequest
import com.hp.kalexa.model.request.IntentRequest
import com.hp.kalexa... | 0 | Kotlin | 0 | 0 | eeaefcefa4b3591d8c383a9ab6ed824f08854a7c | 1,283 | pregnancy-calculator | Apache License 2.0 |
library/src/main/java/com/kennyc/bottomsheet/BottomSheetListener.kt | Kennyc1012 | 40,453,307 | false | null | package com.kennyc.bottomsheet
import android.view.MenuItem
import androidx.annotation.IntDef
interface BottomSheetListener {
@IntDef(DISMISS_EVENT_MANUAL, DISMISS_EVENT_SWIPE)
annotation class DismissEvent
/**
* Called when the [BottomSheetMenuDialogFragment] is first displayed
*
* @para... | 2 | null | 104 | 886 | e6a4579837de50ecb622502cafd244880ce5c24c | 1,808 | BottomSheetMenu | Apache License 2.0 |
android/app/src/main/kotlin/com/example/flutter_card_swipe/MainActivity.kt | hdjeong80 | 250,914,466 | false | null | package com.example.flutter_card_swipe
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 1 | null | 1 | 1 | 02c0279ab3abc458e14cd52afce678ebd1469243 | 135 | FlutterCardSwipe | Apache License 2.0 |
app/src/main/java/xyz/teamgravity/roompaging3/injection/provide/ApplicationModule.kt | raheemadamboev | 523,697,910 | false | {"Kotlin": 15093} | package xyz.teamgravity.roompaging3.injection.provide
import android.app.Application
import androidx.paging.PagingConfig
import androidx.room.Room
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import kotlinx.coroutines.CoroutineScope
import ko... | 0 | Kotlin | 0 | 0 | ffe6bd027ad5fe90650370b972c5446ba467f6f1 | 2,437 | room-paging3 | Apache License 2.0 |
games-mpp/games-server/src/test/kotlin/net/zomis/games/server2/invites/LoginLobbyDocTest.kt | Zomis | 125,767,793 | false | {"Kotlin": 1346310, "Vue": 212095, "JavaScript": 43020, "CSS": 4513, "HTML": 1459, "Shell": 801, "Dockerfile": 348} | package net.zomis.games.server2.invites
import net.zomis.core.events.EventSystem
import net.zomis.games.example.TestGames
import net.zomis.games.server2.*
import net.zomis.games.server2.clients.FakeClient
import net.zomis.games.server2.doctools.DocWriter
import net.zomis.games.server2.games.GameTypeRegisterEvent
impor... | 89 | Kotlin | 5 | 17 | dd9f0e6c87f6e1b59b31c1bc609323dbca7b5df0 | 4,112 | Games | MIT License |
src/commonTest/kotlin/SeparatedTest.kt | h0tk3y | 96,618,996 | false | {"Kotlin": 171609} |
import com.github.h0tk3y.betterParse.combinators.*
import com.github.h0tk3y.betterParse.grammar.Grammar
import com.github.h0tk3y.betterParse.lexer.regexToken
import com.github.h0tk3y.betterParse.parser.*
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertTrue
class SeparatedTest : Gramma... | 37 | Kotlin | 41 | 391 | af4599c04f84463a4b708e7e1385217b41ae7b9e | 2,371 | better-parse | Apache License 2.0 |
speech-waves-animation/src/main/java/eu/bamboo/speech_waves_animation/AnimationSpeed.kt | BambooAppsDevTeam | 627,935,657 | false | null | package eu.bamboo.speech_waves_animation
enum class AnimationSpeed {
SLOW, NORMAL, FAST
} | 0 | Kotlin | 0 | 1 | d71acad9cf8aeab25005f8043eae74aad25ff00c | 94 | speechwavesanimation | Apache License 2.0 |
feature-crowdloan-impl/src/main/java/jp/co/soramitsu/feature_crowdloan_impl/di/customCrowdloan/bifrost/BifrostContributionModule.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.feature_crowdloan_impl.di.customCrowdloan.bifrost
import dagger.Module
import dagger.Provides
import dagger.multibindings.IntoSet
import jp.co.soramitsu.common.data.network.HttpExceptionHandler
import jp.co.soramitsu.common.data.network.NetworkApiCreator
import jp.co.soramitsu.common.di.scope.F... | 4 | null | 14 | 55 | d555e9cf4bd5f0abf8091781c237b6af9e1da850 | 1,914 | fearless-Android | Apache License 2.0 |
lib/src/commonMain/kotlin/maryk/lib/bytes/String.kt | marykdb | 290,454,412 | false | {"Kotlin": 3293783, "JavaScript": 1004} | package maryk.lib.bytes
import maryk.lib.recyclableByteArray
private const val MIN_SUPPLEMENTARY_CODE_POINT = 0x010000
expect fun fromCodePoint(value: Int): String
expect fun codePointAt(string: String, index: Int): Int
fun initString(bytes: ByteArray, offset: Int, length: Int): String =
bytes.decodeToString(of... | 1 | Kotlin | 1 | 8 | c3b4069317a3f7880ac33baef01f947b78648267 | 4,648 | maryk | Apache License 2.0 |
app/src/main/java/com/example/logogenia/presentation/ui/knowingWords/KnowingWordsRoute.kt | andresarangopro | 144,245,498 | false | null | package com.example.logogenia.presentation.ui.knowingWords
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth
... | 0 | Kotlin | 0 | 0 | 21be6d87ee7cc235b7807a08f1d8a208718c38c3 | 3,041 | sinH | MIT License |
app/src/main/java/ru/iteco/fmhandroid/api/RefreshApiModule.kt | YuriKopshev | 594,466,644 | false | null | package ru.iteco.fmhandroid.api
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import ru.iteco.fmhandroid.api.qualifier.Refresh
import javax.inject.Singleton
@InstallIn(SingletonComponent::class)
@Module(includes = [N... | 0 | Kotlin | 0 | 1 | 50c5ba86854a21342b75f18bd22e33a9b5da60d4 | 560 | QA_middle_finalWork | Apache License 2.0 |
kotlin-electron/src/jsMain/generated/electron/common/CreateInterruptedDownloadOptions.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12159121, "JavaScript": 330528} | // Generated by Karakum - do not modify it manually!
package electron.common
typealias CreateInterruptedDownloadOptions = electron.core.CreateInterruptedDownloadOptions
| 40 | Kotlin | 165 | 1,319 | a8a1947d73e3ed26426f1e27b641bff427dfd6a0 | 173 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/igorvd/chuckfacts/di/features/JokesModule.kt | igorvilela28 | 178,405,675 | false | null | package com.igorvd.chuckfacts.di.features
import androidx.lifecycle.ViewModel
import com.igorvd.chuckfacts.di.core.ViewModelKey
import com.igorvd.chuckfacts.features.jokes.JokesViewModel
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap
import kotlinx.coroutines.FlowPreview
@Module
abstrac... | 1 | Kotlin | 5 | 31 | bae724160772abafad49ce82852bfe959df37091 | 490 | Chuck-Norris-Facts | MIT License |
mqtt/src/main/kotlin/org/sheedon/mqtt/internal/TopicsPool.kt | Sheedon | 253,232,370 | false | {"Gradle": 5, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "INI": 2, "Proguard": 2, "Kotlin": 71, "XML": 36, "Java": 9} | package org.sheedon.mqtt.internal
import org.sheedon.mqtt.Topics
import org.sheedon.mqtt.internal.Contract.ROOT_NAME
import org.sheedon.mqtt.internal.Contract.SIGN
import org.sheedon.mqtt.internal.Contract.SLASH
import java.lang.StringBuilder
/**
* 订阅池,旨在于位置订阅信息,以及新增节点和移除节点。
*
* @Author: sheedon
* @Email: <EMAIL>... | 0 | Kotlin | 3 | 6 | 82bfdf15b61f0cd08d3ff2f751e516d1116ce711 | 9,254 | MqttDispatcher | Apache License 2.0 |
solidfragment/src/main/java/com/mitteloupe/solid/fragment/SolidFragment.kt | EranBoudjnah | 223,144,820 | false | null | package com.mitteloupe.solid.fragment
import android.content.Context
import android.content.Intent
import android.content.res.Configuration
import android.os.Bundle
import android.util.AttributeSet
import android.view.ContextMenu
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuInfla... | 0 | Kotlin | 0 | 35 | c022a6f6d905262647da4cc737b776e5c0601a09 | 11,650 | solid | MIT License |
katmaps-library/src/main/java/com/groupon/katmaps/katmaps_library/MapMarkerContainer.kt | groupon | 258,571,425 | false | null | /*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this f... | 4 | Kotlin | 5 | 15 | d05d58db8ac58c5a4622d5476ca4268c3d37b8ff | 6,656 | KatMaps | Apache License 2.0 |
library/src/commonMain/kotlin/dev/toastbits/ytmkt/impl/youtubei/endpoint/YTMSongLyricsEndpoint.kt | toasterofbread | 771,753,101 | false | {"Kotlin": 244150, "Nix": 2896} | package dev.toastbits.ytmkt.impl.youtubei.endpoint
import dev.toastbits.ytmkt.endpoint.SongLyricsEndpoint
import dev.toastbits.ytmkt.impl.youtubei.YoutubeiApi
import dev.toastbits.ytmkt.model.internal.YoutubeiBrowseResponse
import io.ktor.client.call.body
import io.ktor.client.request.request
import io.ktor.client.sta... | 2 | Kotlin | 6 | 8 | 51aaf1c093afb4fff09db8dcd493463b4228d6c9 | 1,229 | ytm-kt | Apache License 2.0 |
infrastructure/src/main/java/com/kotlinbyte/infrastructure/datasource/remote/networking/OkHttpAuthenticator.kt | AliAzizi | 430,624,753 | false | null | package com.kotlinbyte.infrastructure.datasource.remote.networking
import okhttp3.Authenticator
import okhttp3.Request
import okhttp3.Response
import okhttp3.Route
class OkHttpAuthenticator : Authenticator {
override fun authenticate(route: Route?, response: Response): Request? {
TODO("Not yet implement... | 0 | Kotlin | 0 | 0 | 482ac65e2e55b36deba201d2657440d39ad3d1c9 | 333 | MovieHall | MIT License |
app/src/main/java/com/wisnu/kurniawan/wallee/features/setting/ui/SettingState.kt | wisnukurniawan | 502,203,866 | false | {"Kotlin": 546472} | package com.wisnu.kurniawan.wallee.features.setting.ui
import androidx.compose.runtime.Immutable
import com.wisnu.kurniawan.wallee.R
@Immutable
data class SettingState(
val items: List<SettingItem> = initial()
) {
companion object {
private fun initial() = listOf(
SettingItem.Theme(R.strin... | 11 | Kotlin | 17 | 168 | 0076eebb25846bbab772accfb2a4e49ffa7be3d5 | 733 | Compose-Expense | Apache License 2.0 |
src/main/kotlin/online/senpai/schedbot/module/HandlersModule.kt | SenpaiOnline | 376,016,388 | false | null | package online.senpai.schedbot.module
import online.senpai.schedbot.handler.EventHandler
import online.senpai.schedbot.handler.EventHandlerImpl
import online.senpai.schedbot.handler.SlashCommandsDispatcher
import online.senpai.schedbot.handler.SlashCommandsDispatcherImpl
import org.koin.core.module.Module
import org.k... | 4 | Kotlin | 1 | 0 | 3e9b27c5bcd10d736c81b667c0859e47689bb778 | 494 | schedbot | Apache License 2.0 |
app/src/main/java/com/duckduckgo/app/global/view/FireDialog.kt | Rachelmorrell | 132,979,208 | false | null | /*
* Copyright (c) 2018 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 ... | 4 | null | 0 | 3 | c03633f7faee192948e68c3897c526c323ee0f2e | 7,808 | Android | Apache License 2.0 |
fontawesome/src/de/msrd0/fontawesome/icons/FA_CLOUD_MEATBALL.kt | msrd0 | 363,665,023 | false | {"Kotlin": 3912511, "Jinja": 2214} | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 0 | Kotlin | 0 | 0 | ee6a62d201fd5df2555859271cb0c6a7ee887e7a | 2,442 | fontawesome-kt | Apache License 2.0 |
dodam-design-system/src/iosMain/kotlin/com/b1nd/dodam/designsystem/previews/DodamDatePickerPreview.kt | Team-B1ND | 772,621,822 | false | {"Kotlin": 220288, "Swift": 640} | package com.b1nd.dodam.designsystem.previews
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.rememberModalBottomSheetState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.comp... | 0 | Kotlin | 1 | 7 | 1bf6a49fa2dd19cd062d2656eb071b33f6b237f6 | 2,696 | dds-compose | MIT License |
dodam-design-system/src/iosMain/kotlin/com/b1nd/dodam/designsystem/previews/DodamDatePickerPreview.kt | Team-B1ND | 772,621,822 | false | {"Kotlin": 220288, "Swift": 640} | package com.b1nd.dodam.designsystem.previews
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.rememberModalBottomSheetState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.comp... | 0 | Kotlin | 1 | 7 | 1bf6a49fa2dd19cd062d2656eb071b33f6b237f6 | 2,696 | dds-compose | MIT License |
src/main/kotlin/no/nav/syfo/pdl/model/PdlPerson.kt | navikt | 146,593,683 | false | {"Kotlin": 637824, "Dockerfile": 277} | package no.nav.syfo.pdl.model
data class PdlPerson(
val gt: String?,
val adressebeskyttelse: String?,
val sisteKontaktAdresseIUtlandet: Boolean,
)
fun PdlPerson.getDiskresjonskode(): String? {
return when (adressebeskyttelse) {
"STRENGT_FORTROLIG" -> "SPSF"
"FORTROLIG" -> "SPFO"
... | 2 | Kotlin | 0 | 0 | b6f243d5a3257b76e6843e61825545e6959e5a0a | 343 | syfosminfotrygd | MIT License |
app/src/main/java/com/personal/weathering/aq/presentation/components/CurrentAqInfoCompact.kt | Avvami | 702,061,643 | false | {"Kotlin": 473583} | package com.personal.weathering.aq.presentation.components
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.animateIntAsState
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
i... | 0 | Kotlin | 0 | 0 | fabd0313b1d8c20dec02b498a61886fa69bf9d5f | 9,938 | Weathering | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.