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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
idea/tests/testData/refactoring/inline/lambdaExpression/lambdaWithReceiverAsParameter3.kt | JetBrains | 278,369,660 | false | null | // WITH_RUNTIME
class Chain
fun complicate(chain: Chain) {
val vra = ((<caret>{ chain: Chain, fn: Chain.() -> Chain ->
chain.fn()
}))(chain){ this.also { println(it) } }
} | 1 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 188 | intellij-kotlin | Apache License 2.0 |
android/src/com/android/tools/idea/run/configuration/AndroidWatchFaceConfiguration.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | Kotlin | 230 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 2,514 | android | Apache License 2.0 |
brd-android/registration/src/main/java/com/fabriik/registration/ui/views/EnterCodeView.kt | fabriik | 489,117,365 | false | null | package com.fabriik.registration.ui.views
import android.content.Context
import android.graphics.*
import android.text.InputFilter
import android.text.InputType
import android.util.AttributeSet
import android.view.inputmethod.EditorInfo
import androidx.appcompat.widget.AppCompatEditText
import androidx.core.content.Co... | 2 | null | 1 | 1 | 8894f5c38203c64e48242dae9ae9344ed4b2a61f | 3,692 | wallet-android | MIT License |
src/test/kotlin/io/github/tobi/laa/spring/boot/embedded/redis/server/CustomCustomizerTest.kt | tobias-laa | 755,903,685 | false | {"Kotlin": 73970} | package io.github.tobi.laa.spring.boot.embedded.redis.server
import io.github.tobi.laa.spring.boot.embedded.redis.IntegrationTest
import io.github.tobi.laa.spring.boot.embedded.redis.RedisTests
import io.github.tobi.laa.spring.boot.embedded.redis.server.CustomCustomizerTest.*
import org.junit.jupiter.api.DisplayName
i... | 4 | Kotlin | 0 | 2 | caa06dbdeee5d21a6a45c4826138ebc14a53c61c | 2,720 | spring-boot-embedded-redis | Apache License 2.0 |
app/src/main/java/com/vitor238/popcorn/data/model/NowPlaying.kt | Vitor238 | 308,182,063 | false | null | package com.vitor238.cartalog.data.model
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class NowPlaying(
val id: Int,
@Json(name = "poster_path")
val posterPath: String?,
@Json(name = "release_date")
val releaseDate: String?,
val tit... | 0 | Kotlin | 1 | 1 | 9207416012652d6093b9f741af71e8017781d7cd | 335 | Popcorn | Apache License 2.0 |
InkBetterAndroidViews/src/main/java/com/inlacou/inkbetterandroidviews/listenerstoflow/OnLongTouchIncrementFiringSpeedFlow.kt | inlacou | 400,138,100 | false | null | package com.inlacou.inkbetterandroidviews.listenerstoflow
import android.view.MotionEvent
import android.view.View
import io.reactivex.rxjava3.core.ObservableEmitter
import io.reactivex.rxjava3.core.ObservableOnSubscribe
import kotlinx.coroutines.channels.ProducerScope
import kotlinx.coroutines.channels.awaitClose
im... | 0 | Kotlin | 0 | 0 | 6fc908d6963f07e0c5d3d2836fcc28143fe58674 | 2,803 | InkCommons | MIT License |
tools/resource-cli/src/commonMain/kotlin/io/matthewnelson/resource/cli/Main.kt | 05nelsonm | 734,754,650 | false | {"Kotlin": 322914, "Shell": 1152, "Java": 1086, "JavaScript": 14} | /*
* Copyright (c) 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 13 | Kotlin | 0 | 1 | 54b305c97e9b5c8a959a65d4d1ee378afb3dd8f6 | 2,820 | kmp-tor-resource | Apache License 2.0 |
src/main/kotlin/com/bsuir/hrm/dataanalyzer/service/impl/StatisticsServiceImpl.kt | herman2lv | 640,611,590 | false | {"Kotlin": 44194, "JavaScript": 21655, "HTML": 3170, "CSS": 1844, "Dockerfile": 847, "PowerShell": 136} | package com.bsuir.hrm.dataanalyzer.service.impl
import com.bsuir.hrm.dataanalyzer.service.dto.DataSeries
import com.bsuir.hrm.dataanalyzer.service.dto.Dataset
import com.bsuir.hrm.dataanalyzer.data.entity.Product
import com.bsuir.hrm.dataanalyzer.service.StatisticsService
import com.bsuir.hrm.dataanalyzer.service.dto.... | 0 | Kotlin | 0 | 1 | 8f0a94f9124edbfb1309e589dae4bc24ec3a9537 | 4,113 | market-analyzer-lab | Apache License 2.0 |
domain/src/main/java/com/example/domain/entity/pharmacySendRequest/FindNearstPharmacy.kt | YoussefmSaber | 595,215,406 | false | null | package com.example.domain.entity.pharmacySendRequest
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class FindNearestPharmacy(
val products: List<String>
): Parcelable | 0 | Kotlin | 1 | 4 | a4931c0edcc76e9b8b5876cb272beadcfcbd1165 | 207 | Eshfeeny | MIT License |
domain/src/main/java/com/example/domain/entity/pharmacySendRequest/FindNearstPharmacy.kt | YoussefmSaber | 595,215,406 | false | null | package com.example.domain.entity.pharmacySendRequest
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class FindNearestPharmacy(
val products: List<String>
): Parcelable | 0 | Kotlin | 1 | 4 | a4931c0edcc76e9b8b5876cb272beadcfcbd1165 | 207 | Eshfeeny | MIT License |
src/main/kotlin/io/opencui/sessionmanager/SessionManager.kt | opencui | 550,521,089 | false | {"Kotlin": 1001003, "Shell": 44} | package io.opencui.sessionmanager
import io.opencui.core.*
import io.opencui.core.da.DialogAct
import io.opencui.core.da.UserDefinedInform
import io.opencui.core.user.IUserIdentifier
import io.opencui.kvstore.IKVStore
import io.opencui.logging.ILogger
import org.slf4j.Logger
import org.slf4j.LoggerFactory
/**
* We a... | 1 | Kotlin | 1 | 0 | f046fd91f38e6bcb7330e441d996e122fac9f18a | 8,082 | structi | Apache License 2.0 |
app/src/main/java/app/tivi/home/discover/DiscoverViewState.kt | qwertyfinger | 157,608,523 | true | {"Kotlin": 616309, "Shell": 2252, "Java": 737} | /*
* Copyright 2017 Google, 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 | 1 | 0 | f7a618119947cf52fff478809ad3d183c2ae1112 | 1,407 | tivi | Apache License 2.0 |
app/src/androidTest/java/com/team28/thehiker/LanguageIntegrationTest.kt | sw21-tug | 350,774,901 | false | null | package com.team28.thehiker
import androidx.test.core.app.ActivityScenario
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.contrib.DrawerActions
import androidx.test.espresso.matc... | 1 | Kotlin | 9 | 7 | eb1bdb8844c55538cac867b4cc987c9d313a081b | 3,280 | Team_28 | MIT License |
build-logic/src/main/kotlin/VersionTuple.kt | projectnessie | 254,450,741 | false | null | /*
* Copyright (C) 2023 Dremio
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 14 | null | 13 | 820 | 91f251bb9e9721bd6e30f1bb568c904660506212 | 3,100 | nessie | Apache License 2.0 |
build-logic/src/main/kotlin/VersionTuple.kt | projectnessie | 254,450,741 | false | null | /*
* Copyright (C) 2023 Dremio
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 14 | null | 13 | 820 | 91f251bb9e9721bd6e30f1bb568c904660506212 | 3,100 | nessie | Apache License 2.0 |
app/src/main/java/dev/twelveoclock/riverhacks/MainActivity.kt | camdenorrb | 494,633,525 | false | null | package dev.twelveoclock.riverhacks
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compos... | 0 | Kotlin | 0 | 0 | f43746294bf851f6c3e13159e9d228190b777b9a | 1,591 | RiverHacksApp | MIT License |
app/src/main/kotlin/com/absinthe/libchecker/view/detail/LibDetailBottomSheetView.kt | zhaobozhen | 248,400,799 | false | null | package com.absinthe.libchecker.view.detail
import android.content.Context
import android.content.res.ColorStateList
import android.text.method.LinkMovementMethod
import android.util.TypedValue
import android.view.ContextThemeWrapper
import android.view.Gravity
import android.view.ViewGroup
import android.widget.Frame... | 24 | null | 83 | 987 | bbfdf8353172281af5ae08694305c32e837cb497 | 11,946 | LibChecker | Apache License 2.0 |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Cloud66.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36756847} | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
impor... | 15 | Kotlin | 20 | 460 | 651badc4ace0137c5541f859f61ffa91e5242b83 | 8,717 | compose-icons | MIT License |
core/src/main/java/io/github/crow_misia/libyuv/Nv21Buffer.kt | crow-misia | 128,540,372 | false | {"C++": 4781231, "Kotlin": 254193, "C": 145869, "Python": 134916, "Starlark": 11104, "CMake": 8822, "Makefile": 7653, "Shell": 4346} | package io.github.crow_misia.libyuv
import java.nio.ByteBuffer
import kotlin.math.min
/**
* NV21 YUV Format. 4:2:0 12bpp
*/
class Nv21Buffer private constructor(
buffer: ByteBuffer?,
override val planeY: Plane,
val planeVU: Plane,
override val width: Int,
override val height: Int,
releaseCal... | 3 | C++ | 18 | 79 | 89a93f053eb7fa5f4c1d7c9f023a80d3c630e9e0 | 8,379 | libyuv-android | Apache License 2.0 |
src/main/kotlin/com/yapp/weekand/domain/schedule/exception/ScheduleInvalidSkipDateException.kt | YAPP-Github | 475,727,764 | false | null | package com.yapp.weekand.domain.schedule.exception
import com.yapp.weekand.common.error.ErrorCode
import com.yapp.weekand.common.error.graphql.AbstractBaseGraphQLException
class ScheduleInvalidSkipDateException : AbstractBaseGraphQLException(ErrorCode.SCHEDULE_INVALID_SKIP_DATE)
| 3 | Kotlin | 0 | 4 | 382c212a6af89c6009a776be8eb4de96c5c3d147 | 282 | 20th-ALL-Rounder-Team-1-BE | Apache License 2.0 |
server-endpoint/src/main/kotlin/com/jacknie/sample/firebase/ksns/config/WebSecurityConfiguration.kt | jacknie84 | 334,155,766 | false | null | package com.jacknie.sample.firebase.ksns.config
import com.google.firebase.FirebaseApp
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.core.Ordered
import org.springframework.core.annotation.Order
import org.springframework.secur... | 0 | Kotlin | 0 | 3 | a35348f4b4ea0fda92f5413a49b8f3c066699177 | 2,832 | firebase-korea-sns | MIT License |
Quiz/app/src/main/java/com/example/quiz/model/repository/ResultRepository.kt | KamilDonda | 321,666,752 | false | null | package com.example.quiz.model.repository
import androidx.lifecycle.LiveData
import com.example.quiz.model.dao.ResultDao
import com.example.quiz.model.entities.Result
class ResultRepository(private val dao: ResultDao) {
val getAllResult: LiveData<List<Result>> = dao.getAllResults()
suspend fun insert(result:... | 0 | Kotlin | 0 | 1 | 755580ba0eefe3e44ed12096a60b15bcd0a3b826 | 670 | QuizzzyMobile | MIT License |
amazon/dynamodb/client/src/main/kotlin/org/http4k/connect/amazon/dynamodb/action/Scan.kt | http4k | 295,641,058 | false | {"Kotlin": 1624429, "Handlebars": 10370, "CSS": 5434, "Shell": 3178, "JavaScript": 2076, "Python": 1834, "HTML": 675} | package org.http4k.connect.amazon.dynamodb.action
import org.http4k.connect.Http4kConnectAction
import org.http4k.connect.Paged
import org.http4k.connect.amazon.dynamodb.model.ConsumedCapacity
import org.http4k.connect.amazon.dynamodb.model.IndexName
import org.http4k.connect.amazon.dynamodb.model.Item
import org.http... | 7 | Kotlin | 17 | 37 | 94e71e6bba87d9c79ac29f7ba23bdacd0fdf354c | 1,997 | http4k-connect | Apache License 2.0 |
newm-server/src/main/kotlin/io/newm/server/features/distribution/model/OutletStatusCode.kt | projectNEWM | 447,979,150 | false | null | package io.newm.server.features.distribution.model
import kotlinx.serialization.Serializable
@Serializable
enum class OutletStatusCode(val code: Int) {
DRAFT(1021),
READY_TO_DISTRIBUTE(1022),
READY_TO_SUBMIT(1208),
DISTRIBUTE_INITIATED(1201),
DISTRIBUTED(1202),
TAKEDOWN_INITIATED(1203),
UP... | 1 | Kotlin | 3 | 7 | 3335108d0d87a8b2aca3b4aeaeac834faeb1d2d9 | 412 | newm-server | Apache License 2.0 |
android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt | software-mansion | 72,087,685 | false | null | package abi46_0_0.host.exp.exponent.modules.api.components.gesturehandler.react
import android.os.SystemClock
import android.util.Log
import android.view.MotionEvent
import android.view.ViewGroup
import android.view.ViewParent
import abi46_0_0.com.facebook.react.bridge.ReactContext
import abi46_0_0.com.facebook.react.... | 97 | null | 980 | 6,098 | da9eed867ff09633c506fc9ad08634eaf707cbdb | 4,809 | react-native-gesture-handler | MIT License |
core/src/main/java/com/aba/core/callback/ErrorSuccessCallback.kt | amircoder | 247,642,230 | false | {"Gradle": 19, "INI": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 8, "Batchfile": 1, "Groovy": 1, "Markdown": 1, "Kotlin": 105, "XML": 64, "Java": 8, "Proguard": 3, "PureBasic": 1} | package com.alphacoder.core.callback.view
interface ErrorSuccessCallback {
fun showLoadingSpinner()
fun hideLoadingSpinner()
fun displayGenericErrorMessage()
fun displayNetworkErrorMessage()
fun displayCustomError(title: String, msg: String)
}
| 0 | Kotlin | 0 | 2 | d48bbf066eadd135a45a415c0f1babeac3aee539 | 265 | CleanMVVMCoroutine | Apache License 2.0 |
src/main/java/at/petrak/hexcasting/api/PatternRegistry.kt | Noobulus | 513,991,947 | false | null | package at.petrak.hexcasting.api
import at.petrak.hexcasting.common.casting.CastException
import at.petrak.hexcasting.hexmath.EulerPathFinder
import at.petrak.hexcasting.hexmath.HexDir
import at.petrak.hexcasting.hexmath.HexPattern
import net.minecraft.nbt.CompoundTag
import net.minecraft.resources.ResourceLocation
im... | 1 | null | 1 | 1 | fd206287f685261aa257957f6a4eb634db46630f | 7,367 | HexMod | MIT License |
ktfx-layouts/src/test/kotlin/javafx/scene/layout/StackPaneTest.kt | hanggrian | 102,934,147 | false | {"Kotlin": 1103986, "CSS": 1653} | package ktfx.layouts
import com.hanggrian.ktfx.test.LayoutsStyledTest
import javafx.scene.layout.StackPane
class StackPaneTest : LayoutsStyledTest<KtfxPane, StackPane>() {
override fun manager() = KtfxPane()
override fun KtfxPane.childCount() = children.size
override fun child1() = stackPane {}
ove... | 1 | Kotlin | 2 | 18 | 8ab17659146dc9c402a6bcb9f5148c70b2cd9ed1 | 525 | ktfx | Apache License 2.0 |
work/workmanager-ktx/src/androidTest/java/androidx/work/DataTest.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... | 8 | null | 657 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 1,458 | androidx | Apache License 2.0 |
androidApp/src/main/java/io/github/lazyengineer/castaway/androidApp/view/podcast/PodcastViewModel.kt | lazy-engineer | 321,396,462 | false | {"Kotlin": 262426, "Swift": 86110, "Ruby": 1720} | package io.github.lazyengineer.castaway.androidApp.view.podcast
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import io.github.lazyengineer.castaway.androidApp.player.PlayPauseUseCase
import io.github.lazyengineer.castaway.androidApp.player.PlayerState
import io.github.lazyengineer.casta... | 0 | Kotlin | 0 | 2 | 78a206c53d8f4b613a0283c03aa30236fc4858d7 | 6,373 | castaway | MIT License |
app/movies/src/main/java/io/github/kunal26das/yify/movies/compose/Movies.kt | kunal26das | 283,553,926 | false | {"Kotlin": 116060, "Swift": 614} | package io.github.kunal26das.yify.movies.compose
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation... | 0 | Kotlin | 1 | 1 | c88d5cdf4d6ce291377254466e779878ad9c7562 | 12,014 | yify | Apache License 2.0 |
data/src/main/java/com/jjswigut/data/local/CardAction.kt | JJSwigut | 360,247,838 | false | null | package com.jjswigut.data.local
import com.jjswigut.data.local.entities.ListEntity
import com.jjswigut.data.local.entities.TaskEntity
sealed class CardAction {
data class ListCardClicked(val list: ListEntity) : CardAction()
data class TaskCardChecked(val task: TaskEntity) : CardAction()
data class AddCard... | 0 | Kotlin | 0 | 0 | 0151363bc0d0e3ff0d8ffa9f8ca6fcac7fb20e3c | 363 | DoitToit | The Unlicense |
example-app/src/main/java/foo/bar/example/OG.kt | erdo | 364,914,424 | false | {"Kotlin": 43364} | package foo.bar.example
import android.app.Application
import co.early.fore.kt.core.logging.AndroidLogger
import co.early.fore.kt.core.logging.Logger
import co.early.persista.PerSista
import foo.bar.example.feature.wallet.Wallet
import java.util.HashMap
/**
* OG - Object Graph, pure DI implementation
*
* Copyrigh... | 0 | Kotlin | 0 | 7 | 38b3d1fb5e70143e589ebf7b8f96afe32f229142 | 2,096 | persista | Apache License 2.0 |
kotlinx-datetime-wasm/src/commonMain/kotlin/kotlinx/datetime/ZonedDateTime.kt | sdeleuze | 586,987,800 | false | null | /*
* Copyright 2019-2020 JetBrains s.r.o.
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file.
*/
/* Based on the ThreeTenBp project.
* Copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
*/
package kotlinx.datetime
internal class Zoned... | 78 | null | 91 | 81 | b1cbeb9f537a618570f13f1d1538fd27f94fd45e | 3,500 | kowasm | Apache License 2.0 |
plugins/maven/src/main/java/org/jetbrains/idea/maven/dsl/MavenDependencyModificator.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.idea.maven.dsl
import com.intellij.buildsystem.model.unified.UnifiedCoordinates
import com.intellij.buildsystem.model.unified.UnifiedDependency
import com.i... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 13,295 | intellij-community | Apache License 2.0 |
coroutine-cancellation/app/src/main/java/com/example/coroutine_cancellation/homework/assignmenttwo/MoneyTransferState.kt | mygomii | 855,464,049 | false | {"Kotlin": 84679} | package com.example.coroutine_cancellation.homework.assignmenttwo
import androidx.compose.foundation.text.input.TextFieldState
data class MoneyTransferState(
val savingsBalance: Double = 1000.0,
val checkingBalance: Double = 500.0,
val transferAmount: TextFieldState = TextFieldState(),
val isTransferr... | 0 | Kotlin | 0 | 0 | c48746cd9ffe561089787c9c233689bceebd01e1 | 434 | coroutines-flow-study | Apache License 2.0 |
matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/verification/qrcode/DefaultQrCodeVerificationTransaction.kt | matrix-org | 287,466,066 | false | null | /*
* Copyright 2020 New Vector Ltd
* Copyright 2020 The Matrix.org Foundation C.I.C.
*
* 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... | 75 | null | 418 | 97 | 55cc7362de34a840c67b4bbb3a14267bc8fd3b9c | 12,867 | matrix-android-sdk2 | Apache License 2.0 |
core/src/game/robotm/gamesys/ItemType.kt | yichen0831 | 51,819,854 | false | null | package game.robotm.gamesys
import com.badlogic.gdx.math.MathUtils
enum class ItemType {
HardSkin,
QuickHealing,
FastFeet,
LowGravity;
companion object {
val typeArray = arrayOf(HardSkin, QuickHealing, FastFeet, LowGravity)
fun randomType(): ItemType {
return typeArr... | 0 | Kotlin | 2 | 1 | eb85ca306b5e055cf83fad34468ce33382351c63 | 379 | RobotM | Apache License 2.0 |
plugin-dotnet-server/src/main/kotlin/jetbrains/buildServer/dotnet/commands/TestCommandType.kt | JetBrains | 49,584,664 | false | null | /*
* Copyright 2000-2021 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... | 3 | null | 25 | 91 | 68c95408c1d39158312573573591b8efa4d78cab | 1,138 | teamcity-dotnet-plugin | Apache License 2.0 |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/Layout.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 | 3,530 | compose-icon-collections | MIT License |
maestro-ios-driver/src/main/kotlin/hierarchy/Error.kt | mobile-dev-inc | 476,427,476 | false | null | package hierarchy
import com.fasterxml.jackson.annotation.JsonProperty
data class Error(
@JsonProperty("errorMessage") val errorMessage: String,
@JsonProperty("errorCode") val errorCode: String,
) | 236 | Kotlin | 160 | 4,242 | 6d369c39c7e9735d58311d0e3c83dc6ff862ac66 | 206 | maestro | Apache License 2.0 |
apollo-ast/src/main/kotlin/com/apollographql/apollo3/ast/gqldocument.kt | wavemm | 111,576,468 | false | null | package com.apollographql.apollo3.ast
import com.apollographql.apollo3.annotations.ApolloDeprecatedSince
import okio.buffer
import okio.source
fun GQLDocument.withBuiltinDefinitions(): GQLDocument {
return withDefinitions(builtinDefinitions())
}
fun GQLDocument.withoutBuiltinDefinitions(): GQLDocument {
return w... | 1 | null | 1 | 1 | 95bf818206e70fbb6f84dff5b960b9c1cf18c7db | 4,126 | apollo-android | MIT License |
serialization-djvm/deserializers/src/main/kotlin/net/corda/serialization/djvm/deserializers/PublicKeyDecoder.kt | corda | 70,137,417 | false | null | package net.corda.serialization.djvm.deserializers
import net.corda.core.crypto.Crypto
import java.security.PublicKey
import java.util.function.Function
class PublicKeyDecoder : Function<ByteArray, PublicKey> {
override fun apply(encoded: ByteArray): PublicKey {
return Crypto.decodePublicKey(encoded)
... | 58 | null | 1089 | 3,952 | 6ec8855c6e36f81cf8cfc8ef011e5ca23d95d757 | 324 | corda | Apache License 2.0 |
auth/app/src/main/java/com/google/firebase/quickstart/auth/kotlin/FirebaseUIActivity.kt | SagarBChauhan | 216,040,454 | false | null | package com.google.firebase.quickstart.auth.kotlin
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import android.widget.Toast
import com.firebase.ui.auth.AuthUI
import com.google.firebase.auth.FirebaseAuth
impo... | 4 | null | 0 | 5 | d886d348a681f41f02e78d720cb74fb8c162e339 | 3,279 | quickstart-android | Creative Commons Attribution 4.0 International |
web-regresjonstest/src/test/kotlin/no/nav/su/se/bakover/web/LocalTestDataRoutes.kt | navikt | 227,366,088 | false | {"Kotlin": 8916291, "Shell": 3838, "TSQL": 1233, "Dockerfile": 800} | package no.nav.su.se.bakover.web
import io.ktor.client.HttpClient
import io.ktor.client.engine.java.Java
import io.ktor.client.plugins.defaultRequest
import io.ktor.http.HttpStatusCode
import io.ktor.server.application.call
import io.ktor.server.routing.Route
import io.ktor.server.routing.post
import no.nav.su.se.bako... | 6 | Kotlin | 1 | 1 | f187a366e1b4ec73bf18f4ebc6a68109494f1c1b | 2,952 | su-se-bakover | MIT License |
app/src/main/java/com/techbeloved/hymnbook/utils/workers/UnzipArchiveWorker.kt | techbeloved | 133,724,406 | false | null | package com.techbeloved.hymnbook.utils.workers
import android.content.Context
import androidx.hilt.Assisted
import androidx.hilt.work.WorkerInject
import androidx.work.Data
import androidx.work.RxWorker
import androidx.work.WorkerParameters
import com.techbeloved.hymnbook.R
import com.techbeloved.hymnbook.data.FileMan... | 4 | Kotlin | 7 | 7 | 9252d0cab23f1c29a99c296dde8cf501d047bcaa | 1,728 | hymnbook | MIT License |
app/src/main/java/mx/itesm/ag/covid19/model/PaisDatos.kt | gggandre | 555,611,346 | false | {"Kotlin": 14118} | package mx.itesm.ag.covid19.model
import com.google.gson.annotations.SerializedName
/**
* @author <NAME>
* datos de pais
*/
data class PaisDatos(
@SerializedName("country")
val name: String,
val timeline: Map<String, Map<String, String>> = mapOf(),
)
| 0 | Kotlin | 0 | 0 | a3b06c71307eff1f3ce6c263b3fd43507e39ac25 | 269 | Covid19 | MIT License |
room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/migration/MigrationKotlinTest.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 8 | null | 937 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 11,137 | androidx | Apache License 2.0 |
educational-core/src/com/jetbrains/edu/learning/coursera/CourseraOptions.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.learning.coursera
import com.intellij.ui.IdeBorderFactory
import com.intellij.ui.components.JBTextField
import com.intellij.ui.layout.*
import com.jetbrains.edu.learning.settings.OptionsProvider
import javax.swing.JComponent
class CourseraOptions : OptionsProvider {
private val emailField ... | 1 | Kotlin | 40 | 99 | cfc24fe13318de446b8adf6e05d1a7c15d9511b5 | 927 | educational-plugin | Apache License 2.0 |
tmp/arrays/youTrackTests/912.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-44745
val strings = arrayOf("1a", "1b", "2", "3")
fun main() {
for (s in strings) {
if (s == "1a" || s == "1b") {
continue
}
if (s == "2") {
continue
}
println(s)
}
}
| 1 | null | 1 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 261 | bbfgradle | Apache License 2.0 |
app/src/main/java/cn/wthee/pcrtool/ui/components/Other.kt | wthee | 277,015,110 | false | {"Kotlin": 1316423} | package cn.wthee.pcrtool.ui.components
import androidx.annotation.StringRes
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layou... | 0 | Kotlin | 2 | 53 | 73b9331c3e15e9718177c64ef6725eea8582abe6 | 25,333 | pcr-tool | Apache License 2.0 |
src/entity/Youkai.kt | Crystal1921 | 793,632,316 | false | {"Kotlin": 21787} | package entity
import data.DoublePoint
import data.Player
import data.Power
import utils.Entity
import utils.Image
import java.awt.image.BufferedImage
import kotlin.math.atan2
class Youkai (override var health: Int, override var pos: DoublePoint, override val image: BufferedImage?, private val target : Player) : Abst... | 0 | Kotlin | 0 | 0 | ea0608fc793b1264bb260f45483c322b3ad0e8c0 | 864 | kotlin-test-stg | MIT License |
vector/src/main/java/im/vector/app/features/roomprofile/RoomProfileFragment.kt | tchapgouv | 340,329,238 | false | null | /*
* Copyright 2019 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 96 | null | 7 | 9 | a2c060c687b0aa69af681138c5788d6933d19860 | 14,765 | tchap-android | Apache License 2.0 |
src/main/kotlin/io/github/kryszak/gwatlin/api/gamemechanics/model/facts/Radius.kt | Kryszak | 214,791,260 | false | {"Kotlin": 443350, "Shell": 654} | package io.github.kryszak.gwatlin.api.gamemechanics.model.facts
import io.github.kryszak.gwatlin.http.serializers.SerialNameDelegate.Companion.serialNameDelegate
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Data model for skill/trait facts with type Radius
*/
@Serializable... | 1 | Kotlin | 1 | 6 | 657798c9ca17dfcdbca6e45196dfd15443d63751 | 520 | gwatlin | MIT License |
modules/nbt/src/commonTest/kotlin/com/handtruth/mc/nbt/test/TagBuilderTest.kt | handtruth | 282,440,433 | false | null | package com.handtruth.mc.nbt.test
import com.handtruth.mc.nbt.NBT
import com.handtruth.mc.nbt.NBTBinaryConfig
import com.handtruth.mc.nbt.tags.*
import com.handtruth.mc.nbt.writeText
import com.handtruth.mc.types.Dynamic
import com.handtruth.mc.types.buildDynamic
import com.handtruth.mc.types.dynamic
import io.ktor.ut... | 0 | Kotlin | 0 | 0 | fa6d230dc1f7e62cd75b91ad4798a763ca7e78f1 | 1,941 | mc-tools | MIT License |
src/me/anno/remsstudio/Rendering.kt | AntonioNoack | 266,471,164 | false | null | package me.anno.remsstudio
import me.anno.engine.EngineBase.Companion.workspace
import me.anno.gpu.GFX
import me.anno.gpu.GFXBase
import me.anno.io.MediaMetadata.Companion.getMeta
import me.anno.io.files.FileReference
import me.anno.io.files.InvalidRef
import me.anno.language.translation.NameDesc
import me.anno.remsst... | 2 | null | 3 | 19 | c9c0d366d1f2d08a57da72f7315bb161579852f2 | 12,208 | RemsStudio | Apache License 2.0 |
modern-treasury-java-core/src/test/kotlin/com/moderntreasury/api/models/LedgerTransactionUpdateParamsTest.kt | Modern-Treasury | 665,761,562 | false | null | package com.moderntreasury.api.models
import com.moderntreasury.api.models.*
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
class LedgerTransactionUpdateParamsTest {
@Test
fun createLedgerTransactionUpdateParams() {
LedgerTransactionUpdateParams.builder()
... | 2 | Kotlin | 1 | 0 | c5719b232bfb411d426e5c4de888ad167ef4acce | 6,426 | modern-treasury-java | MIT License |
app/src/main/java/com/yangdai/opennote/ui/component/DrawerItem.kt | YangDai2003 | 774,993,540 | false | {"Kotlin": 218210} | package com.yangdai.opennote.ui.component
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.NavigationDrawerItem
import androidx.compose.m... | 0 | Kotlin | 0 | 0 | 7e727f427cd812759a517db20420357005bafd92 | 1,593 | OpenNote-Compose | Apache License 2.0 |
app/src/main/kotlin/app/newproj/lbrytv/data/datasource/VideoLocalDataSource.kt | linimin | 434,503,024 | false | null | /*
* MIT License
*
* Copyright (c) 2022 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 7 | Kotlin | 3 | 23 | 75bed7e7bae0b1ddaa2b5356b82dbec62c25776e | 2,626 | lbry-androidtv | MIT License |
logging/src/commonMain/kotlin/Pool.kt | JuulLabs | 261,866,344 | false | null | package com.juul.tuulbox.logging
import kotlinx.atomicfu.locks.reentrantLock
import kotlinx.atomicfu.locks.withLock
/** While a [Pool] is logically thread safe, Kotlin/Native's memory model requires @ThreadLocal on instances of this. */
internal class Pool<T>(
private val factory: () -> T,
private val refurbi... | 9 | null | 2 | 7 | 85d8a11cc66b04f5461de7d66c06eca341269570 | 608 | tuulbox | Apache License 2.0 |
platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/EditorComposite.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:Suppress("ReplaceGetOrSet", "ReplacePutWithAssignment")
package com.intellij.openapi.fileEditor.impl
import com.intellij.codeWithMe.ClientId
import com.intellij.codeWithMe.ClientId.Companion.... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 19,462 | intellij-community | Apache License 2.0 |
app/src/androidTestScenarios/java/uk/nhs/nhsx/covid19/android/app/qrcode/riskyvenues/DownloadAndProcessRiskyVenuesFlowTest.kt | coderus-ltd | 369,240,870 | true | {"Kotlin": 3133494, "Shell": 1098, "Ruby": 847, "Batchfile": 197} | package uk.nhs.nhsx.covid19.android.app.qrcode.riskyvenues
import java.time.Instant
import kotlin.test.assertEquals
import kotlin.test.assertNull
import kotlinx.coroutines.runBlocking
import org.junit.After
import org.junit.Test
import uk.nhs.nhsx.covid19.android.app.notifications.AddableUserInboxItem
import uk.nhs.nh... | 0 | null | 0 | 0 | b74358684b9dbc0174890db896b93b0f7c6660a4 | 6,812 | covid-19-app-android-ag-public | MIT License |
desktop/src/main/kotlin/io/kanro/mediator/desktop/ui/MessageView.kt | ButterCam | 365,499,735 | false | null | package io.kanro.mediator.desktop.ui
import androidx.compose.foundation.ContextMenuItem
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.VerticalScrollbar
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.f... | 1 | null | 4 | 98 | 3ad28dc886f1cfb6eee0a7c88536781d1ec8d7a9 | 13,171 | Mediator | Apache License 2.0 |
felles/src/main/kotlin/no/nav/familie/kontrakter/felles/klage/FagsystemVedtak.kt | navikt | 206,793,193 | false | null | package no.nav.tilleggsstonader.kontrakter.klage
import java.time.LocalDateTime
data class FagsystemVedtak(
val eksternBehandlingId: String,
val behandlingstype: String,
val resultat: String,
val vedtakstidspunkt: LocalDateTime,
val fagsystemType: FagsystemType,
val regelverk: Regelverk?,
)
e... | 1 | Kotlin | 0 | 2 | 7f218f3c15be62cd438c690c6d4a670afe73fd65 | 464 | familie-kontrakter | MIT License |
src/zh/manhuagui/src/eu/kanade/tachiyomi/extension/zh/manhuagui/Comic.kt | komikku-app | 720,497,299 | false | null | package eu.kanade.tachiyomi.extension.zh.manhuagui
import kotlinx.serialization.Serializable
@Serializable
data class Comic(
val bid: Int? = 0,
val block_cc: String? = "",
val bname: String? = "",
val bpic: String? = "",
val cid: Int? = 0,
val cname: String? = "",
val files: List<String?>?... | 9 | null | 99 | 97 | 7fc1d11ee314376fe0daa87755a7590a03bc11c0 | 523 | komikku-extensions | Apache License 2.0 |
save-cloud-common/src/jvmMain/kotlin/com/saveourtool/save/entities/OriginalLogin.kt | saveourtool | 300,279,336 | false | null | package com.saveourtool.save.entities
import com.saveourtool.save.spring.entity.BaseEntity
import com.fasterxml.jackson.annotation.JsonBackReference
import javax.persistence.Entity
import javax.persistence.JoinColumn
import javax.persistence.ManyToOne
import javax.persistence.Table
/**
* @property name
* @propert... | 201 | null | 3 | 38 | e101105f8e449253d5fbe81ece2668654d08639f | 590 | save-cloud | MIT License |
app/src/main/java/com/miguelangelboti/stocks/entities/Stock.kt | miguelangelboti | 274,739,267 | false | null | package com.miguelangelboti.stocks.entities
import com.miguelangelboti.stocks.utils.extensions.sumByFloat
data class Stock(
val id: Int = 0,
val symbol: String,
val name: String,
val region: String,
val marketOpen: String,
val marketClose: String,
val timeZone: String,
val currency: St... | 0 | Kotlin | 0 | 0 | 42fe19b191ac48e7a55ffda78caee6d52f32f27f | 568 | stocks | Apache License 2.0 |
idea/testData/copyPaste/imports/Extension.expected.kt | JakeWharton | 99,388,807 | true | null | package to
import a.f
import a.g
import a.p
fun foo() {
3.f()
2.p
3.g = 5
} | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 89 | kotlin | Apache License 2.0 |
core/src/main/kotlin/midgard/World.kt | mfursov | 131,506,842 | false | null | package midgard
class World(
/** All active places in the world. */
val rooms: MutableMap<RoomId, Room>,
/** Online characters map. */
val characters: MutableMap<CharacterId, Character>,
/** Offline characters map. */
val offlineCharacters: MutableMap<CharacterId, Ch... | 0 | Kotlin | 0 | 0 | c8daa04809f40a1c0bb42de54ad7817dab7c62b4 | 1,000 | midgard | Apache License 2.0 |
dynamic-shortcuts/complete/app/src/main/java/com/example/android/architecture/blueprints/todoapp/tasks/TasksFilterType.kt | android | 577,929,339 | false | null | /*
* Copyright (C) 2020 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... | 5 | null | 33 | 54 | fea0f48a6d7f1c43d47c3ad14bfd11ace4b5629c | 1,748 | app-actions-samples | Apache License 2.0 |
libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/pm20/GradleKpmModule.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 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.
*/
package org.jetbrains.kotlin.gradle.plugin.mpp.pm20
import groovy.lang.Closure
import org.gradle.api.Extensib... | 155 | null | 5608 | 45,423 | 2db8f31966862388df4eba2702b2f92487e1d401 | 2,371 | kotlin | Apache License 2.0 |
app/src/main/java/org/sil/storyproducer/controller/MultiRecordFrag.kt | sillsdev | 93,890,166 | false | null | package org.sil.storyproducer.controller
import android.app.Activity
import android.app.AlertDialog
import android.content.Intent
import android.os.Bundle
import android.os.Environment
import android.provider.MediaStore
import androidx.core.content.FileProvider
import android.view.LayoutInflater
import android.view.Vi... | 95 | null | 9 | 3 | 98d4ef056f74c0b6e6667220a84c7c9304f5a739 | 7,430 | StoryProducer | MIT License |
src/main/kotlin/sapala/s2sauthservice/api/entity/PublicKey.kt | MateuszSapala | 762,630,819 | false | {"Kotlin": 13742} | package sapala.s2sauthservice.api.entity
data class PublicKey(val type: String, val publicKey: String)
| 0 | Kotlin | 0 | 0 | 89645f9efd19071cc40f3ba146f10ead064d74e6 | 104 | s2s-auth-service-api | Apache License 2.0 |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/ChargingPile.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 3,976 | compose-icon-collections | MIT License |
src/main/kotlin/dev/shtanko/patterns/structural/proxy/WizardTowerProxy.kt | ashtanko | 203,993,092 | false | null | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 4 | null | 0 | 19 | 5bfa4b0dd30d515117d112b5d061e9235e444d13 | 1,187 | kotlab | Apache License 2.0 |
alice-ktx/src/main/kotlin/com/github/alice/ktx/models/request/Session.kt | danbeldev | 833,612,985 | false | {"Kotlin": 68779} | package com.github.alice.ktx.models.request
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Session(
@SerialName("message_id")
val messageId: Int,
@SerialName("session_id")
val sessionId: String,
@SerialName("skill_id")
val skillId: St... | 0 | Kotlin | 0 | 3 | 2e2cb34b3bc4de208917e007d1bea2c827fcfbf4 | 462 | alice-ktx | MIT License |
compose-annotation/src/androidMain/kotlin/app/meetacy/vm/compose/Immutable.kt | meetacy | 685,180,414 | false | {"Kotlin": 23707} | package app.meetacy.vm.compose
import androidx.compose.runtime.StableMarker
@androidx.compose.runtime.Immutable
@StableMarker
public actual annotation class Immutable | 0 | Kotlin | 0 | 6 | a0eb75501368a48b269c74cd3bd77391ecca1aff | 168 | vm | Apache License 2.0 |
compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 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.
*/
// FILE: lib.kt
var z = false
// FILE: lib2.kt
import kotlin.test.*
val x = foo()
private fun foo(): Int {
... | 181 | null | 5771 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 470 | kotlin | Apache License 2.0 |
src/test/kotlin/com/cultureshock/madeleine/rest/controller/UserControllerTest.kt | DDD-Community | 401,593,410 | false | null | package com.cultureshock.madeleine.rest.controller
import com.cultureshock.madeleine.MadeleineApplication
import com.cultureshock.madeleine.domain.user.UserRepository
import com.cultureshock.madeleine.service.user.KakaoAuthService
import com.cultureshock.madeleine.service.user.UserService
import com.ninjasquad.springm... | 2 | Kotlin | 1 | 4 | fc07b03adafd42f7c9c11c8e135c197f24182df8 | 2,752 | CultureShock-Server | MIT License |
src/test/kotlin/com/example/marketo/MarketoApplicationTests.kt | ani404 | 733,952,883 | false | {"Kotlin": 4510} | package com.example.marketo
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class MarketoApplicationTests {
@Test
fun contextLoads() {
}
}
| 0 | Kotlin | 0 | 1 | d3e6cacc904353507753bb35194df53fd6e47053 | 208 | marketo | Apache License 2.0 |
compiler/frontend/src/org/jetbrains/kotlin/cfg/ControlFlowInfo.kt | JakeWharton | 99,388,807 | false | null | /*
* 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... | 12 | null | 4 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 7,410 | kotlin | Apache License 2.0 |
dragswipe/src/test/java/com/programmersbox/dragswipe/ExampleUnitTest.kt | jakepurple13 | 243,099,864 | false | null | package com.programmersbox.dragswipe
import org.junit.Assert.assertEquals
import org.junit.Test
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect(... | 10 | null | 1 | 8 | 904eb4dc9d6ca3024df1096a4a8ccadaca566a4c | 420 | HelpfulTools | Apache License 2.0 |
platform/build-scripts/src/org/jetbrains/intellij/build/impl/productInfo/ProductInfoValidator.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.intellij.build.impl.productInfo
import com.fasterxml.jackson.databind.ObjectMapper
import com.intellij.openapi.util.io.FileUtilRt
import com.intellij.util.lang.ImmutableZipFile... | 233 | null | 4912 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 6,698 | intellij-community | Apache License 2.0 |
app/src/main/java/com/app/tugaypamuk/movieapp/peresention/ui/BaseFragmentFactory.kt | fortysevennn | 495,296,580 | false | {"Kotlin": 21382} | package com.app.tugaypamuk.movieapp.peresention.ui
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentFactory
import com.app.tugaypamuk.movieapp.peresention.ui.home.HomeAdapter
import com.app.tugaypamuk.movieapp.peresention.ui.home.HomeFragment
import javax.inject.Inject
/*
class BaseFragmentF... | 0 | Kotlin | 0 | 0 | 16cb8b115d55ed8625b374eabc98798ddb04e15a | 687 | MovieApp | The Unlicense |
mobile_app1/module72/src/main/java/module72packageKt0/Foo145.kt | uber-common | 294,831,672 | false | null | package module692packageKt0;
annotation class Foo145Fancy
@Foo145Fancy
class Foo145 {
fun foo0(){
module692packageKt0.Foo144().foo4()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
fun foo4(){
foo3()
}
} | 6 | null | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 267 | android-build-eval | Apache License 2.0 |
src/main/kotlin/no/nav/arbeidsplassen/importapi/adoutbox/AdOutboxRepository.kt | navikt | 236,483,368 | false | {"Kotlin": 198918, "Shell": 3062, "Dockerfile": 157} | package no.nav.arbeidsplassen.importapi.adoutbox
import io.micronaut.data.jdbc.annotation.JdbcRepository
import io.micronaut.data.model.query.builder.sql.Dialect
import io.micronaut.data.repository.CrudRepository
import no.nav.arbeidsplassen.importapi.provider.toTimeStamp
import java.sql.Connection
import java.sql.Res... | 0 | Kotlin | 0 | 4 | 77e6a9673a51631bc60c60959f9c4223f4d76e5a | 3,535 | pam-import-api | MIT License |
android/libs/mvi/src/main/kotlin/io/chefbook/libs/mvi/MviState.kt | mephistolie | 379,951,682 | false | {"Kotlin": 1334117, "Ruby": 16819, "Swift": 352} | package io.chefbook.libs.mvi
interface MviState
| 0 | Kotlin | 0 | 12 | ddaf82ee3142f30aee8920d226a8f07873cdcffe | 49 | chefbook-mobile | Apache License 2.0 |
src/main/kotlin/pwr/aiir/Application.kt | tomasouza | 498,934,453 | false | null | package com.giacom
import io.micronaut.runtime.Micronaut.*
import io.swagger.v3.oas.annotations.*
import io.swagger.v3.oas.annotations.info.*
@OpenAPIDefinition(
info = Info(
title = "demo-testcontainers",
version = "0.0"
)
)
object Api {
}
fun main(args: Array<String>) {
build()
... | 1 | Kotlin | 0 | 0 | 9911007bc866d66f7fe011bf9cf511546ea5fcfb | 374 | web | MIT License |
src/commonMain/kotlin/org/daiv/tick/FileDataCreator.kt | henry1986 | 625,890,395 | false | null | package org.daiv.tick
interface Intervalable {
val interval: Long
}
interface FileDataFactory : Intervalable {
fun <R : DataCollection> fileData(time: Long, fileData: (Long, Long) -> R): R {
val fileStart = time / interval * interval
val fileEnd = fileStart + interval
return fileData(f... | 0 | Kotlin | 0 | 0 | 2d78ac69fe3ddc6cc4774d05baca2136cffe2940 | 960 | timebased-datacompress | Apache License 2.0 |
modules/domain/src/main/java/eu/automateeverything/domain/automation/blocks/ChangeStateBlockFactory.kt | tomaszbabiuk | 488,678,209 | false | {"Kotlin": 498866, "Vue": 138384, "JavaScript": 51377, "HTML": 795} | /*
* Copyright (c) 2019-2022 Tomasz Babiuk
*
* 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 ... | 0 | Kotlin | 1 | 0 | f1163bb95b9497c70ed48db0bcaf4e7050218e7a | 2,354 | automate-everything | Apache License 2.0 |
z2-service-kotlin-plugin/src/hu/simplexion/z2/service/kotlin/ir/util/IrBuilder.kt | spxbhuhb | 667,868,480 | false | null | package hu.simplexion.z2.service.kotlin.ir.util
import hu.simplexion.z2.service.kotlin.ir.ServicePluginContext
import hu.simplexion.z2.service.kotlin.ir.proto.ProtoEnum
import org.jetbrains.kotlin.backend.common.ir.addDispatchReceiver
import org.jetbrains.kotlin.backend.common.lower.DeclarationIrBuilder
import org.jet... | 6 | null | 1 | 8 | 2421ce21026088e255d0b975a194a66c2f3a2b84 | 13,069 | z2-service | Apache License 2.0 |
codebase/android/core/testing/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/core/testing/alarmkit/TestAlarmKit.kt | Abhimanyu14 | 429,663,688 | false | {"Kotlin": 1908017} | package com.makeappssimple.abhimanyu.financemanager.android.core.testing.alarmkit
import com.makeappssimple.abhimanyu.financemanager.android.core.alarmkit.AlarmKit
public class TestAlarmKit : AlarmKit {
override suspend fun cancelReminderAlarm(): Boolean {
return true
}
override suspend fun setRe... | 11 | Kotlin | 0 | 3 | a9e7570d854c7738d0ad5bcf139fa9874fa83b21 | 373 | finance-manager | Apache License 2.0 |
android-uitests/testData/CatchUp/app/src/main/kotlin/io/sweers/catchup/ui/fragments/service/ImageAdapter.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (c) 2018 <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 ... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 11,531 | android | Apache License 2.0 |
app/src/main/java/org/wikipedia/dataclient/mwapi/media/MediaHelper.kt | dbrant | 28,157,306 | false | null | package org.wikipedia.dataclient.mwapi.media
import org.wikipedia.dataclient.Service
import org.wikipedia.dataclient.ServiceFactory
import org.wikipedia.dataclient.WikiSite
import java.util.HashMap
import io.reactivex.Observable
object MediaHelper {
private const val COMMONS_DB_NAME = "commonswiki"
/**
... | 1 | null | 0 | 2 | 33d4c162b0847ef4814d9ae7a6229d4877d8eb80 | 917 | apps-android-wikipedia | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bulk/Languagesquare.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.bulk
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.co... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 3,893 | VuesaxIcons | MIT License |
kotest-framework/kotest-framework-api/src/commonMain/kotlin/io/kotest/core/spec/style/scopes/DescribeSpecContainerContext.kt | nicorichard | 399,195,014 | true | {"Kotlin": 2834461, "CSS": 352, "Java": 145} | package io.kotest.core.spec.style.scopes
import io.kotest.common.ExperimentalKotest
import io.kotest.core.spec.resolvedDefaultConfig
import io.kotest.core.test.DescriptionName
import io.kotest.core.test.NestedTest
import io.kotest.core.test.TestCase
import io.kotest.core.test.TestContext
import io.kotest.core.test.Tes... | 0 | Kotlin | 0 | 0 | a1ea844df42befeb66199f3eec5b95ae9df9669f | 5,044 | kotest | Apache License 2.0 |
app/src/main/java/com/mita/todolistcomposeapp/ui/theme/Theme.kt | AHm1ta | 844,129,873 | false | {"Kotlin": 21596} | package com.mita.todolistcomposeapp.ui.theme
import android.app.Activity
import android.os.Build
import android.view.View
import android.view.Window
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.c... | 0 | Kotlin | 0 | 0 | 393320f8dad595cf6d6260e59d705685375de017 | 2,612 | ToDoListComposeApp | MIT License |
core-kotlin-modules/core-kotlin-numbers-2/src/main/kotlin/com/baeldung/evenodd/EvenOdd.kt | Baeldung | 260,481,121 | false | {"Kotlin": 1855665, "Java": 48276, "HTML": 4883, "Dockerfile": 292} | package com.baeldung.evenodd
fun isEven(value: Int) = value % 2 == 0
fun isOdd(value: Int) = value % 2 == 1 | 14 | Kotlin | 294 | 465 | f1ef5d5ded3f7ddc647f1b6119f211068f704577 | 108 | kotlin-tutorials | MIT License |
order-api/src/main/kotlin/ru/romanow/inst/services/order/model/PaymentStatus.kt | Romanow | 304,987,654 | false | {"Kotlin": 117029, "JavaScript": 2720, "Dockerfile": 2127, "HCL": 1533, "Shell": 1444} | package ru.romanow.inst.services.order.model
enum class PaymentStatus {
PAID,
CANCELED,
WAITING
}
| 5 | Kotlin | 4 | 3 | fd7c37f495511382a26109c1f634e1aaf6001bb9 | 111 | micro-services-v2 | MIT License |
samples/src/test/kotlin/type/P256PublicKey.kt | airgap-it | 460,351,851 | false | null | package type
import _utils.SamplesBase
import _utils.hexToBytes
import it.airgap.tezos.core.Tezos
import it.airgap.tezos.core.coder.encoded.decodeFromBytes
import it.airgap.tezos.core.coder.encoded.encodeToBytes
import it.airgap.tezos.core.type.encoded.P256PublicKey
import it.airgap.tezos.crypto.bouncycastle.BouncyCas... | 0 | Kotlin | 2 | 1 | c5af5ffdd4940670bd66842580d82c2b9d682d84 | 1,719 | tezos-kotlin-sdk | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.