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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/enhe/endpoint/consts/DagpModule.kt | dingshichen | 577,605,646 | false | {"Kotlin": 215117, "Java": 29200} | // @author ding.shichen
// @email foreverhuiqiao@126.com
// @date 2024-01-20
package com.enhe.endpoint.consts
enum class DagpModule(
val abbreviation: String,
) {
ASSESSMENT("asm"),
ASSET("ast"),
MASTER("mst"),
METADATA("mdm"),
MODEL2("mdl"),
QUALITY("dqm"),
REQUIREMENT("req"),
... | 0 | Kotlin | 2 | 3 | 23656796abebb24459ac9d20e415f47663cef6ee | 580 | enhe-endpoint | Apache License 2.0 |
presentation/src/test/java/com/sanogueralorenzo/presentation/model/UserItemMapperTest.kt | mararosa | 279,106,439 | false | null | @file:Suppress("IllegalIdentifier")
package com.sanogueralorenzo.presentation.model
import com.sanogueralorenzo.presentation.createUser
import org.junit.Assert.assertTrue
import org.junit.Before
import org.junit.Test
class UserItemMapperTest {
private lateinit var mapper: UserItemMapper
@Before
fun set... | 0 | null | 0 | 1 | c5f5c171a1381ecc7641a65761e06f794db359e4 | 1,619 | Android-Kotlin-Clean-Architecture | Apache License 2.0 |
presentation/src/test/java/com/sanogueralorenzo/presentation/model/UserItemMapperTest.kt | mararosa | 279,106,439 | false | null | @file:Suppress("IllegalIdentifier")
package com.sanogueralorenzo.presentation.model
import com.sanogueralorenzo.presentation.createUser
import org.junit.Assert.assertTrue
import org.junit.Before
import org.junit.Test
class UserItemMapperTest {
private lateinit var mapper: UserItemMapper
@Before
fun set... | 0 | null | 0 | 1 | c5f5c171a1381ecc7641a65761e06f794db359e4 | 1,619 | Android-Kotlin-Clean-Architecture | Apache License 2.0 |
src/main/kotlin/online/hudacek/fxradio/ui/menu/AboutMenu.kt | Joseph5610 | 255,174,080 | false | null | /*
* Copyright 2020 FXRadio by hudacek.online
*
* 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 b... | 3 | Kotlin | 1 | 2 | ba3414e1ea4c5851564d9a69510cab8c1a8ce8c7 | 1,684 | fxradio-main | Apache License 2.0 |
src/main/kotlin/kext/ExtensionScope.kt | MeteorLite | 477,212,168 | false | null |
package kext
/**
* The different strategies that can be used each time an extension is
* requested using the [ExtensionManager].
*/
enum class ExtensionScope {
/** Keep a single instance */
GLOBAL,
/** Create a new instance each time */
LOCAL,
/** Keep a single instance per session */
... | 0 | Kotlin | 1 | 0 | 4eb933b3feb41ea1cba16dfad8fb78e3bcb69b62 | 329 | Kext | MIT License |
src/Day07.kt | li-xin-yi | 573,617,763 | false | null | import java.util.*
class Dir {
val children = mutableMapOf<String, Dir>()
var size = -1
}
fun main() {
fun getRootDir(input: List<String>): Dir {
val root = Dir()
val stack = Stack<Dir>()
var cur: Dir = root
for (line in input) {
val words = line.split(" ")
... | 0 | Kotlin | 0 | 1 | fb18bb7e462b8b415875a82c5c69962d254c8255 | 2,132 | AoC-2022-kotlin | Apache License 2.0 |
src/main/java/net/tinzin/tesser/TesserClient.kt | elytra | 146,140,180 | false | {"Java": 8688, "Kotlin": 6102} | package net.tinzin.tesser
import net.minecraft.client.renderer.entity.Render
import net.minecraft.client.renderer.entity.RenderManager
import net.minecraft.entity.Entity
import net.tinzin.tesser.entity.EntityTesserCrystal
import net.tinzin.tesser.entity.RenderTesserCrystal
import org.dimdev.rift.listener.client.Entity... | 0 | Java | 0 | 0 | 6a0f525a3ace89a267cc14d6c17c778637e45d53 | 616 | Tesser | MIT License |
src/main/kotlin/io/github/dockyardmc/protocol/packets/play/clientbound/ClientboundSetHeadYawPacket.kt | DockyardMC | 650,731,309 | false | null | package io.github.dockyardmc.protocol.packets.play.clientbound
import io.github.dockyardmc.annotations.ClientboundPacketInfo
import io.github.dockyardmc.annotations.WikiVGEntry
import io.github.dockyardmc.entities.Entity
import io.github.dockyardmc.extentions.writeVarInt
import io.github.dockyardmc.protocol.packets.Cl... | 9 | null | 5 | 45 | 660256d52c12e5b3632103ee93aaafe5ce9b9db3 | 680 | Dockyard | MIT License |
library/src/main/java/com/camerash/filterdrawer/ParentItem.kt | Camerash | 150,241,216 | false | null | package com.camerash.filterdrawer
import android.support.annotation.ColorRes
import android.support.v4.content.ContextCompat
import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.View
import android.... | 1 | Kotlin | 2 | 17 | 4d79b90fedc6135255e325b9b16954dafe0a9e0f | 7,244 | FilterDrawer | MIT License |
apps/shared/data/src/commonMain/kotlin/com/baptistecarlier/am24/shared/data/repository/KtorGoatRepository.kt | BapNesS | 781,361,632 | false | null | package com.baptistecarlier.am24.shared.data.repository
import com.baptistecarlier.am24.shared.data.mapper.GoatDetailMapper
import com.baptistecarlier.am24.shared.data.mapper.GoatTeaserMapper
import com.baptistecarlier.am24.shared.data.model.GoatDetailDto
import com.baptistecarlier.am24.shared.data.model.GoatTeaserDto... | 0 | null | 0 | 3 | 8a07812369181db3a041fe7c9f78a99bbc8ab717 | 1,578 | goat-multiplatform | Apache License 2.0 |
synergy-module-proxy-mcbe/src/main/kotlin/com/valaphee/synergy/proxy/mcbe/service/OAuth20Authenticator.kt | valaphee | 476,972,429 | false | {"Kotlin": 278748, "C++": 70332, "C": 3487, "Java": 2209, "JavaScript": 1482, "Shell": 397, "Makefile": 149} | /*
* Copyright (c) 2022, Valaphee.
*
* 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 ... | 0 | Kotlin | 0 | 1 | 614cc5504d335561f5d57cd40d7191d054ae9492 | 2,580 | synergy | Apache License 2.0 |
vck/src/commonMain/kotlin/at/asitplus/wallet/lib/iso/MobileSecurityObject.kt | a-sit-plus | 602,578,639 | false | {"Kotlin": 1076316} | @file:OptIn(ExperimentalSerializationApi::class)
package at.asitplus.wallet.lib.iso
import at.asitplus.KmmResult.Companion.wrap
import at.asitplus.signum.indispensable.cosef.io.ByteStringWrapper
import at.asitplus.signum.indispensable.cosef.io.ByteStringWrapperSerializer
import kotlinx.serialization.*
/**
* Part of... | 11 | Kotlin | 1 | 22 | 6f29a2ba84aceda63026afcfc8fd6cc0d8ccbb00 | 2,274 | vck | Apache License 2.0 |
services/reddit/src/main/kotlin/io/sweers/catchup/service/reddit/model/RedditSubmission.kt | seerazz | 152,505,983 | true | {"Kotlin": 602518, "Java": 27064, "Shell": 4178, "Python": 1310} | /*
* Copyright (c) 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 0 | Kotlin | 0 | 0 | 7d504ff2451d65cfdcf8abce2b5233af5c9d9e50 | 1,361 | CatchUp-Perf-Kotlin | Apache License 2.0 |
tvShowFeature/src/main/java/com/example/tvshowfeature/seriesList/SeriesScreenType.kt | Bit-Camp-IO | 643,303,285 | false | null | package com.example.tvshowfeature.seriesList
enum class SeriesScreenType(val screenTitle: String) {
OnTheAir("ON The Air"),
NowPlaying("Now Playing"),
TopRated("Top Rated"),
Popular("Popular"),
Similar("Similar"),
Recommended("Recommended"),
Bookmarked("Bookmarked")
}
| 0 | Kotlin | 1 | 2 | 82141ba5d053fe9c3112d1150b226aceb6125a48 | 298 | TMDA-Android | Apache License 2.0 |
tvShowFeature/src/main/java/com/example/tvshowfeature/seriesList/SeriesScreenType.kt | Bit-Camp-IO | 643,303,285 | false | null | package com.example.tvshowfeature.seriesList
enum class SeriesScreenType(val screenTitle: String) {
OnTheAir("ON The Air"),
NowPlaying("Now Playing"),
TopRated("Top Rated"),
Popular("Popular"),
Similar("Similar"),
Recommended("Recommended"),
Bookmarked("Bookmarked")
}
| 0 | Kotlin | 1 | 2 | 82141ba5d053fe9c3112d1150b226aceb6125a48 | 298 | TMDA-Android | Apache License 2.0 |
dependencies/src/main/kotlin/com/project/picpicker/helper/TomlHelper.kt | dev-darck | 499,210,154 | false | null | package com.project.picpicker.helper
import com.project.picpicker.checker.model.TomlLibVersion
import com.project.picpicker.checker.model.Version
import com.project.picpicker.depToml
import com.project.picpicker.safeFindLibrary
import com.project.picpicker.safeFindVersion
import org.gradle.api.Project
class TomlHelpe... | 1 | Kotlin | 0 | 0 | d6b0e8f79a8b229f7cec3907547bd05b01af606d | 2,995 | PicPicker | Apache License 2.0 |
lib/src/integrationTest/kotlin/com/lemonappdev/konsist/core/declaration/kofile/KoFileDeclarationTest.kt | LemonAppDev | 621,181,534 | false | {"Kotlin": 4854719, "Python": 17926} | package com.lemonappdev.konsist.core.declaration.kofiledeclaration
import com.lemonappdev.konsist.TestSnippetProvider.getSnippetKoScope
import org.amshove.kluent.shouldBeEqualTo
import org.amshove.kluent.shouldNotBeEqualTo
import org.junit.jupiter.api.Test
class KoFileDeclarationTest {
@Test
fun `file-to-stri... | 7 | Kotlin | 26 | 995 | 603d19e179f59445c5f4707c1528a438e4595136 | 2,017 | konsist | Apache License 2.0 |
zircon.jvm/src/test/kotlin/org/hexworks/zircon/internal/component/impl/DefaultComponentTest.kt | smomen | 193,348,171 | true | {"Kotlin": 1393224, "Java": 131288} | package org.hexworks.zircon.internal.component.impl
import org.assertj.core.api.Assertions.assertThat
import org.hexworks.zircon.api.Components
import org.hexworks.zircon.api.Positions
import org.hexworks.zircon.api.Sizes
import org.hexworks.zircon.api.builder.component.LabelBuilder
import org.hexworks.zircon.api.buil... | 0 | Kotlin | 0 | 0 | bb1f993f8eca72660cd44da736f1643a351bcb68 | 9,574 | zircon | MIT License |
kotlin/knarch-ios/src/main/kotlin/co/touchlab/multiplatform/architecture/db/sqlite/Functions.kt | MaTriXy | 138,565,162 | true | {"Kotlin": 572638, "C++": 146498, "Groovy": 49894, "C": 39735, "Makefile": 35029, "CMake": 25089, "Swift": 18544, "Objective-C": 1081, "Shell": 102} | /*
* Copyright (c) 2018 Touchlab 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... | 0 | Kotlin | 0 | 0 | fe32ccd009e6b24b47653923cb4a0eeb7c0a2dad | 1,523 | knarch.db | Apache License 2.0 |
lib/src/main/kotlin/org/zecdev/zip321/model/MemoBytes.kt | zecdev | 721,262,710 | false | {"Kotlin": 82025} | import java.nio.charset.Charset
import java.util.Base64
class MemoBytes {
companion object {
const val maxLength: Int = 512
fun fromBase64URL(string: String): MemoBytes {
return string.decodeBase64URL()?.let { MemoBytes(it) } ?: throw MemoError.InvalidBase64URL
}
}
val ... | 2 | Kotlin | 0 | 2 | 95b2532b1d0b5d1155a704484db32db42c4d1842 | 2,315 | zcash-kotlin-payment-uri | MIT License |
app/src/main/java/com/lai/comicmtc_v2/db/BookDao.kt | laishujie | 213,707,320 | false | null | package com.lai.comicmtc_v2.db
import com.lai.comicmtc_v2.bean.detail.ComicDetailResponse
import org.litepal.LitePal
import org.litepal.extension.findFirst
import java.util.*
/**
*
* @author Lai
*
* @time 2019/10/9 1:34
* @describe describe
*
*/
class BookDao {
/**
* 保存chapter阅读记录
*/
fun sa... | 3 | Java | 27 | 127 | 32513d4cb73e4be5889e86f49bdf794c5c8ee509 | 3,283 | ComicMTC_v2 | Apache License 2.0 |
app/src/main/java/id/davidpratama/a160419103_ubayaculinary/model/RestaurantDao.kt | daviddprtma | 478,382,125 | false | {"Kotlin": 58724} | package id.davidpratama.a160419103_ubayaculinary.model
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
@Dao
interface RestaurantDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insertAllRestaurant(vararg restaurant: Rest... | 0 | Kotlin | 0 | 0 | 58ff0db6049943b09a1b060abc79e8142293c651 | 540 | 160419103_UTS-Advanced-Native-Mobile-Programming_Ubaya-Culinary | Apache License 2.0 |
sampleAppKotlin/src/main/java/com/virtusize/sampleappkotlin/WebViewFragment.kt | virtusize | 173,900,278 | false | {"Kotlin": 433690, "Java": 9310, "Shell": 265} | package com.virtusize.sampleappkotlin
import android.os.Bundle
import android.os.Message
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.webkit.WebChromeClient
import android.webkit.WebResourceRequest
import android.webkit.WebView
import ... | 1 | Kotlin | 2 | 9 | b83c343b1469cb5c51936f6228783d67aa182490 | 4,036 | integration_android | MIT License |
prime-router/src/main/kotlin/serializers/CsvSerializer.kt | sreev | 390,034,639 | true | {"Kotlin": 785646, "HTML": 88142, "HCL": 87171, "Shell": 35824, "CSS": 33170, "Liquid": 22222, "JavaScript": 17028, "PLpgSQL": 12858, "Python": 5030, "Dockerfile": 2436} | package gov.cdc.prime.router.serializers
import com.github.doyaaaaaken.kotlincsv.dsl.csvReader
import com.github.doyaaaaaken.kotlincsv.dsl.csvWriter
import gov.cdc.prime.router.Element
import gov.cdc.prime.router.ElementAndValue
import gov.cdc.prime.router.Mapper
import gov.cdc.prime.router.Metadata
import gov.cdc.pri... | 0 | null | 0 | 0 | fcd394d210cc327acdddb7e3e646fb100e499bbd | 14,156 | prime-reportstream | Creative Commons Zero v1.0 Universal |
src/main/kotlin/net/ndrei/teslapoweredthingies/machines/portablemultitank/MultiTankBlock.kt | MinecraftModDevelopmentMods | 77,729,751 | false | null | package net.ndrei.teslapoweredthingies.machines.portablemultitank
import net.minecraft.block.state.BlockStateContainer
import net.minecraft.block.state.IBlockState
import net.minecraft.client.Minecraft
import net.minecraft.client.renderer.BufferBuilder
import net.minecraft.client.renderer.GlStateManager
import net.min... | 21 | null | 4 | 2 | 22fdcf629e195a73dd85cf0ac0c5dda551085e71 | 17,259 | Tesla-Powered-Thingies | MIT License |
js/js.translator/testData/box/operatorOverloading/plusOverload.kt | JakeWharton | 99,388,807 | false | null | // EXPECTED_REACHABLE_NODES: 1112
package foo
class myInt(a: Int) {
val value = a;
operator fun plus(other: myInt): myInt = myInt(value + other.value)
}
fun box(): String {
return if ((myInt(3) + myInt(5)).value == 8) "OK" else "fail"
} | 184 | null | 5691 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 252 | kotlin | Apache License 2.0 |
RangeBar/src/main/java/com/dannyjung/rangebar/base/BaseTrack.kt | danny-jung | 295,870,887 | false | {"Kotlin": 20777} | package com.dannyjung.rangebar.base
import android.graphics.Canvas
import android.graphics.RectF
abstract class BaseTrack {
abstract val height: Int
val rectF: RectF = RectF()
abstract fun onDraw(canvas: Canvas)
}
| 0 | Kotlin | 0 | 0 | 3bf2326d09c50809d48fed3756f6b3714fd3eeab | 231 | RangeBar | Apache License 2.0 |
platform/statistics/devkit/src/com/intellij/internal/statistic/actions/OpenLocalWhitelistFileAction.kt | slouca10 | 243,684,085 | false | {"Text": 3944, "XML": 4636, "Ant Build System": 13, "Shell": 478, "Markdown": 302, "Ignore List": 79, "Git Attributes": 9, "Batchfile": 30, "SVG": 1988, "Java": 64549, "C++": 20, "HTML": 2727, "Kotlin": 4898, "DTrace": 1, "Gradle": 71, "Java Properties": 97, "INI": 239, "JFlex": 27, "Objective-C": 19, "Groovy": 3347, "... | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.internal.statistic.actions
import com.intellij.icons.AllIcons
import com.intellij.idea.ActionsBundle
import com.intellij.internal.statistic.StatisticsBundle
... | 1 | null | 2 | 1 | 8a4430836e002b846dc4cd97c308e37557b5a015 | 2,149 | intellij-community | Apache License 2.0 |
feature/settings-impl/src/main/kotlin/org/michaelbel/movies/settings/ui/SettingsLanguageBox.kt | michaelbel | 115,437,864 | false | null | package org.michaelbel.movies.settings.ui
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.... | 6 | null | 30 | 81 | 00b1cd807a4e7c894b0792ebb668e4cbcedc5605 | 4,143 | movies | Apache License 2.0 |
app/src/main/java/com/sarlomps/evemento/event/comment/CommentAdapter.kt | sarlomps | 176,547,309 | false | null | package com.hellfish.evemento.event.comment
import android.content.Context
import android.graphics.Paint
import android.support.v4.graphics.drawable.DrawableCompat
import android.support.v7.widget.*
import android.view.View
import android.widget.TextView
import com.hellfish.evemento.R
import com.hellfish.evemento.Recy... | 0 | Kotlin | 0 | 0 | ab68fd31df52e225f61073cad3f5e736a25caeb6 | 1,638 | evemento | MIT License |
app/src/main/java/org/ergoplatform/android/wallet/SaveWalletFragmentDialog.kt | aslesarenko | 382,865,273 | true | {"Kotlin": 96633, "Java": 28755} | package org.ergoplatform.android.wallet
import android.app.KeyguardManager
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.biometric.BiometricManager
import androidx.biometric.BiometricPrompt
import androi... | 0 | null | 0 | 0 | 989b2548e413e3bfd12377dbabc08076adca9c07 | 6,205 | ergo-wallet-android | Apache License 2.0 |
app/src/main/java/com/kieronquinn/app/discoverkiller/utils/extensions/Extensions+TabLayout.kt | KieronQuinn | 273,963,637 | false | {"Kotlin": 417138, "Java": 18179, "AIDL": 4171} | package com.kieronquinn.app.discoverkiller.utils.extensions
import com.google.android.material.tabs.TabLayout
import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.flow.callbackFlow
fun TabLayout.selectTab(position: Int){
selectTab(getTabAt(position))
}
fun TabLayout.onSelected(includeReselecti... | 1 | Kotlin | 8 | 302 | 8a59868f5de7493b685c20a38239b08f8c1c9259 | 883 | DiscoverKiller | Apache License 2.0 |
src/main/kotlin/br/com/zupacademy/marciosouza/pixkey/client/bcbapi/dto/CreatePixKeyRequest.kt | mfkldev | 396,927,097 | true | {"Kotlin": 64805} | package br.com.zupacademy.marciosouza.pixkey.client.bcbapi.dto
import br.com.zupacademy.marciosouza.TipoChave
import br.com.zupacademy.marciosouza.pixkey.model.PixKeyModel
data class CreatePixKeyRequest(
val keyType: TipoChave,
val key: String,
val bankAccount: BankAccount,
val owner: Owner
) {
co... | 0 | Kotlin | 0 | 0 | f0b8badf800c56f26856ebf647776f6959014bc7 | 1,921 | orange-talents-06-template-pix-keymanager-grpc | Apache License 2.0 |
app-scaffold/src/main/kotlin/catchup/app/ui/activity/ImageViewerScreen.kt | ZacSweers | 57,029,623 | false | null | package catchup.app.ui.activity
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fa... | 37 | null | 205 | 1,980 | 3ac348452590f8d9ba02c3e6163fb210df9e37f4 | 10,048 | CatchUp | Apache License 2.0 |
core/src/main/java/tmidev/core/data/repository/CharactersRepository.kt | tminet | 437,921,880 | false | null | package tmidev.core.data.repository
import androidx.paging.PagingSource
import tmidev.core.domain.model.Character
import tmidev.core.domain.model.Comic
import tmidev.core.domain.model.Event
interface CharactersRepository {
fun getCharacters(query: String): PagingSource<Int, Character>
suspend fun getComics(c... | 0 | Kotlin | 1 | 0 | 1cddbd1e69be453d5749957c397e3c849cde9f69 | 409 | MarvelHeroes | MIT License |
src/main/kotlin/com/melowetty/hsepermhelper/extension/UserExtensions.kt | HSE-Perm-Helper | 682,010,195 | false | {"Kotlin": 155109, "Dockerfile": 102} | package com.melowetty.hsepermhelper.extension
import com.melowetty.hsepermhelper.domain.dto.SettingsDto
import com.melowetty.hsepermhelper.domain.dto.UserDto
import com.melowetty.hsepermhelper.domain.entity.SettingsEntity
import com.melowetty.hsepermhelper.domain.entity.UserEntity
import com.melowetty.hsepermhelper.ex... | 1 | Kotlin | 0 | 0 | b51190b63f148e3e9607cb1b9918fe046f8a34f6 | 2,408 | main-backend | MIT License |
ktor-hosts/ktor-test-host/src/org/jetbrains/ktor/testing/HostTestSuite.kt | hallefy | 94,839,121 | false | null | package org.jetbrains.ktor.testing
import org.jetbrains.ktor.application.*
import org.jetbrains.ktor.cio.*
import org.jetbrains.ktor.content.*
import org.jetbrains.ktor.features.*
import org.jetbrains.ktor.host.*
import org.jetbrains.ktor.http.*
import org.jetbrains.ktor.logging.*
import org.jetbrains.ktor.request.*
i... | 0 | null | 0 | 1 | b5dcbe5b740c2d25c7704104e01e0a01bf53d675 | 31,653 | ktor | Apache License 2.0 |
vector/src/main/java/im/vector/riotx/core/extensions/EditText.kt | Dominaezzz | 198,261,955 | true | {"Gradle": 5, "Markdown": 7, "Java Properties": 2, "Shell": 14, "Text": 3, "Ignore List": 4, "Batchfile": 1, "YAML": 2, "Proguard": 3, "Java": 6, "XML": 427, "Kotlin": 1004, "JSON": 5, "HTML": 1} | /*
* 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 to i... | 0 | Kotlin | 0 | 0 | df6080b1da93039784c1177bab345cbf744c3756 | 2,071 | riotX-android | Apache License 2.0 |
core/src/test/kotlin/tests/model/DatabasesTest.kt | seratch | 367,397,489 | false | null | package tests.model
import kotlin.test.assertNotNull
import notion.api.v1.json.GsonSerializer
import notion.api.v1.model.databases.Databases
import org.junit.Test
class DatabasesTest {
@Test
fun listDatabases() {
val parser = GsonSerializer(true)
val databases: Databases = parser.toDatabases(listDatabase... | 20 | null | 25 | 96 | f2ce512e3d7d3000cbe20e184435437087f7e13f | 4,810 | notion-sdk-jvm | MIT License |
atomicfu-transformer/src/main/kotlin/kotlinx/atomicfu/transformer/FlowAnalyzer.kt | Kotlin | 99,576,820 | false | null | /*
* Copyright 2017 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 agreed to... | 57 | null | 58 | 917 | b94c6bd887ec48a5b172cacc0a1dac3f76c4fdbb | 8,919 | kotlinx-atomicfu | Apache License 2.0 |
compiler/testData/codegen/box/javaInterop/lambdaInstanceOf.kt | JakeWharton | 99,388,807 | false | null | // IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// FILE: J.java
import kotlin.Function;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
public class J {
public static String test(Function<String> x) {
if (x instance... | 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 584 | kotlin | Apache License 2.0 |
day7/src/test/kotlin/com/nohex/aoc/day7/CrabAlignerTest.kt | mnohe | 433,396,563 | false | {"Kotlin": 105740} | package com.nohex.aoc.day7
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
internal class CrabAlignerTest : StringSpec({
"fixed cost" {
val sut = CrabAligner(loadPositions("example.txt"))
sut.lowestFixedCost shouldBe 37
}
"variable cost" {
val sut = ... | 0 | Kotlin | 0 | 0 | 4d7363c00252b5668c7e3002bb5d75145af91c23 | 415 | advent_of_code_2021 | MIT License |
rewrite-test/src/main/kotlin/org/openrewrite/java/ChangeStaticFieldToMethodTest.kt | Postremus | 422,069,127 | true | {"Java": 4133458, "Kotlin": 2041712, "ANTLR": 34959, "Groovy": 9925, "Shell": 1458} | /*
* Copyright 2021 the original author or authors.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by... | 0 | null | 0 | 0 | e2d94deee5773c3ab135560bba85bbb708b0b903 | 3,572 | rewrite | Apache License 2.0 |
testing/p2p/inmemory-messaging-impl/src/main/kotlin/net/corda/messaging/emulation/subscription/pubsub/PubSubSubscription.kt | corda | 346,070,752 | false | null | package net.corda.messaging.emulation.subscription.pubsub
import net.corda.lifecycle.LifecycleCoordinatorFactory
import net.corda.lifecycle.LifecycleCoordinatorName
import net.corda.lifecycle.LifecycleStatus
import net.corda.messaging.api.processor.PubSubProcessor
import net.corda.messaging.api.subscription.Subscripti... | 96 | null | 7 | 69 | d478e119ab288af663910f9a2df42a7a7b9f5bce | 4,576 | corda-runtime-os | Apache License 2.0 |
app/src/main/java/com/orange/ods/app/ui/components/appbars/top/TopAppBarCustomizationState.kt | Orange-OpenSource | 440,548,737 | false | {"Kotlin": 1041275, "HTML": 26065, "CSS": 14905, "Shell": 587, "JavaScript": 197} | /*
* Software Name: Orange Design System
* SPDX-FileCopyrightText: Copyright (c) Orange SA
* SPDX-License-Identifier: MIT
*
* This software is distributed under the MIT licence,
* the text of which is available at https://opensource.org/license/MIT/
* or see the "LICENSE" file for more details.
*
* Software de... | 74 | Kotlin | 7 | 17 | 273a2794ef729ecc443fe1414259e0e1362b4346 | 2,938 | ods-android | MIT License |
processor/src/main/java/com/joom/lightsaber/processor/analysis/BindingsAnalyzer.kt | joomcode | 170,310,869 | false | null | /*
* Copyright 2020 <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... | 3 | null | 8 | 9 | f1eede8e14ecb399a451085fd5d13e77dd67f329 | 3,117 | lightsaber | Apache License 2.0 |
core/src/main/java/com/github/kornilova203/flameviewer/server/handlers/CountMethodsHandlerBase.kt | kornilova203 | 93,492,144 | false | {"Kotlin": 180956, "JavaScript": 100160, "Java": 54903, "CSS": 21077, "HTML": 11624, "Closure Templates": 6734, "Shell": 171} | package com.github.kornilova203.flameviewer.server.handlers
import com.github.kornilova203.flameviewer.FlameLogger
import com.github.kornilova203.flameviewer.converters.trees.Filter
import com.github.kornilova203.flameviewer.server.RequestHandlerBase
import com.github.kornilova203.flameviewer.server.RequestHandlingExc... | 22 | Kotlin | 8 | 80 | 01700b7bf615d074d7dd0b3afba56e7765a2d120 | 1,335 | java-profiling-plugin | MIT License |
android-test-framework/testSrc/com/android/tools/idea/projectsystem/TestProjectSystem.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2017 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... | 5 | null | 230 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 11,934 | android | Apache License 2.0 |
privacysandbox/ui/ui-client/src/main/java/androidx/privacysandbox/ui/client/view/SandboxedSdkView.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2023 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... | 22 | null | 823 | 4,693 | a3474c3895ee09aff249431af66af2b54641dd4f | 14,723 | androidx | Apache License 2.0 |
privacysandbox/ui/ui-client/src/main/java/androidx/privacysandbox/ui/client/view/SandboxedSdkView.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2023 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... | 22 | null | 823 | 4,693 | a3474c3895ee09aff249431af66af2b54641dd4f | 14,723 | androidx | Apache License 2.0 |
src/main/kotlin/cn/net/polyglot/verticle/web/ServletVerticle.kt | whitewoodcity | 140,131,596 | false | null | package cn.net.polyglot.verticle.web
import cn.net.polyglot.config.*
import io.vertx.core.json.JsonObject
import io.vertx.kotlin.core.eventbus.requestAwait
import io.vertx.kotlin.coroutines.CoroutineVerticle
import kotlinx.coroutines.launch
abstract class ServletVerticle : CoroutineVerticle() {
override suspend fu... | 6 | null | 29 | 126 | 82f35a489eda0b8c63302733c31966e9339494a1 | 4,222 | social-vertex | MIT License |
vico/core/src/main/java/com/patrykandpatrick/vico/core/component/text/VerticalPositionExtensions.kt | patrykandpatrick | 338,848,755 | false | null | /*
* Copyright 2022 by <NAME> and <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 ... | 3 | null | 95 | 978 | 3e24d5d78b35b51eb186dbedcae4d81101fd1b9d | 1,525 | vico | Apache License 2.0 |
mobile/src/main/java/co/uk/kenkwok/tulipmania/network/NetworkServiceImpl.kt | kennethkwok | 108,638,140 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 84, "XML": 30, "Java": 11, "JSON": 3} | package co.uk.kenkwok.tulipmania.network
import android.support.annotation.Nullable
import co.uk.kenkwok.tulipmania.models.AnxTicker
import co.uk.kenkwok.tulipmania.models.BitfinexTicker
import co.uk.kenkwok.tulipmania.models.BitstampTicker
import io.reactivex.Observable
import io.reactivex.android.schedulers.AndroidS... | 1 | null | 1 | 1 | b034e7c3c8678d9e8c475ad8dafd4d005cee67ab | 3,170 | tulipmania | Creative Commons Attribution 3.0 Unported |
verify/src/main/java/com/twilio/verify/data/DateParser.kt | twilio | 232,428,508 | false | null | /*
* Copyright (c) 2020 Twilio 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... | 5 | Kotlin | 3 | 9 | 7599b76a8eff6ceff2d6c5eb05fe0d0ebe7fe172 | 2,397 | twilio-verify-android | Apache License 2.0 |
materi/pertemuan_7/kotlin/loopWhile2.kt | ummi-codelabs | 212,098,159 | false | {"Text": 1, "Markdown": 13, "Go": 15, "Java": 18, "PHP": 21, "Kotlin": 18, "JavaScript": 18, "Python": 17, "Hack": 2, "HTML": 3} | fun main() {
var i = 1
while (i <= 10) {
println(i)
i += 2
}
} | 1 | PHP | 6 | 3 | 1bcdae5400e4e466c1dfacf13a8c6ee0f32825dc | 91 | dasar-pemrograman | MIT License |
api/src/main/kotlin/com/mattmx/ktgui/conversation/EndEmptyPrompt.kt | Matt-MX | 530,062,987 | false | {"Kotlin": 255573, "Java": 8369} | package com.mattmx.ktgui.conversation
import org.bukkit.conversations.ConversationContext
import org.bukkit.conversations.MessagePrompt
import org.bukkit.conversations.Prompt
class EndEmptyPrompt(
private val message: String? = null,
private val after: (() -> Unit)? = null
) : MessagePrompt(), BuildablePrompt... | 3 | Kotlin | 3 | 24 | fdc34fce5eeb41f177f890040a58d6c174168434 | 626 | KtPaperGui | Apache License 2.0 |
libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/IconButton.kt | element-hq | 546,522,002 | false | null | /*
* Copyright (c) 2023 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 agr... | 263 | null | 75 | 955 | 31d0621fa15fe153bfd36104e560c9703eabe917 | 3,366 | element-x-android | Apache License 2.0 |
android/src/main/java/org/fossasia/badgemagic/database/ClipArtService.kt | LoopGlitch26 | 263,618,871 | false | null | package org.fossasia.badgemagic.database
import android.graphics.drawable.Drawable
import android.util.SparseArray
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import org.fossasia.badgemagic.R
import org.fossasia.badgemagic.util.Resource
import org.fossasia.badgemagic.util.StorageUtils
... | 0 | null | 0 | 2 | cdf3291ce46a9ac16071752912aba845d5178871 | 2,798 | badge-magic-android | Apache License 2.0 |
src/main/kotlin/marisa/cards/OneTimeOff.kt | scarf005 | 574,583,770 | false | {"Kotlin": 393423, "TypeScript": 30744} | package marisa.cards
import basemod.abstracts.CustomCard
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction
import com.megacrit.cardcrawl.actions.common.GainBlockAction
import com.megacrit.cardcrawl.cards.AbstractCard
import com.megacrit.cardcrawl.characters.AbstractPlayer
import com.megacrit.cardcrawl.core... | 12 | Kotlin | 7 | 16 | 7de5d81e660c661d36dd6382cb0bdae6e0863562 | 2,215 | Marisa | MIT License |
samples/client/3_1_0_unit_test/kotlin/src/test/kotlin/org/openapijsonschematools/client/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegexTest.kt | openapi-json-schema-tools | 544,314,254 | false | null | package org.openapijsonschematools.client.components.schemas
import org.openapijsonschematools.client.configurations.JsonSchemaKeyword
import org.openapijsonschematools.client.configurations.SchemaConfiguration
import org.openapijsonschematools.client.exceptions.ValidationException
import kotlin.test.Test
import kotl... | 1 | null | 11 | 128 | 9006de722f74b7ca917e4e5d38e4cd6ab5ea6e78 | 3,906 | openapi-json-schema-generator | Apache License 2.0 |
compose/compiler/compiler-hosted/integration-tests/src/jvmTest/kotlin/androidx/compose/compiler/plugins/kotlin/TargetAnnotationsTransformTests.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 28 | null | 945 | 5,125 | 55c737bfb7a7320ac5b43787306f0c3af169f420 | 14,747 | androidx | Apache License 2.0 |
model/src/main/kotlin/org/kethereum/model/Address.kt | bakaoh | 136,276,567 | false | null | package org.kethereum.model
data class Address(private val input: String) {
val cleanHex = input.replace("0x","")
@Transient
val hex = "0x$cleanHex"
override fun toString() = "0x" + cleanHex
override fun equals(other: Any?)
= other is Address && other.cleanHex.toUpperCase() == clean... | 0 | null | 0 | 2 | 03a6fab6bbab5d71e16974a5e5ddbddaaadee45a | 405 | kethereum | MIT License |
src/main/kotlin/com/suihan74/hatena/model/entry/MaintenanceEntry.kt | suihan74 | 336,699,225 | false | null | package com.suihan74.hatena.model.entry
import com.suihan74.hatena.serializer.InstantISO8601Serializer
import kotlinx.serialization.Serializable
import java.time.Instant
/**
* メンテナンス情報
*/
@Serializable
data class MaintenanceEntry(
val id: String,
val title: String,
val body: String,
val resolved:... | 0 | Kotlin | 0 | 0 | d5a538c5005a04a0aec3c739a14a3c0eb875f25c | 526 | hatenaclient-kotlin | MIT License |
app/src/main/java/ch/nevis/exampleapp/domain/interaction/password/PasswordChangerImpl.kt | nevissecurity | 602,532,842 | false | {"Kotlin": 298091, "Ruby": 8543, "CSS": 427} | /**
* Nevis Mobile Authentication SDK Example App
*
* Copyright © 2024. Nevis Security AG. All rights reserved.
*/
package ch.nevis.exampleapp.domain.interaction.password
import ch.nevis.exampleapp.NavigationGraphDirections
import ch.nevis.exampleapp.logging.sdk
import ch.nevis.exampleapp.ui.credential.model.Cred... | 1 | Kotlin | 0 | 2 | 669d95302da63adc9d99642e5e2d65af62f14ce3 | 2,538 | nevis-mobile-authentication-sdk-example-app-android | MIT License |
src/main/kotlin/com/demonwav/mcdev/platform/mcp/at/AtFileTypeFactory.kt | robertizotov-zz | 101,105,621 | false | {"Gradle": 1, "Markdown": 1, "Gradle Kotlin DSL": 1, "Text": 15, "Java Properties": 3, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "XML": 37, "YAML": 2, "INI": 12, "Java": 3, "Groovy": 4, "HAProxy": 2, "Kotlin": 450, "HTML": 28, "JFlex": 2} | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2017 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.platform.mcp.at
import com.intellij.openapi.fileTypes.FileNameMatcher
import com.intellij.openapi.fileTypes.FileTypeConsumer
import com.intellij.openapi.fileTypes.Fil... | 1 | null | 1 | 1 | 9b91deed668fce98cd21474b9135ec9b92212c2b | 726 | MinecraftDevIntelliJ | MIT License |
src/main/kotlin/com/demonwav/mcdev/platform/mcp/at/AtFileTypeFactory.kt | robertizotov-zz | 101,105,621 | false | {"Gradle": 1, "Markdown": 1, "Gradle Kotlin DSL": 1, "Text": 15, "Java Properties": 3, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "XML": 37, "YAML": 2, "INI": 12, "Java": 3, "Groovy": 4, "HAProxy": 2, "Kotlin": 450, "HTML": 28, "JFlex": 2} | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2017 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.platform.mcp.at
import com.intellij.openapi.fileTypes.FileNameMatcher
import com.intellij.openapi.fileTypes.FileTypeConsumer
import com.intellij.openapi.fileTypes.Fil... | 1 | null | 1 | 1 | 9b91deed668fce98cd21474b9135ec9b92212c2b | 726 | MinecraftDevIntelliJ | MIT License |
src/main/kotlin/net/devoev/vanilla_cubed/networking/Channels.kt | Devoev | 473,273,645 | false | null | package net.devoev.vanilla_cubed.networking
import net.devoev.vanilla_cubed.VanillaCubed
object Channels {
val JUMP_KEY_PRESSED = VanillaCubed.id("jump_key_pressed")
val ENDERITE_SHIELD_SPAWN_PARTICLES = VanillaCubed.id("enderite_shield_spawn_particles")
} | 0 | Kotlin | 1 | 1 | eeacd0115113a7bc1dd9a9ce6d17f95894fac3ee | 267 | vanilla-cubed | Creative Commons Zero v1.0 Universal |
library_core/src/main/java/com/td/framework/mvp/model/BaseParamsInfo.kt | aohanyao | 97,691,578 | false | null | package com.td.framework.mvp.model
import java.io.Serializable
import java.util.*
/**
* Created by jc on 7/26/2017.
*
* 版本:1.0.0
* **说明**<br></br>
* * 基本的参数对象
**** */
interface BaseParamsInfo : Serializable {
/**将参数转换为map*/
fun /*<T : BaseParamsInfo> */mapToParams(/*param: T*/): Map<String, Any> {
... | 0 | null | 2 | 2 | 0cf83b57ad19fcb8e217507f90c5140b5e1d0d3c | 643 | TdFramework | Apache License 2.0 |
src/leecode/53.kt | DavidZhong003 | 157,566,685 | false | {"Text": 1, "Ignore List": 1, "Markdown": 1, "Kotlin": 77, "Java": 1, "XML": 1} | package leecode
/**
* 53. 最大子序和
* @author doive
* on 2019/6/3 21:15
*/
fun main() {
/**
* 动态规划
* (-2, 1, -3, 4, -1, 2, 1, -5, 4)
* max: -2 -2 1 1 4 4 5 6 6 6
* ans: 0 -2 1 -2 4 3 5 6 -1 4
*/
fun maxSubArray(nums: IntArray): Int {
if (nums.isEmpty()) {
return ... | 1 | null | 1 | 1 | 7eabe9d651013bf06fa813734d6556d5c05791dc | 2,010 | LeetCode-kt | Apache License 2.0 |
component/http-service-impl/src/main/kotlin/mikufan/cx/vtool/component/httpser/impl/customizer/UserAgentRestClientCustomizer.kt | CXwudi | 748,516,931 | false | {"Kotlin": 57945} | package mikufan.cx.vtool.component.httpser.impl.customizer
import org.springframework.boot.web.client.RestClientCustomizer
import org.springframework.http.HttpHeaders
import org.springframework.web.client.RestClient
class UserAgentRestClientCustomizer(
private val userAgent: String
) : RestClientCustomizer {
ove... | 2 | Kotlin | 0 | 0 | 336f69b36be756e158cb3acee86c312ee868957d | 457 | vsonglist-toolkit | MIT License |
app-kit/src/main/java/media/pixi/appkit/data/followers/FirebaseFollowersProvider.kt | NateWickstrom | 166,901,841 | false | null | package media.pixi.appkit.data.followers
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.firestore.DocumentReference
import com.google.firebase.firestore.FirebaseFirestore
import com.google.firebase.firestore.QuerySnapshot
import durdinapps.rxfirebase2.RxFirestore
import io.reactivex.Completabl... | 0 | Kotlin | 0 | 0 | 67e3f5cb6e1d0d7ed12002408325823ce1772492 | 2,240 | android-rx-firebase-app-kit | Apache License 2.0 |
sensing/src/main/java/com/google/android/sensing/db/impl/dao/CaptureInfoDao.kt | google-research | 673,685,651 | false | null | /*
* Copyright 2023-2024 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 19 | null | 7 | 6 | 0eb97489fc575d6014f99f402207d3eb979af4f4 | 2,602 | CVD-paper-mobile-camera-example | Apache License 2.0 |
project/app/src/main/java/com/marcosvbras/robomarket/flows/robotdetail/viewmodel/RobotDetailViewModel.kt | marcosvbras | 137,366,659 | false | {"Kotlin": 113953, "Java": 3663} | package com.marcosvbras.robomarket.flows.robotdetail.viewmodel
import android.app.Activity.RESULT_OK
import android.databinding.ObservableField
import android.os.Bundle
import com.marcosvbras.robomarket.app.EDIT_ROBOT_REQUEST_CODE
import com.marcosvbras.robomarket.app.ROBOT_TAG
import com.marcosvbras.robomarket.busine... | 0 | Kotlin | 1 | 1 | b2253686d9d7bfe9a10f1cd0e0253ac29abc6f41 | 2,633 | RoboMarket | Apache License 2.0 |
shared/src/main/java/de/shecken/grillshow/shared/theme/Color.kt | pynnie | 617,506,940 | false | {"Kotlin": 168809, "HTML": 12735} | package de.shecken.grillshow.shared
import androidx.compose.ui.graphics.Color
val md_theme_dark_primary = Color(0xFFFFB4A8)
val md_theme_dark_onPrimary = Color(0xFF690100)
val md_theme_dark_primaryContainer = Color(0xFF930100)
val md_theme_dark_onPrimaryContainer = Color(0xFFFFDAD4)
val md_theme_dark_secondary = Colo... | 9 | Kotlin | 0 | 2 | 132264aa50c5712605a0b2131fffdd1f416e1c38 | 1,609 | android-grillshow-app | Apache License 2.0 |
connection/src/main/java/com/thoughtworks/cconn/ConnectionFactory.kt | TW-Smart-CoE | 562,334,431 | false | {"Kotlin": 150403, "Java": 1997} | /*
** Copyright 2020, 思特沃克软件技术(北京)有限公司
**
*/
package com.thoughtworks.cconn
import android.content.Context
import com.thoughtworks.cconn.bus.Bus
import com.thoughtworks.cconn.bus.CrossConnectionBus
import com.thoughtworks.cconn.comm.bluetooth.client.BluetoothClient
import com.thoughtworks.cconn.comm.tcp.client.Tcp... | 3 | Kotlin | 0 | 2 | e82e06625876a4be3646c18d4d554b798d5a5e98 | 2,840 | cross-connection-android | Apache License 2.0 |
connection/src/main/java/com/thoughtworks/cconn/ConnectionFactory.kt | TW-Smart-CoE | 562,334,431 | false | {"Kotlin": 150403, "Java": 1997} | /*
** Copyright 2020, 思特沃克软件技术(北京)有限公司
**
*/
package com.thoughtworks.cconn
import android.content.Context
import com.thoughtworks.cconn.bus.Bus
import com.thoughtworks.cconn.bus.CrossConnectionBus
import com.thoughtworks.cconn.comm.bluetooth.client.BluetoothClient
import com.thoughtworks.cconn.comm.tcp.client.Tcp... | 3 | Kotlin | 0 | 2 | e82e06625876a4be3646c18d4d554b798d5a5e98 | 2,840 | cross-connection-android | Apache License 2.0 |
Tokens/AliasTags.kt | noloerino | 107,359,352 | false | null | package texmarkup
val aliasTags = hashMapOf("math" to Math.Companion::create,
"ilmath" to InlineMath.Companion::create,
"part" to ProbPart.Companion::create,
"i" to Italic.Companion::create,
"b" to Bold.Companion::c... | 0 | Kotlin | 0 | 1 | cd09bd02a1962aa289e272fcb547ce828f200252 | 4,518 | tex-markup | MIT License |
src/main/kotlin/hello/account/UserController.kt | myfjdthink | 140,362,708 | true | {"Kotlin": 9270} | package hello.account
import hello.account.domain.User
import hello.account.domain.UserRepository
import org.springframework.web.bind.annotation.*
@RestController
@RequestMapping("/users")
class UserController(
private val userService: UserService,
private val userRepository: UserRepository) {
@... | 0 | Kotlin | 0 | 0 | cd13f5bb1a2c093c4f15b3ceaf62bcb7332e785b | 808 | spring-boot-kotlin-demo | Apache License 2.0 |
app/src/main/java/com/danefinlay/ttsutil/Notifications.kt | Danesprite | 220,346,944 | false | null | /*
* TTS Util
*
* Authors: <NAME> <<EMAIL>>
*
* Copyright (C) 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... | 9 | null | 5 | 22 | 79f3561232a0f9a55da896db23382b4c223373ed | 4,035 | tts-util-app | Apache License 2.0 |
compiler-plugin/src/test/kotlin/arrow/meta/quotes/scope/plugins/ContinueExpressionPlugin.kt | matiaslev | 228,050,786 | true | {"Kotlin": 736346, "Shell": 3071} | package arrow.meta.quotes.scope.plugins
import arrow.meta.Meta
import arrow.meta.Plugin
import arrow.meta.invoke
import arrow.meta.phases.CompilerContext
import arrow.meta.quotes.Transform
import arrow.meta.quotes.continueExpression
open class ContinueExpressionPlugin : Meta {
override fun intercept(ctx: CompilerCo... | 0 | null | 0 | 0 | 175dcf1787f8b1acad35e4679177700d14da0587 | 822 | arrow-meta | Apache License 2.0 |
phoenix-ui/src/main/java/com/guoxiaoxing/phoenix/picker/rx/bus/ObserverListener.kt | lianwt115 | 152,687,979 | false | {"Gradle": 7, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 6, "Batchfile": 1, "Markdown": 1, "Proguard": 5, "XML": 280, "Java": 85, "Kotlin": 268, "JSON": 2, "C++": 4, "AIDL": 1} | package com.guoxiaoxing.phoenix.picker.rx.bus
import com.guoxiaoxing.phoenix.core.model.MediaEntity
import com.guoxiaoxing.phoenix.picker.model.MediaFolder
interface ObserverListener {
fun observerUpFoldersData(folders: List<MediaFolder>)
fun observerUpSelectsData(selectMediaEntities: List<MediaEntity>)
}
| 0 | Kotlin | 2 | 4 | 2fec69b68b593b6eca530019f383d25699b6650b | 318 | qmqiu | Apache License 2.0 |
library/src/jvmTest/kotlin/effekt/casestudies/Anf.kt | kyay10 | 791,451,737 | false | {"Kotlin": 145029, "JavaScript": 90} | @file:Suppress("CONTEXT_RECEIVERS_DEPRECATED")
package effekt.casestudies
import arrow.core.Either
import effekt.get
import effekt.handle
import effekt.handleStateful
import effekt.use
import io.kotest.matchers.shouldBe
import runTestCC
import kotlin.test.Test
class AnfTest {
// let x = f(g(42)) in x
private val... | 5 | Kotlin | 0 | 8 | f608d6f3e3aab65774eb86eaeb09ce0a57698ce4 | 3,630 | KonTinuity | Apache License 2.0 |
AOS/RunWithMe/app/src/main/java/com/ssafy/runwithme/utils/XAccessTokenInterceptor.kt | HanYeop | 531,735,030 | false | {"Kotlin": 709496, "Java": 423758, "JavaScript": 47091, "CSS": 6540, "HTML": 2192, "Shell": 199, "Dockerfile": 176} | package com.ssafy.runwithme.utils
import android.content.SharedPreferences
import kotlinx.coroutines.runBlocking
import okhttp3.Interceptor
import okhttp3.Response
import javax.inject.Inject
class XAccessTokenInterceptor @Inject constructor(
private val sharedPref: SharedPreferences
): Interceptor {
override... | 0 | Kotlin | 0 | 4 | bf0a00a69c40361dbe44a8a3e159c9b69f1ade6f | 612 | RunWithMe | MIT License |
ktfx-commons/src/test/kotlin/ktfx/collections/ObservableArraysTest.kt | hanggrian | 102,934,147 | false | {"Kotlin": 1146536, "CSS": 1653} | package ktfx.collections
import com.google.common.truth.Truth.assertThat
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFalse
import kotlin.test.assertTrue
class ObservableArraysTest {
@Test
fun indices() {
assertThat(observableIntArrayOf(1, 2).indices)
.c... | 1 | Kotlin | 2 | 19 | 6e5ec9fedf8359423c31a2ba64cd175bc9864cd2 | 867 | ktfx | Apache License 2.0 |
src/main/kotlin/nl/bjornvanderlaan/livedemospringwebflux/model/CatDto.kt | BjornvdLaan | 507,929,903 | false | {"Kotlin": 25185} | package nl.bjornvanderlaan.livedemospringwebflux.model
data class CatDto(
val name: String,
val type: String,
val age: Int,
val ownerId: Long? = null,
val owner: Person? = null
)
fun CatDto.toEntity(): Cat = Cat(
name = this.name,
type = this.type,
age = this.age,
ownerId = this.ow... | 0 | Kotlin | 1 | 0 | 78872771f5d93f108b1875ed746b890af2c4a573 | 327 | live-demo-spring-webflux-kotlin | MIT License |
org.librarysimplified.http.tests/src/test/java/org/librarysimplified/http/tests/LSHTTPClientTest.kt | ThePalaceProject | 491,628,613 | false | {"Kotlin": 175869, "Java": 1556} | package org.librarysimplified.http.tests
import org.librarysimplified.http.api.LSHTTPClientProviderType
import org.librarysimplified.http.api.LSHTTPProblemReportParserFactoryType
import org.librarysimplified.http.vanilla.LSHTTPClients
class LSHTTPClientTest : LSHTTPClientContract() {
override fun clients(parsers: L... | 0 | Kotlin | 0 | 0 | 8420d312a77c4f96ed68469f5d83c7235616e8d4 | 454 | android-http | Apache License 2.0 |
compiler/testData/codegen/boxInline/anonymousObject/objectInLambdaCapturesAnotherObject.kt | JakeWharton | 99,388,807 | true | null | // IGNORE_BACKEND: JVM_IR
// FILE: 1.kt
package test
public inline fun myRun(block: () -> Unit) {
return block()
}
// FILE: 2.kt
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
var res = ""
myRun {
val x = object {
fun foo() {
res = "OK"
}
... | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 416 | kotlin | Apache License 2.0 |
app/src/main/java/org/wikipedia/bridge/CommunicationBridge.kt | greatfire | 460,298,221 | false | null | package org.wikipedia.bridge
import android.annotation.SuppressLint
import android.os.Handler
import android.os.Looper
import android.os.Message
import android.webkit.*
import com.google.gson.JsonObject
import org.wikipedia.bridge.JavaScriptActionHandler.setUp
import org.wikipedia.dataclient.RestService
import org.wik... | 2 | null | 4 | 38 | 8c8de602274b0132fc5d22b394a2c47fcd0bf2eb | 6,875 | apps-android-wikipedia-envoy | Apache License 2.0 |
compose-guard/core/src/test/kotlin/com/joetr/compose/guard/core/ComposeCompilerMetricsProviderTest.kt | j-roskopf | 800,960,208 | false | null | /**
* MIT License
*
* Copyright (c) 2024 Joe Roskopf
*
* 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, mod... | 1 | null | 2 | 80 | 44c8a547b98b600f39b21df3a2fefa781b676db6 | 5,248 | ComposeGuard | MIT License |
composeApp/src/commonMain/kotlin/io/github/snd_r/komelia/ui/common/cards/BookItemCard.kt | Snd-R | 775,064,249 | false | null | package io.github.snd_r.komelia.ui.common.cards
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.combinedClickable
import androidx.compose.foundation.hoverable
import androidx.compose.... | 3 | null | 1 | 9 | 5a16d84ed86321e4c7efa96daea9dd7dbfc2308b | 14,568 | Komelia | Apache License 2.0 |
core/src/main/java/com/lionparcel/commonandroid/form/utils/BulkAttachFileAdapter.kt | Lionparcel | 258,373,753 | false | null | package com.lionparcel.commonandroid.form.utils
import android.app.Activity
import android.net.Uri
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.lionparcel.commonandroid.R
import kotlinx.android.extensions.LayoutCon... | 0 | Kotlin | 0 | 0 | e798c14e86433fd232d6063425fdf70505af8014 | 2,556 | common-android | MIT License |
BrasileiraoApp/repository/game-impl/src/main/kotlin/br/com/brasileiraoapp/repository/GameRepositoryImpl.kt | brunoh-almeida | 373,182,895 | false | null | package br.com.brasileiraoapp.repository
import br.com.brasileiraoapp.api.GameApi
import br.com.brasileiraoapp.database.dao.GameDao
import br.com.brasileiraoapp.mapper.GameEntityToGameResponseMapper
import br.com.brasileiraoapp.mapper.GameResponseToGameEntityMapper
import br.com.brasileiraoapp.network.response.Network... | 0 | Kotlin | 0 | 1 | 0df0b3a594143d921448fbe6f8cf1a1fd6747313 | 2,476 | brasileirao-app | MIT License |
modules/api-remote/src/main/kotlin/ru/astrainteractive/astratemplate/api/remote/RickMortyApiImpl.kt | Astra-Interactive | 378,620,934 | false | null | package ru.astrainteractive.astratemplate.api.remote
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.json.Json
import ru.astrainteractive.astralibs.http.HttpClient
import ru.astrainteractive.astratemplate.api.remote.models.RMResponse
/**
* This is a simple implementation of [RickMortyApi] ... | 0 | Kotlin | 0 | 13 | 593a4d31150d76439d1b386206e3f54b67abfff3 | 672 | AstraTemplate | MIT License |
kindex/src/main/kotlin/MavenClient.kt | Monkopedia | 305,151,965 | false | {"Kotlin": 381076, "JavaScript": 1289, "HTML": 912} | /*
* Copyright 2020 Jason Monk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 0 | Kotlin | 0 | 0 | c6f6a460e00af6b8ffc98b8e39cbad509549bc9f | 6,035 | imdex | Apache License 2.0 |
NLiteAVDemo-Android-Java/call-ui/src/main/java/com/netease/yunxin/nertc/ui/group/GroupMemberPageAdapter.kt | netease-kit | 292,760,923 | false | {"Objective-C": 561786, "JavaScript": 505188, "Kotlin": 345942, "Java": 90377, "TypeScript": 4400, "Ruby": 4111, "Python": 2061, "C": 596} | /*
* Copyright (c) 2022 NetEase, Inc. All rights reserved.
* Use of this source code is governed by a MIT license that can be
* found in the LICENSE file.
*/
package com.netease.yunxin.nertc.ui.group
import android.content.Context
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import a... | 2 | Objective-C | 27 | 38 | 9b2593a34179155cf2009124bec0e01944359d2d | 8,259 | NEVideoCall-1to1 | MIT License |
compose/foundation/foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShapeTest.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 1011 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 7,698 | androidx | Apache License 2.0 |
project/app/src/main/java/com/example/nattklar/view/BottomNavigationBar.kt | gremble0 | 654,026,932 | false | null | package com.example.nattklar.view
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.AnimatedVisibilityScope
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.slideInVerti... | 0 | Kotlin | 0 | 1 | df7b18ffa521686db16ad605b31af021f2f929eb | 5,799 | nattklar | MIT License |
app/src/main/java/com/hermanowicz/wirelesswhisper/navigation/features/deviceDetails/ui/DeviceDetailsScreen.kt | sirconceptz | 645,645,531 | false | null | package com.hermanowicz.wirelesswhisper.navigation.features.deviceDetails.ui
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.la... | 0 | Kotlin | 0 | 0 | 787c77a1bec2545587569b1d1b1273396c081400 | 2,347 | WirelessWhisper | Apache License 2.0 |
plugins/evaluation-plugin/core/src/com/intellij/cce/actions/ActionsGenerator.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.cce.actions
import com.intellij.cce.core.CodeFragment
import com.intellij.cce.processor.GenerateActionsProcessor
import com.intellij.cce.util.FileTextUtil.computeChecksum
class... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 622 | intellij-community | Apache License 2.0 |
src/main/kotlin/net/dehya/api/schedules/types/DateSchedule.kt | ryderbelserion | 670,341,905 | false | null | package net.dehya.api.schedules.types
import net.dehya.api.schedules.Schedule
import java.time.LocalDateTime
/**
* A schedule that is based on a date.
*/
class DateSchedule(
private val dateTime: LocalDateTime,
private val block: suspend () -> Unit,
) : Schedule {
// Will check if the date time is vali... | 0 | Kotlin | 0 | 0 | 7d8a7327b011c16ddcacd8cf6cfcda0c806f0d7f | 686 | Krul | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.