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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/ru/aleshin/mixplayer/navigation/GlobalNavigationManager.kt | v1tzor | 667,131,593 | false | null | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | 0 | Kotlin | 0 | 1 | 7c820466e348a8bc3259b629d9f8caf527c6f063 | 1,405 | MixPlayer | Apache License 2.0 |
app/src/main/java/cos/mos/utils/ukotlin/okhttp/KtBean.kt | zjl1990518zjl | 194,662,695 | false | null | package cos.mos.utils.ukotlin.okhttp
/**
* @Description:
* @Author: Kosmos
* @Date: 2019.05.06 20:35
* @Email: <EMAIL>
*/
data class KtBean(val from: String, val to: String, val rate: Float) | 1 | null | 1 | 1 | 14a78b99cf3e481154a1e2970331237a26d56298 | 196 | KosmosToolkit | Apache License 2.0 |
app/src/main/java/ru/maxim/barybians/ui/fragment/dialogsList/DialogsListPresenter.kt | alexeipolovin | 332,866,332 | true | {"Kotlin": 190260} | package ru.maxim.barybians.ui.fragment.dialogsList
import com.arellomobile.mvp.InjectViewState
import com.arellomobile.mvp.MvpPresenter
import com.google.gson.Gson
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.launch
import ru.maxim.barybians.model.Dialog
import... | 0 | null | 0 | 0 | 9323601adec6c5675c16e771cc8f5f92639d8364 | 1,582 | Barybians-Android-App | MIT License |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/TextParagraphDirection.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.TextParagraphDirection: ImageVector
get() {
if (_textParagrap... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 2,719 | compose-fluent-ui | Apache License 2.0 |
src/main/kotlin/com/theapache64/stackzy/ui/theme/Theme.kt | theapache64 | 336,369,141 | false | {"Kotlin": 270405} | package net.volachat.ui.value
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.material.darkColors
import androidx.compose.material.lightColors
import an... | 24 | Kotlin | 54 | 962 | 4c7919f1c8f4b72e0dda3d41ffe6d3eda18e6896 | 1,008 | stackzy | Apache License 2.0 |
app/src/main/java/com/example/Android/ui/place/PlaceAdapter.kt | chenjincjcj | 551,230,455 | false | null | package com.example.Android.ui.place
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.RecyclerView
import com.example.Android.R
import com.example.Android.logic.model.Place
... | 0 | Kotlin | 0 | 0 | fe854d903d79eeeea436c01950a96a4c1f248ee3 | 1,179 | SunnyWeather1 | Apache License 2.0 |
data/src/main/java/com/xquare/data/remote/datasource/PointRemoteDataSource.kt | team-xquare | 478,925,648 | false | null | package com.xquare.data.remote.datasource
import com.xquare.domain.entity.point.PointHistoriesEntity
interface PointRemoteDataSource {
suspend fun fetchPointSummary(): PointHistoriesEntity
suspend fun fetchGoodPointHistories(): PointHistoriesEntity
suspend fun fetchBadPointHistories(): PointHistoriesEn... | 12 | Kotlin | 2 | 23 | 8cf61e53099f99e3252ebb5d0d3403b82e6c4f56 | 326 | xquare-android | MIT License |
plot-builder-portable/src/commonMain/kotlin/jetbrains/datalore/plot/builder/theme2/values/FontFace.kt | randomnetcat | 414,676,595 | true | {"Kotlin": 5330777, "Python": 751506, "C": 2832, "CSS": 1949, "Shell": 1759, "JavaScript": 1121} | /*
* Copyright (c) 2021. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.plot.builder.defaultTheme.values
class FontFace(
val bold: Boolean = false,
val italic: Boolean = false
) {
companion object {
... | 1 | null | 1 | 0 | e7092424bb0c62183328552faec16ed062e42e7b | 500 | lets-plot | MIT License |
rt-common/src/main/kotlin/xyz/redtorch/common/storage/enumeration/GatewayTypeEnum.kt | sun0x00 | 130,566,707 | false | null | package xyz.redtorch.common.storage.enumeration
enum class GatewayTypeEnum(val value: Int) {
TradeAndQuote(0),
Trade(1),
Quote(2)
} | 0 | null | 346 | 714 | c6a036adc262829e28d8e6cd2ea4bc3b7089b863 | 144 | redtorch | MIT License |
compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/medium/BusSurroundingAreaMedium.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 | 6,719 | mds-android-compose | MIT License |
core/domain/src/main/java/com/qure/domain/usecase/bookmark/CheckFishingSpotBookmarkUseCase.kt | hegleB | 613,354,773 | false | {"Kotlin": 570270} | package com.qure.domain.usecase.bookmark
import com.qure.data.repository.fishingspot.FishingSpotLocalRepository
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class CheckFishingSpotBookmarkUseCase
@Inject
constructor(
private val fishingSpotLocalRepository: FishingSpotLocalRepository,
... | 0 | Kotlin | 0 | 1 | f15b4e12dcfad492ef6b7c8a5748928027ccd2e4 | 473 | FishingMemory | The Unlicense |
feat-onboarding/src/main/java/dev/baseio/slackclone/uionboarding/compose/CommonInputUI.kt | Anmol92verma | 451,777,565 | false | null | package dev.baseio.slackclone.uionboarding.compose
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.u... | 2 | Kotlin | 9 | 93 | 29173bb4f9ddd39de1e9facc34251986fdab81e6 | 3,845 | SlackAndroidClone | Apache License 2.0 |
app/shared/state-machine/ui/public/src/commonTest/kotlin/build/wallet/statemachine/limit/SpendingLimitUiStateMachineImplTests.kt | proto-at-block | 761,306,853 | false | {"C": 10551861, "Kotlin": 6455657, "Rust": 1874547, "Swift": 629125, "Python": 329146, "HCL": 257498, "Shell": 97542, "TypeScript": 81148, "C++": 64770, "Meson": 64252, "JavaScript": 36229, "Just": 26345, "Ruby": 9265, "Dockerfile": 5755, "Makefile": 3839, "Open Policy Agent": 1456, "Procfile": 80} | package build.wallet.statemachine.limit
import app.cash.turbine.plusAssign
import build.wallet.analytics.events.EventTrackerMock
import build.wallet.analytics.events.TrackedAction
import build.wallet.analytics.v1.Action.ACTION_APP_MOBILE_TRANSACTION_SKIP
import build.wallet.coroutines.turbine.turbines
import build.wal... | 0 | C | 6 | 74 | b7401e0b96f9378cbd96eb01914a4f888e0a9303 | 8,081 | bitkey | MIT License |
pixelbin/src/main/java/io/pixelbin/sdk_kotlin/transformation/SoftShadowGenerator.kt | pixelbin-io | 670,017,640 | false | {"Kotlin": 146325} | package io.pixelbin.sdk_kotlin.transformation
import io.pixelbin.sdk_kotlin.TransformationObj
class ShadowGen {
/**
* Method for AI Soft Shadow Generator
*
* @param Background Image file
* @param Background Color String (Default: "ffffff")
* @param Shadow Angle Number (Default: 120)
*... | 0 | Kotlin | 0 | 0 | e4a240ed8e237417725bc1ac97376262104e9aa6 | 1,169 | pixelbin-kotlin-sdk | MIT License |
feature/monster-registration/state-holder/src/commonMain/kotlin/br/alexandregpereira/hunter/monster/registration/MonsterRegistrationIntent.kt | alexandregpereira | 347,857,709 | false | {"Kotlin": 1412071, "Swift": 754, "Shell": 139} | package br.alexandregpereira.hunter.monster.registration
interface MonsterRegistrationIntent {
fun onClose()
fun onMonsterChanged(monster: MonsterState)
fun onSaved()
fun onSpellClick(spellIndex: String)
fun onTableContentClick(key: String)
fun onTableContentClose()
fun onTableConten... | 4 | Kotlin | 5 | 85 | 5256ca9553e070f11a8cde5515afb74503b1a23c | 716 | Monster-Compendium | Apache License 2.0 |
app/src/main/java/com/kc/newsapp/repository/NewsRepository.kt | kunal-ch | 531,818,440 | false | null | package com.kc.newsapp.repository
import com.kc.newsapp.api.RetrofitInstance
import com.kc.newsapp.db.ArticleDatabase
class NewsRepository (
val db : ArticleDatabase
) {
suspend fun getBreakingNews(countryCode: String, pageNumber: Int) =
RetrofitInstance.api.getBreakingNews(countryCode, pageN... | 0 | Kotlin | 0 | 0 | 5c10bf3a09f982f4d8a7cc7406b1bc64fefabcc3 | 461 | NewsApp | Apache License 2.0 |
src/test/kotlin/net/wrony/aoc2023/a13/ThirteenKtTest.kt | kopernic-pl | 727,133,267 | false | {"Kotlin": 52043} | package net.wrony.aoc2023.a13
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertNull
class ThirteenKtTest {
@Test
fun `returns null if no symmetry axis in list`() {
val input = listOf("1221","2343")
assertNull(findSymmetryAxis(input, 0))
}
@Test
f... | 0 | Kotlin | 0 | 0 | 1719de979ac3e8862264ac105eb038a51aa0ddfb | 1,651 | aoc-2023-kotlin | MIT License |
wrappers/octokit-types/src/main/kotlin/octokit/types/RequestHeaders.module_@octokit_types.kt | burrunan | 282,982,149 | false | null | @file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS",
"DEPRECATION")
package octokit.types
external interface RequestHeaders {
operator fun get(key: String): String?
operator fun set(key: String, value: String?)
var accept: S... | 25 | Kotlin | 8 | 94 | 9b6592b6ae7419babd09042fd26a9557a3297866 | 590 | gradle-cache-action | Apache License 2.0 |
widgetssdk/src/main/java/com/glia/widgets/di/GliaCoreImpl.kt | salemove | 312,288,713 | false | null | package com.glia.widgets.di
import android.app.Application
import com.glia.androidsdk.Engagement
import com.glia.androidsdk.Glia
import com.glia.androidsdk.Glia.OmnicoreEvent
import com.glia.androidsdk.GliaConfig
import com.glia.androidsdk.GliaException
import com.glia.androidsdk.Operator
import com.glia.androidsdk.Re... | 7 | null | 1 | 7 | 0a8101cc7e6d8347eafd5ee88334157e9eb6936d | 4,893 | android-sdk-widgets | MIT License |
prime-router/src/test/kotlin/Azure/WorkflowEngineTests.kt | mauricereeves | 317,685,398 | true | {"SCSS": 604001, "Kotlin": 193717, "HTML": 35403, "CSS": 28617, "Shell": 18614, "Python": 2693, "Dockerfile": 1038} | package gov.cdc.prime.router.Azure
import gov.cdc.prime.router.Element
import gov.cdc.prime.router.Report
import gov.cdc.prime.router.Schema
import gov.cdc.prime.router.TestSource
import gov.cdc.prime.router.azure.BlobAccess
import gov.cdc.prime.router.azure.DatabaseAccess
import gov.cdc.prime.router.azure.Event
impor... | 0 | SCSS | 0 | 0 | 9dc9af7e9a47fb84c6fd0fb9dfd34cdb989fa5b2 | 5,905 | prime-data-hub | Apache License 2.0 |
prime-router/src/test/kotlin/Azure/WorkflowEngineTests.kt | mauricereeves | 317,685,398 | true | {"SCSS": 604001, "Kotlin": 193717, "HTML": 35403, "CSS": 28617, "Shell": 18614, "Python": 2693, "Dockerfile": 1038} | package gov.cdc.prime.router.Azure
import gov.cdc.prime.router.Element
import gov.cdc.prime.router.Report
import gov.cdc.prime.router.Schema
import gov.cdc.prime.router.TestSource
import gov.cdc.prime.router.azure.BlobAccess
import gov.cdc.prime.router.azure.DatabaseAccess
import gov.cdc.prime.router.azure.Event
impor... | 0 | SCSS | 0 | 0 | 9dc9af7e9a47fb84c6fd0fb9dfd34cdb989fa5b2 | 5,905 | prime-data-hub | Apache License 2.0 |
ktask-core/src/main/kotlin/ktask/core/scheduler/api/tasks/operate/Pause.kt | perracodex | 810,476,641 | false | {"Kotlin": 271635, "JavaScript": 11106, "HTML": 8779, "CSS": 4693, "Dockerfile": 3125} | /*
* Copyright (c) 2024-Present Perracodex. Use of this source code is governed by an MIT license.
*/
package ktask.core.scheduler.api.tasks.operate
import io.ktor.http.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import io.ktor.server.util.*
import ktask.core.scheduler.api.SchedulerRouteAPI
i... | 0 | Kotlin | 0 | 1 | b6c307c43ec116eab6ba51592f7f8a5345c44d1e | 979 | ktask | MIT License |
data/src/main/kotlin/data/stoyicker/versioncheck/VersionCheckImpl.kt | anirudh8860 | 144,851,679 | false | null | package data.stoyicker.versioncheck
import domain.versioncheck.DomainVersionCheckResponse
import domain.versioncheck.VersionCheck
import io.reactivex.Single
import reporter.CrashReporter
internal class VersionCheckImpl(
private val versionCheckFacade: VersionCheckFacade,
private val crashReporter: CrashReport... | 0 | null | 0 | 1 | ba8ead38f5bcefc857a6dc9cc344cd030ca5b22d | 487 | dinger | MIT License |
app/src/main/java/site/duqian/test/ProgressView.kt | duqian291902259 | 185,343,068 | false | {"Gradle": 14, "Java Properties": 2, "Shell": 3, "Text": 3, "Ignore List": 7, "Batchfile": 2, "Markdown": 5, "Proguard": 4, "Kotlin": 12, "XML": 52, "Java": 14, "JavaScript": 1, "Python": 1, "C": 12, "C++": 2, "CMake": 2, "YAML": 1, "Dart": 3, "OpenStep Property List": 4, "Objective-C": 5, "JSON": 2, "Ruby": 3, "Groovy... | package site.duqian.test
import android.content.Context
import android.graphics.*
import android.text.TextPaint
import android.text.TextUtils
import android.util.AttributeSet
import android.util.Log
import android.view.View
/**
* Des:圆角矩形进度条
*
*
* Created by 杜小菜 on 2021/1/5-16:14
* E-mail:duqian2010@gmail.com
*... | 2 | C | 21 | 168 | ff99f69ac3973ce9d8e9d18e3fcd0903dfc82612 | 7,888 | DQ-Android-Labs | Apache License 2.0 |
mui-icons-kotlin/src/jsMain/kotlin/mui/icons/material/AssistWalkerOutlined.kt | karakum-team | 387,062,541 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/AssistWalkerOutlined")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val AssistWalkerOutlined: SvgIconComponent
| 0 | Kotlin | 3 | 31 | d1ea32754f43e696f6b3e946692c2e81f25ad6ae | 222 | mui-kotlin | Apache License 2.0 |
src/main/kotlin/com/cognifide/gradle/aem/common/pkg/vault/FilterFile.kt | wttech | 90,353,060 | false | null | package com.cognifide.gradle.aem.common.pkg.vault
import com.cognifide.gradle.aem.AemExtension
import com.cognifide.gradle.aem.common.file.FileOperations
import com.cognifide.gradle.aem.common.instance.service.pkg.Package
import com.cognifide.gradle.aem.common.pkg.PackageException
import com.cognifide.gradle.aem.commo... | 69 | null | 34 | 158 | 18d6cab33481f8f883c6139267fb059f7f6047ae | 4,179 | gradle-aem-plugin | Apache License 2.0 |
app/src/main/java/com/ateca/ui/screens/note_list/view/components/NewNoteFAB.kt | atecaorg | 483,473,306 | false | null | package com.ateca.ui.screens.note_list.view.components
import androidx.compose.foundation.layout.size
import androidx.compose.material.FloatingActionButton
import androidx.compose.material.FloatingActionButtonDefaults
import androidx.compose.material.MaterialTheme
import androidx.compose.material.icons.Icons
import an... | 1 | Kotlin | 0 | 3 | aca913f87263d6eac4a8925c74e6e801729ba6bf | 1,169 | Ateca | Apache License 2.0 |
feature/trip-planner/network/real/src/main/kotlin/xyz/ksharma/krail/trip/planner/network/real/di/TripPlanningModule.kt | ksharma-xyz | 835,205,773 | false | {"Kotlin": 266886} | package xyz.ksharma.krail.trip.planner.network.real.di
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import xyz.ksharma.krail.trip.planner.network.api.repository.TripPlanningRepository
import xyz.ksharma.krail.trip.planner.network.real.repository... | 2 | Kotlin | 0 | 1 | a112928067e565439435ddaf9dc340bce83a28d3 | 592 | Krail | Apache License 2.0 |
src/test-utils/kotlin/reference/ReferenceCompilerAPI.kt | williamprofit | 263,354,366 | true | {"Kotlin": 192705, "ANTLR": 4437, "Java": 303, "Makefile": 202, "Shell": 72} | @file:Suppress("EXPERIMENTAL_API_USAGE")
package reference
import arrow.core.getOrElse
import arrow.core.toOption
import com.github.kittinunf.fuel.Fuel
import com.github.kittinunf.fuel.core.FileDataPart
import com.github.kittinunf.fuel.core.InlineDataPart
import com.github.kittinunf.fuel.gson.responseObject
import co... | 0 | Kotlin | 0 | 3 | f39f4f0c6568c4b297c31465e90eb90f27b092fb | 5,332 | WACC | Apache License 2.0 |
src/app/src/main/kotlin/org/vaccineimpact/api/app/errors/MontaguError.kt | vimc | 85,062,678 | false | null | package org.vaccineimpact.api.app.errors
import org.vaccineimpact.api.models.ErrorInfo
import org.vaccineimpact.api.models.Result
import org.vaccineimpact.api.models.ResultStatus
abstract class MontaguError(
open val httpStatus: Int,
val problems: Iterable<ErrorInfo>
) : Exception(formatProblemsIntoMe... | 1 | Kotlin | 1 | 2 | 0b3acb5f22b71300d6c260c5ecb252b0bddbe6ea | 677 | montagu-api | MIT License |
app/src/main/java/com/example/inventory/shapedrawable/DrawBoxView.kt | Mell1Tech2 | 437,184,661 | false | null | package com.example.inventory.shapedrawable
import android.content.Context
import android.graphics.*
import android.graphics.drawable.ShapeDrawable
import android.graphics.drawable.shapes.OvalShape
import android.util.AttributeSet
import android.util.Log
import android.view.View
import com.example.inventory.R
class D... | 0 | Kotlin | 0 | 0 | a8925e91315afc8de33128fd72a725bb719bbcf4 | 1,295 | parris-and-jeanne-inventory-app-main | Apache License 2.0 |
boxicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/boxicons/boxicons/regular/BxEnvelopeOpen.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.boxicons.boxicons.regular
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graph... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,541 | compose-icon-collections | MIT License |
client/slack-spring-api-client/src/main/kotlin/io/hndrs/slack/api/spring/group/stars/SpringStarsMethodGroup.kt | hndrs | 168,710,332 | false | null | package io.hndrs.slack.api.spring.group.stars
import io.hndrs.slack.api.group.stars.StarsAddMethod
import io.hndrs.slack.api.group.stars.StarsListMethod
import io.hndrs.slack.api.group.stars.StarsMethodGroup
import io.hndrs.slack.api.group.stars.StarsRemoveMethod
/**
* Convenience function to apply slack api stars m... | 57 | Kotlin | 13 | 16 | 89c5a6ddd0cbac522dd9cd4324901bf2907369a8 | 926 | slack-spring-boot-starter | MIT License |
app/src/main/java/com/example/hbhims/view/activity/bloodoxygen/BloodOxygenViewModel.kt | 1962247851 | 264,593,040 | false | null | package com.example.hbhims.view.activity.bloodoxygen
import android.app.Application
import androidx.lifecycle.MutableLiveData
import com.example.hbhims.model.common.util.http.RequestCallBack
import com.example.hbhims.model.entity.HealthBloodOxygen
import com.example.hbhims.view.custom.MyHealthAndroidViewModel
import c... | 0 | Kotlin | 1 | 1 | 840545aeac2d70bd1311b5b229ba4c37e32267e1 | 1,252 | hbhims_android | MIT License |
parser/src/main/kotlin/com/undabot/izzy/annotations/Relationship.kt | undabot | 206,253,515 | false | null | package com.undabot.izzy.annotations
@Target(AnnotationTarget.FIELD)
annotation class Relationship(val name: String)
| 1 | Kotlin | 2 | 8 | d059fc7f70a0121a9a654e5369ac9705afafc185 | 118 | izzy-json-api-android | Apache License 2.0 |
src/main/kotlin/org/uniform/demo/model/Event.kt | StrjeP | 645,762,295 | false | null | package org.uniform.demo.model
sealed class Event<out T> {
companion object {
fun <T> data(value: T): Event<T> = DataEvent(value)
fun <T> boundary(value: Boundary): Event<Nothing> = BoundaryEvent(value)
}
data class DataEvent<out T> internal constructor(val value: T) : Event<T>() {
}
... | 0 | Kotlin | 0 | 0 | ff927f02c305ec1ae8bf52d8e4bb0e14ecda008d | 887 | UniformAccess | MIT License |
library_util/src/main/java/com/knight/kotlin/library_util/image/RoundedCornersTransformation.kt | KnightAndroid | 438,567,015 | false | {"Kotlin": 1817006, "Java": 294277, "HTML": 46741, "C": 31605, "C++": 14920, "CMake": 5510} | package com.knight.kotlin.library_util.image
import android.graphics.Bitmap
import android.graphics.BitmapShader
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.PorterDuff
import android.graphics.PorterDuffXfermode
import android.graphics.RectF
import android.graphics.Shader
import... | 0 | Kotlin | 3 | 6 | d423c9cf863afe8e290c183b250950bf155d1f84 | 1,645 | wanandroidByKotlin | Apache License 2.0 |
apps/etterlatte-samordning-vedtak/src/main/kotlin/no/nav/etterlatte/Application.kt | navikt | 417,041,535 | false | {"Kotlin": 4184693, "TypeScript": 887413, "Handlebars": 19431, "Shell": 9939, "HTML": 1776, "CSS": 598, "Dockerfile": 520} | package no.nav.etterlatte
import io.ktor.server.cio.CIO
import io.ktor.server.config.HoconApplicationConfig
import io.ktor.server.engine.applicationEngineEnvironment
import io.ktor.server.engine.connector
import io.ktor.server.engine.embeddedServer
import no.nav.etterlatte.libs.common.Miljoevariabler
import no.nav.ett... | 14 | Kotlin | 0 | 5 | 0a7aa46b915a83afa89e882bbcc7dc90e4e1a1b3 | 2,223 | pensjon-etterlatte-saksbehandling | MIT License |
examples/context/swing-delay-example2.kt | LenditKr | 218,196,453 | true | null | package context
import future.*
import run.runBlocking
import util.*
fun main(args: Array<String>) = runBlocking(CommonPool) {
val future = future(Swing) {
log("Let's Swing.delay for 1 second")
Swing.delay(10000)
log("We're still in Swing EDT")
}
// coroutine 안이기 때문에 await 이 가능하다.... | 0 | null | 0 | 2 | 7829d060e93702f58995675065e9361f58a46075 | 342 | coroutines-examples | Apache License 2.0 |
core-db/src/main/java/io/novafoundation/nova/core_db/migrations/8_9_BetterChainDiffing.kt | novasamatech | 415,834,480 | false | null | package io.novafoundation.nova.core_db.migrations
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
val BetterChainDiffing_8_9 = object : Migration(8, 9) {
override fun migrate(database: SupportSQLiteDatabase) {
migrateAssets(database)
migrateRuntimeVersion... | 13 | null | 5 | 9 | 66a5c0949aee03a5ebe870a1b0d5fa3ae929516f | 3,063 | nova-wallet-android | Apache License 2.0 |
app/src/main/java/app/newproj/lbrytv/util/BuildStreamingUrl.kt | bgshacklett | 448,629,512 | false | {"Kotlin": 220861, "Java": 4984} | package app.newproj.lbrytv.util
import app.newproj.lbrytv.data.entity.Claim
fun Claim.streamingUrl(): String {
return "https://cdn.lbryplayer.xyz/content/claims/$name/$id/stream"
}
| 0 | null | 3 | 0 | 2f01cb775b821e3541e48db09cafafc4d8e5feea | 187 | lbry-androidtv | MIT License |
rpc/src/main/kotlin/org/kethereum/rpc/model/Error.kt | komputing | 92,780,266 | false | null | package org.kethereum.rpc.model
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
internal data class Error(
val message: String,
val code: Int
) | 39 | Kotlin | 80 | 319 | 2f8c1dad6bea1eac0484e416e45cf45ce8d9d782 | 184 | KEthereum | MIT License |
ocpp-2-0-api-adapter/src/main/kotlin/com/izivia/ocpp/adapter20/mapper/SetDisplayMessageMapper.kt | IZIVIA | 501,708,979 | false | {"Kotlin": 1934096} | package com.izivia.ocpp.adapter20.mapper
import com.izivia.ocpp.core20.model.setdisplaymessage.SetDisplayMessageResp
import com.izivia.ocpp.api.model.setdisplaymessage.SetDisplayMessageResp as SetDisplayMessageRespGen
import com.izivia.ocpp.core20.model.setdisplaymessage.SetDisplayMessageReq
import org.mapstruct.Mapp... | 6 | Kotlin | 10 | 32 | bd8e7334ae05ea75d02d96a508269acbe076bcd8 | 739 | ocpp-toolkit | MIT License |
app/src/main/java/com/fingerprintjs/android/fpjs_pro_demo/ui/theme/TypeExtended.kt | fingerprintjs | 758,447,980 | false | {"Kotlin": 155235, "C++": 313, "C": 251, "CMake": 156} | package com.fingerprintjs.android.fpjs_pro_demo.ui.theme
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.FontWeight
import androidx.compose.ui.unit.sp
import com.fingerprintjs.android.fpjs_pro_demo.... | 0 | Kotlin | 2 | 3 | 14137e4d535a57444b012455a2a1b3f932c3243c | 638 | fingerprint-device-intelligence-android-demo | MIT License |
app/src/main/java/com/armageddon/android/flickrdroid/ui/fragments/detail/PersonPhotoFolderFragment.kt | Teacher55555 | 335,972,438 | false | {"Kotlin": 578706, "Java": 31060} | package com.armageddon.android.flickrdroid.ui.fragments.detail
import android.content.ActivityNotFoundException
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import a... | 0 | Kotlin | 1 | 2 | 57265edc8ce44b9c3673bd6600f147bea27516a2 | 10,128 | Flickr_Droid | Apache License 2.0 |
tmp/arrays/youTrackTests/10295.kt | DaniilStepanov | 228,623,440 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | // Original bug: KT-7394
class MapMemberWriter {
public inline final fun map(f: MapMemberWriter.() -> Unit) {
f()
}
}
class TestClass {
fun foo() {
MapMemberWriter().map {
describeDirectory()
}
}
private fun MapMemberWriter.describeDirectory(fieldName: String = "children") {
System.o... | 1 | null | 1 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 358 | bbfgradle | Apache License 2.0 |
app/src/main/java/com/hlxh/interactivevideotool/myWidget/AutoChangeViewPager.kt | WTXCKAi | 335,287,545 | false | null | package com.hlxh.interactivevideotool.myWidget
import android.annotation.SuppressLint
import android.content.Context
import android.util.AttributeSet
import android.util.Log
import android.view.MotionEvent
import android.view.View
import androidx.viewpager.widget.ViewPager
/**
* A custom ViewPager which can change i... | 1 | null | 1 | 1 | c5dd4ef12b9d343e221c560bc3e6657a2ad493d9 | 2,321 | InteractiveVideoTool | Apache License 2.0 |
engine-core/src/main/kotlin/gabek/engine/core/audio/SoundPlayer.kt | gabe00122 | 77,073,648 | false | null | package gabek.engine.core.audio
/**
* @author <NAME>
* @date 5/31/2017
*/
class SoundPlayer(){
var volume: Float = 1f
fun play(sound: SoundRef, volume: Float){
sound.play(this.volume * volume)
}
} | 0 | Kotlin | 0 | 0 | 6b76a69cca2baa43b743c7a30822cf4f532a67c6 | 224 | GameEngine | MIT License |
idea/testData/intentions/conventionNameCalls/replaceCallWithBinaryOperator/extensionFunction.kt | erokhins | 14,658,474 | true | {"Java": 14526655, "Kotlin": 6831811, "JavaScript": 897073, "Groovy": 43935, "CSS": 14421, "Shell": 9248} | fun test() {
class Test()
fun Test.div(a: Int): Test = Test()
val test = Test()
test.div<caret>(1)
}
| 0 | Java | 0 | 1 | ff00bde607d605c4eba2d98fbc9e99af932accb6 | 117 | kotlin | Apache License 2.0 |
plumber-android/src/main/java/leakcanary/internal/friendly/Friendly.kt | square | 34,824,499 | false | null | @file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER", "NOTHING_TO_INLINE")
@file:JvmName("plumber-android_Friendly")
package leakcanary.internal.friendly
internal inline fun checkMainThread() = leakcanary.internal.checkMainThread()
internal inline fun <reified T : Any> noOpDelegate(): T = leakcanary.internal.noO... | 88 | Kotlin | 3838 | 27,036 | 5e69400174e40ce2efac2e493f414783723a8067 | 331 | leakcanary | Apache License 2.0 |
src/test/kotlin/com/timepath/plaf/x/filechooser/test/FileChooserTest.kt | TimePath | 17,997,806 | false | null | package com.timepath.plaf.x.filechooser.test
import com.timepath.plaf.win.JnaFileChooser
import com.timepath.plaf.x.filechooser.*
import com.timepath.plaf.x.filechooser.BaseFileChooser.ExtensionFilter
import com.timepath.plaf.x.filechooser.BaseFileChooser.FileMode
import java.awt.Dimension
import java.awt.EventQueue
i... | 1 | null | 1 | 1 | c9163e138e01f8ac4a5c7612cf48b600e4116004 | 10,629 | java-xplaf | Artistic License 2.0 |
app/src/main/java/com/crave/bbq/calc/BarbecueCalc.kt | robertoduessmann | 111,224,923 | false | null | package com.crave.bbq.calc
/**
* Created by roberto on 18/11/17.
*/
class BarbecueCalc(
private val menQuantity: Double,
private val womenQuantity: Double,
private val childrenQuantity: Double
) {
val meatQuantity: Double
get() = (this.menQuantity * 500 + this.womenQuantity * 30... | 2 | null | 5 | 4 | 542919b8752ddb9ed049aaf847b844a0356a4eb1 | 485 | churrascometro | MIT License |
app/src/main/java/com/transcodium/wirepurse/view_models/HomeViewModel.kt | iagyei | 165,226,708 | false | null | /**
# Copyright 2018 - Transcodium Ltd.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License v2.0 which accompanies this distribution.
#
# The Apache License v2.0 is available at
# http://www.opensource.org/licenses/apache2.0.php
#
# You are... | 1 | null | 1 | 1 | a4074defab03573dce30226cbb309eb1d7ea70c1 | 1,479 | WirePurse-Android | Apache License 2.0 |
src/main/kotlin/com/sun/prism/es2/utils.kt | jvm-graphics-labs | 160,594,095 | false | null | package com.sun.prism.es2
import com.sun.*
import com.sun.prism.es2.GLPixelFormat.Attributes.*
import glm_.*
import kool.Buffer
import kool.Ptr
import kool.adr
import org.lwjgl.opengl.WGL.wglDeleteContext
import org.lwjgl.opengl.WGL.wglMakeCurrent
import org.lwjgl.system.MemoryStack
import org.lwjgl.system.MemoryUtil.... | 0 | Kotlin | 0 | 0 | 31eae8e12b5f5fa2f6380323daa7e3f5fc943482 | 3,848 | HelloFX | MIT License |
chatmessageview/src/main/kotlin/com/github/bassaer/chatmessageview/model/Message.kt | sebastienvancon | 134,689,379 | true | {"Shell": 4, "Gradle": 4, "Java Properties": 3, "Text": 1, "Ignore List": 3, "Batchfile": 2, "Markdown": 1, "INI": 1, "Proguard": 2, "Kotlin": 35, "XML": 58, "Java": 8, "YAML": 1} | package com.github.bassaer.chatmessageview.model
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import com.github.bassaer.chatmessageview.util.*
import java.util.*
/**
* Message object
* Created by nakayama on 2016/08/08.
*/
class Message {
/**
* Sender information
*/
l... | 0 | Kotlin | 0 | 0 | 5cd8cc68850972d533bf991043b44b5c6451d1c7 | 10,872 | ChatMessageView | MIT License |
plugins/kotlin/idea/tests/testData/inspectionsLocal/whenWithOnlyElse/complexExpression.kt | ingokegel | 72,937,917 | true | null | // WITH_STDLIB
fun println(s: String) {}
fun foo() {
val a = <caret>when ("") {
else -> {
println("")
1
}
}
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 159 | intellij-community | Apache License 2.0 |
ElysiumApp/app/src/main/java/ru/hse/elysiumapp/ui/fragments/CommentsFragment.kt | ElysiumHSE | 606,520,156 | false | null | package ru.hse.elysiumapp.ui.fragments
import android.os.Bundle
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import dagger.hilt.android.AndroidEntryPoint
import ru.hse.elysiumapp.R
import ru.hse.elysiumapp.adap... | 2 | null | 1 | 13 | 65b01edeb6f2880686b72c01c9d1bf6b284fe5bc | 1,505 | Elysium | MIT License |
paymentsheet/src/main/java/com/stripe/android/lpmfoundations/paymentmethod/definitions/ZipDefinition.kt | stripe | 6,926,049 | false | null | package com.stripe.android.lpmfoundations.paymentmethod.definitions
import com.stripe.android.lpmfoundations.luxe.SupportedPaymentMethod
import com.stripe.android.lpmfoundations.paymentmethod.AddPaymentMethodRequirement
import com.stripe.android.lpmfoundations.paymentmethod.PaymentMethodDefinition
import com.stripe.an... | 88 | null | 644 | 1,277 | 174b27b5a70f75a7bc66fdcce3142f1e51d809c8 | 1,591 | stripe-android | MIT License |
vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/servicediscovery/types/JDBCDataSource.kt | jo5ef | 138,613,796 | true | {"Maven POM": 7, "Ignore List": 1, "EditorConfig": 1, "Text": 1, "Markdown": 1, "JAR Manifest": 2, "Java": 198, "AsciiDoc": 66, "XML": 10, "Java Properties": 1, "Groovy": 14, "Ruby": 26, "Kotlin": 276, "JavaScript": 40, "FreeMarker": 1, "JSON": 1} | package io.vertx.kotlin.servicediscovery.types
import io.vertx.core.json.JsonObject
import io.vertx.ext.jdbc.JDBCClient
import io.vertx.kotlin.coroutines.awaitResult
import io.vertx.servicediscovery.Record
import io.vertx.servicediscovery.ServiceDiscovery
import io.vertx.servicediscovery.types.JDBCDataSource as JDBCDa... | 0 | Java | 0 | 0 | 15be5c0e93e68aa64e4daffe97d60580c081d1cc | 1,427 | vertx-stack-generation | Apache License 2.0 |
routs/src/test/java/routs/MainSpec.kt | yongjhih | 112,265,049 | false | null | package routs
//import kotlin.test.assertEquals
//import kotlin.test.todo
import org.assertj.core.api.Assertions.assertThat
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.describe
import org.jetbrains.spek.api.dsl.it
import org.junit.platform.runner.JUnitPlatform
import org.junit.runner.RunWith
i... | 1 | null | 1 | 2 | f33afa1f7287e9abc1df84fb55ea42eb8c7910ac | 6,528 | routs | Apache License 2.0 |
app/src/main/kotlin/com/github/muneebwanee/dash/ui/widget/OnScrollListener.kt | muneebwanee | 321,685,263 | false | null | package com.github.midros.istheapp.ui.widget
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLayoutManager
import com.github.clans.fab.FloatingActionButton
import com.pawegio.kandroid.show
import com.pawegio.kandroid.hide
... | 4 | null | 37 | 81 | 1fa68abddacedc7866cc09c6908f885fc9bf0281 | 1,099 | Dash | Apache License 2.0 |
opendc-trace/opendc-trace-api/src/main/kotlin/org/opendc/trace/conv/ResourceStateColumns.kt | atlarge-research | 79,902,234 | false | null | /*
* Copyright (c) 2022 AtLarge Research
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... | 34 | null | 47 | 70 | 5a365dbc068f2a8cdfa9813c39cc84bb30e15637 | 2,630 | opendc | MIT License |
app/src/test/java/io/redgreen/benchpress/github/GitHubModelTest.kt | Aryan210 | 346,594,002 | false | {"Gradle": 3, "Java Properties": 1, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "INI": 1, "Proguard": 1, "Kotlin": 119, "XML": 22, "Java": 6} | package io.redgreen.benchpress.github
import com.google.common.truth.Truth.assertThat
import org.junit.Test
class GitHubModelTest {
@Test
fun `when the username is empty, then user cannot search`() {
val emptyUsernameModel = GitHubModel.EMPTY
.usernameChanged("")
assertThat(emptyU... | 1 | null | 1 | 1 | 51335bba348794403cca58d0aa9bcea224daeb8b | 1,781 | bench-mark | Apache License 2.0 |
BasicDemo/src/main/java/org/alee/demo/skin/basic/ability/util/layout/AttributesExt.kt | CoderAlee | 339,466,962 | false | {"Java": 233841, "Kotlin": 121810} | package org.alee.demo.skin.basic.ability.util.layout
import android.os.Build
import android.util.TypedValue
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import androidx.annotation.DrawableRes
import androidx.con... | 5 | Java | 22 | 165 | 276a846e3ffd347569f1bef8bb9f74109f145224 | 13,674 | PaintedSkin | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/inspections/unusedSymbol/property/classMemberUnused.kt | JetBrains | 2,489,216 | false | null | class Klass {
val unused = ":("
}
fun main(args: Array<String>) {
println(args)
Klass()
} | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 102 | intellij-community | Apache License 2.0 |
app/src/test/java/com/android254/droidconke19/models/WifiDetailsModelTest.kt | johnGachihi | 223,411,370 | true | {"Gradle": 3, "Java Properties": 2, "Markdown": 3, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 1, "JSON": 1, "Proguard": 1, "Kotlin": 103, "XML": 145, "HTML": 1, "Java": 1} | package com.android254.droidconke19.models
import org.hamcrest.CoreMatchers.`is`
import org.hamcrest.MatcherAssert.assertThat
import org.junit.Test
class WifiDetailsModelTest {
@Test
fun `test isPropertiesNotEmpty when one property is empty returns false`() {
val wifiDetailsModel = WifiDetailsModel("... | 0 | Kotlin | 0 | 0 | 470bc1669444c7d66a89986e27230c23093e7a14 | 886 | droidconKE2019App | MIT License |
src/main/kotlin/AST/ASTBinaryNode.kt | Ten-James | 696,690,413 | false | {"Kotlin": 50603} | package AST
import compiler.Compiler
import czechtina.GrammarToken
import czechtina.czechtina
enum class ASTBinaryTypes {
FLOW_CONTROL,
TYPE_DEFINITION,
}
open class ASTBinaryNode : ASTNode {
var type:ASTBinaryTypes? = null
var left:ASTNode? = null
var right:ASTNode? = null
constructor(ty... | 0 | Kotlin | 0 | 2 | 34b3afd0f271811d43e8b2a15e2b6ae0b563081d | 903 | czechtina | MIT License |
v1_27/src/main/java/de/loosetie/k8s/dsl/impls/ContainerStateRunning.kt | loosetie | 283,145,621 | false | {"Kotlin": 8909872} | package de.loosetie.k8s.dsl.impls
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonPropertyOrder
import de.loosetie.k8s.dsl.K8sManifest
import de.loosetie.k8s.dsl.HasParent
import de.loosetie.k8s.dsl.manifests.*
@JsonPropertyOrder("startedAt")
class ContainerStateRunning_... | 0 | Kotlin | 0 | 1 | dd616e546de56240a7a4d3edb18cb4f6529e301b | 489 | k8s-dsl | Apache License 2.0 |
src/main/kotlin/dev/retrotv/crypto/twe/des/TripleDESCBC.kt | retrotv-maven-repo | 602,880,791 | false | {"Kotlin": 164788, "Java": 100164} | package dev.retrotv.crypto.twe.des
import dev.retrotv.crypto.twe.ParameterSpecGenerator
import dev.retrotv.enums.Algorithm
import dev.retrotv.utils.generate
import javax.crypto.spec.IvParameterSpec
/**
* TripleDES/CBC 양방향 암호화 클래스 입니다.
*
* @author yjj8353
* @since 1.0.0
*/
class TripleDESCBC : TripleDES(), Par... | 0 | Kotlin | 0 | 0 | 58819b0d9b987db1271408ec595a140d0487d0e9 | 532 | cryptography | MIT License |
VideoCompositionSample/src/main/java/dev/chromeos/videocompositionsample/presentation/ui/base/IBaseView.kt | chromeos | 419,334,870 | false | null | /*
* Copyright (c) 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 0 | Kotlin | 2 | 7 | 7a91156a14bd4a735a9bcaa42b8e09c1ad92e08f | 1,383 | video-composition-sample | Apache License 2.0 |
app/src/main/java/com/lianyi/paimonsnotebook/ui/screen/gacha/data/GachaRecordCardData.kt | QooLianyi | 435,314,581 | false | {"Kotlin": 1942953} | package com.lianyi.paimonsnotebook.ui.screen.gacha.data
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import com.lianyi.paimonsnotebook.common.components.charts.pie_charts.data.PieChartData
import com.lianyi.paimonsnotebook.ui.screen.ga... | 1 | Kotlin | 2 | 36 | 692b93b7e712903c795e1a2ce79859af14e2c197 | 855 | PaimonsNotebook | MIT License |
app/src/main/java/com/ubuntuyouiwe/nexus/presentation/settings/main_settings/MainSettingsScreen.kt | ubuntuyiw | 670,182,275 | false | {"Kotlin": 645882} | package com.ubuntuyouiwe.nexus.presentation.settings.main_settings
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import andro... | 0 | Kotlin | 0 | 9 | 4edd0040e8983f79eca4cce71ca3e60cc4ee31b7 | 9,116 | Nexus | Apache License 2.0 |
app/src/main/java/com/example/android/pathfinderassistant/deck/CardViewModel.kt | bqfix | 178,033,508 | false | null | package com.example.android.pathfinderassistant.deck
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.ViewModel
import com.example.android.pathfinderassistant.database.AppDatabase
class CardViewModel(database: AppDatabase, characterId: Int) : ViewModel() {
var cards : LiveData<List<Card>>? = ... | 0 | Kotlin | 0 | 0 | 5e4aa7c2195ef8d1f51935ec0401464b9b28e17e | 415 | PathfinderAssistant | MIT License |
app/src/main/java/com/example/android/pathfinderassistant/deck/CardViewModel.kt | bqfix | 178,033,508 | false | null | package com.example.android.pathfinderassistant.deck
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.ViewModel
import com.example.android.pathfinderassistant.database.AppDatabase
class CardViewModel(database: AppDatabase, characterId: Int) : ViewModel() {
var cards : LiveData<List<Card>>? = ... | 0 | Kotlin | 0 | 0 | 5e4aa7c2195ef8d1f51935ec0401464b9b28e17e | 415 | PathfinderAssistant | MIT License |
app/src/main/java/com/masterplus/trdictionary/core/presentation/components/navigation/NavigationBackItem.kt | Ramazan713 | 634,957,286 | false | {"Kotlin": 990286} | package com.masterplus.trdictionary.core.presentation.components.navigation
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material3.Icon
import androidx.compose.material3.... | 0 | Kotlin | 0 | 1 | 0aa1643c4347203f9339dfa4896bf176712472c9 | 950 | Turkce-ve-Osmanlica-Sozluk | Apache License 2.0 |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/activities/main/usecases/GetMoveOptionsDialogUseCase.kt | Waboodoo | 34,525,124 | false | null | package ch.rmy.android.http_shortcuts.activities.main.usecases
import ch.rmy.android.framework.viewmodel.viewstate.DialogState
import ch.rmy.android.http_shortcuts.R
import ch.rmy.android.http_shortcuts.activities.main.ShortcutListViewModel
import ch.rmy.android.http_shortcuts.data.domains.shortcuts.ShortcutId
import ... | 23 | Kotlin | 87 | 547 | 09eaa8438d452f95e73d57183b198c4b52d05789 | 816 | HTTP-Shortcuts | MIT License |
backend/src/test/kotlin/me/elgregos/escapecamp/game/domain/entity/TeamTest.kt | GregoryBevan | 622,671,393 | false | null | package me.elgregos.escapecamp.game.domain.entity
import assertk.assertThat
import assertk.assertions.isEqualTo
import org.junit.jupiter.api.Named.named
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.Arguments
import org.junit.jupiter.params.provider.MethodSource
import java... | 4 | Kotlin | 0 | 0 | 696596840c8bd7765cad91e7598190410c8c31cb | 2,552 | escape-camp | MIT License |
app/src/test/java/io/woong/filmpedia/util/DateUtilTest.kt | cheonjaewoong | 391,828,359 | false | null | package io.woong.filmpedia.util
import org.junit.Test
import org.junit.Assert.*
class DateUtilTest {
@Test
fun testGetAge() {
val cases = listOf(
Pair("2021-01-01", "2021-02-02"),
Pair("1997-01-02", "2021-08-24"),
Pair("1997-09-01", "2021-08-24"),
Pair("... | 0 | Kotlin | 0 | 4 | 2e2700dbff77881de55ade1de89a716b0b076f14 | 644 | filmpedia | MIT License |
app/src/main/java/com/example/allin/viewmodel/ClosetViewModel.kt | kgerk-dev | 500,533,531 | false | {"Kotlin": 160987} | package com.example.allin.viewmodel
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.viewModelScope
import com.example.allin.data.ClothingDatabase
import com.example.allin.data.relations.FavoritesClothingItemsList
import com.example.... | 0 | Kotlin | 0 | 1 | 5b63d060db7dd360db20a1b6670c8bfb87fe6be7 | 5,433 | ClosetApp | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/elasticloadbalancingv2/BaseNetworkListenerPropsDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 63959868} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.elasticloadbalancingv2
import io.cloudshiftdev.awscdkdsl.... | 3 | Kotlin | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 5,298 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/github/com/st235/facialprocessing/interactors/ClustersInteractor.kt | st235 | 756,046,103 | false | {"Kotlin": 207478} | package github.com.st235.facialprocessing.interactors
import github.com.st235.facialprocessing.data.FacesRepository
import github.com.st235.facialprocessing.interactors.models.FaceCluster
import github.com.st235.facialprocessing.interactors.utils.extractClusters
import github.com.st235.facialprocessing.utils.LocalUriL... | 0 | Kotlin | 0 | 0 | e8c1dfbf037b360aa9f77be3d8834dcc8cba7f37 | 731 | HSE.CVforMobileDevices.FacialProcessing | MIT License |
client/app/src/main/java/org/feup/cmov/acmeclient/ui/auth/signin/SignInViewModel.kt | miguelalexbt | 305,443,061 | false | null | package org.feup.cmov.acmeclient.ui.auth.signin
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.*
import kotlinx.coroutines.launch
import org.feup.cmov.acmeclient.R
import org.feup.cmov.acmeclient.data.DataRepository
import org.feup.cmov.acmeclient.data.Status
import org.feup.cmov.acmeclient.d... | 0 | Kotlin | 0 | 0 | bbd82c059b35525faf78de35c217b661ee7ad259 | 2,361 | ACME-Coffee-App | MIT License |
source/model/src/main/kotlin/de/webis/webisstud/thesis/reimer/model/reader/internal/AnseriniTopicReaderDelegate.kt | webis-de | 261,803,727 | false | null | package de.webis.webisstud.thesis.reimer.model.reader.internal
import de.webis.webisstud.thesis.reimer.model.Document
import de.webis.webisstud.thesis.reimer.model.Task
import de.webis.webisstud.thesis.reimer.model.Topic
import de.webis.webisstud.thesis.reimer.model.reader.TopicReader
import java.io.InputStream
class... | 0 | Kotlin | 3 | 2 | f6e7f8ca1f8e3d504a2304c016df578b5c28c14e | 1,273 | sigir20-sampling-bias-due-to-near-duplicates-in-learning-to-rank | MIT License |
jms/src/main/kotlin/io/qalipsis/plugins/jms/producer/JmsProducerConverter.kt | qalipsis | 428,400,884 | false | null | /*
* Copyright 2022 AERIS IT Solutions GmbH
*
* 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 ag... | 0 | Kotlin | 0 | 0 | 384b26c42a5932a6e5b9ba8f23f0a4ed84a2c257 | 2,305 | qalipsis-plugin-jms | Apache License 2.0 |
model/src/main/kotlin/org/katan/model/blueprint/BlueprintSpec.kt | KatanPanel | 182,468,654 | false | null | package org.katan.model.blueprint
public interface BlueprintSpec {
public val name: String
public val version: String
public val remote: BlueprintSpecRemote?
public val build: BlueprintSpecBuild?
public val options: List<BlueprintSpecOption>
}
public interface BlueprintSpecOption {
publi... | 5 | Kotlin | 5 | 55 | 2c4d99e277e372e78a14486748de3c3624a45cdb | 1,174 | Katan | Apache License 2.0 |
app/src/main/java/alduali/moqri/ui/screens/home/ViewModelHomeStudent.kt | BELLILMohamedNadir | 749,003,404 | false | {"Kotlin": 95563} | package alduali.moqri.ui.screens.home
import androidx.lifecycle.ViewModel
class ViewModelHomeStudent : ViewModel() {
} | 0 | Kotlin | 0 | 0 | 9feb70ddb2be6b1bcaab43df179a3fb0cc3912a0 | 122 | Al-Moqri | MIT License |
lib/src/main/kotlin/com/github/mpetuska/khakra/hooks/useDisclosure.kt | mpetuska | 336,056,073 | false | null | @file:JsModule("@chakra-ui/hooks/dist/esm/use-disclosure")
package com.github.mpetuska.khakra.hooks
public external interface UseDisclosureProps {
public var isOpen: Boolean?
get() = definedExternally
set(value) = definedExternally
public var defaultIsOpen: Boolean?
get() = definedExternally
set(v... | 0 | Kotlin | 2 | 6 | 42976e45898c3b03f0dbd540de3a5964a4fa8aea | 928 | khakra | Apache License 2.0 |
QuickUtil/src/main/java/com/wpf/app/quickutil/activity/ActivityUtils.kt | walgr | 487,438,913 | false | null | package com.wpf.app.quickutil
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Parcelable
import java.io.Serializable
import java.util.ArrayList
/**
* Created by 王朋飞 on 2022/6/15.
*/
fun <T : Activity> Context.startActivity(activityCls: Class<T>) {
star... | 0 | Kotlin | 0 | 3 | aeb05f80853cff0f788b4a86d177258b3fa7b02e | 1,836 | Quick | MIT License |
src/main/kotlin/dev/augu/nino/commands/moderation/BanCommand.kt | NinoDiscord | 275,459,123 | false | null | package dev.augu.nino.commands.moderation
import dev.augu.nino.butterfly.command.CommandContext
import dev.augu.nino.common.entities.ModerationCommand
import dev.augu.nino.common.util.formatDurationLong
import dev.augu.nino.common.util.parseDuration
import dev.augu.nino.services.cases.ICaseService
import dev.augu.nino... | 6 | Kotlin | 0 | 5 | 7a9937908197fedbbe544e374ce350b7129da1af | 3,659 | NinoKotlin | MIT License |
server/src/server/Controllers.kt | jonnyzzz | 25,689,268 | false | null | /*
* Copyright 2000-2014 Eugene Petrenko
*
* 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 | 1 | 4 | 439362155b412449d0b440d70e2678779eaab083 | 7,529 | TeamCity.Meta | Apache License 2.0 |
app/src/main/java/com/example/unit3_project/MovieFragment.kt | Rajeshtims | 770,627,123 | false | {"Kotlin": 8322} | package com.example.unit3_project
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.LinearLayoutMa... | 0 | Kotlin | 0 | 0 | 3b2aafe5c5685d82b3a4843d8b97695e63b09fab | 4,119 | CodepathAND102_Unit3Project | Apache License 2.0 |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/components/Constants.kt | Waboodoo | 34,525,124 | false | {"Kotlin": 1970466, "HTML": 200869, "CSS": 2316, "Python": 1548} | package ch.rmy.android.http_shortcuts.components
import androidx.compose.runtime.Stable
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.Shadow
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
@Stable
object Spacing {
val... | 30 | Kotlin | 105 | 999 | 34ec1652d431d581c3c275335eb4dbcf24ced9f5 | 693 | HTTP-Shortcuts | MIT License |
example/src/androidTest/java/EspressoViewActions.kt | EranBoudjnah | 154,015,466 | false | {"Kotlin": 252028, "Java": 1056} | import EspressoMatchers.isMostlyVisible
import android.content.res.Resources
import android.view.Menu
import android.view.View
import androidx.test.espresso.PerformException
import androidx.test.espresso.UiController
import androidx.test.espresso.ViewAction
import androidx.test.espresso.matcher.ViewMatchers
import andr... | 0 | Kotlin | 0 | 36 | c76069b9355da2c5fd5486363f0f5b5218460816 | 5,140 | RandomGenKt | MIT License |
randunit-android/src/main/java/com/williamfzc/randunit/operations/FragmentOperation.kt | williamfzc | 343,995,733 | false | null | /*
* Copyright 2021 williamfzc
*
* 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... | 4 | Kotlin | 9 | 36 | ada11b667f0c496eec66685cfcc65d82ab2763c0 | 1,199 | randunit | Apache License 2.0 |
common/src/main/java/dev/hitools/common/utils/saver/executor/RemoveExecutor.kt | i-show | 383,308,016 | false | null | package dev.hitools.common.utils.saver.executor
class RemoveExecutor : BaseExecutor() {
/**
* key
*/
private var key: String? = null
/**
* 参数
*/
fun key(key: String): RemoveExecutor {
this.key = key
return this
}
override fun group(group: String): RemoveExe... | 0 | Kotlin | 1 | 0 | 47df75f5bb2e1b776f4f853ae6085fd51e43a1a2 | 599 | android-Common | Apache License 2.0 |
libs/commons-database/src/main/kotlin/gov/cdc/ocio/database/models/Report.kt | CDCgov | 679,761,337 | false | {"Kotlin": 650992, "Python": 14605, "TypeScript": 7647, "Java": 4266, "JavaScript": 2382} | package gov.cdc.ocio.database.models
import gov.cdc.ocio.database.dynamo.ReportConverterProvider
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbPartitionKey
import java.time.Instant
/**
* Report for a given s... | 4 | Kotlin | 0 | 2 | c8b369ba84918cd90d29a25d581d42c4d2cc346e | 1,712 | data-exchange-processing-status | Apache License 2.0 |
kotlin-maven-api/src/main/kotlin/com/fagerland/brotime/BrotimeApplication.kt | mariufa | 216,350,412 | false | null | package com.fagerland.brotime
import com.fagerland.brotime.dto.requests.UserDTO
import com.fagerland.brotime.services.UserService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.CommandLineRunner
import org.springframework.boot.autoconfigure.SpringBootApplication
import or... | 9 | null | 1 | 1 | d69b9405352f61842dcc74e39702ca80633853bf | 843 | brotime | MIT License |
seskar/seskar-compiler-plugin/src/main/kotlin/seskar/compiler/native/extensions/NativeRegistrar.kt | turansky | 279,976,108 | false | {"Kotlin": 149365, "JavaScript": 1520, "Shell": 459, "HTML": 302} | package seskar.compiler.native.extensions
import org.jetbrains.kotlin.backend.common.extensions.IrGenerationExtension
import org.jetbrains.kotlin.config.CompilerConfiguration
import seskar.compiler.common.extensions.JsCompilerPluginRegistrar
class NativeRegistrar : JsCompilerPluginRegistrar() {
override fun Exten... | 0 | Kotlin | 7 | 53 | f1fcb335c917135393555d13e1551df6f6419227 | 490 | seskar | Apache License 2.0 |
Playground/task-essentials/buildSrc/src/main/kotlin/me/xx2bab/extendagp/buildsrc/TaskEssentialsPlugin.kt | 2BAB | 568,348,854 | false | null | package me.xx2bab.extendagp.buildsrc
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.internal.tasks.properties.InputFilePropertyType
import org.gradle.api.internal.tasks.properties.OutputFilePropertyType
import org.gradle.api.internal.tasks.properties.PropertyValue
import org.gradle.ap... | 1 | Kotlin | 1 | 53 | 23f1a7f95875534a200e53632cdc1cd1c7df1cb8 | 3,399 | Extend-Android-Builds-zh | Apache License 2.0 |
frontend/chrome-extension/options/src/main/kotlin/com/jakewharton/sdksearch/options/Options.kt | chrisbanes | 117,678,903 | false | null | package com.jakewharton.sdksearch.options
import com.chrome.platform.Chrome
import com.jakewharton.sdksearch.reference.PRODUCTION_DAC
import com.jakewharton.sdksearch.reference.PRODUCTION_GIT_WEB
import com.jakewharton.sdksearch.store.Config
import com.jakewharton.sdksearch.store.ConfigStore
import com.jakewharton.sdk... | 1 | null | 1 | 2 | 1835e3cf19eab179f9be1aac55a91618357c35a2 | 2,676 | SdkSearch | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.