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/no/nav/pensjon/opptjening/omsorgsopptjening/bestem/pensjonsopptjening/oppgave/model/OppgaveProcessingThread.kt | navikt | 593,529,397 | false | {"Kotlin": 492403, "Dockerfile": 97} | package no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.oppgave.model
import io.getunleash.Unleash
import jakarta.annotation.PostConstruct
import no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.metrics.MicrometerMetrics
import no.nav.pensjon.opptjening.omsorgsopptjening.best... | 1 | Kotlin | 0 | 0 | 3617524cb8592ae8f6dbe17556ca4b10ef21be86 | 1,745 | omsorgsopptjening-bestem-pensjonsopptjening | MIT License |
back/booking-hotel/src/main/kotlin/com/tcc/bookinghotel/application/routers/specifications/CustomerRegistrationExceptionSpecification.kt | marcelop3251 | 485,967,635 | false | null | package com.tcc.bookinghotel.application.routers.specifications
import com.tcc.bookinghotel.application.dto.HttpErrorResponse
import com.tcc.bookinghotel.application.routers.ExceptionHandlerSpecification
import com.tcc.bookinghotel.domain.exception.BaseException
import com.tcc.bookinghotel.domain.exception.CustomerReg... | 0 | Kotlin | 0 | 0 | 9ad938f00caf6f9ff8edde4439d6f5ac0d940f41 | 1,114 | booking-hotel | Apache License 2.0 |
app/src/main/java/org/wildaid/ofish/ui/crew/CrewAdapter.kt | WildAid | 268,621,410 | false | null | package org.wildaid.ofish.ui.crew
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import org.wildaid.ofish.R
import org.wildaid.ofish.databinding.ItemCrewMemberBinding
import org.wild... | 9 | null | 26 | 21 | 06e067641a38c38f42882d4e4a4f50cb007de41d | 4,751 | o-fish-android | Apache License 2.0 |
platform/src/main/kotlin/com/samsung/healthcare/platform/adapter/web/project/InLabVisitHandler.kt | S-HealthStack | 520,365,362 | false | {"Kotlin": 894766, "Dockerfile": 1358, "ANTLR": 1066} | package com.samsung.healthcare.platform.adapter.web.project
import com.samsung.healthcare.platform.adapter.web.common.getInLabVisitId
import com.samsung.healthcare.platform.adapter.web.common.getProjectId
import com.samsung.healthcare.platform.application.port.input.project.CreateInLabVisitUseCase
import com.samsung.h... | 2 | Kotlin | 7 | 28 | b7e7d0b4cc8d1f1123c9f3bd08fa5cc66fbc9920 | 2,431 | backend-system | Apache License 2.0 |
api/common/src/main/kotlin/uk/co/baconi/oauth/api/common/client/ClientConfigurationRepository.kt | beercan1989 | 345,334,044 | false | {"Kotlin": 458462, "TypeScript": 5223, "Dockerfile": 4497, "HTML": 569} | package uk.co.baconi.oauth.api.common.client
import com.typesafe.config.ConfigFactory
import io.ktor.server.config.*
import uk.co.baconi.oauth.api.common.grant.GrantType
import uk.co.baconi.oauth.api.common.scope.ScopeRepository
class ClientConfigurationRepository(scopeRepository: ScopeRepository) {
private val ... | 2 | Kotlin | 0 | 0 | 2f1f400601a49dfd0488ddd54cf6ab95683633b0 | 2,542 | oauth-api | Apache License 2.0 |
plot-core/src/commonMain/kotlin/org/jetbrains/letsPlot/core/commons/time/interval/TimeInterval.kt | JetBrains | 176,771,727 | false | null | /*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.plot.common.time.interval
import jetbrains.datalore.base.datetime.Duration
import jetbrains.datalore.plot.common.data.DataType
import jetbrains.dat... | 97 | Kotlin | 47 | 889 | c5c66ceddc839bec79b041c06677a6ad5f54e416 | 2,633 | lets-plot | MIT License |
common/src/main/kotlin/entity/DiscordActivity.kt | kordlib | 202,856,399 | false | null | package dev.kord.common.entity
import dev.kord.common.entity.optional.Optional
import dev.kord.common.entity.optional.OptionalBoolean
import dev.kord.common.entity.optional.OptionalLong
import dev.kord.common.entity.optional.OptionalSnowflake
import kotlinx.serialization.*
import kotlinx.serialization.builtins.ListSer... | 35 | null | 58 | 559 | 06e90d2db5b49ac8c4235184ef0dbb7de82ab2f7 | 5,299 | kord | MIT License |
jenjin-demo/src/com/binarymonks/jj/demo/demos/Pong.kt | lgwillmore | 79,716,845 | false | {"Kotlin": 419262, "Java": 381851, "OpenEdge ABL": 8978, "GLSL": 3774} | package com.binarymonks.jj.demo.demos
import com.badlogic.gdx.Input
import com.badlogic.gdx.math.Vector2
import com.badlogic.gdx.physics.box2d.BodyDef
import com.badlogic.gdx.physics.box2d.Contact
import com.badlogic.gdx.physics.box2d.Fixture
import com.badlogic.gdx.scenes.scene2d.InputEvent
import com.badlogic.gdx.sc... | 4 | Kotlin | 1 | 7 | 5b958f6b9a10eb342fb3fa190154029723d3593d | 9,857 | jenjin | Apache License 2.0 |
app/src/main/java/kittoku/mvc/extension/Channel.kt | kittoku | 401,675,193 | false | null | package kittoku.mvc.extension
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.yield
internal suspend fun <T> Channel<T>.clear() {
while (true) {
yield()
poll() ?: break
}
}
| 5 | Kotlin | 11 | 33 | 9f8be9802629684d0eb68fedb9f859e9df7339e2 | 221 | Minimum-VPN-Client-for-SoftEther-VPN | Apache License 2.0 |
plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/intern/layer/geom/BandAesthetics.kt | JetBrains | 172,682,391 | false | {"Kotlin": 1563280, "HTML": 24175, "Shell": 73} | package org.jetbrains.letsPlot.intern.layer.geom
import org.jetbrains.letsPlot.intern.Options
import org.jetbrains.letsPlot.intern.OptionsCapsule
interface BandAesthetics : OptionsCapsule {
val xmin: Any?
val xmax: Any?
val ymin: Any?
val ymax: Any?
val alpha: Any?
val color: Any?
val fill... | 14 | Kotlin | 36 | 433 | f6edab1a67783d14e2378675f065ef7111bdc1a0 | 642 | lets-plot-kotlin | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/welcometoprison/WelcomeToPrisonApi.kt | ministryofjustice | 397,318,042 | false | null | package uk.gov.justice.digital.hmpps.welcometoprison
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication()
class WelcomePeopleToPrisonApi
fun main(args: Array<String>) {
runApplication<WelcomePeopleToPrisonApi>(*args)
}
| 1 | Kotlin | 0 | 0 | 5d64b99e32d10c8f1913d52e59392cd3057bd0d2 | 311 | hmpps-welcome-people-into-prison-api | MIT License |
inspektify/src/commonMain/kotlin/sp/bvantur/inspektify/ktor/InspektifyNetworkTrafficLogger.kt | BVantur | 844,048,160 | false | {"Kotlin": 128813, "Swift": 1303} | package sp.bvantur.inspektify.ktor
import io.ktor.http.Url
import sp.bvantur.inspektify.ktor.data.model.NetworkTraffic
import sp.bvantur.inspektify.ktor.data.model.NetworkTrafficHeader
internal interface InspektifyNetworkTrafficLogger {
fun configureLogger(logLevel: LogLevel)
fun logRequest(networkTraffic: Ne... | 7 | Kotlin | 1 | 43 | 48fc4e6004bef18bbdaab4007a235b084ee5ea38 | 3,216 | inspektify | MIT License |
pensjon-brevbaker/src/test/kotlin/no/nav/pensjon/etterlatte/fixtures/OMSRevurdering.kt | navikt | 375,334,697 | false | null | package no.nav.pensjon.etterlatte.fixtures
import no.nav.pensjon.brevbaker.api.model.*
import no.nav.pensjon.etterlatte.maler.*
import no.nav.pensjon.etterlatte.maler.omstillingsstoenad.revurdering.OMSRevurderingEndringDTO
import java.time.LocalDate
fun createOMSRevurderingEndringDTO() =
OMSRevurderingEndringDTO(... | 5 | null | 3 | 1 | ff40983025d7fea346050104b5b236b47eefba04 | 3,257 | pensjonsbrev | MIT License |
domain/src/main/java/app/delish/domain/usecases/recipes/bookmark/GetSavedRecipesUseCase.kt | Elbehiry | 349,764,209 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 60 | 399 | 2e7c8db43976e14d6967c610a2337b56c5016fb5 | 1,193 | Delish | Apache License 2.0 |
SingleModuleApp/app/src/main/java/com/github/yamamotoj/singlemoduleapp/package76/Foo07677.kt | yamamotoj | 163,851,411 | false | {"Text": 1, "Ignore List": 30, "Markdown": 1, "Gradle": 34, "Java Properties": 11, "Shell": 6, "Batchfile": 6, "Proguard": 22, "Kotlin": 36021, "XML": 93, "INI": 1, "Java": 32, "Python": 2} | package com.github.yamamotoj.module4.package76
class Foo07677 {
fun method0() {
Foo07676().method5()
}
fun method1() {
method0()
}
fun method2() {
method1()
}
fun method3() {
method2()
}
fun method4() {
method3()
}
fun method5() {... | 0 | Kotlin | 0 | 9 | 2a771697dfebca9201f6df5ef8441578b5102641 | 347 | android_multi_module_experiment | Apache License 2.0 |
app/src/main/java/lfp/support/adapter/3.Adapter-数据差分器.kt | ftmtshuashua | 158,322,500 | false | null | package lfp.support.adapter
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.acap.adapter.BaseViewHolder
import com.acap.adapter.m... | 1 | null | 1 | 2 | 94ada930cfe635cd4bf0153dcf7387c6f0c3baf9 | 3,046 | BaseRecyclerViewAdapter | Apache License 2.0 |
navigation/navigation-safe-args-generator/src/main/kotlin/androidx/navigation/safe/args/generator/models/ResReference.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2018 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 | 18 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 884 | androidx | Apache License 2.0 |
kotlin/731.My Calendar II(我的日程安排表 II).kt | learningtheory | 141,790,045 | false | {"Python": 4025652, "C++": 1999023, "Java": 1995266, "JavaScript": 1990554, "C": 1979022, "Ruby": 1970980, "Scala": 1925110, "Kotlin": 1917691, "Go": 1898079, "Swift": 1827809, "HTML": 124958, "Shell": 7944} | /**
<p>
Implement a <code>MyCalendarTwo</code> class to store your events. A new event can be added if adding the event will not cause a <b>triple</b> booking.
</p><p>
Your class will have one method, <code>book(int start, int end)</code>. Formally, this represents a booking on the half open interval <code>[start, end... | 0 | Python | 1 | 3 | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | 5,166 | leetcode | MIT License |
data/src/commonMain/kotlin/io/gaitian/telekot/data/model/ChatMemberMember.kt | galik-ya | 668,662,208 | false | null | package io.gaitian.telekot.data.model
/**
* Represents a chat member that has no additional privileges or restrictions
*
* @see <a href="https://core.telegram.org/bots/api#chatmembermember">Telegram Bot API | ChatMemberMember</a>
*/
data class ChatMemberMember(
override val user: User
) : ChatMember {
ov... | 0 | Kotlin | 0 | 0 | fb8f376eb9f2322622aec3a4aa305fcf169a2e08 | 367 | telekot | Apache License 2.0 |
server/src/test/kotlin/io/github/alessandrojean/tankobon/infrastructure/jooq/StoreDaoTest.kt | alessandrojean | 609,405,137 | false | null | package io.github.alessandrojean.tankobon.infrastructure.jooq
import io.github.alessandrojean.tankobon.domain.model.Store
import io.github.alessandrojean.tankobon.domain.model.TankobonUser
import io.github.alessandrojean.tankobon.domain.model.makeLibrary
import io.github.alessandrojean.tankobon.domain.persistence.Libr... | 0 | Kotlin | 0 | 1 | cb28b68c0b6f3b1de7f77450122a609295396c28 | 6,134 | tankobon | MIT License |
server/src/test/kotlin/io/github/alessandrojean/tankobon/infrastructure/jooq/StoreDaoTest.kt | alessandrojean | 609,405,137 | false | null | package io.github.alessandrojean.tankobon.infrastructure.jooq
import io.github.alessandrojean.tankobon.domain.model.Store
import io.github.alessandrojean.tankobon.domain.model.TankobonUser
import io.github.alessandrojean.tankobon.domain.model.makeLibrary
import io.github.alessandrojean.tankobon.domain.persistence.Libr... | 0 | Kotlin | 0 | 1 | cb28b68c0b6f3b1de7f77450122a609295396c28 | 6,134 | tankobon | MIT License |
app/src/main/java/com/sqz/writingboard/ui/WritingBoardLayout.kt | Z-Siqi | 685,058,978 | false | {"Kotlin": 81805} | package com.sqz.writingboard.ui
import android.os.Handler
import android.os.Looper
import android.util.Log
import androidx.compose.foundation.border
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import a... | 0 | Kotlin | 1 | 3 | 6917a7ab4ccd353f634be55b30d1a0fa04f0b9c1 | 11,553 | WritingBoard | MIT License |
azure-communication-ui/calling/src/main/java/com/azure/android/communication/ui/calling/presentation/fragment/calling/controlbar/ControlBarView.kt | Azure | 429,521,705 | false | {"Kotlin": 2713288, "Java": 192826, "Shell": 3964, "HTML": 1856} | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.android.communication.ui.calling.presentation.fragment.calling.controlbar
import android.content.Context
import android.content.res.Configuration
import android.util.AttributeSet
import android.view.View
... | 7 | Kotlin | 28 | 24 | d7e46c6063e8e9d3ed548acff2465b5d0f57b1b2 | 11,678 | communication-ui-library-android | MIT License |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bold/Flash1.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Compa... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 1,949 | VuesaxIcons | MIT License |
app/src/test/java/com/android/moneybox/TestSchedulerProvider.kt | mobileappconsultant | 318,642,914 | false | null | package com.android.moneybox
import com.android.moneybox.domain.SchedulerProvider
class TestSchedulerProvider :
SchedulerProvider {
override fun ui() = io.reactivex.rxjava3.schedulers.Schedulers.trampoline()
override fun computation() = io.reactivex.rxjava3.schedulers.Schedulers.trampoline()
override ... | 0 | Kotlin | 0 | 0 | a505c1297e6ed738ae8e4464ac6682b31f0573b3 | 391 | moneyboxtest | MIT License |
src/main/kotlin/pub/edholm/irc2rss/TLBot.kt | Edholm | 103,282,449 | false | null | package pub.edholm.irc2rss
import org.pircbotx.PircBotX
import org.springframework.scheduling.annotation.Async
import org.springframework.stereotype.Component
import pub.edholm.irc2rss.irc.AnnounceListener
import javax.net.SocketFactory
import javax.net.ssl.SSLSocketFactory
@Component
class TLBot(announceListener: An... | 1 | Kotlin | 0 | 1 | 79a2dd1e36c1154a56b12cceab61044e32a35aca | 1,617 | irc2rss | The Unlicense |
server/src/main/kotlin/delta/codecharacter/server/logic/verdict/VerdictAlgorithm.kt | delta | 455,817,943 | false | null | package delta.codecharacter.server.logic.verdict
import delta.codecharacter.server.match.MatchVerdictEnum
interface VerdictAlgorithm {
fun getVerdict(
player1HasErrors: Boolean,
player1CoinsUsed: Int,
player1Destruction: Double,
player2HasErrors: Boolean,
player2CoinsUsed: ... | 2 | Kotlin | 3 | 5 | c00c0286a7a854a45db9c0418de6ef40e4233fe9 | 386 | codecharacter-server-2022 | MIT License |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/DirectionHorizontal.kt | walter-juan | 868,046,028 | false | {"Kotlin": 20416825} | package com.woowla.compose.icon.collections.tabler.tabler.outline
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.vector.ImageVector
import androidx.compose.ui.graphics.vector... | 0 | Kotlin | 0 | 1 | b037895588c2f62d069c724abe624b67c0889bf9 | 1,961 | compose-icon-collections | MIT License |
src/test/kotlin/no/nav/sokos/oppdrag/oppdragsinfo/api/OppdragsInfoApiTest.kt | navikt | 796,729,102 | false | {"Kotlin": 195562, "Shell": 2299, "Dockerfile": 593} | package no.nav.sokos.oppdrag.oppdragsinfo.api
import com.atlassian.oai.validator.restassured.OpenApiValidationFilter
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.collections.shouldHaveSize
import io.kotest.matchers.shouldBe
import io.ktor.http.HttpHeaders
import io.ktor.http.HttpStatusCode
import... | 2 | Kotlin | 0 | 2 | 5484bb7e7e57924d51bcff2b66974f719d779c57 | 25,940 | sokos-oppdrag | MIT License |
app/src/main/java/com/revolgenx/anilib/ui/view/airing/AiringEpisodeView.kt | AniLibApp | 244,410,204 | false | {"Kotlin": 1593083, "Shell": 52} | package com.revolgenx.anilib.ui.view.airing
import android.content.Context
import android.util.AttributeSet
import android.view.Gravity
import android.view.View
import android.widget.LinearLayout
import com.pranavpandey.android.dynamic.support.widget.DynamicLinearLayout
import com.pranavpandey.android.dynamic.support.... | 36 | Kotlin | 3 | 76 | b3caec5c00779c878e4cf22fb7d2034aefbeee54 | 4,485 | AniLib | Apache License 2.0 |
android-compose/koin-androidx-compose/src/main/java/org/koin/androidx/compose/ViewModelComposeExt.kt | vitaviva | 385,180,189 | false | null | /*
* Copyright 2017-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 0 | null | 1 | 1 | 2ca2899cd644b3df927153e6e447f25137a9ebb0 | 2,092 | koin | Apache License 2.0 |
engine/src/main/kotlin/io/rsbox/engine/net/game/impl/message/WindowStatusMessage.kt | Rune-Status | 204,377,839 | false | null | package io.rsbox.engine.net.game.impl.message
import io.rsbox.engine.net.game.Message
/**
* @author Graviton #1697
*/
class WindowStatusMessage(mode : Int,width : Int,height : Int) : Message | 0 | Kotlin | 1 | 1 | 5a30213d4528554c7b544cecc145465294f292eb | 195 | rsbox-rsbox | MIT License |
geary-core/src/main/kotlin/com/mineinabyss/geary/ecs/prefab/PersistingPrefabs.kt | MineInAbyss | 306,093,350 | false | null | package com.mineinabyss.geary.ecs.prefab
public data class PersistingPrefabs(
val prefabs: Set<PrefabKey>
)
| 16 | Kotlin | 8 | 12 | ea73cc17ce9547ffbbb1b645793772f987f61490 | 113 | Geary | MIT License |
app/src/main/java/com/chen/newsplash/useractivity/fragments/CollectionFragment.kt | chenyaoyang | 199,146,520 | false | null | package com.chen.newsplash.useractivity.fragments
import android.app.ActivityOptions
import android.content.Intent
import android.os.Bundle
import com.chen.newsplash.R
import com.chen.newsplash.collectionactivity.CollectionActicity
import com.chen.newsplash.mainactivity.adapter.CollectionItem
import com.chen.newsplash... | 0 | Kotlin | 0 | 0 | 84eac27555879262a2f7abb9dfd4e678f3fc7d8f | 4,224 | NewSplash | Apache License 2.0 |
oppgave/infrastructure/src/main/kotlin/no/nav/su/se/bakover/oppgave/infrastructure/OppgaveHendelsePostgresRepo.kt | navikt | 227,366,088 | false | {"Kotlin": 9119465, "Shell": 4369, "TSQL": 1233, "Dockerfile": 800} | package no.nav.su.se.bakover.oppgave.infrastructure
import no.nav.su.se.bakover.common.infrastructure.persistence.DbMetrics
import no.nav.su.se.bakover.common.infrastructure.persistence.PostgresSessionContext.Companion.withOptionalSession
import no.nav.su.se.bakover.common.infrastructure.persistence.hent
import no.nav... | 5 | Kotlin | 1 | 1 | 738dc3bc4685d2968a7c217daf4159cfec80fadd | 2,701 | su-se-bakover | MIT License |
common/src/commonMain/kotlin/com/teewhy/food2forkkmm/domain/mapper/RecipeDataToDomainMapper.kt | teewhydope | 509,855,309 | false | null | package com.teewhy.food2forkkmm.domain.mapper
import cc.popkorn.annotations.Injectable
import cc.popkorn.core.Scope
import com.teewhy.food2forkkmm.base.BaseDataToDomainMapper
import com.teewhy.food2forkkmm.data.recipedetail.model.RecipeDataModel
import com.teewhy.food2forkkmm.domain.model.RecipeDomainModel
@Injectabl... | 0 | Kotlin | 0 | 0 | bb21a8d22258a3ae4d6ecb77002d80d57dd36d74 | 911 | Food2ForkKMM-Revised | MIT License |
jsontree/src/commonTest/kotlin/com/sebastianneubauer/jsontree/TestData.kt | snappdevelopment | 617,872,360 | false | null | package com.sebastianneubauer.jsontree
internal val nestedJson = """
{
"array": [
[
{
"string": "aString"
}
],
[
42,
52
]
]
}
""".trimIndent()
internal val nested... | 9 | null | 5 | 78 | 34352faee43b96eac3dfb57ac62678f36316ea57 | 1,424 | JsonTree | Apache License 2.0 |
models/src/main/java/com/vimeo/networking2/enums/SpatialProjectionType.kt | vimeo | 41,306,732 | false | null | package com.vimeo.networking2.enums
/**
* The type of video projection being used for a 360 video.
*/
enum class SpatialProjectionType(override val value: String?) : StringValue {
/**
* The spatial projection is cubical.
*/
CUBICAL("cubical"),
/**
* The spatial projection is cylindrical.... | 21 | null | 52 | 123 | e4f31d4fa144756d576101b3a82120657e9e8a51 | 719 | vimeo-networking-java | MIT License |
demo/src/main/java/eu/kevin/demo/main/entities/InitiateDonationRequest.kt | getkevin | 375,151,388 | false | null | package eu.kevin.demo.main.entities
import eu.kevin.inapppayments.paymentsession.enums.PaymentType
data class InitiateDonationRequest (
val email: String,
val amount: String,
val iban: String,
val creditorName: String,
val paymentType: PaymentType
) | 0 | Kotlin | 1 | 3 | 230ed0c607f0576e691ab22233b706ecf307a538 | 271 | kevin-android | MIT License |
kotest-framework/kotest-framework-engine/src/desktopMain/kotlin/io/kotest/engine/spec/failureFirstSort.kt | kotest | 47,071,082 | false | null | package io.kotest.engine.spec
import io.kotest.core.spec.Spec
import kotlin.reflect.KClass
actual class FailureFirstSorter : SpecSorter {
override fun compare(a: KClass<out Spec>, b: KClass<out Spec>): Int = 0
}
| 117 | null | 611 | 4,235 | 0bd6238edc6870b17773ce25773dba3b31c6e520 | 217 | kotest | Apache License 2.0 |
src/KotlinRestDemo/bin/com/felixreichel/kotlinrestdemo/Todo.kt | felix-reichel | 145,749,500 | false | null | package com.felixreichel.kotlinrestdemo
import java.time.LocalDateTime
import javax.persistence.Entity
import javax.persistence.GeneratedValue
import javax.persistence.Id
import javax.persistence.ManyToOne
@Entity
data class Todo(
@Id @GeneratedValue
val id: Long = -1,
val name: String,
val completedAt: LocalDate... | 0 | Kotlin | 0 | 0 | a973c6ee33626ac85568b1ffa6d228d44a64f3d9 | 522 | kotlin-rest-demo | MIT License |
multiplatform/common/src/test/kotlin/reagent/ManyFlatMapTest.kt | reyadrahman | 114,793,065 | true | {"Kotlin": 76143, "Java": 214} | /*
* Copyright 2016 <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 wri... | 0 | Kotlin | 0 | 0 | 74e831b5c809aa5d6046615697dc2d3387cb9ee5 | 4,123 | Reagent | Apache License 2.0 |
networking/src/test/java/ar/com/wolox/wolmo/networking/retrofit/handler/NetworkRequestHandlerTest.kt | Wolox | 86,494,141 | false | {"Java": 127689, "Kotlin": 3986} | package ar.com.wolox.wolmo.networking.retrofit.handler
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.runBlocking
import org.junit.Before
import org.junit.Test
import org.mockito.Mockito.`when`
import org.mockito.Mockito.mock
import org.mockito.MockitoAnnotations
import org.mockito.stubb... | 4 | Java | 3 | 3 | aebdbf4987ba12178034974acc06a37bc79bf14f | 1,844 | wolmo-networking-android | MIT License |
src/main/kotlin/com/bushka/bittrex/model/withdrawals/NewWithdrawal.kt | ColeKainz | 288,023,403 | false | null | package com.bushka.bittrex.model.withdrawals
import java.math.BigDecimal
data class NewWithdrawal (
val currencySymbol: String,
val quantity: BigDecimal,
val cryptoAddress: String,
val cryptoAddressTag: String
) | 0 | Kotlin | 4 | 2 | ec77e3077253acf23f7f8d4c6d7587f601882474 | 245 | bittrex-kotlin-client | MIT License |
pleo-antaeus-core/src/main/kotlin/io/pleo/antaeus/core/infrastructure/messaging/activemq/connection/ConnectionFactory.kt | kwahome | 221,972,777 | true | {"Kotlin": 57534, "Shell": 861, "Dockerfile": 249} | package io.pleo.antaeus.core.infrastructure.messaging.activemq.connection
import io.pleo.antaeus.core.infrastructure.messaging.activemq.config.BrokerConfig
import javax.jms.ConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory
/**
* ActiveMQ connection factory
*/
object ConnectionFactory {
/**... | 0 | Kotlin | 0 | 0 | 8c2d40bdb394dc8d0507d6e61c34fac3bef1d761 | 617 | antaeus | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/hse/vasiliy/bcrecognition/MainActivity.kt | VasiliyMatutin | 158,964,680 | false | null | package com.hse.vasiliy.bcrecognition
import android.Manifest
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.net.ConnectivityManager
import android.net.Network
import android.net.NetworkCapabilities
import android.os.Bundle
import android.os.Environ... | 0 | Kotlin | 0 | 0 | 8549d4dd76b712bbf8c98174f6e2a3b9a00ad704 | 16,731 | BCRecognitionApp | MIT License |
app/src/jvmMain/kotlin/io/github/sgpublic/gtwb/Application.jvm.kt | sgpublic | 729,720,611 | false | {"Kotlin": 17895} | package io.github.sgpublic.gtwb
import io.github.sgpublic.gtwb.utils.GtwbScope
import io.github.sgpublic.gtwb.utils.runBlockingWithCancellation
import kotlinx.coroutines.cancel
import kotlinx.coroutines.runBlocking
actual fun runWithCancelable(args: Array<String>) {
Runtime.getRuntime().addShutdownHook(Thread {
... | 0 | Kotlin | 0 | 0 | dd28b565cc8116f2f17dd55c80289b041e9c4e56 | 582 | gitlab-teamcity-webhook-bridge | MIT License |
theme-orange/src/main/java/com/orange/ods/theme/orange/OrangeThemeConfiguration.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 | 8 | 17 | 48913d0864c8731196ad0c71b73439406e894a1b | 1,467 | ods-android | MIT License |
sample/src/main/java/bybit/sdk/sample/KotlinUsageSample.kt | alleyway | 650,567,178 | false | null | package bybit.sdk.sample
import bybit.sdk.websocket.*
import kotlinx.coroutines.delay
import kotlin.system.exitProcess
suspend fun main() {
val bybitKey = System.getenv("BYBIT_API_KEY")
val bybitSecret = System.getenv("BYBIT_SECRET")
if (bybitKey.isNullOrEmpty() || bybitSecret.isNullOrEmpty()) {
... | 0 | Kotlin | 0 | 1 | 634590eb958faf28156707d2a1d3bf906ce95534 | 3,874 | bybit-kotlin-api | MIT License |
src/main/kotlin/com/example/krudspring/CustomJdbcConfiguration.kt | jelle82 | 717,796,482 | false | {"Kotlin": 27079} | package com.example.krudspring
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.core.convert.converter.Converter
import org.springframework.data.convert.CustomConversions.StoreConversions
import org.springframework.data.jdbc.core.... | 0 | Kotlin | 0 | 0 | c2e888a2d7bd437b78ab1085c77d1af99512f5df | 1,630 | krud-boot | MIT License |
src/main/java/com/google/summit/ast/traversal/Visitor.kt | google | 458,007,554 | false | {"Kotlin": 310732, "Starlark": 12285} | /*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 2 | Kotlin | 7 | 34 | a295d9bfea3932dbcbcf3c2de6c4cbbb81ed5f45 | 1,464 | summit-ast | Apache License 2.0 |
notificare-push-ui/src/main/java/re/notifica/push/ui/notifications/fragments/base/NotificationFragment.kt | Notificare | 279,260,636 | false | {"Kotlin": 760683} | package re.notifica.push.ui.notifications.fragments.base
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import re.notifica.Notificare
import re.notifica.models.NotificareNotification
public open class NotificationFragment : Fragment() {
protected lateinit var notific... | 2 | Kotlin | 0 | 2 | f756ff63b5930360bbb43dafcb29dde61b37cb11 | 1,988 | notificare-sdk-android | MIT License |
app/src/main/java/com/sample/android/tmdb/ui/paging/main/movie/TrendingMoviesActivity.kt | Ali-Rezaei | 158,464,119 | false | null | package com.sample.android.tmdb.ui.paging.main.movie
import com.sample.android.tmdb.R
import javax.inject.Inject
class TrendingMoviesActivity: MoviesActivity() {
@Inject
lateinit var trendingMoviesFragment: TrendingMoviesFragment
override val titleId: Int
get() = R.string.trending
override ... | 1 | Kotlin | 8 | 70 | ea80dd0481f141e55e0d06073d50676758073d34 | 388 | TMDb-Paging | The Unlicense |
src/main/kotlin/com/lykke/matching/engine/logging/MessageDatabaseLogger.kt | bingoko | 129,746,135 | true | {"Kotlin": 797433, "Java": 33596} | package com.lykke.matching.engine.logging
import com.lykke.matching.engine.daos.Message
import com.lykke.matching.engine.database.MessageLogDatabaseAccessor
import com.lykke.matching.engine.outgoing.messages.BalanceUpdate
import com.lykke.matching.engine.outgoing.messages.CashOperation
import com.lykke.matching.engine... | 0 | Kotlin | 0 | 0 | 94c9fd250cfa67f7c54d31e20366e3cc97f110e0 | 1,906 | MatchingEngine | MIT License |
flow-sample-tree/src/main/java/flow/sample/tree/ui/contacts/list/ListContactsView.kt | minyushov | 87,313,471 | true | {"Kotlin": 158999, "Shell": 933} | /*
* Copyright 2016 Square Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 0 | 7b6403601decf6762e7e3f1ea10f468f22aa54ae | 1,656 | flow | Apache License 2.0 |
jps/javac-ref-scanner-8/test/org/jetbrains/references/Java8ReferenceIndexTest.kt | androidports | 115,100,208 | false | null | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 6 | null | 1 | 4 | 6e4f7135c5843ed93c15a9782f29e4400df8b068 | 1,143 | intellij-community | Apache License 2.0 |
kotlin2js-reflection-core/src/main/kotlin/org/decembrist/domain/content/functions/HiderOrderFunc.kt | decembrist-revolt | 131,749,852 | false | {"Gradle": 8, "Shell": 4, "Ignore List": 1, "Batchfile": 4, "YAML": 1, "Markdown": 1, "Maven POM": 7, "Java": 1, "Kotlin": 137, "INI": 4, "ANTLR": 3, "HTML": 2, "JavaScript": 2} | package org.decembrist.domain.content.functions
import org.decembrist.domain.modifiers.FunctionModifiers
import org.decembrist.services.typesuggestions.TypeSuggestion
import kotlin.reflect.KVisibility
class HiderOrderFunc(name: String,
functionModifiers: FunctionModifiers,
fu... | 8 | Kotlin | 3 | 21 | 167548dcd9c5aa27b22d3e6d3135c8d06d56ee7d | 1,324 | decembrist-kotlin2js-reflection | Apache License 2.0 |
persian/src/main/java/io/github/madmaximuus/persian/datePickerDIalog/PersianDatePickerDialog.kt | MADMAXIMUUS | 689,789,834 | false | {"Kotlin": 712511} | package io.github.madmaximuus.persian.datePickerDIalog
import android.content.res.Configuration.UI_MODE_NIGHT_YES
import android.icu.util.Calendar
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.ExperimentalFoundationApi
impor... | 0 | Kotlin | 1 | 1 | 1240c18451511faa06af825ec7d0f74fea9da564 | 11,452 | Persian | MIT License |
app/src/main/java/com/sky/xposed/weishi/util/MD5Util.kt | yangmin-xxxx | 140,372,095 | true | {"Kotlin": 162194} | /*
* Copyright (c) 2018 The sky Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 0 | Kotlin | 0 | 0 | 5bb56f586d1ce81e4e2af121ef640d0d4ddbcb3c | 2,815 | xposed-weishi | Apache License 2.0 |
CallofProjectAndroid/app/src/main/java/callofproject/dev/androidapp/domain/dto/search/UserDTO.kt | CallOfProject | 751,531,328 | false | {"Kotlin": 429418, "Java": 5965} | package callofproject.dev.androidapp.domain.dto.search
import java.util.UUID
data class UserDTO(
val userId: UUID,
val username: String,
val firstName: String,
val middleName: String,
val lastName: String,
val image: String
)
| 0 | Kotlin | 1 | 1 | 9cc12cd78cc212d474cd32b7ea3a89a5b8d5905b | 252 | Call-Of-Project-Android | MIT License |
app/src/main/java/com/example/myweather/data/repositories/DatabaseRepository.kt | iraklisangeloudis | 831,865,773 | false | {"Kotlin": 60323} | package com.example.myweather.data.repositories
import android.util.Log
import com.example.myweather.data.db.WeatherDatabase
import com.example.myweather.data.db.entities.CurrentWeatherEntity
import com.example.myweather.data.db.entities.DailyWeatherEntity
import com.example.myweather.data.db.entities.HourlyWeatherEnt... | 0 | Kotlin | 0 | 0 | 610f67881b0b4decb4412eb876b2ebe5123a61b2 | 8,923 | MyWeather | MIT License |
common/src/main/kotlin/dev/franckyi/mcfx/api/Layouts.kt | Franckyi | 496,203,459 | false | null | package dev.franckyi.mcfx.api
interface Layout : Node {
val children: MutableList<Node>
}
interface SpacedLayout : Layout {
var spacing: Int
}
interface HBox {
var valign: VAlign
}
interface VBox {
var halign: HAlign
} | 0 | Kotlin | 0 | 0 | bb2396e6a21f6ecf0d57f5aadbd4f2f52fffdcec | 238 | MCFX | MIT License |
src/main/kotlin/me/ste/stevesseries/base/map/listener/MapPlayerListener.kt | SteveTheEngineer | 243,009,646 | false | {"Gradle Kotlin DSL": 4, "Markdown": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Kotlin": 74, "INI": 1, "Java": 5} | package me.ste.stevesseries.base.map.listener
import me.ste.stevesseries.base.api.event.EventManager
import me.ste.stevesseries.base.map.MapManagerImpl
import org.bukkit.event.Listener
import org.bukkit.event.player.PlayerJoinEvent
import org.bukkit.event.player.PlayerQuitEvent
class MapPlayerListener(
private va... | 0 | Kotlin | 0 | 0 | d8dc71fed6a5531e0ea8717fd965932a71030f65 | 1,136 | SS-Core-Base | MIT License |
core/src/main/kotlin/online/expotential/finite/core/mappers/Mapper.kt | expotential-online | 841,665,575 | false | {"Kotlin": 49305} | package online.expotential.finite.core.mappers
import online.expotential.finite.core.mappers.exceptions.NotMappedException
interface Mapper<D, R> {
fun mapOrNull(domainValue: D): R?
@Throws(NotMappedException::class)
fun mapOrThrow(domainValue: D): R
fun isMapping(domainValue: D): Boolean
fun isNo... | 2 | Kotlin | 0 | 0 | e085398202c421a7b2c78249d8ca8cd09ff017cc | 468 | finite | MIT License |
src/backend/src/main/kotlin/au/com/cding21/routes/TransactionRoutes.kt | cding21 | 792,681,708 | false | {"Kotlin": 35047, "TypeScript": 14772, "Dockerfile": 2360, "JavaScript": 2250, "CSS": 2122} | package au.com.cding21.routes
import au.com.cding21.data.Transaction
import au.com.cding21.data.requests.TransactionRequest
import au.com.cding21.services.impl.MongoTransactionServiceImpl
import io.ktor.http.*
import io.ktor.http.content.*
import io.ktor.server.application.*
import io.ktor.server.auth.*
import io.ktor... | 4 | Kotlin | 0 | 0 | b94c2217c5cb40541757465aedc1ceabff78a870 | 4,813 | Expense-Tracker-v2 | Apache License 2.0 |
buildSrc/src/main/kotlin/gradle/testbed/transformation/TransformationTasks.kt | wolkenschloss | 370,828,904 | false | {"Java": 176191, "Kotlin": 149197, "JavaScript": 38942, "Vue": 28527, "HTML": 5150, "ANTLR": 1207, "Shell": 884, "Dockerfile": 577, "CSS": 517} | package family.haschka.wolkenschloss.gradle.testbed.transformation
import org.gradle.api.provider.Provider
import org.gradle.api.tasks.Copy
import org.gradle.api.tasks.TaskContainer
import org.gradle.api.tasks.TaskProvider
import family.haschka.wolkenschloss.gradle.ca.TrustAnchor
class TransformationTasks(private val... | 56 | null | 1 | 1 | 218a04bde90f402d3d6c7981520bcd2e2ed15fc4 | 815 | nubes | Apache License 2.0 |
ok-marketplace-rv-app-ktor/src/controllers/WorkshopController.kt | otuskotlin | 327,230,292 | false | null | package ru.otus.otuskotlin.controllers
import io.ktor.routing.*
import ru.otus.otuskotlin.marketplace.mappers.*
import ru.otus.otuskotlin.marketplace.rv.business.logic.backend.WorkshopCrud
import ru.otus.otuskotlin.marketplace.transport.models.workshops.*
import ru.otus.otuskotlin.services.WorkshopService
fun Routing... | 0 | Kotlin | 0 | 0 | 9748129f56f26761f8a757a06927ca46bd3905b1 | 1,245 | otuskotlin-202012-marketplace-rv | MIT License |
src/lang/clojure-parser.kt | zhanghuabin | 73,789,401 | true | {"Kotlin": 240392, "Lex": 4977, "Clojure": 853, "HTML": 245} | /*
* Copyright 2016-present <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 i... | 0 | Kotlin | 0 | 0 | 64ae80286d4e20e9d91da43d21e349cfbb3629a0 | 7,324 | Clojure-Kit | Apache License 2.0 |
advanced-stylus/low-latency/app/src/main/java/com/example/stylus/gl/LowLatencySurfaceView.kt | android | 601,201,707 | false | {"Kotlin": 917058, "Java": 29213} | /*
* Copyright (c) 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 4 | Kotlin | 16 | 37 | f4e3bbf18f3f7c0a1c5b75b3ce7988378e4194f0 | 1,179 | large-screen-codelabs | Apache License 2.0 |
library/src/main/java/com/snail/easyble/core/Connection.kt | o0live0o | 181,112,090 | true | {"Kotlin": 160813, "Java": 886} | package com.snail.easyble.core
import android.bluetooth.*
import android.os.Build
import android.os.Message
import android.support.annotation.UiThread
import android.util.Log
import com.snail.easyble.callback.ConnectionStateChangeListener
import com.snail.easyble.util.BleUtils
import java.util.*
/**
* Used for handl... | 0 | Kotlin | 0 | 0 | ebc14670b2cb5acd76da03b9888743284f92107b | 20,167 | easyble | Apache License 2.0 |
app/src/main/java/com/ml/product/search/repository/model/Results.kt | fh127 | 332,770,607 | false | null | package com.ml.product.search.repository.model
/**
* Sealed Class to handle different responses and errors from data layer and UI layer
*/
sealed class Results<T> {
data class Success<T>(val value: T) : Results<T>()
data class Failure<T>(
val errorTitle: String,
val errorMessage: String,
... | 0 | Kotlin | 0 | 0 | 982f0a909a4324ce7af8e95c4e502e1f5aa336d6 | 376 | ml-product-search-sample-app | Apache License 2.0 |
src/main/kotlin/sishbi/vertx/kotlin/HttpVerticle.kt | sishbi | 764,792,610 | false | {"Kotlin": 14646} | package sishbi.vertx.kotlin
import io.netty.handler.codec.http.HttpResponseStatus
import io.vertx.ext.web.Router
import io.vertx.ext.web.RoutingContext
import io.vertx.kotlin.core.json.json
import io.vertx.kotlin.core.json.obj
import io.vertx.kotlin.coroutines.CoroutineRouterSupport
import io.vertx.kotlin.coroutines.C... | 0 | Kotlin | 0 | 0 | 6781b7f8f9b91e29d908d8b51ed1ea83e4d63c86 | 1,435 | kotlin-vertx-talk | MIT License |
app/src/main/java/dev/ronnie/spendingcalculator/presentation/ui/MainActivity.kt | ronnieotieno | 284,339,449 | false | null | package dev.ronnie.spendingcalculator.presentation.ui
import android.Manifest
import android.content.pm.PackageManager
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.core.content.ContextCompat
import dagger.hilt.android.AndroidEntryPoint
import dev.ronnie.spendingcalculator.R
... | 1 | null | 5 | 29 | b2d8657b166af0e660f89bedc072b0b48d5f3778 | 1,615 | Spending-Calculator | Apache License 2.0 |
libraries/common-data/src/main/java/com/jeppeman/jetpackplayground/common/data/OkHttp.kt | jeppeman | 136,631,212 | false | null | package com.jeppeman.jetpackplayground.common.data
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
fun OkHttpClient.Companion.create(): OkHttpClient = OkHttpClient.Builder()
.addInterceptor(
interceptor = HttpLoggingInterceptor().apply {
level = Ht... | 2 | Kotlin | 18 | 271 | 700bad154f362957c85d57bfe8fed52ce1c2b93e | 396 | android-jetpack-playground | Apache License 2.0 |
src/main/kotlin/domain/usecases/SaveUserUseCase.kt | xurxodev | 711,974,350 | false | {"Kotlin": 33926} | package domain.usecases
import domain.entities.User
import domain.errors.GetUserError
import domain.errors.SaveUserError
import domain.repositories.UserRepository
import domain.types.Either
import domain.types.mapLeft
class SaveUserUseCase (private val userRepository: UserRepository) {
operator fun invoke(user: U... | 0 | Kotlin | 0 | 0 | 8a665c0107ea5043a4a3183fa717372995f5b0a5 | 908 | kata-users-kotlin | Apache License 2.0 |
Android/Core/src/main/java/com/apachat/primecalendar/core/common/DateHolder.kt | FarhamHosseini | 398,840,511 | false | null | package com.apachat.primecalendar.core.common
internal data class DateHolder(
var year: Int,
var month: Int,
var dayOfMonth: Int
) {
override fun toString(): String = "$year$delimiter$month$delimiter$dayOfMonth"
} | 0 | Kotlin | 0 | 1 | fedef289c61e9e883ed138326ef2b77a5add1484 | 224 | PrimeCalendar | Apache License 2.0 |
src/commonMain/kotlin/pcdfPattern/PCDFDataPattern.kt | udsdepend | 402,021,310 | false | null | package pcdfPattern
import kotlinx.serialization.Serializable
/**
* Pattern for data property of the PCDF.
* Used for JSON parsing and serialization.
*/
@Serializable
data class PCDFDataPattern(
val pcdf_type: String? = null,
val ppcdf_version: String? = null,
val ipcdf_version: String? = null,
var... | 0 | Kotlin | 0 | 0 | 093e4dece50813dcdb4ab93287557a20de0c06ec | 6,381 | pcdf-core | MIT License |
NewsApp/app/src/main/java/models/Downloaded.kt | ZinnurovArtur | 345,687,900 | false | null | package models
/**
* Structure of download data
*/
data class Downloaded(
val url:String?,
val name: String?
)
| 0 | Kotlin | 0 | 1 | d3f4881402fc20ab5bf9858c5bc6020b3d93bc19 | 122 | NOVOSTI.IO | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/components/EditText.kt | Xacalet | 347,316,621 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | d96ecb1ac62368180552e8e50f89e21320eb3bf9 | 2,290 | speed-round | Apache License 2.0 |
bukkit/src/main/kotlin/com/dumbdogdiner/stickyworld/bukkit/world/SkWorldManager.kt | SolteraGG | 280,183,355 | false | null | package com.dumbdogdiner.stickyworld.bukkit.world
import com.dumbdogdiner.stickyworld.api.world.WorldData
import com.dumbdogdiner.stickyworld.api.world.WorldManager
import org.bukkit.World
class SkWorldManager : WorldManager {
override fun loadWorld(world: WorldData): Boolean {
TODO("Not yet implemented")
}
ove... | 0 | Kotlin | 0 | 0 | a52c9693a1295ed4703ed1fcf50c6eedbd4d6e68 | 560 | StickyWorld | MIT License |
exe-publish/src/main/kotlin/com/fleshgrinder/gradle/exe/ExeVariants.kt | Fleshgrinder | 342,896,486 | false | null | package com.fleshgrinder.gradle.exe
import com.fleshgrinder.extensions.kotlin.toUpperCamelCase
import com.fleshgrinder.gradle.exe.artifacts.AbstractExeArtifact
import com.fleshgrinder.gradle.exe.artifacts.ExeArtifact
import com.fleshgrinder.gradle.exe.artifacts.ExeArtifactProvider
import com.fleshgrinder.platform.Plat... | 0 | Kotlin | 0 | 0 | 1ec5b57735d54b853b81f02ad894b2e20ef37e03 | 3,459 | gradle-exe-plugin | The Unlicense |
app/src/main/java/com/dartharrmi/resipi/webservice/dto/response/GetRecipesResponseDTO.kt | jArrMi | 283,382,558 | false | {"Kotlin": 135482} | package com.dartharrmi.resipi.webservice.dto.response
import com.dartharrmi.resipi.domain.GetRecipesResponse
import com.dartharrmi.resipi.webservice.dto.RecipeDTO
import com.dartharrmi.resipi.webservice.dto.toDomain
data class GetRecipesResponseDTO(
val results: List<RecipeDTO>?,
val baseUri: String?,
val... | 0 | Kotlin | 0 | 2 | 31898d545f6ae6dc23869502b41450ab734d877b | 720 | resipi | MIT License |
V2rayNG/app/src/main/kotlin/com/v2ray/ang/util/AppManagerUtil.kt | Bhanditz | 168,953,825 | true | {"Kotlin": 80239, "Java": 28100} | package com.v2ray.ang.util
import android.Manifest
import android.content.Context
import android.content.pm.ApplicationInfo
import android.content.pm.PackageInfo
import android.content.pm.PackageManager
import android.graphics.drawable.Drawable
import rx.Observable
import java.util.*
object AppManagerUtil {
fun l... | 0 | Kotlin | 0 | 0 | b5d6a06bd9ec215573814911bf6fdeca55498083 | 1,527 | v2rayNG | MIT License |
src/main/kotlin/intellij/riot/lang/IRiotHtmlLanguage.kt | anstarovoyt | 197,733,822 | false | {"Kotlin": 43140, "Lex": 6940, "Java": 829} | package intellij.riot.lang
/**
* Marker interface for Riot.js template languages
*/
interface IRiotHtmlLanguage | 3 | Kotlin | 2 | 9 | cbffb8f7d1735b575976a4859e45aa1a0cff72f0 | 115 | intellij-riot.js | Apache License 2.0 |
src/main/kotlin/io/kristofferfj/boligmanager/booking/BookingApi.kt | KristofferFJ | 706,682,196 | false | {"Kotlin": 13561} | package io.kristofferfj.boligmanager.booking
import io.ktor.application.call
import io.ktor.http.HttpStatusCode
import io.ktor.request.receive
import io.ktor.response.respond
import io.ktor.routing.Route
import io.ktor.routing.get
import io.ktor.routing.post
import io.ktor.routing.route
object BookingApi {
fun R... | 0 | Kotlin | 0 | 0 | 8013d3ae0a2e97937155b9fb77f052d14337605b | 827 | ktor-jooq-demo | MIT License |
relive-simulator-core/src/jvmMain/kotlin/xyz/qwewqa/relive/simulator/core/gen/valuesGenMusicExtraSkill.kt | qwewqa | 390,928,568 | false | null | package xyz.qwewqa.relive.simulator.core.gen
actual val valuesGenMusicExtraSkill: Map<Int, GenMusicExtraSkill> by lazy {
loadMasterData<GenMusicExtraSkill>(dataGenMusicExtraSkill)
}
| 0 | Kotlin | 11 | 7 | 4bbb303c75dee1ef76c633ba6a1a3c071d333517 | 185 | relight | MIT License |
snapscaffold/src/main/java/com/eudycontreras/snapscaffold/CollapsibleSnapLazyContentScaffold.kt | EudyContreras | 785,362,719 | false | {"Kotlin": 50631} | package com.eudycontreras.snapscaffold
import androidx.compose.foundation.gestures.animateScrollBy
import androidx.compose.foundation.interaction.collectIsDraggedAsState
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.foundation.layout.PaddingVal... | 0 | Kotlin | 0 | 0 | f07fdfd781f5826a1c2b2c57cbb311b3cd0dfe7d | 15,621 | Snap-Scaffold | Apache License 2.0 |
buildSrc/src/main/kotlin/net/blueberrymc/gradle/buildSrc/tasks/BaseBlueberryTask.kt | BlueberryMC | 329,088,139 | false | null | package net.blueberrymc.gradle.buildSrc.tasks
import org.gradle.api.DefaultTask
open class BaseBlueberryTask : DefaultTask() {
init {
group = "blueberry"
}
}
| 8 | null | 1 | 12 | 53e825deb2ce1590a836d0be6c0759bc74584871 | 176 | Blueberry | MIT License |
app/src/main/java/cn/iimedia/jb/rankingBrand/MoreHottestRankingActivity.kt | ncxnbrwa | 143,690,461 | false | null | package cn.iimedia.jb.rankingBrand
import android.os.Bundle
import android.view.View
import cn.iimedia.jb.R
import cn.iimedia.jb.common.Config
import cn.iimedia.jb.http.APIConstants
import cn.iimedia.jb.http.bean.RankingListBean
import cn.iimedia.jb.http.bean.RankingListData
import cn.iimedia.jb.rankingBrand.adapter.M... | 1 | null | 1 | 1 | f7336035401cab53cb0158d9218e17669c82c4f4 | 5,252 | jb | Apache License 2.0 |
app/src/main/java/hive/com/paradiseoctopus/awareness/showplaces/PlacesAdapter.kt | cliffroot | 68,677,882 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "JSON": 1, "Proguard": 1, "Java": 2, "XML": 39, "Kotlin": 34} | package hive.com.paradiseoctopus.awareness.showplaces
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.v7.widget.RecyclerView
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.bumptech.glide.Glide
import com.fi... | 0 | Kotlin | 0 | 0 | 77bd018fd938ebebe804ecceca9315112564246b | 4,029 | awareness | Apache License 2.0 |
libGol/src/commonMain/kotlin/software/egger/libgol/Cell.kt | eggeral | 153,240,085 | false | null | package software.egger.libgol
data class Cell(var alive: Boolean) {
var livingNeighbours: Int = 0
fun calculateNextGeneration() {
if (alive) {
if (!(livingNeighbours == 2 || livingNeighbours == 3)) {
alive = false
}
} else {
if (livingNeighb... | 1 | null | 1 | 1 | 186a0870350514caf34796fccff1c316cfc966cc | 395 | kotlin-examples-android | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestValidatorOptions.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 142794926} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.apigateway
import io.cloudshiftdev.awscdk.common.CdkDslMarker
import io.cloudshiftdev.awscdk.common.C... | 1 | Kotlin | 0 | 4 | eb3eef728b34da593a3e55dc423d4f5fa3668e9c | 5,807 | kotlin-cdk-wrapper | Apache License 2.0 |
mvrx-mocking/src/test/kotlin/com/airbnb/mvrx/mocking/MockStateHolderTest.kt | rizmaulana | 226,033,493 | true | {"Kotlin": 667513, "Java": 1832, "Shell": 1263} | package com.airbnb.mvrx.mocking
import androidx.fragment.app.Fragment
import com.airbnb.mvrx.MavericksViewModel
import com.airbnb.mvrx.MavericksState
import com.airbnb.mvrx.fragmentViewModel
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Before
import org.junit.Test
class Moc... | 0 | Kotlin | 0 | 0 | a919e7de45dbebfe50de3bec8ae5cdcbf5ff3355 | 5,392 | MvRx | Apache License 2.0 |
alerting/src/test/kotlin/org/opensearch/alerting/action/IndexMonitorActionTests.kt | opensearch-project | 355,035,157 | false | null | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.alerting.action
import org.opensearch.test.OpenSearchTestCase
class IndexMonitorActionTests : OpenSearchTestCase() {
fun `test index monitor action name`() {
assertNotNull(IndexMonitorAction.INSTANC... | 111 | Kotlin | 48 | 30 | 9f3c393d4e652dd16fb89cd176309f75ef528d92 | 420 | alerting | Apache License 2.0 |
src/main/kotlin/dev/sublab/substrate/webSocketClient/WebSocketClient.kt | sublabdev | 540,213,973 | false | {"Kotlin": 157012} | /**
*
* Copyright 2023 SUBSTRATE LABORATORY LLC <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by appl... | 3 | Kotlin | 3 | 6 | 8a5469b2820c74f4a5a85576db4fdd681cfefa94 | 5,143 | substrate-client-kotlin | Apache License 2.0 |
adgplayerwidget/src/main/java/com/adgvcxz/adgplayer/widget/util/OrientationHelper.kt | adgvcxz | 84,557,470 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "Proguard": 3, "XML": 65, "Kotlin": 25, "Java": 2} | package com.adgvcxz.adgplayer.widget.util
import android.app.Activity
import android.provider.Settings
import android.view.OrientationEventListener
import com.adgvcxz.adgplayer.widget.extensions.rotateScreen
import com.adgvcxz.adgplayer.widget.extensions.screenOrientation
/**
* zhaowei
* Created by zhaowei on 2017/... | 0 | Kotlin | 0 | 0 | 09cc4cc60be3d042368b128618d0bfdaa771c2f6 | 2,098 | AdgPlayer | Apache License 2.0 |
app/src/main/java/com/earth/angel/base/EarthAngelApp.kt | engineerrep | 643,933,914 | false | {"Java": 2291635, "Kotlin": 1651449} | package com.earth.angel.base
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.os.Bundle
import android.util.Log
import com.alibaba.android.arouter.launcher.ARouter
import com.appsflyer.AppsFlyerConversionListener
import com.appsflyer.AppsFlyerLib
import ... | 1 | null | 1 | 1 | 415e0417870b6ff2c84a9798d1f3f3a4e6921354 | 11,062 | EarthAngel | MIT License |
StravaWeeklyPlannerKotlin/app/src/main/java/com/jonahstarling/stravaweeklyplanner/OnboardingFragment.kt | JonahStarling | 194,750,261 | false | null | package com.jonahstarling.stravaweeklyplanner
import android.animation.ValueAnimator
import android.os.Bundle
import android.preference.PreferenceManager
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import and... | 2 | null | 1 | 1 | 3995bca1c2f789de26a2cfb1806427d1023ff7d8 | 3,367 | WiMPAndroid | MIT License |
EvoMaster/resource-rest-experiments/api-generator/src/main/kotlin/org/evomaster/resource/rest/generator/implementation/java/controller/ex/CloseDbConnectionMethod.kt | BrotherKim | 397,139,860 | false | {"Markdown": 32, "Shell": 14, "Maven POM": 66, "Text": 16, "Ignore List": 13, "Java": 1366, "SQL": 44, "YAML": 13, "JSON": 37, "JavaScript": 183, "XML": 14, "Mermaid": 1, "Java Properties": 36, "INI": 15, "HTML": 52, "Dockerfile": 2, "CSS": 8, "JSON with Comments": 3, "Less": 8, "SVG": 16, "Kotlin": 541, "OASv2-yaml": ... | package org.evomaster.resource.rest.generator.implementation.java.controller.ex
import org.evomaster.resource.rest.generator.implementation.java.JavaMethod
import org.evomaster.resource.rest.generator.template.Boundary
/**
* created by manzh on 2020-01-02
*/
class CloseDbConnectionMethod(val connection : String): J... | 1 | null | 1 | 1 | a7a120fe7c3b63ae370e8a114f3cb71ef79c287e | 959 | ASE-Technical-2021-api-linkage-replication | MIT License |
mesh/src/main/java/io/particle/mesh/setup/ui/GatewaySetupFinishedFragment.kt | dlekdls01 | 179,529,726 | true | {"Java": 1510805, "C": 1320605, "Kotlin": 454049, "C++": 91339, "CMake": 2245, "Shell": 1035, "JavaScript": 403} | package io.particle.mesh.setup.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
import com.squareup.phrase.Phrase
import io.particle.mesh.common.QATool
import io.particle.mesh.R
import kotlinx.an... | 0 | Java | 0 | 0 | 87ce59eb47078d0e3f563ba3efc4f81e50acb600 | 1,456 | particle-android | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.