path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/io/github/alexeychurchill/stickynotes/notes/data/RoomPinnedNote.kt | alexeychurchill | 77,340,824 | false | null | package io.github.alexeychurchill.stickynotes.notes.data
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.ForeignKey.Companion.CASCADE
@Entity(
tableName = "note_pin",
primaryKeys = ["note_id", "order_num"],
foreignKeys = [
ForeignKey... | 10 | Kotlin | 0 | 0 | 303b80512e93ca9e90113e9ec9eec7b75235cbcc | 631 | sticky-notes-client | Apache License 2.0 |
kaff4-plugin/src/main/kotlin/net/navatwo/kaff4/plugins/KAff4Plugin.kt | kaff4 | 555,850,412 | false | {"Kotlin": 419315, "Shell": 649} | package net.navatwo.kaff4.plugins
import com.google.inject.Binder
import jakarta.inject.Qualifier
import net.navatwo.guice.KAff4AbstractModule
import net.navatwo.guice.KSetMultibinderHelper
import net.navatwo.kaff4.model.rdf.Aff4RdfModel
import net.navatwo.kaff4.model.rdf.CompressionMethod
import net.navatwo.kaff4.rdf... | 9 | Kotlin | 0 | 1 | fd82ff7c9629f6f866f83826fcb4bf676cf32d84 | 1,998 | kaff4 | MIT License |
graphql-dgs-graphiql-autoconfigure/src/main/java/com/netflix/graphql/dgs/graphiql/autoconfiguration/GraphiQLAutoConfiguration.kt | maxiplux | 347,089,879 | true | {"Kotlin": 385062, "Java": 79560, "HTML": 6786, "TypeScript": 3256, "JavaScript": 2934} | /*
* Copyright 2020 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... | 0 | null | 0 | 0 | c98bd4a7f81bd3c9cbc3816228bfa3296fcdab5b | 1,336 | dgs-framework | Apache License 2.0 |
app/src/main/java/com/prmto/rickandmortycompose/presentation/navigation/BottomNavItemData.kt | tolgaprm | 524,387,415 | false | {"Kotlin": 175904} | package com.prmto.rickandmortycompose.presentation.navigation
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import com.prmto.rickandmortycompose.R
import com.prmto.rickandmortycompose.navigation.Screen
sealed class BottomNavItemData(
@DrawableRes val selectedIcon: Int,
@DrawableR... | 0 | Kotlin | 1 | 7 | 7d8fcaea537ae44f4d17fd6869d6df1efb1fc156 | 1,084 | RickAndMortyCompose | Apache License 2.0 |
src/main/kotlin/io/xconn/xconn/Client.kt | xconnio | 873,686,191 | false | {"Kotlin": 19249, "Makefile": 57} | package io.xconn.xconn
import io.xconn.wampproto.auth.AnonymousAuthenticator
import io.xconn.wampproto.auth.ClientAuthenticator
import io.xconn.wampproto.serializers.JSONSerializer
import io.xconn.wampproto.serializers.Serializer
class Client(
private var authenticator: ClientAuthenticator = AnonymousAuthenticato... | 0 | Kotlin | 2 | 0 | 8c87a237c0cbc63b30392fa07938b9d0fdbe030f | 627 | xconn-kotlin | MIT License |
src/main/kotlin/com/dymesolutions/linkedevents/controllers/EventController.kt | dymesolutions | 155,518,740 | false | null | package com.dymesolutions.linkedevents.controllers
import com.dymesolutions.common.interfaces.Controller
import com.dymesolutions.common.responses.CommonResponse
import com.dymesolutions.common.utils.DateUtil.formatter
import com.dymesolutions.common.utils.UserUtil
import com.dymesolutions.linkedevents.App
import com.... | 0 | Kotlin | 0 | 1 | f43b33d2c24bdbbc5375106b61bb9a2d2f9fa3aa | 21,336 | satakunta-events-api | MIT License |
MyEcMall-K/PaySDK/src/main/java/cn/nieking/paysdk/data/api/PayApi.kt | NieQing | 132,399,328 | false | {"Kotlin": 241813, "Java": 7791} | package cn.nieking.paysdk.data.api
import cn.nieking.baselibrary.data.protocol.BaseResp
import cn.nieking.paysdk.data.protocol.GetPaySignReq
import cn.nieking.paysdk.data.protocol.PayOrderReq
import retrofit2.http.Body
import retrofit2.http.POST
import rx.Observable
/*
支付 接口
*/
interface PayApi {
/*
... | 0 | Kotlin | 0 | 0 | 07b22622f98c8bfd8b26ea1303d48f6d66cc4b4b | 575 | MyEcMall-K | Apache License 2.0 |
jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/AbstractIncrementalJsJpsTest.kt | arrow-kt | 109,678,056 | true | null | /*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.jps.build
import org.jetbrains.kotlin.config.IncrementalCompilation
import org.jetbrains.kotlin.incremental.testingUtils.Build... | 12 | Kotlin | 1 | 43 | d2a24985b602e5f708e199aa58ece652a4b0ea48 | 1,406 | kotlin | Apache License 2.0 |
src/test/kotlin/com/mruiz84/hello/kotlin/RandomTest.kt | alanteals | 96,096,612 | false | {"Kotlin": 2406} | package com.mruiz84.hello.kotlin
import org.junit.jupiter.api.Test
import java.time.LocalDateTime
import java.util.*
import kotlin.test.assertNotEquals
class RandomTest {
@Test
fun `random order in a list`() {
val original = arrayListOf("Marcus", "<NAME> "Miguel", "Laura", "<NAME> "Nono", "<NAME>", ... | 0 | Kotlin | 0 | 0 | c79b6dc4f5a01bed5e39908ee12c0070bf5bf06e | 760 | hello-kotlin | Apache License 2.0 |
src/functional-test/kotlin/nsl/sam/functional/tokensimporter/FileNotPresentFileTokensImporterFT.kt | neat-solutions-lab | 146,033,971 | false | null | package nsl.sam.functional.tokensimporter
import nsl.sam.core.annotation.EnableAnnotationAttributesExtractor
import nsl.sam.core.annotation.EnableSimpleAuthenticationMethods
import nsl.sam.method.token.annotation.SimpleTokenAuthentication
import nsl.sam.method.token.tokensimporter.TokensCredentialsImporter
import nsl.... | 0 | Kotlin | 0 | 0 | 85b1059a6a37f2163e27bb4bdd8b0596f45e904d | 3,222 | simple-authentication-methods | MIT License |
app/src/main/java/com/alirezaafkar/phuzei/data/model/Metadata.kt | alirezaafkar | 153,698,863 | false | null | package com.alirezaafkar.phuzei.data.model
import com.google.gson.annotations.SerializedName
data class Metadata(
@SerializedName("width") val width: String,
@SerializedName("height") val height: String
)
| 4 | null | 4 | 17 | 81129034cfb7e625b09320c6e0397e2c4e51a883 | 215 | phuzei | Apache License 2.0 |
jvm/jvm-analysis-impl/src/com/intellij/codeInspection/SuppressionAnnotationInspection.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.codeInspection
import com.intellij.analysis.JvmAnalysisBundle
import com.intellij.codeInspection.options.OptPane
import com.intellij.ide.nls.NlsMessages
import com.intellij.lang... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 7,229 | intellij-community | Apache License 2.0 |
samples/kaspresso-compose-support-sample/src/androidTest/kotlin/com/kaspersky/kaspresso/composesupport/kaspresso/sanity/flaky/FlakyComposeEnabledSanityTest.kt | KasperskyLab | 208,070,025 | false | null | package com.kaspersky.kaspresso.composesupport.kaspresso.sanity.flaky
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.kaspersky.components.composesupport.config.withComposeSupport
import com.kaspersky.components.composesupport.interceptors... | 55 | null | 150 | 1,784 | 9c94128c744d640dcd646b86de711d2a1b9c3aa1 | 2,295 | Kaspresso | Apache License 2.0 |
core/src/main/kotlin/run/qontract/stub/KafkaStub.kt | subodh2917 | 305,343,051 | true | {"Kotlin": 717956, "Gherkin": 2572} | package run.qontract.stub
import org.apache.kafka.clients.producer.Producer
import org.apache.kafka.clients.producer.ProducerRecord
import run.qontract.core.Feature
import run.qontract.core.value.KafkaMessage
import run.qontract.mock.ScenarioStub
fun stubKafkaContracts(kafkaStubs: List<KafkaStubData>, bootstrapServer... | 0 | null | 0 | 0 | e490138a11d11b870a23f3bb81885e094c9d3675 | 1,427 | qontract | MIT License |
app/src/main/java/com/jelondoca/musicapp/repositories/AlbumRepository.kt | jelondoca | 258,515,123 | false | null | package com.jelondoca.musicapp.repositories
import com.jelondoca.musicapp.models.AlbumModel
import com.jelondoca.musicapp.models.AlbumObjectModel
import com.jelondoca.musicapp.services.AlbumService
import com.jelondoca.musicapp.services.factory.ServiceFactory
import retrofit2.Call
class AlbumRepository {
private ... | 0 | Kotlin | 0 | 0 | a991c0b70b0c686afc4da9273105f7a0583121bb | 943 | musicapp | MIT License |
Final/data/src/main/java/ubb/thesis/david/data/workers/UploadWorker.kt | davidleiti | 163,836,279 | false | null | package ubb.thesis.david.data.workers
import android.content.Context
import android.net.Uri
import androidx.work.WorkerParameters
import com.google.firebase.storage.FirebaseStorage
import ubb.thesis.david.data.R
import ubb.thesis.david.data.utils.debug
import ubb.thesis.david.data.utils.info
import java.io.File
class... | 0 | Kotlin | 0 | 2 | 59ca0edd6bf8f004c0a712ce532fcc107f58d147 | 2,049 | Monumental | MIT License |
implementation/src/main/kotlin/com/aoc/intcode/computer/instructions/strategies/Input.kt | TomPlum | 227,887,094 | false | null | package com.aoc.intcode.computer.instructions.strategies
import com.aoc.intcode.computer.Memory
import com.aoc.intcode.computer.ParameterMode
import com.aoc.intcode.computer.exceptions.SignalInterrupt
import com.aoc.intcode.computer.instructions.InstructionLength
import com.aoc.intcode.computer.instructions.Instructio... | 7 | Kotlin | 1 | 2 | 12d47cc9c50aeb9e20bcf110f53d097d8dc3762f | 854 | advent-of-code-2019 | Apache License 2.0 |
app/src/main/java/com/beginerapp/model/Registered.kt | iKhan1057 | 715,190,455 | false | {"Kotlin": 15253} | package com.beginerapp.model
import java.io.Serializable
data class Registered(
val age: Int,
val date: String
): Serializable | 0 | Kotlin | 0 | 0 | 4ff0dbe879d8089fc0efacfdf2e2e4d031af507a | 136 | beginers | Apache License 2.0 |
app/src/main/java/com/beginerapp/model/Registered.kt | iKhan1057 | 715,190,455 | false | {"Kotlin": 15253} | package com.beginerapp.model
import java.io.Serializable
data class Registered(
val age: Int,
val date: String
): Serializable | 0 | Kotlin | 0 | 0 | 4ff0dbe879d8089fc0efacfdf2e2e4d031af507a | 136 | beginers | Apache License 2.0 |
app/src/main/java/com/finderbar/jovian/datasource/tutorial/CategoryDataSourceFactory.kt | finderbar | 705,707,975 | false | {"Kotlin": 665596, "Java": 45822} | package com.finderbar.jovian.datasource.tutorial
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.Transformations
import android.arch.paging.DataSource
import com.apollographql.apollo.ApolloClient
import com.finderbar.jovian.models.Category
import com.f... | 0 | Kotlin | 0 | 0 | fb71909023cd376fbb23ae69c0affd1c69b68bf6 | 1,310 | finderbar-app | MIT License |
theia/src/main/java/studio/forface/theia/utils/animation.kt | 4face-studi0 | 174,530,893 | false | null | package studio.forface.theia.utils
import android.animation.Animator
import android.graphics.drawable.Animatable
import android.graphics.drawable.Animatable2
import android.graphics.drawable.Drawable
import android.widget.ImageView
import androidx.core.view.postDelayed
import studio.forface.theia.Duration
/** Start O... | 0 | Kotlin | 0 | 2 | 5b6a66ca6e91b1104c72ba8c58c67960c64c6d1a | 3,184 | Theia | Apache License 2.0 |
src/main/kotlin/gdscript/GdKeywords.kt | penguinencounter | 792,086,846 | false | {"Kotlin": 671320, "Java": 128067, "Lex": 24468, "PHP": 15692, "GDScript": 6273, "HTML": 4726, "Python": 3568, "Makefile": 198} | package gdscript
object GdKeywords {
const val EXTENDS = "extends"
const val CLASS = "class"
const val SIGNAL = "signal"
const val CLASS_NAME = "class_name"
const val FUNC = "func"
const val STATIC = "static"
const val VARARG = "vararg"
const val MASTER = "master"
const val PUPPET ... | 0 | Kotlin | 0 | 0 | 662c945adb0ee2cca4e1342a5f684ea3b8d18b75 | 1,966 | gdscript | MIT License |
kotlin-samples/src/yitian/study/function/destructuring.kt | techstay | 83,331,563 | false | null | package yitian.study.function
fun main(args: Array<String>) {
destructObject()
returnFromFunc()
destructMap()
}
//解构对象需要类重载componentN运算符
class MyPerson(val name: String, val age: Int) {
operator fun component1(): String = name
operator fun component2(): Int = age
}
//data类会自动实现componentN运算符
data ... | 1 | Kotlin | 0 | 0 | 822a02ca42783521ac6f5b5c62c52f0ea4b39ec8 | 965 | kotlin-study | MIT License |
app/src/main/java/com/lingshot/languagelearn/presentation/ui/MainScreen.kt | CharlesMoreira1 | 618,817,135 | false | {"Kotlin": 311024, "Ruby": 301} | /*
* Copyright 2023 Lingshot
*
* 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 in... | 12 | Kotlin | 7 | 80 | d7e5bc6580cd3ffca390916c37a0a0e60fdb6a91 | 3,115 | lingshot | Apache License 2.0 |
projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/api/model/overview/Order.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 4379964, "HTML": 73922, "D2": 44286, "Ruby": 27508, "Shell": 23593, "SCSS": 6760, "HCL": 2712, "Dockerfile": 2553, "JavaScript": 1456, "Python": 268} | package uk.gov.justice.digital.hmpps.api.model.overview
import java.time.LocalDate
data class Order(
val description: String,
val length: Long?,
val endDate: LocalDate?,
val startDate: LocalDate,
val status: String? = null,
val mainOffence: String? = null,
val breaches: Int? = 0
) | 3 | Kotlin | 0 | 2 | 80322f792521635fef7c2067279fdc0cc54b592e | 311 | hmpps-probation-integration-services | MIT License |
plugins/evaluation-plugin/languages/src/com/intellij/cce/visitor/CompletionGolfVisitorFactory.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.cce.visitor
import com.intellij.cce.core.Language
import com.intellij.cce.evaluable.golf.CompletionGolfMode
import com.intellij.openapi.extensions.ExtensionPointName
interface ... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 659 | intellij-community | Apache License 2.0 |
src/commonMain/kotlin/org/anime_game_servers/game_data_models/data/watcher/PredicateType.kt | Hartie95 | 650,687,061 | false | {"Kotlin": 162621} | package org.anime_game_servers.game_data_models.data.watcher
import org.anime_game_servers.game_data_models.data.interfaces.IntKey
// TODO
enum class PredicateType(val id: Int) : IntKey {
PREDICATE_QUEST_FINISH(-1),
PREDICATE_UNKNOWN(9999);
override fun getIntKey() = id
} | 0 | Kotlin | 1 | 1 | b107b71ecf3c3c9a4fee0be26619291496f670ad | 287 | AnimeGameDataModels | MIT License |
Tutorial1-1Basics/src/main/java/com/smarttoolfactory/tutorial1_1basics/chapter3_layout/chat/SentMessageRow.kt | SmartToolFactory | 326,400,374 | false | {"Kotlin": 2849459} | package com.smarttoolfactory.tutorial1_1basics.chapter3_layout.chat
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Composable
import androi... | 4 | Kotlin | 312 | 3,006 | efea98b63e63a85b80f7dc1bd4ca6d769e35905d | 3,182 | Jetpack-Compose-Tutorials | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/extension/manga/model/MangaLoadResult.kt | jmir1 | 718,862,527 | false | {"Kotlin": 4265900} | package eu.kanade.tachiyomi.extension.manga.model
sealed class MangaLoadResult {
class Success(val extension: MangaExtension.Installed) : MangaLoadResult()
class Untrusted(val extension: MangaExtension.Untrusted) : MangaLoadResult()
object Error : MangaLoadResult()
}
| 0 | Kotlin | 0 | 2 | 2584e3892d2571eac4b86702a4fe13fa76e46332 | 281 | aniyomi-omegalul | Apache License 2.0 |
app/src/main/java/com/hjq/demo/module/login/viewmodel/AccountViewModel.kt | mengbixiusi | 244,272,185 | false | {"Markdown": 4, "Gradle": 9, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 5, "XML": 169, "Java": 148, "INI": 2, "JSON": 4, "Kotlin": 48} | package com.hjq.demo.module.login.viewmodel
import android.app.Application
import androidx.lifecycle.MutableLiveData
import com.wjx.android.mvvm.network.initiateRequest
import com.wjx.android.mvvm.viewmodel.BaseViewModel
import com.wjx.android.wanandroidmvvm.module.account.model.LoginResponse
import com.wjx.android.wa... | 1 | null | 1 | 1 | 12cfc897bf519c9342fd3c47182ed8c557b664f5 | 1,094 | AndroidProject | Apache License 2.0 |
build-logic/convention/src/main/kotlin/com/azizutku/movie/extensions/ProjectExtensions.kt | azizutku | 579,143,942 | false | null | package com.azizutku.movie.extensions
import com.azizutku.movie.utils.getLocalProperty
import org.gradle.api.Action
import org.gradle.api.Project
import org.gradle.api.plugins.ExtensionAware
import org.jetbrains.kotlin.gradle.dsl.KotlinAndroidProjectExtension
const val JDK_VERSION = 17
fun Project.getLocalProperty(p... | 0 | null | 4 | 36 | d6e8a01a41d1f61fc1b233cb32e17505c0707a20 | 559 | Modular-Clean-Arch-Movie-App | MIT License |
coding/tests/sources/utility/codecs/ContextCheckingTestEncoderCodec.kt | cybernetics | 196,933,210 | true | {"Kotlin": 640246} | package tests.coding
import ch.tutteli.atrium.api.cc.en_GB.*
import ch.tutteli.atrium.verbs.*
import com.github.fluidsonic.fluid.json.*
internal class ContextCheckingTestEncoderCodec<in Context : JSONCodingContext>(
private val expectedContext: Context
) : JSONEncoderCodec<String, Context> {
override fun JSONEnco... | 0 | Kotlin | 0 | 0 | e1991962108950fbeed46aa0e1f2dbaab2493bef | 490 | fluid-json | Apache License 2.0 |
binary-transcoders/src/test/kotlin/com/kamelia/sprinkler/transcoder/binary/encoder/composer/ComposedEncoderTest.kt | Black-Kamelia | 579,095,832 | false | {"Kotlin": 647359, "Java": 18620} | package com.kamelia.sprinkler.transcoder.binary.encoder.composer
import com.kamelia.sprinkler.transcoder.binary.encoder.BooleanEncoder
import com.kamelia.sprinkler.transcoder.binary.encoder.ByteEncoder
import com.kamelia.sprinkler.transcoder.binary.encoder.DoubleEncoder
import com.kamelia.sprinkler.transcoder.binary.e... | 3 | Kotlin | 0 | 6 | c86847064925469383cdde0cce68572bcde1e57b | 6,459 | Sprinkler | MIT License |
sykepenger-model/src/test/kotlin/no/nav/helse/serde/migration/V51PatcheGamleAnnulleringerTest.kt | navikt | 193,907,367 | false | null | package no.nav.helse.serde.migration
import com.fasterxml.jackson.databind.MapperFeature
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import org.intellij.lang.annotations.Language
im... | 2 | null | 6 | 5 | 314d8a6e32b3dda391bcac31e0b4aeeee68f9f9b | 3,299 | helse-spleis | MIT License |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/Cubics.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: Cubics
*
* Full name: System`Cubics
*
* Usage: Cubics is an option for functions that involve ... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,022 | mathemagika | Apache License 2.0 |
assembler-kotlin-extension/src/main/kotlin/io/github/pellse/assembler/kotlin/AssemblerKotlinSupport.kt | pellse | 113,101,219 | false | {"Java": 196897, "Kotlin": 19846} | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 6 | Java | 17 | 120 | 7636fbae432c4572c2f03098c9bd4d32564f096e | 2,508 | assembler | Apache License 2.0 |
http4k-contract/openapi/src/main/kotlin/org/http4k/contract/security/providers.kt | http4k | 86,003,479 | false | {"Kotlin": 2855594, "Java": 41165, "HTML": 14220, "Shell": 3200, "Handlebars": 1455, "Pug": 944, "JavaScript": 777, "Dockerfile": 256, "CSS": 248} | package org.http4k.contract.security
import org.http4k.core.Filter
import org.http4k.core.NoOp
import org.http4k.core.Uri
fun OAuthSecurity.Companion.googleCloudEndpoints(issuer: String, jwksUri: Uri, audiences: List<String>) = ImplicitOAuthSecurity(
Uri.of(""),
emptyList(),
Filter.NoOp,
"googleCloudE... | 34 | Kotlin | 249 | 2,615 | 7ad276aa9c48552a115a59178839477f34d486b1 | 513 | http4k | Apache License 2.0 |
app/src/main/java/com/baljeet/expirytracker/listAdapters/QnAAdapter.kt | baljeet808 | 391,490,393 | false | null | package com.baljeet.expirytracker.listAdapters
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.content.res.AppCompatResources
import androidx.core.view.isGone
import androidx.recyclerview.widget.RecyclerView
import com.b... | 0 | Kotlin | 0 | 1 | c5dfa7efb0a18b49e415113ec420b10a18912157 | 1,635 | ExpiryTracker | Apache License 2.0 |
app/src/main/java/mustafaozhan/github/com/mycurrencies/main/fragment/MainFragmentViewModel.kt | chetlahet001 | 201,316,374 | true | {"Kotlin": 92062} | package mustafaozhan.github.com.mycurrencies.main.fragment
import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.crashlytics.android.Crashlytics
import mustafaozhan.github.com.mycurrencies.base.BaseViewModel
import mustafaozhan.github.com.mycurrencies.extensions.calculateResultByCurrency
import ... | 0 | Kotlin | 0 | 0 | 1d2e094dd46d6e3cfc7a0a4f6049ec474c502ffe | 4,211 | androidCCC | Apache License 2.0 |
src/main/kotlin/org/uevola/jsonautovalidation/utils/annotations/jsonValidationAnnotation/IsStringInteger.kt | ugoevola | 646,607,242 | false | {"Kotlin": 74752} | package org.uevola.jsonautovalidation.common.annotations.jsonValidationAnnotation
import org.springframework.core.annotation.AliasFor
@IsJsonValidation
@MustBeDocumented
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FIELD, AnnotationTarget.VALUE_PARAMETER)
annotation class IsStringInteger(
@get... | 0 | Kotlin | 0 | 0 | edd264448997bd498f172df66542cf2381e67c53 | 622 | json-auto-validation | MIT License |
core/design/src/main/kotlin/br/com/mob1st/core/design/atoms/colors/material/families/ContrastedColorFamilies.kt | mob1st | 526,655,668 | false | {"Kotlin": 527905, "Shell": 1558} | package br.com.mob1st.core.design.atoms.colors.material.families
/**
* Encapsulates the color families that can be affected by the ui contrast settings.
* It's expected to have 6 instances of this class:
* one for each ui contrast setting (standard, medium and high) * each color theme (light and dark).
*/
data cla... | 11 | Kotlin | 0 | 3 | e2fb243486f2d32a42ecfad165b83e65dc1ad256 | 780 | bet-app-android | Apache License 2.0 |
core/design/src/main/kotlin/br/com/mob1st/core/design/atoms/colors/material/families/ContrastedColorFamilies.kt | mob1st | 526,655,668 | false | {"Kotlin": 527905, "Shell": 1558} | package br.com.mob1st.core.design.atoms.colors.material.families
/**
* Encapsulates the color families that can be affected by the ui contrast settings.
* It's expected to have 6 instances of this class:
* one for each ui contrast setting (standard, medium and high) * each color theme (light and dark).
*/
data cla... | 11 | Kotlin | 0 | 3 | e2fb243486f2d32a42ecfad165b83e65dc1ad256 | 780 | bet-app-android | Apache License 2.0 |
src/main/kotlin/net/de1mos/dutchtreat/DutchTreatApplication.kt | de1mos242 | 310,675,978 | false | null | package net.de1mos.dutchtreat
import io.ktor.application.*
import io.ktor.http.*
import io.ktor.response.*
import io.ktor.routing.*
import io.ktor.server.engine.*
import io.ktor.server.netty.*
import io.ktor.util.*
import io.sentry.Sentry
import kotlinx.coroutines.runBlocking
import net.de1mos.dutchtreat.config.AppInf... | 6 | Kotlin | 0 | 0 | 878d5408e9aeee795ba6e7238d7f066df114977a | 2,852 | dutch-treat | Apache License 2.0 |
app/src/main/java/com/chittchorefsm/features/dashboard/presentation/getcontentlisapi/GetContentListRepo.kt | DebashisINT | 533,183,419 | false | {"Kotlin": 11200956, "Java": 960181} | package com.chittchorefsm.features.dashboard.presentation.getcontentlisapi
import com.chittchorefsm.app.Pref
import com.chittchorefsm.base.BaseResponse
import com.chittchorefsm.features.dashboard.presentation.model.ContentListResponseModel
import io.reactivex.Observable
/**
* Created by Saikat on 05-03-2019.
*/
cla... | 0 | Kotlin | 0 | 0 | dfdfafd5c35ebf69c1606fcf84af819079e25fb9 | 703 | Chittchore | Apache License 2.0 |
compose/constraint-layout/src/commonMain/kotlin/androidx/constraintlayout/core/motion/utils/KeyFrameArray.kt | Woody230 | 388,189,330 | false | {"Kotlin": 3122860} | /*
* Copyright (C) 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 2 | Kotlin | 0 | 7 | 50901f7b1ff6211ad09b857e098386238496cbe8 | 6,119 | KotlinExtensions | Apache License 2.0 |
valiktor-samples/valiktor-sample-javatime/src/main/kotlin/org/valiktor/sample/SampleApplication.kt | valiktor | 127,146,179 | false | null | /*
* Copyright 2018-2019 https://www.valiktor.org
*
* 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... | 32 | Kotlin | 36 | 405 | 1b8e71d82ff1a91b66815fc93536ebdf4d148650 | 1,854 | valiktor | Apache License 2.0 |
app/src/main/java/developersancho/githubinginterview/di/LocalModule.kt | developersancho | 218,074,647 | false | null | package developersancho.githubinginterview.di
import androidx.room.Room
import developersancho.githubinginterview.data.local.db.CoreDatabase
import developersancho.githubinginterview.utils.AppConstant
import org.koin.android.ext.koin.androidApplication
import org.koin.dsl.module
val localModule = module {
single ... | 1 | null | 1 | 1 | 3939218adde97051b5635da61a1cc44ea6fdb7ac | 538 | GithubIngInterview | Apache License 2.0 |
app/src/main/java/com/alecfut07/gamezone/LoginService.kt | Alecfut07 | 661,093,415 | false | null | package com.alecfut07.gamezone
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.POST
interface LoginService {
@POST("api/users/sign_in")
fun login(@Body signInRequest: SignInRequest?): Call<Unit>
} | 0 | Kotlin | 0 | 0 | a3a6804ebfd080ca6d511ec71c7701fbc4d5a210 | 229 | gamezone-android | MIT License |
src/main/kotlin/CachedToken.kt | ssoper | 298,839,816 | false | null | package com.seansoper.batil
import java.io.File
import java.io.FileInputStream
import java.io.FileOutputStream
import java.nio.file.Files
import java.nio.file.Path
import java.nio.file.Paths
import java.security.KeyStore
import java.util.Locale
import java.util.UUID
import javax.crypto.spec.SecretKeySpec
class Cached... | 9 | Kotlin | 2 | 8 | a12cfd3e8e4bcafa5f0d333079f40b665e55600a | 3,370 | Batil | MIT License |
src/main/kotlin/ru/quipy/logic/BasketAggregateCommands.kt | sad-bkt | 622,333,499 | false | null | package ru.quipy.logic
import ru.quipy.api.BasketAddProductEvent
import ru.quipy.api.BasketChangeCountProductEvent
import ru.quipy.api.BasketCreateEvent
import ru.quipy.api.BasketDeleteProductEvent
import java.util.*
// Commands : takes something -> returns event
// Here the commands are represented by extension fun... | 0 | Kotlin | 1 | 0 | ee51280a483cb804483ec1a747865ca3324aa49a | 1,050 | tiny-event-sourcing-demo | Apache License 2.0 |
kontroller/src/main/kotlin/no/ssb/kostra/validation/rule/regnskap/kostra/Rule040KombinasjonInvesteringKontoklasseFunksjon.kt | statisticsnorway | 414,216,275 | false | {"Kotlin": 1602685, "TypeScript": 57803, "Batchfile": 6608, "HTML": 694, "SCSS": 110} | package no.ssb.kostra.validation.rule.regnskap.kostra
import no.ssb.kostra.area.regnskap.RegnskapConstants.FIELD_BELOP
import no.ssb.kostra.area.regnskap.RegnskapConstants.FIELD_FUNKSJON
import no.ssb.kostra.program.KostraRecord
import no.ssb.kostra.validation.report.Severity
import no.ssb.kostra.validation.rule.Abstr... | 5 | Kotlin | 0 | 1 | 2567bc079516b29147dddbbf98819314e286372a | 1,438 | kostra-kontrollprogram | MIT License |
buildSrc/src/main/kotlin/versions.kt | aSoft-Ltd | 365,481,038 | false | null | object vers {
val kotlin = "1.5.20"
val nexus_staging = "0.22.0"
object asoft {
val builders = "1.3.30"
val kash = "0.0.11"
}
object kotlinx {
val serialization = "1.2.1"
}
}
| 0 | Kotlin | 0 | 0 | 3919ceeed60bc6aad2276376507093ad8781f13b | 225 | kash | MIT License |
buildSrc/src/main/kotlin/versions.kt | aSoft-Ltd | 365,481,038 | false | null | object vers {
val kotlin = "1.5.20"
val nexus_staging = "0.22.0"
object asoft {
val builders = "1.3.30"
val kash = "0.0.11"
}
object kotlinx {
val serialization = "1.2.1"
}
}
| 0 | Kotlin | 0 | 0 | 3919ceeed60bc6aad2276376507093ad8781f13b | 225 | kash | MIT License |
kafkistry-service-logic/src/main/kotlin/com/infobip/kafkistry/service/acl/AclsManagementService.kt | infobip | 456,885,171 | false | null | package com.infobip.kafkistry.service.acl
import com.infobip.kafkistry.events.AclCreatedEvent
import com.infobip.kafkistry.events.AclDeletedEvent
import com.infobip.kafkistry.events.EventPublisher
import com.infobip.kafkistry.kafka.KafkaAclRule
import com.infobip.kafkistry.kafka.KafkaClientProvider
import com.infobip.... | 2 | null | 6 | 42 | 4c8101069c813270d2f3c986b5b9f04dacda4a10 | 6,231 | kafkistry | Apache License 2.0 |
ktorm-ksp-annotations/src/main/kotlin/org/ktorm/ksp/annotation/References.kt | kotlin-orm | 159,785,192 | false | {"Kotlin": 1312452, "Java": 1980} | /*
* Copyright 2018-2024 the original author or authors.
*
* 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 ap... | 89 | Kotlin | 147 | 2,105 | 601d9a11f45f33bb3d8f637162f6650236a84e89 | 2,931 | ktorm | Apache License 2.0 |
sample/src/main/kotlin/com/example/kotlin/SwitchCaseBranching.kt | hanggrian | 556,969,715 | false | {"Kotlin": 283484, "Python": 75510, "Java": 20710, "CSS": 1653, "Groovy": 323} | package com.example.kotlin
class SwitchCaseBranching(foo: Int, bar: () -> Unit) {
init {
if (true) bar()
if (foo == 0) bar()
}
}
| 0 | Kotlin | 0 | 1 | 2a371bdb0b18b9b0024df0867b6aab8ba4bc0ced | 154 | rulebook | Apache License 2.0 |
Corona-Warn-App/src/test/java/de/rki/coronawarnapp/srs/core/server/SrsAuthorizationServerTest.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.srs.core.server
import com.google.protobuf.ByteString
import de.rki.coronawarnapp.appconfig.AppConfigProvider
import de.rki.coronawarnapp.appconfig.ConfigData
import de.rki.coronawarnapp.appconfig.SelfReportSubmissionConfigContainer
import de.rki.coronawarnapp.exception.http.CwaUnknownHost... | 6 | Kotlin | 504 | 2,486 | 7b0eee8d53a090ee0ca585c6a90c4cec570e51d6 | 10,809 | cwa-app-android | Apache License 2.0 |
src/backend/ci/core/auth/api-auth/src/main/kotlin/com/tencent/devops/auth/api/user/UserAuthApplyResource.kt | TencentBlueKing | 189,153,491 | false | {"Kotlin": 30176725, "Vue": 6739254, "JavaScript": 1256623, "Go": 616850, "Lua": 567159, "TypeScript": 461781, "SCSS": 365654, "Shell": 157561, "Java": 153049, "CSS": 106299, "HTML": 96201, "Python": 39238, "Less": 24714, "Makefile": 10630, "Smarty": 10297, "Dockerfile": 5097, "Batchfile": 4908, "PowerShell": 1626, "VB... | package com.tencent.devops.auth.api.user
import com.tencent.devops.auth.pojo.ApplyJoinGroupInfo
import com.tencent.devops.auth.pojo.SearchGroupInfo
import com.tencent.devops.auth.pojo.vo.ActionInfoVo
import com.tencent.devops.auth.pojo.vo.AuthApplyRedirectInfoVo
import com.tencent.devops.auth.pojo.vo.GroupPermissionDe... | 719 | Kotlin | 498 | 2,382 | dd483c38bdbe5c17fa0e5e5bc3390cd1cd40757c | 4,129 | bk-ci | MIT License |
dsladapter/src/test/java/indi/yume/tools/dsladapter/DiffUtilTest.kt | lovelyefyyucui | 236,894,006 | true | {"Kotlin": 67094, "Java": 1152} | package indi.yume.tools.dsladapter
import android.support.v7.util.DiffUtil
import android.support.v7.util.ListUpdateCallback
import android.util.ArrayMap
import android.util.SparseArray
import indi.yume.tools.dsladapter.datatype.ListUpdateActions
import indi.yume.tools.dsladapter.datatype.toActions
import io.kotlintes... | 0 | null | 0 | 0 | 7fb692c8e7ea89a092857d6e95ccd701d5b51a64 | 7,121 | DslAdapter | Apache License 2.0 |
src/main/kotlin/no/nav/familie/ef/sak/arbeidsforhold/ArbeidsforholdService.kt | navikt | 206,805,010 | false | {"Kotlin": 3753233, "Gherkin": 163948, "Dockerfile": 180} | package no.nav.familie.ef.sak.arbeidsforhold.ekstern
import no.nav.familie.ef.sak.fagsak.FagsakService
import no.nav.familie.ef.sak.felles.util.isEqualOrAfter
import no.nav.familie.ef.sak.felles.util.isEqualOrBefore
import no.nav.familie.kontrakter.felles.arbeidsforhold.Arbeidsforhold
import org.springframework.stereo... | 4 | Kotlin | 2 | 0 | 99225c88abc1cd121ade95b478604a8ace332e85 | 1,412 | familie-ef-sak | MIT License |
corelib/src/main/java/dk/mustache/corelib/swipe_accept_layout/SwipeAcceptLayout.kt | mustachedk | 181,449,514 | false | null | package dk.mustache.corelib.swipe_accept_layout
import android.content.Context
import android.util.AttributeSet
import android.view.*
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.databinding.DataBindingUtil
import dk.mustache.corelib.R
import dk.mustache.corelib.databinding.SwipeAcceptLayou... | 3 | Kotlin | 1 | 2 | 492346cd64b0e0ddf3cc96d71ec10d1849e08204 | 4,639 | core-lib-an | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/BookTanakh.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.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.StrokeJoin.Companion.Miter
... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 5,322 | icons | MIT License |
android/apolloui/src/main/java/io/muun/apollo/presentation/ui/fragments/tr_success/TaprootSuccessPresenter.kt | muun | 150,655,434 | false | {"Java": 1903704, "Kotlin": 1487589, "C": 800452, "Go": 673506, "Shell": 4602, "Dockerfile": 2321, "Python": 1557} | package io.muun.apollo.presentation.ui.fragments.tr_success
import android.os.Bundle
import io.muun.apollo.domain.model.UserActivatedFeatureStatus
import io.muun.apollo.domain.model.UserActivatedFeatureStatus.ACTIVE
import io.muun.apollo.domain.model.UserActivatedFeatureStatus.PREACTIVATED
import io.muun.apollo.domain... | 39 | Java | 46 | 256 | 86048fe9f8059c9617f2e6d32e7d41c460dfb785 | 2,428 | apollo | MIT License |
src/test/kotlin/g0501_0600/s0577_employee_bonus/MysqlTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4909193, "TypeScript": 50446, "Python": 3646, "Shell": 994} | package g0501_0600.s0577_employee_bonus
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
import org.zapodot.junit.db.annotations.EmbeddedDatabase
import org.zapodot.junit.db.annotations.EmbeddedDatabaseTest
import org.zapodot.junit.db.common.Compat... | 0 | Kotlin | 20 | 43 | 62708bc4d70ca2bfb6942e4bbfb4c64641e598e8 | 3,008 | LeetCode-in-Kotlin | MIT License |
app/src/main/java/com/ardentsoft/weather/demo/MainApplication.kt | ravi1805 | 512,244,393 | false | {"Kotlin": 56386, "Java": 1905} | package com.ardentsoft.weather.demo
import android.app.Application
import com.ardentsoft.weather.demo.di.component.DaggerApplicationComponent
import com.ardentsoft.weather.demo.netowrkservice.INetworkClientService
import dagger.android.AndroidInjector
import dagger.android.DispatchingAndroidInjector
import dagger.andr... | 0 | Kotlin | 0 | 0 | e21a53573f6ff17086cc35ae2e6e8daf57c00948 | 1,113 | WeatherAppDemo | Apache License 2.0 |
my-projects/TimeConvertorApp/app/src/main/java/com/lakshaykamat/timeConvertor/TimeConvertor.kt | lakshaykamat | 739,776,879 | false | {"Kotlin": 255467} | package com.lakshaykamat.timeConvertor
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foun... | 0 | Kotlin | 0 | 3 | 319e23a28d81d9e86c8217d125fcd6db2203a0e1 | 5,771 | android-dev-kotlin | MIT License |
app/src/main/java/com/redridgeapps/remoteforqbittorrent/api/QBittorrentService.kt | SaurabhSandav | 123,869,187 | false | null | package com.redridgeapps.remoteforqbittorrent.api
import arrow.core.toOption
import com.redridgeapps.remoteforqbittorrent.model.QBittorrentLog
import com.redridgeapps.remoteforqbittorrent.model.Torrent
import okhttp3.HttpUrl
import okhttp3.MultipartBody
import retrofit2.Response
import retrofit2.http.Field
import retr... | 0 | Kotlin | 0 | 1 | 1d3d81dfd9add116333e5892de1c7dda96a58dcb | 6,726 | qBittorrentRemote | MIT License |
castled-notifications/src/main/java/io/castled/android/notifications/store/dao/NetworkRetryLogDao.kt | castledio | 525,047,434 | false | null | package io.castled.android.notifications.store.dao
import androidx.room.*
import io.castled.android.notifications.store.models.NetworkRetryLog
@Dao
internal interface NetworkRetryLogDao {
@Query("SELECT * FROM network_retry_log")
suspend fun getAllRetryLogs(): List<NetworkRetryLog>
@Insert(onConflict = ... | 1 | Kotlin | 2 | 3 | 5183f63fd8d81c2f87576a3b6d92b39d9ee9bdef | 621 | castled-notifications-android | MIT License |
app/src/main/java/com/jonikoone/dictionaryforlearning/adapters/DictionaryAdapter.kt | jonikoone | 247,094,767 | false | null | /*
package com.jonikoone.dictionaryforlearning.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.jonikoone.dictionaryforlearning.R
import com.jonikoone.dictionaryfor... | 0 | Kotlin | 0 | 0 | c9fd3fd74429513987fa217fb155c85e94195811 | 5,384 | JapanesDictionary | Apache License 2.0 |
app/src/main/java/dev/androidbroadcast/activityresultapi/_03_separate_class/ImagePicker.kt | androidbroadcast | 345,316,093 | false | null | package dev.androidbroadcast.activityresultapi._03_separate_class
import android.net.Uri
import android.util.Log
import androidx.activity.result.ActivityResultLauncher
import androidx.activity.result.ActivityResultRegistry
import androidx.activity.result.contract.ActivityResultContracts
import androidx.lifecycle.Lifec... | 0 | Kotlin | 0 | 7 | 9a039bd84e0f894051241fc1764d13cf2810479d | 1,134 | ActivityResultAPI | MIT License |
app/src/main/java/ru/santaev/clipboardtranslator/viewmodel/TranslateViewModel.kt | santaevpavel | 98,892,568 | false | null | package ru.santaev.clipboardtranslator.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.santaev.domain.dto.LanguageDto
import com.example.santaev.domain.factory.UseCaseFactory
import com.example.santaev.domain.usecase.TranslateUseCase
import io.reactivex.andro... | 2 | null | 1 | 3 | df59db6e93752cb0614ecc29eba60542383b1f18 | 5,322 | ClipboardTranslator | Apache License 2.0 |
app/src/main/java/com/immortalidiot/wishescompose/ui/theme/Color.kt | ImmortalIdiot | 862,416,448 | false | {"Kotlin": 64913} | package com.immortalidiot.wishescompose.ui.theme
import androidx.compose.ui.graphics.Color
val Purple80 = Color(0xFFD0BCFF)
val PurpleGrey80 = Color(0xFFCCC2DC)
val Pink80 = Color(0xFFEFB8C8)
val Purple40 = Color(0xFF6650a4)
val PurpleGrey40 = Color(0xFF625b71)
val Pink40 = Color(0xFF0A1330)
val ButtonStart = Color... | 0 | Kotlin | 0 | 0 | ac0cada634a64ea4d34d286cb8100e07b8bffdf8 | 571 | WishesCompose | MIT License |
kotlin-code-generation/src/main/kotlin/support/CodeBlockArray.kt | toolisticon | 804,098,315 | false | {"Kotlin": 321372} | package io.toolisticon.kotlin.generation.support
import com.squareup.kotlinpoet.*
import io.toolisticon.kotlin.generation.Builder
import io.toolisticon.kotlin.generation.KotlinCodeGeneration.buildCodeBlock
import io.toolisticon.kotlin.generation.KotlinCodeGeneration.format.FORMAT_KCLASS
import io.toolisticon.kotlin.ge... | 5 | Kotlin | 0 | 2 | d50b3f82cb6c2181da03429f2ac05b41e60fa695 | 2,677 | kotlin-code-generation | Apache License 2.0 |
app/src/main/java/com/example/wheretoeat/models/RestaurantByCity.kt | Mark-i7 | 316,526,538 | false | {"Kotlin": 60054} | package com.example.wheretoeat.models
data class RestaurantByCity(
val count: Int,
val per_page: Int,
val current_page: Int,
val restaurants: List<Restaurant>) {
} | 1 | Kotlin | 0 | 0 | 391aaab92f1ed9cbfd76e71d34ed824f18690948 | 197 | WhereToEat | FSF All Permissive License |
agp-7.1.0-alpha01/tools/base/common/src/test/java/com/android/prefs/AndroidLocationTest.kt | jomof | 502,039,754 | false | {"Java": 35519326, "Kotlin": 22849138, "C++": 2171001, "HTML": 1377915, "Starlark": 915536, "C": 141955, "Shell": 110207, "RenderScript": 58853, "Python": 25635, "CMake": 18109, "Batchfile": 12180, "Perl": 9310, "Dockerfile": 5690, "Makefile": 4535, "CSS": 4148, "JavaScript": 3488, "PureBasic": 2359, "GLSL": 1628, "AID... | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1 | Java | 1 | 0 | 9e3475f6d94cb3239f27ed8f8ee81b0abde4ef51 | 4,836 | CppBuildCacheWorkInProgress | Apache License 2.0 |
ui/ui-desktop/src/jvmMain/kotlin/androidx/ui/core/Popup.kt | Sathawale27 | 282,379,594 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1 | null | 1 | 1 | 549e3e3003cd308939ff31799cf1250e86d3e63e | 2,391 | androidx | Apache License 2.0 |
firestore/src/commonMain/kotlin/org/mobiletoolkit/extensions/Map.kt | MobileToolkit | 186,126,083 | false | null | package org.mobiletoolkit.extensions
/**
* Created by <NAME> on 10/08/2019.
*/
fun Map<*, *>.toJsonString() = "{${map { "\"${it.key}\": \"${it.value}\"" }.joinToString(", ")}}" | 0 | Kotlin | 1 | 5 | c277f32dbdfc2aa7ec871664e06e87f246bf4c11 | 179 | firebase-multiplatform | MIT License |
firestore/src/commonMain/kotlin/org/mobiletoolkit/extensions/Map.kt | MobileToolkit | 186,126,083 | false | null | package org.mobiletoolkit.extensions
/**
* Created by <NAME> on 10/08/2019.
*/
fun Map<*, *>.toJsonString() = "{${map { "\"${it.key}\": \"${it.value}\"" }.joinToString(", ")}}" | 0 | Kotlin | 1 | 5 | c277f32dbdfc2aa7ec871664e06e87f246bf4c11 | 179 | firebase-multiplatform | MIT License |
kotlin/day02/src/main/kotlin/day02.kt | codeanonorg | 434,155,180 | false | null | import org.codeanon.aoc.day02.*
import org.codeanon.aoc.platform.Challenge
import org.codeanon.aoc.platform.Runner
class Day02 : Challenge {
override fun run01(data: String) {
process(data, Submarine())
}
override fun run02(data: String) {
process(data, SubmarineAim())
}
@Suppress... | 0 | Rust | 1 | 0 | 08726fb32310632a07c52ba4637bc82a78caacd6 | 944 | advent-of-code-2021 | MIT License |
start/app/src/main/java/com/denofprogramming/mycoroutineapplication/ui/main/MainViewModel.kt | denofprogramming | 406,033,836 | false | {"Kotlin": 30689} | package com.denofprogramming.mycoroutineapplication.ui.main
import android.graphics.Bitmap
import androidx.lifecycle.*
import com.denofprogramming.mycoroutineapplication.network.MockNetworkService
import com.denofprogramming.mycoroutineapplication.repository.image.CoroutineImageRepository
import com.denofprogramming.... | 0 | Kotlin | 0 | 0 | fdd9589a55917b643b2fedb7a3a0618404a0aad8 | 3,888 | kotlinCoroutinesExplainedAndroidApp12 | MIT License |
app/src/main/java/de/davis/powercontrol/device/presentation/DeviceState.kt | OffRange | 836,232,550 | false | {"Kotlin": 80150} | package de.davis.powercontrol.device.presentation
import de.davis.powercontrol.core.domain.models.Device
import de.davis.powercontrol.device.domain.model.ValidationResult
import kotlinx.collections.immutable.ImmutableList
import kotlinx.collections.immutable.persistentListOf
data class DeviceState(
val device: De... | 0 | Kotlin | 0 | 0 | 7801cb98e2fbd5dd91999b1e29d3e0873c0d401c | 596 | PowerControl | MIT License |
feature/add-notes/src/main/java/dev/codewithdk/minimalist/feature/add/AddNotesScreen.kt | CodeWithDino | 533,160,953 | false | null | package dev.codewithdk.minimalist.feature.add
import androidx.annotation.VisibleForTesting
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.ExperimentalLifecycleComposeApi
@OptIn(ExperimentalLifecycle... | 13 | Kotlin | 0 | 1 | 55c760fe5e836cacb5569e0a7f9312cdcecb143e | 649 | android-app-starter | Apache License 2.0 |
BineClient/App/BineClient/app/src/main/java/com/microsoft/mobile/polymer/mishtu/utils/CenterZoomLinearLayoutManager.kt | microsoft | 563,698,948 | false | {"Kotlin": 1296950, "Java": 406327, "Gherkin": 3712, "Shell": 1179} | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package com.microsoft.mobile.polymer.mishtu.utils
import android.content.Context
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
class CenterZoomLinearLayoutMan... | 0 | Kotlin | 3 | 1 | eed3f78a61c110714227f4709873d0193d65ec50 | 1,373 | digital-content-distribution-toolkit-client | MIT License |
korge-sample/src/main/kotlin/com/soywiz/korge/sample/Sample4.kt | madtcsa | 107,608,023 | true | {"Kotlin": 958944, "Java": 182756, "ActionScript": 7295, "HTML": 174} | package com.soywiz.korge.sample
import com.soywiz.korge.Korge
import com.soywiz.korge.animate.AnLibrary
import com.soywiz.korge.input.onClick
import com.soywiz.korge.resources.Path
import com.soywiz.korge.scene.Module
import com.soywiz.korge.scene.Scene
import com.soywiz.korge.view.Container
import com.soywiz.korge.vi... | 0 | Kotlin | 0 | 0 | cee8132dd63f168cdcc186c5510afd6985a53b3f | 896 | korge | Apache License 2.0 |
technocracy.foundation/src/main/kotlin/net/cydhra/technocracy/foundation/api/ecs/logic/LogicClientDelegate.kt | tth05 | 198,904,996 | false | null | package net.cydhra.technocracy.foundation.model.tileentities.api.logic
/**
* Default implementation of an [ILogicClient] that just accepts registered [ILogic] implementations and updates them
* on each [tick] call without further logic.
*/
class LogicClientDelegate : ILogicClient {
private val logicStrategies:... | 0 | null | 0 | 1 | 057d12813fbcb73a11b202caae0631020b2fa303 | 1,037 | Technocracy | MIT License |
src/main/kotlin/icu/windea/starboundText/editor/StarboundTextAnnotator.kt | DragonKnightOfBreeze | 345,884,003 | false | null | package icu.windea.starboundText.editor
import com.intellij.lang.annotation.*
import com.intellij.lang.annotation.HighlightSeverity.*
import com.intellij.openapi.project.*
import com.intellij.psi.*
import icu.windea.starboundText.*
import icu.windea.starboundText.highlighter.StarboundTextAttributesKeys.COLORFUL_TEXT_K... | 0 | Kotlin | 0 | 0 | 95acab07cbae0bc7ea844970bf9a19d262786df6 | 2,433 | Starbound-Text | MIT License |
library/src/jsMain/kotlin/recharts/LineChart.kt | tonycode | 692,014,536 | false | {"Kotlin": 10685} | @file:JsModule("recharts")
@file:JsNonModule
package recharts
import react.ComponentClass
import react.Props
@JsName("LineChart")
external val LineChart : ComponentClass<LineChartProps>
external interface LineChartProps : Props {
var width: Int
var height: Int
var margin: Margin
var data: Array... | 0 | Kotlin | 0 | 0 | e82625650c68e6ed6669d67523241aba6f7eb2a1 | 333 | kotlin-recharts | MIT License |
cams-component-network/src/main/java/com/linwei/cams/component/network/configuration/ApiEnv.kt | WeiShuaiDev | 390,640,743 | false | null | package com.linwei.cams.component.network.configuration
enum class ApiEnv {
ENV_TEST, ENV_RELEASE
} | 0 | Kotlin | 0 | 3 | 37ffb7142ce1141c7b09ef69664c535150d25aaa | 104 | CamsModular | Apache License 2.0 |
services/csm.cloud.project.project/src/main/kotlin/com/bosch/pt/iot/smartsite/project/exporter/model/dto/TopicAttachmentDescription.kt | boschglobal | 805,348,245 | false | {"Kotlin": 13156190, "HTML": 274761, "Go": 184388, "HCL": 158560, "Shell": 117666, "Java": 52634, "Python": 51306, "Dockerfile": 10348, "Vim Snippet": 3969, "CSS": 344} | /*
* ************************************************************************
*
* Copyright: <NAME> Power Tools GmbH, 2018 - 2023
*
* ************************************************************************
*/
package com.bosch.pt.iot.smartsite.project.exporter.model.dto
import com.bosch.pt.iot.smartsite... | 0 | Kotlin | 3 | 9 | 9f3e7c4b53821bdfc876531727e21961d2a4513d | 746 | bosch-pt-refinemysite-backend | Apache License 2.0 |
app/src/main/java/io/github/drumber/kitsune/data/repository/MangaRepository.kt | Drumber | 406,471,554 | false | {"Kotlin": 993796, "Ruby": 2109} | package io.github.drumber.kitsune.data.repository
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.map
import io.github.drumber.kitsune.constants.Repository
import io.github.drumber.kitsune.data.mapper.MediaMapper.toManga
import io.github.drumber.kitsune.data.presentation.model.m... | 6 | Kotlin | 4 | 92 | ba6f2a69cb71a9fd71d4825921ff6d9b6300471e | 2,002 | Kitsune | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/deadline/CfnQueueFleetAssociationDsl.kt | F43nd1r | 643,016,506 | false | {"Kotlin": 5241135} | package com.faendir.awscdkkt.generated.services.deadline
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.String
import kotlin.Unit
import software.amazon.awscdk.services.deadline.CfnQueueFleetAssociation
import software.amazon.awscdk.services.deadline.CfnQueueFleetAssociationPro... | 1 | Kotlin | 0 | 4 | 1dd57d2f5d9aea51f79dc559ed572042bffc5cf4 | 894 | aws-cdk-kt | Apache License 2.0 |
tools/src/main/kotlin/com/fphoenixcorneae/common/util/toast/style/ToastQQStyle.kt | FPhoenixCorneaE | 303,260,191 | false | null | package com.fphoenixcorneae.common.util.toast.style
/**
* QQ 样式实现
*/
class ToastQQStyle : BaseToastStyle() {
override val z: Int
get() = 0
override val cornerRadius: Int
get() = dp2px(4f)
override val backgroundColor: Int
get() = -0xcccccd
override val textColor: Int
... | 0 | null | 1 | 5 | 30fb45aee64e74e36f7a834646096a665b6835a0 | 536 | common-tools | Apache License 2.0 |
app/src/main/java/com/example/demologin/data/response/Coffee.kt | daovu97 | 483,534,483 | false | {"Kotlin": 29238} | package com.example.demologin.data.response
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
data class Coffee(
@SerializedName("title")
@Expose
var title: String? = null,
@SerializedName("description")
@Expose
var description: String? = null,
@... | 0 | Kotlin | 0 | 0 | c7390197370517c3185b71fa57163af0bfb3a42c | 469 | DemoLogin | MIT License |
android-weather-mvp-clean/domain/src/main/kotlin/io/sametkurumahmut/weather/domain/model/WeatherDetails.kt | sametkurumahmut | 116,595,636 | false | null | package io.sametkurumahmut.weather.domain.model
data class WeatherDetails(val temp: Double, val maxTemp: Double, val minTemp: Double)
| 1 | null | 1 | 1 | 329b53e856851d0fd505aa87d4e2aa3d1545ce41 | 135 | weather-mvp-clean | Apache License 2.0 |
presentation/src/main/java/com/noxel/colorstudio/ui/main/home/HomeFragment.kt | AsmaGhafoorian | 194,685,601 | false | null | package com.noxel.colorstudio.ui.main.home
import android.content.ActivityNotFoundException
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.noxel.colorstudio.*
impo... | 1 | null | 1 | 1 | 83bd2e9e8a1a114478b56645e472f05121136c6b | 4,154 | color_studio | Apache License 2.0 |
app/src/main/java/co/omisego/omgshop/pages/checkout/caller/CheckoutCallerContract.kt | omisego | 116,834,032 | false | {"Kotlin": 233704, "Java": 3646} | package co.omisego.omgshop.pages.checkout.caller
import co.omisego.omgshop.base.BaseContract
import co.omisego.omgshop.models.Credential
import co.omisego.omgshop.models.Product
import co.omisego.omgshop.models.Response
import co.omisego.omisego.model.APIError
import co.omisego.omisego.model.OMGResponse
import co.omis... | 0 | Kotlin | 5 | 6 | 05334ec4c00cfd6df3d5bd97c3145f317501c0e1 | 1,021 | sample-android | Apache License 2.0 |
platform/lang-impl/src/com/intellij/ide/util/PsiElementBackgroundListCellRenderer.kt | balagurusurendar | 242,815,939 | false | null | // Copyright 2000-2021 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.ide.util
import com.intellij.ide.IdeBundle
import com.intellij.ide.util.PsiElementListCellRenderer.ItemMatchers
import com.intellij.psi.PsiElement
import com... | 1 | null | 1 | 1 | 7977da3c835d356e27f2cd5541178fb794ca094f | 4,789 | intellij-community | Apache License 2.0 |
library/src/main/kotlin/com/twitter/meil_mitu/twitter4hk/api/trends/Closest.kt | MeilCli | 51,423,644 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Java": 3, "XML": 22, "Kotlin": 303, "Checksums": 6} | package com.twitter.meil_mitu.twitter4hk.api.trends
import com.twitter.meil_mitu.twitter4hk.AbsGet
import com.twitter.meil_mitu.twitter4hk.AbsOauth
import com.twitter.meil_mitu.twitter4hk.OauthType
import com.twitter.meil_mitu.twitter4hk.ResponseList
import com.twitter.meil_mitu.twitter4hk.converter.ITrendPlaceConvert... | 0 | Kotlin | 0 | 0 | 818e42ea417c326e3d50024decce4c7e70641a73 | 1,010 | Twitter4HK | MIT License |
components/src/main/java/lt/markmerkk/utils/Ticker.kt | marius-m | 67,072,115 | false | null | package lt.markmerkk.utils
import lt.markmerkk.WTEventBus
import lt.markmerkk.events.EventTickTock
import org.slf4j.LoggerFactory
import rx.Observable
import rx.Scheduler
import rx.Subscription
import java.util.concurrent.TimeUnit
import java.util.concurrent.atomic.AtomicBoolean
/**
* Auto updater that kicks in auto... | 1 | Kotlin | 1 | 26 | 6632d6bfd53de4760dbc3764c361f2dcd5b5ebce | 1,325 | wt4 | Apache License 2.0 |
app/src/main/java/me/shreyasr/chatse/event/ChatEventGenerator.kt | surajrao | 151,381,638 | true | {"Kotlin": 52749, "Java": 20530} | package me.shreyasr.chatse.event
import org.codehaus.jackson.JsonNode
import org.codehaus.jackson.map.ObjectMapper
import timber.log.Timber
import java.io.IOException
/**
* Generates an event for a JSON payload.
*/
class ChatEventGenerator {
private val mapper = ObjectMapper()
fun createEvent(json: JsonNo... | 0 | Kotlin | 0 | 0 | 3f351bb2dc44c3361934e5c5c7a704b044e18c83 | 575 | ChatSE | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.