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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/chapter1/section1/ex35_DiceSimulation.kt | w1374720640 | 265,536,015 | false | {"Kotlin": 1373556} | package chapter1.section1
import extensions.formatDouble
import extensions.inputPrompt
import extensions.random
import extensions.readInt
import kotlin.math.abs
/**
* 模拟掷骰子
* 以下代码能够计算每种两个骰子之和的准确概率分布,dist[i]的值就是两个骰子之和为i的概率。
* 用实验模拟N次掷骰子,并在计算两个1到6之间的随机整数之和时记录每个值的出现频率以验证它们的概率。
* N要多大才能够保证你的经验数据和准确数据的吻合程度达到小数点后三位?
*... | 0 | Kotlin | 1 | 6 | 879885b82ef51d58efe578c9391f04bc54c2531d | 1,513 | Algorithms-4th-Edition-in-Kotlin | MIT License |
common/src/test/java/jp/co/soramitsu/common/utils/formatting/FiatFormatterTest.kt | soramitsu | 278,060,397 | false | {"Kotlin": 4371901, "Java": 18796} | package jp.co.soramitsu.common.utils.formatting
import org.junit.Test
class FiatFormatterTest {
private val formatter = FiatFormatter()
@Test
fun `test format`() {
testFormatter(formatter, "1.23", "1.2345")
testFormatter(formatter, "1.20", "1.2")
testFormatter(formatter, "1.23", ... | 16 | Kotlin | 22 | 74 | c67e0dec15af7e624c2da714ce211d88b5e8d6b1 | 784 | fearless-Android | Apache License 2.0 |
android/src/main/kotlin/com/techprd/httpd/flutter_httpd/AndroidFile.kt | techprd | 225,112,114 | false | null | package com.techprd.httpd.flutter_httpd
import android.content.res.AssetManager
import android.util.Log
import java.io.File
import java.io.FileInputStream
import java.io.IOException
import java.io.InputStream
import java.util.Date
class AndroidFile : File {
private val logTag = "AndroidFile"
private var fi... | 0 | Kotlin | 0 | 1 | fe82686385894d6f085dc553db2cb8cf1867b590 | 3,456 | flutter_httpd | MIT License |
app/src/main/java/com/redmadrobot/app/presentation/base/viewmodel/BaseViewModel.kt | Shipaaaa | 320,275,703 | false | null | package com.redmadrobot.app.presentation.base.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.redmadrobot.app.extension.delegate
import com.redmadrobot.app.extension.onNext
import com.redmadrobot.app.presentation.base.viewmodel.event.EventsQueue
import com.redmadrobot... | 0 | Kotlin | 0 | 1 | 9ab8b23c91339ecb3f824b6ba1c090a4b2e260dd | 1,733 | presentation-layer-sample | MIT License |
src/test/kotlin/no/nav/personbruker/dittnav/metrics/periodic/reporter/common/createULID.kt | navikt | 275,789,479 | false | null | package no.nav.personbruker.dittnav.metrics.periodic.reporter.common
import de.huxhorn.sulky.ulid.ULID
fun createULID(): String {
return ULID().nextULID()
}
| 0 | Kotlin | 0 | 0 | 96d3c49ac44998699f635c680add9b4f2098e19f | 163 | dittnav-periodic-metrics-reporter | MIT License |
src/main/kotlin/dev/mizarc/worldwidewarps/listeners/TeleportCancelListener.kt | mizarc | 694,767,925 | false | {"Kotlin": 86960} | package dev.mizarc.worldwidewarps.listeners
import net.kyori.adventure.text.Component
import net.kyori.adventure.text.format.TextColor
import org.bukkit.event.EventHandler
import org.bukkit.event.Listener
import org.bukkit.event.player.PlayerMoveEvent
import dev.mizarc.worldwidewarps.PlayerRepository
class TeleportCa... | 0 | Kotlin | 0 | 1 | 7f4e23ee14b96f9cfdc9de1878323ee5d22aae3f | 1,200 | world-wide-warps | MIT License |
web3walletcore/src/commonMain/kotlin/com/sonsofcrypto/web3walletcore/modules/mnemonicConfirmation/MnemonicConfirmationViewModel.kt | sonsofcrypto | 454,978,132 | false | {"Kotlin": 1330889, "Swift": 970782, "Objective-C": 77663, "Jupyter Notebook": 20914, "Go": 20697, "C": 15793, "Java": 12789, "Shell": 4282, "JavaScript": 1718} | package com.sonsofcrypto.web3walletcore.modules.mnemonicConfirmation
import com.sonsofcrypto.web3walletcore.common.viewModels.MnemonicWordInfo
data class MnemonicConfirmationViewModel(
val potentialWords: List<String>,
val wordsInfo: List<MnemonicWordInfo>,
val isValid: Boolean?,
val mnemonicToUpdate ... | 1 | Kotlin | 2 | 6 | d86df4845a1f60624dffa179ce6507ede3222186 | 360 | web3wallet | MIT License |
web3walletcore/src/commonMain/kotlin/com/sonsofcrypto/web3walletcore/modules/mnemonicConfirmation/MnemonicConfirmationViewModel.kt | sonsofcrypto | 454,978,132 | false | {"Kotlin": 1330889, "Swift": 970782, "Objective-C": 77663, "Jupyter Notebook": 20914, "Go": 20697, "C": 15793, "Java": 12789, "Shell": 4282, "JavaScript": 1718} | package com.sonsofcrypto.web3walletcore.modules.mnemonicConfirmation
import com.sonsofcrypto.web3walletcore.common.viewModels.MnemonicWordInfo
data class MnemonicConfirmationViewModel(
val potentialWords: List<String>,
val wordsInfo: List<MnemonicWordInfo>,
val isValid: Boolean?,
val mnemonicToUpdate ... | 1 | Kotlin | 2 | 6 | d86df4845a1f60624dffa179ce6507ede3222186 | 360 | web3wallet | MIT License |
autofill/autofill-impl/src/main/java/com/duckduckgo/autofill/impl/email/remoteconfig/EmailProtectionInContextRemoteSettingsPersister.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11626231, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} |
package com.duckduckgo.autofill.impl.email.remoteconfig
import com.duckduckgo.app.di.AppCoroutineScope
import com.duckduckgo.autofill.impl.email.incontext.EmailProtectionInContextSignupFeature
import com.duckduckgo.autofill.impl.email.incontext.store.EmailProtectionInContextDataStore
import com.duckduckgo.common.uti... | 0 | Kotlin | 0 | 0 | b89591136b60933d6a03fac43a38ee183116b7f8 | 1,547 | DuckDuckGo | Apache License 2.0 |
integration-tests/common/src/test/kotlin/me/tatarka/inject/test/InheritanceTest.kt | evant | 194,859,139 | false | null | package me.tatarka.inject.test
import assertk.assertThat
import assertk.assertions.hasClass
import assertk.assertions.isNotNull
import assertk.assertions.isSameAs
import me.tatarka.inject.annotations.Component
import me.tatarka.inject.annotations.Provides
import kotlin.test.Test
interface ComponentInterface {
val... | 32 | Kotlin | 42 | 853 | e29da6d82ba37b1ae19b35266eb537a0fb15273b | 2,684 | kotlin-inject | Apache License 2.0 |
app/src/main/java/com/example/mycharge/network/ChargeService.kt | wenvelope | 506,684,779 | false | {"Kotlin": 44966} | package com.example.mycharge.network
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query
interface ChargeService {
@GET("charges")
fun searchCharges():Call<ChargePlace>
}
interface FormService {
@GET("charges/forms")
fun getForms(@Query("token") tok... | 0 | Kotlin | 1 | 1 | 3ee708c69fafe28884149493d7dcd6d89abab42e | 536 | MyCharge | Apache License 2.0 |
src/main/kotlin/com/nikichxp/tgbot/handlers/commands/TopKarmaHandler.kt | NikichXP | 395,716,371 | false | null | package com.nikichxp.tgbot.handlers.commands
import com.nikichxp.tgbot.core.CurrentUpdateProvider
import com.nikichxp.tgbot.service.TgOperations
import com.nikichxp.tgbot.service.UserInfo
import com.nikichxp.tgbot.service.menu.CommandHandler
import com.nikichxp.tgbot.util.getContextChatId
import org.springframework.da... | 0 | Kotlin | 0 | 0 | 4a2a940b3fe27717e1f0c1db93e2bb768a354c90 | 1,678 | tg-bot | Apache License 2.0 |
src/nativeMain/kotlin/name/oshurkov/viget/thumbnail/ThumbnailAction.kt | dmitry-oshurkov | 384,364,463 | false | null | package name.oshurkov.viget.thumbnail
import com.soywiz.korio.file.writeToFile
import io.ktor.client.*
import io.ktor.client.engine.curl.*
import io.ktor.client.request.*
import kotlinx.coroutines.runBlocking
import name.oshurkov.viget.thumbnailsDir
import org.gnome.gdkpixbuf.savev
import org.gnome.gtk.newPixbufFromFi... | 0 | Kotlin | 0 | 1 | 26a137f985db2efc4a1381e7cfb4376911dbb8bb | 892 | viget | MIT License |
VideoCompositionSample/src/main/java/dev/chromeos/videocompositionsample/presentation/media/encoder/MediaEncoder.kt | chromeos | 419,334,870 | false | null | /*
* Copyright (c) 2021 Google LLC
*
* 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 agree... | 0 | Kotlin | 2 | 7 | 7a91156a14bd4a735a9bcaa42b8e09c1ad92e08f | 4,721 | video-composition-sample | Apache License 2.0 |
service/src/test/kotlin/org/eclipse/keti/acs/attribute/readers/DefaultResourceAttributeReaderTest.kt | anubhavi25 | 137,931,061 | true | {"Kotlin": 1252473, "Shell": 39051, "Gherkin": 8014, "Groovy": 6987} | /*******************************************************************************
* Copyright 2018 General Electric Company
*
* 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:... | 1 | Kotlin | 0 | 0 | 285400fba42c687bb42bf4e537ae6f9eca4bf4df | 2,828 | keti | Apache License 2.0 |
sample/src/main/kotlin/dev/arildo/iris/sample/ui/MainActivity.kt | arildojr7 | 634,544,161 | false | {"Kotlin": 59404} | package dev.arildo.iris.sample.ui
import android.graphics.Color
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.SystemBarStyle
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.runtime.collectAsState
import android... | 1 | Kotlin | 4 | 61 | e6ca164239d74050c531d93e69a8ecf11ab7a6fc | 966 | iris-mock | Apache License 2.0 |
src/main/kotlin/me/benjozork/kson/writer/value/JsonStringValueWriter.kt | Benjozork | 156,921,876 | false | null | package me.benjozork.kson.writer.value
import me.benjozork.kson.common.JsonToken
import me.benjozork.kson.writer.JsonWriter
import me.benjozork.kson.writer.Writer
object JsonStringValueWriter : Writer<String>() {
override fun print(writer: JsonWriter, data: String) {
val finalString = "" + data // Make... | 0 | Kotlin | 0 | 0 | 9b52b262e1bf1ca2663faaca34c86ac2f73b451a | 541 | kson | MIT License |
core/common/src/main/java/com/fullrandomstudio/todosimply/common/coroutine/TodoSimplyDispatchers.kt | DamianWoroszyl | 653,764,648 | false | null | package com.fullrandomstudio.todosimply.common.coroutine
import javax.inject.Qualifier
import kotlin.annotation.AnnotationRetention.RUNTIME
@Qualifier
@Retention(RUNTIME)
annotation class Dispatcher(val dispatcher: TodoSimplyDispatchers)
enum class TodoSimplyDispatchers {
Main,
Default,
IO,
}
| 0 | Kotlin | 0 | 0 | 4bea1276c3ee0714002d195d94d02cf0491383d7 | 309 | todo-simply | Apache License 2.0 |
core/common/src/main/java/com/fullrandomstudio/todosimply/common/coroutine/TodoSimplyDispatchers.kt | DamianWoroszyl | 653,764,648 | false | null | package com.fullrandomstudio.todosimply.common.coroutine
import javax.inject.Qualifier
import kotlin.annotation.AnnotationRetention.RUNTIME
@Qualifier
@Retention(RUNTIME)
annotation class Dispatcher(val dispatcher: TodoSimplyDispatchers)
enum class TodoSimplyDispatchers {
Main,
Default,
IO,
}
| 0 | Kotlin | 0 | 0 | 4bea1276c3ee0714002d195d94d02cf0491383d7 | 309 | todo-simply | Apache License 2.0 |
app/src/main/java/org/listenbrainz/android/model/SocialUiState.kt | metabrainz | 550,726,972 | false | {"Kotlin": 1485809, "Ruby": 423} | package org.listenbrainz.android.model
data class SocialUiState(
val searchResult: List<String> = emptyList(),
val error: ResponseError? = null,
val successMsgId : Int? = null
) | 23 | Kotlin | 32 | 106 | 3e08da262b02a658d885fb15f7a930878b19230d | 190 | listenbrainz-android | Apache License 2.0 |
src/main/kotlin/com/tafel/missions/tafelmissions/dao/MissionDao.kt | prambrucke | 174,589,753 | false | null | package com.tafel.missions.tafelmissions.dao
import com.tafel.missions.tafelmissions.dao.sql.MissionSql
import com.tafel.missions.tafelmissions.model.Mission
import com.tafel.missions.tafelmissions.model.MissionDetail
import com.tafel.missions.tafelmissions.rowmapper.MissionRowMapper
import com.tafel.missions.tafelmis... | 8 | Kotlin | 0 | 0 | 544651909027dd4e8ffb0c99dba34a26a7909399 | 4,267 | tafel-missions | MIT License |
src/main/kotlin/view/screens/DirectedGraphScreen.kt | spbu-coding-2023 | 791,480,179 | false | {"Kotlin": 147316} | package view.screens
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.PointerMatcher
import androidx.compose.foundation.gestures.detectDragGestures
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.*
import androidx.compose.ui.ExperimentalCompos... | 2 | Kotlin | 0 | 4 | b25b5a432b6af0c71f401d27770938d49f88ecf9 | 8,058 | graphs-graphs-8 | The Unlicense |
app/src/main/java/com/example/jsonplaceholder/mainRepository/MainRepository.kt | fairoozp | 529,910,429 | false | {"Kotlin": 31011} | package com.example.jsonplaceholder.mainRepository
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.MutableLiveData
import com.example.jsonplaceholder.mainModel.AlbumModel
import com.example.jsonplaceholder.mainModel.CommentModel
import com.example.jsonplaceholder.mainModel.PhotoModel
import com.exam... | 0 | Kotlin | 0 | 0 | c15d30198d1f83800ae107b47aa913469117000a | 1,601 | JSONPlaceHolder | MIT License |
example/src/main/kotlin/playlist/TimelinePreviewItem.kt | numq | 683,026,324 | false | {"Kotlin": 254455, "C++": 13067, "Java": 4521, "CMake": 2370} | package playlist
import androidx.compose.ui.geometry.Offset
import frame.Frame
data class TimelinePreviewItem(val offset: Offset, val millis: Long, val frame: Frame.Video.Content) | 0 | Kotlin | 0 | 8 | ef5d42a4162abdbe8765aec5e5ecaade9a6c705e | 182 | Klarity | Apache License 2.0 |
compottie/src/commonMain/kotlin/io/github/alexzhirkevich/compottie/internal/effects/EffectValue.kt | alexzhirkevich | 730,724,501 | false | {"Kotlin": 891763, "Swift": 601, "HTML": 211} | package io.github.alexzhirkevich.compottie.internal.effects
import io.github.alexzhirkevich.compottie.internal.animation.AnimatedColor
import io.github.alexzhirkevich.compottie.internal.animation.AnimatedNumber
import io.github.alexzhirkevich.compottie.internal.animation.AnimatedVector2
import io.github.alexzhirkevich... | 5 | Kotlin | 7 | 232 | 46b008cd7cf40a84261b20c5888359f08368016a | 2,932 | compottie | MIT License |
src/main/kotlin/coffee/injected/extensions/collections/CollectionsExtensions.kt | CoffeeInjected | 244,717,732 | false | null | @file:Suppress("NOTHING_TO_INLINE")
package coffee.injected.extensions.collections
import java.util.*
inline fun <T> Collection<T>?.isBlank(): Boolean = this == null || isEmpty()
inline fun <T> Collection<T?>.anyNull(): Boolean = any { it == null }
inline fun <T> Collection<T?>.allNull(): Boolean = all { it == nul... | 0 | Kotlin | 0 | 0 | 6598dfb0bb963befcc3b3fa9b49bc01753cc8c48 | 3,218 | KExtensions | Apache License 2.0 |
src/main/kotlin/me/melijn/melijnbot/internals/services/bans/BanService.kt | raspimana | 364,375,727 | false | null | package me.melijn.melijnbot.internals.services.bans
import me.melijn.melijnbot.commands.moderation.getUnbanMessage
import me.melijn.melijnbot.database.DaoManager
import me.melijn.melijnbot.database.ban.Ban
import me.melijn.melijnbot.enums.LogChannelType
import me.melijn.melijnbot.internals.services.Service
import me.m... | 1 | Kotlin | 0 | 0 | acf17564244c0c62fba2b85e143d83c6c00c1a86 | 5,285 | Melijn | MIT License |
app/src/main/java/com/nativeboys/password/manager/data/storage/ContentDao.kt | EvangelosBoudis | 347,924,640 | false | null | package com.nativeboys.password.manager.data.storage
import androidx.room.*
import com.nativeboys.password.manager.data.ContentData
@Dao
interface ContentDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun save(contents: List<ContentData>)
@Delete
suspend fun delete(fields: List<Conte... | 0 | Kotlin | 0 | 0 | b392cf151d1967b6dc5d56fef6f5f0bfaaa7fb07 | 441 | digital-bit-security | Apache License 2.0 |
src/test/kotlin/com/example/graph/nativex/ResourceBundleRuntimeHintsRegistrarTest.kt | juliuskrah | 288,965,100 | false | {"Kotlin": 47655} | package com.example.graph.nativex
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.springframework.aot.hint.RuntimeHints
import org.springframework.aot.hint.predicate.RuntimeHintsPredicates
/**
* @author <NAME>
*/
class ResourceBundleRuntimeHintsRegistrarTest {
@Te... | 0 | Kotlin | 1 | 2 | bdd2403db74739f098a513ebacb63ddbc02a9796 | 872 | graphql-demo | The Unlicense |
dd-sdk-android/src/main/kotlin/com/datadog/android/core/internal/time/MutableTimeProvider.kt | hixio-mh | 281,064,117 | true | {"Kotlin": 1797271, "Java": 213999, "C": 74755, "C++": 15178, "CMake": 1606} | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.core.internal.time
import com.datadog.to... | 4 | null | 0 | 0 | 3b3bfab22b26067330186c4637e80d19adf334c1 | 590 | dd-sdk-android | Apache License 2.0 |
2020/kotlin/day-3/main.kt | waikontse | 330,900,073 | false | null | import util.FileUtils
val fileUtils = FileUtils("input.txt")
fun main() {
println ("Day 3")
val multiplied = listOf(
countTotalHitTrees(getData(1), 1),
countTotalHitTrees(getData(1), 3),
countTotalHitTrees(getData(1), 5),
countTotalHitTrees(getData(1), 7),
countTotalHi... | 0 | Kotlin | 0 | 0 | abeb945e74536763a6c72cebb2b27f1d3a0e0ab5 | 940 | advent-of-code | Creative Commons Zero v1.0 Universal |
src/main/kotlin/g0001_0100/s0077_combinations/Solution.kt | javadev | 190,711,550 | false | {"Kotlin": 4901773, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g0001_0100.s0077_combinations
// #Medium #Backtracking #Algorithm_I_Day_11_Recursion_Backtracking
// #2023_07_10_Time_232_ms_(100.00%)_Space_41.1_MB_(95.65%)
class Solution {
fun combine(n: Int, k: Int): List<List<Int>> {
val ans: MutableList<List<Int>> = ArrayList()
// Boundary case
... | 0 | Kotlin | 20 | 43 | 471d45c60f669ea1a2e103e6b4d8d54da55711df | 961 | LeetCode-in-Kotlin | MIT License |
src/cloud/google-cloud-function/src/jsTest/kotlin/community/flock/aigentic/cloud/google/function/util/GoogleRequestResponse.kt | flock-community | 791,132,993 | false | {"Kotlin": 185441, "Shell": 630} | package community.flock.aigentic.cloud.google.function.util
import community.flock.aigentic.cloud.google.function.declarations.GoogleRequest
fun createRequestResponse(invalidAuthorizationHeader: Boolean = false): Pair<GoogleRequest, GoogleResponseWrapper> {
val headers =
if (invalidAuthorizationHeader) {
... | 0 | Kotlin | 0 | 1 | 1230e3ed982c89e17e2b6e557c6d294b0e6f1e6e | 1,289 | aigentic | MIT License |
gradle-plugin/src/main/kotlin/io/github/nickacpt/patchify/gradle/model/builders/PatchifyWorkspaceBuilder.kt | NickAcPT | 287,130,022 | false | null | package io.github.nickacpt.patchify.gradle.model.builders
import io.github.nickacpt.patchify.gradle.initializers.WorkspaceInitializer
import io.github.nickacpt.patchify.gradle.initializers.impl.EmptyWorkspaceInitializer
import io.github.nickacpt.patchify.gradle.model.PatchifyGradleWorkspace
import java.nio.file.Path
... | 0 | Kotlin | 0 | 5 | b9753014e7b553bcbee9a596dedc321aa0409f49 | 880 | Patchify | MIT License |
app/src/main/kotlin/com/dot/gallery/feature_node/presentation/util/StateExt.kt | IacobIonut01 | 614,314,251 | false | null | package com.dot.gallery.feature_node.presentation.util
import androidx.compose.runtime.MutableState
fun <T> MutableState<T>.update(newState: T) {
if (value != newState) {
value = newState
}
} | 21 | Kotlin | 7 | 294 | c58bb042b7cb9128d49e7cf39e2ab82d32713c99 | 209 | Gallery | Apache License 2.0 |
adapty-ui/src/main/java/com/adapty/ui/internal/ShapeDrawable.kt | adaptyteam | 635,216,932 | false | {"Kotlin": 212522} | package com.adapty.ui.internal
import android.graphics.Canvas
import android.graphics.ColorFilter
import android.graphics.Paint
import android.graphics.Path
import android.graphics.PixelFormat
import android.graphics.Rect
import android.graphics.RectF
import android.graphics.drawable.Drawable
import androidx.annotatio... | 1 | Kotlin | 2 | 17 | 6bacba7ddf78f647522312b43fee975ce71f98a5 | 6,451 | AdaptyUI-Android | MIT License |
android/app/src/main/java/com/algorand/android/mapper/DateFilterPreviewMapper.kt | perawallet | 364,359,642 | false | {"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596} | /*
* Copyright 2022 Pera Wallet, LDA
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,... | 22 | Swift | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 1,691 | pera-wallet | Apache License 2.0 |
example/src/main/java/io/github/amalhanaja/reactiveconnectivity/example/MainActivity.kt | amalhanaja | 117,323,588 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Java": 2, "XML": 18, "Kotlin": 12} | package io.github.amalhanaja.reactiveconnectivity.example
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import io.github.amalhanaja.reactiveconnectivity.ReactiveConnectivity
import kotlinx.android.synthetic.main.activity_main.*
class... | 1 | Kotlin | 5 | 22 | 3b4f9b361d74c3a931e4db3f630c48c3e5e38d90 | 1,149 | ReactiveConnectivity | Apache License 2.0 |
compiler/testData/ir/irText/expressions/genericPropertyCall.kt | JakeWharton | 99,388,807 | false | null | val <T> T.id get() = this
val test = "abc".id | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 46 | kotlin | Apache License 2.0 |
data/src/main/java/com/anangkur/budgetku/data/repository/auth/AuthRemote.kt | anangkur | 270,303,728 | false | null | package com.anangkur.budgetku.data.repository.auth
import android.net.Uri
import com.anangkur.budgetku.data.BaseFirebaseListener
import com.anangkur.budgetku.data.model.auth.UserEntity
import com.google.android.gms.auth.api.signin.GoogleSignInAccount
import com.google.firebase.auth.FirebaseUser
interface AuthRemote {... | 10 | null | 0 | 3 | 82dc439d0df25cc894de5fc8d2604f1670c6cf31 | 1,497 | Budget-Ku | MIT License |
oklibrary/src/main/java/com/gateoftruth/oklibrary/StringCallBack.kt | GateOfTruth | 204,602,230 | false | {"Gradle Kotlin DSL": 4, "Java Properties": 2, "YAML": 1, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 50, "XML": 33, "Java": 2} | package com.gateoftruth.oklibrary
abstract class StringCallBack : DataCallBack<String>() {
override fun stringToData(string: String): String {
return string
}
} | 0 | Kotlin | 6 | 61 | 50aaf5b68ee413b03dc2978b5462048d4a17bc1c | 178 | OkSimple | Apache License 2.0 |
expert/realm-java/realm/realm-library/src/androidTest/kotlin/io/realm/entities/AllKotlinTypes.kt | weiwenqiang | 105,327,551 | false | null | /*
* Copyright 2017 Realm 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 agreed to in wr... | 400 | null | 1747 | 13 | a22f3ed254a005a8c8007f677968655620ccd3b1 | 2,857 | GitHub | Apache License 2.0 |
kamp-core/src/main/kotlin/ch/leadrian/samp/kamp/core/api/callback/OnTrailerUpdateListener.kt | Double-O-Seven | 142,487,686 | false | null | package ch.leadrian.samp.kamp.core.api.callback
import ch.leadrian.samp.kamp.annotations.CallbackListener
import ch.leadrian.samp.kamp.annotations.IgnoredReturnValue
import ch.leadrian.samp.kamp.core.api.entity.Player
import ch.leadrian.samp.kamp.core.api.entity.Vehicle
@CallbackListener(runtimePackageName = "ch.lead... | 1 | null | 1 | 7 | af07b6048210ed6990e8b430b3a091dc6f64c6d9 | 637 | kamp | Apache License 2.0 |
app/src/main/java/cn/imrhj/sharetoqrcode/util/FileUtils.kt | ahjsrhj | 103,113,693 | false | {"Gradle": 3, "XML": 21, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 1, "Markdown": 1, "INI": 2, "Proguard": 1, "Kotlin": 18, "Java": 5} | package cn.imrhj.sharetoqrcode.util
import android.content.Context
import android.os.Environment
import java.io.File
import java.io.IOException
/**
* Created by rhj on 2017/9/12.
*/
fun createOrExistsFile(file: File?): Boolean {
if (file == null) {
return false
}
// 如果存在,是文件则返回true,是目录则返回false
... | 0 | Kotlin | 2 | 11 | 097400cac31e4929d89084568c3d27cd4c22c579 | 1,403 | ShareToQRCode | Apache License 2.0 |
libraries/tools/kotlin-symbol-processing-api/src/org/jetbrains/kotlin/ksp/symbol/KSTypeReference.kt | android | 263,405,600 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.ksp.symbol
/**
* A [KSTypeReference] is a [KSReferenceElement] with annotations... | 1 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 767 | kotlin | Apache License 2.0 |
KT15/src/main/kotlin/net/println/kt15/AccessDataClass.kt | Lucas-Lu | 95,633,408 | false | null | package net.println.kt15
/**
* Created by luliju on 2017/7/19.
*/
fun main(args:Array<String>){
var dataClass = DataClass();
dataClass.id = 0
print(dataClass.id)
} | 1 | null | 1 | 1 | 7be22e471ef04a2a7e286bc63c9e58eead4196d2 | 178 | KotlinWorld | MIT License |
module/DevComponent/lib_utils/src/main/java/dev/kotlin/engine/media/media.kt | daqiang5566 | 505,435,180 | true | {"Java Properties": 20, "Gradle": 56, "Shell": 1, "EditorConfig": 1, "Markdown": 54, "Batchfile": 1, "Text": 6, "Ignore List": 34, "JSON": 3, "XML": 321, "INI": 9, "Kotlin": 419, "Proguard": 18, "Java": 661} | package dev.kotlin.engine.media
import android.app.Activity
import android.content.Context
import android.content.Intent
import androidx.fragment.app.Fragment
import dev.engine.DevEngine
import dev.engine.media.IMediaEngine
// ==========================================
// = IMediaEngine<EngineConfig, EngineData> =
//... | 0 | null | 0 | 0 | bbd2c22db0e9cdd3a767bb0c4b3638e539f70336 | 4,455 | DevUtils | Apache License 2.0 |
plugins/full-line/core/src/org/jetbrains/completion/full/line/language/formatters/DummyPsiCodeFormatter.kt | xGreat | 182,651,778 | false | {"Text": 7190, "INI": 570, "YAML": 416, "Ant Build System": 10, "Batchfile": 28, "Shell": 616, "Markdown": 680, "Ignore List": 125, "Git Revision List": 1, "Git Attributes": 10, "EditorConfig": 244, "XML": 7188, "SVG": 3739, "Kotlin": 48905, "Java": 80666, "HTML": 3312, "Java Properties": 214, "Gradle": 419, "Maven POM... | package org.jetbrains.completion.full.line.language.formatters
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
class DummyPsiCodeFormatter : PsiCodeFormatterBase() {
override fun cutTree(psiFile: PsiFile, position: PsiElement, offset: Int): List<String> = emptyList()
}
| 1 | null | 1 | 1 | fb5f23167ce9cc53bfa3ee054b445cf4d8f1ce98 | 293 | intellij-community | Apache License 2.0 |
ontrack-repository-impl/src/main/java/net/nemerosa/ontrack/repository/PreferencesJdbcRepository.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.repository
import com.fasterxml.jackson.databind.JsonNode
import net.nemerosa.ontrack.repository.support.AbstractJdbcRepository
import org.springframework.stereotype.Repository
import javax.sql.DataSource
@Repository
class PreferencesJdbcRepository(dataSource: DataSource) : AbstractJdbcRe... | 57 | null | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 1,242 | ontrack | MIT License |
src/main/kotlin/xyz/gnarbot/gnar/commands/executors/music/dj/ResetCommand.kt | MCBRasil | 88,361,002 | false | {"Java": 162880, "Kotlin": 85631} | package xyz.gnarbot.gnar.commands.executors.music.dj
import net.dv8tion.jda.core.Permission
import net.dv8tion.jda.core.entities.Message
import xyz.gnarbot.gnar.BotConfiguration
import xyz.gnarbot.gnar.commands.Category
import xyz.gnarbot.gnar.commands.Command
import xyz.gnarbot.gnar.commands.CommandExecutor
import xy... | 1 | null | 1 | 1 | 8b8799579c7fd87c9d9f8ea1bb496ec1a12c81c4 | 915 | Gnar-bot | MIT License |
app/src/main/java/com/battlelancer/seriesguide/ui/search/ShowsPopularAdapter.kt | UweTrottmann | 1,990,682 | false | null | package com.battlelancer.seriesguide.ui.search
import android.view.ViewGroup
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.RecyclerView
class ShowsPopularAdapter(
val onItemClickListener: AddFragment.AddAdapter.OnItemClickListener
) : PagingDataAdapter<SearchResult, RecyclerView.Vie... | 42 | null | 386 | 1,619 | ecfd594c5f58184de8312e9fe709230cf925453a | 1,725 | SeriesGuide | Apache License 2.0 |
fparse/src/test/kotlin/pandora/fparse/ApplicationTests.kt | sergeyt | 150,127,275 | false | null | package pandora.fparse
import org.apache.commons.io.FileUtils
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
import java.io.File
import java.nio.file.Files
val aliceUrl = "https://www.adobe.com/be_en/active-use/pdf/Alice_in_Wonderland.pdf"
@SpringBootTest
class Applicat... | 49 | Go | 7 | 26 | ce25bc57dcff3d5fb1fd6b3bf2a9b7aebcd6732f | 1,627 | pandora | Apache License 2.0 |
wallet_app/android/app/src/main/java/com/example/walletapp/MainActivity.kt | keep-starknet-strange | 831,085,793 | false | null | package com.example.walletapp
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.Image
import a... | 21 | null | 17 | 18 | d66b1dedfcd92c0f15931a6cef5d2570071311a9 | 6,353 | starknet-phone | MIT License |
app/src/main/java/ru/kartsev/dmitry/cinemadetails/mvvm/model/entities/now_playing/NowPlayingMoviesEntity.kt | Jaguarhl | 190,435,175 | false | null | package ru.kartsev.dmitry.cinemadetails.mvvm.model.entities.now_playing
import com.squareup.moshi.Json
import ru.kartsev.dmitry.cinemadetails.mvvm.model.entities.popular.MovieEntity
data class NowPlayingMoviesEntity(
@Json(name = "dates")
val dates: Dates,
@Json(name = "page")
val page: Int,
@Json... | 0 | Kotlin | 0 | 0 | d80929fcb461249c074dfff73ce7156ee91ff074 | 495 | MoviesDetails | Apache License 2.0 |
stytch/src/main/kotlin/com/stytch/java/b2b/api/sso/SSO.kt | stytchauth | 665,684,154 | false | null | package com.stytch.java.b2b.api.sso
// !!!
// WARNING: This file is autogenerated
// Only modify code within MANUAL() sections
// or your changes may be overwritten later!
// !!!
import com.squareup.moshi.JsonAdapter
import com.squareup.moshi.Moshi
import com.squareup.moshi.Types
import com.stytch.java.b2b.api.ssooid... | 0 | Kotlin | 0 | 0 | 53a0cc24a2aa9ec547068fdbde2b3d05146f2ff3 | 7,122 | stytch-java | MIT License |
module-discovery/src/main/java/com/pp/module_discovery/ui/tag/TagDetailViewModel.kt | PPQingZhao | 548,315,946 | false | {"Kotlin": 553508, "Java": 1135} | package com.pp.module_discovery.ui.tag
import android.app.Application
import android.util.Log
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.pp.library_base.base.ThemeViewModel
import com.pp.library_network.eyepetizer.bean.detail.TagDetailBean
import com.pp.module_discove... | 0 | Kotlin | 0 | 5 | 904d9a980811d502f88479cb450c3a6e8d027f09 | 1,737 | Eyepetizer | Apache License 2.0 |
app/src/main/java/com/brimanning/consumer/ConsumerApplication.kt | brimanning | 236,583,710 | false | null | package com.brimanning.consumer
import com.brimanning.foundation.FoundationApplication
class ConsumerApplication : FoundationApplication("Consumer") | 0 | Kotlin | 0 | 0 | 0c374f1dc39f47fb3f408c7946db8736125d9acc | 150 | android-consumer | MIT License |
app/src/testShared/java/ru/olegivo/afs/helpers/MockEx.kt | olegivo | 189,586,349 | false | null | /*
* Copyright (C) 2020 <NAME> <<EMAIL>>
*
* This file is part of AFS.
*
* AFS is free software: you can redistribute it and/or modify
* it under the terms of the MIT License.
*
* AFS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANT... | 15 | Kotlin | 0 | 0 | c828167fc361ce32ddd2d4354f450dd052295de9 | 1,667 | AFS | MIT License |
app/src/main/java/br/com/fiap/carbonpath/MainActivity.kt | Bee-Pirez | 764,382,891 | false | {"Kotlin": 18419} | package br.com.fiap.carbonpath
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.ui.Modif... | 0 | Kotlin | 0 | 0 | b2d98f80346526814b3f590993fb6f684a95c0b6 | 955 | fiap-plataformaESG | MIT License |
src/main/kotlin/insyncwithfoo/revealtype/RevealTypeInspection.kt | InSyncWithFoo | 837,840,799 | false | {"Kotlin": 33560, "Python": 4097, "HTML": 546} | package insyncwithfoo.revealtype
import com.intellij.codeInspection.LocalInspectionToolSession
import com.intellij.codeInspection.ProblemHighlightType
import com.intellij.codeInspection.ProblemsHolder
import com.intellij.psi.PsiElementVisitor
import com.jetbrains.python.documentation.PythonDocumentationProvider
import... | 0 | Kotlin | 0 | 1 | bd0149b3b1eb872b1ccce93aa3a966a769c5f4b3 | 2,442 | reveal-type-for-pycharm | MIT License |
app/src/main/java/com/thanosfisherman/grpcplayground/domain/repos/PrefsRepo.kt | ThanosFisherman | 528,540,686 | false | {"Kotlin": 66718} | package com.thanosfisherman.grpcplayground.domain.repos
import com.thanosfisherman.grpcplayground.domain.models.DUserProfileModel
import kotlinx.coroutines.flow.Flow
interface PrefsRepo {
suspend fun storeUserProfile(userProfile: DUserProfileModel)
suspend fun deleteUserProfile()
fun getUserProfile(): Fl... | 0 | Kotlin | 0 | 9 | 2c6b1177b7ddd096d944faf920f049cdc3af421c | 344 | gRPCPlayground | Apache License 2.0 |
nats-core/src/commonMain/kotlin/nats/core/protocol/SubjectInvalidException.kt | dimensional-fun | 669,184,682 | false | {"Kotlin": 234897} | package nats.core.protocol
public class SubjectInvalidException(message: String) : IllegalArgumentException(message)
| 1 | Kotlin | 0 | 2 | 049e0e32a292272a7eae0bfca99ecf8c8b690cb3 | 118 | nats.kt | Apache License 2.0 |
feature/theme/src/main/kotlin/com/naveenapps/expensemanager/feature/theme/ThemeDialog.kt | nkuppan | 536,435,007 | false | null | package com.naveenapps.expensemanager.feature.theme
import androidx.appcompat.app.AppCompatDelegate
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.fou... | 4 | null | 15 | 94 | 5a5c790bea3f1ce4a720d7cffe6fe72a506507b7 | 5,516 | expensemanager | Apache License 2.0 |
app/src/main/java/com/example/citysearch/services/ImageService.kt | dcoleman0711 | 271,662,093 | false | null | package com.example.citysearch.services
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import io.reactivex.Observable
import io.reactivex.Scheduler
import io.reactivex.schedulers.Schedulers
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.Response
import java.io.ByteArrayInputStr... | 0 | Kotlin | 0 | 0 | 1fdafdaee7008bed80b89411fb3f79b0dcfe426c | 1,977 | CitySearchAndroid | MIT License |
app/src/main/java/ch/lock/mobile/android/deviceinfo/ui/screen/setting/SettingActivity.kt | lock-user | 578,061,187 | false | null | package ch.lock.mobile.android.deviceinfo.ui.screen.setting
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import ch.lock.mobile.android.deviceinfo.R
import ch.lock.mobile.android.deviceinfo.ui.base.activity.BaseActivity
import ch.lock.... | 0 | Kotlin | 0 | 0 | c50fe9075a0006fdca5b169b5bbd7dadfabeae01 | 2,015 | device-info | MIT License |
src/commonMain/kotlin/entities/RecentlyUpdatedItems.kt | drakon64 | 586,358,669 | false | null | package cloud.drakon.ktuniversalis.entities
import kotlin.js.JsExport
import kotlinx.serialization.Serializable
/**
* @property items An array of item upload information
*/
@JsExport
@Serializable
data class RecentlyUpdatedItems(val items: List<WorldItemRecency>? = null)
| 0 | Kotlin | 0 | 0 | 920154f2099dfd00c691338ea150661ffd4fd7b0 | 276 | KtUniversalis | MIT License |
kool-core/src/jvmMain/kotlin/de/fabmax/kool/platform/vk/Buffer.kt | fabmax | 81,503,047 | false | null | package de.fabmax.kool.platform.vk
import de.fabmax.kool.util.memStack
import org.lwjgl.system.MemoryUtil
import org.lwjgl.vulkan.VK10.*
import java.nio.ByteBuffer
import java.nio.FloatBuffer
import java.nio.IntBuffer
class Buffer(val sys: VkSystem, val bufferSize: Long, val usage: Int, val allocUsage: Int) : VkResou... | 9 | null | 7 | 78 | 2aeb035ab84e4c660bc11f5167a7f485b4a86da8 | 2,148 | kool | Apache License 2.0 |
shared/src/commonMain/kotlin/com/lennartmoeller/ma/composemultiplatform/ui/util/ScreenWidthSmallerThan.kt | lennartmoeller | 706,576,031 | false | {"Kotlin": 89364, "Swift": 591, "Shell": 228} | package com.lennartmoeller.ma.composemultiplatform.ui.util
import androidx.compose.runtime.Composable
import androidx.compose.ui.unit.Dp
@Composable
expect fun ScreenWidthBreakpoint(
width: Dp,
smallDeviceContent: @Composable (() -> Unit)? = null,
largeDeviceContent: @Composable (() -> Unit)? = null
)
| 0 | Kotlin | 0 | 0 | c7fd99bb5664272b9a9eda15271991232cd9550a | 317 | ma-compose-multiplatform | Apache License 2.0 |
SquareBoatApplication/app/src/main/java/com/priyam/squareboatapplication/model/Icon.kt | priyamBansal1308 | 332,413,844 | false | null | package com.priyam.squareboatapplication.model;
import com.google.gson.annotations.SerializedName
import java.util.*
data class Icon (
val is_premium: Boolean?,
val is_icon_glyph: String?,
val tags:ArrayList<String>,
val published_at: String?,
val icon_id: String?,
val type: String?,... | 0 | Kotlin | 0 | 0 | 120f7077a5c529347ca9743cce6b3509d2da5a22 | 621 | IconFinder | MIT License |
app/src/main/java/com/andreyyurko/dnd/data/characters/CharacterSetSupportClasses.kt | AndreyYurko | 538,904,654 | false | null | package com.andreyyurko.dnd.data.characters
data class Action(
var description: String,
var abilityId: Int
)
data class EquipmentItem(
var id: Int,
var abilityId: Int,
var description: String,
var name: String,
var rarity: ItemRarity,
var type: ItemType
)
| 0 | Kotlin | 0 | 1 | 3eaa7d8833ea1968f2eec4338ad5b5a328c9e49d | 290 | DnD | MIT License |
app/src/main/java/com/example/hiltdogapi/fragments/RandomDogFragment.kt | marcobevacqua | 543,188,159 | false | {"Kotlin": 20627} | package com.example.hiltdogapi.fragments
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.activityViewModels
import com.bumptech.glide.Glide
import com.bumpte... | 0 | Kotlin | 0 | 0 | d9499d19d422d871e3b713f898c723835bc33db4 | 1,984 | DogApi | MIT License |
net/craftventure/core/ride/shooter/hitaction/DeltaBankAccountBalanceAction.kt | Craftventure | 770,049,457 | false | {"Kotlin": 3656616, "Java": 684034} | package net.craftventure.core.ride.shooter.hitaction
import com.squareup.moshi.JsonClass
import net.craftventure.core.ride.operator.OperableRide
import net.craftventure.core.ride.shooter.ShooterRideContext
import net.craftventure.core.ride.shooter.ShooterScene
import net.craftventure.core.utils.TitleUtil.sendTitleWith... | 0 | Kotlin | 1 | 21 | 015687ff6687160835deacda57121480f542531b | 1,803 | open-plugin-parts | MIT License |
src/test/kotlin/ir/pegahtech/mediaad/sample/SampleAppApplicationTests.kt | ansari-a | 295,942,681 | false | null | package ir.pegahtech.mediaad.sample
import ir.pegahtech.mediaad.sample.dto.DestinationDTO
import ir.pegahtech.mediaad.sample.dto.SourceDTO
import ir.pegahtech.mediaad.sample.service.ConvertService
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendW... | 0 | Kotlin | 0 | 0 | 2a99bebac747dcfaff581ae1bae0e2c16a3c5175 | 1,797 | sample-app | Apache License 2.0 |
app/src/main/java/android/template/ui/navigation/BottomSheetNavigator.kt | yoviekaputra | 814,553,696 | false | {"Kotlin": 128604, "Shell": 3210} | package android.template.ui.navigation
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.runtime.Composable
import androidx.navigation.FloatingWindow
import androidx.navigation.NamedNavArgument
import androidx.navigation.NavBackStackEntry
import androidx.navigation.NavDeepLink
import a... | 0 | Kotlin | 0 | 0 | 32e109b73a25a7a611ed9c2fac528f8e027eeded | 3,134 | truck_weighbridge_app | Apache License 2.0 |
app/src/main/java/com/dreamsoftware/brownie/component/BrownieDivider.kt | sergio11 | 187,466,826 | false | {"Kotlin": 176267} | package com.dreamsoftware.brownie.component
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifi... | 0 | Kotlin | 0 | 2 | a66b141848fcf6a319117a18146da7cd890b3516 | 725 | brownie_ui_library | MIT License |
lib_base/src/main/java/com/ndhzs/lib/base/utils/RxjavaLifecycle.kt | VegetableChicken-Group | 497,243,579 | false | {"Kotlin": 315145, "Shell": 8775} | package com.ndhzs.lib.base.utils
import android.view.View
import io.reactivex.rxjava3.core.*
import io.reactivex.rxjava3.disposables.Disposable
/**
* 实现该接口,即代表该类支持自动关闭 Rxjava
*
* ## 为什么不放到 lib_utils 中?
* 如果放到 lib_utils 中,在值依赖 lib_base 的时候会出现无法继承 BaseActivity 的情况
*
* 所以要求 base 类实现的接口尽量不要放在其他模块内
*
* ## 一、Rxjava... | 0 | Kotlin | 13 | 27 | 65633508f1f2a23f5edcf77aeb079581caf69a88 | 5,045 | WanAndroid_Multi | MIT License |
stdlib/src/commonMain/kotlin/com/sunnychung/lib/multiplatform/kotlite/stdlib/kdatetime/KDateValue.kt | sunny-chung | 783,528,970 | false | {"Kotlin": 1588541} | package com.sunnychung.lib.multiplatform.kotlite.stdlib.kdatetime
import com.sunnychung.lib.multiplatform.kdatetime.KDate
import com.sunnychung.lib.multiplatform.kotlite.model.CustomFunctionParameter
import com.sunnychung.lib.multiplatform.kotlite.model.DelegatedValue
import com.sunnychung.lib.multiplatform.kotlite.mo... | 0 | Kotlin | 0 | 0 | 7073ac3a4b742a9e4da08501216f67236939702c | 1,633 | kotlite | MIT License |
app/src/main/java/earth/darkwhite/algeriabills/ui/AppState.kt | darkwhite220 | 733,589,658 | false | {"Kotlin": 422473} | package earth.darkwhite.algeriabills.ui
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.lifecycle.Lifecycle
import androidx.navigation.NavDestination
import androidx.navigat... | 0 | Kotlin | 0 | 1 | 67d33911c9681f99d6a74bff18b0d4b595d5d610 | 3,897 | AlgeriaBillsOnline | The Unlicense |
app/src/main/java/com/steleot/jetpackcompose/playground/compose/material/BackdropScaffoldScreen.kt | Vivecstel | 338,792,534 | false | null | package com.steleot.jetpackcompose.playground.compose.material
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.materi... | 1 | null | 10 | 117 | e4f4c45b4376dac907cae4ef07db1f188c86d01c | 3,968 | Jetpack-Compose-Playground | Apache License 2.0 |
src/main/kotlin/net/redstonecraft/amber/base/config/type/AmberConfigSwitch.kt | Redstonecrafter0 | 479,001,737 | false | {"Kotlin": 24303, "Java": 2744} | package net.redstonecraft.amber.base.config.type
import net.redstonecraft.amber.base.module.AmberModule
class AmberConfigSwitch(
value: Boolean,
displayName: String,
description: String?,
module: AmberModule
): AmberConfigSetting<Boolean>(value, displayName, description, module) {
override fun se... | 7 | Kotlin | 0 | 1 | e6a70abf95c42be3df2aab53c029dceb588c8a6d | 643 | Amber | Apache License 2.0 |
src/main/kotlin/no/nav/brukerdialog/validation/ValidationProblemDetails.kt | navikt | 585,578,757 | false | {"Kotlin": 1477799, "Handlebars": 126943, "Dockerfile": 98} | package no.nav.brukerdialog.validation
import org.springframework.http.HttpStatus
import org.springframework.http.ProblemDetail
import org.springframework.web.ErrorResponseException
import java.net.URI
data class ValidationProblemDetails(val violations: Set<Violation>): ProblemDetail(400) {
init {
type = ... | 4 | Kotlin | 0 | 0 | 2d98b200c6b6ef5b99f15d42664bc83fc7446d33 | 1,141 | k9-brukerdialog-prosessering | MIT License |
shared/src/commonMain/kotlin/model/Message.kt | lucasgomes-eti | 782,990,938 | false | {"Kotlin": 58590, "Swift": 595} | package model
open class Message(
val id: String,
val sender: User,
val content: String,
)
| 0 | Kotlin | 0 | 0 | 3c0968a6e552574a756b90fc67a2b10e597ff63f | 104 | tetherhub | Apache License 2.0 |
src/main/kotlin/io/github/pheonixvx/retroconnect/worldgen/type/RD132211WorldType.kt | PhoenixVX | 383,860,968 | false | null | package io.github.pheonixvx.retroconnect.worldgen.type
import io.github.pheonixvx.retroconnect.registry.BlockRegistry
import io.github.pheonixvx.retroconnect.worldgen.generator.RD132211Generator
import net.minecraft.client.world.GeneratorType
import net.minecraft.util.registry.Registry
import net.minecraft.world.biome... | 0 | Kotlin | 0 | 0 | 982f0420ae0b9d3d78213e04401dd97f370daaf9 | 979 | retroconnect | Creative Commons Zero v1.0 Universal |
projektarbeit/app/src/main/java/com/pascalrieder/proteincounter/viewmodel/TodayViewModel.kt | JonathanXDR | 719,550,814 | false | {"Kotlin": 54005, "Java": 31567} | package com.pascalrieder.proteincounter.viewmodel
import android.app.Application
import androidx.lifecycle.AndroidViewModel
class TodayViewModel (application: Application) : AndroidViewModel(application) {
var onFloatingActionButtonClick: (() -> Unit)? = null
} | 3 | Kotlin | 0 | 0 | 62115e760e732894eb6254698cf70e527ec506ad | 268 | M450 | MIT License |
app/src/main/java/com/bksahabrothersfsm/features/viewAllOrder/orderOptimized/ProductRateOnlineListResponseModel.kt | DebashisINT | 613,436,962 | false | {"Kotlin": 13515706, "Java": 994920} | package com.bksahabrothersfsm.features.viewAllOrder.orderOptimized
import com.bksahabrothersfsm.app.domain.ProductOnlineRateTempEntity
import com.bksahabrothersfsm.base.BaseResponse
import com.bksahabrothersfsm.features.login.model.productlistmodel.ProductRateDataModel
import java.io.Serializable
class ProductRateOnl... | 0 | Kotlin | 0 | 0 | e85015d2de4b9a75dd99f00594524416ee6eabc6 | 448 | BKSAHABROTHERS | Apache License 2.0 |
app/src/main/java/com/example/expensetracker/data/currencyFormat/CurrencyFormatDao.kt | seyone22 | 719,374,552 | false | {"Kotlin": 343493} | package com.example.expensetracker.data.currencyFormat
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import com.example.expensetracker.model.CurrencyFormat
import kotlinx.coroutines.flow.Fl... | 12 | Kotlin | 1 | 0 | bcee80263ca35d94c2dc0076090b0f293e96b406 | 1,025 | Expense_Tracker | MIT License |
app/src/main/java/ethiopia/covid/android/ui/adapter/OnQuestionItemSelected.kt | brookmg | 249,926,845 | false | null | package ethiopia.covid.android.ui.adapter
import ethiopia.covid.android.data.QuestionItem
/**
* Created by BrookMG on 4/12/2020 in ethiopia.covid.android.ui.adapter
* inside the project CoVidEt .
*/
interface OnQuestionItemSelected {
fun onItemSelected(item: QuestionItem, position: Int)
} | 14 | Kotlin | 5 | 18 | 2feaf0f03d316c4fc08c2ebea1d77ee773eaa5b6 | 298 | CovidAndroid | Apache License 2.0 |
app/src/main/java/com/example/cekongkir/presentation/ui/fragment/fragmentcity/FragmentCityViewModel.kt | holis12821 | 382,658,929 | false | null | /**
* Cek Ongkir Android Apps
* Copyright (c) 2021. All rights reserved.
* Created by Nurholis on 4/7/21 01:07 AM
* Last modified 10/7/21 02:34 AM by Nurholis
* Licensed under the Apache Licence, Version 2.0
* May not copy files in their entirety for either distribution or
* rewriting of source code.*/
package c... | 0 | Kotlin | 0 | 1 | 9b0149b020a2c8155806bef4228f8f885d98610c | 613 | cekongkir-repo | Apache License 2.0 |
lib/stove-testing-e2e-elasticsearch/src/main/kotlin/com/trendyol/stove/testing/e2e/elasticsearch/Options.kt | Trendyol | 590,452,775 | false | null | package com.trendyol.stove.testing.e2e.elasticsearch
import arrow.core.None
import arrow.core.Option
import arrow.core.none
import co.elastic.clients.elasticsearch.ElasticsearchClient
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.ann... | 10 | Kotlin | 5 | 76 | 7768a16d59d7f26da923c7ff3e0a0e32c0ecc502 | 4,691 | stove4k | Apache License 2.0 |
app/src/main/java/com/ditclear/paonet/helper/Constants.kt | jasonliaocn | 170,654,357 | true | {"Kotlin": 160062, "Java": 114594, "Shell": 5064, "CSS": 3409} | package com.ditclear.paonet.helper
/**
* 页面描述:
*
* Created by ditclear on 2017/10/2.
*/
object Constants {
val KEY_SERIALIZABLE = "serializable"
val KEY_DATA = "data"
val HOST_API = "http://api.jcodecraeer.com/"
val HOST_PAO = "http://jcodecraeer.com"
const val Qualifier_SEARCH = "search"
... | 0 | Kotlin | 0 | 0 | 1bba801e6b700d2b313ac58602683eab54ed6376 | 546 | PaoNet | MIT License |
convertmeifyoucan/src/main/java/io/github/mikolasan/convertmeifyoucan/FunctionParser.kt | mikolasan | 140,800,532 | false | {"Kotlin": 293361, "Batchfile": 349, "CSS": 201} | package io.github.mikolasan.convertmeifyoucan
import java.lang.Exception
import java.text.DecimalFormatSymbols
import java.util.Locale
import kotlin.math.exp
import kotlin.math.pow
// Expr ← Sum
// Sum ← Product (('+' / '-') Product)*
// Product ← Power (('*' / '/') Power)*
// Power ← Value ('^' Power)?
// V... | 1 | Kotlin | 0 | 1 | eef2113de074e8d68e84fdf808af459916f28254 | 12,316 | ForgottenStandards | MIT License |
dataModule/src/main/java/com/aneonex/bitcoinchecker/datamodule/model/market/Bitvavo.kt | aneonex | 286,067,147 | false | null | package com.aneonex.bitcoinchecker.datamodule.model.market
import com.aneonex.bitcoinchecker.datamodule.model.CheckerInfo
import com.aneonex.bitcoinchecker.datamodule.model.CurrencyPairInfo
import com.aneonex.bitcoinchecker.datamodule.model.Market
import com.aneonex.bitcoinchecker.datamodule.model.Ticker
import org.js... | 22 | Kotlin | 17 | 58 | 327e16458a271829275a28f05bef88f16c0068ed | 1,985 | BitcoinChecker | MIT License |
library/src/main/java/org/bitcoindevkit/bdkjni/Types.kt | mbcse | 387,761,017 | true | {"Rust": 20795, "Kotlin": 16759, "Shell": 4640} | package org.bitcoindevkit.bdkjni
import com.fasterxml.jackson.databind.JsonNode
enum class Network {
regtest,
testnet,
}
data class WalletConstructor(
var name: String,
var network: Network,
var path: String,
var descriptor: String,
var change_descriptor: String?,
var electrum_url: S... | 0 | Rust | 1 | 0 | d7852edae381c932b48e73597c115f75268a6ae1 | 1,507 | bdk-jni | MIT License |
app/src/main/java/com/finderbar/jovian/utilities/api/ApiClientUtil.kt | finderbar | 705,707,975 | false | {"Kotlin": 665596, "Java": 45822} | package com.finderbar.jovian.utilities.api
object ApiClientUtil {
private const val BASE_URL = "http://139.59.206.23/";
fun fileUploader() : ApiServices = RetrofitClient.getClient(BASE_URL)!!.create(ApiServices::class.java)
fun movieUploader() : ApiServices = RetrofitClient.getClient(BASE_URL)!!.create(Api... | 0 | Kotlin | 0 | 0 | 63bf5531f367d1892d77151c1baa50789f814b07 | 343 | finderbar-app | MIT License |
app/src/main/java/com/wl/accountbook/di/AppBindsModule.kt | LiuWei339 | 726,117,960 | false | {"Kotlin": 194634} | package com.wl.accountbook.di
import com.wl.data.manager.LocalUserManagerImpl
import com.wl.data.repository.RecordRepoImpl
import com.wl.domain.manager.LocalUserManager
import com.wl.domain.repository.RecordRepo
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.Singlet... | 0 | Kotlin | 0 | 0 | 724782478f661fb6c07bce01c853d1680bcd5433 | 604 | Account-Book | Apache License 2.0 |
browser-kotlin/src/jsMain/kotlin/web/uievents/WheelEventInit.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6619312} | // Automatically generated - do not modify!
package web.uievents
external interface WheelEventInit : MouseEventInit {
var deltaMode: DeltaMode?
var deltaX: Double?
var deltaY: Double?
var deltaZ: Double?
}
| 0 | Kotlin | 6 | 28 | 2e94b60c9e3838c464ab9da211ca44de54e74133 | 224 | types-kotlin | Apache License 2.0 |
plugin-build/modulegraph/src/test/java/dev/iurysouza/modulegraph/graph/Fixtures.kt | iurysza | 614,389,109 | false | {"Kotlin": 120429} | package dev.iurysouza.modulegraph.graph
import dev.iurysouza.modulegraph.LinkText
import dev.iurysouza.modulegraph.Orientation
import dev.iurysouza.modulegraph.Theme
import dev.iurysouza.modulegraph.gradle.Module
import dev.iurysouza.modulegraph.model.GraphConfig
internal fun aModuleGraph() = mapOf(
Module(
... | 6 | Kotlin | 13 | 310 | 97219442e16149ee0668323bac6a9b2cd2fe7a82 | 23,775 | module-graph | MIT License |
Monolith/src/main/kotlin/org/rjansen/structures/jansenpizza/repository/b/dto/PaymentModel.kt | RJansenGomez | 466,730,471 | false | null | package org.rjansen.structures.jansenpizza.repository.b.dto
class PaymentModel {
} | 0 | Kotlin | 0 | 0 | 2d0bada3f0225c5275bca5b7bb832e0704c5dcb4 | 83 | project-structures | MIT License |
customer/src/main/kotlin/com/itavgur/omul/customer/dao/procedure/MedicalProcedureDaoMock.kt | itAvgur | 211,451,348 | false | {"Kotlin": 295751, "Smarty": 4371, "Dockerfile": 1120} | package com.itavgur.omul.customer.dao.procedure
import com.itavgur.omul.customer.config.MockDBConfig
import com.itavgur.omul.customer.domain.MedicalProcedure
import com.itavgur.omul.customer.exception.DatabaseConstraintException
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean
import org.sprin... | 1 | Kotlin | 1 | 0 | 332e2ae6213bfdec1179949d98b37fc84a234cdb | 1,541 | omul | The Unlicense |
app/src/main/java/com/animsh/appita/data/database/entity/FavoriteEntity.kt | animsh | 340,045,597 | false | null | package com.animsh.appita.data.database.entity
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.animsh.appita.models.Result
import com.animsh.appita.util.Constants.Companion.FAVORITE_RECIPE_TABLE
/**
* Created by animsh on 4/30/2021.
*/
@Entity(tableName = FAVORITE_RECIPE_TABLE)
class Favorite... | 0 | Kotlin | 0 | 3 | ad44196d69a9b4fb8ccd4d2eb51f9a29b34b1ad8 | 406 | Appita | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.