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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
telegram/src/main/kotlin/me/ivmg/telegram/dispatcher/handlers/media/PhotoHandler.kt | seik | 260,198,511 | true | null | package me.ivmg.telegram.dispatcher.handlers.media
import me.ivmg.telegram.HandlePhotosUpdate
import me.ivmg.telegram.entities.PhotoSize
import me.ivmg.telegram.entities.Update
class PhotosHandler(
handlePhotosUpdate: HandlePhotosUpdate
) : MediaHandler<List<PhotoSize>>(
handlePhotosUpdate,
PhotosHandlerF... | 0 | null | 0 | 1 | 6c33ea157af3001c8e75d860f6cdaa395a46945e | 650 | kotlin-telegram-bot | Apache License 2.0 |
app/src/main/java/com/example/fishdetection/Fish.kt | Fish-Dectection | 613,171,435 | false | null | package com.example.fishdetection
data class PostModel (
//val data = listOf
val fish_length: Double? = null,
val user_region: String? = null,
val img_url: String? = null
)
data class PostResult (
// val task_id: Int?=null,
val response: String?=null
) | 0 | Kotlin | 0 | 0 | 89363bb9752ecc6b5a51b952503744029d3e26c4 | 278 | frontend-repo | MIT License |
ComposeMVISample/app/src/main/java/com/hana/composemvisample/ui/ReposViewModel.kt | DongChyeon | 585,783,153 | false | null | package com.hana.composemvisample.ui
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.cachedIn
import com.hana.composemvisample.data.datasource.RepoPagingSource
import com.hana.composemvisample.data.data... | 0 | Kotlin | 1 | 1 | 74f849d86af673001960767dfb5bb7261dd46efc | 2,645 | Android-Samples | MIT License |
widgets-flat/src/iosMain/kotlin/dev/icerock/moko/widgets/flat/FlatInputViewFactory.kt | cybernhl | 380,670,973 | true | {"Kotlin": 592687, "Swift": 10345, "Ruby": 5116, "Shell": 535} | /*
* Copyright 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.moko.widgets.flat
import cocoapods.mokoWidgetsFlat.FlatInputField
import dev.icerock.moko.graphics.Color
import dev.icerock.moko.graphics.toUIColor
import dev.icerock.moko.widgets.core.widget.I... | 0 | null | 0 | 0 | b72f0be983b005e087f53177099be2e716b8c8e1 | 2,403 | moko-widgets | Apache License 2.0 |
app/src/main/java/com/dolearnn/cg/presentation/algorithms/AlgorithmUnavailable.kt | Jaseemakhtar | 487,589,439 | false | {"Kotlin": 74987} | package com.dolearnn.cg.presentation.algorithms
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.rememberInfiniteTran... | 0 | Kotlin | 8 | 164 | d3dc8c47a714132851cd7d619991bbb7703f5176 | 2,872 | ComposeCG | MIT License |
core/src/main/kotlin/Plugin.kt | sejapoe | 868,975,929 | false | {"Kotlin": 5662} | package ru.sejapoe
import io.ktor.server.application.*
import org.kodein.di.DI
import org.kodein.di.ktor.di
class PluginConfiguration {
val configuration: DI.MainBuilder.() -> Unit = {}
}
val KtorDIPlugin = createApplicationPlugin(name = "KtorDI", ::PluginConfiguration) {
application.di {
pluginConfi... | 0 | Kotlin | 0 | 0 | 3ca83152894c53279ea5cb8ffc63aef83c50cbda | 356 | ktor-kodein-extension | MIT License |
src/main/kotlin/io/realworld/domain/tag/TagResource.kt | u-ways | 383,858,549 | false | null | package io.realworld.domain.tag
import io.realworld.infrastructure.web.Routes.TAGS_PATH
import io.realworld.utils.ValidationMessages.Companion.REQUEST_BODY_MUST_NOT_BE_NULL
import javax.transaction.Transactional
import javax.validation.Valid
import javax.validation.constraints.NotNull
import javax.ws.rs.Consumes
impor... | 4 | Kotlin | 7 | 6 | 53ef0d7cd7891630cd6fff608a46c0d741709440 | 1,310 | kotlin-quarkus-realworld-example-app | MIT License |
src/main/kotlin/io/pivotal/pal/data/framework/event/kafka/KafkaAsyncEventHandler.kt | davidwadden | 130,948,179 | false | null | package io.pivotal.pal.data.framework.event.kafka
import io.pivotal.pal.data.framework.event.AsyncEventHandler
import org.springframework.kafka.core.KafkaTemplate
class KafkaAsyncEventHandler<T>(private val eventName: String, private val template: KafkaTemplate<Any, T>) : AsyncEventHandler<T> {
override fun onEv... | 0 | Kotlin | 0 | 0 | 182d5cafb136bb9e70819faaec3dac211986e356 | 384 | kotlin-rental-trucks | Apache License 2.0 |
app/src/main/java/com/tekber/jetpack/greatitude/feature_journal/domain/util/add_edit_journal/AddEditJournalState.kt | fauzanmi | 820,909,586 | false | {"Kotlin": 142506} | package com.tekber.jetpack.greatitude.feature_journal.domain.util.add_edit_journal
data class AddEditJournalState(
val isDatePickerDialogVisible: Boolean = false,
val isVoiceRecorderSheetVisible: Boolean = false,
val isVoiceRecorderActive: Boolean = false,
val isAudioPlaying: Boolean = false,
) | 0 | Kotlin | 0 | 0 | 1df4d1871666ec8f548d5345bbbc7c5def845cbb | 312 | Greatitude | MIT License |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/ArrowMinimize.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.ArrowMinimize: ImageVector
get() {
if (_arrowMinimize != null... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 2,186 | compose-fluent-ui | Apache License 2.0 |
olap/antlr-parser/flink-sql-parser/src/main/kotlin/com/platform/antlr/parser/flink/FlinkSQLAntlr4Visitor.kt | alldatacenter | 213,321,771 | false | null | package com.platform.antlr.parser.flink
import com.platform.antlr.parser.common.*
import com.platform.antlr.parser.common.relational.DefaultStatement
import com.platform.antlr.parser.common.relational.Statement
import com.platform.antlr.parser.common.relational.TableId
import com.platform.antlr.parser.common.relationa... | 13 | null | 694 | 1,845 | 8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6 | 5,906 | alldata | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/kafka/KafkaTask.kt | navikt | 290,982,864 | false | {"Kotlin": 328344, "Dockerfile": 202} | package no.nav.syfo.kafka
import no.nav.syfo.ApplicationState
import no.nav.syfo.launchBackgroundTask
import org.apache.kafka.clients.consumer.KafkaConsumer
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import java.util.*
val log: Logger = LoggerFactory.getLogger("no.nav.syfo")
inline fun <reified ConsumerR... | 1 | Kotlin | 0 | 0 | be6987dcc333d3e26763633dcbebc4a6a39bb22c | 1,117 | ispersonoppgave | MIT License |
app/src/main/java/com/aldikitta/movplaypt2/data/paging/SearchPagingSource.kt | Aldikitta | 509,048,134 | false | null | package com.example.tmdbapi.data.paging
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.example.tmdbapi.data.remote.ServiceApi
import com.example.tmdbapi.model.Search
import retrofit2.HttpException
import java.io.IOException
class SearchPagingSource(private val api: ServiceApi, priva... | 0 | null | 0 | 4 | d3ed16fa8c164294f0e4e2c40bbd486e1c32ad11 | 1,172 | MovplayV2 | Apache License 2.0 |
sam-java-core/src/test/kotlin/software/elborai/api/models/RealTimePaymentsTransferRetrieveParamsTest.kt | DefinitelyATestOrg | 787,029,081 | false | {"Kotlin": 13368521, "Shell": 3638, "Dockerfile": 366} | // File generated from our OpenAPI spec by Stainless.
package software.elborai.api.models
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import software.elborai.api.models.*
class RealTimePaymentsTransferRetrieveParamsTest {
@Test
fun createRealTimePaymentsTransferRetrie... | 1 | Kotlin | 0 | 0 | 896c77d132ececb8926a3b29f08ea09c98355ecd | 987 | sam-java | Apache License 2.0 |
verik-importer/src/main/kotlin/io/verik/importer/transform/pre/ReferenceResolverStage.kt | frwang96 | 269,980,078 | false | null | /*
* SPDX-License-Identifier: Apache-2.0
*/
package io.verik.importer.transform.pre
import io.verik.importer.ast.element.common.EProject
import io.verik.importer.ast.element.declaration.EDeclaration
import io.verik.importer.ast.element.declaration.EModule
import io.verik.importer.ast.element.declaration.ESvClass
im... | 0 | Kotlin | 1 | 33 | ee22969235460fd144294bcbcbab0338c638eb92 | 2,867 | verik | Apache License 2.0 |
app/src/main/java/com/comunidadedevspace/taskbeats/news/data/repository/NewsRepositoryImpl.kt | RenanPdeOliveira | 615,246,251 | false | {"Kotlin": 98962} | package com.comunidadedevspace.taskbeats.news.data.repository
import com.comunidadedevspace.taskbeats.core.domain.util.DataError
import com.comunidadedevspace.taskbeats.core.domain.util.Result
import com.comunidadedevspace.taskbeats.news.data.local.NewsDao
import com.comunidadedevspace.taskbeats.news.data.mappers.toNe... | 0 | Kotlin | 0 | 0 | 7156a77dc1d63286c555ddb1411dca821f7662b1 | 2,282 | TaskBeats | MIT License |
core/ui/src/main/kotlin/dev/yacsa/ui/theme/Typography.kt | andrew-malitchuk | 589,720,124 | false | null | package dev.yacsa.ui.theme
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
val typography = YacsaTypography(
header = TextStyle(
fontSize = 24.sp,
fontWeight = FontWeight.Bold,
),
caption = TextStyle(
font... | 0 | Kotlin | 0 | 0 | e35620cf1c66b4f76f0ed30d9c6d499acd134403 | 676 | yet-another-compose-showcase-app | MIT License |
src/main/kotlin/no/nav/personopplysninger/common/consumer/kodeverk/KodeverkConsumer.kt | navikt | 143,875,913 | false | null | package no.nav.personopplysninger.common.consumer.kodeverk
import io.ktor.client.HttpClient
import io.ktor.client.call.body
import io.ktor.client.request.get
import io.ktor.client.request.header
import io.ktor.client.request.parameter
import io.ktor.client.statement.HttpResponse
import io.ktor.http.isSuccess
import no... | 6 | Kotlin | 0 | 0 | 14d07c42a38817a34bb9cca86504d529f6ce162a | 1,727 | personopplysninger-api | MIT License |
feature-search-api/src/main/java/com/carohg/zeldafan/feature_search_api/SearchEntry.kt | linahg | 649,784,953 | false | {"Kotlin": 153666, "HTML": 903} | package com.carohg.zeldafan.feature_search_api
import com.carohg.zeldafan.common.ComposableFeatureEntry
abstract class SearchEntry : ComposableFeatureEntry/*AggregateFeatureEntry*/ {
final override val featureRoute = "home-search"
fun destination() = featureRoute
} | 0 | Kotlin | 0 | 0 | 5d128a91e8681c4a98bcfaec31e28c661f22aba9 | 278 | animanga | Apache License 2.0 |
src/main/kotlin/io/grimlocations/data/repo/action/DifficultyActions.kt | recursivelftr | 336,897,177 | false | null | package io.grimlocations.data.repo.action
import io.grimlocations.data.domain.*
import io.grimlocations.data.dto.DifficultyDTO
import io.grimlocations.data.repo.SqliteRepository
import io.grimlocations.ui.viewmodel.state.container.PMContainer
import io.grimlocations.ui.viewmodel.state.container.PMDContainer
import io.... | 0 | Kotlin | 0 | 6 | ad767a8625dc972b64cdd6eb01981fc4b5d8154f | 10,323 | Grim-Locations | MIT License |
utils-lib/src/main/java/com/alex/l/utils/extens/View+Extention.kt | alex-lan | 494,281,783 | false | {"Kotlin": 17825, "Java": 10489} | package com.alex.l.utils.extens
import android.view.View
import android.view.ViewGroup
/**
* [View+Extention]
* -
* * Created by [<NAME>] on [2022-05-25]
* * Power by AndroidStudio™ IDE
*/
/**
* Get all child views
*
* @param class childView class
* @return list of childViews
*/
fun <T> View.getAllChildVi... | 0 | Kotlin | 0 | 1 | 825d8525260857d8e9ead41740a4fb946c81330b | 760 | Utils | Apache License 2.0 |
src/test/kotlin/io/github/nomisrev/routes/ArticlesRouteSpec.kt | nomisRev | 442,854,737 | false | null | package io.github.nomisrev.routes
import arrow.core.flatMap
import io.github.nefilim.kjwt.JWSHMAC512Algorithm
import io.github.nefilim.kjwt.JWT
import io.github.nomisrev.repo.UserId
import io.github.nomisrev.service.CreateArticle
import io.github.nomisrev.service.RegisterUser
import io.github.nomisrev.withServer
impor... | 24 | null | 31 | 228 | cc5a98b5412ce6b202b0ece6d38d00d1dc10518f | 2,158 | ktor-arrow-example | Apache License 2.0 |
app/src/main/java/projects/vaid/myNotes/Note.kt | basedep | 573,370,768 | false | {"Kotlin": 31136} | package projects.vaid.myNotes
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.*
@Entity("notes")
data class Note(
@PrimaryKey(autoGenerate = true) var primaryKey: Int? = null,
var id: UUID = UUID.randomUUID(),
var title: String = "",
var tex... | 0 | Kotlin | 0 | 0 | 57c98b0a8702850097868cb98d5cec33c2824adf | 400 | MyNotes-app | MIT License |
src/main/kotlin/com/wanggaowan/tools/actions/RenameMultiSameNameFileAction.kt | wanggaowan | 599,862,484 | false | null | package com.wanggaowan.tools.actions
import com.intellij.notification.NotificationType
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.CommonDataKeys
import com.intellij.openapi.actionSystem.LangDataKeys
import com.intellij.openapi.command.WriteCommandAction
import com.i... | 0 | Kotlin | 0 | 0 | adf2bdc2066b7b2baec9f7fed530878f04af7041 | 6,993 | FlutterDevTools | Apache License 2.0 |
src/androidMain/kotlin/matt/file/file.kt | mgroth0 | 513,680,528 | false | {"Kotlin": 99769} | @file:JvmName("FileAndroidKt")
package matt.file
import matt.lang.model.file.FileSystem
import matt.log.warn.warn
import matt.model.code.sys.LinuxFileSystem
actual val guessRuntimeFileSystem: FileSystem by lazy {
warn(GUESS_FS_WARNING)
LinuxFileSystem
} | 0 | Kotlin | 0 | 0 | 7e2dea8c3d0e39c6e4ec6d214106a2f93684902f | 265 | file | MIT License |
Upcasting/src/UpcastingEx1.kt | Nayanpatel48 | 829,261,304 | false | {"Kotlin": 8738} | interface Shape
{
fun draw() : String
fun erase() : String
}
class Circle : Shape
{
override fun draw() = "Circle.draw"
override fun erase() = "Circle.erase"
}
class Square : Shape
{
override fun draw() = "Square.draw"
override fun erase() = "Square.erase"
fun color() = "Square.color"
}
cla... | 0 | Kotlin | 0 | 1 | 286a74edd062eca7968e3f61361ae1c82864b979 | 606 | Object-oriented-programming | Apache License 2.0 |
android/app/opentracesdk_fat/src/main/java/ai/kun/opentracesdk_fat/util/Constants.kt | goOICT | 250,982,109 | false | null | package ai.kun.opentracesdk_fat.util
import java.util.*
/**
* Constants used in the library. There's a bunch of stuff in here you may want to tweak
* to use it in your own app.
*/
object Constants {
const val INTENT_DEVICE_SCANNED = "ai.kun.socialdistancealarm.device_scanned"
const val PREF_TEAM_IDS = "te... | 19 | null | 14 | 23 | 67a32553eb7c7087a1f7ca7fa08402034ec89bc7 | 2,061 | SocialDistance | MIT License |
android/app/opentracesdk_fat/src/main/java/ai/kun/opentracesdk_fat/util/Constants.kt | goOICT | 250,982,109 | false | null | package ai.kun.opentracesdk_fat.util
import java.util.*
/**
* Constants used in the library. There's a bunch of stuff in here you may want to tweak
* to use it in your own app.
*/
object Constants {
const val INTENT_DEVICE_SCANNED = "ai.kun.socialdistancealarm.device_scanned"
const val PREF_TEAM_IDS = "te... | 19 | null | 14 | 23 | 67a32553eb7c7087a1f7ca7fa08402034ec89bc7 | 2,061 | SocialDistance | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsadjudicationsinsightsapi/dtos/ChartDataDto.kt | ministryofjustice | 643,829,689 | false | {"Kotlin": 37407, "Dockerfile": 1158, "Shell": 543} | package uk.gov.justice.digital.hmpps.hmppsadjudicationsinsightsapi.dtos
import io.swagger.v3.oas.annotations.media.Schema
@Schema(description = "Details of a chart data entry")
data class ChartDataResponseDto(
@Schema(
description = "Prison agency ID",
example = "ACI",
)
val agencyId: String,
@Schema... | 2 | Kotlin | 0 | 0 | cd27f1797eb8665fbf43ea32420940c935c80ec0 | 3,462 | hmpps-adjudications-insights-api | MIT License |
plisio-ui-compose/src/main/java/net/plisio/sdk/ui/compose/sheet/steps/Error.kt | Plisio | 527,851,608 | false | {"Kotlin": 151297} | package net.plisio.sdk.ui.compose.sheet.steps
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import android... | 1 | Kotlin | 1 | 4 | 55ab8c881a940a590116e30e8d5e8b9ef0b06981 | 4,101 | android-sdk | MIT License |
src/main/kotlin/ktor/graphql/parseRequest/parseRequest.kt | excitement-engineer | 145,306,525 | false | null | package ktor.graphql.parseRequest
import ktor.graphql.GraphQLRequest
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.request.*
import io.ktor.utils.io.charsets.*
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import ktor.graphql.HttpException
import ktor.gra... | 1 | null | 6 | 62 | 38c9fc87b7b0466fcfb6ff83479cbfe934e2f99b | 2,085 | ktor-graphql | MIT License |
src/main/kotlin/org/dif/operations/Unpack.kt | asmarty | 390,948,038 | true | {"Kotlin": 197000} | package org.dif.operations
import org.dif.common.AnonCryptAlg
import org.dif.common.AuthCryptAlg
import org.dif.crypto.ParseResult
import org.dif.crypto.anonDecrypt
import org.dif.crypto.authDecrypt
import org.dif.crypto.getCryptoAlg
import org.dif.crypto.key.RecipientKeySelector
import org.dif.crypto.parse
import org... | 0 | Kotlin | 0 | 0 | 7071930e222eddf95fc4927d669ff5f80920eae9 | 4,328 | didcomm-jvm | Apache License 2.0 |
app/src/main/java/com/bossed/waej/adapter/SelectBankCardAdapter.kt | Ltow | 710,230,789 | false | {"Kotlin": 2304560, "Java": 395495, "HTML": 71364} | package com.bossed.waej.adapter
import android.graphics.Color
import com.bossed.waej.R
import com.bossed.waej.javebean.RecordsAccountRow
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
class SelectBankCardAdapter(
mutableList: MutableList<RecordsAccountRow... | 0 | Kotlin | 0 | 0 | 8c2e9928f6c47484bec7a5beca32ed4b10200f9c | 813 | wananexiu | Mulan Permissive Software License, Version 2 |
glossary/shared/src/jvmMain/kotlin/ru/mission/glossary/models/TranslateCollection.kt | KYamshanov | 805,006,151 | false | {"Kotlin": 246272, "Java": 11756} | package ru.mission.glossary.models
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* no common. Because model can be depend on platform usage WebEngine/WebView
*/
@Serializable
data class TranslateCollection(
@SerialName("attributesTimestamp") val attributesTimestamp: Dou... | 2 | Kotlin | 0 | 0 | a562219fde22f03d724e1a2c7d0ac3a90c566d48 | 1,031 | Mission-LSP | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/extension/ExtensionInstallNotifier.kt | Jays2Kings | 175,908,029 | false | null | package eu.kanade.tachiyomi.extension
import android.content.Context
import android.graphics.BitmapFactory
import androidx.core.content.ContextCompat
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.data.notification.NotificationReceiver
import eu.kanade.tachiyomi.data.notification.Notifications
import eu.kanad... | 215 | null | 71 | 974 | 928f7553bf800cbbc9006e7242f78741dfd64179 | 3,404 | tachiyomiJ2K | Apache License 2.0 |
shared/src/commonMain/kotlin/ch/dreipol/kmpexample/redux/ApplicationStore.kt | dreipol | 862,880,415 | false | {"Kotlin": 39004, "Swift": 4571, "Shell": 844} | package ch.dreipol.kmpexample.redux
import ch.dreipol.dreimultiplatform.InMemoryKeyValueStore
import ch.dreipol.dreimultiplatform.PersistentKeyValueStore
import ch.dreipol.dreimultiplatform.reduxkotlin.actionLoggingMiddleware
import ch.dreipol.dreimultiplatform.reduxkotlin.convertThunkActionMiddleware
import ch.dreipo... | 0 | Kotlin | 0 | 0 | 2a64e0d780a7d7d523fbbdbd1d297748a3b6d6d2 | 1,326 | kmpExample | MIT License |
app/src/main/java/ru/surf/learn2invest/noui/network_components/responses/ResponseWrapper.kt | vafeen | 787,012,717 | false | {"Kotlin": 210506} | package ru.surf.learn2invest.noui.network_components.responses
/**
* Обертка для описания состояния полученных данных
*/
sealed class ResponseWrapper<out T> {
data class Success<out T>(val value: T) : ResponseWrapper<T>()
data object NetworkError : ResponseWrapper<Nothing>()
} | 0 | Kotlin | 1 | 1 | ce9997f1f3d465b429977e438b7e8b58bd3a18e3 | 288 | learn2Invest | Apache License 2.0 |
core/core-designsystem/src/main/kotlin/com/maximillianleonov/musicmax/core/designsystem/component/BackButton.kt | MaximillianLeonov | 559,137,206 | false | null | /*
* Copyright 2022 Maximillian Leonov
*
* 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 agr... | 5 | Kotlin | 4 | 61 | 29dd1c65e202aae78d6565c6490e3019d921fb23 | 1,332 | Musicmax | Apache License 2.0 |
Chapter05/src/main/kotlin/com/rivuchk/packtpub/reactivekotlin/chapter05/chapter5_5.kt | tymicki | 175,694,440 | true | {"Kotlin": 121444} | package com.rivuchk.packtpub.reactivekotlin.chapter05
import io.reactivex.Observable
fun main() {
Observable.range(1, 20)//(1)
.filter {
//(2)
it % 2 == 0
}
.subscribe {
println("Received $it")
}
} | 0 | Kotlin | 0 | 0 | 143e1bd1473c6da3fb3fe1b9373124052f87874d | 300 | Reactive-Programming-in-Kotlin | MIT License |
app/src/main/java/com/masterplus/notex/PopUpAddNoteActivity.kt | Ramazan713 | 458,716,624 | false | null | package com.masterplus.notex
import android.content.Intent
import android.content.SharedPreferences
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.view.inputmethod.InputMethodManager
import android.widget.AdapterView
import android.widget.ArrayAdapter
i... | 0 | Kotlin | 0 | 0 | 886e40f402573bb2af517432bec48fa5628a5a0d | 6,733 | Note-X | Apache License 2.0 |
ocpp-2-0-core/src/main/kotlin/com/izivia/ocpp/core20/model/changeavailability/ChangeAvailabilityReq.kt | IZIVIA | 501,708,979 | false | {"Kotlin": 1934096} | package com.izivia.ocpp.core20.model.changeavailability
import com.izivia.ocpp.core20.model.changeavailability.enumeration.OperationalStatusEnumType
import com.izivia.ocpp.core20.model.common.EVSEType
data class ChangeAvailabilityReq(
val operationalStatus: OperationalStatusEnumType,
val evse: EVSEType? = nul... | 6 | Kotlin | 10 | 32 | bd8e7334ae05ea75d02d96a508269acbe076bcd8 | 323 | ocpp-toolkit | MIT License |
common/src/main/kotlin/no/nav/tiltakspenger/objectmothers/ObjectMother.kt | navikt | 487,246,438 | false | {"Kotlin": 681488, "Shell": 1309, "Dockerfile": 495, "HTML": 45} | package no.nav.tiltakspenger.objectmothers
object ObjectMother :
SaksbehandlerMother,
SøknadMother,
BehandlingMother,
SakMother,
VurderingMother,
PersonMother
| 7 | Kotlin | 0 | 1 | e125e2953c16c4bb2c99e6d36075c553b51ed794 | 184 | tiltakspenger-vedtak | MIT License |
processor/src/main/java/pers/apollokwok/tracer/common/typesystem/updateNullability.kt | ApolloKwok | 596,375,751 | false | null | package pers.apollokwok.tracer.common.typesystem
import pers.apollokwok.ktutil.Unreachable
// There may be some type inference error when putting this function in class Type.
@Suppress("UNCHECKED_CAST")
internal fun <T: Type<*>> T.updateNullability(nullable: Boolean): T =
when{
nullable == this.nullable -... | 0 | Kotlin | 0 | 1 | 715e63880029e2be4aaa7d64c9fdd1c1fd984ea3 | 599 | TracerCommon | Apache License 2.0 |
app/src/main/java/com/example/yemeksiparisuygulamasikotlin/ui/adapter/SepetYemeklerAdapter.kt | ysfslm | 676,361,902 | false | null | package com.example.yemeksiparisuygulamasikotlin.ui.adapter
import android.content.Context
import android.util.Log
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.exa... | 0 | Kotlin | 0 | 0 | b84ffb8902c450963744f16cdb91770fb3cb7f77 | 2,063 | YemekSiparisUygulamasiKotlin | Apache License 2.0 |
app/src/main/java/com/android/achievix/Activity/NewScheduleActivity.kt | ArmanKhanTech | 661,690,640 | false | {"Java": 128659, "Kotlin": 47903} | package com.android.achievix.Activity
import android.content.Intent
import android.os.Bundle
import android.widget.LinearLayout
import androidx.appcompat.app.AppCompatActivity
import com.android.achievix.R
class NewScheduleActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... | 0 | Java | 0 | 10 | 239ff9e6241d72977a41283e7b94a448d5a4e92a | 1,782 | Achievix | MIT License |
app/src/main/java/com/example/android/guesstheword/screens/score/ScoreViewModel.kt | shyzinn | 310,316,279 | false | null | package com.example.android.guesstheword.screens.score
import android.util.Log
import androidx.lifecycle.ViewModel
class ScoreViewModel(finalScore: Int) : ViewModel() {
// The final score
var score = finalScore
init {
Log.i("ScoreViewModel", "Items added: $finalScore")
}
} | 0 | Kotlin | 0 | 0 | b60717abe52b49709394ebb31bb658298afbf7db | 302 | guesstheword | Apache License 2.0 |
billMan/src/main/kotlin/com/weesnerdevelopment/billman/income/IncomeHistoryTable.kt | adamWeesner | 239,233,558 | false | null | package com.weesnerdevelopment.billman.income
import org.jetbrains.exposed.sql.ReferenceOption
import org.jetbrains.exposed.sql.Table
object IncomeHistoryTable : Table() {
val income = reference("Income", IncomeTable, ReferenceOption.CASCADE)
// val history = reference("history", HistoryTable, ReferenceOption.... | 1 | Kotlin | 1 | 1 | c7962e6ccec3b8b327886a3b35e2e17d16449c34 | 330 | weesnerDevelopment | MIT License |
arce-client/src/main/java/org/firezenk/arce_client/WebSocket.kt | FireZenk | 336,634,315 | false | null | package org.firezenk.arce_client
import io.reactivex.BackpressureStrategy
import io.reactivex.Flowable
import io.reactivex.FlowableEmitter
import io.reactivex.FlowableOnSubscribe
import io.reactivex.disposables.Disposable
import java.util.concurrent.TimeUnit
import okhttp3.OkHttpClient
import okhttp3.Request
import ok... | 0 | Kotlin | 0 | 1 | 2ad7ad858084e02d952c3eaef1437f93f4c26773 | 1,925 | arce | MIT License |
app/src/main/java/com/example/swiftpay/ui/screens/security/components/SecurityItem.kt | EzekielWachira | 681,386,871 | false | {"Kotlin": 669843} | package com.example.swiftpay.ui.screens.notitifcation_settings.components
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
... | 0 | Kotlin | 5 | 40 | e19eb245b9c9f1ff95c7a407d72e816d4a342969 | 1,897 | SwiftPay | MIT License |
composeApp/src/commonMain/kotlin/com/rwmobi/kunigami/data/source/network/dto/singleproduct/SingleProductApiResponse.kt | ryanw-mobile | 794,752,204 | false | {"Kotlin": 1112930, "Ruby": 2466, "Swift": 693} | /*
* Copyright (c) 2024. <NAME>
* https://github.com/ryanw-mobile
* Sponsored by RW MobiMedia UK Limited
*
*/
package com.rwmobi.kunigami.data.source.network.dto.singleproduct
import com.rwmobi.kunigami.data.source.network.dto.LinkDto
import kotlinx.datetime.Instant
import kotlinx.serialization.SerialName
import... | 24 | Kotlin | 10 | 98 | e1e73f5b44baaef5ab87fd10db21775d442a3172 | 1,683 | OctoMeter | Apache License 2.0 |
Fall2023/examples/Lecture 11/SensorRawAccelerometer/app/src/main/java/mobiledev/unb/ca/showrawvalues/SensorRawAccelerometerActivity.kt | hpowell20 | 222,546,894 | false | {"Kotlin": 1287967, "Java": 1221240} | package mobiledev.unb.ca.showrawvalues
import android.app.Activity
import android.hardware.Sensor
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import android.widget.TextView
import android.os.Bundle
import android.hardware.SensorEvent
class SensorRawAccelerometerActivity : Activity... | 0 | Kotlin | 0 | 0 | b727d7d3760b5542cb59796120c6233f853c8272 | 2,533 | cs2063-master | Apache License 2.0 |
repoBrowse/src/main/java/com/beok/repobrowse/domain/usecase/UserRepoBrowseUsecase.kt | BeokBeok | 206,980,782 | true | {"Kotlin": 71871} | package com.beok.repobrowse.domain.usecase
import com.beok.common.Result
import com.beok.common.succeeded
import com.beok.repobrowse.data.RepoBrowseRepository
import com.beok.repobrowse.domain.entity.mapToModel
import com.beok.repobrowse.presenter.model.RepoFileTreeModel
import kotlinx.coroutines.CoroutineDispatcher
i... | 0 | Kotlin | 0 | 1 | 3d1b4347cc5a626bdd845a6e9dfa486c1d19c52f | 1,502 | GitBeokTree | MIT License |
wow-core/src/main/kotlin/me/ahoo/wow/command/CommandOperator.kt | Ahoo-Wang | 628,167,080 | false | {"Kotlin": 1902621, "Java": 34050, "TypeScript": 31834, "HTML": 11619, "Lua": 3978, "JavaScript": 2288, "Dockerfile": 820, "SCSS": 500, "Less": 342} | /*
* Copyright [2021-present] [<NAME> <<EMAIL>> (https://github.com/Ahoo-Wang)].
* 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... | 6 | Kotlin | 10 | 98 | eed438bab2ae009edf3a1db03396de402885c681 | 1,434 | Wow | Apache License 2.0 |
src/main/kotlin/com/pandus/leetcode/solutions/daily/SmallestRangeCoveringElementsFromKLists.kt | bodyangug | 740,204,714 | false | {"Kotlin": 309194} | package com.pandus.leetcode.solutions.daily
// Reference: https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists
class SmallestRangeCoveringElementsFromKLists {
fun smallestRange(nums: List<List<Int>>): IntArray {
val k = nums.size
val indices = IntArray(k)
val range = ... | 0 | Kotlin | 0 | 1 | d712ce6fb9cbc4ba21e185cf1a227194fd5a4849 | 1,102 | leetcode-solutions | MIT License |
_view-interaction/view-event-adapter-rx/src/main/java/io/androidalatan/view/event/legacy/rx/view/OnFocusChangeEventRxAdapter.kt | SeongUgJung | 466,746,697 | false | {"Kotlin": 446658} | package io.androidalatan.view.event.legacy.rx.view
import io.androidalatan.view.event.api.view.OnFocusChangeEvent
import io.reactivex.rxjava3.core.Observable
fun OnFocusChangeEvent.onFocusChangeAsObservable(): Observable<Boolean> {
return Observable.create<Boolean> { emitter ->
val callback = OnFocusChang... | 0 | Kotlin | 4 | 0 | 0d868ed2bda83479d9925c93ad502c825f6a0c65 | 578 | LifecycleComponents | MIT License |
_view-interaction/view-event-adapter-rx/src/main/java/io/androidalatan/view/event/legacy/rx/view/OnFocusChangeEventRxAdapter.kt | SeongUgJung | 466,746,697 | false | {"Kotlin": 446658} | package io.androidalatan.view.event.legacy.rx.view
import io.androidalatan.view.event.api.view.OnFocusChangeEvent
import io.reactivex.rxjava3.core.Observable
fun OnFocusChangeEvent.onFocusChangeAsObservable(): Observable<Boolean> {
return Observable.create<Boolean> { emitter ->
val callback = OnFocusChang... | 0 | Kotlin | 4 | 0 | 0d868ed2bda83479d9925c93ad502c825f6a0c65 | 578 | LifecycleComponents | MIT License |
web/server/src/main/kotlin/support/bymason/kiosk/checkin/functions/GuestFields.kt | MasonAmerica | 221,848,067 | false | null | package support.bymason.kiosk.checkin.functions
import firebase.functions.AuthContext
import firebase.functions.admin
import kotlinx.coroutines.await
import kotlin.js.Json
suspend fun getGuestFields(auth: AuthContext): Array<Json> {
console.log("Generating guest fields for user '${auth.uid}'")
val fieldsSnap... | 2 | Kotlin | 1 | 0 | 4397e2f2cdf93f8b4caea95277492a94ad4f4861 | 707 | mason-check-in-kiosk | Apache License 2.0 |
observabledata/src/test/java/com/sensorberg/observable/RepeatedObserversTest.kt | sensorberg | 219,977,027 | false | null | package com.sensorberg.observable
import com.sensorberg.observable.ObservableDataTest.Companion.TIMEOUT
import org.junit.Assert.assertEquals
import org.junit.Test
import java.util.concurrent.atomic.AtomicInteger
class RepeatedObserversTest {
@Test fun observable_data_observer_doesnt_repeat_on_init() {
val tested ... | 0 | Kotlin | 1 | 0 | 510a90c91e9507e9940d77200444bfc3a25907c8 | 1,791 | observable-data | MIT License |
sample/src/main/java/com/lumi/sdk/sample/utils/Utils.kt | lumiwallet | 177,788,654 | false | {"Kotlin": 8030} | package com.lumi.sdk.sample.utils
import java.util.regex.Pattern
class Utils {
fun convertStringToHex(string: String): String {
return string.toByteArray().joinToString("") { String.format("%02x", it) }
}
fun checkAddress(address: String): Boolean {
return Pattern.compile("^(0x)?[0-9a-fA... | 0 | Kotlin | 2 | 1 | a3d4190e2e918cd376791592457f17841de91083 | 373 | Lumi-SDK-Android | MIT License |
ion-schema/src/main/kotlin/com/amazon/ionschema/IonSchemaSchemas.kt | amazon-ion | 148,685,964 | false | {"Kotlin": 804755, "Inno Setup": 15625, "Java": 795, "Shell": 631} | /*
* Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in ... | 40 | Kotlin | 14 | 27 | 7a9ee6d06e9cfdaa530310f5d9be9f5a52680d3b | 1,657 | ion-schema-kotlin | Apache License 2.0 |
src/main/kotlin/com/vaadin/starter/beveragebuddy/backend/ktorm/ValidatableEntity.kt | mvysny | 835,544,620 | false | {"Kotlin": 81498, "CSS": 6859, "Dockerfile": 1049, "HTML": 507, "Isabelle": 51} | package com.vaadin.starter.beveragebuddy.backend.ktorm
import jakarta.validation.ConstraintViolationException
import org.ktorm.entity.Entity
import org.ktorm.entity.add
import org.ktorm.entity.sequenceOf
import org.ktorm.schema.Column
import org.ktorm.schema.Table
/**
* An entity which is able to validate itself via... | 0 | Kotlin | 0 | 0 | 18058136d40439af266bd095376de2a659c7dd46 | 2,310 | beverage-buddy-ktorm | MIT License |
ui/link-details/android/src/androidTest/kotlin/io/github/wykopmobilny/links/details/Factories.kt | otwarty-wykop-mobilny | 374,160,630 | true | {"Kotlin": 1326147, "HTML": 66896, "Java": 38599} | package io.github.wykopmobilny.links.details
import io.github.wykopmobilny.screenshots.BaseScreenshotTest
import kotlinx.coroutines.flow.flowOf
internal fun BaseScreenshotTest.registerLinkDetails(scopeId: Long = 1, block: () -> LinkDetailsUi = { error("unsupported") }) =
registerDependencies<LinkDetailsDependenci... | 13 | Kotlin | 4 | 47 | 85b54b736f5fbcd6f62305779ed7ae2085c3b136 | 642 | wykop-android | MIT License |
stream-chat-android-ui-components/src/main/kotlin/io/getstream/chat/android/ui/utils/extensions/ViewHolder.kt | GetStream | 177,873,527 | false | {"Kotlin": 8578375, "MDX": 2150736, "Java": 271477, "JavaScript": 6737, "Shell": 5229} | /*
* Copyright (c) 2014-2022 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-chat-android/blob/main/LICENSE
*
* Unless required by a... | 24 | Kotlin | 273 | 1,451 | 8e46f46a68810d8086c48a88f0fff29faa2629eb | 852 | stream-chat-android | FSF All Permissive License |
app/src/main/java/com/vobbla16/mesh/ui/genericHolder/processDataFromUseCase.kt | vobbla16 | 654,997,267 | false | {"Kotlin": 252184} | package com.vobbla16.mesh.ui.genericHolder
import com.vobbla16.mesh.common.OrLoading
import com.vobbla16.mesh.common.Resource
import com.vobbla16.mesh.common.copyDynamic
import com.vobbla16.mesh.ui.BaseViewModel
import com.vobbla16.mesh.ui.ViewAction
import com.vobbla16.mesh.ui.ViewState
import kotlinx.coroutines.flow... | 7 | Kotlin | 0 | 4 | 386ae50a3fc26394e2d5c55b1b1808b976ed2acf | 3,141 | libremesh | MIT License |
src/commonMain/kotlin/org/angproj/crypt/number/Basic.kt | angelos-project | 677,062,617 | false | {"Kotlin": 9143680} | /**
* Copyright (c) 2023 by <NAME> <<EMAIL>>.
*
* This software is available under the terms of the MIT license. Parts are licensed
* under different terms if stated. The legal terms are attached to the LICENSE file
* and are made available on:
*
* https://opensource.org/licenses/MIT
*
* SPDX-License-Iden... | 0 | Kotlin | 0 | 0 | ce2d58abe8609b2bf43263e004b1e0831aff311b | 8,211 | angelos-project-crypt | MIT License |
app/src/main/java/my/github/dstories/feature/monster_info/MonsterInfoScreen.kt | horseunnamed | 515,286,546 | false | {"Kotlin": 116710} | package my.github.dstories.feature.monster_info
import androidx.compose.runtime.Composable
import com.github.terrakok.modo.android.compose.ComposeScreen
import kotlinx.parcelize.Parcelize
import my.github.dstories.core.framework.DrawUi
import my.github.dstories.core.model.Monster
import my.github.dstories.feature.mons... | 6 | Kotlin | 0 | 0 | e431340467993b839e5db0b6d64972cee6d379c6 | 857 | Dungeon-Stories | MIT License |
app/src/main/kotlin/ch/empa/openbisio/propertyassignment/PropertyAssignmentEntity.kt | empa-scientific-it | 618,383,912 | false | null | /*
* Copyright 2023 Simone Baffelli
*
* 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 | f61b168531320739a3450e9c3f0bb2a0f0299ce0 | 1,525 | instanceio | Apache License 2.0 |
src/test/kotlin/brokers/etrade/CondorsTest.kt | ssoper | 298,839,816 | false | null | package brokers.etrade
import com.seansoper.batil.brokers.etrade.api.OptionType
import com.seansoper.batil.brokers.etrade.api.OrderActionType
import com.seansoper.batil.brokers.etrade.api.OrderPriceType
import com.seansoper.batil.brokers.etrade.api.OrderTerm
import com.seansoper.batil.brokers.etrade.api.OrderType
impo... | 9 | Kotlin | 2 | 8 | a12cfd3e8e4bcafa5f0d333079f40b665e55600a | 8,960 | Batil | MIT License |
m3-common/src/main/kotlin/com/finyou/fintrack/backend/common/models/PermissionModel.kt | otuskotlin | 377,713,994 | false | null | package com.finyou.fintrack.backend.common.models
enum class PermissionModel {
NONE, READ, UPDATE, DELETE
} | 0 | Kotlin | 0 | 0 | 2827e9759ee6ad745c8721316b500015a452f129 | 112 | ok-202105-finrec-do | MIT License |
src/main/kotlin/br/com/dillmann/restdb/core/statusPages/utils/SQLExceptionExtensions.kt | lucasdillmann | 252,721,649 | false | {"Handlebars": 392550, "Kotlin": 287315, "ANTLR": 1021, "Dockerfile": 334} | package br.com.dillmann.restdb.core.statusPages.utils
import java.sql.SQLException
/**
* Converts an [SQLException] to a [List] of [ErrorDetails]. Conversion is done
* recursively where each child in [SQLException#nextException] generates an [ErrorDetails].
*
* @author <NAME>
* @since 1.0.0, 2020-03-27
*/
fun S... | 0 | Handlebars | 0 | 0 | 24b0af68a53e75abcd2f7f7232a4294107db76ff | 723 | restdb | MIT License |
src/jvmTest/kotlin/main.kt | dimensional-fun | 489,465,643 | false | {"Kotlin": 19590} | import dimensional.kyuso.Kyuso
import dimensional.kyuso.tools.calculatingDelay
import kotlinx.coroutines.*
import java.util.concurrent.Executors
import kotlin.time.Duration.Companion.milliseconds
import kotlin.time.ExperimentalTime
import kotlin.time.TimeMark
import kotlin.time.TimeSource
@OptIn(ExperimentalTime::clas... | 0 | Kotlin | 0 | 7 | 4ad22a4300bcf7eb14dcdbd21359bb107b845d25 | 669 | kyuso | Apache License 2.0 |
src/main/kotlin/coverosR3z/timerecording/EmployeeAPI.kt | cybernetics | 327,159,653 | true | {"Kotlin": 343884, "CSS": 7602, "HTML": 6285, "JavaScript": 84} | package coverosR3z.timerecording
import coverosR3z.domainobjects.Employee
import coverosR3z.domainobjects.EmployeeName
import coverosR3z.domainobjects.UserName
import coverosR3z.misc.safeHtml
import coverosR3z.misc.successHTML
import coverosR3z.server.PreparedResponseData
import coverosR3z.server.okHTML
class Employe... | 0 | null | 0 | 0 | ac237097c4132580b0a399403c0ca964ec1ddc7e | 3,588 | r3z | MIT License |
feature/battle/src/main/java/online/partyrun/partyrunapplication/feature/battle/BattleViewModel.kt | SWM-KAWAI-MANS | 649,352,661 | false | {"Kotlin": 804908} | package online.partyrun.partyrunapplication.feature.battle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
... | 2 | Kotlin | 1 | 14 | fecbaf7c67cfa136e0633baaa2c708732069b190 | 2,443 | party-run-application | MIT License |
io/jackson-binary/src/main/kotlin/io/bluetape4k/jackson/binary/JacksonBinary.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.jackson.binary
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.dataformat.cbor.CBORFactory
import com.fasterxml.jackson.dataformat.cbor.CBORGenerator
import com.fasterxml.jackson.dataformat.cbor.d... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 5,851 | bluetape4k | MIT License |
src/test/kotlin/org/opensearch/commons/alerting/CorrelationAlertTests.kt | opensearch-project | 354,136,133 | false | {"Kotlin": 1029629, "Java": 131523, "Shell": 2056, "Python": 1387} | package org.opensearch.commons.alerting
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import org.opensearch.common.xcontent.LoggingDeprecationHandler
import org.opensearch.common.xcontent.XContentHelper
import org.opensearch.commons.alert... | 24 | Kotlin | 91 | 18 | ad43292e5ee5f35f489902ce5d830432339b9cc0 | 6,776 | common-utils | Apache License 2.0 |
networking/src/commonMain/kotlin/gizz/tapes/api/serializer/DurationInSecondsSerializer.kt | Ghost-Applications | 858,250,874 | false | {"Kotlin": 174382, "HTML": 4889} | package gizz.tapes.api.serializer
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.PrimitiveKind
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.encoding.Decoder
import kotlinx.ser... | 9 | Kotlin | 0 | 0 | 7bbe5926b4314686cc5b6c5778adf174945d9a46 | 988 | gizz-tapes | Apache License 2.0 |
Android-training-samples/app/src/main/java/com/egs/ansroid/samples/lesson8/flows/errorhandling/Imperative.kt | VaheD-EGS | 440,461,682 | false | null | package com.egs.ansroid.samples.lesson8.flows.errorhandling
import android.util.Log
import kotlinx.coroutines.flow.flowOf
import kotlinx.coroutines.runBlocking
val upstream2 = flowOf(1, 2, 3)
fun imperativeImpl1() = runBlocking {
try {
upstream2.collect { value ->
if (value > 2) {
... | 0 | Kotlin | 1 | 0 | 14ef47a01c9d020ce11dcbbd01c41c8adfb2a398 | 484 | EGS-Android-training-samples | MIT License |
vuejs-tests/src/org/jetbrains/vuejs/lang/VueCopyrightTest.kt | wuxianqiang | 508,329,768 | false | null | package com.hxz.mpxjs.lang
import com.intellij.testFramework.fixtures.BasePlatformTestCase
import com.maddyhome.idea.copyright.CopyrightProfile
import com.maddyhome.idea.copyright.psi.UpdateCopyrightFactory
import junit.framework.TestCase
class VueCopyrightTest : BasePlatformTestCase() {
@Throws(Exception::class)
... | 2 | null | 0 | 4 | e069e8b340ab04780ac13eab375d900f21bc7613 | 1,047 | intellij-plugin-mpx | Apache License 2.0 |
kaluga-library-components/src/main/kotlin/GitBranch.kt | splendo | 191,371,940 | false | {"Kotlin": 6527418, "Swift": 171974, "Shell": 1514} | /*
Copyright 2022 Splendo Consulting B.V. The Netherlands
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 appli... | 85 | Kotlin | 6 | 270 | afd5066c7eea533c58f49f503c0321b1dcba0f94 | 2,267 | kaluga | Apache License 2.0 |
test/astro/render/TestAspectValueType.kt | exertionriver | 742,813,983 | false | {"Kotlin": 506724} | package astro.render
import org.junit.jupiter.api.Test
import river.exertion.sac.astro.render.RenderAspect
object TestAspectValueType {
@Test
fun testRenderChartStateTypeDecoding() {
val firstDecoding = RenderAspect.getChartStateTypesLabel(6)
println ("firstDecodedChartLabel: $firstDecoding")... | 0 | Kotlin | 0 | 0 | b3a6676c8991a41691aacccd0ce4ef5deec6ec7f | 901 | sac-kcop | MIT License |
test/astro/render/TestAspectValueType.kt | exertionriver | 742,813,983 | false | {"Kotlin": 506724} | package astro.render
import org.junit.jupiter.api.Test
import river.exertion.sac.astro.render.RenderAspect
object TestAspectValueType {
@Test
fun testRenderChartStateTypeDecoding() {
val firstDecoding = RenderAspect.getChartStateTypesLabel(6)
println ("firstDecodedChartLabel: $firstDecoding")... | 0 | Kotlin | 0 | 0 | b3a6676c8991a41691aacccd0ce4ef5deec6ec7f | 901 | sac-kcop | MIT License |
src/main/kotlin/me/stroiker/flexibleloadgenerator/mvc/handler/LoadGeneratorWebExceptionHandler.kt | stroiker | 354,307,245 | false | null | package me.stroiker.flexibleloadgenerator.mvc.handler
import me.stroiker.flexibleloadgenerator.utils.Response
import me.stroiker.flexibleloadgenerator.utils.error
import org.springframework.web.bind.annotation.ControllerAdvice
import org.springframework.web.bind.annotation.ExceptionHandler
import org.springframework.w... | 0 | Kotlin | 0 | 1 | 39c418ea804274d963efb6c962876e8e547018f7 | 610 | flexible-load-generator | Apache License 2.0 |
core/testing/src/main/kotlin/com/ngapp/metanmobile/core/testing/MetanMobileTestRunner.kt | ngapp-dev | 878,233,406 | false | {"Kotlin": 1167674} | /*
* Copyright 2024 NGApps Dev (https://github.com/ngapp-dev). All rights reserved.
*
* 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
*
*... | 0 | Kotlin | 0 | 0 | f44bd23069c40a0342ed1310505f5bcc0547868c | 1,170 | metanmobile | Apache License 2.0 |
src/main/kotlin/no/fdk/dataset_catalog/service/PublishingService.kt | Informasjonsforvaltning | 306,262,224 | false | null | package no.fdk.dataset_catalog.service
import com.fasterxml.jackson.databind.node.JsonNodeFactory
import no.fdk.dataset_catalog.configuration.ApplicationProperties
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Service
import org.springframework.amqp.rabbit.core.RabbitTemplate
import java.time.Lo... | 4 | Kotlin | 0 | 0 | c3816355044484446be5018e972e4f39936b4cdb | 3,188 | dataset-catalog | Apache License 2.0 |
cesium-kotlin/src/jsMain/kotlin/cesium/engine/EllipseGeometry.factory.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6328371} | // Automatically generated - do not modify!
package cesium.engine
import js.objects.jso
inline fun EllipseGeometry(
block: EllipseGeometry.ConstructorOptions.() -> Unit,
): EllipseGeometry =
EllipseGeometry(options = jso(block))
| 0 | Kotlin | 7 | 35 | 0f192fb5e7be6207ea195f88dc6a0e766ad7f93b | 240 | types-kotlin | Apache License 2.0 |
dd-sdk-android/src/test/kotlin/com/datadog/android/core/internal/utils/RuntimeUtilsTest.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.utils
import android.util.... | 4 | null | 0 | 0 | 3b3bfab22b26067330186c4637e80d19adf334c1 | 3,422 | dd-sdk-android | Apache License 2.0 |
bellatrix.web/src/main/java/solutions/bellatrix/web/configuration/UrlDeterminer.kt | AutomateThePlanet | 334,964,015 | false | null | /*
* Copyright 2021 Automate The Planet Ltd.
* Author: <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 la... | 1 | Kotlin | 1 | 1 | 5da5e705b47e12c66937d130b3031ac8703b8279 | 1,470 | BELLATRIX-Kotlin | Apache License 2.0 |
src/commonMain/kotlin/fr/acinq/lightning/utils/byteArrays.kt | ACINQ | 243,326,972 | false | {"Kotlin": 3887526, "Swift": 23368, "Shell": 12538, "Dockerfile": 1494, "Objective-C": 350, "C": 104} | package fr.acinq.lightning.utils
import fr.acinq.bitcoin.ByteVector
import fr.acinq.bitcoin.ByteVector32
import fr.acinq.bitcoin.ByteVector64
import kotlin.experimental.and
import kotlin.experimental.or
import kotlin.experimental.xor
fun ByteArray.leftPaddedCopyOf(n: Int): ByteArray {
if (size >= n) return copyOf... | 30 | Kotlin | 22 | 94 | 0d85f888c0124e9a9eb8ab4825dbc909b3a78ca5 | 1,589 | lightning-kmp | Apache License 2.0 |
src/main/kotlin/top/cgglyle/boson/security/web/UserController.kt | cgglyle | 743,425,420 | false | {"Kotlin": 50773} | package top.cgglyle.boson.security.web
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import top.cgglyle.boson.security.auth... | 0 | Kotlin | 0 | 1 | 89908a4cb9b0d0ac157e8178e7754f6fa590290b | 1,363 | boson-security | Apache License 2.0 |
z2-core/src/commonMain/kotlin/hu/simplexion/z2/services/transport/DirectServiceCallTransport.kt | spxbhuhb | 665,463,766 | false | {"Kotlin": 1812530, "CSS": 171914, "Java": 20900, "JavaScript": 1950, "HTML": 1854} | package hu.simplexion.z2.services.transport
import hu.simplexion.z2.serialization.protobuf.ProtoDecoder
import hu.simplexion.z2.serialization.protobuf.ProtoMessage
import hu.simplexion.z2.serialization.protobuf.ProtoMessageBuilder
import hu.simplexion.z2.services.BasicServiceContext
import hu.simplexion.z2.services.Se... | 5 | Kotlin | 0 | 1 | 8b0b012d880918efc01d8dafd9a3dba701e90835 | 1,276 | z2-pre | Apache License 2.0 |
spend/src/main/java/com/flexa/spend/main/main_screen/SpendViewModel.kt | flexa | 843,038,714 | false | {"Kotlin": 870827} | package com.flexa.spend.main.main_screen
import android.content.Context
import android.util.Log
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import ... | 0 | Kotlin | 0 | 16 | 6c086fe1c35eb942805914f5655df66660082c4a | 14,939 | flexa-android | MIT License |
shared/compose/src/commonMain/kotlin/com/sedsoftware/tackle/compose/custom/navigation/BottomNavigationBarItem.kt | djkovrik | 769,140,107 | false | {"Kotlin": 880456, "Swift": 995} | package com.sedsoftware.tackle.compose.custom.navigation
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.size
import androidx.compose.material3.Icon
import androidx... | 15 | Kotlin | 0 | 1 | 5ca5a5bc9c41b6f628fac47db35126fef716e8d0 | 2,338 | Tackle | MIT License |
tibiakt-core/src/main/kotlin/com/galarzaa/tibiakt/core/enums/AuctionBattlEyeFilter.kt | Galarzaa90 | 285,669,589 | false | {"Kotlin": 539836, "Dockerfile": 1451} | /*
* Copyright © 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 0 | Kotlin | 2 | 1 | f9d314c4639f8fd2f7bf640096ae4b73a3fbd6eb | 1,239 | TibiaKt | Apache License 2.0 |
core/src/main/kotlin/org/hyrical/hcf/ability/interact/InteractAbility.kt | Hyrical | 597,847,737 | false | null | package org.hyrical.hcf.ability.interact
import org.bukkit.event.player.PlayerInteractEvent;
import org.hyrical.hcf.ability.Ability
abstract class InteractAbility(override val id: String) : Ability<PlayerInteractEvent>(id) | 10 | Kotlin | 0 | 3 | c2654402f46152239895d54869e3fdc3e86fc9ce | 224 | HCF | MIT License |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/CellularData5.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.CellularData5: ImageVector
get() {
if (_cellularData5 != null... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 1,010 | compose-fluent-ui | Apache License 2.0 |
src/main/kotlin/com/artfable/telegram/api/request/TelegramRequest.kt | artfable | 79,727,898 | false | null | package com.artfable.telegram.api.request
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.core.type.TypeReference
import com.artfable.telegram.api.TelegramBotMethod
import com.artfable.telegram.api.TelegramResponse
import java.lang.ref... | 1 | null | 1 | 3 | ac1bfb7578fc4b6790687c2c9369957d3f01e095 | 1,000 | telegram-api-java | MIT License |
analytics/src/main/java/io/appmetrica/analytics/impl/db/storage/OuterRootDatabaseFullPathProvider.kt | appmetrica | 650,662,094 | false | null | package io.appmetrica.analytics.impl.db.storage
import android.content.Context
import java.io.File
internal class OuterRootDatabaseFullPathProvider(
private val root: File,
private val relativePathFormer: RelativePathFormer
) : DatabaseFullPathProvider {
override fun fullPath(context: Context, simpleName... | 2 | null | 5 | 54 | 7f7b9968291a809f653f8d8fea1ecb3eed6cb278 | 403 | appmetrica-sdk-android | MIT License |
app/src/main/java/co/omisego/omgshop/pages/history/PaginationConfig.kt | omisego | 116,834,032 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 5, "INI": 2, "Proguard": 1, "JSON": 7, "Kotlin": 143, "Java": 1, "XML": 78} | package co.omisego.omgshop.pages.history
import co.omisego.omisego.model.pagination.Paginable
import co.omisego.omisego.model.pagination.SortDirection
/*
* OmiseGO
*
* Created by Phuchit Sirimongkolsathien on 22/6/2018 AD.
* Copyright © 2017-2018 OmiseGO. All rights reserved.
*/
object PaginationConfig {
co... | 0 | Kotlin | 5 | 6 | 05334ec4c00cfd6df3d5bd97c3145f317501c0e1 | 454 | sample-android | Apache License 2.0 |
build/launch/test/com/intellij/tools/launch/environments/LaunchEnvironmentPathsTest.kt | JetBrains | 2,489,216 | false | null | package com.intellij.tools.launch.environments
import com.intellij.openapi.application.PathManager
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import java.nio.file.Paths
class LaunchEnvironmentPathsTest {
@Test
fun test() {
val basePath = Paths.get(PathManager.getHom... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 695 | intellij-community | Apache License 2.0 |
app/src/main/java/com/pr0gramm/app/ui/fragments/BusyDialog.kt | chrosey | 95,877,863 | false | null | package com.pr0gramm.app.ui.fragments
import android.app.Dialog
import android.content.Context
import android.support.annotation.StringRes
import android.support.v4.app.Fragment
import android.widget.TextView
import com.pr0gramm.app.BuildConfig
import com.pr0gramm.app.R
import com.pr0gramm.app.ui.showDialog
import com... | 1 | null | 1 | 1 | b6a7b846bcae573545da824cb716a07a334adedb | 3,351 | Pr0 | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.