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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
httpmanager/src/main/java/com/base/library/rxRetrofit/download/bean/DownloadProgress.kt | wkxjc | 246,898,873 | false | {"Java": 100590, "Kotlin": 58568} | package com.base.library.rxRetrofit.download.bean
import com.base.library.rxRetrofit.common.utils.ConvertUtils
import kotlin.math.roundToInt
/**
* Description:
* 下载进度
*
* @author Alpinist Wang
* Date: 2019-04-30
*/
class DownloadProgress(var read: Long, var total: Long) {
val progress: Int
get()... | 1 | null | 1 | 1 | ccb6e3be80ba985e3c6dff789b2093b6dbe80ee2 | 649 | WanAndroid | DOC License |
mediator/src/main/kotlin/no/nav/dagpenger/behandling/mediator/repository/PersonRepository.kt | navikt | 415,800,876 | false | {"Kotlin": 566740, "Gherkin": 88690, "HTML": 1870, "Dockerfile": 200} | package no.nav.dagpenger.behandling.mediator.repository
import no.nav.dagpenger.avklaring.Avklaring
import no.nav.dagpenger.behandling.modell.Behandling
import no.nav.dagpenger.behandling.modell.Ident
import no.nav.dagpenger.behandling.modell.Person
import java.util.UUID
interface AvklaringRepository {
fun lagreA... | 0 | Kotlin | 0 | 0 | c8d5a2e445886fef8518347094f372a01422d15b | 1,027 | dp-behandling | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/ChartMixedUpCircleCurrency.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.bold
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.graphics.StrokeJoin.Companion.Miter
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 5,927 | icons | MIT License |
emulatork_basic/src/main/java/com/mozhimen/emulatork/basic/game/GameSaveWorker.kt | mozhimen | 797,106,031 | false | {"Kotlin": 171032} | package com.mozhimen.emulatork.basic.game
import android.content.Context
import androidx.work.ListenableWorker
import androidx.work.OneTimeWorkRequestBuilder
import androidx.work.Worker
import androidx.work.WorkerParameters
import androidx.work.workDataOf
import com.mozhimen.emulatork.basic.injection.AndroidWorkerInje... | 0 | Kotlin | 0 | 0 | 3e7031c53b1c92304e98df53e0b3762ed2cb47c5 | 2,850 | AEmulatorKit | MIT License |
src/main/kotlin/icu/windea/pls/script/psi/ParadoxScriptParserUtil.kt | DragonKnightOfBreeze | 328,104,626 | false | null | @file:Suppress("UNUSED_PARAMETER")
package icu.windea.pls.script.psi
import com.intellij.lang.*
import com.intellij.lang.parser.*
import com.intellij.psi.*
import icu.windea.pls.script.psi.ParadoxScriptElementTypes.*
object ParadoxScriptParserUtil : GeneratedParserUtilBase() {
@JvmStatic
fun checkRightTempla... | 14 | null | 5 | 33 | 3c3cf1bcc0ed8238665e3657238979be8acf4886 | 3,766 | Paradox-Language-Support | MIT License |
app/src/main/java/com/ms/playstop/utils/UpdateDialog.kt | mshohrat | 554,137,640 | false | null | package com.ms.playstop.utils
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import com.google.android.material.bottomsheet.BottomSheetDialog
import com.ms.playstop.R
import kotlinx.android.synthetic.main.layout_update_dialog.*
class UpdateDialog(context: C... | 0 | Kotlin | 0 | 1 | 5afa8a4ebe2f63acb724dfea55b1b846194592d3 | 1,128 | PlayStop | MIT License |
bootstrap-icons-compose/src/main/java/com/wiryadev/bootstrapiconscompose/bootstrapicons/normal/ExclamationTriangle.kt | wiryadev | 380,639,096 | false | null | package com.wiryadev.bootstrapiconscompose.bootstrapicons.normal
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
imp... | 0 | Kotlin | 0 | 2 | 1c199d953dc96b261aab16ac230dc7f01fb14a53 | 3,649 | bootstrap-icons-compose | MIT License |
src/main/kotlin/komic/ComicException.kt | fekir | 306,968,693 | false | null | package komic
class ComicException(message: String) : Exception(message)
| 0 | Kotlin | 0 | 0 | 3eca07522eb6f2082f22119c8f0624ecc6fe1531 | 75 | komic | ISC License |
src/jvmMain/kotlin/io/rippledown/server/routes/AttributeManagement.kt | TimLavers | 513,037,911 | false | null | package io.rippledown.server.routes
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.request.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import io.rippledown.model.OperationResult
import io.rippledown.server.ServerApplication
const val MOVE_ATTRIBUTE_JUST_BELOW_OT... | 0 | Kotlin | 0 | 0 | 82183a0cd850eb924ed938d6f37f033c71281dae | 1,027 | OpenRDR | MIT License |
src/Day09.kt | OskarWalczak | 573,349,185 | false | null | class Position(var x: Int, var y: Int)
class Knot(val name: String, val parent: Knot?){
val position = Position(0,0)
fun followParent(){
if(parent == null)
return
if(parent.position.x !in this.position.x-1..this.position.x+1
|| parent.position.y !in this.position.y-1..t... | 0 | Kotlin | 0 | 0 | d34138860184b616771159984eb741dc37461705 | 2,277 | AoC2022 | Apache License 2.0 |
app/src/main/java/at/tugraz05/slimcat/CatAccordionPresenter.kt | sw21-tug | 350,772,639 | false | null | package at.tugraz05.slimcat
import android.app.Activity
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import android.util.Log
import android.view.View
import androidx.core.os.bundleOf
import androidx.databinding.BindingAdapter
import androidx.databinding.ObservableBoolean
import at.tug... | 0 | Kotlin | 8 | 0 | 680ba2b8ee2bece3627fcc439430f9e7b05ef23e | 4,254 | Team_05 | MIT License |
app/src/main/java/com/example/demotest/login/LoginActivity.kt | ahmedfadul123 | 534,165,660 | false | null | package com.example.demotest.login
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.appcompat.widget.Toolbar
import com.example.demotest.R
import com.example.demotest.databinding.ActivityLoginBinding
import com.example.demotest.register.Registration... | 0 | Kotlin | 0 | 0 | f9256c7bc24ce3765d24793220aac93fd09ff4dc | 906 | Login-Ui | Apache License 2.0 |
src/main/kotlin/year2022/day-20.kt | ppichler94 | 653,105,004 | false | null | package year2022
import lib.aoc.Day
import lib.aoc.Part
import java.math.BigInteger
import java.util.*
import kotlin.collections.ArrayDeque
fun main() {
Day(20, 2022, PartA20(), PartB20()).run()
}
open class PartA20 : Part() {
private lateinit var rawNumbers: List<Int>
private var zeroIndex = 0
ove... | 0 | Kotlin | 0 | 0 | 7443b682423a17c7b2eb69bd4b4ffc511b8b2fa2 | 1,978 | Advent-Of-Code-Kotlin | MIT License |
app/src/main/java/com/emretnkl/myshopapp/data/remote/utils/DataState.kt | emretnkl | 559,308,167 | false | null | package com.emretnkl.myshopapp.data.remote.utils
import com.emretnkl.myshopapp.data.model.ApiError
sealed class DataState<T> {
data class Success<T>(val data: T) : DataState<T>()
data class Error<T>(val error: ApiError?) : DataState<T>()
class Loading<T> : DataState<T>()
}
| 0 | Kotlin | 0 | 1 | 77ee7168cf5484f38f0665082c7dd26b38973622 | 289 | MyShopApp | Apache License 2.0 |
src/test/kotlin/no/nav/syfo/testutil/TestApiModule.kt | navikt | 290,982,864 | false | {"Kotlin": 315102, "Dockerfile": 202} | package no.nav.syfo.testutil
import io.ktor.server.application.*
import no.nav.syfo.api.apiModule
import no.nav.syfo.client.azuread.AzureAdClient
import no.nav.syfo.client.veiledertilgang.VeilederTilgangskontrollClient
import no.nav.syfo.database.PersonOppgaveRepository
import no.nav.syfo.personoppgave.PersonOppgaveSe... | 2 | Kotlin | 1 | 0 | 9755a954623d4b2b1324c7f9fe8d125db2b0d6ef | 1,967 | ispersonoppgave | MIT License |
app/src/main/kotlin/net/primal/android/profile/db/PostUserStatsDao.kt | PrimalHQ | 639,579,258 | false | null | package net.primal.android.profile.db
import androidx.room.Dao
import androidx.room.Upsert
@Dao
interface PostUserStatsDao {
@Upsert
fun upsertAll(data: List<PostUserStats>)
}
| 0 | Kotlin | 0 | 7 | fd815cd9a771c1b110e0e12ceca1012201d8e9dc | 188 | primal-android-app | MIT License |
src/main/kotlin/no/nav/syfo/arbeidsgivere/model/Arbeidsgiverinfo.kt | navikt | 238,714,111 | false | {"Kotlin": 394616, "Dockerfile": 277} | package no.nav.syfo.arbeidsgivere.model
data class Arbeidsgiverinfo(
val orgnummer: String,
val juridiskOrgnummer: String,
val navn: String,
val aktivtArbeidsforhold: Boolean,
val naermesteLeder: NarmesteLeder?,
)
data class NarmesteLeder(
val navn: String,
val orgnummer: String,
val o... | 1 | Kotlin | 0 | 1 | a3587b73250b6dc176e5b8a01d15a8153eefeb15 | 348 | sykmeldinger-backend | MIT License |
app/src/main/kotlin/com/parjapatSanjay1999/calculator/di/AppModule.kt | sparjapati | 615,033,696 | false | null | package com.parjapatSanjay1999.calculator.di
import android.app.Application
import androidx.room.Room
import com.parjapatSanjay1999.calculator.data.CalculatorRepositoryImpl
import com.parjapatSanjay1999.calculator.data.datastore.CalculatorDataStore
import com.parjapatSanjay1999.calculator.data.db.CalculationDatabase
i... | 0 | Kotlin | 0 | 0 | a5562739cbd4c461e738f1b8a7834a08742a1f4f | 1,426 | Calculator-App | The Unlicense |
src/test/kotlin/no/nav/familie/ef/sak/behandling/MigreringServiceTest.kt | navikt | 206,805,010 | false | null | package no.nav.familie.ef.sak.behandling
import io.mockk.every
import no.nav.familie.ef.sak.OppslagSpringRunnerTest
import no.nav.familie.ef.sak.behandling.domain.Behandling
import no.nav.familie.ef.sak.behandling.domain.BehandlingResultat
import no.nav.familie.ef.sak.behandling.domain.BehandlingStatus
import no.nav.f... | 5 | Kotlin | 2 | 0 | 14324c0b12163c784217c15bfeae0b48ff2f1db5 | 25,053 | familie-ef-sak | MIT License |
build-logic/src/main/kotlin/AndroidApplicationPlugin.kt | duckie-team | 557,999,746 | false | {"Kotlin": 115491} | /*
* Designed and developed by 2022 <NAME>.
*
* Licensed under the MIT.
* Please see full license: https://github.com/duckie-team/ApiLibrary/blob/trunk/LICENSE
*/
@file:Suppress(
"UnstableApiUsage",
)
import com.android.build.gradle.internal.dsl.BaseAppModuleExtension
import land.sungbin.apilibrary.conventio... | 11 | Kotlin | 0 | 4 | 157f41d6dc98b00c71ee1c2390567a38f495d94f | 1,736 | ApiLibrary | MIT License |
plugin/src/main/kotlin/com/jetbrains/packagesearch/plugin/PackageSearchModuleBaseTransformerUtils.kt | JetBrains | 724,588,585 | false | {"Kotlin": 575593, "Java": 146346, "HTML": 1589, "Batchfile": 209, "Shell": 86} | package com.jetbrains.packagesearch.plugin
import com.intellij.openapi.extensions.ExtensionPointName
import com.jetbrains.packagesearch.plugin.core.extensions.PackageSearchModuleProvider
import com.jetbrains.packagesearch.plugin.core.utils.extensionsFlow
object PackageSearchModuleBaseTransformerUtils {
val exten... | 1 | Kotlin | 0 | 9 | 269d18727cc51aa446478c3aac86a6e605f1d481 | 522 | package-search-intellij-plugin | Apache License 2.0 |
simulator/runtime/src/main/kotlin/net/corda/simulator/runtime/serialization/BaseSerializationServiceFactory.kt | corda | 346,070,752 | false | {"Kotlin": 18686067, "Java": 321931, "Smarty": 79539, "Shell": 56594, "Groovy": 28415, "TypeScript": 5826, "PowerShell": 4985, "Solidity": 2024} | package net.corda.simulator.runtime.serialization
import net.corda.simulator.factories.SerializationServiceFactory
import net.corda.v5.application.serialization.SerializationService
import net.corda.v5.serialization.SerializationCustomSerializer
class BaseSerializationServiceFactory : SerializationServiceFactory {
... | 130 | Kotlin | 15 | 42 | 6ef36ce2d679a07abf7a5d95a832e98bd4d4d763 | 495 | corda-runtime-os | Apache License 2.0 |
ocgena-server/src/main/java/ru/misterpotz/di/ServerComponent.kt | MisterPotz | 605,293,662 | false | {"Kotlin": 842551, "TypeScript": 495751, "JavaScript": 36713, "CSS": 14489, "Python": 8652, "HTML": 3173, "Ruby": 285, "EJS": 274, "Java": 140} | package ru.misterpotz.di
import dagger.Component
import dagger.Module
import dagger.Provides
import kotlinx.coroutines.*
import kotlinx.serialization.modules.SerializersModule
import ru.misterpotz.ocgena.di.DomainComponent
import javax.inject.Scope
import kotlin.coroutines.CoroutineContext
@Module
abstract class Serv... | 2 | Kotlin | 0 | 1 | b63031c8420d9def085339f32beebc21c4b4897f | 1,782 | ocgena | MIT License |
ggdsl-dataframe-lets-plot/src/main/kotlin/org/jetbrains/kotlinx/ggdsl/dataframe/letsplot/series/linePlot.kt | Kotlin | 502,039,936 | false | null | package org.jetbrains.kotlinx.ggdsl.dataframe.letsplot.series
import org.jetbrains.kotlinx.dataframe.DataFrame
import org.jetbrains.kotlinx.ggdsl.dataframe.data.DataFrameWrapper
import org.jetbrains.kotlinx.ggdsl.ir.Plot
import org.jetbrains.kotlinx.ggdsl.letsplot.position.Position
import org.jetbrains.kotlinx.ggdsl.l... | 55 | Kotlin | 2 | 29 | 647ebddd2e09173facf6be67cd4ba5a7c81f6d2a | 589 | ggdsl | Apache License 2.0 |
tooling-country/src/commonMain/kotlin/dev/datlag/tooling/country/Montenegro.kt | DatL4g | 739,165,922 | false | {"Kotlin": 535226} | package dev.datlag.tooling.country
import dev.datlag.tooling.country.serializer.CountryAsAlpha2StringSerializer
import kotlinx.serialization.Serializable
data object Montenegro : Country {
override val codeAlpha2: Country.Code.Alpha2 = Country.Code.Alpha2("ME")
override val codeAlpha3: Country.Code.Alpha3 = ... | 0 | Kotlin | 0 | 3 | 11f8ee76909f12d96e4f1889e8b6daa7ae28ddd2 | 427 | tooling | Apache License 2.0 |
app/src/main/java/com/szymongrochowiak/androidkotlinstarterpack/StarterPackApplication.kt | SzymonGrochowiak | 105,391,657 | false | null | package com.szymongrochowiak.androidkotlinstarterpack
import android.app.Application
import com.szymongrochowiak.androidkotlinstarterpack.di.*
import io.reactivex.plugins.RxJavaPlugins
import timber.log.Timber
/**
* @author <NAME>
*/
class StarterPackApplication : Application() {
companion object {
pri... | 0 | Kotlin | 0 | 0 | 5a337fb35c0d51961983f7d5de9bb6e112494231 | 1,213 | Android-Kotlin-Starter-Pack | Apache License 2.0 |
app/src/main/java/xyz/teamgravity/composerecipeapp/presentation/components/DefaultSnackbar.kt | raheemadamboev | 357,501,676 | false | null | package xyz.teamgravity.composerecipeapp.presentation.components
import androidx.compose.foundation.layout.padding
import androidx.compose.material.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp
@Composable
... | 0 | Kotlin | 0 | 0 | 25f680d1a93a58540c69e07f2ad4c01a89a45f42 | 1,236 | jetpack-compose-recipe-app | Apache License 2.0 |
core/network/rutracker/src/main/kotlin/flow/network/domain/AddFavoriteUseCase.kt | andrikeev | 503,060,387 | false | null | package flow.network.domain
import flow.network.api.RuTrackerInnerApi
internal class AddFavoriteUseCase(
private val api: RuTrackerInnerApi,
private val withTokenVerificationUseCase: WithTokenVerificationUseCase,
private val withAuthorisedCheckUseCase: WithAuthorisedCheckUseCase,
private val withFormT... | 0 | Kotlin | 2 | 8 | a850db05575d58cd7676823f6185311c595c4dd0 | 794 | Flow | MIT License |
app/src/main/java/org/hydev/wearsync/ActivitySettings.kt | hykilpikonna | 592,582,619 | false | null | package org.hydev.wearsync
import android.os.Bundle
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.preference.Preference
import androidx.preference.PreferenceFragmentCompat
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.corout... | 0 | Kotlin | 0 | 5 | d59edaf0d5d3bce57d33ed8fda47918e637f59f6 | 2,019 | WearSync | MIT License |
demo/plot/src/jvmBatikMain/kotlin/demo/plot/batik/plotConfig/SummaryBatik.kt | JetBrains | 176,771,727 | false | {"Kotlin": 7616680, "Python": 1299756, "Shell": 3453, "C": 3039, "JavaScript": 931, "Dockerfile": 94} | /*
* Copyright (c) 2023. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package demo.plot.batik.plotConfig
import demo.plot.common.model.plotConfig.Summary
import demo.common.batik.demoUtils.PlotSpecsDemoWindowBatik
fun main() {
with(Summary... | 150 | Kotlin | 51 | 1,561 | c8db300544974ddd35a82a90072772b788600ac6 | 444 | lets-plot | MIT License |
solidrecyclerview/src/main/java/com/mitteloupe/solid/recyclerview/SolidAdapter.kt | EranBoudjnah | 223,144,820 | false | null | package com.mitteloupe.solid.recyclerview
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.Adapter
import androidx.recyclerview.widget.RecyclerView.ViewHolder
private const val ITEM_TYPE_DEFAULT = 0
/**
* SolidAd... | 0 | Kotlin | 0 | 35 | c022a6f6d905262647da4cc737b776e5c0601a09 | 8,041 | solid | MIT License |
libs/uniqueness/common/src/main/kotlin/net/corda/uniqueness/datamodel/common/UniquenessConstants.kt | corda | 346,070,752 | false | null | package net.corda.uniqueness.datamodel.common
/**
* Common constants.
*
* BE CAREFUL WHEN CHANGING THESE AS SOME OF THESE CONSTANTS MAY CHANGE DATABASE FIELD SIZES
* AND / OR THE STRUCTURE OF VALUES IN THE DATABASE, RESULTING IN DB UPGRADE IMPLICATIONS!
*/
object UniquenessConstants {
/**
* Specifies the... | 71 | Kotlin | 9 | 28 | fa43ea7a49afb8ed2d1686a6e847c8a02d376f85 | 1,423 | corda-runtime-os | Apache License 2.0 |
lib/src/main/kotlin/ostis/jesc/client/model/request/payload/entry/ContentPayloadEntry.kt | rastsislaux | 561,854,474 | false | {"Kotlin": 68654} | package ostis.jesc.client.model.request.payload.entry
import com.fasterxml.jackson.annotation.JsonValue
import ostis.jesc.client.model.addr.ScAddr
class ContentPayloadEntry private constructor(
val command: Command,
val type: ScContentType?,
val data: Any?,
val addr: ScAddr
): ScRequestPayloadEntry {
... | 1 | Kotlin | 0 | 1 | 87dffb7f8dc0bc518362da22aa53a0d5810066c5 | 837 | jesc | MIT License |
basic_wallet_p/Blockchain_Wallet/app/src/main/java/com/lambdaschool/blockchain_wallet/ui/Interface.kt | heiligbasil | 246,608,306 | true | {"Python": 26718, "Kotlin": 16009} | package com.lambdaschool.blockchain_wallet.ui
import retrofit2.Call
import retrofit2.http.GET
interface Interface {
@GET("chain")
fun getData(): Call<Blockchain>
} | 0 | Python | 0 | 0 | 840d2f0e605b136cbb708e269381f87bfd73fc83 | 173 | Blockchain | MIT License |
modules/dsl/sources/GraphQL.kt | fluidsonic | 226,815,725 | false | null | package io.fluidsonic.graphql
@GraphQLMarker
public object GraphQL
| 1 | Kotlin | 2 | 4 | cbf87b927ce2524e3bebfb755c210fd6a6801817 | 69 | fluid-graphql | Apache License 2.0 |
PASSO 07 – REPETIÇÃO COM PARA/ex65.kt | MMatteuss | 714,009,776 | false | {"Kotlin": 66737} | package `PASSO 07 – REPETIÇÃO COM PARA`
//Desenvolva um programa usando a estrutura “para” que mostre na tela a
//seguinte contagem:
//100 90 80 70 60 50 40 30 20 10 0 Acabou!
fun main(){
for (i in 100 downTo 0 step 10){
print("$i ")
}
print("Acabou!")
} | 0 | Kotlin | 0 | 1 | f064192eac9753373d5a7f03f64954c0e6ffc538 | 275 | Atividades-em-Kotlin | MIT License |
src/main/kotlin/sosteam/deamhome/domain/account/service/wishlist/WishListModifyService.kt | S-OSTeam | 686,862,885 | false | {"Kotlin": 148057, "Dockerfile": 158} | package sosteam.deamhome.domain.account.service.wishlist
import kotlinx.coroutines.reactive.awaitSingle
import org.springframework.stereotype.Service
import sosteam.deamhome.domain.account.entity.Account
import sosteam.deamhome.domain.account.exception.WishListOverflowException
import sosteam.deamhome.domain.account.r... | 5 | Kotlin | 0 | 0 | 25c68e15a29c4190a16b242c7eaeab1ae89e718f | 1,821 | shop-api | MIT License |
generator/src/jvmMain/kotlin/tech/skot/tools/generation/states.kt | skot-framework | 235,318,194 | false | null | package tech.skot.tools.generation
import com.squareup.kotlinpoet.*
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import kotlinx.serialization.Serializable
import org.jetbrains.kotlin.util.capitalizeDecapitalize.decapitalizeAsciiOnly
@ExperimentalStdlibApi
fun Generator.generateStates... | 1 | null | 4 | 6 | 8fcff82c719c9775e63da9c3808817704068cbba | 18,569 | skot | Apache License 2.0 |
core/src/main/kotlin/dev/usbharu/multim/multi/model/MultiAccountAccount.kt | multim-dev | 591,652,793 | false | null | package dev.usbharu.multim.multi.model
import dev.usbharu.multim.model.Account
import dev.usbharu.multim.multi.MultiAccountData
class MultiAccountAccount(
override val innerData: Account,
override val hashCode: Int
) :
MultiAccountData<Account>, Account(
innerData.screenName,
innerData.accountName... | 8 | Kotlin | 0 | 7 | daad2d142ae6fa7414acdb6704832a4d477dc41f | 439 | multim | Apache License 2.0 |
core/common/src/main/kotlin/trebuchet/importers/ftrace/events/WorkqueueEvent.kt | galooha | 806,058,479 | false | {"Kotlin": 253299, "Shell": 1647} | /*
* Copyright 2018 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 0 | Kotlin | 0 | 0 | 7bb76427e29ae3edd7fc42386c51e10c5d1d9450 | 1,849 | trebuchet | Apache License 2.0 |
vyne-core-types/src/main/java/com/orbitalhq/models/conditional/WhenBlockEvaluator.kt | orbitalapi | 541,496,668 | false | {"TypeScript": 9344934, "Kotlin": 5669840, "HTML": 201985, "SCSS": 170620, "HCL": 55741, "Java": 29373, "JavaScript": 24697, "Shell": 8800, "Dockerfile": 7001, "Smarty": 4741, "CSS": 2966, "Mustache": 1392, "Batchfile": 983, "MDX": 884, "PLpgSQL": 337} | package com.orbitalhq.models.conditional
import com.orbitalhq.models.AccessorReader
import com.orbitalhq.models.DataSource
import com.orbitalhq.models.EvaluationValueSupplier
import com.orbitalhq.models.FailedEvaluation
import com.orbitalhq.models.TypedInstance
import com.orbitalhq.models.TypedNull
import com.orbitalh... | 9 | TypeScript | 10 | 292 | 2be59abde0bd93578f12fc1e2ecf1f458a0212ec | 4,485 | orbital | Apache License 2.0 |
src/main/kotlin/inaction/basics/iteration/Ranges.kt | AlexoAnimaIgnis | 537,733,920 | false | {"Kotlin": 15325} | package inaction.basics.iteration
fun main() {
val oneToTen = 1..10
for(i in 1..100) {
print(fizzBuzz(i))
}
println()
for(i in 100 downTo 1 step 2){
print(fizzBuzz(i))
}
}
fun fizzBuzz(i : Int) = when {
i % 15 == 0 -> "FizzBuzz "
i % 3 == 0 -> "Fizz "
i % 5 == 0 -... | 0 | Kotlin | 0 | 1 | 16ffb23789f9b739a20a6fad03dcaa314da780cf | 349 | kotlin-intro | Apache License 2.0 |
data/src/commonMain/kotlin/regolith/data/settings/SettingLevel.kt | InkApplications | 652,832,743 | false | {"Kotlin": 87465} | package regolith.data.settings
/**
* Visibility of the setting.
*
* This value can be used to control which settings are available in
* a settings panel.
*/
enum class SettingLevel {
/**
* Setting is visible to any user in the system.
*/
User,
/**
* Setting is visible to users, but in ... | 0 | Kotlin | 1 | 1 | aa7fdf6319c227bb071b1094f803a6aa7765a7aa | 727 | Regolith | MIT License |
app/src/main/java/com/arconsis/videoplayeroverlay/MainActivity.kt | arconsis | 54,132,863 | false | null | package com.arconsis.videoplayeroverlay
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.provider.Settings
import android.support.v7.app.AppCompatActivity
/**
* Created by benedictp on 17/03/16.
*/
class MainActivity : AppCompatActivity() {
co... | 0 | Kotlin | 5 | 4 | ceea4125bf64b281682af8d281bbdc8d6aebb4fd | 1,303 | videoplayer-overlay | MIT License |
app/src/main/java/com/zamogatest/jennyferlopez/data/remote/posts/PostService.kt | Jlo1923 | 468,611,834 | false | null | package com.zamogatest.jennyferlopez.data.remote.posts
import com.zamogatest.jennyferlopez.data.entities.Posts
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Path
interface PostService {
@GET("posts")
suspend fun getAllPosts() : Response<List<Posts>>
@GET("posts/{id}")
sus... | 0 | Kotlin | 0 | 0 | 356942ccb1f6e6727ca4c2530e426f1099f0837f | 376 | ZamogaTest | Apache License 2.0 |
avatar-view/src/main/java/com/goodayapps/widget/AvatarView.kt | TalbotGooday | 295,657,891 | false | null | package com.goodayapps.widget
import android.content.Context
import android.content.res.TypedArray
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Typeface
import android.os.Build
import android.util.AttributeSet
import androidx.annotation.ColorInt
import androidx.annotation.Dimens... | 0 | null | 0 | 6 | 7225cfbbed8d5556f26c2794d0ba9a969adcce6e | 7,577 | AvatarView | MIT License |
papa/src/androidTest/java/papa/test/utilities/MainThreadTestUtils.kt | square | 407,688,593 | false | {"Kotlin": 175981} | package papa.test.utilities
import androidx.test.platform.app.InstrumentationRegistry
import java.util.concurrent.atomic.AtomicReference
fun <T> getOnMainSync(block: () -> T): T {
val resultHolder = AtomicReference<T>()
runOnMainSync {
resultHolder.set(block())
}
return resultHolder.get()
}
fun runOnMain... | 12 | Kotlin | 15 | 353 | 2ce2018099c2acda7f50a8bd37061865c3dfe5e8 | 413 | papa | Apache License 2.0 |
androidApp/src/main/java/com/mbta/tid/mbta_app/android/component/TransitHeader.kt | mbta | 718,216,969 | false | {"Kotlin": 1202861, "Swift": 588291, "Ruby": 4129, "Shell": 4012} | package com.mbta.tid.mbta_app.android.component
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.fou... | 10 | Kotlin | 0 | 2 | a297274ef7b3fada48721a049d2540241facfe90 | 2,148 | mobile_app | MIT License |
lint/src/main/kotlin/com/kroegerama/kaiteki/lint/ScrollViewDetector.kt | kroegerama | 133,562,779 | false | {"Kotlin": 263903} | package com.kroegerama.kaiteki.lint
import com.android.SdkConstants
import com.android.tools.lint.detector.api.*
import org.w3c.dom.Element
class ScrollViewDetector : LayoutDetector() {
override fun getApplicableElements(): Collection<String> = listOf(
"androidx.core.widget.NestedScrollView"
)
o... | 1 | Kotlin | 3 | 8 | 2c0e2394779571c91864a097fc199e587baaeee8 | 1,560 | android-kaiteki | Apache License 2.0 |
app/src/main/java/com/nullpointer/nullsiteadmin/domain/email/EmailsRepository.kt | Hcnc100 | 506,449,303 | false | {"Kotlin": 364704} | package com.nullpointer.nullsiteadmin.domain.email
import com.nullpointer.nullsiteadmin.models.email.data.EmailData
import kotlinx.coroutines.flow.Flow
interface EmailsRepository {
val listEmails: Flow<List<EmailData>>
suspend fun markAsOpen(emailData: EmailData)
suspend fun deleterEmail(idEmail: String)
... | 0 | Kotlin | 1 | 2 | 5fec4c0e845a008feda27826f2dfea6b731d710f | 403 | NullSiteApp | MIT License |
app/spotifyapi/src/main/java/com/kpstv/spotifyapi/data/methods/PlaylistApi.kt | KaustubhPatange | 269,351,196 | false | null | package com.kpstv.spotifyapi.data.methods
import com.kpstv.spotifyapi.ResponseAction
import com.kpstv.spotifyapi.SpotifyClient
import com.kpstv.spotifyapi.data.models.Playlist
class PlaylistApi(
private val client: SpotifyClient
) {
/**
* Get a Playlist's Items
*/
fun getPlaylistItems(id: String... | 0 | Kotlin | 0 | 9 | 51410cfa2a8008da06689bd8c82928e4123efd13 | 861 | Unofficial-Spotify-SDK | Apache License 2.0 |
src/commonMain/kotlin/main.kt | hiperbou | 532,496,333 | false | {"Kotlin": 44693, "Shell": 1210} | import com.soywiz.korge.*
import com.soywiz.korge.scene.*
import com.soywiz.korge.view.*
import com.soywiz.korim.color.*
import core.*
import scenes.*
import ui.*
suspend fun main() = Korge(width = 1280, height = 720, bgcolor = Colors.LIGHTGRAY) {
val conversationEvents = ConversationEvents()
val conversatio... | 0 | Kotlin | 0 | 0 | 0767dc9ebd38700ff7ff710ef73d99d3aeb5ec5d | 716 | korgersation | MIT License |
app/src/main/java/com/herry/test/app/timeline/RecyclerTimelineForm.kt | HerryPark | 273,154,769 | false | {"Kotlin": 1362527, "Java": 602} | package com.herry.test.app.timeline
import android.content.Context
import android.view.View
import com.herry.libs.nodeview.NodeForm
import com.herry.libs.nodeview.NodeHolder
class RecyclerTimelineForm: NodeForm<RecyclerTimelineForm.Holder, TimelineModel>(Holder::class, TimelineModel::class) {
inner class Holder(c... | 0 | Kotlin | 0 | 0 | a0fdf428ef056565aa829597ee02d3c4a26608c9 | 1,221 | HerryApiDemo | Apache License 2.0 |
src/main/kotlin/tech/kaxon/projects/bot/gson/InterfaceAdapter.kt | kaxlabs | 298,455,167 | false | null | package tech.kaxon.projects.bot.gson
import com.google.gson.*
import java.lang.reflect.Type
internal class InterfaceAdapter<T : Any> : JsonSerializer<T>, JsonDeserializer<T> {
override fun serialize(obj: T, interfaceType: Type?, context: JsonSerializationContext): JsonElement? {
val wrapper = JsonObject(... | 0 | Kotlin | 0 | 0 | c4b41e87df5d0240180926b9abdf20fdd8d50cd1 | 1,314 | discord-sbs-bot | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/puc/easyagro/ui/market/pagamento/PagamentoAdapter.kt | herva2003 | 693,382,766 | false | {"Kotlin": 200044, "Java": 2561} | package com.puc.easyagro.ui.market.pagamento
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.puc.easyagro.R
import com.puc.easyagro.model.Market
class PagamentoAdapter(private var marke... | 0 | Kotlin | 0 | 0 | 2faad984de5aa6ce879022a29245e7e8e9eab3e5 | 1,337 | EasyAgro | Apache License 2.0 |
complex/src/test/kotlin/net/fwitz/math/binary/complex/ComplexTest.kt | txshtkckr | 410,419,365 | false | null | package net.fwitz.math.binary.complex
import net.fwitz.math.binary.complex.Complex.Companion.complex
import net.fwitz.math.binary.complex.Complex.Companion.imaginary
import net.fwitz.math.binary.complex.Complex.Companion.real
import net.fwitz.math.binary.complex.ComplexTest.ComplexAssert.Companion.assertComplex
import... | 0 | Kotlin | 1 | 0 | c6ee97ab98115e044a46490ef3a26c51752ae6d6 | 23,294 | fractal | Apache License 2.0 |
powermanager-job/src/main/java/com/pyamsoft/powermanager/job/JobModule.kt | pyamsoft | 24,553,477 | false | null | /*
* Copyright 2017 <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 wr... | 0 | Kotlin | 0 | 1 | bfc57e557e56a0503daae89a964a0ab447695b16 | 1,422 | power-manager | Apache License 2.0 |
src/main/kotlin/br/com/lbenaducci/maquinavelha/repositories/SessionRepository.kt | Leo-Benaducci | 683,468,004 | false | null | package br.com.lbenaducci.maquinavelha.repositories
import br.com.lbenaducci.maquinavelha.models.entities.Session
import org.springframework.stereotype.Repository
@Repository
class SessionRepository : InMemoryRepository<Session>() | 0 | Kotlin | 0 | 0 | 888e0bc430e18009c6e8c9f547919f16e1210fa4 | 232 | maquina-velha | Apache License 2.0 |
app/src/main/java/com/sopt/familing/fragment/StampFragment.kt | SOPCKATHON | 430,105,215 | false | {"Kotlin": 16649} | package com.sopt.familing.fragment
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.sopt.familing.databinding... | 0 | Kotlin | 1 | 0 | 8a4d9889b697a6cd4ffbbbecfee586e024ac30df | 1,887 | Familing_Android | Apache License 2.0 |
projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/api/model/schedule/Appointment.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 3502436, "HTML": 57595, "D2": 27334, "Ruby": 25392, "Shell": 12351, "SCSS": 6240, "HCL": 2712, "Dockerfile": 2414, "JavaScript": 1344, "Python": 268} | package uk.gov.justice.digital.hmpps.api.model.schedule
import uk.gov.justice.digital.hmpps.api.model.Name
import uk.gov.justice.digital.hmpps.api.model.personalDetails.Document
import java.time.ZonedDateTime
data class Appointment(
val id: Long,
val type: String,
val startDateTime: ZonedDateTime,
va... | 9 | Kotlin | 0 | 2 | 1f7e7de4218db20109060fd1f770a272ff4f3a93 | 1,087 | hmpps-probation-integration-services | MIT License |
shared/src/commonMain/kotlin/hr/dtakac/prognoza/shared/domain/GetAllWindUnits.kt | davidtakac | 387,038,134 | false | null | package hr.dtakac.prognoza.shared.domain
import hr.dtakac.prognoza.shared.entity.SpeedUnit
class GetAllWindUnits internal constructor() {
suspend operator fun invoke(): List<SpeedUnit> = SpeedUnit.values().toList()
} | 24 | Kotlin | 11 | 194 | 2ff651b1b6470441fc81066f84271feacc855195 | 222 | prognoza | MIT License |
source/src/main/java/ru/g000sha256/wallet/feature/cards/adapter/card/CardsAdapterCardListener.kt | g000sha256 | 317,877,385 | false | null | package ru.g000sha256.wallet.feature.cards.adapter.card
interface CardsAdapterCardListener {
fun clickOnCard(id: Long)
} | 0 | Kotlin | 0 | 0 | 61d0cc14b1613209b953c546fbd472e82a9d955f | 127 | wallet_demo | MIT License |
core/network/src/main/java/com/goms/network/di/NetworkModule.kt | team-haribo | 740,096,241 | false | {"Kotlin": 621219} | package com.goms.network.di
import android.util.Log
import com.goms.network.BuildConfig
import com.goms.network.api.AccountAPI
import com.goms.network.api.AuthAPI
import com.goms.network.api.CouncilAPI
import com.goms.network.api.LateAPI
import com.goms.network.api.NotificationAPI
import com.goms.network.api.OutingAPI... | 5 | Kotlin | 0 | 9 | 32b6b960f997e282a05c8409d6e045e6f95822d5 | 3,255 | GOMS-Android-V2 | MIT License |
jstressy-platform/jstressy-impl/jstressy-utils/src/main/kotlin/com/github/timofeevda/jstressy/utils/Duration.kt | timofeevda | 126,821,248 | false | {"Kotlin": 259730, "Dockerfile": 506, "Shell": 214} | package com.github.timofeevda.jstressy.utils
import java.util.concurrent.TimeUnit
/**
* Represents time interval using number of [TimeUnit]s
*/
data class Duration(val count: Long, val timeUnit: TimeUnit) {
fun toNanoseconds(): Long {
return TimeUnit.NANOSECONDS.convert(count, timeUnit)
}
fun ... | 0 | Kotlin | 0 | 2 | d51713d9e7aca05d6b89f042adaf1c0b75e88ecd | 874 | jstressy | MIT License |
src/commonMain/kotlin/com/jeffpdavidson/kotwords/formats/unidecode/xee.kt | jpd236 | 143,651,464 | false | {"Kotlin": 4427197, "HTML": 41941, "Rouge": 3731, "Perl": 1705, "Shell": 744, "JavaScript": 618} | package com.jeffpdavidson.kotwords.formats.unidecode
internal val xee = arrayOf(
// 0xee00: => [?]
"\u005b\u003f\u005d\u0020",
// 0xee01: => [?]
"\u005b\u003f\u005d\u0020",
// 0xee02: => [?]
"\u005b\u003f\u005d\u0020",
// 0xee03: => [?]
"\u005b\u003f\u005d\u0020",
// 0xe... | 8 | Kotlin | 6 | 25 | e18e9cf0bad7497da15b40f6c81ba4234ec83917 | 14,676 | kotwords | Apache License 2.0 |
src/main/kotlin/one/devos/osuv2kt/models/beatmap/BeatmapsetDiscussionPost.kt | devOS-Sanity-Edition | 856,181,413 | false | {"Kotlin": 49164} | package one.devos.osuv2kt.models.beatmap
import java.time.OffsetDateTime
public data class BeatmapsetDiscussionPost(
public val beatmapsetDisucssionId: Int,
public val createdAt: OffsetDateTime,
public val deletedAt: OffsetDateTime?,
public val deletedById: Int?,
public val id: Int,
public val... | 0 | Kotlin | 0 | 0 | ebefb4d6ad7003c46c4e482d8229af8df6552b81 | 476 | osuv2kt | MIT License |
domain/src/main/kotlin/be/sourcedbvba/restbucks/order/domain/services/event/OrderCreated.kt | lievendoclo | 122,870,906 | true | null | package be.sourcedbvba.restbucks.order.event
import be.sourcedbvba.restbucks.Milk
import be.sourcedbvba.restbucks.Size
import be.sourcedbvba.restbucks.Status
import be.sourcedbvba.restbucks.domain.event.DomainEvent
import be.sourcedbvba.restbucks.order.Order
import be.sourcedbvba.restbucks.order.OrderId
import java.ma... | 0 | Kotlin | 5 | 9 | d66701d052f58adaaaf965efd6146187020fe638 | 1,127 | clean-restbucks | Apache License 2.0 |
app/src/main/java/com/arnyminerz/androidmatic/data/StationFeedResult.kt | ArnyminerZ | 540,989,660 | false | {"Kotlin": 199278} | package com.arnyminerz.androidmatic.data
import java.util.Date
data class StationFeedResult(
val timestamp: Date,
val stations: List<Station>,
)
| 4 | Kotlin | 0 | 0 | e1a16c832ae0ca2882fb55a3ae77b0296e3a4f70 | 155 | Androidmatic | MIT License |
src/main/kotlin/utils/day13/Packet.kt | ZeevPi | 572,991,107 | false | {"Kotlin": 59464} | package utils.day13
/**
* Created on 13.12.22
*
* @author vpiven
*/
sealed class Packet : Comparable<Packet> {
override fun equals(other: Any?): Boolean = other is Packet && compareTo(other) == 0
override fun hashCode(): Int = javaClass.hashCode()
}
data class IntContent(val value: Int) : Packet() {
o... | 0 | Kotlin | 0 | 0 | 66b98815a6c76d32717985c5c9190b946f2e584f | 1,398 | advent-of-code-22 | MIT License |
app/src/main/java/games/windrose/coliseum/view/end/GameEndPresenter.kt | yangmenghan | 149,345,417 | false | null | package games.windrose.coliseum.view.end
import games.windrose.coliseum.core.LoadWinnersInteractor
import org.koin.core.annotation.Factory
@Factory
class GameEndPresenter constructor(
private val view: GameEndContract.View,
private val loadWinners: LoadWinnersInteractor
) {
fun start() {
val winn... | 10 | Kotlin | 0 | 0 | 8d54c85f2a0c6846d5724f1f7e37499a650f9942 | 407 | Coliseum | MIT License |
src/main/kotlin/cc/aoeiuv020/panovel/server/service/impl/NovelServiceImpl.kt | AoEiuV020 | 126,864,522 | false | null | package cc.aoeiuv020.panovel.server.service.impl
import cc.aoeiuv020.panovel.server.common.BaseLoggable
import cc.aoeiuv020.panovel.server.common.debug
import cc.aoeiuv020.panovel.server.common.info
import cc.aoeiuv020.panovel.server.common.toJson
import cc.aoeiuv020.panovel.server.dal.mapper.autogen.NovelMapper
impor... | 0 | Kotlin | 1 | 1 | 95cd3b9696d8bf6b68eb1606a0653ba0d7fe85bd | 5,739 | PaNovelServer | MIT License |
va_code/app/src/main/java/com/mvrc/viewapp/presentation/forgot_password/view_model/ForgotPasswordViewModel.kt | MarcoBendinelli | 789,851,376 | false | {"Kotlin": 547994} | package com.mvrc.viewapp.presentation.forgot_password.view_model
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.mvrc.viewapp.data.model.Response.Loading
import com.mvrc.viewapp.data.model.Response.Success
import com.mvrc.viewapp.domain.event.ValidationEvent
import com.mvrc.view... | 0 | Kotlin | 0 | 0 | 1c570950bd1d8e122e83414c1b0ff6d731a2d3fb | 4,312 | View-Android-Mobile-App | MIT License |
app/src/main/java/lt/andro/rpi3dprinter/SupportedThings.kt | ViliusKraujutis | 98,583,196 | false | null | package lt.andro.rpi3dprinter
import android.util.Log
import com.google.android.things.pio.Gpio
import com.google.android.things.pio.PeripheralManagerService
interface SupportedThings : LedThing, RelayThing
class ThingsExecutorMock(val messageView: MessageView) : SupportedThings {
private val TAG = this.javaClas... | 0 | Kotlin | 1 | 0 | 6f2d7569a0218cf93e6c2c7d3db1955c3addb2ac | 2,097 | RPi3Dprinter | Apache License 2.0 |
app/src/test/java/com/example/android/architecture/blueprints/todoapp/statistics/StatisticsUtilsTest.kt | ambageo | 381,652,714 | true | {"Kotlin": 132914} | package com.example.android.architecture.blueprints.todoapp.statistics
import com.example.android.architecture.blueprints.todoapp.data.Task
import org.hamcrest.CoreMatchers.`is`
import org.junit.Assert.*
import org.junit.Test
class StatisticsUtilsTest {
@Test
fun getActiveAndCompletedStats_noCompleted_return... | 0 | Kotlin | 0 | 0 | a57e087a3c025d81dcbb3651746dbf294838cd7a | 1,345 | android-testing-kotlin | Apache License 2.0 |
commonutils/src/main/java/com/boreal/commonutils/component/dialogs/blurdialog/CUButtonOutlined.kt | baudelioandalon | 370,172,707 | false | null | package com.boreal.commonutils.component.dialogs.blurdialog
data class ButtonType(
val CUButtonStyle: CUButtonStyle,
val messageButton: String
) | 0 | Kotlin | 0 | 0 | 2e725d29eaa1bc4f18c64ea9a42e99bd965aac00 | 153 | CommonUtils | MIT License |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/SkullSolid.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36756847} | package compose.icons.lineawesomeicons
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.graphics.StrokeJoin.Companion.Miter
... | 15 | Kotlin | 20 | 460 | 651badc4ace0137c5541f859f61ffa91e5242b83 | 5,726 | compose-icons | MIT License |
kt-extensions/src/main/kotlin/com/mindera/skeletoid/kt/extensions/rxjava/Any.kt | cmota | 173,693,992 | true | {"Java Properties": 2, "YAML": 1, "Gradle": 7, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Text": 1, "Ignore List": 6, "XML": 11, "Proguard": 5, "Java": 55, "Kotlin": 32} | package com.mindera.skeletoid.kt.extensions.rxjava
import io.reactivex.Observable
import io.reactivex.Single
fun <T : Any> T.justObservable(): Observable<T>
= Observable.just(this)
fun <T : Any> T.justSingle(): Single<T>
= Single.just(this) | 0 | Java | 0 | 0 | 3a80ffbf779637510947c1e9bcf5544e0d30767e | 259 | skeletoid | MIT License |
src/test/java/ianmorgan/graphstore/GraphQLFragmentSpec.kt | ianmorgan | 132,918,469 | false | null | package ianmorgan.graphstore
import com.natpryce.hamkrest.assertion.assert
import com.natpryce.hamkrest.equalTo
import graphql.GraphQL
import ianmorgan.graphstore.dal.DocsDao
import ianmorgan.graphstore.graphql.GraphQLFactory
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.describe
import org.jetb... | 1 | null | 1 | 2 | 7b0f6e4ac15c3a39a28b9d5df3b13ca83f1dcf98 | 2,184 | graph-store | MIT License |
plugins/markdown/core/src/org/intellij/plugins/markdown/extensions/common/plantuml/PlantUMLCodeFenceLanguageProvider.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.intellij.plugins.markdown.extensions.common.plantuml
import com.intellij.codeInsight.completion.CompletionParameters
import com.intellij.codeInsight.lookup.LookupElem... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,863 | intellij-community | Apache License 2.0 |
project/jimmer-sql-kotlin/src/test/kotlin/org/babyfish/jimmer/sql/kt/model/classic/author/Gender.kt | babyfish-ct | 488,154,823 | false | {"Java": 7622268, "Kotlin": 1433079, "ANTLR": 8333, "HTML": 6982, "Shell": 1027} | package org.babyfish.jimmer.sql.kt.model.classic.author
import org.babyfish.jimmer.sql.EnumItem
enum class Gender {
@EnumItem(name = "M")
MALE,
@EnumItem(name = "F")
FEMALE
} | 13 | Java | 72 | 725 | 873f8405a268d95d0b2e0ff796e2d0925ced21e7 | 194 | jimmer | Apache License 2.0 |
jpa/src/main/kotlin/me/jiangcai/common/jpa/type/JSONStoring.kt | mingshz | 166,675,112 | false | null | package me.jiangcai.common.jpa.type
import java.io.Serializable
/**
* 表示一个可以在数据表中以json描述的类型
* 通常可以一个[Map]的方式进行使用
* @author CJ
*/
class JSONStoring(
var data: Map<*, *>
) : Serializable {
companion object {
const val serialVersionUID = -5231698596139313211L
}
@Suppress("UNCHECKED_CAST")
... | 1 | Kotlin | 1 | 1 | 34060249958f817da4e1668109c37dcf8cbf2600 | 395 | library | MIT License |
cams-module-square/src/main/java/com/linwei/cams/module/square/ui/system/mvi/view/SystemView.kt | WeiShuaiDev | 496,946,272 | false | {"Java": 582442, "Kotlin": 557761} | package com.linwei.cams.module.square.ui.square.mvi.view
import androidx.lifecycle.LifecycleOwner
import com.linwei.cams.framework.mvi.ktx.FetchStatus
import com.linwei.cams.framework.mvi.ktx.observeOnlyState
import com.linwei.cams.framework.mvi.ktx.observeState
import com.linwei.cams.framework.mvi.mvi.model.MviViewEv... | 1 | null | 1 | 1 | 0ff123efac31c81998b1868bff39046d9761dfd5 | 1,672 | WSWanAndroidAppKotlin | Apache License 2.0 |
bbfgradle/tmp/results/diffABI/qjageju_FILE.kt | DaniilStepanov | 346,008,310 | false | null | // Bug happens on JVM , JVM -Xuse-ir
// WITH_REFLECT
// TARGET_BACKEND: JVM
// FILE: tmp0.kt
@file:JvmMultifileClass()
import kotlin.reflect.*
import kotlin.reflect.jvm.*
import kotlin.jvm.*
import kotlin.collections.*
import kotlin.sequences.*
import kotlin.time.*
import kotlin.annotation.*
import kotlin.test.*
o... | 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 2,307 | kotlinWithFuzzer | Apache License 2.0 |
examples/xo_android_client/app/src/main/java/bitwiseio/sawtooth/xo/viewmodels/ViewModelFactory.kt | hyperledger-archives | 125,578,728 | false | {"XML": 23, "Dotenv": 1, "Ignore List": 4, "CODEOWNERS": 1, "Markdown": 4, "Maven POM": 6, "Text": 1, "Groovy": 1, "YAML": 7, "Shell": 7, "Protocol Buffer": 25, "Java": 33, "Gradle": 3, "Java Properties": 1, "Batchfile": 1, "INI": 1, "Proguard": 1, "Kotlin": 22, "Dockerfile": 4, "Makefile": 1, "reStructuredText": 5, "P... | package bitwiseio.sawtooth.xo.viewmodels
import android.arch.lifecycle.ViewModel
import android.arch.lifecycle.ViewModelProvider
class ViewModelFactory(private val restApiUrl: String) : ViewModelProvider.Factory {
@Suppress("UNCHECKED_CAST")
override fun <T : ViewModel?> create(modelClass: Class<T>): T {
... | 7 | Java | 38 | 19 | 0b18fac9ca1a9d01a20715baff92ad0d72b0d0e0 | 553 | sawtooth-sdk-java | Apache License 2.0 |
app/src/main/java/com/shuhart/testlook/modules/flight/search/airport/SearchAirportView.kt | shuhart | 121,277,253 | false | null | package com.shuhart.testlook.modules.flight.search.airport
import com.shuhart.testlook.api.model.City
interface SearchAirportView {
fun setItems(items: List<City>)
fun getItems(): List<City>
fun showToast(message: String)
fun showProgress()
fun hideProgress(smoothStop: Boolean = true)
} | 0 | Kotlin | 0 | 1 | 236c081dfde4c24cdbf081f9d7b81cd8f5eeab61 | 309 | TestLook | Apache License 2.0 |
mobile-common-lib/src/commonMain/kotlin/fi/riista/common/domain/observation/dto/CommonObservationSpecimenDTO.kt | suomenriistakeskus | 78,840,058 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 2, "Text": 4, "Ignore List": 2, "Batchfile": 1, "Git Attributes": 1, "Markdown": 4, "Gradle Kotlin DSL": 1, "Kotlin": 1344, "XML": 401, "Java": 161, "Protocol Buffer": 1, "JSON": 1} | package fi.riista.common.domain.observation.dto
import fi.riista.common.domain.dto.*
import fi.riista.common.domain.observation.model.CommonObservationSpecimen
import fi.riista.common.model.toBackendEnum
import kotlinx.serialization.Serializable
@Serializable
data class CommonObservationSpecimenDTO(
val id: Long?... | 0 | Kotlin | 0 | 3 | 23645d1abe61c68d649b6d0ca1d16556aa8ffa16 | 1,016 | oma-riista-android | MIT License |
plugins/space/src/main/kotlin/com/intellij/space/settings/SpaceServerSettings.kt | orent | 319,268,883 | true | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.space.settings
data class SpaceServerSettings(
var enabled: Boolean = false,
var server: String = ""
)
| 1 | null | 1 | 1 | 571b9803865175e16ae5ca56838cae0b430bd06a | 270 | intellij-community | Apache License 2.0 |
vector/src/main/java/vmodev/clearkeep/factories/viewmodels/SearchRoomsFragmentViewModelFactory.kt | telred-llc | 194,596,139 | false | {"Java": 5914133, "Kotlin": 3855534, "JavaScript": 179733, "HTML": 22037, "Shell": 17049} | package vmodev.clearkeep.factories.viewmodels
import androidx.lifecycle.ViewModelProvider
import vmodev.clearkeep.factories.viewmodels.interfaces.IViewModelFactory
import vmodev.clearkeep.fragments.Interfaces.IFragment
import vmodev.clearkeep.viewmodels.interfaces.AbstractSearchRoomsFragmentViewModel
import javax.inje... | 5 | Java | 1 | 3 | 2d20e94e9711b51aee89fa569efd61449cc7e9c3 | 814 | clearkeep-android | Apache License 2.0 |
common/src/main/kotlin/org/flaxo/common/data/PlagiarismBackend.kt | tcibinan | 112,068,459 | false | null | package org.flaxo.common.data
enum class PlagiarismBackend {
MOSS,
JPLAG,
COMBINED;
}
| 30 | null | 6 | 9 | a745d82604737699699210267ad5d2aa552f92d8 | 99 | flaxo | Apache License 2.0 |
alerting/src/main/kotlin/org/opensearch/alerting/resthandler/RestGetEmailAccountAction.kt | opensearch-project | 355,035,157 | false | null | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.alerting.resthandler
import org.opensearch.alerting.AlertingPlugin
import org.opensearch.alerting.action.GetEmailAccountAction
import org.opensearch.alerting.action.GetEmailAccountRequest
import org.opensearch.al... | 244 | null | 102 | 61 | e3c9fc28b2e2fd167de0b767bc2e1eb6463ebc26 | 2,543 | alerting | Apache License 2.0 |
kotest-extensions/kotest-extensions-spring/src/jvmTest/kotlin/io/kotest/provided/ProjectConfig.kt | junron | 214,570,871 | false | null | package io.kotest.provided
import io.kotest.AbstractProjectConfig
import io.kotest.spring.SpringAutowireConstructorExtension
class ProjectConfig : AbstractProjectConfig() {
override fun extensions() = listOf(SpringAutowireConstructorExtension)
} | 1 | null | 1 | 1 | 3a00e967d50a43e6200060f7c3df44c730d02610 | 249 | kotlintest | Apache License 2.0 |
app/src/main/java/com/github/sirdx/plainalarm/core/Resource.kt | sirdx | 740,195,027 | false | {"Kotlin": 54934} | package com.github.sirdx.plainalarm.core
sealed class Resource<out T> {
data object Loading : Resource<Nothing>()
data class Success<T>(val data: T) : Resource<T>()
data class Error(val message: String?) : Resource<Nothing>()
}
| 0 | Kotlin | 0 | 1 | e96a00e51d3fcb178457156d4a9cf690e978d09a | 241 | PlainAlarm | MIT License |
modules/reconciliation-event-handler/src/main/kotlin/vdi/lane/reconciliation/ReconciliationEventHandlerImpl.kt | VEuPathDB | 575,990,672 | false | {"Kotlin": 601562, "Java": 211932, "RAML": 63444, "Makefile": 1936, "Dockerfile": 1001, "Shell": 423} | package vdi.lane.reconciliation
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import org.slf4j.LoggerFactory
import org.veupathdb.vdi.lib.common.async.WorkerPool
import org.veupathdb.vdi.lib.common.field.DatasetID
import org.veupathdb.vdi.lib.common.field.... | 26 | Kotlin | 0 | 0 | 0d8fadabb5eacbcdd17ca1305122655ce9d6af63 | 2,164 | vdi-service | Apache License 2.0 |
src/main/kotlin/com/github/zero88/ideaplugin/services/MyApplicationService.kt | zero88 | 576,510,516 | false | {"Kotlin": 7823} | package com.github.zero88.ideaplugin.services
import com.github.zero88.ideaplugin.MyBundle
class MyApplicationService {
init {
println(MyBundle.message("applicationService"))
System.getenv("CI")
?: TODO("Don't forget to remove all non-needed sample code files with their corresponding... | 0 | Kotlin | 0 | 0 | 249d5630c9b110442e1987b95874090e80ee3a9d | 369 | idea-plugin | Apache License 2.0 |
android/app/src/main/kotlin/com/example/valentine_mbobile_app/MainActivity.kt | Enderjua | 593,124,524 | false | {"Dart": 33092, "C++": 24267, "CMake": 19512, "Swift": 1977, "HTML": 1869, "C": 1425, "Objective-C": 1188, "Java": 1021, "Shell": 603, "Kotlin": 134} | package com.example.valentine_mbobile_app
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity()
| 1 | Dart | 6 | 14 | 8ce9e2eb8217f92ca9574e8c205e27471d27378e | 134 | valentine-mobile-app | MIT License |
sdk/src/main/java/com/exponea/sdk/models/InAppContentBlockDisplayState.kt | exponea | 134,699,893 | false | {"Kotlin": 1770980, "Java": 206} | package com.exponea.sdk.models
import java.util.Date
data class InAppContentBlockDisplayState(
val displayedLast: Date?,
val displayedCount: Int,
val interactedLast: Date?,
val interactedCount: Int
)
| 0 | Kotlin | 16 | 17 | f58e80c19dc32581105c398fc08d12d41fd28ae2 | 218 | exponea-android-sdk | MIT License |
src/main/kotlin/org/jetbrains/plugins/template/authentication/accounts/BitbucketAccountsStatisticsCollector.kt | arthas-choi | 282,000,001 | false | {"Gradle Kotlin DSL": 2, "Markdown": 5, "Java Properties": 1, "YAML": 3, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "INI": 2, "Java": 73, "XML": 3, "SVG": 1, "Kotlin": 284} | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.template.authentication.accounts
import com.intellij.internal.statistic.beans.MetricEvent
import com.intellij.internal.statistic.beans.newMetric
imp... | 1 | null | 1 | 1 | 8f5821fdaf4c933abab1b4c7fb62f4fd58f72138 | 1,258 | intellij-bitbucket | Apache License 2.0 |
datasources/src/main/java/com/company/mobile/android/appname/datasources/card/cache/db/CardsDatabase.kt | DavidTomas14 | 487,952,907 | false | {"Kotlin": 87752, "Shell": 1098} | package com.company.mobile.android.appname.datasources.card.cache.db
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.company.mobile.android.appname.datasources.card.cache.dao.CardDbModelDao
import com.company.mobile.android.appname.dat... | 0 | Kotlin | 0 | 0 | 75bc62de4e461efb776d871ee2c27cda57de4374 | 1,139 | MagicsApp | MIT License |
target23/src/main/java/com/first/target23/ui/SecondActivity.kt | 790396054 | 379,646,595 | false | null | package com.first.target23.ui
import android.content.Intent
import android.os.Bundle
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.first.target23.R
/**
*
* Created by gmm on 11/6/21 10:41 AM
*/
class SecondActivity : AppCompatActivity() {
override fun onCreate(saved... | 0 | Java | 0 | 0 | e8d416fd3ca6d4324cd4d07bc7d661f248ad773f | 645 | FirstElephant | Apache License 2.0 |
src/test/kotlin/g0801_0900/s0822_card_flipping_game/SolutionTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4870729, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g0801_0900.s0822_card_flipping_game
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
internal class SolutionTest {
@Test
fun flipame() {
assertThat(
Solution().flipgame(intArrayOf(1, 2, 4, 4, 7), intArrayOf(1, 3... | 0 | Kotlin | 20 | 43 | e8b08d4a512f037e40e358b078c0a091e691d88f | 494 | LeetCode-in-Kotlin | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.