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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
KotlinBasics/Tasklist/JsonSaver.kt | Tsyshnatiy | 561,408,519 | false | {"Kotlin": 64886, "JavaScript": 3306, "CSS": 1632, "HTML": 726} | package tasklist
import com.squareup.moshi.*
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import java.io.File
class JsonSerializer {
private val moshi: Moshi = Moshi.Builder()
.add(KotlinJsonAdapterFactory())
.build()
private val filename = "tasklist.json"
private val l... | 0 | Kotlin | 0 | 0 | 5c3ef96cca79e51cc8bc3f65cad6086e0c99ea2d | 849 | JetBrainsCourses | Apache License 2.0 |
rubik/rubik_plugins/src/main/java/com/rubik/plugins/shell/ShellPlugin.kt | baidu | 504,447,693 | false | {"Kotlin": 607049, "Java": 37304} | /**
* Copyright (C) Baidu Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1 | Kotlin | 7 | 153 | 065ba8f4652b39ff558a5e3f18b9893e2cf9bd25 | 2,997 | Rubik | Apache License 2.0 |
src/commonMain/kotlin/main.kt | kriksD | 529,301,545 | false | null | import com.soywiz.korge.*
import com.soywiz.korge.scene.*
import com.soywiz.korim.color.*
import com.soywiz.korinject.*
import com.soywiz.korma.geom.*
import kotlin.reflect.*
suspend fun main() = Korge(Korge.Config(module = MainModule))
object MainModule : Module() {
override val bgcolor: RGBA = Colors["#0e5c60"]... | 0 | Kotlin | 0 | 0 | cf7835f715d10f40d5699cf231de023be03ebc68 | 619 | KorGE-test-game2 | MIT License |
core/src/main/kotlin/materialui/components/buttongroup/buttongroup.kt | chadmorrow | 254,712,121 | true | {"Kotlin": 344112} | package materialui.components.buttongroup
import kotlinx.html.DIV
import kotlinx.html.Tag
import kotlinx.html.TagConsumer
import materialui.components.StandardProps
import materialui.components.buttongroup.enums.ButtonGroupStyle
import org.w3c.dom.events.Event
import react.RBuilder
import react.RClass
import react.RPr... | 0 | null | 0 | 0 | ecc09e857677d20e967005370643fd7b8ba95d24 | 1,346 | kotlin-material-ui | MIT License |
kotlin/src/test/java/com/kevinmost/lifx/kt/BaseLifxTest.kt | mbStavola | 76,759,790 | true | {"INI": 1, "YAML": 1, "Gradle": 4, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Text": 1, "Ignore List": 1, "XML": 7, "Java Properties": 1, "Kotlin": 5, "Java": 31} | package com.kevinmost.lifx.kt
import com.kevinmost.lifx.EnvVar
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import org.junit.Before
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import java.util.concurrent.TimeUnit
abstract class BaseLifxTest {
val logger: Logger = LoggerFactor... | 0 | Java | 0 | 0 | d6a3137748fccb28d8b8f3788a938cd03d14050c | 752 | lifx-java | Apache License 2.0 |
css-gg/src/commonMain/kotlin/compose/icons/cssggicons/SmileUpside.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36756847} | package compose.icons.cssggicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import android... | 15 | Kotlin | 20 | 460 | 651badc4ace0137c5541f859f61ffa91e5242b83 | 3,938 | compose-icons | MIT License |
src/main/kotlin/com/github/alikemalocalan/greentunnel4jvm/utils/HttpServiceUtils.kt | casebell | 263,804,808 | true | {"Kotlin": 13637, "Dockerfile": 16} | package com.github.alikemalocalan.greentunnel4jvm.utils
import arrow.core.*
import arrow.core.extensions.fx
import com.github.alikemalocalan.greentunnel4jvm.models.HttpRequest
import io.netty.buffer.ByteBuf
import io.netty.buffer.Unpooled
import io.netty.channel.Channel
import io.netty.channel.ChannelFuture
import io.... | 0 | null | 0 | 0 | b037598790935c9d5c318d9a9fbe3a721993e09c | 3,959 | greentunnel4jvm | MIT License |
src/main/kotlin/com/vengateshm/entities/Users.kt | vengateshm | 426,101,996 | false | {"Kotlin": 14190} | package com.vengateshm.entities
import org.ktorm.schema.Table
import org.ktorm.schema.int
import org.ktorm.schema.varchar
object Users : Table<Nothing>("users") {
val id = int("id").primaryKey()
val username = varchar("username")
val password = varchar("<PASSWORD>")
} | 0 | Kotlin | 0 | 0 | 0f6b01fdb2197710e43edf9c8923c8c235d5e7ab | 306 | ktor_notes_app_REST_API | Apache License 2.0 |
spesialist-selve/src/main/kotlin/no/nav/helse/modell/kommando/TilbakedateringBehandlet.kt | navikt | 244,907,980 | false | {"Kotlin": 2818632, "PLpgSQL": 29687, "HTML": 1741, "Dockerfile": 258} | package no.nav.helse.modell.kommando
import com.fasterxml.jackson.databind.JsonNode
import no.nav.helse.mediator.GodkjenningMediator
import no.nav.helse.mediator.Kommandostarter
import no.nav.helse.mediator.meldinger.Personmelding
import no.nav.helse.mediator.oppgave.OppgaveService
import no.nav.helse.modell.automatis... | 1 | Kotlin | 3 | 0 | 85cee4011126da24ec113b7f9a52baba808a107d | 4,217 | helse-spesialist | MIT License |
solar/src/main/java/com/chiksmedina/solar/bold/essentionalui/HomeAngle.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.bold.essentionalui
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.Compan... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 2,816 | SolarIconSetAndroid | MIT License |
src/book/Book.kt | informramiz | 134,051,168 | false | {"Kotlin": 14872} | package book
open class Book(val title: String, val author: String) {
private var currentPage = 0;
open fun readPage() {
currentPage++
}
}
class eBook(title: String, author: String, val format: String = "text"): Book(title, author) {
private var wordCount = 0;
override fun readPage() {
... | 0 | Kotlin | 0 | 0 | 9cc1ea758015c98e735841f32b39db00a9aa17cd | 351 | kotlin-bootcamp | Apache License 2.0 |
src/main/kotlin/com/skillw/asahi/core/parser/prefix/Lang.kt | Skillw | 583,251,101 | false | {"Kotlin": 94989, "Java": 4431} | package com.skillw.asahi.core.parser.prefix
import com.skillw.asahi.api.annotation.AsahiMember
import com.skillw.asahi.api.member.ast.expr.Block
import com.skillw.asahi.api.member.ast.expr.DefFunction
import com.skillw.asahi.api.member.ast.expr.DefVar
import com.skillw.asahi.api.member.ast.expr.Sized
import com.skillw... | 0 | Kotlin | 1 | 7 | a78bce9a19c066bd318ec81450fdfdd7dccfc831 | 3,876 | Asahi | Creative Commons Zero v1.0 Universal |
app/src/main/java/io/github/joaogouveia89/checkmarket/marketList/presentation/MarketListScreen.kt | joaogouveia89 | 842,192,758 | false | {"Kotlin": 143810} | package io.github.joaogouveia89.checkmarket.marketList.presentation
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import io.github.joaogou... | 0 | Kotlin | 0 | 0 | 7f5849b6b729e8b05dc0f51d451dfe66c72b574b | 1,628 | CheckMarket | MIT License |
presentation/src/main/java/com/mikhaellopez/presentation/scenes/cardlist/CardListViewModel.kt | lopspower | 522,617,808 | false | {"Kotlin": 168656, "Java": 749} | package com.mikhaellopez.presentation.scenes.cardlist
import com.mikhaellopez.domain.model.Card
import com.mikhaellopez.domain.usecases.CheckCard
import com.mikhaellopez.domain.usecases.GetListCard
import com.mikhaellopez.domain.usecases.RefreshListCard
import com.mikhaellopez.presentation.exception.ErrorMessageFactor... | 0 | Kotlin | 6 | 111 | ce41ce693cdb09facc455224b8af8fedcff74ad1 | 2,432 | PokeCardCompose | Apache License 2.0 |
hacker-tools/src/commonMain/kotlin/tech/lhzmrl/multi/hacker/netease/model/request/WebLogRequest.kt | lhzmrl | 266,673,231 | false | {"Kotlin": 22742} | package tech.lhzmrl.multi.hacker.netease.model.request
import kotlinx.serialization.Serializable
@Serializable
class WebLogRequest {
var logs: String? = null
} | 0 | Kotlin | 0 | 0 | a194ddd49610a15a4c87d980e8b3e1662c49fc69 | 165 | HackerTools | MIT License |
ktx/src/main/java/com/kotlin/android/ktx/ext/span/SpanExt.kt | R-Gang-H | 538,443,254 | false | null | package com.kotlin.android.ktx.ext.span
import android.R
import android.content.Context
import android.graphics.Typeface
import android.graphics.drawable.Drawable
import android.os.Build
import android.text.*
import android.text.style.*
import android.util.Range
import android.view.View
import androidx.annotation.Colo... | 0 | Kotlin | 0 | 1 | e63b1f9a28c476c1ce4db8d2570d43a99c0cdb28 | 9,263 | Mtime | Apache License 2.0 |
app/src/main/java/com/zobaer53/zedmovies/ui/designsystem/component/Snackbar.kt | zobaer53 | 661,586,013 | false | {"Kotlin": 498107, "JavaScript": 344099, "C++": 10825, "CMake": 2160} |
package com.zobaer53.zedmovies.ui.designsystem.component
import androidx.compose.material3.Snackbar
import androidx.compose.material3.SnackbarHost
import androidx.compose.material3.SnackbarHostState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.staticCompositionLocalOf
import androidx.co... | 0 | Kotlin | 3 | 6 | 1e70d46924b711942b573364745fa74ef1f8493f | 1,396 | NoFlix | Apache License 2.0 |
src/main/kotlin/dependencies/model/RepositoryInfoDto.kt | fraunhofer-iem | 738,423,065 | false | {"Kotlin": 67185, "Dockerfile": 1484} | package dependencies.model
import kotlinx.serialization.Serializable
@Serializable
data class RepositoryInfoDto(val url: String, val revision: String, val projects: List<ProjectDto>)
| 4 | Kotlin | 0 | 0 | d2dde21a9c6bf3ceb966f4f5d748e7bb6861721f | 185 | Libyear-ORT | MIT License |
baselib/src/main/java/com/dol/baselib/binding/ViewBinding.kt | dulijiedev | 213,852,322 | false | {"Gradle": 10, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 8, "Batchfile": 1, "Markdown": 1, "Proguard": 7, "Java": 26, "XML": 35, "Kotlin": 72, "INI": 2} | package com.dol.baselib.binding
import android.view.View
import androidx.databinding.BindingAdapter
import com.dol.baselib.command.BindingCommand
import java.util.concurrent.TimeUnit
import com.jakewharton.rxbinding3.view.clicks
/**
* Created by dlj on 2019/9/29.
*/
/**
* requireAll 是意思是是否需要绑定全部参数, false为否
* View... | 0 | Kotlin | 0 | 0 | c935a0ace1af8824085163da72255f78860047c5 | 1,029 | AppRxDemo | Apache License 2.0 |
app/src/main/java/com/example/fitnesslog/core/utils/SafeCall.kt | Mark-Vasquez | 684,065,542 | false | {"Kotlin": 86378} | package com.example.fitnesslog.core.utils
suspend fun <T> safeCall(call: suspend () -> T): Resource<T> {
return try {
Resource.Success(data = call())
} catch (e: Exception) {
Resource.Error(errorMessage = e.toErrorMessage())
}
} | 2 | Kotlin | 0 | 0 | e68277218dd3f9c53cb9fecf9023307359404bf9 | 257 | Fitness-Log | Apache License 2.0 |
lib_webbasic/src/main/kotlin/io/clistery/webbasic/bridge/IBridge.kt | CListery | 563,166,095 | false | null | package io.clistery.webbasic.bridge
/**
* Bridge interface
*/
internal interface IBridge {
/**
* bridge connect create
*/
fun onBridgeCreate(token: String)
/**
* bridge connect state ready
*/
fun onBridgeReady()
/**
* callback by js call native
*/
fun o... | 0 | Kotlin | 1 | 0 | b276be451283999be287ed8b42bddbee152a96a2 | 529 | WebBasic | MIT License |
app/src/main/java/com/jymj/zhglxt/zjd/activity/FrameYewuDeteil.kt | wyh19950930 | 611,652,628 | false | null | package com.jymj.zhglxt.zjd.activity
import android.view.View
import com.jymj.zhglxt.R
import com.jymj.zhglxt.ldrkgl.home.bean.YlFolwEntity
import com.jymj.zhglxt.login.contract.FrameYewuContract
import com.jymj.zhglxt.login.model.FrameYewuModel
import com.jymj.zhglxt.login.presenter.FrameYewuPresenter
import com.sets... | 0 | Kotlin | 0 | 0 | 0ec2ac3a76719d323eed98edcf9df48cdc4050da | 41,363 | ZHGLXT_YBC | Apache License 2.0 |
src/main/kotlin/ru/ogrezem/testTornado1/app/MyApp.kt | ogrezem | 146,788,223 | false | null | package ru.ogrezem.testTornado1.app
import ru.ogrezem.testTornado1.style.Styles
import ru.ogrezem.testTornado1.view.MainView
import tornadofx.App
import java.io.File
import java.util.logging.*
import java.io.FileOutputStream
import java.io.PrintStream
class MyApp: App(MainView::class, Styles::class) {
} | 0 | Kotlin | 0 | 0 | 6bff1fb1725c5b3096643884075c8a64fae69c23 | 308 | morseDecoder | Apache License 2.0 |
src/main/kotlin/com/swisschain/matching/engine/database/cache/AssetPairsCache.kt | swisschain | 255,464,363 | false | null | package com.swisschain.matching.engine.database.cache
import com.swisschain.matching.engine.daos.AssetPair
import com.swisschain.matching.engine.database.DictionariesDatabaseAccessor
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.an... | 1 | null | 1 | 1 | 5ef23544e9c5b21864ec1de7ad0f3e254044bbaa | 3,588 | Exchange.MatchingEngine | Apache License 2.0 |
openrndr/src/main/kotlin/sketch/S18_GlowingGraph.kt | ericyd | 250,675,664 | false | null | /**
* WOW
* What did we learn today?
*
* Do NOT add excessive layers to the compositor.
* DO add nested loops within a single Layer to add all your things at once.
*
* Circle packing algorithm based on
* http://www.codeplastic.com/2017/09/09/controlled-circle-packing-with-processing/
*/
package sketch
import ... | 2 | Kotlin | 1 | 56 | 09511d4a78272f9de1e9fa9626de3c0cb7ba3177 | 6,057 | generative-art | MIT License |
app/src/main/java/com/act/code/Main.kt | BrinsLee | 682,033,488 | false | null | package com.act.code
import com.act.code.Config.activityClassMap
import com.act.code.Config.fragmentClassMap
import com.act.code.Config.normalClassMap
import com.act.code.tools.*
import java.io.File
object Main {
fun generateNomClass() {
val packageSize = Config.packageSize // 创建包的个数
repeat(packa... | 0 | Kotlin | 0 | 0 | 4438a0ec789aa2da1822fe63be909f2107ef676b | 4,673 | GenerateCode | Apache License 2.0 |
icp_kotlin_kit/src/main/java/com/bity/icp_kotlin_kit/data/datasource/api/model/ContentApiModel.kt | ThomasConstantinBity | 824,624,205 | false | {"Kotlin": 554595, "Rust": 313094} | package com.bity.icp_kotlin_kit.data.datasource.api.model
import com.bity.icp_kotlin_kit.data.datasource.api.enum.ContentRequestType
import com.bity.icp_kotlin_kit.util.OrderIndependentHash
import com.fasterxml.jackson.annotation.JsonProperty
// Need to use sneak case because of order independent hash
internal abstra... | 1 | Kotlin | 2 | 0 | e3e7f9086aebf3997cf7747f98efec81f3a654bb | 544 | ICP-Kotlin-Kit | MIT License |
ConnectSDK/src/test/kotlin/com/zendesk/connect/TestLogAppender.kt | isabella232 | 478,424,464 | true | {"INI": 2, "YAML": 1, "Gradle": 10, "Shell": 3, "Markdown": 4, "Batchfile": 2, "Proguard": 4, "Text": 1, "Ignore List": 4, "Java": 112, "Java Properties": 2, "XML": 25, "Kotlin": 45} | package com.zendesk.connect
import com.zendesk.logger.Logger
class TestLogAppender: Logger.LogAppender {
val logs = arrayListOf<String>()
override fun log(priority: Logger.Priority?, tag: String?, message: String?, throwable: Throwable?) {
logs.add(message.orEmpty())
}
fun contains(message:... | 0 | null | 0 | 0 | 3a274bae492516d922f4f4046be5d1bb4f341772 | 439 | connect-android-sdk | Apache License 2.0 |
src/main/java/catmoe/fallencrystal/moefilter/network/bungee/util/event/EventCallMode.kt | CatMoe | 638,486,044 | false | null | /*
* Copyright 2023. CatMoe / FallenCrystal
*
* 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 o... | 4 | Kotlin | 0 | 8 | a9d69f468eea2f5dfdcb07aa7a9a6e4496938c17 | 1,246 | MoeFilter | Apache License 2.0 |
app/src/main/java/space/pal/sig/view/splash/SplashViewModel.kt | icatalin201 | 179,758,397 | false | null | package space.pal.sig.view.splash
import android.app.Application
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
import space.pal.sig.service.DataSyncWorker
import space.pal.sig.service.ScheduleManager
import space.pal.sig.util.SharedPreferencesUtil
import space.pal.sig.view.BaseViewModel... | 0 | Kotlin | 0 | 0 | 9f8485e7ef1580be8c84dd34babd99571bed277a | 1,309 | SpaceNow | Apache License 2.0 |
api/src/main/kotlin/com/myna/mnbt/codec/BinaryCodecInstances.kt | Cmyna | 594,304,817 | false | null | package com.myna.mnbt.codec
import com.myna.mnbt.utils.Extensions.toBasic
import com.myna.mnbt.utils.Extensions.toBytes
import com.myna.mnbt.tag.*
import com.myna.mnbt.reflect.TypeCheckTool
import java.lang.IllegalArgumentException
import com.myna.mnbt.*
import com.myna.mnbt.core.CodecTool
import com.myna.mnbt.presets... | 0 | Kotlin | 0 | 0 | 66cb51428a0aeec7773929a510b57530d4846eca | 12,134 | mnbt-in-development- | Apache License 2.0 |
src/commonMain/kotlin/CastleScene.kt | darknightz0 | 827,206,568 | false | {"Kotlin": 328817} |
import korlibs.datastructure.*
import korlibs.event.*
import korlibs.io.file.std.*
import korlibs.korge.input.*
import korlibs.korge.scene.*
import korlibs.korge.view.*
import korlibs.korge3d.*
import korlibs.korge3d.format.*
import korlibs.korge3d.format.gltf2.*
import korlibs.korge3d.shape.*
import korlibs.math.geo... | 0 | Kotlin | 0 | 0 | 39b506c69ec18ac6e95aeb62570c1ee8d17bfdb8 | 6,795 | korge-k3d-0.0.5_exercise | MIT License |
src/main/kotlin/br/com/zup/chavePix/registroChave/RegistroChaveRequest.kt | Thalyta-dev | 385,303,397 | true | {"Kotlin": 24609, "Smarty": 1792, "Dockerfile": 115} | package br.com.zup.chavePix.registroChave
import br.com.zup.edu.shared.validation.ValidUUID
import com.zup.PixRegistraRequest
import io.micronaut.core.annotation.Introspected
import java.util.*
import javax.validation.constraints.NotNull
@Introspected
data class RegistroChaveRequest(
@field: NotNull val tipoCha... | 0 | Kotlin | 0 | 0 | 00a93ac6eb71af323fd774d3cdf263d1500d60d7 | 1,712 | orange-talents-05-template-pix-keymanager-rest | Apache License 2.0 |
auth/src/main/java/studio/crud/feature/auth/authentication/mfa/model/MfaTypePairPojo.kt | crud-studio | 390,327,908 | false | null | package studio.crud.feature.auth.authentication.mfa.model
import studio.crud.feature.auth.authentication.mfa.enums.MfaType
data class MfaTypePairPojo(val entityId: Long, val mfaType: MfaType) | 6 | Kotlin | 0 | 0 | 6cb1d5f7b3fc7117c9fbaaf6708ac93ae631e674 | 193 | feature-depot | MIT License |
serialization/src/main/kotlin/io/github/airflux/serialization/core/value/ValueNode.kt | airflux | 336,002,943 | false | null | /*
* Copyright 2021-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 0 | Kotlin | 3 | 3 | 9dfcfe4ec288e27f150beeef12dff45f131d0805 | 5,667 | airflux-serialization | Apache License 2.0 |
mewwalletkit/src/androidTest/java/com/myetherwallet/mewwalletkit/eip/eip2930/Eip2930TransactionTest.kt | MyEtherWallet | 225,455,950 | false | {"Kotlin": 656659} | package com.myetherwallet.mewwalletkit.eip.eip2930
import com.myetherwallet.mewwalletkit.bip.bip44.Address
import com.myetherwallet.mewwalletkit.bip.bip44.Network
import com.myetherwallet.mewwalletkit.bip.bip44.PrivateKey
import com.myetherwallet.mewwalletkit.core.extension.hexToByteArray
import com.myetherwallet.meww... | 3 | Kotlin | 31 | 55 | 20eddbc0ca5bb973ca5e5ba4a8b4de7d745f12a9 | 4,787 | mew-wallet-android-kit | MIT License |
vertx-consul-service/src/main/kotlin/io/vertx/kotlin/ext/consul/ServiceEntry.kt | tsegismont | 156,562,152 | true | {"Java": 63718, "Kotlin": 30327, "Shell": 333} | package io.vertx.kotlin.ext.consul
import io.vertx.ext.consul.ServiceEntry
import io.vertx.ext.consul.Check
import io.vertx.ext.consul.Node
import io.vertx.ext.consul.Service
fun ServiceEntry(
checks: Iterable<io.vertx.ext.consul.Check>? = null,
node: io.vertx.ext.consul.Node? = null,
service: io.vertx.ext.cons... | 0 | Java | 0 | 0 | ab2732d6e3eee1c1b28f711bca35e640eaac5cba | 574 | vertx-client-services | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/SortCircle.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.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
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,453 | icons | MIT License |
kodando-rxjs/src/main/kotlin/kodando/rxjs/observable/Timer.kt | kodando | 81,663,289 | false | null | @file:Suppress("UnsafeCastFromDynamic")
package kodando.rxjs.observable
import kodando.rxjs.JsFunction
import kodando.rxjs.Observable
import kodando.rxjs.fromModule
import kodando.rxjs.import
import kotlin.js.Date
private val timer_: JsFunction =
fromModule("rxjs") import "timer"
fun timer(initialDelay: Int, per... | 12 | Kotlin | 5 | 76 | f1428066ca01b395c1611717fde5463ba0042b19 | 514 | kodando | MIT License |
app/src/main/java/com/msa/oneway/core/BaseMixSideEffect.kt | abhimuktheeswarar | 291,122,473 | false | null | package com.msa.oneway.core
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.disposables.Disposable
import kotlinx.coroutines.CoroutineScope
import kotlin.coroutines.CoroutineContext
/**
* Created by Abhi Muktheeswarar on 19-August-2020
*/
@Suppress("LeakingThis")
abstract class BaseMixSide... | 0 | Kotlin | 0 | 1 | 3916ccacabe7303a01806ea94087d420edf6d902 | 1,112 | OneWayAndroid | Apache License 2.0 |
app/src/main/java/at/deflow/materialcalculator/domain/Operation.kt | Flowdawan | 539,007,326 | false | null | package at.deflow.materialcalculator.domain
enum class Operation(val symbol: Char) {
ADD('+'),
SUBTRACT('-'),
MULTIPLY('x'),
DIVIDE('/'),
PERCENT('%'),
}
val operationSymbols = Operation.values().map { it.symbol }.joinToString("")
fun operationFromSymbol(symbol: Char): Operation {
return Oper... | 0 | Kotlin | 0 | 0 | d8d46de23c33ae52036a57145404804361f06d4a | 425 | SimpleAndroidCalculator | MIT License |
door-runtime/src/commonMain/kotlin/com/ustadmobile/door/util/WeakRefOf.kt | UstadMobile | 344,538,858 | false | {"Kotlin": 1028056, "JavaScript": 1100, "HTML": 430, "Shell": 89} | package com.ustadmobile.door.util
expect fun <T: Any> weakRefOf(target: T): IWeakRef<T>
| 5 | Kotlin | 1 | 162 | 9912ce18848c6f3d4c5e78e06aeb78542e2670a5 | 89 | door | Apache License 2.0 |
composeApp/src/commonMain/kotlin/data/local/DataStoreRepository.kt | AbdulRehmanNazar | 812,858,902 | false | {"Kotlin": 6177, "Swift": 594} | package data.local
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.longPreferencesKey
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.catch
import kotlinx.corout... | 0 | Kotlin | 0 | 0 | 43f1dfe6e09edf65bf2f70f5deb92eeab41d2a60 | 1,062 | KMPDataStore | Apache License 2.0 |
app/src/main/java/co/kaush/msusf/movies/MSMovieVm.kt | anandpurushottam | 150,232,875 | true | {"Kotlin": 28721} | package co.kaush.msusf.movies
import android.arch.lifecycle.AndroidViewModel
import android.arch.lifecycle.ViewModel
import android.arch.lifecycle.ViewModelProvider
import co.kaush.msusf.MSApp
import co.kaush.msusf.movies.MSMovieEvent.ClickMovieEvent
import co.kaush.msusf.movies.MSMovieEvent.ClickMovieFromHistoryEvent... | 0 | Kotlin | 0 | 0 | ac06b1bed0bd9e117c5f8384f15c2380f7c27808 | 7,121 | movies-usf | Apache License 2.0 |
graphql-dgs/src/test/kotlin/com/netflix/graphql/dgs/OpenDirective.kt | Netflix | 317,375,887 | false | {"Kotlin": 1530406, "Java": 286741, "HTML": 14098, "Python": 8827, "TypeScript": 3328, "JavaScript": 2934, "Makefile": 1328} | /*
* Copyright 2021 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 88 | Kotlin | 289 | 3,037 | bd2d0c524e70a9d1d625d518a94926c7b53a7e7c | 1,054 | dgs-framework | Apache License 2.0 |
src/main/kotlin/org/valkyrienskies/physics_api/Aliases.kt | ValkyrienSkies | 377,763,637 | false | null | package org.valkyrienskies.physics_api
typealias ConstraintId = Int
typealias PhysicsBodyId = Int
| 0 | Kotlin | 0 | 0 | ce7fb72a5751e69c2d517f8b385c9a98da3080c6 | 99 | Valkyrien-Skies-Physics-API | Apache License 2.0 |
androidApp/src/main/java/app/trian/mvi/feature/quiz/listQuiz/ListQuizState.kt | triandamai | 652,614,502 | false | null | package app.trian.mvi.feature.quiz.listQuiz
import android.os.Parcelable
import app.trian.mvi.data.model.Quiz
import app.trian.mvi.data.utils.dummyQuiz
import app.trian.mvi.ui.extensions.Empty
import app.trian.mvi.ui.internal.contract.MviState
import kotlinx.parcelize.Parcelize
import kotlinx.parcelize.RawValue
import... | 0 | Kotlin | 0 | 2 | f5793b7cf9cd6b2d5eb89df1813666f7794da1ca | 609 | mvi | MIT License |
app/src/main/java/com/immortalidiot/wishescompose/logic/ClipboardHandler.kt | ImmortalIdiot | 862,416,448 | false | {"Kotlin": 64913} | package com.immortalidiot.wishescompose.logic
import android.content.Context
interface ClipboardHandler {
suspend fun copy(context: Context, copiedMessage: String)
suspend fun getLatestRecord(context: Context): String
}
| 0 | Kotlin | 0 | 0 | ac0cada634a64ea4d34d286cb8100e07b8bffdf8 | 230 | WishesCompose | MIT License |
src/main/kotlin/no/nav/aap/proxy/config/ServiceuserConfig.kt | navikt | 422,128,379 | false | {"Kotlin": 47051} | package no.nav.aap.proxy.config
import java.nio.charset.StandardCharsets.UTF_8
import java.util.*
import java.util.Base64.*
import org.springframework.boot.context.properties.ConfigurationProperties
@ConfigurationProperties("serviceuser")
data class ServiceuserConfig (val username: String, val password: String) {
... | 0 | Kotlin | 0 | 2 | fbd7d535fcaa235f10f74c7c1312a79b9474def2 | 412 | aap-fss-proxy | MIT License |
app/src/main/java/com/syleiman/gingermoney/ui/activities/add_edit_account/fragments/add/dependency_injection/AddAccountFragmentModuleBinds.kt | AlShevelev | 158,343,218 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Java": 4, "XML": 137, "Kotlin": 385, "JSON": 1} | package com.syleiman.gingermoney.ui.activities.add_edit_account.fragments.add.dependency_injection
import com.syleiman.gingermoney.ui.activities.add_edit_account.fragments.add.model.AddAccountModelImpl
import com.syleiman.gingermoney.ui.activities.add_edit_account.fragments.add.model.AddAccountModel
import dagger.Bind... | 1 | null | 1 | 1 | 91ef2b9bd5c19043104734b588940841fa6f9f4f | 496 | ginger-money | MIT License |
common/src/main/java/net/sistr/flexibleguns/client/overlay/HudOverlayRenderer.kt | SistrScarlet | 437,250,021 | false | {"Kotlin": 239434, "Java": 36089} | package net.sistr.flexibleguns.client.overlay
import com.google.common.collect.Lists
import net.fabricmc.api.EnvType
import net.fabricmc.api.Environment
import net.minecraft.client.MinecraftClient
import net.minecraft.client.util.math.MatrixStack
import net.sistr.flexibleguns.util.HudRenderable
import net.sistr.flexib... | 0 | Kotlin | 0 | 2 | c00fbbfbd98a253f971cb9f5c87a4cf3eef9b6a2 | 951 | FlexibleGuns | MIT License |
src/Chapter07/7.4_DestructuringDeclarations.kt | ldk123456 | 157,306,847 | false | {"Text": 1, "Ignore List": 1, "Markdown": 1, "XML": 11, "Kotlin": 180, "Java": 5} | package Chapter07.DestructuringDeclarations
data class Point(val x: Int, val y: Int)
fun main() {
val point = Point(10, 20)
val (x, y) = point //声明变量x、y,然后用p的组件来初始化
println(x) //>>>10
println(y) //>>>20
} | 1 | null | 1 | 1 | 301ea7daa495231ff878317311d7ded3a0fbcbc8 | 225 | KotlinInAction | Apache License 2.0 |
khelius-cli/src/main/kotlin/com/dgsd/khelius/cli/nft/GetNftEventsCommand.kt | dlgrech | 566,134,665 | false | {"Kotlin": 109465, "Shell": 106} | package com.dgsd.khelius.cli.nft
import com.dgsd.khelius.cli.util.accountArgument
import com.dgsd.khelius.nft.NftApi
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.core.requireObject
import kotlinx.coroutines.runBlocking
/**
* Returns all NFT events for a specific account.
*/
internal... | 0 | Kotlin | 0 | 2 | eec38ab3e3597902fcf25eae5f2edbf7606f46cc | 639 | khelius | Apache License 2.0 |
bootstrap-icons-compose/src/main/java/com/wiryadev/bootstrapiconscompose/bootstrapicons/filled/Trophy.kt | wiryadev | 380,639,096 | false | null | package com.wiryadev.bootstrapiconscompose.bootstrapicons.filled
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.S... | 0 | Kotlin | 0 | 2 | 1c199d953dc96b261aab16ac230dc7f01fb14a53 | 3,021 | bootstrap-icons-compose | MIT License |
library/src/commonMain/kotlin/dev/kryptonreborn/cbor/encoder/BaseEncoder.kt | KryptonReborn | 792,268,202 | false | {"Kotlin": 172331} | package dev.kryptonreborn.cbor.encoder
import com.ionspin.kotlin.bignum.integer.BigInteger
import com.ionspin.kotlin.bignum.integer.toBigInteger
import dev.kryptonreborn.cbor.CborEncoder
import dev.kryptonreborn.cbor.CborException
import dev.kryptonreborn.cbor.model.AdditionalInformation
import dev.kryptonreborn.cbor.... | 3 | Kotlin | 0 | 0 | 9e6601fae30474e9a675ea0cbc4e877efcfa0cd4 | 6,390 | kotlin-cbor | Apache License 2.0 |
app/src/main/kotlin/app/home/me/profile/ProfileViewImpl.kt | stoyicker | 291,049,724 | false | {"Java": 646382, "Kotlin": 423127, "Shell": 885} | package app.home.me.profile
import android.annotation.SuppressLint
import android.view.MotionEvent
import android.view.View
import android.widget.ImageView
import android.widget.ProgressBar
import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.core.widget.ContentLoadingProgressBar
i... | 1 | null | 1 | 1 | fecfefd7a64dc8c9397343850b9de4d52117b5c3 | 4,763 | dinger-unpublished | MIT License |
movie_streaming_app/android/app/src/main/kotlin/me/chromicle/movie_streaming_app/MainActivity.kt | ajay-prabhakar | 262,766,287 | false | null | package me.chromicle.movie_streaming_app
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 2 | Dart | 129 | 929 | 1b2099fdb7151731d0caf55ae7ab483238a3f963 | 137 | awesome-flutter-ui | MIT License |
TrackMySleepQualityRoomAndTesting/app/src/main/java/com/example/android/trackmysleepquality/database/SleepDatabaseDao.kt | markgray | 230,240,820 | true | {"Kotlin": 1356167} | /*
* Copyright 2019, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | d914a0382556892b880393e35689111af98d999f | 3,951 | android-kotlin-fundamentals-apps | Apache License 2.0 |
app/src/main/java/com/example/suitmediamobiletest2024/ui/navigation/NavigationGraph.kt | ghaziakmalf | 840,893,769 | false | {"Kotlin": 30924} | package com.example.suitmediamobiletest2024.ui.navigation
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import com.example.suitmediamobiletest2024.ui.screens.FirstScreen
import com.example... | 0 | Kotlin | 0 | 0 | a33185400109be455a19a7d48c417f454a934792 | 1,293 | Suitmedia-Mobile-Test-2024 | MIT License |
app/src/main/java/com/example/suitmediamobiletest2024/ui/navigation/NavigationGraph.kt | ghaziakmalf | 840,893,769 | false | {"Kotlin": 30924} | package com.example.suitmediamobiletest2024.ui.navigation
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import com.example.suitmediamobiletest2024.ui.screens.FirstScreen
import com.example... | 0 | Kotlin | 0 | 0 | a33185400109be455a19a7d48c417f454a934792 | 1,293 | Suitmedia-Mobile-Test-2024 | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/ThirdMedal.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.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
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,858 | icons | MIT License |
src/main/kotlin/br/com/zup/osmarjunior/model/enums/TipoConta.kt | osmar-jr | 412,536,861 | true | {"Kotlin": 27801} | package br.com.zup.osmarjunior.model.enums
import br.com.zup.osmarjunior.TipoDeConta
enum class TipoConta(val grpcTipoDeConta: TipoDeConta) {
CONTA_CORRENTE(TipoDeConta.CONTA_CORRENTE),
CONTA_POUPANCA(TipoDeConta.CONTA_POUPANCA);
}
| 0 | Kotlin | 0 | 0 | 1a5c8c269c87b3f85e2c91926afe3728db682971 | 242 | orange-talents-07-template-pix-keymanager-rest | Apache License 2.0 |
demo-projects/arrow-books-library/src/main/kotlin/org/jesperancinha/arrow/books/Main.kt | jesperancinha | 565,555,551 | false | {"Kotlin": 137277, "Makefile": 21431, "Java": 7568, "Scala": 3899, "Shell": 3824, "Fortran": 3072, "Common Lisp": 2510, "COBOL": 2254, "Clojure": 2232, "Haskell": 1370, "Scheme": 870, "Go": 709, "Dockerfile": 700, "Standard ML": 644, "Erlang": 522, "C": 438} | package org.jesperancinha.arrow.books
import org.jesperancinha.arrow.books.collections.MemoizationService
import org.jesperancinha.arrow.books.coroutines.races.RacesService
import org.jesperancinha.arrow.books.design.either.TheVillageOfThePeople
import org.jesperancinha.arrow.books.immutable.optics.TheVillageOfThePeop... | 0 | Kotlin | 0 | 0 | dacd8b4a6d6d2c5a36109c04fa5d3a6581c072de | 849 | asnsei-the-right-waf | Apache License 2.0 |
src/main/kotlin/io/framed/framework/matcher/TreeMatcher.kt | pixix4 | 180,147,298 | false | null | package io.framed.framework.matcher
import io.framed.framework.ModelTree
import io.framed.model.bpmn.model.BpmnElement
import io.framed.model.bros.model.BrosElement
class TreeMatcher(
private val bpmnTree: ModelTree<BpmnElement>,
private val brosTree: ModelTree<BrosElement>
) {
private val match... | 0 | Kotlin | 0 | 0 | 99095e08c0377c5647da4b546e2c0ed61a099604 | 2,990 | bpmn-bros-verifier | MIT License |
rigel/src/main/java/com/artear/rigel/extensions/FragmentExt.kt | Artear | 164,138,931 | false | null | /*
* Copyright 2019 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 0 | Kotlin | 0 | 0 | c80fdcb8eb62ee2470537a1219636feb924688a6 | 1,112 | app_lib_rigel_android | Apache License 2.0 |
src/main/kotlin/io/crstudio/tutor/auth/repo/SignUpCodeRepo.kt | crstudio-io | 808,890,404 | false | {"Kotlin": 54203, "HTML": 1160, "Dockerfile": 343} | package io.crstudio.tutor.auth.repo
import io.crstudio.tutor.auth.model.SignUpCode
import org.springframework.data.jpa.repository.JpaRepository
import java.time.LocalDateTime
interface SignUpCodeRepo : JpaRepository<SignUpCode, Long> {
fun findByCodeAndValidUntilAfter(code: String, now: LocalDateTime): SignUpCode... | 2 | Kotlin | 0 | 0 | ab053d5c8c1428ebb897770bf5a708e8f82989a5 | 323 | boot-aps-tutor | MIT License |
2020 Fall - Mobile Application Development (Kotiln | Java)/Task3-Different Layouts/app/src/main/java/com/example/layoutsexample/ui/constraints/ConstraintsViewModel.kt | iamaydan | 342,936,046 | false | null | package com.example.layoutsexample.ui.constraints
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class ConstraintsViewModel : ViewModel() {
private val _text = MutableLiveData<String>().apply {
value = "This is constraints layout example"
... | 0 | Kotlin | 0 | 0 | 9269a4df73bf3bf35749d5f44acc69b15a3243a3 | 366 | University | Apache License 2.0 |
app/src/main/java/com/example/exchange/ui/exchange/ExchangeFragment.kt | Arrowsome | 481,321,609 | false | {"Kotlin": 25331} | package com.example.exchange.ui.exchange
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import androidx.core.cont... | 0 | Kotlin | 0 | 0 | 69989b545ddd9b70f0e0cc1771e42d85e6b20c69 | 3,739 | android-exchange-sample | MIT License |
plugins/kotlin/idea/tests/testData/inspectionsLocal/redundantWith/simple2.kt | ingokegel | 72,937,917 | true | null | // WITH_STDLIB
fun test(s: String) {
with<caret> (s, {
println("1")
println("2")
})
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 109 | intellij-community | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/inspectionsLocal/redundantWith/simple2.kt | ingokegel | 72,937,917 | true | null | // WITH_STDLIB
fun test(s: String) {
with<caret> (s, {
println("1")
println("2")
})
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 109 | intellij-community | Apache License 2.0 |
app/src/main/java/com/rifqimfahmi/alldogbreeds/data/network/model/giphy/Meme.kt | rifqimfahmi | 125,337,589 | false | null | package com.rifqimfahmi.alldogbreeds.data.network.model.giphy
import com.google.gson.annotations.SerializedName
/*
* Created by <NAME> on 26/02/18.
*/
data class Meme (
@SerializedName("slug")
val slug: String,
@SerializedName("url")
val giphySource: String,
@SerializedName(... | 0 | Kotlin | 1 | 4 | b29dfdd8c690780f649825ef471ab8c590bebd0c | 433 | all-dog-breeds | Apache License 2.0 |
src/integration/kotlin/org/springframework/samples/petclinic/restassured/RestAssuredMockMvcTest.kt | junoyoon | 664,329,578 | false | null | package org.springframework.samples.petclinic.restassured
import com.fasterxml.jackson.databind.ObjectMapper
import io.kotest.data.headers
import io.kotest.inspectors.forAll
import io.kotest.matchers.collections.shouldHaveSize
import io.kotest.matchers.collections.shouldNotHaveSize
import io.kotest.matchers.nulls.shou... | 0 | Kotlin | 0 | 0 | c339ab5260583d07871bfb2617f35f754d8b3492 | 4,747 | fastcampus-test | Apache License 2.0 |
publish-component/src/main/java/com/kotlin/android/publish/component/widget/editor/EditorMenuTextSizeView.kt | R-Gang-H | 538,443,254 | false | null | package com.kotlin.android.publish.component.widget.editor
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.widget.FrameLayout
import com.kotlin.android.ktx.ext.core.getDrawable
import com.kotlin.android.ktx.ext.core.getShapeDraw... | 0 | Kotlin | 0 | 1 | e63b1f9a28c476c1ce4db8d2570d43a99c0cdb28 | 4,765 | Mtime | Apache License 2.0 |
src/main/kotlin/ru/jmorozov/prodkalendar/telegram/bot/service/ProductiveKalendarClient.kt | jmorozov | 147,013,123 | false | null | package ru.jmorozov.prodkalendar.telegram.bot.service
import ru.jmorozov.prodkalendar.telegram.dto.DateRange
import ru.jmorozov.prodkalendar.telegram.dto.DayType
import java.time.LocalDate
interface ProductiveKalendarClient {
fun getHolidaysBetween(range: DateRange): String?
fun getWorkdaysBetween(range: Dat... | 0 | Kotlin | 0 | 1 | 1ce1279d38e55494874201a034de9681e55d8fa0 | 505 | productive-kalendar-telegram-bot | MIT License |
app/src/main/java/com/yesser/booknotes/BookListAdapter.kt | yessermiranda13 | 320,678,774 | false | null | package com.yesser.booknotes
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ExpandableListView
import androidx.appcompat.view.menu.ActionMenuItemView
import androidx... | 0 | Kotlin | 0 | 0 | 1a0eee4b5eb2f738d693ae8f89760b8c78a970c4 | 2,339 | GuardaLibrosAndroid | MIT License |
db-objekts-core/src/main/kotlin/com/dbobjekts/codegen/writer/SchemaSourceBuilder.kt | jaspersprengers | 576,889,038 | false | {"Kotlin": 1251609, "PLpgSQL": 45872, "Dockerfile": 2463} | package com.dbobjekts.codegen.writer
import com.dbobjekts.codegen.metadata.DBSchemaDefinition
import com.dbobjekts.util.StringUtil
class SchemaSourceBuilder(val schema: DBSchemaDefinition) {
private val strBuilder = StringBuilder()
fun buildForApplication(): String {
strBuilder.append("package ${sche... | 0 | Kotlin | 2 | 4 | 5b66aae10cae18a95f77c29ce55b11b03e53500b | 1,229 | db-objekts | Apache License 2.0 |
app/src/main/java/com/donnelly/steve/twitterapp/TwitterApplication.kt | sdonn3 | 151,998,993 | false | null | package com.donnelly.steve.twitterapp
import android.app.Application
import android.util.Log
import com.twitter.sdk.android.core.DefaultLogger
import com.twitter.sdk.android.core.Twitter
import com.twitter.sdk.android.core.TwitterAuthConfig
import com.twitter.sdk.android.core.TwitterConfig
class TwitterApplication ... | 0 | Kotlin | 0 | 0 | 5108e3be46ccd53927eefd04c871fccb899047b5 | 660 | TwitterApp | Apache License 2.0 |
app/src/main/java/com/example/solarsystemclean/di/UseCaseModule.kt | luizcjr | 347,671,875 | false | null | package com.example.solarsystemclean.di
import com.example.solarsystemclean.domain.usecase.*
import org.koin.dsl.module
val useCaseModule = module {
factory<UserUseCase> {
UserUseCaseImpl(get())
}
factory<PlanetsUseCase> {
PlanetsUseCaseImpl(get())
}
factory<PlanetsFavoritesUseC... | 0 | Kotlin | 0 | 0 | 41c8c1809b95994320e91761ea3758be078565f2 | 377 | solar_system | MIT License |
ktex/src/main/java/nay/lib/ktex/broadcast/receiver/OnEachBroadcastReceiver.kt | Naaatan | 395,909,215 | false | null | /*
* Created by Naaatan on 2021/10/22 10:11
* Copyright (c) 2021 . All rights reserved.
* Last modified 2021/10/22 9:52
*/
package nay.lib.ktex.broadcast.receiver
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
fun broadcastReceiver(f: OnEachBroadcastReceiver... | 0 | Kotlin | 0 | 0 | f528b1269967362d91032e31c8833ed46734ff93 | 1,291 | android-nay-ktex | Apache License 2.0 |
app/src/main/java/in/co/droidcon/android/MainActivity.kt | droidcon-india | 238,626,734 | false | null | package `in`.co.droidcon.android
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import `in`.co.droidcon.android.adapter.MainAdapter
import `in`.co.droidcon.models.BreedModel
import kotlinx.android.synthetic.main.activity_main.*
import ko... | 2 | Kotlin | 0 | 2 | de406b9e68fefe85742445d0173d04f42f6ce913 | 1,166 | droidcon-india-app-2020 | Apache License 2.0 |
app/src/main/java/com/timepack/countpose/home/HomeScreen.kt | Oleur | 344,594,254 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 3 | 18 | d1305184cbccf0de2817ce2f5a9fbda38a022eb9 | 12,035 | TimePack-CountPose | Apache License 2.0 |
analysis/analysis-api/testData/components/resolver/singleByPsi/nestedTypes/ResolveNamedCompanionInCompanionType.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | package foo.bar.baz
class X {
companion object COMP {
fun lol() {}
}
}
class E {
val x = foo.bar.baz.X.CO<caret>MP
} | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 138 | kotlin | Apache License 2.0 |
EvoMaster/core/src/main/kotlin/org/evomaster/core/problem/rest/service/BlackBoxRestFitness.kt | BrotherKim | 397,139,860 | false | {"Markdown": 32, "Shell": 14, "Maven POM": 66, "Text": 16, "Ignore List": 13, "Java": 1366, "SQL": 44, "YAML": 13, "JSON": 37, "JavaScript": 183, "XML": 14, "Mermaid": 1, "Java Properties": 36, "INI": 15, "HTML": 52, "Dockerfile": 2, "CSS": 8, "JSON with Comments": 3, "Less": 8, "SVG": 16, "Kotlin": 541, "OASv2-yaml": ... | package org.evomaster.core.problem.rest.service
import com.google.inject.Inject
import org.evomaster.core.problem.rest.RestAction
import org.evomaster.core.problem.rest.RestCallAction
import org.evomaster.core.problem.rest.RestCallResult
import org.evomaster.core.problem.rest.RestIndividual
import org.evomaster.core.r... | 1 | null | 1 | 1 | a7a120fe7c3b63ae370e8a114f3cb71ef79c287e | 2,934 | ASE-Technical-2021-api-linkage-replication | MIT License |
library/plugins/influxdb/influxdb2-plugin/src/main/kotlin/io/github/cdsap/talaiot/plugin/influxdb2/Influxdb2Configuration.kt | cdsap | 157,973,716 | false | {"Kotlin": 394787, "JavaScript": 16950, "Shell": 6008, "Dockerfile": 2382, "CSS": 1662, "HTML": 737} | package io.github.cdsap.talaiot.plugin.influxdb2
import groovy.lang.Closure
import io.github.cdsap.talaiot.publisher.PublishersConfiguration
import io.github.cdsap.talaiot.publisher.influxdb2.InfluxDb2PublisherConfiguration
import org.gradle.api.Project
class Influxdb2Configuration(project: Project) : PublishersConfi... | 26 | Kotlin | 37 | 583 | 5a1fe716c92aa5d9895f543e75ddeebfd7d47df2 | 1,178 | Talaiot | MIT License |
app/src/main/java/jp/yitt/mixedimage/example/MainActivity.kt | yt-tkhs | 119,998,851 | false | {"Java": 10809, "Kotlin": 5029} | package jp.yitt.mixedimage.example
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.ImageView
import android.widget.SeekBar
import jp.yitt.mixedimage.MixedImage
class MainActivity : AppCompatActivity() ... | 1 | Java | 1 | 1 | f032d1f22184e32242d805b1815465d2786d8cd4 | 3,611 | MixedImage | Apache License 2.0 |
src/main/kotlin/groupnet/gn/GNDiagram.kt | AlmasB | 174,802,362 | false | null | package groupnet.gn
import groupnet.euler.*
import groupnet.gui.SettingsController
import groupnet.network.NetworkEdge
import groupnet.network.NetworkGraph
import groupnet.util.Log
import groupnet.util.combinations2
import groupnet.util.numIntersectionsLinePolygon
import groupnet.util.symmetricDifference
/**
*
*
*... | 2 | null | 1 | 1 | 4aaa9de60ecdba5b9402b809e1e6e62489a1d790 | 3,583 | D2020 | Apache License 2.0 |
rxhttp/src/main/java/rxhttp/wrapper/await/AwaitTimeout.kt | FrozenFreeFall | 260,648,176 | true | {"Java Properties": 2, "Markdown": 1, "Java": 101, "Proguard": 2, "Kotlin": 35} | package rxhttp.wrapper.await
import kotlinx.coroutines.withTimeout
import rxhttp.IAwait
/**
* 请求超时处理
* User: ljx
* Date: 2020/3/21
* Time: 17:06
*/
internal class AwaitTimeout<T>(
private val iAwait: IAwait<T>,
private var timeoutMillis: Long = 0L
) : IAwait<T> {
override suspend fun await() = withT... | 0 | null | 0 | 1 | 9da130ca5a320dfb455ad1aaf40f951dc542811f | 362 | okhttp-RxHttp | Apache License 2.0 |
app/src/main/java/view/splash/SplashActivity.kt | ariesvelasquez | 168,901,580 | false | {"Kotlin": 16657, "Java": 322} | package view.splash
import android.content.pm.ActivityInfo
import android.content.res.Configuration
import android.os.Bundle
import com.android.wordspeak.R
import timber.log.Timber
import view.BaseActivity
import java.util.*
import kotlin.concurrent.schedule
class SplashActivity : BaseActivity() {
override fun... | 0 | Kotlin | 0 | 0 | f4e2b286af65d285e34d27f018902d8394747b10 | 2,141 | WordSpeak | MIT License |
app/src/main/java/knf/kuma/favorite/FavoriteViewModel.kt | jordyamc | 119,774,950 | false | null | package knf.kuma.favorite
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import knf.kuma.commons.PrefsUtil
import knf.kuma.database.CacheDB
import knf.kuma.pojos.FavoriteObject
class FavoriteViewModel : ViewModel() {
fun getData(): LiveData<MutableList<FavoriteObject>> {
return if... | 24 | null | 39 | 159 | 99d8108ca5a9c32b89952aeb217319693df57688 | 573 | UKIKU | MIT License |
plugins/gitlab/src/org/jetbrains/plugins/gitlab/mergerequest/ui/GitLabToolWindowTabViewModel.kt | sutrosoftware | 251,488,669 | false | {"Text": 7106, "INI": 573, "YAML": 412, "Ant Build System": 10, "Batchfile": 34, "Shell": 621, "Markdown": 678, "Ignore List": 120, "Git Revision List": 1, "Git Attributes": 11, "EditorConfig": 244, "XML": 7056, "SVG": 3569, "Kotlin": 47685, "Java": 80051, "HTML": 3248, "Java Properties": 212, "Gradle": 431, "Maven POM... | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.plugins.gitlab.mergerequest.ui
import com.intellij.collaboration.async.mapStateScoped
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.StateFlow
import o... | 1 | null | 1 | 1 | fea02a6d5406d10ce0c18b1c23eb10a4acbd018e | 2,068 | intellij-community | Apache License 2.0 |
kdroidext/src/main/java/com/nowfal/kdroidext/kotx/ext/basic/Uri.kt | nowfalsalahudeen | 167,347,983 | false | null |
package com.nowfal.kdroidext.kotx.ext.basic
import android.net.Uri
/**
* Returns query parameter matching [param].
*/
operator fun Uri.get(param: String): String? = getQueryParameter(param)
| 1 | null | 1 | 29 | fb91a3febf73a3bb5f3582de2694c6f829cf3c58 | 197 | KdroidExt | Apache License 2.0 |
src/main/kotlin/org/intellij/plugin/tracker/utils/CredentialsManager.kt | JetBrains-Research | 277,519,535 | false | null | package org.intellij.plugin.tracker.utils
import com.intellij.credentialStore.CredentialAttributes
import com.intellij.credentialStore.Credentials
import com.intellij.credentialStore.generateServiceName
import com.intellij.ide.passwordSafe.PasswordSafe
/**
* This class handles the logic of storing web-hosted reposit... | 5 | null | 1 | 2 | 831e3eaa7ead78ffe277cb415b6f993139fb4de3 | 1,767 | linktracker | Apache License 2.0 |
rewrite-groovy/src/test/kotlin/org/openrewrite/groovy/tree/UnaryTest.kt | rahulvramesh | 561,633,409 | true | {"INI": 2, "Gradle Kotlin DSL": 30, "Shell": 6, "Markdown": 8, "Git Attributes": 1, "Batchfile": 2, "Text": 4, "Ignore List": 3, "Kotlin": 451, "Java": 1134, "YAML": 31, "JSON": 2, "ANTLR": 21, "EditorConfig": 12, "Groovy": 3, "XML": 1} | /*
* Copyright 2021 the original author or authors.
* <p>
* 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
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by... | 0 | null | 0 | 1 | dca13eabf5551d603dcade7a4be27d1e8536ee80 | 1,623 | rewrite | Apache License 2.0 |
panel/src/main/java/com/effective/android/panel/utils/CusShortUtil.kt | uni7corn | 276,338,530 | false | null | package com.effective.android.panel.utils
import android.view.View
import com.effective.android.panel.utils.cutShort.*
/**
* 刘海计算
* Created by yummyLau on 20-03-27
* Email: yummyl.lau@gmail.com
* blog: yummylau.com
*/
object CusShortUtil {
private val HUAWEI: DeviceCutShort = HuaweiCutShort()
private va... | 0 | Kotlin | 1 | 0 | ac4f611f12d6c44e70b1fc7e1bb4ecebe9a6ea60 | 1,292 | emoji_keyboard | Apache License 2.0 |
src/main/kotlin/com/github/lppedd/cc/lookupElement/CommitFooterValueLookupElement.kt | lppedd | 208,670,987 | false | {"Kotlin": 415756, "HTML": 49996, "Java": 9014, "Lex": 4027} | package com.github.lppedd.cc.lookupElement
import com.github.lppedd.cc.*
import com.github.lppedd.cc.api.CommitFooterValue
import com.github.lppedd.cc.api.CommitToken
import com.github.lppedd.cc.parser.CCParser
import com.github.lppedd.cc.parser.ValidToken
import com.github.lppedd.cc.psiElement.CommitFooterValuePsiEle... | 34 | Kotlin | 19 | 333 | 5d55768a47a31a10147e7d69f2be261d028d1b85 | 1,889 | idea-conventional-commit | MIT License |
app/src/main/java/com/hummingbirdgraph/MainActivity.kt | sujeet-kumar-mehta | 166,382,339 | false | {"Gradle": 4, "XML": 50, "Java Properties": 3, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Java": 2, "Kotlin": 12, "INI": 2} | package com.hummingbirdgraph
import android.content.res.Resources
import android.os.Bundle
import android.support.design.card.MaterialCardView
import android.support.design.widget.Snackbar
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.CardView
import android.support.v7.widget.LinearL... | 0 | Kotlin | 0 | 6 | c218a5af78a30be1b6cdc6584a8c299d5072ee28 | 12,850 | HummingbirdGraphLibrary | MIT License |
src/main/kotlin/com/baulsupp/cooee/p/SuggestionType.kt | yschimke | 159,716,451 | false | null | // Code generated by Wire protocol buffer compiler, do not edit.
// Source: com.baulsupp.cooee.p.SuggestionType in api.proto
package com.baulsupp.cooee.p
import com.squareup.wire.EnumAdapter
import com.squareup.wire.ProtoAdapter
import com.squareup.wire.Syntax.PROTO_3
import com.squareup.wire.WireEnum
import kotlin.In... | 0 | Kotlin | 0 | 1 | 6cd597836e163fa57017490e13f6457706277679 | 1,451 | cooee-cli | Apache License 2.0 |
vtp-pensjon-application/src/main/kotlin/no/nav/pensjon/vtp/mocks/virksomhet/person/v3/PersonstatusAdapter.kt | navikt | 254,055,233 | false | null | package no.nav.pensjon.vtp.mocks.virksomhet.person.v3
import no.nav.pensjon.vtp.testmodell.kodeverk.Endringstype
import no.nav.pensjon.vtp.testmodell.personopplysning.PersonstatusModell
import no.nav.pensjon.vtp.util.asXMLGregorianCalendar
import no.nav.tjeneste.virksomhet.person.v3.informasjon.PersonstatusPeriode
imp... | 14 | Kotlin | 0 | 2 | cd270b5f698c78c1eee978cd24bd788163c06a0c | 1,364 | vtp-pensjon | MIT License |
src/main/kotlin/org/vitrivr/cottontail/math/knn/kernels/binary/plain/SquaredEuclideanKernel.kt | corner4world | 331,901,507 | true | {"Kotlin": 1810171, "Dockerfile": 478} | package org.vitrivr.cottontail.math.knn.kernels.binary.plain
import org.vitrivr.cottontail.database.queries.planning.cost.Cost
import org.vitrivr.cottontail.math.knn.basics.MinkowskiKernel
import org.vitrivr.cottontail.math.knn.kernels.KernelNotFoundException
import org.vitrivr.cottontail.model.values.*
import org.vit... | 0 | Kotlin | 0 | 0 | 7303b1b7ee5486a69cb88752127088956ebde6ba | 5,055 | cottontaildb | MIT License |
core/src/main/java/com/ustadmobile/httpoveripc/core/ext/RawHttpRequestExt.kt | UstadMobile | 609,104,373 | false | null | package com.ustadmobile.httpoveripc.core
import com.ustadmobile.httpoveripc.core.ext.toSimpleMap
import io.ktor.http.*
import rawhttp.core.RawHttpRequest
fun RawHttpRequest.asSimpleTextRequest(): SimpleTextRequest {
return SimpleTextRequest(
method = SimpleTextRequest.Method.valueOf(method.uppercase()),
... | 0 | Kotlin | 0 | 0 | ef190faf3de68fc4551f21df1bd3d021c1cfd992 | 392 | httpoveripc | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.