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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
library/src/main/java/net/vrgsoft/library/ParseContent.kt | VRGsoftUA | 94,071,050 | false | null | package net.vrgsoft.library
data class ParseContent(
var success: Boolean = false,
var htmlCode: String = "",
var raw: String = "",
var title: String = "",
var description: String = "",
var url: String = "",
var finalUrl: String = "",
var canonicalUrl: String = "",
var metaTags: Map<String, String> =... | 3 | Kotlin | 3 | 49 | 6eb49be161d83cdc17986d10f85a3f2fb8cdc50b | 420 | Kotlin-Link-Parser | Apache License 2.0 |
validator-web/src/commonMain/kotlin/com.chrynan.validator/UrlValidator.kt | chRyNaN | 283,900,572 | false | null | package com.chrynan.validator
class UrlValidator : Validator<String?, String> {
companion object {
private val URL_REGEX = Regex(WebRegexConstants.WEB_URL)
private val AUTO_URL_REGEX = Regex(WebRegexConstants.AUTOLINK_WEB_URL)
}
override fun validate(input: String?): ValidationResult<Str... | 0 | Kotlin | 3 | 9 | 435169c7560f522c6319d19796919ce7a53fe8a1 | 560 | validator | Apache License 2.0 |
keel-bakery-plugin/src/main/kotlin/com/netflix/spinnaker/keel/bakery/api/ImageSpec.kt | nimakaviani | 267,638,742 | true | {"Kotlin": 1720771, "Java": 15301, "Shell": 1691} | package com.netflix.spinnaker.keel.bakery.api
import com.fasterxml.jackson.annotation.JsonIgnore
import com.netflix.spinnaker.keel.api.ResourceSpec
import com.netflix.spinnaker.keel.api.UnhappyControl
import com.netflix.spinnaker.keel.api.artifacts.ArtifactStatus
import com.netflix.spinnaker.keel.api.artifacts.BaseLab... | 0 | null | 0 | 0 | c6667679423ab3c1e063d3f95eab4e12ba8e80a4 | 924 | keel | Apache License 2.0 |
build-tools/agp-gradle-core/src/main/java/com/android/build/gradle/internal/tasks/UnsafeOutputsTask.kt | RivanParmar | 526,653,590 | false | null | /*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1 | null | 2 | 17 | a497291d77bba1aa34271808088fe1e8aab5efe2 | 2,086 | androlabs | Apache License 2.0 |
android/src/main/kotlin/com/shekarmudaliyar/social_share/SocialSharePlugin.kt | mpvirani | 458,516,349 | false | {"Kotlin": 33351, "Dart": 24597, "Objective-C": 22545, "Ruby": 2278, "Swift": 404} | package com.shekarmudaliyar.social_share
import android.app.Activity
import android.content.*
import android.content.pm.PackageManager
import android.content.pm.ResolveInfo
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Bundle
import android.os.Environment... | 0 | Kotlin | 1 | 0 | b714d8c27c2f37fe7afc98167e83aa1e81d4b614 | 30,345 | social_share | MIT License |
kotlinx-coroutines-debug/test/junit5/CoroutinesTimeoutInheritanceTest.kt | hltj | 151,721,407 | true | null | /*
* Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines.debug.junit5
import kotlinx.coroutines.*
import org.junit.jupiter.api.*
/**
* Tests that [CoroutinesTimeout] is inherited.
*
* This test class is not intended to be run manually... | 1 | Kotlin | 106 | 255 | 9565dc2d1bc33056dd4321f9f74da085e6c0f39e | 1,365 | kotlinx.coroutines-cn | Apache License 2.0 |
kwhen/src/commonMain/kotlin/ap/panini/kwhen/common/Merger.kt | Pahina0 | 804,021,638 | false | {"Kotlin": 80508} | package common
import DateTime
abstract class Merger(open val config: Config) {
/**
* regex that should be applied to every pattern for matching prefix (text before first time)
* */
open val prefixPattern: Regex by lazy { prefixMatchPattern }
/**
* regex that should be applied to every pa... | 0 | Kotlin | 0 | 1 | 445c9bcffacbc8bebd6743094f07a8e6a3050a5c | 1,339 | KWhen | Apache License 2.0 |
src/main/kotlin/br/com/zup/edu/keymanager/chavepix/client/bcb/PixDetailResponse.kt | jaacksonalves | 399,572,593 | true | {"Kotlin": 108088} | package br.com.zup.edu.keymanager.chavepix.client.bcb
import br.com.zup.edu.keymanager.chavepix.*
import br.com.zup.edu.keymanager.chavepix.carrega.ChavePixInfo
import br.com.zup.edu.keymanager.chavepix.carrega.ContaAssociadaInfo
import br.com.zup.edu.keymanager.chavepix.carrega.TitularInfo
import java.time.LocalDateT... | 0 | Kotlin | 0 | 0 | e11f987f10675ce553549f6a1c24e404a7f29a3c | 2,023 | orange-talents-06-template-pix-keymanager-grpc | Apache License 2.0 |
app/src/main/java/knf/kuma/search/GenresDialog.kt | xxspokiixx | 163,215,061 | true | {"Kotlin": 988561, "PHP": 267654, "Java": 121069, "CSS": 55991, "JavaScript": 50577, "HTML": 25952, "Ruby": 815} | package knf.kuma.search
import android.app.Dialog
import android.os.Bundle
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.FragmentManager
import java.util.*
class GenresDialog : DialogFragment() {
private var genres: MutableList<String> = ArrayL... | 0 | Kotlin | 0 | 0 | c8afbc6b80cba8551f305f49b3d43170deafcb60 | 2,022 | UKIKU | MIT License |
tachikoma-it/src/test/kotlin/com/sourceforgery/tachikoma/unsubscribe/UnsubscribeDecoderTest.kt | SourceForgery | 112,076,342 | false | null | package com.sourceforgery.tachikoma.unsubscribe
import com.sourceforgery.tachikoma.grpc.frontend.EmailId
import com.sourceforgery.tachikoma.grpc.frontend.unsubscribe.UnsubscribeData
import com.sourceforgery.tachikoma.testModule
import org.junit.Test
import org.kodein.di.DI
import org.kodein.di.DIAware
import org.kodei... | 7 | null | 3 | 5 | 12d8d0e0ccafaa8506b98d6269cae4f1bb228bf4 | 1,677 | tachikoma | Apache License 2.0 |
android/app/src/main/java/com/eathemeat/easytimer/screen/SettingScreen.kt | peter12757 | 616,378,789 | false | {"Kotlin": 42866} | package com.eathemeat.easytimer.screen
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
@Composable
fun SettingScreen() {
Text(text = "SettingPage")
}
@Preview
@Composable
fun SettingScreenPreview() {
SettingScreen()
} | 0 | Kotlin | 0 | 0 | 1aa19f82612ec4563c240c6a23dddbf786ac7754 | 314 | EasyTimer | Apache License 2.0 |
app/src/main/java/com/sandeep/womenincloudrvce/models/Task.kt | mssandeepkamath | 600,313,527 | false | {"Kotlin": 205073, "Java": 11104} | package earth.devgalileo.assimilator.models
import android.os.Parcel
import android.os.Parcelable
data class Task (
var title: String = "",
val createdBy: String = "",
var cards: ArrayList<Card> = ArrayList()
): Parcelable {
constructor(parcel: Parcel) : this(
parcel.readString()!!,
pa... | 0 | Kotlin | 1 | 1 | fc0bfc3b717a681f504c7a438460798d4c7620d5 | 913 | women-in-cloud-rvce-android | MIT License |
scripts/ChatColorGenerator.kts | Spikot | 129,165,327 | false | null | fun transform(text: String): String {
val lower = text.toLowerCase()
var upper = false
val builder = StringBuilder()
lower.forEach {
if (it == '_') {
upper = true
} else {
if (upper) {
upper = false
builder.append(it.toUpperCase())
... | 0 | Kotlin | 3 | 11 | a44e2c9ad3203f3ea1bbf65ae9ef53f6f6283d77 | 1,244 | SpikotLegacy | Apache License 2.0 |
app/src/main/java/com/raul/macias/wikiheroes/view/ui/search/SearchActivity.kt | xR4ULx | 313,670,556 | false | null | package com.raul.macias.wikiheroes.view.ui.search
import android.app.ActivityOptions
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.os.Parcelable
import android.util.Pair
import android.view.View
import android.view.inputmethod.EditorInfo
import android.view.inputm... | 1 | null | 1 | 1 | d76d4736780b156d2b8133e794cca2de6b408f28 | 15,741 | kotlin_api_marvel | MIT License |
box/src/main/kotlin/com/mrt/box/core/BoxOutput.kt | myrealtrip | 237,138,426 | false | null | package com.mrt.box.core
/**
* Created by jaehochoe on 2020-01-01.
*/
sealed class BoxOutput<out S : BoxState, out E : BoxEvent, out SE : BoxSideEffect> {
abstract val from: S
abstract val event: E
data class Valid<out S : BoxState, out E : BoxEvent, out SE : BoxSideEffect>(
override val from: S... | 1 | Kotlin | 3 | 40 | 516c142a4234a8b9b5b468b23bb9cbfd65eaf8d6 | 602 | box | The Unlicense |
core/src/commonMain/kotlin/com/lehaine/littlekt/graphics/g2d/font/internal/GpuGlyphWriter.kt | littlektframework | 442,309,478 | false | {"Kotlin": 2285392} | package com.lehaine.littlekt.graphics.g2d.font.internal
import com.lehaine.littlekt.file.ByteBuffer
/**
* @author <NAME>
* @date 1/5/2022
*/
internal object GpuGlyphWriter {
fun writeGlyphToBuffer(
buffer: ByteBuffer,
curves: List<Bezier>,
glyphWidth: Int,
glyphHeight: Int,
... | 14 | Kotlin | 9 | 291 | 89f372fd18e47998d9b1d3add93ba92e4dcaca6e | 1,566 | littlekt | Apache License 2.0 |
app/src/main/java/com/duckduckgo/app/feedback/ui/negative/brokensite/BrokenSiteNegativeFeedbackFragment.kt | duckduckgo | 78,869,127 | false | null | /*
* Copyright (c) 2019 DuckDuckGo
*
* 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 ... | 67 | null | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 3,102 | Android | Apache License 2.0 |
app/src/main/java/com/moataz/afternoonhadeeth/ui/videos/adapter/VideosTopListAdapter.kt | ahmed-tasaly | 533,010,125 | false | null | package com.moataz.afternoonhadeeth.ui.videos.adapter
import android.annotation.SuppressLint
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.mo... | 0 | Kotlin | 0 | 1 | ec70b362b5966475693e7f7a406a397ee08099d4 | 2,327 | Sunset-Hadith-Market | Apache License 2.0 |
src/main/kotlin/io/github/pursuewind/intellij/plugin/generate/CodeGenerator.kt | pursue-wind | 634,922,477 | false | {"Kotlin": 78430, "HTML": 1115, "FreeMarker": 500} | package io.github.pursuewind.intellij.plugin.generate
import io.github.pursuewind.intellij.plugin.generate.getset.PostfixData
interface CodeGenerator {
fun generate(postfixData: PostfixData): String =""
} | 0 | Kotlin | 0 | 1 | 818c0e23147c129d8ad45095482c8dbd2f7451d4 | 210 | intellij-plugin-bobobox | Apache License 2.0 |
app/src/main/java/net/xblacky/animexstream/utils/model/EpisodeInfo.kt | justdvnsh | 270,673,285 | false | null | package net.xblacky.animexstream.utils.model
data class EpisodeInfo(
var vidcdnUrl: String? =null,
var nextEpisodeUrl: String? = null,
var previousEpisodeUrl: String? = null
) | 0 | null | 1 | 3 | 667434d34e3f66767c1e317db3c4eeab0d365dee | 188 | AnimeXStream | MIT License |
miniplate-app/src/main/java/com/sample/miniplate/android/ui/splash/MiniplateSplashActivity.kt | droidpl | 153,784,171 | false | null | package com.sample.miniplate.android.ui.splash
import com.sample.miniplate.android.base.MiniplatePresenterActivity
/**
* Created by <EMAIL> on 8/21/17.
*/
class MiniplateSplashActivity: MiniplatePresenterActivity<MiniplateSplashPresenter>(), MiniplateSplashView {
override fun createPresenter(): MiniplateSplash... | 0 | Kotlin | 0 | 0 | a535fedfff57c1eeba75fce133494fd0605555b7 | 364 | miniplate-android | MIT License |
app/src/main/java/com/alexbezhan/instagram/screens/login/LoginActivity.kt | alexbezhan | 129,704,036 | false | null | package ru.clearline.instagram.screens.login
import android.arch.lifecycle.Observer
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.View
import ru.clearline.instagram.R
import ru.clearline.instagram.screens.common.BaseActivity
import ru.clearline.instagram.screens.com... | 4 | null | 58 | 177 | a55df4aa21d4c728fc415483796a98cf2c288be2 | 2,398 | Instagram-Clone-Kotlin | MIT License |
buttons.kt | mohi0 | 858,659,707 | false | {"Kotlin": 3697} | // code for buttons, switches, toggle widgets
@Composable
fun MToggleSwitch(value: Boolean, onToggle: (value: Boolean)->Unit){
Row(modifier = Modifier
.height(20.dp)
.width(40.dp)
.clip(CircleShape)
.background(Color.LightGray)
.border(1.dp, Color.Gray)){
if (value){
... | 0 | Kotlin | 0 | 0 | fa7de45793d751c2c6378e1998eaa59cc552066f | 1,353 | SummerCampUI | Apache License 2.0 |
app/src/main/java/com/rarilabs/rarime/modules/profile/ExportKeysScreen.kt | rarimo | 775,551,013 | false | {"Kotlin": 1036626, "Java": 86126, "C++": 17305, "C": 5321, "CMake": 1262} | package com.rarilabs.rarime.modules.profile
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.f... | 1 | Kotlin | 0 | 5 | c92dd78d59c40a09370acaded9ea5b01e80dc10d | 3,620 | rarime-android-app | MIT License |
libs/docker-client/src/integrationTest/kotlin/batect/integrationtests/ImageClientIntegrationTest.kt | viniciussalmeida | 330,515,605 | true | {"Kotlin": 3777014, "Python": 32167, "Groovy": 27495, "Shell": 22487, "PowerShell": 6949, "Dockerfile": 5467, "Batchfile": 3234, "Java": 1421, "HTML": 745} | /*
Copyright 2017-2021 <NAME>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | 0 | null | 0 | 0 | 1013e57de23f9b493606fb246264a44d4a13b048 | 3,721 | batect | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/EditLocationOutlined.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/EditLocationOutlined")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val EditLocationOutlined: SvgIconComponent
| 10 | null | 5 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 222 | kotlin-wrappers | Apache License 2.0 |
s4-repository-layer/final-project/app/src/main/java/com/droidcon/easyinvoice/ui/utils/Symbols.kt | droidcon-academy | 557,290,152 | false | null | package com.droidcon.easyinvoice.ui.utils
const val INR = "₹" | 0 | Kotlin | 0 | 0 | df32960315a4a501893a478daf4f61ae4149cfb3 | 62 | android-room-database-course-materials | Apache License 2.0 |
educational-core/testSrc/com/jetbrains/edu/learning/marketplace/MarketplaceUpdateCheckerTest.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.learning.marketplace
import com.jetbrains.edu.learning.course
import com.jetbrains.edu.learning.courseFormat.EduCourse
import com.jetbrains.edu.learning.marketplace.api.MarketplaceConnector
import com.jetbrains.edu.learning.marketplace.api.MockMarketplaceConnector
import com.jetbrains.edu.lea... | 7 | null | 49 | 99 | cfc24fe13318de446b8adf6e05d1a7c15d9511b5 | 3,079 | educational-plugin | Apache License 2.0 |
java-to-kotlin/src/main/kotlin/lec12/Person.kt | JinseongHwang | 629,867,831 | false | {"Kotlin": 29011, "Java": 14569} | package lec12
class Person private constructor(
private val name: String,
private val age: Int,
) {
companion object {
private const val MIN_AGE: Int = 1
@JvmStatic
fun newBaby(name: String): Person {
return Person(name, MIN_AGE)
}
}
}
fun main() {
val ... | 0 | Kotlin | 0 | 2 | 445aec00ceb19bca3cc96494edd849bfebcc91b2 | 361 | kotlin-playground | MIT License |
app/src/main/java/com/megatest/myapplication/framework/presentation/list/state/TransactionListSateEvent.kt | jizhe7550 | 389,287,987 | false | null | package com.megatest.myapplication.framework.presentation.list.state
import com.megatest.myapplication.business.domain.state.StateEvent
sealed class TransactionListSateEvent: StateEvent {
object GetAllTransactionsInCacheEvent: TransactionListSateEvent() {
override fun errorInfo(): String {
r... | 0 | Kotlin | 2 | 0 | 7db69c94205810d6a9569c517dc644b4bfbb9c05 | 544 | BudgetExpenseApp | MIT License |
android/app/src/main/java/com/algorand/android/utils/CurrencyUtils.kt | AllanMangeni | 412,352,101 | true | {"Kotlin": 1709104} | /*
* Copyright 2019 Algorand, 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 in writing, s... | 1 | Kotlin | 0 | 1 | d47f08026fa797ea6474622ce5d1990666a241e9 | 989 | algorand-wallet | Apache License 2.0 |
lib/src/main/kotlin/com/lemonappdev/konsist/api/provider/KoDeclarationProvider.kt | LemonAppDev | 621,181,534 | false | {"Kotlin": 2114775, "Python": 13962} | package com.lemonappdev.konsist.api.provider
import com.lemonappdev.konsist.api.declaration.KoBaseDeclaration
/**
* An interface representing a Kotlin declaration that provides information about declarations.
*/
interface KoDeclarationProvider : KoBaseProvider {
/**
* The declarations present in the declar... | 8 | Kotlin | 11 | 595 | 2e33b6f26741d709ad63fa8c637c57208330aea9 | 5,339 | konsist | Apache License 2.0 |
seskar/seskar-compiler-plugin/src/main/kotlin/seskar/compiler/workers/backend/WorkerFactoryTransformer.kt | turansky | 279,976,108 | false | {"Kotlin": 148063, "JavaScript": 1520, "Shell": 459, "HTML": 302} | package seskar.compiler.workers.backend
import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
import org.jetbrains.kotlin.ir.IrStatement
import org.jetbrains.kotlin.ir.declarations.IrProperty
import org.jetbrains.kotlin.ir.declarations.name
import org.jetbrains.kotlin.ir.util.file
import org.jetbrains.... | 0 | Kotlin | 7 | 53 | fd8be63786b9c427ac718772655a9d1f86da57f7 | 1,248 | seskar | Apache License 2.0 |
mui-kotlin/src/jsMain/kotlin/mui/base/OptionUnstyled.types.kt | karakum-team | 387,062,541 | false | null | // Automatically generated - do not modify!
package mui.base
import web.cssom.ClassName
external interface OptionUnstyledProps<TValue> :
OptionUnstyledOwnProps<TValue> {
var component: react.ElementType<*>?
}
external interface OptionUnstyledOwnProps<TValue> :
react.PropsWithChildren,
react.PropsWit... | 0 | Kotlin | 3 | 31 | d1ea32754f43e696f6b3e946692c2e81f25ad6ae | 1,302 | mui-kotlin | Apache License 2.0 |
test/src/commonMain/kotlin/test/Sample.kt | siloni-hub | 369,211,487 | true | {"Kotlin": 288455, "SWIG": 5989, "CMake": 2692, "Java": 974} | /*
* Copyright 2020 Realm 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 in wr... | 0 | null | 0 | 0 | ac907a06d8166f2bc33a9e3f3c158b5e47df31d0 | 996 | realm-kotlin | DOC License |
misk-metrics/src/testFixtures/kotlin/misk/metrics/v2/CollectorRegistryModule.kt | cashapp | 113,107,217 | false | {"Kotlin": 3843790, "TypeScript": 232251, "Java": 83564, "JavaScript": 5073, "Shell": 3462, "HTML": 1536, "CSS": 58} | package misk.metrics.v2
import io.prometheus.client.Collector
import io.prometheus.client.CollectorRegistry
import io.prometheus.client.Predicate
import io.prometheus.client.SimpleCollector
import misk.inject.KAbstractModule
import misk.testing.TestFixture
import java.util.Enumeration
internal class CollectorRegistry... | 169 | Kotlin | 169 | 400 | 13dcba0c4e69cc2856021270c99857e7e91af27d | 2,000 | misk | Apache License 2.0 |
test.kt | jwerle | 174,743,481 | false | null | import datkt.tape.test
import kargv.parse
fun main(argv: Array<String>) {
test("""
fun <T : Any> parse(
argv: Array<String>,
model: T,
handler: (T, Node) -> Any?
): T? """.trimMargin().trimIndent().replace("\n", "")) { t ->
class Model(
var a: String = "",
var b: String = "... | 0 | Kotlin | 0 | 1 | 7e239bdb1f9a61db18b366e63d234d49ecaabaf6 | 2,613 | kargv | MIT License |
ktor-http/ktor-http-cio/jvm/src/io/ktor/http/cio/Multipart.kt | LloydFinch | 166,520,021 | false | null | /*
* Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.http.cio
import io.ktor.http.cio.internals.*
import io.ktor.network.util.*
import io.ktor.util.*
import kotlinx.coroutines.*
import kotlinx.coroutines.CancellationException
im... | 0 | null | 1 | 2 | 9b9fc6c3b853c929a806c65cf6bf7c104b4c07fc | 18,040 | ktor | Apache License 2.0 |
jetpackmvvm/src/main/java/com/simplation/mvvm/app/ext/AppExt.kt | Simplation | 324,966,218 | false | null | package com.simplation.mvvm.app.ext
import android.content.Intent
import android.net.Uri
import android.text.TextUtils
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.navigation.NavController
import com.afollestad.materialdialogs.MaterialDialog
import com.afollesta... | 0 | Kotlin | 0 | 2 | 9116550267238e6f8dba8ee3e88f51daecd67a38 | 5,482 | LearnJetpack | Apache License 2.0 |
jvm/jvm-analysis-impl/src/com/intellij/codeInspection/test/junit/JUnitMalformedDeclarationInspection.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.
package com.intellij.execution.junit.codeInspection
import com.intellij.codeInsight.AnnotationUtil
import com.intellij.codeInsight.AnnotationUtil.CHECK_HIERARCHY
import com.intellij.codeInsight.Meta... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 64,136 | intellij-community | Apache License 2.0 |
app/src/main/kotlin/com/example/app/HelloApp.kt | jensbarthel | 713,360,193 | false | {"Kotlin": 9283, "Dockerfile": 408} | package com.example.app
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.properties.ConfigurationPropertiesScan
import org.springframework.boot.runApplication
import org.springframework.context.annotation.ComponentScan
@SpringBootApplication
@ComponentScan("... | 0 | Kotlin | 0 | 0 | 099e86235c2dc018789215961e9c3f6d5c32f671 | 714 | azure-kotlin-function-graal-spring | Apache License 2.0 |
app/src/main/java/com/neuralbit/letsnote/room/relationships/LabelWIthNotes.kt | NormanGadenya | 421,601,972 | false | {"Kotlin": 373046, "Java": 20226} | package com.neuralbit.letsnote.room.relationships
import androidx.room.Embedded
import androidx.room.Relation
import com.neuralbit.letsnote.room.entities.Label
import com.neuralbit.letsnote.room.entities.Note
data class LabelWIthNotes(
@Embedded val label : Label,
@Relation(
parentColumn = "labelColor... | 0 | Kotlin | 0 | 4 | 7e7295e5a35d5413ee660c2af8022ee991706af1 | 394 | Lets-Note-App | Apache License 2.0 |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/ClockLock.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.regular
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Regular.ClockLock: ImageVector
get() {
if (_clockLock != null) {
... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 2,627 | compose-fluent-ui | Apache License 2.0 |
app/src/main/java/com/creativedrewy/nativ/ui/AddressListScreen.kt | Rvjain | 393,466,003 | true | {"Kotlin": 68327} | package com.creativedrewy.nativ.ui
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layo... | 0 | null | 0 | 0 | 5335765b90819427e96f1876ca3d7868eafbad5d | 3,340 | NATIV | Apache License 2.0 |
reaktive/src/commonTest/kotlin/com/badoo/reaktive/observable/ObservableByEmitterTest.kt | badoo | 174,194,386 | false | {"Kotlin": 1507792, "Swift": 2268, "HTML": 956} | package com.badoo.reaktive.observable
import com.badoo.reaktive.disposable.Disposable
import com.badoo.reaktive.test.base.assertDisposed
import com.badoo.reaktive.test.base.assertError
import com.badoo.reaktive.test.base.assertNotError
import com.badoo.reaktive.test.base.assertSubscribed
import com.badoo.reaktive.test... | 2 | Kotlin | 57 | 1,171 | 26788ab67ef85e2e3971e5bc79cce4ed9e3b5636 | 9,403 | Reaktive | Apache License 2.0 |
analysis/symbol-light-classes/tests/org/jetbrains/kotlin/light/classes/symbol/base/service/symbolLightClassTestUtils.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2023 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.light.classes.symbol.base.service
import org.jetbrains.kotlin.asJava.PsiClassRen... | 157 | Kotlin | 5411 | 43,797 | a8f547d080724fae3a45d675a16c5b3fc2f13b17 | 748 | kotlin | Apache License 2.0 |
tensorflow-lite-examples-common/src/main/java/com/dailystudio/tflite/example/common/image/AbsImageAnalyzer.kt | dailystudio | 267,263,865 | false | null | package com.dailystudio.tflite.example.common.image
import android.annotation.SuppressLint
import android.graphics.Bitmap
import android.os.Environment
import android.util.Size
import androidx.camera.core.ImageAnalysis
import androidx.camera.core.ImageProxy
import com.dailystudio.devbricksx.GlobalContextWrapper
import... | 1 | Kotlin | 6 | 17 | 62910b05ff88b6817d75082a5b93d26c2289c43e | 5,265 | tensorflow-lite-examples-android | Apache License 2.0 |
adaptive-core/src/commonMain/kotlin/fun/adaptive/adat/metadata/AdatPropertyMetadata.kt | spxbhuhb | 788,711,010 | false | {"Kotlin": 2318583, "Java": 24560, "HTML": 7875, "JavaScript": 3880, "Shell": 687} | /*
* Copyright © 2020-2024, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package `fun`.adaptive.adat.metadata
import `fun`.adaptive.adat.Adat
import `fun`.adaptive.adat.AdatClass
import `fun`.adaptive.adat.AdatCompanion
import `fun`.adaptive.adat.descriptor... | 35 | Kotlin | 0 | 3 | e7d8bb8682a6399675bc75d2976b862268d20fb5 | 5,029 | adaptive | Apache License 2.0 |
privacysandbox/activity/activity-provider/src/main/java/androidx/privacysandbox/activity/provider/SdkActivityLauncherFactory.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 937 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 2,930 | androidx | Apache License 2.0 |
quickDoctor/app/src/main/java/com/example/quickdoctor/repository/HospitalRepository.kt | margi24 | 248,317,241 | false | {"Kotlin": 71499} | package com.example.quickdoctor.repository
import com.example.quickdoctor.data.Hospital
import com.example.quickdoctor.data.request.HospitalRequest
class HospitalRepository {
suspend fun getHospitals(): List<Hospital> {
var result = emptyList<Hospital>()
try {
result = HospitalRemote... | 0 | Kotlin | 0 | 0 | b0e6c48dfcef0ee1340028abe04382d9bc51784d | 912 | chat-appointment-notDONE | Apache License 2.0 |
libnavigation-core/src/main/java/com/mapbox/navigation/module/NavigationModuleProvider.kt | niilante | 239,169,427 | false | null | package com.mapbox.navigation.core.module
import com.mapbox.annotation.MODULE_CONFIGURATION_CLASS_NAME_FORMAT
import com.mapbox.annotation.MODULE_CONFIGURATION_PROVIDER_METHOD_FORMAT
import com.mapbox.annotation.MODULE_CONFIGURATION_PROVIDER_VARIABLE_NAME
import com.mapbox.annotation.MODULE_CONFIGURATION_SKIPPED_CLASS... | 1 | null | 1 | 1 | f1e5d047665617c4ef32a3b4b5c9ab29d0ecaa93 | 4,509 | mapbox-navigation-android | Apache License 2.0 |
example/src/main/java/com/uploadcare/android/example/viewmodels/CdnViewModel.kt | uploadcare | 45,728,119 | false | {"Kotlin": 394871, "Java": 1370} | package com.uploadcare.android.example.viewmodels
import android.app.Application
import android.content.Context
import androidx.annotation.StringRes
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.MutableLiveData
import com.uploadcare.android.example.R
import com.uploadcare.android.library.addon.A... | 2 | Kotlin | 12 | 13 | 9409572d2b617cc622c11c19b7dff7f0f11ac5b2 | 5,258 | uploadcare-android | Apache License 2.0 |
domain/src/test/kotlin/no/nav/su/se/bakover/domain/brev/PdfInnholdTest.kt | navikt | 227,366,088 | false | null | package no.nav.su.se.bakover.domain.brev
import no.nav.su.se.bakover.common.februar
import no.nav.su.se.bakover.common.januar
import no.nav.su.se.bakover.common.objectMapper
import no.nav.su.se.bakover.domain.Beløp
import no.nav.su.se.bakover.domain.Fnr
import no.nav.su.se.bakover.domain.MånedBeløp
import no.nav.su.se... | 6 | Kotlin | 0 | 1 | fbeb1614c40e0f6fce631d4beb1ba25e2f78ddda | 10,707 | su-se-bakover | MIT License |
http4k-security/oauth/src/test/kotlin/org/http4k/security/oauth/server/GenerateAccessTokenTest.kt | http4k | 86,003,479 | false | null | package org.http4k.security.oauth.server
import com.natpryce.hamkrest.and
import com.natpryce.hamkrest.assertion.assertThat
import com.natpryce.hamkrest.equalTo
import org.http4k.core.*
import org.http4k.core.Status.Companion.BAD_REQUEST
import org.http4k.core.Status.Companion.OK
import org.http4k.core.Status.Companio... | 34 | null | 249 | 2,615 | 7ad276aa9c48552a115a59178839477f34d486b1 | 6,478 | http4k | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/LinkAlt.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.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.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mite... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,229 | icons | MIT License |
mobile/src/main/java/com/sonnyrodriguez/fittrainer/fittrainerbasic/database/WorkoutObject.kt | sonnytron | 98,830,747 | false | null | package com.sonnyrodriguez.fittrainer.fittrainerbasic.database
import android.arch.persistence.room.*
import android.os.Parcel
import android.os.Parcelable
import com.sonnyrodriguez.fittrainer.fittrainerbasic.models.LocalExerciseObject
@Entity(tableName = "workouts")
data class WorkoutObject(@ColumnInfo(name = "worko... | 0 | Kotlin | 0 | 1 | def9c5e05a1c03efd3f815c4145b446f6a170692 | 1,240 | FitTrainerBasic | Apache License 2.0 |
app/src/main/java/com/cornellappdev/coffee_chats_android/models/Interest.kt | cuappdev | 237,100,389 | false | null | package com.cornellappdev.coffee_chats_android.models
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class Interest(
val id: Int,
val name: String,
val subtitle: String,
@Json(name = "img_url")
val imageUrl: String = ""
)
| 2 | Kotlin | 0 | 1 | f6376012b1f03530f89fed11c83bce1bbd12bbfc | 304 | pear-android | MIT License |
client/android/div-storage/src/test/java/com/yandex/div/storage/StubCursor.kt | divkit | 523,491,444 | false | {"Kotlin": 7327303, "Swift": 5164616, "Svelte": 1148832, "TypeScript": 912803, "Dart": 630920, "Python": 536031, "Java": 507940, "JavaScript": 152546, "CSS": 37870, "HTML": 23434, "C++": 20911, "CMake": 18677, "Shell": 8895, "PEG.js": 7210, "Ruby": 3723, "C": 1425, "Objective-C": 38} | package com.yandex.div.storage
import android.content.ContentResolver
import android.database.CharArrayBuffer
import android.database.ContentObserver
import android.database.Cursor
import android.database.DataSetObserver
import android.net.Uri
import android.os.Bundle
abstract class StubCursor: Cursor {
override ... | 5 | Kotlin | 128 | 2,240 | dd102394ed7b240ace9eaef9228567f98e54d9cf | 3,020 | divkit | Apache License 2.0 |
rssparser/src/main/java/com/prof/rssparser/caching/CachedFeed.kt | prof18 | 61,429,036 | false | null | package com.prof.rssparser.caching
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = CacheConstants.CACHED_FEEDS_TABLE_NAME)
internal class CachedFeed(
@PrimaryKey
@ColumnInfo(name = "url_hash")
var urlHash: Int,
@ColumnInfo... | 5 | null | 118 | 403 | 686eb4194dd5496bedca002a8194378b84e6115b | 559 | RSS-Parser | Apache License 2.0 |
src/main/java/io/fobo66/crypto/Lab3.kt | fobo66 | 152,875,715 | false | null | package io.fobo66.crypto
import org.apache.commons.cli.CommandLine
import org.apache.commons.cli.DefaultParser
import org.apache.commons.cli.Options
import org.apache.commons.cli.ParseException
import java.io.IOException
import java.nio.file.Files
import java.nio.file.Paths
import javax.xml.bind.DatatypeConverter
fu... | 1 | Kotlin | 0 | 0 | 745ad29a7afcb36399b988ce12d4fa9c4b5bc8e0 | 1,730 | BSUIRCryptoLab3 | The Unlicense |
src/main/kotlin/com/skeleton/common/utils/FileUtils.kt | freelife1191 | 398,951,098 | false | null | package com.skeleton.common.utils
import java.io.File
/**
* 파일처리 유틸
* Created by KMS on 2021/08/03.
*/
class FileUtils {
companion object {
/**
* delete
* @param files
*/
fun deleteFile(vararg files: File) {
for (file in files) {
if (file.... | 0 | Kotlin | 2 | 1 | 3beee9aed1414a764965490153b6ae0320208eb6 | 415 | kotlin-springboot-skeleton-apis | MIT License |
kotlin-mui-icons/src/main/generated/mui/icons/material/SignalCellularOff.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/SignalCellularOff")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val SignalCellularOff: SvgIconComponent
| 10 | null | 5 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 216 | kotlin-wrappers | Apache License 2.0 |
redwood-protocol-guest/src/commonMain/kotlin/app/cash/redwood/protocol/guest/ProtocolRedwoodComposition.kt | cashapp | 305,409,146 | false | null | /*
* Copyright (C) 2021 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 agre... | 98 | null | 73 | 1,648 | 3f14e622c2900ec7e0dfaff5bd850c95a7f29937 | 2,436 | redwood | Apache License 2.0 |
fontawesome/src/de/msrd0/fontawesome/icons/FA_FLAG_CHECKERED.kt | msrd0 | 363,665,023 | false | null | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 0 | Kotlin | 0 | 0 | 1358935395f9254cab27852457e2aa6c58902e16 | 2,581 | fontawesome-kt | Apache License 2.0 |
compiler/testData/loadJava/compiledKotlin/annotations/classes/EnumArgument.kt | JakeWharton | 99,388,807 | true | null | // TARGET_BACKEND: JVM
// ALLOW_AST_ACCESS
package test
import java.lang.annotation.ElementType
annotation class Anno(val t: ElementType)
@Anno(ElementType.METHOD) class Class {
@Anno(ElementType.PARAMETER) inner class Inner
@Anno(ElementType.TYPE) class Nested
@Anno(ElementType.ANNOTATION_TYPE) co... | 181 | Kotlin | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 337 | kotlin | Apache License 2.0 |
app/src/main/java/com/copper/debt/presentation/implementation/AddDebtPresenterImpl.kt | glebxhleb | 281,331,933 | false | null | package com.copper.debt.presentation.implementation
import com.copper.debt.App
import com.copper.debt.R
import com.copper.debt.common.*
import com.copper.debt.firebase.authentication.FirebaseAuthenticationInterface
import com.copper.debt.firebase.database.FirebaseDatabaseInterface
import com.copper.debt.model.*
import... | 0 | Kotlin | 0 | 0 | 3681f3b71d87c92234aec1da8a9a3493d6490ea9 | 8,632 | Debt | Apache License 2.0 |
jetbrains-core/tst/software/aws/toolkits/jetbrains/services/codewhisperer/CodeWhispererRecommendationManagerTest.kt | aws | 91,485,909 | false | {"Kotlin": 5578345, "C#": 96334, "Java": 20992, "Shell": 2920, "Dockerfile": 2209, "Batchfile": 77} | // Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.codewhisperer
import com.intellij.openapi.command.WriteCommandAction
import com.intellij.openapi.project.Project
import com.intellij.testFramework.Disposab... | 389 | Kotlin | 168 | 705 | 1f5e7365cd13ece32e682ecd46a058dd587edd11 | 3,971 | aws-toolkit-jetbrains | Apache License 2.0 |
app/src/main/java/com/domatix/yevbes/nucleus/sga/view/ui/DashboardInventoryFragment.kt | sm2x | 234,568,179 | true | {"Kotlin": 782306} | package com.domatix.yevbes.nucleus.sga.view.ui
import android.content.res.Configuration
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.app.ActionBarDrawerToggle
import android.support.v7.widget.DefaultItemAnimator
import android.support.v7.widget.DividerItemDecoration
import ... | 0 | null | 0 | 0 | 237e9496b5fb608f543e98111269da9b91a06ed3 | 7,567 | nucleus | MIT License |
personklient/personklient-infrastruktur/main/no/nav/tiltakspenger/libs/personklient/pdl/adressebeskyttelse/FellesAdressebeskyttelseKlient.kt | navikt | 585,932,206 | false | {"Kotlin": 214197, "Shell": 1193} | package no.nav.tiltakspenger.libs.personklient.pdl.adressebeskyttelse
import arrow.core.Either
import mu.KLogger
import no.nav.tiltakspenger.libs.common.AccessToken
import no.nav.tiltakspenger.libs.common.Fnr
import no.nav.tiltakspenger.libs.person.AdressebeskyttelseGradering
import no.nav.tiltakspenger.libs.personkli... | 0 | Kotlin | 0 | 0 | f092b8c522d380d892ed1e5dde3a961cb5694175 | 1,609 | tiltakspenger-libs | MIT License |
backend/data/src/main/kotlin/io/tolgee/development/testDataBuilder/data/OrganizationTestData.kt | tolgee | 303,766,501 | false | null | package io.tolgee.development.testDataBuilder.data
import io.tolgee.model.Organization
import io.tolgee.model.UserAccount
import io.tolgee.model.enums.OrganizationRoleType
class OrganizationTestData : BaseTestData() {
lateinit var franta: UserAccount
lateinit var pepa: UserAccount
lateinit var jirina: UserAccou... | 170 | null | 40 | 666 | 38c1064783f3ec5d60d0502ec0420698395af539 | 2,503 | tolgee-platform | Apache License 2.0 |
Hermes/Logger/src/main/java/com/spartancookie/hermeslogger/filters/ui/viewholders/BaseViewHolder.kt | RafaelsRamos | 352,183,568 | false | null | package com.spartancookie.hermeslogger.filters.ui.viewholders
import android.view.View
import androidx.recyclerview.widget.RecyclerView
/**
* ViewHolder class to be used by items present in [com.spartancookie.hermeslogger.ui.fragments.FiltersFragment]
*/
abstract class BaseViewHolder<T>(rootView: View): RecyclerVie... | 6 | null | 0 | 3 | 12007ddb2110f8585e50a86ede897366f4df3dff | 446 | HermesLogger | Apache License 2.0 |
app/src/main/java/com/shevelev/my_footprints_remastered/ui/activity_first_loading/fragment_loading_progress/model/LoadingProgressFragmentModel.kt | AlShevelev | 283,178,554 | false | null | package com.shevelev.my_footprints_remastered.ui.activity_first_loading.fragment_loading_progress.model
import com.shevelev.my_footprints_remastered.ui.activity_first_loading.fragment_loading_progress.dto.Event
import com.shevelev.my_footprints_remastered.ui.shared.mvvm.model.ModelBase
interface LoadingProgressFragme... | 0 | Kotlin | 0 | 1 | 6894f98fb439f30ef7a9988043ace059b844c81b | 436 | MyFootprints_remastered | Apache License 2.0 |
app/src/main/java/com/sky/android/news/data/source/NewsDataSource.kt | qianniaoge | 199,862,302 | true | {"Kotlin": 154968, "Java": 71026, "JavaScript": 2916} | /*
* Copyright (c) 2017 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 | f159b9dae4b628820c2ae177d162d6dbddc18f76 | 1,209 | android-news | Apache License 2.0 |
plugins/groovy/src/org/jetbrains/plugins/groovy/intentions/style/inference/MethodParameterAugmenter.kt | jmuchch | 304,496,677 | true | 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.plugins.groovy.intentions.style.inference
import com.intellij.openapi.util.RecursionManager
import com.intellij.openapi.util.registry.Registry
import com.in... | 0 | null | 0 | 0 | 59c2156cebc47ad05ecde54a2c415b23a18b758a | 3,315 | intellij-community | Apache License 2.0 |
common/common-tests/src/main/kotlin/ru/itbasis/gradle/common/tests/helpers.kt | itbasis | 303,078,207 | false | null | package ru.itbasis.gradle.common.tests
import org.gradle.api.Project
import org.gradle.api.artifacts.Configuration
import org.gradle.api.artifacts.component.ModuleComponentIdentifier
import org.gradle.kotlin.dsl.apply
import org.gradle.testfixtures.ProjectBuilder
import ru.itbasis.gradle.rootmodule.RootModulePlugin
f... | 1 | Kotlin | 0 | 1 | c059c3407aceb0823c9645841899ae19cd05a107 | 1,238 | fullstack-plugins | MIT License |
core/oauth2/impl/src/jvmMain/kotlin/ru/kyamshanov/mission/oauth2/generateCodeVerifier.kt | KYamshanov | 656,042,097 | false | {"Kotlin": 456764, "Batchfile": 2703, "HTML": 199, "Dockerfile": 195} | package ru.kyamshanov.mission.oauth2
import io.ktor.utils.io.core.toByteArray
import java.security.MessageDigest
import java.security.SecureRandom
import java.util.Base64
internal actual fun generateCodeVerifier(): String {
val secureRandom = SecureRandom()
val codeVerifier = ByteArray(32)
secureRandom.n... | 7 | Kotlin | 0 | 1 | 1367b1afd0b66d726fa3cc70362846bd01ab9951 | 794 | Mission-app | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnIPSetProps.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.waf.regional
import io.cloudshiftdev.awscdk.IResolvable
import io.cloudshiftdev.awscdk.common.CdkDslM... | 3 | null | 0 | 4 | ddf2bfd2275b50bb86a667c4298dd92f59d7e342 | 5,842 | kotlin-cdk-wrapper | Apache License 2.0 |
app/src/main/java/com/axel_stein/glucose_tracker/ui/glucose_report/GlucoseReportFactory.kt | AxelStein | 320,277,698 | false | null | package com.axel_stein.glucose_tracker.ui.edit.edit_weight
import androidx.lifecycle.AbstractSavedStateViewModelFactory
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.savedstate.SavedStateRegistryOwner
@Suppress("UNCHECKED_CAST")
class EditWeightFactory(
owner: Save... | 4 | Kotlin | 0 | 1 | d6f6877c33b960c8bcc1cfd2ff355071908891ec | 595 | GlucoseTracker | Apache License 2.0 |
vector/src/main/java/im/vector/app/core/pushers/FcmHelper.kt | tchapgouv | 340,329,238 | false | null | /*
* Copyright (c) 2022 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 4 | null | 4 | 9 | 9bd50a49e0a5a2a17195507ef3fe96594ddd739e | 1,643 | tchap-android | Apache License 2.0 |
app/src/main/java/br/com/wellingtoncosta/amdk/util/schedulers/TestSchedulerProvider.kt | wellingtoncosta | 115,824,145 | false | null | package br.com.wellingtoncosta.amdk.util.schedulers
import io.reactivex.Scheduler
import io.reactivex.schedulers.TestScheduler
/**
* @author wellingtoncosta on 05/02/18.
*/
class TestSchedulerProvider(private val testScheduler: TestScheduler) : BaseScheduler {
override fun io(): Scheduler {
return test... | 0 | null | 4 | 24 | e3b081346404e32852b1c4b402c77e58802148ac | 409 | android-mvvm-databinding-kotlin | MIT License |
src/main/kotlin/com/github/kerubistan/kerub/model/errors/HardwareError.kt | soloturn | 164,455,794 | true | {"Kotlin": 1728202, "Gherkin": 74051, "HTML": 73962, "JavaScript": 53966, "CSS": 754} | package com.github.kerubistan.kerub.model.errors
import com.github.kerubistan.kerub.model.Entity
import java.util.UUID
data class HardwareError(
override val id: UUID = UUID.randomUUID()
) : Entity<UUID> | 0 | Kotlin | 0 | 1 | 42b70cb9a182af4923a7f960c6df98284e03bab2 | 207 | kerub | Apache License 2.0 |
core/core-ktx/src/androidTest/java/androidx/core/util/PairTest.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 ap... | 29 | null | 937 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 2,557 | androidx | Apache License 2.0 |
app/src/main/java/com/moon/beautygirlkotlin/data/service/youmei/TaoService.kt | shichonghuotian | 130,451,148 | false | null | package com.moon.beautygirlkotlin.data.service.youmei
import com.moon.beautygirlkotlin.data.entity.GirlData
import com.moon.beautygirlkotlin.data.entity.Result
import com.moon.beautygirlkotlin.data.service.DataService
import com.moon.beautygirlkotlin.utils.DataUtil
import java.util.*
/**
* Created by Arthur on 2019-... | 1 | null | 1 | 1 | 6da51446c6ec62e250dc955aba3a043aaabc3808 | 856 | BeautyGirlKotlin | Apache License 2.0 |
app/src/main/java/dev/vengateshm/android_kotlin_compose_practice/multiple_screen_size/WindowInfo.kt | vengateshm | 670,054,614 | false | null | package dev.vengateshm.android_kotlin_compose_practice.multiple_screen_size
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalConfiguration
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
@Composable
fun rememberWindowInfo(): WindowInfo {
val configuration =... | 0 | null | 0 | 1 | 382c1b29f62f521b252e9b973de085496e51fdc1 | 1,360 | Android-Kotlin-Jetpack-Compose-Practice | Apache License 2.0 |
openrndr-draw/src/jsMain/kotlin/org/openrndr/draw/ColorBuffer.kt | openrndr | 122,222,767 | false | null | package org.openrndr.draw
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import org.khronos.webgl.ArrayBufferView
import org.khronos.webgl.TexImageSource
import org.openrndr.color.ColorRGBa
import org.openrndr.internal.Driver
import org.openrndr.shape.IntRectangle
import org.openrndr.shape.Rect... | 33 | null | 73 | 880 | 2ef3c463ecb66701771dc0cf8fb3364e960a5e3c | 5,735 | openrndr | BSD 2-Clause FreeBSD License |
app/src/main/java/com/mytests/testExam/domain/repository/IAnimalFactsRepository.kt | FredNekrasov | 766,574,196 | false | {"Kotlin": 49690} | package com.mytests.testExam.domain.repository
import com.mytests.testExam.domain.model.AnimalFacts
import com.mytests.testExam.domain.util.ConnectionStatus
import kotlinx.coroutines.flow.StateFlow
interface IAnimalFactsRepository {
suspend fun getList(animalType: String, amount: Int): StateFlow<Pair<ConnectionSt... | 0 | Kotlin | 0 | 1 | 7d7603c85380db9db2c5688367d7be76101640fb | 401 | my-tests | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/MessageDollar.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.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.Companion.Miter
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,775 | icons | MIT License |
rubik/rubik_plugins/src/main/java/ByVersion.kt | baidu | 504,447,693 | false | {"Kotlin": 607049, "Java": 37304} | const val BY_VERSION = "1.10.0.0-AGBT4_2-K1_5-LOCAL"
// KTNail plugin update.
// by [sync].
// at timestamp : 2024-05-22 12:51:23.
| 1 | Kotlin | 7 | 153 | 065ba8f4652b39ff558a5e3f18b9893e2cf9bd25 | 135 | Rubik | Apache License 2.0 |
sherlock-plugin/src/main/kotlin/com/quadible/sherlockplugin/GetOSNameTask.kt | St4B | 257,113,166 | false | null | package com.quadible.sherlockplugin
import org.gradle.api.Project
import org.gradle.api.tasks.Exec
import org.gradle.api.tasks.Internal
import java.io.ByteArrayOutputStream
open class GetOSNameTask : Exec() {
companion object {
internal const val TASK_NAME_GET_OPERATING_SYSTEM = "getOperatingSystem"
... | 0 | Kotlin | 0 | 3 | 8a57c2da88899a82c6a456bf326a9f93455795ea | 849 | Sherlock | Apache License 2.0 |
app/src/main/java/com/example/vehiclecontacting/Web/DiscussController/Comment.kt | Bngel | 366,048,859 | false | null | package com.example.vehiclecontacting.Web.DiscussController
import android.os.Parcel
import android.os.Parcelable
data class Comment(
val commentCounts: Int,
val comments: String,
val createTime: String,
val id: String,
val likeCounts: Int,
val number: String,
val replyDescription1: String... | 0 | Kotlin | 0 | 0 | 759ffa90c487d4472a79e20bf51ca35454cc7e65 | 3,069 | VehicleContacting | Apache License 2.0 |
app/src/main/java/com/karthik/splash/root/SplashAppModule.kt | adb-shell | 110,352,693 | false | null | package com.karthik.splash.root
import android.content.Context
import com.karthik.splash.misc.InternetHandler
import com.karthik.splash.storage.MemoryCache
import com.karthik.splash.storage.db.SplashDatabase
import dagger.Module
import dagger.Provides
import javax.inject.Singleton
@Module
class SplashAppModule(privat... | 0 | Kotlin | 0 | 0 | e801f36da18ff33bc8fc49ba3497a21653677261 | 753 | Splash | The Unlicense |
SpringBootApplication/src/main/kotlin/com/server/repository/user/UserRepository.kt | PhilJay | 233,428,899 | false | null | package com.server.repository.user
import com.server.repository.MongoRepositoryBase
interface UserRepository : MongoRepositoryBase<User> {
/**
* Searches for a user with the provided username.
* @param username: The username to search for.
*/
fun findByUsername(username: String?): User?
} | 18 | Kotlin | 2 | 9 | e16756de45a503f7f52ada6505ecb177793aa6ae | 314 | SpringAngular | Apache License 2.0 |
app/src/main/java/com/example/connectionsmanagement/ResultActivity.kt | toyyx | 674,488,487 | false | null | package com.example.connectionsmanagement
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.Color
import android.graphics.Matrix
import... | 0 | Kotlin | 0 | 0 | 9271f39e8a8470c8e03bba82a5783294c4d781b2 | 14,532 | ConnectionsManagement | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/unit/transformer/DocumentTransformerTest.kt | ministryofjustice | 515,276,548 | false | {"Kotlin": 6885855, "Shell": 8075, "Dockerfile": 1780} | package uk.gov.justice.digital.hmpps.approvedpremisesapi.unit.transformer
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import uk.gov.justice.digital.hmpps.approvedpremisesapi.api.model.Document
import uk.gov.justice.digital.hmpps.approvedpremisesapi.api.model.DocumentLevel
import... | 9 | Kotlin | 1 | 4 | bc7d57577d3f4c2521132c4a3da340e23729b0e5 | 3,223 | hmpps-approved-premises-api | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/apigatewayv2/ApiMappingPropsDsl.kt | F43nd1r | 643,016,506 | false | {"Kotlin": 5407210} | package com.faendir.awscdkkt.generated.services.apigatewayv2
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.apigatewayv2.ApiMappingProps
@Generated
public fun buildApiMappingProps(initializer: @AwsCdkDsl ApiMappingProps.Builder.() ->... | 1 | Kotlin | 0 | 4 | e80fe2769852069fdf68382f2ee677cc32dbe73f | 408 | aws-cdk-kt | Apache License 2.0 |
application/src/main/kotlin/tw/waterballsa/gaas/application/usecases/GetRoomsUseCase.kt | Game-as-a-Service | 623,554,204 | false | null | package tw.waterballsa.gaas.application.usecases
import tw.waterballsa.gaas.application.model.Pagination
import tw.waterballsa.gaas.application.repositories.RoomRepository
import tw.waterballsa.gaas.domain.Room
import javax.inject.Named
@Named
class GetRoomsUseCase(
private val roomRepository: RoomRepository,
) {... | 17 | null | 7 | 30 | 7ade0300a63adc7345349e9af2923b32b5f05a6e | 802 | Lobby-Platform-Service | Apache License 2.0 |
src/main/kotlin/com/atlassian/performance/tools/infrastructure/api/browser/Chrome.kt | konradmars | 411,616,266 | true | {"Kotlin": 167481} | package com.atlassian.performance.tools.infrastructure.api.browser
import com.atlassian.performance.tools.infrastructure.ChromedriverInstaller
import com.atlassian.performance.tools.infrastructure.api.os.Ubuntu
import com.atlassian.performance.tools.ssh.api.SshConnection
import java.net.URI
import java.time.Duration.o... | 0 | null | 0 | 0 | 861bef3a23c541d01e2d3f8f18efe1ef2a3002ec | 1,380 | infrastructure | Apache License 2.0 |
viewmodel/src/commonMain/kotlin/tech/skot/core/components/SKScreen.kt | skot-framework | 235,318,194 | false | {"Kotlin": 773248, "Shell": 117} | package tech.skot.core.components
import tech.skot.core.components.presented.SKBottomSheet
import tech.skot.core.components.presented.SKDialog
import tech.skot.core.view.SKTransition
abstract class SKScreen<V : SKScreenVC>: SKComponent<SKScreenVC>(), SKVisiblityListener {
var parent: SKStack? = null
var pres... | 1 | Kotlin | 4 | 6 | 8fcff82c719c9775e63da9c3808817704068cbba | 2,229 | skot | Apache License 2.0 |
tests/comparison.kt | gaultier | 306,967,556 | false | {"C": 199555, "Kotlin": 8333, "Makefile": 2654, "DTrace": 1635, "Dockerfile": 526} | fun main() {
println(1 < 2) // expect: true
println(5 >= 5) // expect: true
println(5 >= 6) // expect: false
println(0 <= 0) // expect: true
println(0>1) // expect: false
println(100>=999) // expect: false
println(1 == 1) // expect: true
println(0>1 == 100>=999) // expect: true
println(2 != 2) // expect: false
printl... | 0 | C | 0 | 4 | 67c65e046c26923e376fa7b7f3e842459b572759 | 348 | microkt | Creative Commons Zero v1.0 Universal |
notebooks/visualization/src/org/jetbrains/plugins/notebooks/visualization/r/inlays/components/GithubMarkdownCss.kt | ingokegel | 72,937,917 | true | null | /*
* Copyright 2000-2019 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.intellij.datavis.r.inlays.components
import com.intellij.util.ui.JBUI
import com.intellij.util.ui.UIUtil
import java.util.*
/** github-markdown.css as String... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,411 | intellij-community | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.