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/com/hms/codelab/pillreminder/utils/Constant.kt | Explore-In-HMS | 518,848,489 | false | {"Kotlin": 141908} | /**
* Copyright 2022. Huawei Technologies Co., Ltd. All rights reserved.
* <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>
... | 0 | Kotlin | 0 | 1 | 48e7558c5cae3b400816d2d15d744835856ad9e9 | 1,611 | PillReminder | Apache License 2.0 |
z2-lib/src/jvmMain/kotlin/hu/simplexion/z2/worker/runtime/WorkerRuntimeResponse.kt | spxbhuhb | 665,463,766 | false | {"Kotlin": 989363, "CSS": 127215, "Java": 7175, "HTML": 1560, "JavaScript": 975} | package hu.simplexion.z2.worker.runtime
import hu.simplexion.z2.util.UUID
import hu.simplexion.z2.worker.model.WorkerRegistration
class WorkerRuntimeResponse(
val registration : WorkerRegistration? = null,
val registrationUuid : UUID<WorkerRegistration>? = null,
val registrationList : List<WorkerRegistrat... | 5 | Kotlin | 0 | 1 | da267d17fcfa20631ba3d539efd7cbe42a4aa8ca | 373 | z2-pre | Apache License 2.0 |
kstorage/src/commonMain/kotlin/ru/astrainteractive/klibs/kstorage/suspend/provider/FlowProvider.kt | makeevrserg | 669,073,378 | false | {"Kotlin": 24337} | package ru.astrainteractive.klibs.kstorage.suspend.provider
import kotlinx.coroutines.flow.Flow
fun interface FlowProvider<out T> {
fun provide(): Flow<T?>
}
| 0 | Kotlin | 0 | 1 | 67d7a37b58b8112687b9af42e8c8e80a4df22f6f | 164 | klibs.kstorage | Apache License 2.0 |
app/src/main/java/com/mshaw/pokemon/core/viewmodels/SampleViewModel.kt | michaeltheshah | 699,053,335 | false | {"Kotlin": 31104} | package com.mshaw.vin.core.viewmodels
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.mshaw.vin.data.models.request.toPokemon
import com.mshaw.vin.dat... | 0 | Kotlin | 0 | 0 | ad52ae0502f3d71e82c7da972e19061cc3d2d799 | 1,122 | android-clean-architecture-template | MIT License |
app/src/main/java/com/example/fatflat/ui/logged/weekview/Event.kt | UrielAndrango | 310,936,088 | false | {"Java": 485396, "Kotlin": 7020} | package com.example.fatflat.ui.logged.weekview
import java.util.*
data class Event(
val id: Long,
val title: String,
val startTime: Calendar,
val endTime: Calendar
)
| 1 | null | 1 | 1 | 718f5a7519a871905119cfc3a93eaba60bab2858 | 200 | FastFlat | Apache License 2.0 |
app/src/main/java/com/ahmetocak/shoppingapp/presentation/home/Home.kt | AhmetOcak | 709,767,900 | false | {"Kotlin": 275284} | package com.ahmetocak.shoppingapp.presentation.home
import androidx.annotation.StringRes
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.AccountCircle
import androidx.compose.material.icons.filled.Favorite
import androidx.compose.material.icons.filled.Home
import androidx.com... | 0 | Kotlin | 0 | 1 | ffa63f3165ff2256a11b599d183ae3774245dec3 | 4,054 | JetpackCompose-Shopping-App | Apache License 2.0 |
inef-app/app/src/main/java/com/example/catedrakotlin/Env.kt | ZANK123-F | 850,174,061 | false | {"Kotlin": 76077, "JavaScript": 67398, "HTML": 446} | package com.example.catedrakotlin
class Env {
companion object {
var SERVER_HOST: String = "https://api-render-inef.onrender.com"
}
}
| 0 | Kotlin | 0 | 0 | 95bff6e28ac01a1f3ba3cdf44df3724ce298fe6a | 152 | Catedra-DSM-Kotlin | Creative Commons Attribution 4.0 International |
app/src/main/java/com/eky/evimiss/data/model/EventEntity.kt | EnesKy | 400,728,510 | false | null | package com.eky.evimiss.data.model
import android.os.Parcelable
import com.eky.evimiss.utils.*
import kotlinx.parcelize.Parcelize
import org.threeten.bp.LocalDate
import org.threeten.bp.LocalDateTime
@Parcelize
data class EventEntity(
var id: String? = "",
val calendarId: String? = "",
val title: String? ... | 0 | Kotlin | 0 | 1 | fa105d04962425f65fed2a13838da454b8e3d325 | 2,035 | Evimiss | MIT License |
app/src/main/java/me/lazy_assedninja/util/domain/util/GetUtilList.kt | henryhuang1219 | 350,927,277 | false | null | package me.lazy_assedninja.util.domain.util
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.withContext
import me.lazy_assedninja.util.data.Resource
import me.lazy_assedninja.util.data.repository.UtilRepository
import me.lazy_assedninja.util.di.IODispatcher
import me.lazy_assedninja.util.librar... | 0 | Kotlin | 1 | 1 | fb043d8af658da19a79f70a0e948199bf9a7de9a | 773 | Android-Utils | Apache License 2.0 |
app/src/main/java/com/example/cpudefense/Marketplace.kt | ochadenas | 479,963,667 | false | null | package com.example.cpudefense
import android.graphics.*
import android.view.MotionEvent
import androidx.appcompat.app.AlertDialog
import com.example.cpudefense.effects.Fader
import com.example.cpudefense.gameElements.Button
import com.example.cpudefense.gameElements.GameElement
import com.example.cpudefense.networkma... | 5 | null | 5 | 14 | d4b5927262bed98edc087f10ccbf725da679d7af | 8,214 | cpudefense | MIT License |
door-runtime/src/commonMain/kotlin/com/ustadmobile/door/lifecycle/LiveData.kt | UstadMobile | 344,538,858 | false | null | package com.ustadmobile.door.lifecycle
expect abstract class LiveData<T: Any?>() {
open fun observe(lifecycleOwner: LifecycleOwner, observer: Observer<in T>)
open fun observeForever(observer: Observer<in T>)
open fun removeObserver(observer: Observer<in T>)
open fun getValue(): T?
@Suppress("N... | 0 | Kotlin | 0 | 89 | 58f93d9057ece78cc3f8be3d4d235c0204a15f11 | 660 | door | Apache License 2.0 |
src/main/kotlin/com/beomsu317/entity/Room.kt | beomsu317 | 481,200,228 | false | null | package com.beomsu317.entity
import org.bson.codecs.pojo.annotations.BsonId
import org.litote.kmongo.Id
import org.litote.kmongo.newId
data class Room(
@BsonId val id: Id<Room> = newId(),
val owner: Id<User>,
val users: Set<Id<User>>,
)
| 0 | Kotlin | 0 | 0 | aa3b2a396f1c7ee7fd669547ed1c69ae6a52d9bb | 251 | private-chat-server | Apache License 2.0 |
app/src/main/java/io/traxa/ui/main/MainViewModel.kt | chrisinvb | 517,052,842 | false | {"Kotlin": 213490, "Java": 18186} | package io.traxa.ui.main
import android.app.Application
import android.content.Intent
import android.content.res.Configuration
import android.graphics.Color
import android.location.Location
import android.view.Surface
import android.view.View
import android.widget.Toast
import androidx.camera.core.CameraSelector
impor... | 0 | Kotlin | 0 | 0 | a21ba2aa3dfa3056083b0f72c644c913c3df45b8 | 3,953 | traxaio_android_polygon_filecoin | MIT License |
src/main/kotlin/ua/kurinnyi/jaxrs/auto/mock/DependenciesRegistry.kt | Kurinnyi | 153,566,842 | false | null | package ua.kurinnyi.jaxrs.auto.mock
import ua.kurinnyi.jaxrs.auto.mock.extensions.ResponseBodyProvider
import ua.kurinnyi.jaxrs.auto.mock.filters.HttpRequestResponseHolder
import ua.kurinnyi.jaxrs.auto.mock.response.RequestProxy
import ua.kurinnyi.jaxrs.auto.mock.mocks.SerialisationUtils
import ua.kurinnyi.jaxrs.auto.... | 0 | Kotlin | 1 | 5 | a100b58f2092fc2dd57a474e644706d24681c11f | 696 | Jax-Rs-Auto-Mock | MIT License |
modules/entities/sources-jvm/bson/RaptorTypedEntityIdBsonDefinition.kt | cybernetics | 323,978,106 | true | {"Kotlin": 350742} | package io.fluidsonic.raptor
import kotlin.reflect.full.*
internal fun RaptorTypedEntityId.Companion.bsonDefinition(
definitions: Collection<RaptorEntityIdDefinition<*>>,
) = raptor.bson.definition<RaptorTypedEntityId> {
val discriminatorByClass = definitions.associate { it.type to it.discriminator }
val typesByD... | 0 | null | 0 | 0 | 19cf33c0c7ecae6ddc2fcef2387830d367ad52be | 922 | raptor | Apache License 2.0 |
app/src/main/java/com/example/fetchrewardsapp/data/api/FetchResult.kt | appgenicx | 860,401,649 | false | {"Kotlin": 21421} | package com.example.fetchrewardsapp.data.api
sealed class FetchResult<out T> {
data class Success<out T>(val data: T) : FetchResult<T>()
data class Error<out T>(val errorMessage: String?, val data: T? = null) : FetchResult<T>()
data object Loading : FetchResult<Nothing>()
} | 0 | Kotlin | 0 | 0 | 0964aea114ffc5a40345ff95b2b8bb6eb25dc581 | 287 | FetchRewardsApp | MIT License |
app/src/main/java/projects/nyinyihtunlwin/diyrecipes/destinations/MealCategoryList.kt | nyinyihtunlwin-codigo | 759,744,816 | false | {"Kotlin": 113957} | package projects.nyinyihtunlwin.diyrecipes.destinations
import androidx.compose.runtime.Composable
import com.ramcosta.composedestinations.annotation.Destination
import com.ramcosta.composedestinations.annotation.RootNavGraph
import com.ramcosta.composedestinations.navigation.DestinationsNavigator
import projects.nyin... | 0 | Kotlin | 0 | 0 | 936429d6d3a59bc30c339e0277168b052ceb72f2 | 974 | diy-recipes | Apache License 2.0 |
app/src/main/java/com/lorenzovainigli/foodexpirationdates/model/worker/CheckExpirationsWorker.kt | lorenzovngl | 608,766,656 | false | null | package com.lorenzovainigli.foodexpirationdates.model.worker
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import androidx.core.app.NotificationCompat
import androidx.core.content.ContextComp... | 9 | null | 14 | 52 | 77e350dffc26bd7ae789adfd00142a28eb5ce188 | 4,044 | FoodExpirationDates | MIT License |
src/main/kotlin/hu/advent/of/code/year2019/day3/Puzzle3A.kt | sztojkatamas | 568,512,275 | false | null | package hu.advent.of.code.year2019.day3
import hu.advent.of.code.AdventOfCodePuzzle
import hu.advent.of.code.BaseChallenge
import kotlin.math.abs
@AdventOfCodePuzzle
class Puzzle3A: BaseChallenge(2019) {
override fun run() {
printPuzzleName()
loadDataFromFile("data3.txt")
println("Minimum... | 0 | Kotlin | 0 | 0 | c710f6778fa8eeade0d100bf6824e5dd4774b536 | 4,234 | advent-of-code-universe | MIT License |
src/main/kotlin/Main.kt | nomemory | 255,720,445 | false | null | import mu.KotlinLogging
import net.andreinc.serverneat.CliApp
import net.andreinc.serverneat.logging.ansi
import picocli.CommandLine
private val logger = KotlinLogging.logger { }
fun main(args: Array<String>) {
logger.info { ansi("Initialising {logoNeat ServerNeat}") }
CommandLine(CliApp()).execute(*args)
} | 11 | Kotlin | 0 | 18 | 13e34a1e4cab05dade445f1ad5495cb3956e97fc | 319 | serverneat | Apache License 2.0 |
tmp/arrays/youTrackTests/738.kt | DaniilStepanov | 228,623,440 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | // Original bug: KT-43868
package localFunction
fun main() {
val x = 1
fun bar(): Int {
val y = x
return y + 1
}
//Breakpoint!
val a = x + bar()
}
// EXPRESSION: bar()
// RESULT: 2: I
| 1 | null | 1 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 224 | bbfgradle | Apache License 2.0 |
app/src/main/java/com/example/tophair/app/data/entities/enum/TitleType.kt | TOP-HAIR | 774,715,222 | false | {"Kotlin": 248739} | package com.example.tophair.app.data.entities.enum
import androidx.compose.ui.unit.TextUnit
import androidx.compose.ui.unit.sp
enum class TitleType(val tipoTitulo: String, val fontSize: TextUnit) {
H1(tipoTitulo = "h1", fontSize = 22.sp),
H2(tipoTitulo = "h2", fontSize = 20.sp),
H3(tipoTitulo = "h3", font... | 0 | Kotlin | 1 | 0 | 4219e8ed9922f3cb0fed332cfd31a276152c797d | 470 | MB_TopHair.Android | MIT License |
kickassanime/src/main/java/com/otaku/kickassanime/page/frontpage/list/PopularFragment.kt | snehilrx | 480,652,667 | false | null | package com.otaku.kickassanime.page.frontpage.list
import androidx.navigation.fragment.findNavController
import com.otaku.fetch.data.ITileData
import com.otaku.kickassanime.db.models.AnimeTile
class PopularFragment : FrontPageListFragment() {
override fun getList() = frontPageListViewModel.popular
override fu... | 2 | Kotlin | 6 | 60 | bb0ddca3dc6cb8410094d1e46516452153662d91 | 732 | Fetch | MIT License |
destiny-rule/src/main/kotlin/com/kyledahlin/destiny/Destiny2Translator.kt | kadahlin | 177,455,048 | false | null | package com.kyledahlin.destiny
import com.kyledahlin.utils.getObject
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.json.*
import javax.inject.Inject
private const val MOD_COMPONENT_HASH = "4046539562"
/**
* Parse the json responses from the bungie api
*/
open class Destiny2Translator @... | 0 | Kotlin | 0 | 2 | 2944d8c36d9b6adbeceab406e4ee08b247c66034 | 11,495 | RuleDiscordBot | Apache License 2.0 |
commonDomain/src/commonTest/kotlin/com/netguru/commondomain/shop/model/RecentlyViewedProductTest.kt | netguru | 532,784,187 | false | null | package com.netguru.commondomain.shop.model
import kotlin.test.Test
import kotlin.test.assertEquals
class RecentlyViewedProductTest {
@Test
fun `GIVEN product WHEN create recently viewed product THEN map data correctly`() {
val product = Product(
id = "1",
name = "<NAME>",
... | 0 | Kotlin | 0 | 9 | d755ffe5cf9f87d7c461f029ce6364ce655741e2 | 824 | rnd-retail-multiplatform-public | MIT License |
gaia-sdk-java/gaia-sdk-graphql/src/main/kotlin/gaia/sdk/request/input/DeleteSkillImpulse.kt | leftshiftone | 218,051,248 | false | {"Python": 597076, "TypeScript": 553203, "Kotlin": 517386, "JavaScript": 6976, "ANTLR": 2281} | package gaia.sdk.request.input
import gaia.sdk.client.Type
import gaia.sdk.request.intf.*
import gaia.sdk.client.Input
import gaia.sdk.Uuid
import gaia.sdk.ISO8601
import gaia.sdk.Struct
import gaia.sdk.request.input.*
import gaia.sdk.request.enumeration.*
/**
* The specification to delete a Skill instance
*/
class... | 8 | Python | 2 | 1 | 10190c1de4b2b5f1d4a5f014602c4ccc5c11bee4 | 394 | gaia-sdk | MIT License |
client/app/src/main/java/com/microsoft/research/karya/selectAppLanguage/FetchFileResourcesForAppLanguage.kt | sorskog | 367,672,600 | true | {"TypeScript": 729546, "Kotlin": 312743, "Java": 32041, "JavaScript": 6753, "CSS": 1987, "HTML": 1428} | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/**
* Activity to fetch file resources for the selected app language.
*/
package com.microsoft.research.karya.selectAppLanguage
import android.content.Intent
import com.microsoft.research.karya.R.string
import com.microsoft.research.karya.c... | 0 | null | 0 | 0 | 66d97154bc39d3107a0cd0f0694a68a81bd7b251 | 3,657 | rural-crowdsourcing-toolkit | MIT License |
src/main/kotlin/com/between_freedom_and_space/mono_backend/posts/internal/tags/services/exception/InvalidTagException.kt | Between-Freedom-and-Space | 453,797,438 | false | {"Kotlin": 614504, "HTML": 8733, "Dockerfile": 503, "Shell": 166} | package com.between_freedom_and_space.mono_backend.posts.internal.tags.services.exception
class InvalidTagException(message: String): Exception(message) | 0 | Kotlin | 0 | 1 | 812d8257e455e7d5b1d0c703a66b55ed2e1dcd35 | 153 | Mono-Backend | Apache License 2.0 |
src/test/kotlin/org/treeWare/server/ktor/TreeWareModuleEchoTests.kt | tree-ware | 283,844,157 | false | null | package org.treeWare.server.ktor
import io.ktor.http.*
import io.ktor.server.testing.*
import org.treeWare.metaModel.ADDRESS_BOOK_META_MODEL_FILES
import org.treeWare.server.common.TreeWareServer
import org.treeWare.util.getFileReader
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertNot... | 5 | Kotlin | 0 | 0 | e7c10b3873d3acbad883a7faeef4cc3ebc0477ab | 1,113 | tree-ware-kotlin-server | Apache License 2.0 |
app/src/main/java/com/nlasagni/countrylist/viewmodel/CountryViewModel.kt | nlasagni | 396,399,000 | false | null | /*
* MIT License
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 0 | Kotlin | 0 | 0 | 00cbe15ce89c89fd9eea139fca04179cda5d17fd | 3,588 | country-list | MIT License |
educational-core/testSrc/com/jetbrains/edu/learning/stepik/StepikTestCase.kt | aChenspring | 135,567,716 | true | {"Java": 918578, "Kotlin": 502335, "JavaScript": 451524, "CSS": 34652, "HTML": 9167, "Python": 1825} | package com.jetbrains.edu.learning.stepik
import com.intellij.lang.LanguageExtensionPoint
import com.intellij.lang.annotation.Annotator
import com.intellij.openapi.extensions.ExtensionPointName
import com.intellij.openapi.fileTypes.PlainTextLanguage
import com.intellij.openapi.project.Project
import com.intellij.opena... | 0 | Java | 0 | 0 | 782c61ac28bdf9bcefd1455fcc651e54b9eff523 | 6,253 | educational-plugin | Apache License 2.0 |
base/src/main/java/moadgara/base/util/ResourceProvider.kt | YKakdas | 692,527,114 | false | {"Kotlin": 325788} | package moadgara.base.util
import android.content.Context
import android.content.res.ColorStateList
import android.content.res.Resources
import android.graphics.Typeface
import android.graphics.drawable.Drawable
import android.view.animation.Animation
import android.view.animation.AnimationUtils
import androidx.annota... | 10 | Kotlin | 1 | 0 | 8afa99f6199938fb5a14ae5bf1aeec80256f69db | 3,440 | NexusNook | Apache License 2.0 |
byco/src/main/java/androidapp/byco/ui/ShareRideActivity.kt | philipmoltmann | 478,819,941 | false | null | /*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 0 | f2a3b29bb51e86152b058db52761a81a8888ec9f | 2,756 | byco | Apache License 2.0 |
backend/src/jvmMain/kotlin/dev/drzepka/wikilinks/app/JvmMain.kt | drzpk | 513,034,741 | false | null | package dev.drzepka.wikilinks.app
fun main(args: Array<String>) {
commonMain(args)
}
| 0 | Kotlin | 0 | 1 | ab55472076b04ff6cca0b8ae4777f074d6f7be73 | 90 | wikilinks | Apache License 2.0 |
clova-extension-core/src/main/kotlin/com/linecorp/clova/extension/model/request/CustomRequestType.kt | wangyung | 148,571,550 | true | {"Kotlin": 114700, "Shell": 260} | package com.linecorp.clova.extension.model.request
/**
* The type of clova custom request. Clova supports 3 types of requests now
*
* - Launch Request:
* When users start the conversation by saying the keyword which defined in Clova Developer Center
*
* - Intent Request:
* When the conversation is activated... | 0 | Kotlin | 0 | 0 | 25cf53c22cdc4185b2fe62358082bf988f351270 | 1,641 | clova-cek-sdk-kotlin | Apache License 2.0 |
app/src/main/java/com/youtubedl/ui/component/binding/ViewPagerBinding.kt | uocle | 162,014,328 | true | {"Kotlin": 34421, "Java": 13708} | package com.youtubedl.ui.component.binding
import android.databinding.BindingAdapter
import android.support.v4.view.PagerAdapter
import android.support.v4.view.ViewPager
/**
* Created by cuongpm on 12/9/18.
*/
object ViewPagerBinding {
@BindingAdapter("app:currentItem")
@JvmStatic
fun setCurrentItem(v... | 0 | Kotlin | 0 | 0 | 4ba75c50ac3652e5c07270716f92b86f1709a985 | 711 | youtube-dl-android | MIT License |
libraries/VastJIntent/src/main/kotlin/com/ave/vastgui/jintent/JIntentRegister.kt | SakurajimaMaii | 353,212,367 | false | {"Kotlin": 898303} | /*
* Copyright 2022 VastGui <EMAIL>
*
* 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 ... | 3 | Kotlin | 5 | 48 | b9289007a73a78a6dcf0ad54ac2ab86cad199c2f | 2,586 | Android-Vast-Extension | Apache License 2.0 |
src/test/java/com/statsig/sdk/NetworkTest.kt | statsig-io | 373,285,863 | false | {"Kotlin": 410593, "Java": 63409} | package com.statsig.sdk
import com.statsig.sdk.network.HTTPWorker
import com.statsig.sdk.network.LOG_EVENT_RETRY_COUNT
import com.statsig.sdk.network.StatsigTransport
import io.mockk.spyk
import io.mockk.unmockkAll
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotl... | 3 | Kotlin | 3 | 8 | e15176e45e76f97d51df7b40667b4cb73429fb92 | 4,270 | java-server-sdk | ISC License |
samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/List.kt | wiqun | 214,148,424 | true | {"Shell": 701, "Batchfile": 228, "YAML": 174, "Ruby": 609, "Ignore List": 230, "XML": 262, "Maven POM": 198, "Dockerfile": 21, "Markdown": 3982, "Text": 69, "Git Attributes": 1, "INI": 109, "Gradle": 98, "Java": 5168, "JSON": 441, "JavaScript": 665, "SVG": 20, "CSS": 17, "OASv2-json": 22, "HTML": 89, "OASv3-yaml": 83, ... | /**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.t... | 0 | null | 0 | 1 | ceb021cc5453ba6e67f28fba04cc02e847bfc75b | 698 | openapi-generator | Apache License 2.0 |
src/main/kotlin/cc/tweaked_programs/partnership/main/item/Hat.kt | tweaked-programs | 733,540,479 | false | {"Kotlin": 160511, "Java": 10462} | package cc.tweaked_programs.partnership.main.item
import cc.tweaked_programs.partnership.main.item.extendable.AdvancedItemDescription
import net.minecraft.network.chat.Component
import net.minecraft.world.InteractionHand
import net.minecraft.world.InteractionResultHolder
import net.minecraft.world.entity.EquipmentSlot... | 1 | Kotlin | 2 | 0 | 520ba7d8ec3df7ce1bde1690fb1dc2e5c7971ec3 | 1,162 | Partnership | MIT License |
src/main/kotlin/com/github/tsonglew/etcdhelper/activity/EhProjectStartupActivity.kt | tsonglew | 524,446,154 | false | null | /*
* MIT License
*
* Copyright (c) 2022 Tsonglew
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify,... | 12 | null | 3 | 25 | a102853a46960b54456ce7d7fb49ce360d5df4fc | 2,736 | intellij-etcdhelper | MIT License |
src/backend/ci/ext/tencent/dispatch-devcloud/biz-dispatch-macos-tencent/src/main/kotlin/com/tencent/devops/dispatch/macos/util/RSAUtils.kt | terlinhe | 281,661,499 | true | {"Kotlin": 45598476, "Vue": 6397657, "Java": 5707849, "Go": 3274290, "JavaScript": 1968867, "Lua": 856156, "HTML": 649832, "Dart": 551043, "TypeScript": 411134, "SCSS": 405673, "Shell": 403216, "C++": 149772, "CSS": 95042, "Python": 79300, "Mustache": 65146, "Smarty": 46819, "C": 33502, "Less": 24714, "Dockerfile": 229... | package com.tencent.devops.dispatch.macos.util
import org.jolokia.util.Base64Util
import java.io.ByteArrayOutputStream
import java.security.PrivateKey
import java.security.PublicKey
import javax.crypto.Cipher
object RSAUtils {
private const val transformation = "RSA"
private const val ENCRYPT_MAX_SIZE = 117
... | 0 | Kotlin | 0 | 0 | dccbcb9f44260f80ebfa1c2dad0c401222f7f93c | 4,408 | bk-ci | MIT License |
app/src/main/java/is/tiro/heyra/RecognitionActivity.kt | tiro-is | 475,076,977 | false | {"Kotlin": 33149, "Starlark": 2847} | package `is`.tiro.heyra
import android.Manifest
import android.app.Activity
import android.app.SearchManager
import android.content.ComponentName
import android.content.DialogInterface
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import android.speech.RecognitionListe... | 0 | Kotlin | 0 | 3 | b77e8331511226e3610aa86f7894687ace16166d | 6,466 | heyra | Apache License 2.0 |
src/main/kotlin/net/rossharper/awshelloworld/Main.kt | rossharper | 103,263,441 | false | null | package net.rossharper.awshelloworld
import com.squareup.moshi.JsonAdapter
import com.squareup.moshi.Moshi
import okio.Okio
import java.io.InputStream
import java.io.OutputStream
data class Request(val body: String)
data class Response(val statusCode: Int, val body: String)
data class HandlerInput(val name: String)
... | 0 | Kotlin | 0 | 0 | f486be3d9631b6f51feea3cdadbcf2801404085a | 2,062 | aws-lambda-kotlin-helloworld | Apache License 2.0 |
utils-android/src/main/java/me/lwb/utils/android/utils/SpannableUtils.kt | ve3344 | 416,659,413 | false | {"Kotlin": 114385} | package me.lwb.utils.android.utils
import android.graphics.MaskFilter
import android.text.SpannableStringBuilder
import android.text.Spanned
import android.text.TextPaint
import android.text.style.*
import android.view.View
import androidx.annotation.ColorInt
import androidx.annotation.Px
import java.util.*
/**
* Cr... | 0 | Kotlin | 1 | 1 | 85ef9cd77c343a41ed8c488f350fa72b4cb01964 | 4,046 | utils | Apache License 2.0 |
font-awesome-icon/src/main/java/app/justokay/fontawesome/model/RegularEnum.kt | justokay | 266,546,336 | false | null | package app.justokay.fontawesome.model
enum class RegularEnum(val unicod: Char) {
AF_ADDRESS_BOOK('\uf2b9'),
AF_ADDRESS_CARD('\uf2bb'),
AF_ANGRY('\uf556'),
AF_ARROW_ALT_CIRCLE_DOWN('\uf358'),
AF_ARROW_ALT_CIRCLE_LEFT('\uf359'),
AF_ARROW_ALT_CIRCLE_RIGHT('\uf35a'),
AF_ARROW_ALT_CIRCLE_UP('\u... | 0 | Kotlin | 0 | 0 | 0bcbe1c27b042af4ec1c1a244dd4199bf3a1dd89 | 4,443 | FontAwesomeIcon | Apache License 2.0 |
fastmq-client/src/main/java/com/song/fastmq/client/consumer/PullCallback.kt | aCoder2013 | 111,271,782 | false | {"Maven POM": 6, "Text": 1, "Ignore List": 1, "Markdown": 1, "Kotlin": 75, "Java": 36, "XML": 5, "Protocol Buffer": 1} | package com.song.fastmq.client.consumer
import com.song.fastmq.client.domain.Message
/**
* @author song
*/
interface PullCallback {
fun onSuccess(messages: List<Message>)
fun onThrowable(throwable: Throwable)
}
| 0 | Kotlin | 2 | 4 | 1a67ba7f6160bd849eaeb7c25499a26637af857e | 225 | fastmq | Apache License 2.0 |
src/main/kotlin/insyncwithfoo/ryecharm/ruff/InitializationOptions.kt | InSyncWithFoo | 849,672,176 | false | {"Kotlin": 264146, "Python": 3171, "HTML": 624} | package insyncwithfoo.ryecharm.ruff
import com.intellij.openapi.project.Project
import insyncwithfoo.ryecharm.configurations.ruff.ruffConfigurations
internal interface Builder
internal operator fun <B : Builder> B.invoke(block: B.() -> Unit) {
this.apply(block)
}
internal data class DisableRuleComment(
v... | 0 | Kotlin | 0 | 7 | c1a04b622fbfb02a2fb155d8c9aa069520eda23e | 1,738 | ryecharm | MIT License |
chapter_three/app/src/main/java/com/madona/chapter_three/MainActivity.kt | PacktPublishing | 797,780,112 | false | {"Kotlin": 53905} | package com.madona.chapter_three
import android.annotation.SuppressLint
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Scaff... | 0 | Kotlin | 1 | 0 | c63c5b99c480f8f1f8d461a9fa57b0bf77294578 | 909 | Modern-Android-15-Development-Cookbook-2nd-Edition | MIT License |
core/src/main/java/com/demo/developer/deraesw/demomoviewes/core/utils/MapperUtils.kt | deraesw | 213,497,500 | false | null | package com.demo.developer.deraesw.demomoviewes.core.utils
import com.demo.developer.deraesw.demomoviewes.core.data.entity.Casting
import com.demo.developer.deraesw.demomoviewes.core.data.entity.Crew
import com.demo.developer.deraesw.demomoviewes.core.data.entity.People
import com.demo.developer.deraesw.demomoviewes.c... | 0 | Kotlin | 0 | 0 | 5a08da87f4ed8acd75035dbc775807014cafbc32 | 2,637 | DemoMovieWes | MIT License |
pageable2sources_ignite_cacheable/customer-pageable-rsql/src/test/kotlin/br/com/vagai/customer/ClienteNopageableApplicationTests.kt | viniciustoni | 251,750,270 | false | null | package br.com.vagai.customer
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class ClienteNopageableApplicationTests {
@Test
fun contextLoads() {
}
}
| 0 | Kotlin | 0 | 0 | 8dcd2b54b4bd91bef9357468f15c1cba7affdebb | 220 | kotlin-samples | MIT License |
korau-mod/src/commonMain/kotlin/korlibs/audio/mod/S3M.kt | korlibs | 596,629,584 | false | null | @file:Suppress("unused", "NAME_SHADOWING", "UNUSED_PARAMETER", "FunctionName", "MemberVisibilityCanBePrivate")
package korlibs.audio.mod
import korlibs.datastructure.IntDeque
import korlibs.time.measureTime
import korlibs.memory.*
import korlibs.audio.sound.NativeSoundProvider
import korlibs.audio.sound.Sound
import ... | 0 | Kotlin | 0 | 0 | c7d4dba4b5e2a1d0780e63c653c4f3f940d861e1 | 38,973 | korge-audio-formats | MIT License |
utils/hyperscan/src/main/kotlin/io/bluetape4k/hyperscan/PatternFilter.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.hyperscan
import io.bluetape4k.hyperscan.wrapper.CompileErrorException
import io.bluetape4k.hyperscan.wrapper.Database
import io.bluetape4k.hyperscan.wrapper.Expression
import io.bluetape4k.hyperscan.wrapper.ExpressionFlag
import io.bluetape4k.hyperscan.wrapper.Scanner
import io.bluetape4k.hypers... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 4,328 | bluetape4k | MIT License |
escommons-toolkit/src/main/kotlin/org/biacode/escommons/toolkit/configuration/EsCommonsApplicationContextRefreshedEventListener.kt | Biacode | 97,226,786 | false | null | package org.biacode.escommons.toolkit.configuration
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.module.kotlin.... | 6 | null | 5 | 6 | 518620a41f97cc6cb119e02969ba3a66d574c2a8 | 1,373 | escommons | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/module-info.kt | F43nd1r | 643,016,506 | false | {"Kotlin": 4649542} | @file:Generated(value = ["Generated based on CDK v2.102.0"])
package com.faendir.awscdkkt.generated
import javax.`annotation`.Generated
| 1 | Kotlin | 0 | 0 | b24a42f18bf9a4ef8b767f8b0a7275d8200ec5e9 | 139 | aws-cdk-kt | Apache License 2.0 |
core/src/main/kotlin/gropius/model/template/RelationPartnerTemplate.kt | ccims | 487,996,394 | false | null | package gropius.model.template
import com.expediagroup.graphql.generator.annotations.GraphQLDescription
import io.github.graphglue.model.*
import org.springframework.data.annotation.Transient
@DomainNode
@GraphQLDescription("Template for RelationPartners.")
abstract class RelationPartnerTemplate<T, S : RelationPartne... | 2 | Kotlin | 1 | 0 | a0b0538d1960e920d53bc9dc2d7026dfea49d723 | 1,095 | gropius-backend | MIT License |
eclipse-plugin/com.alibaba.smartfox.eclipse.plugin/src/main/kotlin/com/alibaba/smartfox/eclipse/handler/SwitchLanguageHandler.kt | wang-yan-github | 109,469,673 | false | null | /*
* Copyright 1999-2017 Alibaba Group.
*
* 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 a... | 0 | null | 3 | 7 | 34383b4d04258a984088dcc448f5307ec37702de | 1,888 | p3c | Apache License 2.0 |
app/src/main/java/com/takusemba/jethub/ui/MainActivity.kt | TakuSemba | 163,260,752 | false | null | package com.takusemba.jethub.ui
import android.os.Bundle
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.flowWithLifecycle
import androidx.lifecycle.lifecycleScope
import an... | 0 | Kotlin | 53 | 415 | 9d052c3f444fef0524c75ea69547931894c778a8 | 2,274 | JetHub | Apache License 2.0 |
sam-java-core/src/main/kotlin/software/elborai/api/services/blocking/GroupService.kt | DefinitelyATestOrg | 787,029,081 | false | {"Kotlin": 13368521, "Shell": 3638, "Dockerfile": 366} | // File generated from our OpenAPI spec by Stainless.
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package software.elborai.api.services.blocking
import software.elborai.api.core.RequestOptions
import software.elborai.api.models.Group
import software.elborai.api.models.G... | 1 | Kotlin | 0 | 0 | 896c77d132ececb8926a3b29f08ea09c98355ecd | 604 | sam-java | Apache License 2.0 |
src/main/kotlin/no/nav/sokos/spk.mottak/api/DummyApi.kt | navikt | 758,019,980 | false | {"Kotlin": 17763, "Shell": 2401, "Dockerfile": 244} | package no.nav.sokos.spk.mottak.api
import io.ktor.http.HttpStatusCode
import io.ktor.server.application.call
import io.ktor.server.response.respond
import io.ktor.server.routing.Route
import io.ktor.server.routing.get
import io.ktor.server.routing.route
import no.nav.sokos.spk.mottak.service.DummyService
fun Route.d... | 1 | Kotlin | 0 | 0 | fadbec4a53110132026853c3c20dab8370725b8d | 574 | sokos-spk-mottak | MIT License |
app/src/main/kotlin/fr/letroll/githubbookmarkmanager/flow/activity/MainActivity.kt | letroll | 27,186,114 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "XML": 9, "Kotlin": 17, "Java": 4} | package fr.letroll.githubbookmarkmanager.flow.activity
import android.os.Bundle
import android.widget.Button
import fr.letroll.githubbookmarkmanager.R
import fr.letroll.githubbookmarkmanager.api.GithubApi
import fr.letroll.kotlinandroidlib.findView
import rx.functions.Action1
/**
* Created by jquievreux on 26/11/14.... | 0 | Kotlin | 0 | 0 | 6ce81c5f3aa5cb40df4d33bc5e06f8a844832431 | 1,695 | githubbookmarkmanager | Apache License 2.0 |
src/main/kotlin/de/flapdoodle/statik/pipeline/generate/DefaultPathMapGenerator.kt | flapdoodle-oss | 350,813,259 | false | null | package de.flapdoodle.statik.pipeline.generate
import de.flapdoodle.statik.config.Id
import de.flapdoodle.statik.config.PageDefinition
import de.flapdoodle.statik.config.Pages
import de.flapdoodle.statik.documents.Document
import de.flapdoodle.statik.documents.DocumentSet
import de.flapdoodle.statik.filetypes.Attribut... | 0 | Kotlin | 1 | 0 | 347ea640ac74ed937f362dfe4d3b42c50c50a8c8 | 4,212 | de.flapdoodle.static | Apache License 2.0 |
src/main/kotlin/de/flapdoodle/statik/pipeline/generate/DefaultPathMapGenerator.kt | flapdoodle-oss | 350,813,259 | false | null | package de.flapdoodle.statik.pipeline.generate
import de.flapdoodle.statik.config.Id
import de.flapdoodle.statik.config.PageDefinition
import de.flapdoodle.statik.config.Pages
import de.flapdoodle.statik.documents.Document
import de.flapdoodle.statik.documents.DocumentSet
import de.flapdoodle.statik.filetypes.Attribut... | 0 | Kotlin | 1 | 0 | 347ea640ac74ed937f362dfe4d3b42c50c50a8c8 | 4,212 | de.flapdoodle.static | Apache License 2.0 |
composeApp/src/commonMain/kotlin/presentation/screens/home/pager/FriendListPagerProvider.kt | vrcm-team | 746,586,818 | false | {"Kotlin": 501008, "Swift": 4064} | package io.github.vrcmteam.vrcm.presentation.screens.home.pager
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
impor... | 0 | Kotlin | 3 | 10 | a5285f985bb503cf8d925a1809bde3dadaa83d9f | 9,411 | VRCM | MIT License |
composeApp/src/commonMain/kotlin/presentation/screens/home/pager/FriendListPagerProvider.kt | vrcm-team | 746,586,818 | false | {"Kotlin": 501008, "Swift": 4064} | package io.github.vrcmteam.vrcm.presentation.screens.home.pager
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
impor... | 0 | Kotlin | 3 | 10 | a5285f985bb503cf8d925a1809bde3dadaa83d9f | 9,411 | VRCM | MIT License |
app/src/main/java/com/chocolate/tic_tac_toe/domain/usecase/UpdatePlayerStateUseCase.kt | team-chocolate-cake | 665,237,715 | false | null | package com.chocolate.tic_tac_toe.domain.usecase
import com.chocolate.tic_tac_toe.data.repository.GameRepository
import javax.inject.Inject
class UpdatePlayerStateUseCase @Inject constructor(
private val gameRepository: GameRepository
) {
suspend operator fun invoke(id: String, isWaiting: Boolean) {
g... | 0 | Kotlin | 3 | 1 | 83bb08ac0452db68afaf9bbf97df9f9ff71811d2 | 374 | Tic-Tac-Toe | MIT License |
app/src/main/java/com/chocolate/tic_tac_toe/domain/usecase/UpdatePlayerStateUseCase.kt | team-chocolate-cake | 665,237,715 | false | null | package com.chocolate.tic_tac_toe.domain.usecase
import com.chocolate.tic_tac_toe.data.repository.GameRepository
import javax.inject.Inject
class UpdatePlayerStateUseCase @Inject constructor(
private val gameRepository: GameRepository
) {
suspend operator fun invoke(id: String, isWaiting: Boolean) {
g... | 0 | Kotlin | 3 | 1 | 83bb08ac0452db68afaf9bbf97df9f9ff71811d2 | 374 | Tic-Tac-Toe | MIT License |
src/main/kotlin/no/nav/dagpenger/datadeling/utils/ApiUtils.kt | navikt | 639,375,864 | false | {"Kotlin": 32119, "Dockerfile": 106} | package no.nav.dagpenger.datadeling.utils
import com.papsign.ktor.openapigen.route.response.OpenAPIPipelineResponseContext
import io.ktor.http.*
import io.ktor.server.config.*
fun isLocal(config: ApplicationConfig): Boolean {
return config.propertyOrNull("ENV")?.getString() == "LOCAL"
}
suspend inline fun <reif... | 0 | Kotlin | 0 | 1 | 36f15a184f31736b1f473e2751968a5c39981e68 | 726 | dp-datadeling | MIT License |
mobile/src/main/java/io/github/tonnyl/latticify/data/UsersProfile.kt | TonnyL | 106,430,606 | false | null | package io.github.tonnyl.latticify.data
import android.annotation.SuppressLint
import android.arch.persistence.room.ColumnInfo
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
/**
* Created by lizhaotailang on 08/10/2017.
*/
@Parcelize
@SuppressL... | 2 | null | 4 | 43 | 4f8103fb6a5d46821bf459128dd9c93fb8b24e5f | 2,830 | Latticify | MIT License |
app/src/main/java/com/merxury/blocker/ui/detail/component/ComponentAdapter.kt | lihenggui | 115,417,337 | false | null | package com.merxury.blocker.ui.detail.component
import android.content.Context
import android.view.ContextMenu
import android.view.LayoutInflater
import android.view.Menu
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.recyclerview.widget.DiffUtil
import andro... | 14 | Kotlin | 37 | 323 | bf2979d5b94c60ab3a172cfec0fff38420e10519 | 4,321 | blocker | Apache License 2.0 |
Manga_Library/app/src/main/java/roch/manga_library/model/NewReleasesMangaViewModel.kt | RochKDev | 777,221,222 | false | {"Kotlin": 103693} | package roch.manga_library.model
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.launch
import retrofit2.HttpException
import roch.mang... | 0 | Kotlin | 0 | 1 | de72af1f01807dce4acc71f932b986d82d80c632 | 1,480 | MangaLib | MIT License |
Validator/src/main/java/com/barnea/validator/validations/PhoneValidator.kt | Ido-Barnea | 466,148,317 | false | null | package com.barnea.validator.validations
import android.util.Patterns
class PhoneValidator(private val error: String = "Illegal phone number"): BaseValidation {
override fun validate(text: String): Boolean = text.matches(Regex("^[+]?[0-9]{10,13}\$"))
override fun errorMessage(): String = error
} | 0 | Kotlin | 0 | 0 | b8775c2a363bc1c2b5fa56c64a66733265e2ee75 | 306 | Validator | Apache License 2.0 |
src/main/kotlin/com/strawhats/kenerator/actions/GenerateActionGroup.kt | Rshalika | 300,654,331 | false | null | package com.strawhats.kenerator.actions
import com.intellij.openapi.actionSystem.*
import com.intellij.openapi.editor.Caret
import com.intellij.psi.util.PsiTreeUtil
import org.jetbrains.kotlin.psi.KtClassBody
import org.jetbrains.kotlin.psi.KtFile
class GenerateActionGroup : ActionGroup() {
override fun hideIfN... | 0 | Kotlin | 0 | 1 | a24fedcc36a915c8c0a1751af70a7f9fa6d1793b | 1,746 | kenerator | Apache License 2.0 |
cosmos-sdk/src/jvmMain/kotlin/cosmos/nft/v1beta1/event.converter.jvm.kt | jdekim43 | 759,720,689 | false | {"Kotlin": 8940168, "Java": 3242559} | // Transform from cosmos/nft/v1beta1/event.proto
@file:GeneratorVersion(version = "0.3.1")
package cosmos.nft.v1beta1
import com.google.protobuf.Descriptors
import com.google.protobuf.Parser
import kr.jadekim.protobuf.`annotation`.GeneratorVersion
import kr.jadekim.protobuf.converter.mapper.ProtobufTypeMapper
public... | 0 | Kotlin | 0 | 0 | eb9b3ba5ad6b798db1d8da208b5435fc5c1f6cdc | 2,375 | chameleon.proto | Apache License 2.0 |
src/main/kotlin/com/lucciola/termination/Number.kt | clockvoid | 66,779,626 | false | null | package com.lucciola.termination
import com.lucciola.exception.SyntaxErrorException
import com.lucciola.formulaparser.Expression
class Number(arg0: String): Termination(arg0) {
init {
if (!arg0.matches(Regex("-?\\d+(\\.\\d+)?"))) {
throw SyntaxErrorException("Value \"$arg0\" is not Numeric")
... | 0 | Kotlin | 1 | 1 | 15228e1b21b16bd086cdff05c36e41a2ed44ea23 | 509 | FormulaParser | Apache License 2.0 |
common/common-base/src/main/java/com/bbgo/common_base/base/BaseFragment.kt | bytebitx | 371,705,786 | false | {"Kotlin": 395877, "Java": 130485, "AIDL": 685} | package com.bbgo.common_base.base
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.viewbinding.ViewBinding
/**
* author: wangyb
* date: 2021/5/20 3:01 下午
* description: todo
*/
abstract class... | 3 | Kotlin | 13 | 51 | d8f43e04c2f98fa33a9c51aa93eccca69d6f6347 | 1,655 | WanAndroid | Apache License 2.0 |
app/src/main/java/com/example/quizapp/ui/QuestionsActivity.kt | joolaoye | 740,272,317 | false | {"Kotlin": 24412} | package com.example.quizapp.ui
import android.content.Intent
import android.graphics.Color
import android.graphics.Typeface
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.CountDownTimer
import android.text.Spannable
import android.text.SpannableString
import android.text.sty... | 0 | Kotlin | 0 | 0 | f6dd51d1b2ea4ead3e52e5edc2886d86ec1866b2 | 9,608 | LanguageTrivia | MIT License |
detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/providers/ComplexityProvider.kt | yongzx | 106,064,438 | true | {"Gradle": 13, "YAML": 14, "Markdown": 5, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "XML": 4, "Groovy": 1, "Kotlin": 267, "Java": 1, "Java Properties": 1} | package io.gitlab.arturbosch.detekt.rules.providers
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.RuleSet
import io.gitlab.arturbosch.detekt.api.RuleSetProvider
import io.gitlab.arturbosch.detekt.rules.complexity.ComplexMethod
import io.gitlab.arturbosch.detekt.rules.complexity.L... | 0 | Kotlin | 2 | 0 | bcc691883e3c287efafb780534d1bc89ba3ef625 | 1,298 | detekt-old | Apache License 2.0 |
src/test/kotlin/au/net/drmic/photos/photoprocessing/service/PhotosServiceTest.kt | fsmicdev | 204,134,283 | false | {"TSQL": 9961013, "Kotlin": 43770, "Dockerfile": 182} | package au.net.drmic.photos.photoprocessing.service
import au.net.drmic.photos.photoprocessing.model.PhotoType
import au.net.drmic.photos.photoprocessing.repository.PhotosRepository
import au.net.drmic.photos.photoprocessing.repository.PhotosTagRepository
import au.net.drmic.photos.photoprocessing.repository.TagReposi... | 0 | TSQL | 0 | 0 | a1d2e7e7768379ad4171ca1cb4f928e29c2fd3d8 | 12,029 | PanoramicTrekking_photoprocessing | MIT License |
vxutil-vertigram/src/main/kotlin/ski/gagar/vxutil/vertigram/entities/ShippingQuery.kt | gagarski | 314,041,476 | false | null | package ski.gagar.vxutil.vertigram.entities
data class ShippingQuery(
val id: String,
val from: User,
val invoicePayload: String,
val shippingAddress: ShippingAddress
)
| 0 | Kotlin | 0 | 0 | c7730c307fc657e2ddf42cbe6f1f8a2f7e0f8166 | 186 | vertigram | Apache License 2.0 |
chess-service/src/main/kotlin/com/michibaum/chess_service/app/PersonConverter.kt | MichiBaum | 246,055,538 | false | {"Kotlin": 152355, "TypeScript": 36802, "HTML": 11408, "CSS": 3150, "Java": 1289, "JavaScript": 969, "SCSS": 393} | package com.michibaum.chess_service.app
import com.michibaum.chess_service.domain.Person
import org.springframework.stereotype.Component
import java.util.*
@Component
class PersonConverter(
private val accountConverter: AccountConverter
) {
fun convert(person: CreatePersonDto): Person {
return Person(... | 0 | Kotlin | 0 | 1 | 77911b5f9d53f6630e34e3cd89b69ba277ad2b87 | 788 | Microservices | Apache License 2.0 |
Tutorial1-1Basics/src/main/java/com/smarttoolfactory/tutorial1_1basics/chapter3_layout/chat/widget/ChatFlexBoxLayout.kt | SmartToolFactory | 326,400,374 | false | {"Kotlin": 2849459} | package com.smarttoolfactory.tutorial1_1basics.chapter3_layout.chat.widget
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import android... | 4 | Kotlin | 312 | 3,006 | efea98b63e63a85b80f7dc1bd4ca6d769e35905d | 13,048 | Jetpack-Compose-Tutorials | Apache License 2.0 |
src/me/anno/mesh/vox/VoxPalette.kt | AntonioNoack | 456,513,348 | false | {"Kotlin": 10912545, "C": 236426, "Java": 6754, "Lua": 4496, "C++": 3070, "GLSL": 2698} | package me.anno.mesh.vox
object VoxPalette {
// we could store it in a large list, but this algorithm probably is shorter
val defaultPalette = IntArray(256)
init {
val defaultPalette = defaultPalette
var i = 1
// {ff,cc,99,66,33,00}³
for (b in 0 until 6) {
va... | 0 | Kotlin | 3 | 24 | 013af4d92e0f89a83958008fbe1d1fdd9a10e992 | 1,007 | RemsEngine | Apache License 2.0 |
includeBuild/kmp/src/main/kotlin/io/matthewnelson/kotlin/components/kmp/KmpConfigurationPlugin.kt | 05nelsonm | 381,628,235 | false | null | /*
* Copyright 2021 <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... | 0 | Kotlin | 1 | 1 | e4580ad7c48cc5bd06412aaaffa4f3c26c21e1ba | 8,269 | kotlin-components | Apache License 2.0 |
vector/src/main/java/im/vector/app/features/crypto/keysbackup/settings/KeysBackupManageActivity.kt | tchapgouv | 340,329,238 | false | {"Kotlin": 15927440, "HTML": 68524, "Shell": 57406, "Java": 28010, "Python": 25875, "FreeMarker": 7662, "JavaScript": 6925, "Ruby": 1587} | /*
* Copyright 2019 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 61 | Kotlin | 6 | 9 | f088d7c2be9d4546057e90215c5171c04d227267 | 4,923 | tchap-android | Apache License 2.0 |
app/src/main/java/com/simplekjl/stores/ui/screens/search/RestaurantSearch.kt | simplekjl | 534,304,720 | false | null | package com.simplekjl.stores.ui.screens.search
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.ru... | 0 | Kotlin | 0 | 0 | 2c614a449ae03155cecfd1d69b7fff00106c80e6 | 1,693 | Stores | Apache License 2.0 |
android/src/test/kotlin/com/klarna/mobile/sdk/flutter/postpurchase/manager/KlarnaPostPurchaseSDKManagerTest.kt | klarna | 263,862,690 | false | null | package com.klarna.mobile.sdk.flutter.postpurchase.manager
import com.klarna.mobile.sdk.flutter.PluginContext
import com.klarna.mobile.sdk.flutter.postpurchase.method.KlarnaPostPurchaseSDKMethod
import com.klarna.mobile.sdk.api.postpurchase.KlarnaPostPurchaseSDK
import io.flutter.plugin.common.MethodChannel
import io.... | 1 | Kotlin | 9 | 9 | dc9b6fa1d473acb8be35321691ccb271f9218f87 | 3,596 | klarna-mobile-sdk-flutter | Apache License 2.0 |
src/main/kotlin/mixit/event/model/EventService.kt | mixitconf | 76,134,720 | false | null | package mixit.event.model
import mixit.MixitApplication.Companion.speakerStarInCurrentEvent
import mixit.MixitApplication.Companion.speakerStarInHistory
import mixit.event.repository.EventRepository
import mixit.user.model.CachedOrganization
import mixit.user.model.CachedSpeaker
import mixit.user.model.CachedSponsor
i... | 12 | Kotlin | 125 | 526 | cde6cbedac3a6b7dab1978ebf7e18ffe58cde0a1 | 3,959 | mixit | Apache License 2.0 |
date_time_picker/src/main/java/com/loper7/date_time_picker/common/DateTimeInterface.kt | dahui888 | 332,026,436 | true | {"Kotlin": 231406} | package com.loper7.date_time_picker.common
import com.loper7.date_time_picker.DateTimeConfig
/**
*
* @CreateDate: 2020/9/11 16:55
* @Description: java类作用描述
* @Author: LOPER7
* @Email: <EMAIL>
*/
interface DateTimeInterface {
/**
* 设置默认时间戳
*
* @param time
*/
f... | 0 | null | 0 | 1 | de06e7d36a72d425042411de67000a224c2c23ac | 871 | DateTimePicker | The Unlicense |
protocol/src/test/kotlin/models/OrderStatusTest.kt | TBD54566975 | 696,627,382 | false | {"Kotlin": 23102} | package protocol.models
import assertk.assertThat
import assertk.assertions.isEqualTo
import models.Message
import models.MessageKind
import models.OrderStatus
import models.OrderStatusData
import protocol.TestData
import typeid.TypeID
import kotlin.test.Test
import kotlin.test.assertIs
class OrderStatusTest {
@Tes... | 24 | Kotlin | 0 | 0 | 0fd430f4d7bff6438414ce80785a02d1b951f121 | 1,233 | tbdex-kt | Apache License 2.0 |
composeApp/src/desktopMain/kotlin/io/github/snd_r/komelia/image/SamplerType.kt | Snd-R | 775,064,249 | false | {"Kotlin": 797189, "CMake": 18341, "C": 5383, "Dockerfile": 767, "Shell": 116} | package io.github.snd_r.komelia.image
actual enum class SamplerType {
VIPS_LANCZOS_DOWN_BICUBIC_UP,
IMAGEIO_LANCZOS,
SKIA_MITCHELL,
SKIA_CATMULL_ROM,
SKIA_NEAREST,
} | 0 | Kotlin | 0 | 2 | a2acfae425fa125596f7fd531396ea8725fb1e9e | 186 | Komelia | Apache License 2.0 |
shelfs-league-tools-plugin/src/main/kotlin/de/treona/leagueTools/util/PremadeUtil.kt | Cerberus-ik | 126,897,185 | false | {"Java": 226911, "Kotlin": 64449} | package de.treona.leagueTools.util
import no.stelar7.api.l4j8.pojo.match.Match
class PremadeUtil {
companion object {
fun findPremadesFromMatchList(summonerId: Long, games: List<Match>): Map<Long, Int> {
val teamMates = HashMap<Long, Int>()
games.forEach { match ->
... | 1 | Java | 1 | 1 | 648d1d67b4c7f4a209d641a0cd59ebc2c9bcf942 | 969 | shelfs | Apache License 2.0 |
Kotlin - DigitalHouse/Aula11/Aula11_Ex4/Funcionario.kt | TVilella | 291,855,237 | false | null | class Funcionario(val nome: String, val numeroDeRegistro: Int) {
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as Funcionario
if (numeroDeRegistro != other.numeroDeRegistro) return false
re... | 0 | Kotlin | 0 | 0 | addf17e93188a53464f04becb47e8e8524ec76ff | 411 | mobileandroidcoders05 | MIT License |
spring/src/test/kotlin/de/codecentric/hikaku/converters/spring/produces/servletresponse/SpringConverterProducesServletResponseTest.kt | codecentric | 167,929,609 | false | {"Kotlin": 731151, "RAML": 5024, "Shell": 1492} | package de.codecentric.hikaku.converters.spring.produces.servletresponse
import de.codecentric.hikaku.converters.spring.SpringConverter
import de.codecentric.hikaku.endpoints.Endpoint
import de.codecentric.hikaku.endpoints.HttpMethod.*
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Nest... | 2 | Kotlin | 19 | 193 | b8a754f91b524b53a464167bf0abd6044caa25a4 | 1,772 | hikaku | Apache License 2.0 |
mobile_app1/module224/src/main/java/module224packageKt0/Foo441.kt | uber-common | 294,831,672 | false | null | package module224packageKt0;
annotation class Foo441Fancy
@Foo441Fancy
class Foo441 {
fun foo0(){
module224packageKt0.Foo440().foo3()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
} | 6 | null | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 237 | android-build-eval | Apache License 2.0 |
mobile_app1/module224/src/main/java/module224packageKt0/Foo441.kt | uber-common | 294,831,672 | false | null | package module224packageKt0;
annotation class Foo441Fancy
@Foo441Fancy
class Foo441 {
fun foo0(){
module224packageKt0.Foo440().foo3()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
} | 6 | null | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 237 | android-build-eval | Apache License 2.0 |
src/kotlin-intellij/main/uk/co/reecedunn/intellij/plugin/core/psi/IASTWrapperElementType.kt | rhdunn | 62,201,764 | false | null | /*
* Copyright (C) 2016, 2021 Reece H. Dunn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 47 | Kotlin | 4 | 25 | d363dad28df1eb17c815a821c87b4f15d2b30343 | 1,101 | xquery-intellij-plugin | Apache License 2.0 |
compiler/backend/src/org/jetbrains/kotlin/codegen/callableReferenceUtil.kt | JakeWharton | 99,388,807 | false | null | /*
* Copyright 2010-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 4,199 | kotlin | Apache License 2.0 |
sample/src/main/java/com/pengxr/sample/LifecycleObserverDemoActivity.kt | pengxurui | 525,840,904 | false | {"Kotlin": 46997, "Java": 7634} | package com.pengxr.sample
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.pengxr.modular.eventbus.generated.events.EventDefineOfMainEventsKt
import com.pengxr.sample.utils.toast
class LifecycleObserverDemoActivity : AppCompatActivity() {
companion obje... | 2 | Kotlin | 9 | 78 | b4105186fc5d414ac6b9fb84e46f451f56a0d014 | 1,301 | ModularEventBus | Apache License 2.0 |
src/test/integrasjonstester/kotlin/no/nav/familie/ba/sak/kjerne/eøs/kompetanse/KompetanseUtfyltTest.kt | navikt | 224,639,942 | false | {"Kotlin": 6353093, "Gherkin": 584123, "PLpgSQL": 4478, "Shell": 1628, "Dockerfile": 196} | package no.nav.familie.ba.sak.kjerne.eøs.kompetanse
import no.nav.familie.ba.sak.ekstern.restDomene.UtfyltStatus
import no.nav.familie.ba.sak.ekstern.restDomene.tilRestKompetanse
import no.nav.familie.ba.sak.kjerne.eøs.kompetanse.domene.KompetanseAktivitet
import no.nav.familie.ba.sak.kjerne.eøs.kompetanse.domene.Komp... | 7 | Kotlin | 1 | 9 | e531227fb85cd4d7ef8f85fea7e3d285605a5527 | 7,255 | familie-ba-sak | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.