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/dk/cachet/carp/webservices/common/exception/responses/ResourceNotFoundException.kt | cph-cachet | 674,650,033 | false | {"Kotlin": 671905, "TypeScript": 111037, "HTML": 14219, "Shell": 4202, "CSS": 1656, "Dockerfile": 1264, "JavaScript": 706} | package dk.cachet.carp.webservices.common.exception.responses
import org.springframework.http.HttpStatus
import org.springframework.web.bind.annotation.ResponseStatus
/**
* The Class [ResourceNotFoundException].
* The [ResourceNotFoundException] exception is thrown when a resource cannot be found.
*/
@ResponseStat... | 27 | Kotlin | 1 | 3 | 6f16c3c5f1b5b8bdd7abc30fd312c0cad973473c | 423 | carp-webservices-spring | MIT License |
components/parser/svgxml/src/test/kotlin/io/github/composegears/valkyrie/parser/svgxml/XmlStringParserTest.kt | ComposeGears | 778,162,113 | false | {"Kotlin": 638818} | package io.github.composegears.valkyrie.parser.svgxml
import assertk.assertThat
import assertk.assertions.isEqualTo
import org.junit.jupiter.api.Test
class XmlStringParserTest {
private data class IconTest(
val fileName: String,
val expected: String,
)
@Test
fun `test icon name`() {
... | 8 | Kotlin | 2 | 236 | 818940c5ed8a6febe06aa2c069e118ae47280b85 | 2,058 | Valkyrie | Apache License 2.0 |
app/src/main/java/org/simple/clinic/newentry/MultipleFocusChangeListeners.kt | simpledotorg | 132,515,649 | false | {"Kotlin": 6129044, "Shell": 1660, "HTML": 545} | package org.simple.clinic.newentry
import io.reactivex.Observable
interface MultipleFocusChangeListeners {
val focusChanges: Observable<Boolean>
}
| 13 | Kotlin | 73 | 236 | ff699800fbe1bea2ed0492df484777e583c53714 | 152 | simple-android | MIT License |
common_component/src/main/java/com/xyoye/common_component/network/Retrofit.kt | xiaojiujiu20150827 | 350,970,152 | true | {"Kotlin": 1170237, "Java": 542861} | package com.xyoye.common_component.network
import com.xyoye.common_component.BuildConfig
import com.xyoye.common_component.network.helper.*
import com.xyoye.common_component.network.service.ExtRetrofitService
import com.xyoye.common_component.network.service.ResRetrofitService
import com.xyoye.common_component.network... | 0 | null | 0 | 0 | 57f9a65368a6f79d22944fa1264002c04b256993 | 3,399 | DanDanPlayForAndroid | Apache License 2.0 |
common_component/src/main/java/com/xyoye/common_component/network/Retrofit.kt | xiaojiujiu20150827 | 350,970,152 | true | {"Kotlin": 1170237, "Java": 542861} | package com.xyoye.common_component.network
import com.xyoye.common_component.BuildConfig
import com.xyoye.common_component.network.helper.*
import com.xyoye.common_component.network.service.ExtRetrofitService
import com.xyoye.common_component.network.service.ResRetrofitService
import com.xyoye.common_component.network... | 0 | null | 0 | 0 | 57f9a65368a6f79d22944fa1264002c04b256993 | 3,399 | DanDanPlayForAndroid | Apache License 2.0 |
src/main/kotlin/com/valjapan/competitionprogramming/AOJ1_10_D.kt | valjapan | 256,530,542 | false | null | package com.valjapan.competitionprogramming
fun main(args: Array<String>) {
readLine()!!.toInt()
val x = readLine()!!.split(" ").map(String::toInt)
val y = readLine()!!.split(" ").map(String::toInt)
println(x.zip(y) { a, b -> Math.abs(a - b) }.sum())
println(Math.sqrt(x.zip(y) { a, b -> Math.pow(M... | 0 | Kotlin | 0 | 0 | dfceeecbea88581dd634e15311694eed718f3cfa | 512 | CompetionProgramming | MIT License |
src/main/kotlin/com/valjapan/competitionprogramming/AOJ1_10_D.kt | valjapan | 256,530,542 | false | null | package com.valjapan.competitionprogramming
fun main(args: Array<String>) {
readLine()!!.toInt()
val x = readLine()!!.split(" ").map(String::toInt)
val y = readLine()!!.split(" ").map(String::toInt)
println(x.zip(y) { a, b -> Math.abs(a - b) }.sum())
println(Math.sqrt(x.zip(y) { a, b -> Math.pow(M... | 0 | Kotlin | 0 | 0 | dfceeecbea88581dd634e15311694eed718f3cfa | 512 | CompetionProgramming | MIT License |
account/ui/src/commonMain/kotlin/com/amc/acieslinski/simplegiftapp/account/presentation/RegistrationViewModel.kt | acieslinski | 777,244,363 | false | {"Kotlin": 71875, "Swift": 15526} | package com.amc.acieslinski.simplegiftapp.account.presentation
import com.amc.acieslinski.simplegiftapp.BaseViewModel
import com.amc.acieslinski.simplegiftapp.account.domain.RegisterUseCase
import com.amc.acieslinski.simplegiftapp.account.presentation.model.RegistrationDialogState
import com.amc.acieslinski.simplegift... | 0 | Kotlin | 0 | 0 | b8f62adb8b31d612df1cc222302d787816224cf4 | 2,155 | simplegiftapp | Apache License 2.0 |
tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/PossiblySentViaBotCommonMessage.kt | InsanusMokrassar | 163,152,024 | false | {"Kotlin": 3243076, "Shell": 373} | package dev.inmo.tgbotapi.types.message.abstracts
import dev.inmo.tgbotapi.types.message.content.MessageContent
sealed interface PossiblySentViaBotCommonMessage<out T: MessageContent> : CommonMessage<T>, PossiblySentViaBot
| 13 | Kotlin | 29 | 358 | 482c375327b7087699a4cb8bb06cb09869f07630 | 225 | ktgbotapi | Apache License 2.0 |
abckids/src/main/java/pk/farimarwat/abckids/models/KPointF.kt | farimarwat | 526,817,997 | false | {"Kotlin": 30493} | package pk.farimarwat.abckids.models
import android.graphics.PointF
data class KPointF(
var isaccessed:Boolean,
val point:PointF
)
| 3 | Kotlin | 3 | 25 | 1108fe9a95ef24fe0b25d803f5e28d4fa841dd01 | 141 | android-word-tracing-sdk | MIT License |
app-backend/src/main/kotlin/jooq/main/tables/daos/DmLikesDao.kt | Heapy | 40,936,978 | false | {"Kotlin": 3311624, "TypeScript": 19032, "Less": 5146, "HTML": 4493, "JavaScript": 2299, "CSS": 2174, "Dockerfile": 243} | /*
* This file is generated by jOOQ.
*/
package link.kotlin.server.jooq.main.tables.daos
import java.time.OffsetDateTime
import kotlin.collections.List
import link.kotlin.server.jooq.main.tables.DmLikes
import link.kotlin.server.jooq.main.tables.records.DmLikesRecord
import org.jooq.Configuration
import org.jooq... | 21 | Kotlin | 1220 | 11,018 | 2f4cfa75180e759d91fe238cc3f638beec9286e2 | 3,322 | awesome-kotlin | Apache License 2.0 |
src/main/kotlin/io/hirasawa/server/bancho/packethandler/multiplayer/MatchNotReadyPacket.kt | cg0 | 256,633,551 | false | {"Gradle": 2, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 2, "Kotlin": 304, "Java": 2, "YAML": 2, "XML": 10} | package io.hirasawa.server.bancho.packethandler.multiplayer
import io.hirasawa.server.bancho.io.OsuReader
import io.hirasawa.server.bancho.io.OsuWriter
import io.hirasawa.server.bancho.packethandler.PacketHandler
import io.hirasawa.server.bancho.packets.BanchoPacketType
import io.hirasawa.server.bancho.user.BanchoUser... | 37 | Kotlin | 0 | 6 | ce416d649095bbaee105fcbaa88e9a3c7cf745ac | 541 | Hirasawa-Project | MIT License |
app/src/main/java/com/z1/pokedex/feature/favorites/presentation/screen/FavoritesScreenUiState.kt | zero1code | 757,161,296 | false | {"Kotlin": 245388} | package com.z1.pokedex.feature.favorites.presentation.screen
import androidx.compose.runtime.Immutable
import com.z1.pokedex.feature.home.domain.model.Pokemon
@Immutable
data class FavoritesScreenUiState(
val isLoading: Boolean = true,
val isConnected: Boolean = false,
val favorites: List<Pokemon> = empty... | 0 | Kotlin | 0 | 7 | 320b1c045b313ce8ca419a12732b5d8926e9e7e9 | 328 | pokedex-z1 | Apache License 2.0 |
src/main/kotlin/ink/ptms/adyeshach/common/script/action/ActionWait.kt | l89669 | 318,693,239 | true | {"Gradle": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Java Properties": 1, "Java": 4, "YAML": 5, "JSON": 1, "Kotlin": 277} | package ink.ptms.adyeshach.common.script.action
import ink.ptms.adyeshach.common.script.ScriptContext
import ink.ptms.adyeshach.common.util.Tasks
import io.izzel.kether.common.api.*
import java.util.concurrent.CompletableFuture
import java.util.function.Function
/**
* @author IzzelAliz
*/
class ActionWait(val tick... | 0 | Kotlin | 0 | 0 | 43b752c5860a5dbc18481b70e615ecf77cb013a6 | 1,634 | Adyeshach | MIT License |
ComposeCollapsingTopBar/src/main/java/com/flaringapp/compose/topbar/nestedscroll/CollapsingTopBarNestedScrollSnap.kt | flaringapp | 825,947,316 | false | {"Kotlin": 229056} | /*
* Copyright 2024 Flaringapp
*
* 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... | 4 | Kotlin | 0 | 1 | 1046f1176aa22c2b90047cd77769f8bd946958cd | 1,679 | ComposeCollapsingTopBar | Apache License 2.0 |
webpage/src/test/kotlin/ui/CounterTest.kt | cybernetics | 348,602,660 | true | {"Kotlin": 688419, "HTML": 3240, "JavaScript": 1700} | package ui
import kotlinext.js.jsObject
import kotlinx.coroutines.delay
import tz.co.asoft.asyncTest
import ui.enzyme.EnzymeAdapterReact16
import ui.enzyme.configure
import ui.enzyme.shallow
import kotlin.test.BeforeTest
import kotlin.test.Ignore
import kotlin.test.Test
import kotlin.test.assertEquals
external interf... | 0 | null | 0 | 0 | 3a35469e575c4c832e17c368fefa644dd8649ebb | 1,100 | reakt-1 | MIT License |
src/main/kotlin/com/mecheka/todo/route/AuthRoute.kt | Mecheka | 761,606,384 | false | {"Kotlin": 15736, "Dockerfile": 3240} | package com.mecheka.todo.route
import com.mecheka.todo.controller.AuthController
import com.mecheka.todo.controller.AuthResponse
import io.ktor.http.HttpStatusCode
import io.ktor.server.application.call
import io.ktor.server.request.receiveParameters
import io.ktor.server.response.respond
import io.ktor.server.routing... | 0 | Kotlin | 0 | 0 | cf61088142d023a07eacf8f8a57a7808f05f7bc0 | 1,587 | ktor-todo | Apache License 2.0 |
plugins/maven/src/main/java/org/jetbrains/idea/maven/performancePlugin/ImportMavenProjectCommand.kt | wwwjames | 78,877,532 | true | null | package org.jetbrains.idea.maven.performancePlugin
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.externalSystem.autoimport.ExternalSystemProjectTrackerSettings
import com.intellij.openapi.externalSystem.autoimport.ExternalSystemProjectTrackerSettings.AutoReloadType
import com.i... | 1 | null | 1 | 1 | 9d4b7c6230b668e59a1aabb2b54cb89ba840fce4 | 5,812 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/androidshowcase/database/daos/LibraryMarkingsDao.kt | dudupopkhadze | 279,800,962 | false | null | package com.example.androidshowcase.database.daos
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import com.example.androidshowcase.database.entities.LibraryMarking
import kotlin.reflect.jvm.internal.impl.resolve.constants.ClassLiteralValue
@Dao
interface L... | 5 | Kotlin | 4 | 2 | b38c6495a4f1565e6c882bc4e7d55c77384c17b2 | 812 | Android-Showcase | MIT License |
light/src/test/kotlin/net/kotlinx/domain/menu/MenuTest.kt | mypojo | 565,799,715 | false | {"Kotlin": 1445807, "Jupyter Notebook": 13439, "Java": 9531} | package net.kotlinx.domain.menu
import io.kotest.matchers.shouldBe
import net.kotlinx.domain.developer.DeveloperData
import net.kotlinx.kotest.BeSpecLog
import net.kotlinx.kotest.KotestUtil
import net.kotlinx.kotest.initTest
import net.kotlinx.string.toTextGridPrint
internal class MenuTest : BeSpecLog() {
priva... | 0 | Kotlin | 0 | 1 | d7a595c2b37be90937eb0358e8f8b502fd178226 | 2,093 | kx_kotlin_support | MIT License |
core/src/main/java/me/manulorenzo/moneytransactions/core/di/CoroutinesModule.kt | noloman | 212,043,080 | false | null | package me.manulorenzo.moneytransactions.core.di
import me.manulorenzo.moneytransactions.core.CoroutinesContextProvider
import org.koin.dsl.module
val coroutinesModule = module {
single { CoroutinesContextProvider() }
} | 5 | Kotlin | 0 | 0 | 29f73bfcbe5a1d4437d993b2ce4256ed0bbbfaa5 | 225 | MoneyTransactions | MIT License |
app/src/main/java/mihon/feature/upcoming/components/calendar/CalendarIndicator.kt | mihonapp | 743,704,912 | false | {"Kotlin": 2940843} | package mihon.feature.upcoming.components.calendar
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.ru... | 280 | Kotlin | 447 | 9,867 | f3a2f566c8a09ab862758ae69b43da2a2cd8f1db | 1,008 | mihon | Apache License 2.0 |
app/src/main/java/com/akvelon/bitbuckler/model/datasource/database/dao/WorkspaceSizeDao.kt | akvelon | 635,643,587 | false | null | /**
* All rights reserved by Akvelon Inc.
*
* Created by Alexander Vinogradov (a.vinogradov@akvelon.com)
* on 25 February 2022
*/
package com.akvelon.bitbuckler.model.datasource.database.dao
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
im... | 0 | Kotlin | 0 | 1 | b95918f9b8902c03dcbaf55071a1f51270b115e3 | 640 | Bitbuckler-Android | MIT License |
kanashi-server/src/main/java/ink/anur/engine/persistant/FileKanashiEntryConstant.kt | anurnomeru | 242,305,129 | false | null | package ink.anur.engine.persistant
/**
* Created by <NAME> on 2019/12/5
*/
object FileKanashiEntryConstant {
const val SizeOffset = 0
const val SizeLength = 4
const val KeySizeOffset = SizeOffset + SizeLength
const val KeySizeLength = 4
const val KeyOffset = KeySizeOffset + KeySizeLength
... | 1 | Kotlin | 1 | 5 | 27db6442ef9d4abc594d7e7719a8c772f03e61b6 | 533 | kanashi | MIT License |
kanashi-server/src/main/java/ink/anur/engine/persistant/FileKanashiEntryConstant.kt | anurnomeru | 242,305,129 | false | null | package ink.anur.engine.persistant
/**
* Created by <NAME> on 2019/12/5
*/
object FileKanashiEntryConstant {
const val SizeOffset = 0
const val SizeLength = 4
const val KeySizeOffset = SizeOffset + SizeLength
const val KeySizeLength = 4
const val KeyOffset = KeySizeOffset + KeySizeLength
... | 1 | Kotlin | 1 | 5 | 27db6442ef9d4abc594d7e7719a8c772f03e61b6 | 533 | kanashi | MIT License |
src/main/java/me/han/muffin/client/event/events/render/RenderFluidEvent.kt | SmallFishDD | 425,272,585 | false | {"Kotlin": 1725682, "Java": 943392, "GLSL": 15937} | package me.han.muffin.client.event.events.render
import me.han.muffin.client.event.EventCancellable
class RenderFluidEvent: EventCancellable() | 1 | Kotlin | 2 | 2 | 13235eada9edd9ccca039dea4d3a59cc7a930830 | 144 | muffin-0.10.4-src-leaked | MIT License |
app/src/main/java/com/technipixl/filrouge/webChuck/HomeAdapter.kt | loich91 | 413,696,305 | false | {"Kotlin": 51678} | package com.technipixl.filrouge.webChuck
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.technipixl.filrouge.R
import com.technipixl.filrouge.UI.HomeFragViewer
class HomeAdapter (activity:FragmentActivity, private ... | 0 | Kotlin | 0 | 0 | 63ed5925c7b90ca2f9964ae2e17b3f35f008ce0a | 931 | technifutur-fil-rouge-and | Apache License 2.0 |
telegram-bot/src/jvmTest/kotlin/eu/vendeli/api/PollTest.kt | vendelieu | 496,567,172 | false | {"Kotlin": 925708, "CSS": 356} | package eu.vendeli.api
import BotTestContext
import eu.vendeli.tgbot.api.poll
import eu.vendeli.tgbot.api.stopPoll
import eu.vendeli.tgbot.types.EntityType
import eu.vendeli.tgbot.types.MessageEntity
import eu.vendeli.tgbot.types.internal.getOrNull
import eu.vendeli.tgbot.types.poll.InputPollOption
import eu.vendeli.t... | 6 | Kotlin | 12 | 165 | c1ddf4a42c577410af31249dc650858320668263 | 3,543 | telegram-bot | Apache License 2.0 |
application/src/main/kotlin/tech/alexib/yaba/server/feature/item/ItemQuery.kt | ruffCode | 381,245,396 | false | null | /*
* Copyright 2021 Alexi Bre
*
* 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 i... | 5 | Kotlin | 0 | 1 | 0f5ac0bf3e0cb9dedf8499b0763ea85eba4248ba | 1,714 | yaba-server | Apache License 2.0 |
app/src/main/java/com/patronusstudio/sisecevirmece2/data/enums/ProfileTitlesEnum.kt | Patronus-Studio | 531,631,142 | false | {"Kotlin": 347342} | package com.patronusstudio.sisecevirmece2.data.enums
import android.content.Context
import com.patronusstudio.sisecevirmece2.R
enum class ProfileTitlesEnum {
PACKAGES{
override fun getTitles(context: Context): String = context.getString(R.string.packages)
override fun getActiveBtnColor(): String =... | 1 | Kotlin | 0 | 0 | 015e50843190680cf848f5430472e7bd050638d9 | 1,762 | SiseCevirmece-Compose | Apache License 2.0 |
server/src/main/kotlin/api/adapters/dtos/S3Dtos.kt | anthonynomil | 852,668,184 | false | {"Kotlin": 111644, "TypeScript": 66906, "Dockerfile": 793, "HTML": 542, "CSS": 482, "JavaScript": 297} | package api.adapters.dtos
import java.io.File
data class S3CreationDto(
val path: String,
val file: File,
) | 0 | Kotlin | 0 | 0 | 5043e41c02624da8727a4112238193f2c11fd879 | 117 | portfolio-titre | MIT License |
sample/src/main/kotlin/com/chibatching/kotprefsample/UserInfo.kt | fly7632785 | 114,717,215 | true | {"Kotlin": 88417, "Java": 4525} | package com.chibatching.kotprefsample
import com.chibatching.kotpref.KotprefModel
import com.chibatching.kotpref.enumpref.enumValuePref
import com.chibatching.kotpref.gsonpref.gsonNullablePref
import com.chibatching.kotpref.gsonpref.gsonPref
import com.jafir.encryptsupport.*
import java.util.*
object UserInfo : Kotp... | 0 | Kotlin | 0 | 0 | 0a381b3936be9c4c22fba7ba257fca2a62969367 | 1,205 | Kotpref | Apache License 2.0 |
app/src/main/java/com/kisanthapa/mvvm/ui/NewsViewModel.kt | KisanThapa | 292,836,443 | false | null | package com.kisanthapa.mvvm.ui
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.kisanthapa.mvvm.models.NewsResponse
import com.kisanthapa.mvvm.repository.NewsRepository
import com.kisanthapa.mvvm.utility.Resource
import kotlinx.coroutines... | 0 | Kotlin | 0 | 1 | f543deae89696cf3b03479ce89b2e96e96888c69 | 1,950 | MVVM-Project-Demo | MIT License |
rx/src/main/java/io/sellmair/quantum/rx/StateObservable+rx.kt | sellmair | 147,240,457 | false | null | package io.sellmair.quantum.rx
import io.reactivex.Observable
import io.sellmair.quantum.Quantum
val <T> Quantum<T>.rx: Observable<T>
get() = Observable.create<T> { emitter ->
this.addStateListener(emitter::onNext)
this.addQuittedListener(emitter::onComplete)
emitter.setCancellable {
... | 1 | Kotlin | 3 | 71 | a235277f9ce915ce54d933416a9724cbf424e776 | 384 | quantum | MIT License |
app/src/main/java/io/github/gmathi/novellibrary/source/WLNUpdatesSource.kt | gmathi | 92,864,511 | false | null | package io.github.gmathi.novellibrary.source
import com.google.gson.JsonParser
import io.github.gmathi.novellibrary.model.database.Novel
import io.github.gmathi.novellibrary.model.database.WebPage
import io.github.gmathi.novellibrary.model.other.NovelsPage
import io.github.gmathi.novellibrary.model.source.filter.Filte... | 20 | Kotlin | 22 | 96 | ff35dc386834db35e761c87089ef595957a6fa86 | 10,845 | NovelLibrary | Apache License 2.0 |
app/src/main/java/com/mertyazi/footballapp/shared/data/entities/AwayTeamEntity.kt | MertYazi | 611,202,935 | false | null | package com.mertyazi.footballapp.shared.data.entities
data class AwayTeamEntity(
val bench: List<BenchEntity>,
val coach: CoachEntity,
val crest: String,
val formation: String,
val id: Int,
val leagueRank: Int,
val lineup: List<LineupEntity>,
val name: String,
val shortName: String,... | 0 | Kotlin | 1 | 2 | fea929e882684ba5760555d1cc125a5e175583d7 | 342 | FootballApp | Apache License 2.0 |
unittest/src/test/java/com/kyleduo/app/klab/m/unittest/JUnit5Lifecycle.kt | kyleduo | 341,073,541 | false | null | package com.kyleduo.app.klab.m.unittest
import org.junit.jupiter.api.*
import org.junit.jupiter.api.extension.ExtendWith
import java.util.concurrent.atomic.AtomicInteger
/**
* Testing Junit5 test lifecycle
*/
@ExtendWith(LifecycleExtensions::class)
class JUnit5Lifecycle {
companion object {
init {
... | 0 | Kotlin | 0 | 0 | 61bc51731a1039a087fcea28ce3b2a41e0373654 | 2,947 | KLab | MIT License |
example/android/app/src/main/kotlin/com/fl/pip/example/MainActivity.kt | Wayaer | 645,747,155 | false | {"Kotlin": 15460, "Dart": 14138, "Swift": 11009, "Ruby": 2199, "Objective-C": 38} | package com.fl.pip.example
import com.fl.pip.FlPiPActivity
class MainActivity : FlPiPActivity() {}
| 2 | Kotlin | 5 | 7 | 5fe2a9b2a96f5f4b7064f1f9458fa3612dca8070 | 101 | fl_pip | MIT License |
app/src/main/java/com/example/petapp/response/ArtikelRespon.kt | NuhaAlfarhani | 725,591,158 | false | {"Kotlin": 106801} | package com.example.petapp.response
import com.google.gson.annotations.SerializedName
class ArtikelRespon {
var id: Int = 0
@SerializedName("attributes")
var attributes: ArtikelAttributes = ArtikelAttributes()
}
class ArtikelAttributes {
@SerializedName("judul_artikel")
var judulArtikel: String =... | 0 | Kotlin | 0 | 1 | 6d3740ceb06f08506fc4ef77043b4b8c56cdf702 | 742 | Pet-App | MIT License |
app/src/main/java/com/example/iberdrola/ui/auth/SignupActivity.kt | leomenvn | 781,418,730 | false | {"Kotlin": 55565} | package com.example.iberdrola.ui.auth
import android.content.Intent
import android.os.Bundle
import android.text.TextUtils
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCom... | 0 | Kotlin | 0 | 1 | 42c3e6435ca062e0fa6e9d6915b6cbab414d75dd | 3,506 | kotlinVN | Apache License 2.0 |
app/src/main/java/com/example/iberdrola/ui/auth/SignupActivity.kt | leomenvn | 781,418,730 | false | {"Kotlin": 55565} | package com.example.iberdrola.ui.auth
import android.content.Intent
import android.os.Bundle
import android.text.TextUtils
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCom... | 0 | Kotlin | 0 | 1 | 42c3e6435ca062e0fa6e9d6915b6cbab414d75dd | 3,506 | kotlinVN | Apache License 2.0 |
src/main/kotlin/com/nazonazo_app/shit_forces/EmptyResponse.kt | ShopOne | 326,353,698 | false | null | package com.nazonazo_app.shit_forces
class EmptyResponse
| 47 | TypeScript | 13 | 28 | 642c42e9bf52c764fe392aca39c035bdb6e987ac | 58 | Shitforces | MIT License |
tmp/arrays/youTrackTests/3162.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-39479
fun m2() {
m({c -> f(c)}) // Convert lambda to reference not possible
}
fun m(l: C.(String) -> Unit) {
val C = C()
l(C,"s")
}
class C {
fun f(s: String) {}
fun f(i: Int) {}
}
| 1 | null | 12 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 224 | bbfgradle | Apache License 2.0 |
app/src/main/java/com/eillia/ehya/model/data/database/AppDatabase.kt | mal7othify | 443,608,801 | false | {"Kotlin": 96640} | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 3 | 30 | 3c485d23b62605802bd047a3b85f1f020426d165 | 2,646 | ehya-android | Apache License 2.0 |
feature/profile/src/main/java/akio/apps/myrun/feature/userprefs/UserPreferencesViewModel.kt | khoi-nguyen-2359 | 297,064,437 | false | {"Kotlin": 818596, "Java": 37377} | package akio.apps.myrun.feature.userprefs
import akio.apps.myrun.base.di.NamedIoDispatcher
import akio.apps.myrun.data.authentication.api.SignInManager
import akio.apps.myrun.data.authentication.api.UserAuthenticationState
import akio.apps.myrun.data.common.Resource
import akio.apps.myrun.data.eapps.api.model.External... | 0 | Kotlin | 3 | 7 | c864c2972b1db8146d3c2553130bfe9e78a27c42 | 4,296 | myrun | MIT License |
domain/src/main/java/com/seo4d696b75/android/ekisagasu/domain/dataset/Line.kt | Seo-4d696b75 | 247,417,963 | false | {"Kotlin": 421916} | package com.seo4d696b75.android.ekisagasu.domain.dataset
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* @author Seo-4d696b75
* @version 2020/12/17.
*/
@Serializable
data class Line(
val id: String,
val code: Int,
val name: String,
@SerialName("name_kana")
... | 4 | Kotlin | 0 | 0 | ca323eb5aa46187d16d335a10fd64d51bfd6c651 | 1,122 | checkhelper | MIT License |
input-engine/src/main/java/de/tillhub/inputengine/data/MoneyParam.kt | tillhub | 772,554,183 | false | {"Kotlin": 80608} | package de.tillhub.inputengine.data
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
import java.math.BigInteger
@Parcelize
sealed class MoneyParam : Parcelable {
data class Enable(val amount: BigInteger) : MoneyParam()
data object Disable : MoneyParam()
} | 0 | Kotlin | 0 | 0 | b6bc10eac03d1dc8cdd9fd48c86a744a63f18ec8 | 281 | input-engine | MIT License |
data/RF00273/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF00273"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
1 to 3... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 541 | Rfam-for-RNArtist | MIT License |
funcify-feature-eng-jq/src/main/kotlin/funcify/feature/transformer/jq/source/provider/YamlResourceJqTransformerSourceProvider.kt | anticipasean | 458,910,592 | false | {"Kotlin": 2751524, "HTML": 1817} | package funcify.feature.transformer.jq.source.provider
import arrow.core.filterIsInstance
import arrow.core.getOrElse
import arrow.core.some
import com.fasterxml.jackson.databind.JsonNode
import funcify.feature.error.ServiceError
import funcify.feature.schema.sdl.SDLDefinitionsSetExtractor
import funcify.feature.tools... | 0 | Kotlin | 0 | 0 | 284b941de10a5b85b9ba1b5236a1d57289e10492 | 4,693 | funcify-feature-eng | Apache License 2.0 |
src/main/kotlin/algorithm/data/AttackType.kt | BSchachenhofer | 331,586,687 | false | null | package algorithm.data
enum class AttackType {
NONE,
FORK,
RACE,
SPLIT
} | 0 | Kotlin | 0 | 1 | 583d90e9dc7d121b5ed02fa36ea1d8141cc454ae | 89 | dagsim | MIT License |
app/src/test/java/ar/com/wolox/android/cookbook/mercadopago/model/CartTest.kt | Wolox | 151,121,373 | false | null | package ar.com.wolox.android.cookbook.mercadopago.model
import com.nhaarman.mockitokotlin2.mock
import org.junit.Test
class CartTest {
@Test
fun `given a non-empty list of products quantities when initialized then the cart is well initialized`() {
// GIVEN
val list = listOf<ProductQuantity>(... | 3 | Kotlin | 8 | 9 | 10c61b24b6c8812aa039441bfea709bfac29668c | 751 | wolmo-cookbook-android | MIT License |
app/src/main/java/com/redeyesncode/redrecorder/data/PermissionData.kt | RedEyesNCode | 715,984,317 | false | {"Kotlin": 85070} | package com.redeyesncode.redrecorder.data
import android.graphics.drawable.Drawable
data class PermissionData(val permissionKey: String, val permissionName: String, val permissionInfo: String,val drawable:Drawable) {
} | 0 | Kotlin | 0 | 0 | bbf2b161364dd63899791465fd0e68dbfdd6b52c | 220 | Red_RecorderAndroid | MIT License |
plugins/dependencies/src/main/kotlin/dependencies/CashApp.kt | jmfayard | 150,827,271 | false | null | @file:Suppress("PackageDirectoryMismatch", "SpellCheckingInspection", "unused")
import de.fayard.refreshVersions.core.DependencyGroup
import de.fayard.refreshVersions.core.DependencyNotation
object CashApp {
/**
* SQLDelight generates typesafe kotlin APIs from your SQL statements.
*
* Official Web... | 67 | Kotlin | 75 | 1,180 | 71039f942d7d4f8037ced245a145362aec4b1d77 | 1,495 | refreshVersions | MIT License |
aws-lambda-kotlin-events/src/main/kotlin/dev/jtkt/services/lambda/runtime/events/dynamodb/Record.kt | jtaub | 735,085,227 | false | {"Kotlin": 76981} | package dev.jtkt.services.lambda.runtime.events.dynamodb
import kotlinx.serialization.Serializable
@Serializable
data class Record(
val eventID: String = "",
val eventName: EventName = EventName.INSERT,
val eventVersion: String = "",
val eventSource: String = "aws:dynamodb",
val awsRegion: String ... | 0 | Kotlin | 0 | 0 | 3eccf2954453aa9010a75eec8fc0499d386bb37d | 475 | aws-lambda-kotlin-libs | Apache License 2.0 |
module_event/src/main/java/app/melon/event/EventDetailActivity.kt | biubiubiiu | 344,728,768 | false | null | package app.melon.event
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.MenuItem
import androidx.lifecycle.Observer
import app.melon.data.resultentities.EventAndOrganiser
import app.melon.event.databinding.ActivityEventDetailBinding
import app.melon.event.detai... | 1 | Kotlin | 1 | 2 | 6bb52f962084674ed50ffb3f8399c1b413a5a234 | 3,715 | Melon | Apache License 2.0 |
composeApp/src/commonMain/kotlin/domain/usecase/FindNearestCityCoordinateUseCase.kt | ParkJong-Hun | 794,024,590 | false | {"Kotlin": 84559, "Swift": 594} | package domain.usecase
import domain.entity.City
import domain.entity.Coordinate
interface FindNearestCityCoordinateUseCase {
operator fun invoke(coordinate: Coordinate): City
}
class FindNearestCityCoordinateUseCaseImpl(
private val getDistanceUseCase: GetDistanceUseCase,
) : FindNearestCityCoordinateUseCas... | 3 | Kotlin | 0 | 2 | 5959e0cd323499ce15fa47271bde2bc95ea315b8 | 491 | compose-multiplatform-test-airfield | Apache License 2.0 |
platform/platform-impl/src/com/intellij/ui/dsl/builder/impl/SegmentedButtonComponent.kt | michaelsiepmann | 136,669,423 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ui.dsl.builder.impl
import com.intellij.ide.ui.laf.darcula.DarculaUIUtil
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.Presenta... | 1 | null | 1 | 1 | 9539e7b156f3f4b2fcde5e6160798e29abcc1aaf | 6,343 | intellij-community | Apache License 2.0 |
kotlin-client/src/main/kotlin/com/couchbase/client/kotlin/kv/RangeScan.kt | couchbase | 151,122,650 | false | null | /*
* Copyright 2022 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 4 | Java | 32 | 36 | e08e0319841780a8dd8ad9af0eb7720f2856790f | 5,619 | couchbase-jvm-clients | Apache License 2.0 |
boxicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/boxicons/boxicons/solid/BxsHeartCircle.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.boxicons.boxicons.solid
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphic... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,196 | compose-icon-collections | MIT License |
src/test/kotlin/biz/koziolek/adventofcode/year2021/day04/Day4Test.kt | pkoziol | 434,913,366 | false | {"Kotlin": 539525, "Shell": 1892} | package biz.koziolek.adventofcode.year2021.day04
import biz.koziolek.adventofcode.findInput
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Tag
import org.junit.jupiter.api.Test
@Tag("2021")
internal class Day4Test {
private val sampleInput = """
7,4,9,5,11,17,23,2,0,14,21,24,1... | 0 | Kotlin | 0 | 0 | 650c8a976221c2d40cb0e250cc4795e1af3447b5 | 5,187 | advent-of-code | MIT License |
app/src/main/java/com/example/weather/WebServices/WeatherResult.kt | jzherrera25 | 186,947,683 | false | {"Kotlin": 40327} | package com.example.weather.WebServices
import com.example.weather.Models.WeatherModels.WeatherCurrently
data class WeatherResult(val latitude: String, val longitude: String, val timezone: String, val currently: WeatherCurrently?, val minutely: WeatherMinutely?, val hourly: WeatherHourly?, val daily: WeatherDaily?)
| 0 | Kotlin | 0 | 1 | 615b1641b4b822dba631181bcb2009f9b4c0ef57 | 319 | Weather | MIT License |
uwmediapicker/src/main/java/com/anilokcun/uwmediapicker/UwMediaPicker.kt | chimzycash | 261,725,939 | true | {"Kotlin": 53498} | package com.anilokcun.uwmediapicker
import android.app.Activity
import android.content.Intent
import android.graphics.Bitmap
import android.os.Environment
import android.support.v4.app.Fragment
import com.anilokcun.uwmediapicker.enum.Enums
import com.anilokcun.uwmediapicker.model.UWMediaPickerSettingsModel
import com.... | 0 | Kotlin | 0 | 0 | 73bfa10f8b6f7b2911e13de15c95f9fb45943c97 | 4,422 | UWMediaPicker-Android | Apache License 2.0 |
app/src/main/java/com/erif/contentloaderdemo/MainActivity.kt | eriffanani | 505,337,650 | false | {"Kotlin": 24110, "Java": 22468} | package com.erif.contentloaderdemo
import android.content.Intent
import android.os.Bundle
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import com.erif.contentloaderdemo.example.ActivityBanner
import com.erif.contentloaderdemo.example.ActivityCombine
import com.erif.contentloaderdemo.exa... | 0 | Kotlin | 0 | 4 | 54541f5aa7db9464eec905d0666d91977b9cac5b | 1,614 | ContentLoader | Apache License 2.0 |
src/test/kotlin/tees/data/repository/TeesRepositoryTest.kt | vjgarciag96 | 145,218,650 | false | {"HTML": 165911, "Kotlin": 65812, "Shell": 42} | package tees.data.repository
import io.mockk.every
import io.mockk.mockk
import junit.framework.TestCase.assertEquals
import org.junit.jupiter.api.Test
import tees.data.local.TeesLocalDataSource
import tees.data.local.promotedTees
import tees.data.local.tee
import tees.data.remote.PromotedTeesDto
import tees.data.remo... | 0 | HTML | 0 | 0 | 066c556c830649f1181dd06be5d1606f412e9a73 | 5,299 | kwertee-telegram-bot | MIT License |
idea/idea-gradle/tests/org/jetbrains/kotlin/idea/codeInsight/gradle/MasterPluginVersionGradleImportingTestCase.kt | nskvortsov | 367,097,840 | true | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
/**
* This TestCase implements possibility to test import with different versions of gradle and master
* ver... | 1 | null | 1 | 3 | 58c7aa9937334b7f3a70acca84a9ce59c35ab9d1 | 972 | kotlin | Apache License 2.0 |
src/test/kotlin/de/flapdoodle/io/filetree/diff/samelayout/SyncTest.kt | flapdoodle-oss | 231,620,257 | false | null | package de.flapdoodle.io.filetree.diff.samelayout
import de.flapdoodle.io.filetree.Node
import de.flapdoodle.io.filetree.diff.Action
import de.flapdoodle.photosync.LastModified
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import java.nio.file.P... | 1 | null | 2 | 1 | 2c39e73edb0d1eefd277c1e31d2ed7042cf62029 | 8,312 | photosync | Apache License 2.0 |
src/test/kotlin/de/flapdoodle/io/filetree/diff/samelayout/SyncTest.kt | flapdoodle-oss | 231,620,257 | false | null | package de.flapdoodle.io.filetree.diff.samelayout
import de.flapdoodle.io.filetree.Node
import de.flapdoodle.io.filetree.diff.Action
import de.flapdoodle.photosync.LastModified
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import java.nio.file.P... | 1 | null | 2 | 1 | 2c39e73edb0d1eefd277c1e31d2ed7042cf62029 | 8,312 | photosync | Apache License 2.0 |
app/src/main/java/com/ctech/eaty/repository/NotificationRepository.kt | dbof10 | 116,687,959 | false | null | package com.ctech.eaty.repository
import com.ctech.eaty.entity.Notification
import com.ctech.eaty.network.ProductHuntApi
import com.ctech.eaty.response.NotificationResponse
import com.nytimes.android.external.store3.base.impl.BarCode
import com.nytimes.android.external.store3.base.impl.Store
import io.reactivex.Observ... | 2 | Kotlin | 11 | 49 | 2e3445debaedfea03f9b44ab62744046fe07f1cc | 870 | hunt-android | Apache License 2.0 |
app/common/src/androidMain/kotlin/com/denchic45/studiversity/util/FilesAndroid.kt | denchic45 | 435,895,363 | false | {"Kotlin": 2103689, "Vue": 15083, "JavaScript": 2830, "CSS": 1496, "HTML": 867} | package com.denchic45.studiversity.util
import android.content.ContentUris
import android.content.Context
import android.database.Cursor
import android.net.Uri
import android.os.Environment
import android.provider.DocumentsContract
import android.provider.MediaStore
import android.provider.OpenableColumns
import andro... | 0 | Kotlin | 0 | 7 | 93947301de4c4a9cb6c3d9fa36903f857c50e6c2 | 6,486 | Studiversity | Apache License 2.0 |
core/src/main/kotlin/info/laht/threekt/renderers/shaders/chunk/skinning_pars_vertex.kt | markaren | 196,544,572 | false | null | package info.laht.threekt.renderers.shaders.chunk
internal val __skinning_pars_vertex = """
#ifdef USE_SKINNING
uniform mat4 bindMatrix;
uniform mat4 bindMatrixInverse;
#ifdef BONE_TEXTURE
uniform highp sampler2D boneTexture;
uniform int boneTextureSize;
mat4 getBoneMatrix( const in float i ) {
flo... | 7 | null | 14 | 187 | 8dc6186d777182da6831cf1c79f39ee2d5960cd7 | 1,070 | three.kt | MIT License |
platform/platform-api/src/com/intellij/util/net/HttpConnectionUtils.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.util.net
import com.intellij.openapi.vfs.VfsUtil
import com.intellij.util.io.HttpRequests
import java.io.IOException
import java.net.HttpURLConnection
import java.net.URL
import... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 2,593 | intellij-community | Apache License 2.0 |
app/src/main/java/org/simple/clinic/bloodsugar/entry/BloodSugarEntryUi.kt | simpledotorg | 132,515,649 | false | null | package org.simple.clinic.bloodsugar.entry
import org.simple.clinic.bloodsugar.BloodSugarMeasurementType
import org.simple.clinic.bloodsugar.BloodSugarUnitPreference
import java.time.LocalDate
import java.util.UUID
interface BloodSugarEntryUi {
fun showRemoveButton()
fun hideRemoveButton()
fun showEntryTitle(me... | 13 | null | 73 | 236 | ff699800fbe1bea2ed0492df484777e583c53714 | 863 | simple-android | MIT License |
plugins/kotlin/code-insight/inspections-k2/tests/testData/inspectionsLocal/redundantModalityModifier/redundantFinalFunctionInFinalDerivedClass.kt | ingokegel | 72,937,917 | false | null | abstract class Base {
abstract fun bar()
}
class FinalDerived : Base() {
override <caret>final fun bar() {}
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 118 | intellij-community | Apache License 2.0 |
compiler/frontend/src/org/jetbrains/kotlin/kdoc/psi/impl/KDocTag.kt | zeesh49 | 67,883,175 | true | {"Markdown": 35, "XML": 959, "Ant Build System": 52, "Ignore List": 8, "Git Attributes": 1, "Kotlin": 26923, "Java": 4721, "Protocol Buffer": 7, "Text": 5622, "JavaScript": 156, "JAR Manifest": 3, "Roff": 191, "Roff Manpage": 19, "AsciiDoc": 1, "INI": 40, "HTML": 250, "Groovy": 23, "Java Properties": 14, "Gradle": 145,... | /*
* Copyright 2010-2015 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 | Java | 0 | 1 | 261a30029907fedcecbe760aec97021d85a9ba9a | 4,953 | kotlin | Apache License 2.0 |
kotlin/Ktor1/app/src/main/java/com/example/ktor1/MainActivity.kt | ETS-Android5 | 497,632,735 | true | {"INI": 1, "Markdown": 12, "Java Properties": 192, "Shell": 96, "Batchfile": 96, "Proguard": 96, "Kotlin": 141, "CMake": 1, "C++": 1, "Java": 444} | package com.example.ktor1
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.ktor1.databinding.ActivityMainBinding
import com.google.android.material.snackbar.Snackbar
import com.google.gson.Gson
import dagger.hilt.android.AndroidEntryPoint
import io.ktor.client.call.*
import i... | 0 | Java | 0 | 0 | 5eec56df7fc3625b48baed602df9d795e16152f4 | 3,601 | Android-Examples | MIT License |
platform/lang-impl/src/com/intellij/ide/projectView/actions/ProjectViewExpandAllAction.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.ide.projectView.actions
import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSyst... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 1,418 | intellij-community | Apache License 2.0 |
cli/src/main/java/io/boxtape/cli/core/ansible/Task.kt | martypitt | 40,046,986 | false | {"Maven POM": 4, "Text": 2, "Ignore List": 1, "EditorConfig": 1, "YAML": 3, "Markdown": 1, "Java": 13, "Kotlin": 25, "XML": 1} | package io.boxtape.core.ansible
import com.fasterxml.jackson.databind.annotation.JsonSerialize
import io.boxtape.yaml.TaskWriter
@JsonSerialize(using = TaskWriter::class )
public data class Task(val name:String, val args:List<Pair<String, String>>)
| 1 | null | 1 | 1 | 4fd8ea2995dd467bc93f5f512da891f88a3dc8d7 | 253 | boxtape | Apache License 2.0 |
core/src/main/kotlin/io/github/oleksivio/tl/kbot/core/controller/annotations/parser/producer/ArgCheckerProducer.kt | oleksivio | 145,889,451 | false | null | package io.github.oleksivio.tl.kbot.core.controller.annotations.parser.producer
import io.github.oleksivio.tl.kbot.core.controller.annotations.parser.filter.FilterParser
import io.github.oleksivio.tl.kbot.core.controller.annotations.parser.finder.Finder
import io.github.oleksivio.tl.kbot.core.controller.handler.check.... | 0 | null | 0 | 5 | d38b5be33c5217a3f91e44394995f112fd6b0ab9 | 1,186 | tl-kbot | Apache License 2.0 |
app/src/main/java/com/stone/templateapp/module/view/StoneSeekBar.kt | xiaqu-stone | 141,563,896 | false | {"Gradle": 6, "Java Properties": 2, "Text": 1, "Ignore List": 2, "Markdown": 1, "Proguard": 1, "Kotlin": 59, "XML": 39, "Java": 7, "AIDL": 3} | package com.stone.templateapp.module.view
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.FrameLayout
import android.widget.SeekBar
import com.stone.commonutils.ctx
import com.stone.templateapp.R
import kotlinx.android.synthetic.main.view_stone_s... | 0 | Kotlin | 0 | 0 | c3bb65611d93aecea776adb8a2a95606b154d7f7 | 2,367 | StoneDemo | Apache License 2.0 |
dd-sdk-android-core/src/main/kotlin/com/datadog/android/api/context/DeviceType.kt | DataDog | 219,536,756 | false | {"Kotlin": 9121111, "Java": 1179237, "C": 79303, "Shell": 63055, "C++": 32351, "Python": 5556, "CMake": 2000} | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.api.context
/**
* Device type.
*/
enum... | 44 | Kotlin | 60 | 151 | d7e640cf6440ab150c2bbfbac261e09b27e258f4 | 397 | dd-sdk-android | Apache License 2.0 |
src/main/java/br/com/sam/coreapi/commands.kt | Samuel-Ricardo | 745,659,766 | false | {"Batchfile": 1, "Shell": 1, "Maven POM": 1, "Text": 1, "Ignore List": 1, "Markdown": 1, "INI": 1, "Java": 6, "Kotlin": 5, "Java Properties": 1, "YAML": 2} | package br.com.sam.coreapi
import org.axonframework.commandhandling.RoutingKey
import org.axonframework.modelling.command.TargetAggregateIdentifier
import java.util.UUID
class CreateFoodCartCommand (
@RoutingKey val foodCartId: UUID
)
data class SelectProductCommand (
@TargetAggregateIdentifier
val food... | 0 | Java | 1 | 0 | c66b147046bde9253abdb863f018b198d27c3a75 | 615 | cajuzinho | MIT License |
plugin-util-lib/src/main/com/vladsch/plugin/util/ui/highlight/EditorRangeHighlighterSet.kt | vsch | 160,709,994 | false | {"Java": 452983, "Kotlin": 353180} | /*
* Copyright (c) 2015-2019 <NAME> <<EMAIL>>, all rights reserved.
*
* This code is private property of the copyright holder and cannot be used without
* having obtained a license or prior written permission of the copyright holder.
*
* Unless required by applicable law or agreed to in writing,
* software distr... | 1 | Java | 1 | 1 | 6ec983e17b875ec2ad9f1b4c2516789fa51f0d9b | 4,119 | plugin-util | Apache License 2.0 |
keel-web/src/main/kotlin/com/netflix/spinnaker/keel/apidocs/MapPropertyCustomizer.kt | sullis | 255,020,208 | true | {"Kotlin": 1631337, "Java": 9170, "Shell": 1471} | package com.netflix.spinnaker.keel.apidocs
import com.fasterxml.jackson.databind.type.MapType
import io.swagger.v3.core.converter.AnnotatedType
import io.swagger.v3.oas.models.media.Schema
import org.springdoc.core.customizers.PropertyCustomizer
import org.springframework.stereotype.Component
@Component
class MapProp... | 0 | null | 0 | 0 | e71efe76803808e95e0ea555e2245b2e0d66a7d0 | 817 | keel | Apache License 2.0 |
Yukari/src/main/java/shibafu/yukari/filter/source/FilterSource.kt | shibafu528 | 134,973,177 | false | {"Git Config": 1, "Gradle": 7, "Java Properties": 2, "Shell": 1, "Text": 3, "Ignore List": 6, "Batchfile": 1, "Markdown": 3, "Kotlin": 144, "Proguard": 1, "XML": 167, "Java": 150, "HTML": 1, "Ruby": 1} | package shibafu.yukari.filter.source
import android.content.Context
import shibafu.yukari.filter.sexp.SNode
import shibafu.yukari.filter.sexp.ValueNode
import shibafu.yukari.linkage.ProviderStream
import shibafu.yukari.linkage.RestQuery
import shibafu.yukari.database.AuthUserRecord
/**
* フィルタシステムにおける抽出ソースを表す抽象クラスです。... | 42 | Java | 2 | 60 | fc7ae24272ce582df536e06f2a981fa3cfd6b521 | 2,212 | Yukari | Apache License 2.0 |
app/src/main/java/tw/firemaples/onscreenocr/state/OverlayState.kt | pietrocmcosta | 219,829,361 | true | {"Kotlin": 169763, "Java": 160325, "JavaScript": 3060, "Shell": 2536, "HTML": 420} | package tw.firemaples.onscreenocr.state
import tw.firemaples.onscreenocr.StateManager
abstract class OverlayState : BaseState() {
override fun clear(manager: StateManager) {
super.clear(manager)
manager.enterState(ClearingState)
}
} | 0 | null | 0 | 0 | f4e3cfbe9f420a9762b99a65b647f0b95546fb5d | 258 | EverTranslator | Apache License 2.0 |
src/main/kotlin/pl/edu/agh/climant/bytecode/generation/ClassGenerator.kt | Adrjanjan | 251,428,496 | false | null | package pl.edu.agh.climant.bytecode.generation
import org.objectweb.asm.ClassWriter
import org.objectweb.asm.Opcodes
import pl.edu.agh.climant.bytecode.generation.method.ConstructorGenerator
import pl.edu.agh.climant.bytecode.generation.method.MethodGenerator
import pl.edu.agh.climant.domain.classmembers.ClassDeclarat... | 0 | Kotlin | 0 | 1 | 4ac998abdcde24ea19dbc6fa3f1fff44a0a88d54 | 1,464 | ClimAnt | Apache License 2.0 |
src/i_introduction/_2_Default_And_Named_Params/DefaultAndNamedParamsUsage.kt | MichaelEvans | 39,866,454 | false | null | package i_introduction._2_Default_And_Named_Params
import util.TODO
import i_introduction._1_Functions.task1
fun todoTask2_2() = TODO(
"""
Task 2(2).
Implement the same logic as in 'task1' again through the library method 'joinToString()'.
Change values of some arguments of 'joinToString'.... | 0 | Kotlin | 0 | 0 | 96542db68e90af3ecd2bb3473199c8ff4385a00f | 537 | kotlin-koans | MIT License |
tmp/arrays/youTrackTests/4571.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-35896
interface B<E, SC>
class Inv<T>
class Foo<T>(x: Int): B<T, Inv<T>>
fun <T1, T2, S> bar(list: T2, fn: (S) -> B<T1, T2>) {}
fun <T> foo(list: Inv<T>) {
bar(list, ::Foo)
}
| 1 | null | 8 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 204 | bbfgradle | Apache License 2.0 |
tmp/arrays/youTrackTests/4571.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-35896
interface B<E, SC>
class Inv<T>
class Foo<T>(x: Int): B<T, Inv<T>>
fun <T1, T2, S> bar(list: T2, fn: (S) -> B<T1, T2>) {}
fun <T> foo(list: Inv<T>) {
bar(list, ::Foo)
}
| 1 | null | 8 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 204 | bbfgradle | Apache License 2.0 |
stream-chat-android-client/src/main/java/io/getstream/chat/android/client/plugin/listeners/QueryMembersListener.kt | GetStream | 177,873,527 | false | {"Kotlin": 8578375, "MDX": 2150736, "Java": 271477, "JavaScript": 6737, "Shell": 5229} | /*
* Copyright (c) 2014-2022 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-chat-android/blob/main/LICENSE
*
* Unless required by a... | 24 | Kotlin | 273 | 1,451 | 8e46f46a68810d8086c48a88f0fff29faa2629eb | 1,808 | stream-chat-android | FSF All Permissive License |
domain/src/main/java/ru/cherryperry/amiami/domain/model/Filter.kt | CherryPerry | 83,009,764 | false | null | package ru.cherryperry.amiami.domain.model
data class Filter(
val minPrice: Int = 0,
val maxPrice: Int = Int.MAX_VALUE,
val textFilter: String = ""
) {
companion object {
const val LIMIT = 30000
}
val skipAll = minPrice == 0 && maxPrice == Int.MAX_VALUE && textFilter.isEmpty()
in... | 6 | Kotlin | 2 | 13 | 6cda5f48d33a31ab0d23814ad36fa525601892f1 | 641 | Amiami-android-app | Apache License 2.0 |
weather-api/src/main/java/com/thewizrd/weather_api/aqicn/Data.kt | SimpleAppProjects | 82,603,731 | false | null | package com.thewizrd.weather_api.aqicn
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class Data(
@Json(name = "iaqi")
var iaqi: Iaqi? = null,
@Json(name = "debug")
var debug: Debug? = null,
@Json(name = "city")
var city: City? = nu... | 0 | null | 8 | 37 | 56ddf09611d786e3bb2b802bdbcbbec648f0df9a | 706 | SimpleWeather-Android | Apache License 2.0 |
messages/src/commonMain/kotlin/money/terra/message/wasm.kt | terra-money | 412,334,818 | false | null | package money.terra.message
import kotlinx.serialization.Contextual
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.builtins.LongAsStringSerializer
import kotlinx.serialization.json.JsonObject
import money.terra.model.Coin
import money.terra.model.EnumMess... | 0 | Kotlin | 9 | 7 | bf484d19c0a87ff310e4d56241427375544aab56 | 2,152 | terra.kt | Apache License 2.0 |
app/src/main/java/com/devspace/myapplication/EasyRecipesApp.kt | marcoaferreira | 869,695,095 | false | {"Kotlin": 42462} | package com.devspace.myapplication
import androidx.compose.runtime.Composable
import androidx.navigation.NavType
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import androidx.navigation.navArgument
import com.devspace.m... | 0 | Kotlin | 0 | 0 | 2b8d6ab6eceed4db863ab7db2f02e69bce31198f | 1,712 | EasyRecipes | MIT License |
app/src/main/java/com/shadowshiftstudio/jobcentre/data/unemployed/api_request/UnemployedRequest.kt | DarlingInSteam | 688,039,830 | false | {"Kotlin": 125644} | package com.shadowshiftstudio.jobcentre.data.unemployed.api_request
import android.util.Log
import com.shadowshiftstudio.jobcentre.data.authentication.client.AuthenticationClient
import com.shadowshiftstudio.jobcentre.data.employer.client.EmployerClient
import com.shadowshiftstudio.jobcentre.domain.unemployed.reposito... | 16 | Kotlin | 0 | 0 | f57d2732623f498117c1ce9285b4286edfff7f7e | 2,031 | job-centre-frontend | Apache License 2.0 |
http4k-client-okhttp/src/main/kotlin/org/http4k/client/OkHttp.kt | k0zakinio | 108,542,664 | true | {"Kotlin": 728486, "JavaScript": 133258, "Java": 49492, "Shell": 6016, "HTML": 2067, "CSS": 568} | package org.http4k.client
import okhttp3.OkHttpClient
import okhttp3.RequestBody.create
import okhttp3.internal.http.HttpMethod.permitsRequestBody
import org.http4k.core.BodyMode
import org.http4k.core.HttpHandler
import org.http4k.core.Request
import org.http4k.core.Response
import org.http4k.core.Status
import java.... | 0 | Kotlin | 0 | 0 | b1bd42de9b0dfe8ac9fbda3d5998353522295759 | 1,621 | http4k | Apache License 2.0 |
app/src/main/java/com/example/listacompras/presentation/adapter/ConfigurationAdapter.kt | Fidelesju | 761,296,623 | false | {"Kotlin": 84881} | package com.example.listacompras.presentation.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
im... | 0 | Kotlin | 0 | 0 | 763b8e6a0768fe9d6aa9d78dc46b7d108b5dbe64 | 2,091 | lista-de-compras | The Unlicense |
database/src/main/java/be/hogent/faith/database/common/EncryptedDetailEntity.kt | hydrolythe | 353,694,404 | false | null | package be.hogent.faith.database.common
import be.hogent.faith.service.encryption.EncryptedString
data class EncryptedDetailEntity(
var file: EncryptedString = "",
var title: EncryptedString = "",
val uuid: EncryptedString = "",
val type: EncryptedString = "",
val dateTime: EncryptedString = "",
... | 0 | Kotlin | 0 | 0 | 14c6aec4b3c0a42bc73a7f779964d166fffeea20 | 410 | FAITHAndroid | The Unlicense |
src/com/blogspot/jesfre/kotlin/stringarraysranges/strings/templates/OnSameLine.kt | jesfre | 175,801,113 | false | null | package com.blogspot.jesfre.kotlin.stringarraysranges.strings.templates
/*
Print two numbers on the same line
Write a program that reads two integer numbers and prints them on the same line separated by a space.
Please, use string templates to solve the problem.
Sample Input 1:
8
11
Sample Output 1:
8 11
*/
impor... | 0 | Kotlin | 0 | 1 | 6b6d9ec830c45c76efdfc9081d62e3854b25f2d9 | 499 | Hyperskill-Kotlin-Solutions | The Unlicense |
core/src/main/kotlin/notion/api/v1/request/databases/ListDatabasesRequest.kt | seratch | 367,397,489 | false | null | package notion.api.v1.request.databases
import notion.api.v1.request.common.Pagination
// var is intentional here (for the easiness in other JVM languages)
data class ListDatabasesRequest(
override var startCursor: String? = null,
override var pageSize: Int? = null,
) : Pagination
| 10 | Kotlin | 18 | 96 | f2ce512e3d7d3000cbe20e184435437087f7e13f | 292 | notion-sdk-jvm | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.