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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
library/src/androidTest/java/app/mobilitytechnologies/uitest/SimpleFragmentTest.kt | MobilityTechnologies | 352,875,536 | false | null | package app.mobilitytechnologies.uitest
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import app.mobilitytechnologies.uitest.extension.UiTestExtension
import app.mobilitytechnologie... | 12 | Kotlin | 1 | 15 | 350ef2b64280789f8e616c38266970f26665fdff | 1,063 | gogo-screenshot-android | Apache License 2.0 |
src/main/kotlin/com/github/hooll/commands/MainCommand.kt | hooll | 504,188,789 | false | {"Kotlin": 28676} | package com.github.hooll.commands
import com.github.hooll.commands.subCommands.*
import com.github.hooll.warn
import taboolib.common.platform.ProxyCommandSender
import taboolib.common.platform.command.CommandBody
import taboolib.common.platform.command.CommandHeader
import taboolib.common.platform.command.PermissionDe... | 0 | Kotlin | 0 | 1 | 343ccdb14e340a85ad162270c6135b22a86d19d9 | 1,187 | ZheFish | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/yugen/opsc7311_poe/objects/Task.kt | tronnyg | 790,794,611 | false | {"Kotlin": 106684} | package com.yugen.opsc7311_poe.objects
import android.graphics.Bitmap
import java.text.SimpleDateFormat
import java.time.LocalTime
import java.util.Date
data class Task(
val taskName: String,
val taskDesc: String,
val category: String,
val date: Date,
val startTime: String?,
val endTime: Strin... | 0 | Kotlin | 0 | 0 | 1fd270bdabf4a93ed1b89c473540f65fbce6b021 | 678 | TurboTrack-OPSC7311POE | MIT License |
src/main/kotlin/org/rust/lang/core/types/types/RustNumericType.kt | kbukum | 87,958,341 | true | {"Kotlin": 1272117, "Rust": 74475, "Lex": 19046, "HTML": 9205, "Java": 586, "Shell": 377, "RenderScript": 15} | package org.rust.lang.core.types.types
interface RustNumericType : RustPrimitiveType{
val isKindWeak: Boolean
}
| 0 | Kotlin | 0 | 0 | f0220593d08e97cf9f04fd533c3895653f465632 | 117 | intellij-rust | MIT License |
library/src/commonMain/kotlin/com/meowool/sweekt/SuspendProperty.kt | RinOrz | 295,796,281 | false | null | @file:Suppress("FunctionName")
package com.meowool.sweekt
/**
* Represents that the getter of the property is suspended.
*
* This means that the marked property can only be got in suspend context:
* ```
* @SuspendGetter
* var greeting: String
* get() = suspendGetter { ... }
* set(value) = suspendSetter { ... | 7 | Kotlin | 2 | 35 | 27d06268f21bebba295d04c0ec1b13019036bac3 | 2,727 | sweekt | Apache License 2.0 |
backend/security-oauth/src/main/kotlin/io/featurehub/web/security/oauth/providers/OAuth2ProviderManager.kt | featurehub-io | 258,601,325 | false | {"Dart": 1072584, "Kotlin": 971334, "Groovy": 526705, "Java": 280910, "Gherkin": 99701, "TypeScript": 75489, "Shell": 12850, "Dockerfile": 4566, "JavaScript": 2354, "HTML": 1279, "Ruby": 454} | package io.featurehub.web.security.oauth.providers
import io.featurehub.web.security.oauth.AuthProviderInfo
import jakarta.inject.Inject
import org.glassfish.hk2.api.IterableProvider
import java.net.URLEncoder
import java.nio.charset.StandardCharsets
import java.util.*
import java.util.function.Consumer
data class OA... | 48 | Dart | 32 | 309 | b5a31b9de21fb56cd2c2dde9c4f3c6a16922c1a3 | 1,551 | featurehub | Apache License 2.0 |
core/src/main/kotlin/fr/xgouchet/elmyr/regex/node/RootNode.kt | cybernetics | 365,665,131 | true | {"Kotlin": 447545, "Java": 19634} | package fr.xgouchet.elmyr.regex.node
import fr.xgouchet.elmyr.Forge
internal class RootNode : BaseParentNode() {
// region Node
override fun build(forge: Forge, builder: StringBuilder) {
for (child in children) {
child.build(forge, builder)
}
}
// endregion
}
| 0 | null | 0 | 0 | 1d4bc5176784fe678a4befdab8f29a15f7756000 | 309 | Elmyr | MIT License |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/submission/viewmodel/SubmissionCountrySelectViewModel.kt | CoraLibre | 268,867,734 | true | null | package de.rki.coronawarnapp.ui.submission.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import de.rki.coronawarnapp.ui.submission.SubmissionCountry
class SubmissionCountrySelectViewModel : ViewMode... | 5 | Kotlin | 3 | 36 | 8e3d915aa194cae0645ff668cca2114d9bb3d7c2 | 2,271 | CoraLibre-android | Apache License 2.0 |
app/src/main/java/com/example/nanoclientkotlin/NanoWebsocketClient.kt | melinaminaya | 656,832,686 | false | null | package com.example.nanoclientkotlin
import android.app.Application
import android.content.Context
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewmodel.compose.viewModel
import com.example.nanoclientkotlin.NanoWebsocketClient.TAG
import com.google.gson.Gson
import com.google.... | 0 | Kotlin | 0 | 0 | ad22172f1b0e160292091d27e422ef0de3346f79 | 15,617 | RestAPIKotlinApp | Freetype Project License |
live/src/main/java/com/pbj/sdk/concreteImplementation/live/model/JsonEpisodeStatusUpdate.kt | pbj-apps | 360,147,915 | false | null | package com.pbj.sdk.concreteImplementation.live.model
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
internal data class JsonEpisodeStatusUpdate(
val command: String,
val episode: JsonEpisodeUpdate,
val extra: JsonExtra,
val stream_status: String
) | 1 | Kotlin | 0 | 0 | 01dbcb1919045fd0249dd6c008edd6a5a218d2be | 290 | Live-android-sdk | MIT License |
dd-sdk-android/src/main/kotlin/com/datadog/android/v2/core/internal/net/DataOkHttpUploader.kt | DataDog | 219,536,756 | false | null | /*
* 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.v2.core.internal.net
import com.datadog.... | 41 | null | 45 | 86 | bcf0d12fd978df4e28848b007d5fcce9cb97df1c | 6,167 | dd-sdk-android | Apache License 2.0 |
lunala-jda/src/main/kotlin/com/gabriel/lunala/project/LunalaJDA.kt | SrGaabriel | 302,985,992 | true | {"Kotlin": 81459} | package com.gabriel.lunala.project
import com.gabriel.lunala.project.command.handler.*
import com.gabriel.lunala.project.config.LunalaDiscordConfig
import com.gabriel.lunala.project.database.LunalaDatabase
import com.gabriel.lunala.project.database.LunalaDatabaseImpl
import com.gabriel.lunala.project.event.ReactiveEve... | 0 | null | 0 | 0 | b19a0d3ef8a2413c2d543ff453a1237b4bd6671e | 4,416 | lunala | MIT License |
ok-tasktracker-be-common/src/main/kotlin/com/polyakovworkbox/tasktracker/backend/common/models/task/DueTime.kt | otuskotlin | 377,711,514 | false | null | package com.polyakovworkbox.tasktracker.backend.common.models.task
import java.time.Instant
@JvmInline
value class DueTime(
val dueTime: Instant = Instant.now()
) {
companion object {
val NONE = DueTime()
}
} | 0 | Kotlin | 1 | 1 | 4ca55a569558ce9950c087bb299b17f667ac7cef | 230 | ok-202105-tasktracker-dp | MIT License |
app/src/main/java/tech/ippon/ocear/reader/CameraCapture.kt | JulianClemot | 550,972,261 | false | {"Kotlin": 61528} | package tech.ippon.ocear.reader
import androidx.camera.core.AspectRatio.RATIO_16_9
import androidx.camera.core.CameraSelector
import androidx.camera.core.ImageCapture
import androidx.camera.core.ImageCapture.CAPTURE_MODE_MAXIMIZE_QUALITY
import androidx.camera.core.Preview
import androidx.camera.core.UseCase
import an... | 0 | Kotlin | 1 | 2 | e1ff792d2a2cff1be0074e7806507e9cdd530824 | 3,140 | Ocear | MIT License |
mastodonk-core/src/commonMain/kotlin/fr/outadoc/mastodonk/api/entity/Error.kt | outadoc | 361,237,514 | false | null | package fr.outadoc.mastodonk.api.entity
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Represents an API error.
*/
@Serializable
public data class Error(
/**
* The error message.
*/
@SerialName("error")
val error: String,
/**
* A longer descr... | 1 | Kotlin | 0 | 3 | 0dff922e6077184f4d9fcefb9f5204fac6b3bdfd | 429 | mastodonk | Apache License 2.0 |
app/src/main/java/com/thiaagodev/finn/view/HomeFragment.kt | thiaagodev | 550,461,710 | false | null | package com.thiaagodev.finn.view
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.WindowManager
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.recyclerview.widget.LinearLayoutManager
imp... | 0 | Kotlin | 0 | 2 | b5ae511f7508f5120747fffa9292b73cd809fca0 | 4,606 | Finn | MIT License |
app/src/main/java/com/codeenemy/assignmentapp/viewmodels/CharacterDetailsViewModel.kt | harshsingh-io | 741,662,673 | false | {"Kotlin": 38693} | package com.codeenemy.assignmentapp.viewmodels
import androidx.lifecycle.*
import com.codeenemy.assignmentapp.data.repositories.CharactersRepository
import com.codeenemy.assignmentapp.models.FilmResponse
import com.codeenemy.assignmentapp.models.Character
import com.codeenemy.assignmentapp.models.HomeWorldResponse
imp... | 0 | Kotlin | 0 | 0 | 5e99f021f3f017e70828427965403a386395050f | 3,902 | StarWarsSaga | Apache License 2.0 |
mpreference/src/main/java/vip/mystery0/mpreference/base/BaseMPreferenceViewHolder.kt | Mystery0Tools | 153,585,062 | false | null | package vip.mystery0.mpreference.base
import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.content.ContextCompat
import androidx.recyclerview.wid... | 0 | Kotlin | 0 | 0 | 541632963dea7b60749f5fdad35afe02d97f09f4 | 2,849 | MPreference | Apache License 2.0 |
k-es-demo-app-proto/src/test/kotlin/Test.kt | ks-no | 225,693,861 | false | null | import com.github.msemys.esjc.EventStoreBuilder
import com.google.protobuf.Message
import io.kotest.matchers.shouldBe
import io.kotest.matchers.types.shouldBeInstanceOf
import mu.KotlinLogging
import no.ks.kes.demoapp.*
import no.ks.kes.esjc.EsjcAggregateRepository
import no.ks.kes.esjc.EsjcEventUtil
import no.ks.kes.l... | 19 | Kotlin | 0 | 5 | 69935746ed2cf0b91235feb1b7305ba4f72fb866 | 4,378 | k-es | MIT License |
app/src/main/java/com/example/mycontacts/presenter/ui/base_contact_list/BaseContactListFragment.kt | t1geryan | 598,672,315 | false | null | package com.example.mycontacts.presenter.ui.base_contact_list
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.StringRes
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.DefaultItemAnimator
import andr... | 0 | Kotlin | 0 | 0 | ea1c2cb6bc7e5014f816d3cd0b62288c73a74a58 | 5,208 | My_Contacts | Apache License 2.0 |
src/commonMain/kotlin/com/fortysevendegrees/predef.kt | nomisRev | 602,039,525 | false | null | package com.fortysevendegrees
import io.ktor.server.application.ApplicationCall
import io.ktor.util.pipeline.PipelineContext
typealias KtorCtx = PipelineContext<Unit, ApplicationCall>
| 0 | Kotlin | 3 | 22 | 33739b6cb4db1661aa3c8f7b7293de5c80246994 | 186 | ktor-k8s-zero-downtime | Apache License 2.0 |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/CloudArrowDown.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.CloudArrowDown: ImageVector
get() {
if (_cloudArrowDown != nu... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 1,793 | compose-fluent-ui | Apache License 2.0 |
app/src/main/java/com/picassos/betamax/android/presentation/app/home/HomeViewModel.kt | aelrahmanashraf | 581,933,102 | false | {"Kotlin": 768121} | package com.picassos.betamax.android.presentation.app.home
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.viewModelScope
import com.picassos.betamax.android.core.resource.Resource
import com.picassos.betamax.android.domain.usecase.home.HomeUseCases
import com.picass... | 0 | Kotlin | 0 | 0 | 004716ab1e75f18e85a88bed966078d439dd6e0a | 3,521 | betamax-android | MIT License |
library/src/main/java/io/github/chenfei0928/lang/Process.kt | chenfei0928 | 130,954,695 | false | {"Kotlin": 1030563, "Java": 264121} | /**
* @author chenf()
* @date 2024-08-01 14:50
*/
package io.github.chenfei0928.lang
import io.github.chenfei0928.concurrent.coroutines.onSuspendCancellation
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import kotlin.coroutines.CoroutineContext... | 0 | Kotlin | 0 | 8 | 0dcb626139d3ddf84f278b18f0403c02ec1605b5 | 1,036 | Util | MIT License |
app/src/main/kotlin/com/fabien/app/organization/Routing.kt | Fabien-R | 604,586,598 | false | {"Kotlin": 131229, "Shell": 328} | package com.fabien.app.organization
import com.fabien.domain.handlers.AddOrganizationCommand
import com.fabien.domain.handlers.AddOrganizationCommandHandler
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.request.*
import io.ktor.server.routing.*
import kotlinx.serialization.Serializabl... | 3 | Kotlin | 0 | 0 | 5b56773d35576786fe4f2b36d936fa3d7d10aaae | 1,492 | kotlin-playground | MIT License |
pickle-lib/src/main/java/com/fourlastor/pickle/Pickle.kt | fourlastor | 139,020,705 | false | null | package com.fourlastor.pickle
annotation class Pickle(
val featuresDir: String,
val packageName: String,
val strictMode: Boolean
)
| 9 | null | 5 | 54 | c13fe9b362c77945b9b0c61c993beae535162921 | 156 | pickle | MIT License |
app/src/main/java/com/rootstrap/android/ui/screens/SplashScreen.kt | amaury901130 | 445,951,632 | false | {"Kotlin": 42882, "Shell": 310} | package com.rootstrap.android.ui.screens
import android.view.animation.OvershootInterpolator
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.AnimationVector1D
import androidx.compose.animation.core.tween
import androidx.compose.runtime.Composable
import androidx.compose.runtime... | 0 | Kotlin | 0 | 0 | 2a5be7cc6972630cf73938bb8157afe2c5cdb2dd | 946 | android_compose_demo | MIT License |
build-tools/agp-gradle-core/src/main/java/com/android/build/gradle/internal/dsl/InternalLibraryExtension.kt | RivanParmar | 526,653,590 | false | null | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1 | null | 2 | 17 | 8fb2bb1433e734aa9901184b76bc4089a02d76ca | 1,417 | androlabs | Apache License 2.0 |
src/main/java/vlfsoft/solid/l/bad/Rectangle.kt | vlipovetskii | 109,602,269 | false | null | package vlfsoft.solid.l.bad
import vlfsoft.principles.moduleclass.LiskovSubstitutionPrinciple
@LiskovSubstitutionPrinciple(false)
@LiskovSubstitutionPrinciple.Type
open class Rectangle(open var width: Double = 0.0, open var height: Double = 0.00) {
val area: Double
get() {
return width * heig... | 0 | Kotlin | 6 | 9 | 16f9942e330b69f48e175460674802430d4f56d2 | 336 | solid-principles-kotlin | Apache License 2.0 |
src/main/java/com/mrpowergamerbr/loritta/commands/vanilla/utils/CalculadoraCommand.kt | CrazyPlayerPT | 100,960,507 | true | {"Kotlin": 543085, "Java": 263480} | package com.mrpowergamerbr.loritta.commands.vanilla.utils
import com.mrpowergamerbr.loritta.commands.CommandBase
import com.mrpowergamerbr.loritta.commands.CommandCategory
import com.mrpowergamerbr.loritta.commands.CommandContext
import com.mrpowergamerbr.loritta.utils.LorittaUtils
import com.mrpowergamerbr.loritta.ut... | 0 | Kotlin | 0 | 0 | 53d189257322599739a4c3ae040886445dddc4eb | 1,384 | Loritta | MIT License |
vector/src/main/java/im/vector/fragments/keysbackup/restore/KeysBackupRestoreFromPassphraseViewModel.kt | Siddharth1698 | 171,458,338 | true | {"Java": 2863730, "Kotlin": 700175, "JavaScript": 141273, "HTML": 21113, "Shell": 14066} | /*
* Copyright 2019 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 0 | Java | 0 | 0 | 2b9ee7ac0e8f5b265bfd82a704bed8d8d272a1ae | 3,745 | riot-android | Apache License 2.0 |
app/src/main/java/com/example/books/presentation/Stats/CategoriesState.kt | Moohaa | 514,947,288 | false | {"Kotlin": 68305} | package com.example.books.presentation.Stats
import com.example.books.domain.model.Category
data class CategoriesState(
val isLoading: Boolean = false,
val categories: List<Category> = emptyList(),
val error: String = ""
) | 0 | Kotlin | 0 | 0 | 941854481e722fcf060ea555782ba16c21e2f7ab | 236 | Bookest | MIT License |
PhoenixPenNG/desktop/src/main/java/com/phoenixpen/desktop/rendering/FullscreenQuad.kt | nshcat | 182,317,693 | false | {"Text": 2, "Ignore List": 4, "Markdown": 1, "Gradle": 5, "INI": 1, "Shell": 6, "Batchfile": 1, "GLSL": 12, "JSON": 28, "Java Properties": 1, "XML": 15, "Kotlin": 213, "Java": 6, "C": 2} | package com.phoenixpen.desktop.rendering
import com.jogamp.opengl.GL4
import com.phoenixpen.desktop.application.DesktopResourceProvider
import com.phoenixpen.desktop.rendering.materials.TexturedQuadMaterial
/**
* A class representing a white quad spanning the whole screen. This is meant for testing purposes.
*/
cla... | 0 | Kotlin | 0 | 1 | 8e29e78b8f3d1ff7bdfedfd7c872b1ac69dd665d | 813 | phoenixpen_ng | MIT License |
src/main/kotlin/br/com/zup/sistemasExternos/dominio/BcbDeleteResponse.kt | caroldf07 | 356,366,964 | true | {"Kotlin": 54496} | package br.com.zup.sistemasExternos.dominio
import java.time.LocalDateTime
data class BcbDeleteResponse (val key: String, val deletedAt: LocalDateTime)
| 0 | Kotlin | 0 | 0 | b3b3f43a6448468afc32e9cf37d20904519c0eae | 154 | orange-talents-02-template-pix-keymanager-grpc | Apache License 2.0 |
app/src/main/java/com/example/bookloverfinalapp/app/ui/general_screens/screen_main/adapter/fingerprints/SavedBookMainFingerprint.kt | yusuf0405 | 484,801,816 | false | {"Kotlin": 1421124} | package com.example.bookloverfinalapp.app.ui.general_screens.screen_main.adapter.fingerprints
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import com.example.bookloverfinalapp.R
import com.example.bookloverfinalapp.app.ui.general_screens.screen_all_saved... | 1 | Kotlin | 1 | 3 | e1ecdb14efbf7a25643ded1319841712f5e12a3b | 3,462 | BookLoverFinalApp | Apache License 1.1 |
mesh-exam/feature/result/src/main/java/io/flaterlab/meshexam/result/ui/result/IndividualResultViewModel.kt | chorobaev | 434,863,301 | false | {"Kotlin": 467494, "Java": 1951} | package io.flaterlab.meshexam.result.ui.result
import androidx.lifecycle.*
import dagger.hilt.android.lifecycle.HiltViewModel
import io.flaterlab.meshexam.androidbase.BaseViewModel
import io.flaterlab.meshexam.androidbase.SingleLiveEvent
import io.flaterlab.meshexam.androidbase.getLauncher
import io.flaterlab.meshexam... | 0 | Kotlin | 0 | 2 | 364c4fcb70a461fc02d2a5ef2590ad5f8975aab5 | 3,127 | mesh-exam | MIT License |
mesh-exam/feature/result/src/main/java/io/flaterlab/meshexam/result/ui/result/IndividualResultViewModel.kt | chorobaev | 434,863,301 | false | {"Kotlin": 467494, "Java": 1951} | package io.flaterlab.meshexam.result.ui.result
import androidx.lifecycle.*
import dagger.hilt.android.lifecycle.HiltViewModel
import io.flaterlab.meshexam.androidbase.BaseViewModel
import io.flaterlab.meshexam.androidbase.SingleLiveEvent
import io.flaterlab.meshexam.androidbase.getLauncher
import io.flaterlab.meshexam... | 0 | Kotlin | 0 | 2 | 364c4fcb70a461fc02d2a5ef2590ad5f8975aab5 | 3,127 | mesh-exam | MIT License |
domain/src/test/java/br/com/pebmed/domain/usecases/UsefulObjects.kt | PEBMED | 199,354,796 | false | null | package br.com.pebmed.domain.usecases
import br.com.pebmed.domain.entities.PullRequestModel
import br.com.pebmed.domain.entities.RepoModel
import br.com.pebmed.domain.entities.UserModel
import br.com.pebmed.domain.extensions.fromJsonGeneric
import com.google.gson.Gson
import java.io.IOException
import java.nio.file.Fi... | 2 | Kotlin | 5 | 7 | 424c1405cdc4a27a9ae03d6ec4e64dd48e347109 | 1,580 | android-base-architecture | MIT License |
app/src/main/java/com/aquispe/apprickandmorty/ui/theme/Type.kt | arman-visual | 617,327,499 | false | null | package com.aquispe.apprickandmorty.ui.theme
import androidx.compose.material.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontStyle
import androidx.compose.ui.text.font.FontWeight
imp... | 0 | Kotlin | 0 | 0 | b08f67a2bf7258a698f640a4bbab0c514bfce71c | 929 | AppRickAndMorty | Apache License 2.0 |
compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/medium/CloudSunMedium.kt | SchweizerischeBundesbahnen | 853,290,161 | false | {"Kotlin": 6728512} | package ch.sbb.compose_mds.sbbicons.medium
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mi... | 0 | Kotlin | 0 | 1 | 090a66a40e1e5a44d4da6209659287a68cae835d | 4,213 | mds-android-compose | MIT License |
composeApp/src/commonMain/kotlin/io/github/snd_r/komelia/ui/reader/common/TransformGestureDetector.kt | Snd-R | 775,064,249 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 937 | 9 | 5a16d84ed86321e4c7efa96daea9dd7dbfc2308b | 10,674 | Komelia | Apache License 2.0 |
domain/src/main/java/com/aconno/sensorics/domain/interactor/type/FlowableUseCase.kt | recreational-snacker | 163,322,239 | false | null | package com.aconno.sensorics.domain.interactor.type
import io.reactivex.Flowable
interface FlowableUseCase<T> {
fun execute(): Flowable<T>
} | 0 | Kotlin | 0 | 0 | 18530c7272e685744f1b25f223124e9f67bfdd0b | 147 | Sensorics | Apache License 2.0 |
RickAndMorty/app/src/test/java/com/hakanyilmazz/rickandmorty/ui/cartooncharacter/CartoonCharacterViewModelTest.kt | hakanyilmazz | 450,968,364 | false | {"Kotlin": 75535} | package com.hakanyilmazz.rickandmorty.ui.cartooncharacter
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import com.google.common.truth.Truth
import com.hakanyilmazz.rickandmorty.data.mode... | 0 | Kotlin | 0 | 2 | d910ec96dfb0a17abfdf116a2698300ff0988802 | 3,358 | rick-and-morty-app | Apache License 2.0 |
slides2-kt/presentations/deepDiveKotlin/types/todo.kt | ilaborie | 171,029,863 | false | {"SCSS": 1448332, "Kotlin": 368654, "Java": 37917, "HTML": 28931, "JavaScript": 22144, "CSS": 10352, "Rust": 6550, "Scala": 2293, "Smali": 1357, "Shell": 1012, "TypeScript": 658, "Dockerfile": 460} | fun `is P = NP`(): Boolean =
TODO()
fun main(args: Array<String>) {
println("P = NP is ${`is P = NP`()}")
} | 3 | SCSS | 1 | 1 | dc77f1aef93cfae26759ad11bd2733a64263b83d | 116 | slides2 | Apache License 2.0 |
pipeline/runner/src/main/kotlin/org/archguard/runner/handler/CompositeActionHandler.kt | archguard | 565,163,416 | false | {"Kotlin": 212032, "TypeScript": 19660, "MDX": 5365, "CSS": 2612, "HTML": 1703, "JavaScript": 1360} | package org.archguard.runner.handler
import org.archguard.action.exec.Command
import org.archguard.action.exec.ExecListeners
import org.archguard.action.exec.ExecOptions
import org.archguard.action.exec.LoggerExecListeners
import org.archguard.runner.context.RunnerContext
import org.archguard.runner.pipeline.ActionSte... | 1 | Kotlin | 2 | 31 | 4c1f6a57568affeaab7771e83eb0665e934110a5 | 1,530 | codedb | MIT License |
components/deeplink/api/src/main/java/com/flipperdevices/deeplink/api/DeepLinkHandler.kt | flipperdevices | 288,258,832 | false | null | package com.flipperdevices.deeplink.api
import com.flipperdevices.deeplink.model.Deeplink
import com.github.terrakok.cicerone.Router
/**
* Each component which support deeplink should implement this interface
* Don't forget register it via DeepLinkDispatcher#registerHandler
*/
interface DeepLinkHandler {
/**
... | 9 | Kotlin | 78 | 552 | f4cb3af8f6980abd999f4c841d4530b713314462 | 481 | Flipper-Android-App | MIT License |
app/src/main/java/ru/otus/network/start/presentation/CharactersState.kt | makzimi | 665,683,674 | false | null | package ru.otus.network.start.presentation
import ru.otus.network.start.domain.RaMCharacter
data class CharactersState(
val items: List<RaMCharacter>,
val isLoading: Boolean,
val isError: Boolean,
)
| 0 | Kotlin | 0 | 1 | f3ed9d8bb9bff7c68dafff96703e672176fcbf74 | 213 | otus-network-lesson | Apache License 2.0 |
kotlin/src/main/kotlin/com/spoonacular/client/model/GetRecipeIngredientsByID200Response.kt | ddsky | 189,444,765 | false | {"PowerShell": 1, "Text": 3, "OASv3-json": 1, "Markdown": 2137, "JSON": 7, "Go": 174, "Shell": 21, "Go Checksums": 1, "Ignore List": 19, "YAML": 19, "Go Module": 1, "OASv3-yaml": 4, "Perl": 331, "Gradle": 6, "Scala": 169, "Maven POM": 2, "INI": 7, "Batchfile": 3, "Java": 516, "XML": 5, "Erlang": 165, "Microsoft Visual ... | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package com.spoonacular.client.model
import com... | 1 | Java | 64 | 41 | 60d83759252522d70fe981b12a20a5f56690617e | 690 | spoonacular-api-clients | MIT License |
src/codejam/s2022/round1b/c/Solution.kt | PaLy | 358,729,103 | false | {"Text": 6, "Python": 187, "Shell": 24, "Java": 74, "Kotlin": 53, "C++": 38, "JavaScript": 1, "Pascal": 1} | package codejam.s2022.round1b.c
import java.io.BufferedReader
import java.io.InputStream
import java.io.InputStreamReader
import java.io.PrintStream
import kotlin.random.Random
import kotlin.system.exitProcess
fun main() {
solve(System.`in`, System.out)
}
fun solve(inputStream: InputStream, out: PrintStream) {
... | 0 | Java | 0 | 0 | ed9c8dd0d85f8e2a70bfa230314993174e8c8ebe | 1,197 | Contest | MIT License |
environment/src/main/kotlin/jetbrains/exodus/log/LogTestConfig.kt | JetBrains | 19,271,154 | false | null | /*
* Copyright 2010 - 2023 JetBrains s.r.o.
*
* 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 a... | 1 | null | 114 | 1,095 | 0a0fd05209606f7d4e443e5cd168797c7ebe9743 | 829 | xodus | Apache License 2.0 |
gooddata-server-oauth2-autoconfigure/src/main/kotlin/JwkCachingReactiveDecoderFactory.kt | gooddata | 373,135,413 | false | null | /*
* Copyright 2021 GoodData Corporation
*
* 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... | 0 | Kotlin | 1 | 2 | 5a2157b372a7b6e8acaa96897399dcb62d2b1350 | 6,251 | gooddata-server-oauth2 | Apache License 2.0 |
app/src/main/java/com/artf/chatapp/view/SplashActivity.kt | muhammadimran021 | 239,484,649 | true | {"Kotlin": 105163} | package com.artf.chatapp.view
import android.Manifest
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import android.os.Handler
import android.widget.Toast
import androidx.annotation.NonNull
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.Activit... | 0 | null | 0 | 0 | fea0ae5c58b66e5e39c97274669ed99e4164a68d | 2,070 | ChatApp | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsaccreditedprogrammesapi/domain/repository/ReferralRepository.kt | ministryofjustice | 615,402,552 | false | {"Kotlin": 305653, "Shell": 9504, "Dockerfile": 1397} | package uk.gov.justice.digital.hmpps.hmppsaccreditedprogrammesapi.domain.repository
import org.springframework.data.domain.Page
import org.springframework.data.domain.Pageable
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Query
import org.springframework.st... | 8 | Kotlin | 0 | 0 | ff24af171263552c4275809c2536d5aab6a3d93d | 3,651 | hmpps-accredited-programmes-api | MIT License |
Vuforia/vuforia-sdk-android-9-6-3/samples/vuforia-sample-9-6-3/Android/app/src/main/java/com/vuforia/engine/NativeSample/SplashScreenActivity.kt | Jung-Juhwan | 319,899,477 | false | null | /*===============================================================================
Copyright (c) 2020 PTC Inc. All Rights Reserved.
Vuforia is a trademark of PTC Inc., registered in the United States and other
countries.
===============================================================================*/
package com.vufo... | 1 | null | 1 | 1 | 05dbe2517350459bf180883efaf147226cbcb622 | 1,813 | HCI_ARToolKit | MIT License |
service-query/src/main/kotlin/org/veupathdb/service/mblast/query/Const.kt | VEuPathDB | 303,794,401 | false | null | package org.veupathdb.service.mblast.query
object Const {
const val ConfigFileName = "config.json"
const val QueryFileName = "query.txt"
const val StdErrFileName = "stderr.txt"
const val ReportFileName = "report.asn1"
const val ThreadContextJobID = "JOB_ID"
const val MaxSummaryLength = 512
const val ... | 12 | Kotlin | 0 | 0 | 5a323b17b2d35d9709915b52ee159279c0e88b1b | 343 | service-multi-blast | Apache License 2.0 |
src/main/kotlin/Setters.kt | CogitoCoder | 533,452,617 | false | null | // Kotlin Getters & Setters With Example
// If you want to execute some logic before setting or getting the property of an object, you can use getters and setters.
// You can consider these as functions that are executed when you either get the property or set the property of an object.
// But why we want to do th... | 0 | Kotlin | 0 | 5 | f3293e91212e973945a96f6ae90f2c442acb9298 | 2,381 | Kotlin_Tutorial | MIT License |
app/src/main/java/com/example/pulsa/activities/RegisterActivity.kt | BridgeTheMasterBuilder | 588,133,993 | false | null | package com.example.pulsa.activities
import android.os.Bundle
import android.widget.EditText
import android.widget.Toast
import androidx.core.view.forEach
import com.example.pulsa.databinding.ActivityRegisterBinding
import com.example.pulsa.networking.NetworkManager
import com.example.pulsa.objects.User
import com.goo... | 0 | Kotlin | 1 | 2 | 9ed68b624407d67b24d6db4abae158e6e24e37a7 | 2,103 | pulsa-mobile | The Unlicense |
core/src/main/kotlin/com/acmerobotics/roadrunner/followers/GuidingVectorField.kt | JackLowry | 155,725,423 | true | {"Kotlin": 249309} | package com.acmerobotics.roadrunner.followers
import com.acmerobotics.roadrunner.Vector2d
import com.acmerobotics.roadrunner.path.Path
import kotlin.math.sign
/**
* Guiding vector field for effective path following described in section III, eq. (9) of
* [1610.04391.pdf](https://arxiv.org/pdf/1610.04391.pdf). Implem... | 0 | Kotlin | 0 | 0 | 1ed06edcac4aa339aff12ba4599dfe8dbc217614 | 2,467 | road-runner | MIT License |
mqtt-manager/src/main/kotlin/com/ns/greg/library/mqtt_manager/internal/action/UnsubscribeAction.kt | GregoryHo | 99,330,190 | false | null | package com.ns.greg.library.mqtt_manager.internal.action
import com.ns.greg.library.mqtt_manager.external.LoggerLevel.ALL
import com.ns.greg.library.mqtt_manager.internal.MqttLogger
import com.ns.greg.library.mqtt_manager.external.topic.MqttTopic
import com.ns.greg.library.mqtt_manager.internal.client.AsyncClientWrapp... | 1 | null | 1 | 1 | a25dd3def0aecdcf284fce243280df3315e5a0fb | 2,410 | MqttManager | MIT License |
src/main/kotlin/org/hyacinthbots/docgenerator/builder/TranslationSupportBuilder.kt | HyacinthBots | 572,707,161 | false | {"Kotlin": 50426} | /*
* Copyright (c) 2022-2024 HyacinthBots <<EMAIL>>
*
* This file is part of doc-generator.
*
* Licensed under the MIT license. For more information,
* please see the LICENSE file or https://mit-license.org/
*/
package org.hyacinthbots.docgenerator.builder
import org.hyacinthbots.docgenerator.annotations.Confi... | 0 | Kotlin | 1 | 0 | f735d4f3823f58bd2c5a08e12a7dd1b0f6b8e3d3 | 832 | doc-generator | MIT License |
code/jvm/src/main/kotlin/pt/isel/leic/ptgest/http/model/trainer/request/CreateSessionRequest.kt | PTGest | 761,908,487 | false | {"Kotlin": 329826, "Vue": 149510, "TypeScript": 46622, "PLpgSQL": 18990, "CSS": 1471, "HTML": 368, "Shell": 274} | package pt.isel.leic.ptgest.http.model.trainer.request
import pt.isel.leic.ptgest.domain.session.SessionType
import java.util.Date
import java.util.UUID
data class CreateSessionRequest(
val traineeId: UUID,
val workoutId: Int,
val beginDate: Date,
val endDate: Date?,
val location: String?,
val... | 0 | Kotlin | 0 | 5 | 925d00d4be6258fdd1b8a22a437723f6c92776d5 | 365 | PTGest | MIT License |
libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/unitTests/LifecycleAwaitFinalPropertyValueTest.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2023 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.
*/
@file:Suppress("FunctionName")
package org.jetbrains.kotlin.gradle.unitTests
import org.jetbrains.kotlin.gra... | 154 | Kotlin | 5566 | 45,025 | 8a69904d02dd3e40fae5f2a1be4093d44a227788 | 2,746 | kotlin | Apache License 2.0 |
source/src/main/java/ru/g000sha256/wallet/extension/Int.kt | g000sha256 | 317,877,385 | false | null | package ru.g000sha256.wallet.extension
import android.content.res.Resources
val Int.dp: Int
get() = dpF.toInt()
val Int.dpF: Float
get() = this * resources.displayMetrics.density
private val resources by lazy { Resources.getSystem() } | 0 | Kotlin | 0 | 0 | 61d0cc14b1613209b953c546fbd472e82a9d955f | 246 | wallet_demo | MIT License |
SearchByImage/src/main/kotlin/Header.kt | AdorableParker | 519,499,809 | false | null | import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Header(
@SerialName("user_id")
val uid: Int = 0,
@SerialName("long_remaining")
val remain: Int? = null,
@SerialName("results_requested")
val numberOfResults: Int = 0,
val status: Int,
... | 0 | Kotlin | 0 | 0 | 34ca0d5d5ab303b4d30bbd9415e1d17f2849bab7 | 350 | MiraiConsolePlugins | Apache License 2.0 |
app/src/main/java/com/vishnu/junitexample/coroutines/MyViewModel.kt | making-code-easy | 260,397,962 | false | null | package com.vishnu.junitexample.coroutines
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.launch
import kotl... | 1 | null | 1 | 2 | e628c7db26b4358bde17d531315e73b44f6a89d2 | 886 | unit-test-in-kotlin-using-mockk-library | Apache License 2.0 |
data/database/src/main/java/com/kafka/data/entities/HomepageLayout.kt | vipulyaara | 612,950,214 | false | {"JavaScript": 648163, "Kotlin": 612857, "HTML": 20087, "CSS": 11363, "Shell": 2974} | package com.kafka.data.entities
data class HomepageLayout(
val banners: List<Banner>,
val recentItems: List<Item>,
val favoriteItems: List<Item>,
val queryItems: List<String>,
) {
enum class ActionType { Detail, Collection, Subject }
sealed class ItemType
data class Banner(val id: Str... | 5 | JavaScript | 6 | 57 | 8eb58eb93c3cdc9e1c79cce733bda897f298fb81 | 384 | Kafka | Apache License 2.0 |
lib/src/main/java/com/fabernovel/statefullayout/transitions/StateTransitionListener.kt | faberNovel | 243,523,499 | false | null | package com.fabernovel.statefullayout.transitions
/**
* A [StateTransition] listener
*
*/
interface StateTransitionListener {
/**
* Transition repeat
*
* @param transition repeated transition
*/
fun onTransitionRepeat(transition: StateTransition) {
/* no-op */
}
/**
... | 9 | Kotlin | 4 | 10 | cc1217a62089a8c399e65fccf35c2ac1759f4a40 | 829 | stateful-layout | Apache License 2.0 |
src/main/kotlin/no/digdir/catalog_view_api/config/SecurityConfig.kt | entur | 862,383,428 | false | {"Kotlin": 68687, "Dockerfile": 495} | package no.digdir.catalog_view_api.config
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.http.HttpMethod
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.... | 0 | Kotlin | 0 | 0 | 9147bd50b1bb353f19ef6bce65d21a85df96fb79 | 948 | data-norge-handlekurv | Apache License 2.0 |
subProjects/sz-scaffold/src/main/kotlin/sz/scaffold/controller/ApiRoute.kt | LoveInShenZhen | 100,767,998 | false | null | package sz.scaffold.controller
import com.fasterxml.jackson.databind.JsonNode
import io.vertx.core.http.HttpMethod
import io.vertx.core.json.JsonObject
import io.vertx.ext.web.Router
import io.vertx.ext.web.RoutingContext
import jodd.exception.ExceptionUtil
import jodd.util.ClassUtil
import kotlinx.coroutines.async
im... | 1 | null | 3 | 56 | 414e4540d52b8b112e5ab895fe3c4809a3e6be74 | 16,499 | sz-vertx-kotlin | Apache License 2.0 |
app/src/main/java/im/dacer/kata/view/indicator/PacmanIndicator.kt | dacer | 116,826,861 | false | null | package im.dacer.kata.view.indicator
import android.animation.ValueAnimator
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.RectF
import android.util.AttributeSet
import android.view.View
import com.daasuu.ei.Ease
import ... | 0 | Kotlin | 1 | 12 | c4baa74e5baf4715e369253550ddc2f49dcd51b9 | 6,898 | Kata | MIT License |
src/main/kotlin/org/web3j/evm/EmbeddedEthereum.kt | davidtechcloud | 425,518,969 | true | {"Kotlin": 72147, "Java": 38657, "Shell": 2638, "Solidity": 488} | /*
* Copyright 2019 Web3 Labs Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | null | 0 | 0 | da06594c9024eb58749486225d39b45c0d5f8f1a | 23,236 | web3j-evm | Apache License 2.0 |
app/src/main/java/i/herman/domain/user/UserDataStore.kt | ihermandev | 574,420,150 | false | {"Kotlin": 133424} | package i.herman.domain.user
interface UserDataStore {
fun loggedInUserId(): String
fun storeLoggedInUserId(userId: String)
} | 0 | Kotlin | 0 | 0 | 29c0dde061a15c33a9c4ede6cbd6b779ea6e40ad | 134 | FriendsComposeCourse | Apache License 2.0 |
newcall_library/src/main/java/com/cmcc/newcalllib/manage/entity/handler/resp/RespGetLocation.kt | NewCallTeam | 602,468,716 | false | null | /*
* Copyright (c) 2022 China Mobile Communications Group Co.,Ltd. All rights reserved.
*
* Licensed under the XXXX License, Version X.X (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://xxxxxxx/licenses/LICENSE-X.X
*
* Unl... | 0 | Kotlin | 4 | 8 | 8f2d00ca24335bebb34a7be078c90be07a25add2 | 783 | NewCalling | Apache License 2.0 |
src/main/kotlin/com/github/hotm/world/gen/feature/ServerTowerFeature.kt | Heart-of-the-Machine | 271,669,718 | false | null | package com.github.hotm.mod.world.gen.feature
import com.mojang.serialization.Codec
import net.minecraft.util.math.BlockPos
import net.minecraft.world.ServerWorldAccess
import net.minecraft.world.gen.feature.Feature
import net.minecraft.world.gen.feature.util.FeatureContext
class ServerTowerFeature(codec: Codec<Serve... | 7 | Kotlin | 0 | 5 | de148c50f9c8ea1d1a3bd4f4dfb035c4614d70a1 | 6,032 | heart-of-the-machine | MIT License |
src/main/java/com/github/udioshi85/tooly/PermissionUtils.kt | UdiOshi85 | 184,197,361 | false | null | package com.github.udioshi85.tooly
import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.pm.PackageManager
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
fun hasAccessNetworkStatePermission(co... | 1 | Kotlin | 1 | 6 | 23f96994a07f62a97873f25c88ea1555f8e4e0e6 | 1,603 | Tooly | Apache License 2.0 |
apollo-execution-processor/src/main/kotlin/com/apollographql/execution/processor/typedefs.kt | apollographql | 816,309,715 | false | null | package com.apollographql.execution.processor
import com.apollographql.apollo3.ast.parseAsGQLValue
import com.apollographql.execution.processor.sir.Instantiation
import com.apollographql.execution.processor.sir.SirArgumentDefinition
import com.apollographql.execution.processor.sir.SirEnumDefinition
import com.apollogr... | 3 | null | 2 | 2 | fe570736aea80c0b4cb0f81e071672357c696ec2 | 17,374 | apollo-kotlin-execution | MIT License |
app/src/main/java/com/qdot/watery/adapters/ProductAdapter.kt | JoyMajumdar2001 | 487,493,012 | false | {"Kotlin": 65616} | package com.qdot.watery.adapters
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.content.res.ResourcesCompat
import androidx.lifecycle.LifecycleOwner
import androidx.recyclerview.widget.RecyclerView
import coil.load
import com.qdot.watery.R
i... | 0 | Kotlin | 1 | 1 | 20bcc69192a474d72d4bd7272c819d531e9202ae | 3,532 | Watery | Apache License 2.0 |
app/src/main/java/com/unnamedgroup/tourapp/model/rest/NewUserREST.kt | UTN-FRBA-Mobile | 490,337,160 | false | null | package com.unnamedgroup.tourapp.model.rest
data class NewUserREST(
val name: String,
val email: String,
val dni: String,
val password: String,
val token: String,
) | 0 | Kotlin | 0 | 0 | a5fdbc8fd859c40090565d1b9739526d8e17a9bb | 185 | TourApp | MIT License |
src/main/kotlin/widget/trouble/pulsar/TroublePulsar.kt | paashzj | 463,386,523 | false | {"Kotlin": 332086, "Java": 264164} | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache license, Version 2.0
* (the "License"); you may n... | 6 | Kotlin | 7 | 7 | 1bfda18303c80e51fa12d8e9f27bdfa9c508778d | 2,297 | dev-tools-kotlin | Apache License 2.0 |
src/main/kotlin/com/andreikingsley/ggdsl/echarts/util/color/EchartsColorOption.kt | AndreiKingsley | 435,661,953 | false | null | package com.andreikingsley.ggdsl.echarts.util.color
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.PrimitiveKind
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.encoding.Decoder
... | 0 | Kotlin | 0 | 0 | ea1f8faa030b3ab2e1cec54ba9b7e88218907fd5 | 1,642 | ggdsl-echarts | MIT License |
app/src/main/java/com/segunfrancis/cardinfofinder/data/api/CardInfoService.kt | segunfrancis | 336,113,626 | false | null | package com.segunfrancis.cardinfofinder.data.api
import com.segunfrancis.cardinfofinder.domain.CardInfoEntity
import retrofit2.http.GET
import retrofit2.http.Path
interface CardInfoService {
@GET("{number}")
suspend fun getCardInfo(@Path("number") number: String): CardInfoEntity
} | 0 | Kotlin | 0 | 1 | f6ba6fdd060014f9c979a04e3269fc0a623c4c8f | 292 | Card-Info-Finder | The Unlicense |
src/main/kotlin/com/kraktun/kbotexample/commands/pingpong/StopPingCommand.kt | Kraktun | 342,866,615 | false | null | package com.kraktun.kbotexample.commands.pingpong
import com.kraktun.kbot.commands.core.BaseCommand
import com.kraktun.kbot.jobs.JobManager
import com.kraktun.kbot.objects.Status
import com.kraktun.kbot.objects.Target
import com.kraktun.kbot.utils.simpleMessage
import com.kraktun.kbotexample.PING_BOT_ALERT
import com.... | 0 | Kotlin | 0 | 0 | 8101fb20f772826c7c95a1281b0d52fb39bb0f5f | 875 | KBotExamples | Apache License 2.0 |
app/src/main/java/com/gmail/bogumilmecel2/fitnessappv2/feature_diary/domain/use_cases/new_product/CalculateNutritionValuesIn100G.kt | BogumilMecel | 499,018,800 | false | {"Kotlin": 808610} | package com.gmail.bogumilmecel2.fitnessappv2.feature_diary.domain.use_cases.new_product
import com.gmail.bogumilmecel2.fitnessappv2.common.domain.model.NutritionValues
class CalculateNutritionValuesIn100G {
operator fun invoke(
calories:Int,
carbohydrates:Double,
protein:Double,
f... | 0 | Kotlin | 0 | 0 | f1036ca805dec913c5ca444d8efab87686442f39 | 631 | FitnessAppV2 | Apache License 2.0 |
developing-android-apps-with-kotlin/app/src/main/java/com/example/notekeeper/DataManager.kt | kitsoNamane | 511,078,876 | false | {"Kotlin": 16392} | package com.example.notekeeper
object DataManager {
// These are class Properties. Their types are inferred
val courses = HashMap<String, CourseInfo>()
var notes = ArrayList<NoteInfo>()
// This will initialize the class Properties when the object is created
init {
initializeCourses()
... | 0 | Kotlin | 0 | 1 | ac1cd50a43972d68192e9f087f4673c3b0355a92 | 3,192 | GADS2022 | MIT License |
common/domain/src/main/kotlin/no/nav/mulighetsrommet/domain/Tiltakshistorikk.kt | navikt | 435,813,834 | false | {"Kotlin": 1189700, "TypeScript": 999193, "SCSS": 39261, "JavaScript": 25121, "PLpgSQL": 10327, "HTML": 1504, "Dockerfile": 683, "CSS": 437, "Shell": 95} | package no.nav.mulighetsrommet.domain
import java.time.LocalDate
import java.time.LocalDateTime
import java.time.Period
object Tiltakshistorikk {
val TiltakshistorikkTimePeriod: Period = Period.ofYears(5)
fun isRelevantTiltakshistorikk(date: LocalDateTime, today: LocalDate = LocalDate.now()): Boolean {
... | 3 | Kotlin | 1 | 6 | 692fb548efbb8790bca5ed8867ac1e214dcd403a | 483 | mulighetsrommet | MIT License |
app/src/main/java/com/example/app/database/Note.kt | evanskangethe | 187,822,286 | false | {"Kotlin": 14358} | package com.example.app.database
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "note_table")
data class Note(
@PrimaryKey(autoGenerate = true)
var id: Int? = null,
val title: String,
val description: String,
val priority: Int
) | 0 | Kotlin | 0 | 0 | b21209c624e13d131142a55f23a1ab4e40f8b724 | 284 | Android-Repository | MIT License |
src/main/kotlin/at/cpickl/gadsu/view/search.kt | christophpickl | 56,092,216 | false | null | package at.cpickl.gadsu.view
import at.cpickl.gadsu.isEscape
import at.cpickl.gadsu.view.swing.TextChangeDispatcher
import at.cpickl.gadsu.view.swing.TextChangeListener
import at.cpickl.gadsu.view.swing.enableSearchVariant
import java.awt.Component
import java.awt.event.KeyAdapter
import java.awt.event.KeyEvent
import... | 43 | Kotlin | 1 | 2 | f6a84c42e1985bc53d566730ed0552b3ae71d94b | 985 | gadsu | Apache License 2.0 |
code-confirm/src/main/java/ru/touchin/code_confirm/BaseCodeResponse.kt | TouchInstinct | 148,156,940 | false | null | package ru.touchin.code_confirm
abstract class BaseCodeResponse(
open val codeLifetime: Int,
open val codeId: String? = null
)
| 15 | Java | 6 | 21 | 3b35c16cde524bf4400ad29f34c71fde2001a2e2 | 144 | RoboSwag | Apache License 2.0 |
src/main/kotlin/feature/AppCoordinator.kt | JJSwigut | 805,493,547 | false | {"Kotlin": 73329} | package feature
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.ui.platform.ClipboardManager
import androidx.compose.ui.text.AnnotatedString
import data.models.Klip
import... | 0 | Kotlin | 0 | 1 | 7c427cdb86bdeace9f1a51c4e4dc21922efb05d0 | 4,562 | KlippaKlip | MIT License |
core/navigation/src/commonMain/kotlin/com/cdcoding/core/navigation/core/TabDestination.kt | Christophe-DC | 822,562,468 | false | {"Kotlin": 728291, "Ruby": 4739, "Swift": 617} | package com.cdcoding.core.navigation.core
import com.cdcoding.core.navigation.tab.registry.TabProvider
typealias TabDestination = TabProvider
| 0 | Kotlin | 0 | 0 | bc7c3eb161ee18db83402ded314e2e0b72196974 | 144 | secureWallet | Apache License 2.0 |
frontend/kobweb-silk-widgets/src/jsMain/kotlin/com/varabyte/kobweb/silk/components/forms/Input.kt | varabyte | 389,223,226 | false | null | package com.varabyte.kobweb.silk.components.forms
import androidx.compose.runtime.*
import com.varabyte.kobweb.compose.css.*
import com.varabyte.kobweb.compose.css.AlignItems
import com.varabyte.kobweb.compose.dom.ElementRefScope
import com.varabyte.kobweb.compose.dom.registerRefScope
import com.varabyte.kobweb.compos... | 105 | Kotlin | 38 | 869 | 44a751bf3163fa26b8cdf9c49f3f6aeb22daf062 | 28,709 | kobweb | Apache License 2.0 |
plugins/kotlin/testData/src/kt/pkg/TestConstructors.kt | Vineflower | 346,465,436 | false | null | package pkg
class TestConstructors private constructor() {
constructor(a: Int) : this() {
println("a = $a")
}
constructor(a: Int, b: Int) : this(a) {
println("b = $b")
}
} | 85 | null | 82 | 996 | f43de9b36155fc40aa768a8ff5a66fb20b54d4c4 | 189 | vineflower | Apache License 2.0 |
app/src/main/java/com/ambient/simpleui/screens/home/ui/HomeViewModel.kt | sidhu18 | 314,758,228 | false | null | package com.ambient.simpleui.screens.home.ui
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.ambient.simpleui.screens.home.data.entity.PlacesEntity
import com.ambie... | 0 | Kotlin | 0 | 0 | bb9c43259a39698d4cb62eeaafc0b1b24243785a | 1,006 | SimpleUI | Apache License 2.0 |
src/lib/kotlin/slatekit-cli/src/main/kotlin/slatekit/cli/CliRequest.kt | slatekit | 55,942,000 | false | null | package slatekit.cli
import java.io.InputStream
import slatekit.common.DateTime
import slatekit.common.values.Inputs
import slatekit.common.values.Metadata
import slatekit.common.io.Uris
import slatekit.common.args.Args
import slatekit.common.types.ContentFile
import slatekit.requests.InputArgs
import slatekit.request... | 6 | Kotlin | 12 | 107 | f8ae048bc7d19704a2558e1d02374e98782e7b47 | 4,397 | slatekit | Apache License 2.0 |
gradle-plugin/src/main/kotlin/io/github/mirkofelice/plugin/TestkitTest.kt | mirko-felice | 634,173,598 | false | null | /*
* Copyright (c) 2023, <NAME>. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for details.
*/
package io.github.mirkofelice.plugin
import org.gradle.api.provider.Property
import java.io.Serializable
import javax.inject.Inject
/**
* Represents a test configuration, m... | 1 | Kotlin | 0 | 0 | 87ed21f16e0f48825ea7f880a475b9a43322a3b7 | 2,687 | gradle-plugin-testkit | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/components/PuppyList.kt | fgoncalves | 342,597,393 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 610969ec8c76abad45463bfca51150d23a090e1f | 1,958 | sepia | Apache License 2.0 |
app/src/main/java/kz/sozdik/translation/presentation/TranslateView.kt | sozdik-kz | 290,830,901 | false | null | package kz.sozdik.translation.presentation
import kz.sozdik.base.BaseMvpView
interface TranslateView : BaseMvpView {
fun onSuccess(text: String)
fun showKazakhLetters(isVisible: Boolean)
fun showTranslationCourse(lang: String)
fun vibrate(milliseconds: Long)
fun onKeyboardOpened()
fun on... | 5 | Kotlin | 6 | 40 | eb81f07b548199169d587832850c401c0a6f1120 | 338 | sozdik-android | MIT License |
src/main/java/com/nativedevps/support/utility/calculation/Common.kt | merlinJeyakumar | 455,031,085 | false | null | package com.nativedevps.support.utility.calculation
import java.util.*
fun getRandomNumber(maxNumber: Int, isFromZero: Boolean): Int {
return if (isFromZero) {
Random().nextInt(maxNumber)
} else {
Random().nextInt(maxNumber) + 1
}
} | 0 | null | 0 | 2 | a37812f3f0556cf0e5512822643d4acf974a3474 | 262 | jeyksupport | MIT License |
lov/src/androidTest/kotlin/net/niiranen/lov/UiAutomatorUtils.kt | ninaniiranen | 53,960,626 | false | null | /*
* Copyright 2016 Mattias Niiranen
*
* 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 agree... | 1 | Kotlin | 0 | 0 | 54506ab703921fc4c56f2d940e806b44d33555e4 | 900 | lov | Apache License 2.0 |
android/src/main/kotlin/com/alexv525/mlkit_scan_plugin/ScanView.kt | fluttercandies | 473,654,763 | false | null | package com.alexv525.mlkit_scan_plugin
import android.content.pm.ApplicationInfo
import android.graphics.Color
import android.graphics.Rect
import android.graphics.SurfaceTexture
import android.util.Size
import android.view.Gravity
import android.view.TextureView
import android.view.View
import android.widget.FrameLay... | 0 | null | 1 | 16 | 3665c0eaf7fc2cfe7a68ab9f7a7e5415c225fd2a | 3,489 | flutter_mlkit_scan_plugin | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.