path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/no/nav/familie/ef/sak/vedtak/domain/Vedtak.kt | navikt | 206,805,010 | false | null | package no.nav.familie.ef.sak.vedtak.domain
import no.nav.familie.ef.sak.beregning.Inntektsperiode
import no.nav.familie.ef.sak.vedtak.dto.PeriodeMedBeløpDto
import no.nav.familie.ef.sak.vedtak.dto.ResultatType
import no.nav.familie.ef.sak.vedtak.dto.Sanksjonsårsak
import no.nav.familie.kontrakter.felles.annotasjoner.... | 7 | Kotlin | 2 | 0 | 79833410b98739f78b0c6019445e6502249cb0b2 | 4,297 | familie-ef-sak | MIT License |
gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/item/widget/type_avatar_attach/AttachAvatarDetachedNotify.kt | Anime-Game-Servers | 642,871,918 | false | {"Kotlin": 1651536} | package org.anime_game_servers.multi_proto.gi.data.item.widget.type_avatar_attach
import org.anime_game_servers.core.base.Version.GI_1_2_0
import org.anime_game_servers.core.base.Version.GI_1_5_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.RemovedIn
i... | 0 | Kotlin | 2 | 6 | 7639afe4f546aa5bbd9b4afc9c06c17f9547c588 | 599 | anime-game-multi-proto | MIT License |
src/main/kotlin/io/github/ytg1234/kordextbackgroundcat/util/internal/InternalUtilities.kt | YTG1234 | 337,484,883 | false | null | package io.github.ytg1234.kordextbackgroundcat.util.internal
import com.uchuhimo.konf.Config
import com.uchuhimo.konf.Feature
import com.uchuhimo.konf.source.toml
import io.github.ytg1234.kordextbackgroundcat.config.ProcessorSpec
import mu.KotlinLogging
import java.io.File
/**
* @suppress
*/
internal val logger = K... | 0 | Kotlin | 0 | 0 | 75b6a9a0915a0a57ab653129ce6c7b04f80b9632 | 1,278 | kordext-backgroundcat-base | MIT License |
lib/xlsx/src/commonMain/kotlin/zakadabar/lib/xlsx/internal/dom/Node.kt | spxbhuhb | 290,390,793 | false | {"Kotlin": 2348240, "HTML": 2835, "JavaScript": 1021, "Dockerfile": 269, "Shell": 253} | /*
* Copyright © 2020-2021, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package hu.simplexion.z2.xlsx.internal.dom
/**
* Simple Dom Node implementation
*
* create text node:
* @constructor(name, text)
*
*/
internal open class Node protected constructo... | 5 | Kotlin | 3 | 24 | 61ac92ff04eb53bff5b9a9b2649bd4866f469942 | 1,443 | zakadabar-stack | Apache License 2.0 |
module_character/src/main/kotlin/com/yizhenwind/booster/character/data/repository/SectInternalRepository.kt | WangZhiYao | 523,400,448 | false | null | package com.yizhenwind.booster.character.data.repository
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.flow.*
import com.yizhenwind.booster.common.model.SectInternal
import com.yizhenwind.booster.common.model.SectInternalList
import com.yizhenwind.booster.common.constant.PreferencesKey
import... | 0 | Kotlin | 0 | 1 | 27665819d3e65ba70727a5cc4eafc52b5e0fae2b | 2,969 | Booster | Apache License 2.0 |
platform/lang-api/src/com/intellij/refactoring/suggested/SuggestedRefactoringExecution.kt | hieuprogrammer | 284,920,751 | 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 com.intellij.refactoring.suggested
import com.intellij.psi.PsiElement
/**
* A service performing actual changes in the code when user executes suggested refactoring.
*... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 1,949 | intellij-community | Apache License 2.0 |
src/org/lukasj/idea/torquescript/editor/TSChooseByNameContributor.kt | lukaspj | 385,020,179 | false | null | package org.lukasj.idea.torquescript.editor
import com.intellij.navigation.ChooseByNameContributor
import com.intellij.navigation.NavigationItem
import com.intellij.openapi.project.Project
import org.lukasj.idea.torquescript.reference.ReferenceUtil
import org.lukasj.idea.torquescript.util.TSTypeLookupService
class TS... | 4 | Kotlin | 1 | 1 | c8d44b989f7a9f799d5fe5667f5b55986e8a94d4 | 1,473 | IDEA-TorqueScriptLanguage | MIT License |
src/main/kotlin/org/nissy/plugins/kotlin/utils/CustomPsiUtils.kt | takete2 | 633,756,751 | false | null | package org.nissy.plugins.kotlin.utils
import com.intellij.psi.PsiElement
import org.jetbrains.kotlin.psi.KtFile
class CustomPsiUtils {
companion object{
/**
* 找到表达式的命名方法节点/类节点
* 抽象语法中要保证T一定比K先到达 即T为K的子/孙节点
*/
inline fun <reified T : PsiElement, reified K : PsiElement> f... | 0 | Kotlin | 0 | 1 | 0c8ef04eb27912e3f001e69fb53634165b6a9b5d | 988 | KtCodeHelper | Apache License 2.0 |
app/src/main/java/ru/tech/imageresizershrinker/presentation/root/transformation/filter/UiSphereRefractionFilter.kt | T8RIN | 478,710,402 | false | {"Kotlin": 3715730, "Java": 466004, "C": 5410, "CMake": 1732} | package ru.tech.imageresizershrinker.presentation.root.transformation.filter
import android.graphics.Bitmap
import ru.tech.imageresizershrinker.R
import ru.tech.imageresizershrinker.domain.image.filters.Filter
class UiSphereRefractionFilter(
override val value: Pair<Float, Float> = 0.25f to 0.71f,
) : UiFilter<P... | 20 | Kotlin | 77 | 979 | 7d164a02c463afede47c785f8b182c954abfcde9 | 553 | ImageToolbox | Apache License 2.0 |
src/main/kotlin/eu/wojciechzurek/pwnedpasswordchecker/PwnedPassword.kt | wojciech-zurek | 152,474,706 | false | null | package eu.wojciechzurek.pwnedpasswordchecker
data class PwnedPassword(
val suffix: String,
val count: Int
) | 0 | Kotlin | 0 | 6 | aabcd8fd5dfbfc757fc8305ac05c052bb82e908f | 125 | pwned-password-checker | MIT License |
libtest/src/androidTest/java/com/cexdirect/lib/error/ErrorActivityTest.kt | decent-finance | 190,219,501 | false | {"Gradle": 7, "Shell": 3, "Java Properties": 2, "Ignore List": 3, "Batchfile": 1, "YAML": 3, "Markdown": 1, "Proguard": 3, "XML": 144, "Kotlin": 231, "Java": 6, "JSON": 5} | /*
* Copyright 2019 CEX.IO Ltd (UK)
*
* 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 applicab... | 1 | null | 1 | 1 | 0701a5be69007b1c9ffb3d03775410e413629417 | 9,301 | direct-android | Apache License 2.0 |
app/src/main/java/org/oppia/android/app/application/ApplicationInjector.kt | oppia | 148,093,817 | false | null | package org.oppia.android.app.application
import org.oppia.android.app.translation.AppLanguageApplicationInjector
import org.oppia.android.domain.locale.LocaleApplicationInjector
import org.oppia.android.util.data.DataProvidersInjector
import org.oppia.android.util.system.OppiaClockInjector
/** Injector for applicati... | 595 | Kotlin | 309 | 156 | 6e50236a4384189cd59b40cb128decbf125bdd26 | 532 | oppia-android | Apache License 2.0 |
EZBUILD/app/src/main/java/hr/itrojnar/ezbuild/model/messaging/constructionSite/ConstructionSitesResponse.kt | JOHNY705 | 551,821,854 | false | null | package hr.itrojnar.ezbuild.model.messaging.constructionSite
import android.os.Parcelable
import hr.itrojnar.ezbuild.model.viewModels.ConstructionSite
import kotlinx.parcelize.Parcelize
@Parcelize
data class ConstructionSitesResponse (
var constructionSites : ArrayList<ConstructionSite> = arrayListOf(),
var ... | 0 | Kotlin | 0 | 0 | d63c34cd8b1eac8eaf9e801628cb07c4ae258dfd | 455 | EzBuildApp | MIT License |
app/src/main/java/id/teman/app/mitra/ui/myaccount/history/OrderHistoryScreen.kt | RifqiFadhell | 681,463,824 | false | null | package id.teman.app.mitra.ui.myaccount.history
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundat... | 0 | Kotlin | 0 | 0 | 61a520bd14c97efcef108b0576760108f3f4a687 | 7,819 | Teman-App-Mitra-Mobile | Apache License 2.0 |
sensorcontrol/src/main/java/com/duzi/sensorcontrol/MainActivity.kt | pennya | 172,878,710 | false | null | package com.duzi.sensorcontrol
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.Toast
import ... | 1 | null | 1 | 1 | e0826fccc28a1afc423ae39906fd8e3ddbb548c4 | 2,723 | AndroidSamples | MIT License |
src/main/kotlin/Semaphore.kt | GustavoStingelin | 578,286,257 | false | {"Kotlin": 13252} | import kotlinx.coroutines.async
import kotlinx.coroutines.awaitAll
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.sync.Semaphore
suspend fun <T, R> Iterable<T>.map(
concurrency: Int,
transform: suspend (T) -> R
): List<R>... | 0 | Kotlin | 0 | 0 | 202565f42d8c8b665b4276eb8fd126f90c96347a | 802 | kotlin-coroutines-examples | Apache License 2.0 |
src/main/kotlin/org/t246osslab/easybuggy4kt/exceptions/CannotUndoExceptionController.kt | k-tamura | 107,135,934 | false | null | package org.t246osslab.easybuggy4kt.exceptions
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.RequestMapping
import javax.swing.undo.UndoManager
@Controller
class CannotUndoExceptionController {
@RequestMapping(value = "/cue")
fun process() {
UndoManag... | 0 | Kotlin | 4 | 3 | 837775d00038e482647a6fcbe1c8ddfed0ef906f | 339 | easybuggy4kt | Apache License 2.0 |
app/src/main/java/com/phantom/banguminote/data/ImageData.kt | PhantomLGZ | 741,144,233 | false | {"Kotlin": 247864} | package com.phantom.banguminote.data
data class ImageData(
val large: String?,
val common: String?,
val medium: String?,
val small: String?,
val grid: String?
)
| 0 | Kotlin | 0 | 3 | 9d8f7be07379eb39106e2f0969d5f9350d7f3e34 | 182 | BangumiNote | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/GarageCar.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 | 3,892 | icons | MIT License |
core/src/commonMain/kotlin/com/xebia/functional/xef/prompt/Prompt.kt | xebia-functional | 629,411,216 | false | null | package com.xebia.functional.xef.prompt
import arrow.core.fold
import kotlin.jvm.JvmInline
@JvmInline value class Prompt(val message: String)
fun String.prompt(): Prompt = Prompt(this)
fun Prompt.prepend(text: String) = Prompt(text + message)
operator fun Prompt.plus(other: Prompt): Prompt = Prompt(message + other... | 18 | Kotlin | 7 | 85 | 19243b04b107990c9cf549703d7e9d738aab0444 | 599 | xef | Apache License 2.0 |
app/src/main/java/com/wonrax/mybk/model/exam/CourseExam.kt | wonrax | 402,995,991 | false | {"Kotlin": 143985, "Shell": 182} | package com.wonrax.mybk.model.exam
class CourseExam(
val gio_kt: String? = null,
val gio_thi: String? = null,
// val hk_nh: String? = null,
// val kq: String? = null,
val ma_mh: String? = null,
// val ma_nhom: String? = null,
// val ma_to: String? = null,
// val mssv: String? = null,
// v... | 4 | Kotlin | 1 | 7 | 418854c5660f1a12d1027936a1197ef0313659f2 | 745 | mybk-mobile | MIT License |
kontroller/src/main/kotlin/no/ssb/kostra/validation/rule/barnevern/AvgiverRules.kt | statisticsnorway | 414,216,275 | false | {"Kotlin": 1529827, "TypeScript": 58079, "HTML": 694, "Dockerfile": 137, "SCSS": 110} | package no.ssb.kostra.validation.rule.barnevern
import no.ssb.kostra.validation.rule.barnevern.avgiverrule.Avgiver02
import no.ssb.kostra.validation.rule.barnevern.avgiverrule.Avgiver03
import no.ssb.kostra.validation.rule.barnevern.avgiverrule.Avgiver04
import no.ssb.kostra.validation.rule.barnevern.avgiverrule.Avgiv... | 2 | Kotlin | 0 | 1 | b2600688391eda251b5199b6e6810c9b94daa764 | 469 | kostra-kontrollprogram | MIT License |
ekscore/src/main/kotlin/js/node/fs/utimes/index.kt | kazhida | 141,879,098 | false | null | @file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION", "NESTED_CLASS_IN_EXTERNAL_INTERFACE", "UNUSED")
@file:[JsModule("fs") JsQualifier("utimes")]
package js.node.fs.utimes
import js.node.Buffer
import js.node.url.URL
... | 0 | Kotlin | 0 | 0 | 0db86fad2dea30ccd8d31916ea9a4fee784e43ee | 1,549 | eks | Apache License 2.0 |
app/src/main/java/com/example/walletsmart/view/fragment/ResumeFragment.kt | CarlosQuixada | 627,628,138 | false | null | package com.example.walletsmart.view.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import com.example.walletsmart.databinding.FragmentResumeBinding
import com.... | 0 | Kotlin | 0 | 0 | 40f1468f0903e4c8d226edc26a692e904a4d34f1 | 1,114 | WalletSmart | Apache License 2.0 |
test-utils-annotations-junit4/src/jvmMain/kotlin/tech/antibytes/util/test/annotations/PlatformOnly.kt | bitPogo | 443,895,415 | false | {"Kotlin": 98444, "JavaScript": 244} | /*
* Copyright (c) 2022 <NAME> (bitPogo) / All rights reserved.
*
* Use of this source code is governed by Apache v2.0
*/
package tech.antibytes.util.test.annotations
import org.junit.Ignore
actual typealias AndroidOnly = Ignore
actual annotation class JvmOnly
actual typealias JsOnly = Ignore
actual typealias Na... | 0 | Kotlin | 0 | 1 | b9030f2a441ba7c4efe25dfd12953a482c1c1445 | 338 | test-utils-kmp | FSF All Permissive License |
core/src/commonMain/kotlin/dev/kryptonreborn/blockfrost/addresses/model/SpecificAddress.kt | KryptonReborn | 803,884,694 | false | {"Kotlin": 608832, "Swift": 594, "HTML": 323} | package dev.kryptonreborn.blockfrost.addresses.model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* The `SpecificAddress` class represents a specific address from the Blockfrost API.
* @property address The address of the specific address.
* @property amount The amount of t... | 2 | Kotlin | 1 | 1 | f04fa182b1599042702f6ab36047c9a1826d4522 | 735 | blockfrost-kotlin-sdk | Apache License 2.0 |
kotlin/lib/src/main/kotlin/SvixOptions.kt | x-webhook | 814,358,317 | false | {"Rust": 1020319, "C#": 157717, "Python": 63359, "Java": 53398, "Kotlin": 50732, "Go": 49875, "TypeScript": 30884, "Ruby": 28676, "Jinja": 23741, "PHP": 11915, "JavaScript": 6130, "Shell": 5436, "Dockerfile": 3708, "HTML": 656} | package com.xwebhook.kotlin
data class XwebhookOptions(
internal var wantedServerUrl: String? = null,
val initialRetryDelayMillis: Long? = null,
val numRetries: Int? = null,
) {
private val version = "1.21.0"
var serverUrl: String
get() = this.wantedServerUrl ?: DEFAULT_URL
set(val... | 0 | Rust | 0 | 0 | 7e1b29fc89217be5d60378dcf97caf91a95a9878 | 557 | x-webhooks | MIT License |
app/src/main/kotlin/com/mohsenoid/gifbrowser/GifBrowserApplication.kt | mohsenoid | 237,599,277 | false | null | package com.mohsenoid.gifbrowser
import android.app.Application
import com.mohsenoid.gifbrowser.injection.appModule
import com.mohsenoid.gifbrowser.injection.dataModule
import com.mohsenoid.gifbrowser.injection.presentationModule
import com.mohsenoid.gifbrowser.injection.qualifier.QualifierName
import org.koin.android... | 0 | Kotlin | 0 | 0 | e640b3d346a2e133d9c2007c33809de0d52afac0 | 1,592 | GIF-browser | MIT License |
resources-generator/src/main/kotlin/dev/icerock/gradle/generator/SourceInfo.kt | icerockdev | 204,874,263 | false | null | /*
* Copyright 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.gradle.generator
import org.gradle.api.file.FileTree
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
import java.io.File
data class SourceInfo(
val generatedDir: File,
val so... | 44 | Kotlin | 28 | 245 | e726ae27355d3fe28d69976806bfde9d427f0b8d | 451 | moko-resources | Apache License 2.0 |
resources-generator/src/main/kotlin/dev/icerock/gradle/generator/SourceInfo.kt | icerockdev | 204,874,263 | false | null | /*
* Copyright 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.gradle.generator
import org.gradle.api.file.FileTree
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
import java.io.File
data class SourceInfo(
val generatedDir: File,
val so... | 44 | Kotlin | 28 | 245 | e726ae27355d3fe28d69976806bfde9d427f0b8d | 451 | moko-resources | Apache License 2.0 |
kotlin/src/main/kotlin/com/example/service/TaskService.kt | sergeyfogelson | 79,924,297 | false | null | package com.example.service
import com.example.flow.EarnWorkFlow
import net.corda.core.node.PluginServiceHub
/**
* Created by ravi on 1/25/17.
*/
/**
* This service registers a flow factory we wish to use when a initiating party attempts to communicate with us
* using a particular flow. Registration is done aga... | 1 | null | 1 | 1 | 557809dec35227aa191a8061855ca4f47d075112 | 1,120 | django_blockchained | Apache License 2.0 |
GrabIdPartnerSDK/src/test/java/com/grab/partner/sdk/utils/TestIntentProvider.kt | grab | 157,938,313 | false | {"Gradle": 9, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 5, "Batchfile": 1, "Markdown": 1, "Proguard": 4, "XML": 46, "Kotlin": 83, "Java": 3} | package com.grab.partner.sdk.utils
import android.content.Intent
import com.nhaarman.mockitokotlin2.mock
/**
* Test intent provider for verifying intent param or calling.
*/
internal class TestIntentProvider(val mockIntent: Intent = mock(), val mockImpl: IntentProvider = mock()) :
IntentProvider {
overr... | 1 | Kotlin | 7 | 22 | cf4d95a8f2a1b553799c950b411d673d139a757e | 440 | grabplatform-sdk-android | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/personrecord/jpa/repository/specifications/queries/PersonSpecificationQueries.kt | ministryofjustice | 608,040,205 | false | {"Kotlin": 397767, "PLpgSQL": 26353, "Dockerfile": 1361, "Makefile": 302} | package uk.gov.justice.digital.hmpps.personrecord.jpa.repository.specifications.queries
import org.springframework.data.jpa.domain.Specification
import uk.gov.justice.digital.hmpps.personrecord.jpa.entity.PersonEntity
import uk.gov.justice.digital.hmpps.personrecord.jpa.repository.specifications.PersonSpecification
im... | 0 | Kotlin | 2 | 1 | 41b33f36751e3522f4bf505886aa9dc23d8a15a2 | 2,131 | hmpps-person-record | MIT License |
src/main/kotlin/io/embrace/android/intellij/plugin/ui/forms/GradleFilesPopup.kt | embrace-io | 611,791,922 | false | null | package io.embrace.android.intellij.plugin.ui.forms
import com.intellij.openapi.ui.ComboBox
import com.intellij.util.ui.JBUI
import io.embrace.android.intellij.plugin.data.AppModule
import io.embrace.android.intellij.plugin.dataproviders.EmbraceIntegrationDataProvider
import io.embrace.android.intellij.plugin.utils.ex... | 0 | Kotlin | 1 | 0 | 474771cb893b80562055ea4443e384ff71835a36 | 4,388 | android-intellij-plugin | Apache License 2.0 |
app/src/main/java/com/softcross/eatzy/presentation/components/CustomBottomSheet.kt | ErenMlg | 860,953,275 | false | {"Kotlin": 354864} | package com.softcross.eatzy.presentation.components
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.fou... | 0 | Kotlin | 0 | 0 | f449aefa77a0ff2ccfa31f33ceab0ea75ba86517 | 12,888 | Eatzy | Apache License 2.0 |
tooling-compose/src/commonMain/kotlin/dev/datlag/tooling/compose/platform/PlatformAssistChip.kt | DatL4g | 739,165,922 | false | {"Kotlin": 535226} | package dev.datlag.tooling.compose.platform
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
expect fun PlatformAssistChip(
onClick: () -> Unit,
modifier: Modifier = Modifier,
enabled: Boolean... | 0 | Kotlin | 0 | 3 | 11f8ee76909f12d96e4f1889e8b6daa7ae28ddd2 | 914 | tooling | Apache License 2.0 |
app/src/main/java/com/citra/keyhub/ui/main/MainActiviryViewModel.kt | Jul699 | 715,573,580 | false | {"Kotlin": 31263} | package com.citra.keyhub.ui.main
import androidx.lifecycle.ViewModel
import com.citra.keyhub.data.KeyHubRepository
class MainActiviryViewModel(private val keyHubRepository: KeyHubRepository): ViewModel() {
} | 0 | Kotlin | 0 | 0 | 5c1ba999547743223fc7f13a303033007573c4cf | 209 | Key-Hub | MIT License |
app/src/main/java/com/example/buahin/ui/components/ProfileCard.kt | SimiPrambos | 440,445,933 | false | null | /*
* Copyright (C) 2021 SimiPrambos <<EMAIL>> - All Rights Reserved
* ProfileCard.kt
* Buahin <https://github.com/SimiPrambos/buahin.git>
* UI Design by Afsar <https://www.figma.com/community/file/882645007956337261>
*/
package com.example.buahin.ui.components
import androidx.compose.foundation.Image
import andr... | 0 | Kotlin | 0 | 0 | 5c6a2cd40ac9e96dbfb61eefba9654b5f0fd6636 | 2,530 | buahin | MIT License |
src/commonMain/kotlin/net/peanuuutz/tomlkt/internal/TomlFileEncoder.kt | Peanuuutz | 444,688,345 | false | null | /*
Copyright 2022 Peanuuutz
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... | 1 | Kotlin | 1 | 48 | 38e78ecb8fe317ca8b73339ae9ee329720acf7df | 29,462 | tomlkt | Apache License 2.0 |
processor/src/main/kotlin/io/mcarle/konvert/processor/konvert/KonverterData.kt | mcarleio | 615,488,544 | false | null | package io.mcarle.konvert.processor.konvert
import com.google.devtools.ksp.processing.Resolver
import com.google.devtools.ksp.symbol.KSAnnotation
import com.google.devtools.ksp.symbol.KSClassDeclaration
import io.mcarle.konvert.api.Konfig
import io.mcarle.konvert.api.Konvert
import io.mcarle.konvert.api.Konverter
impo... | 7 | null | 3 | 47 | 0d711468671a86ca789d36b877201825c45fdc2c | 1,724 | konvert | Apache License 2.0 |
thirdparty/ktfx-jfoenix-layouts/src/test/kotlin/ktfx/jfoenix/layouts/JfxHamburgerTest.kt | hanggrian | 102,934,147 | false | null | package ktfx.jfoenix.layouts
import com.hendraanggrian.ktfx.test.LayoutsTest
import com.jfoenix.controls.JFXHamburger
import ktfx.layouts.KtfxPane
class JfxHamburgerTest : LayoutsTest<KtfxPane, JFXHamburger>() {
override fun manager(): KtfxPane = KtfxPane()
override fun KtfxPane.childCount(): Int = children.s... | 1 | null | 2 | 18 | edc15180b85065567a877254c439bb61ee07c329 | 519 | ktfx | Apache License 2.0 |
app/src/main/java/com/mayur/banksymoney/ui/transactionitem/elements/AmountHeader.kt | mayurdw | 593,101,496 | false | null | package com.mayur.banksymoney.ui.transactionitem.elements
import android.content.res.Configuration.UI_MODE_NIGHT_YES
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.material3.MaterialTheme
import an... | 0 | Kotlin | 0 | 0 | 5b6f3e71caf96415d235cb74e14a4c46fa1d30a2 | 1,853 | BanksyMoney | MIT License |
core/src/test/kotlin/com/hexagontk/core/ClasspathHandlerProviderTest.kt | hexagontk | 56,139,239 | false | {"Kotlin": 916459, "HTML": 20821, "Java": 8416, "CSS": 4736, "PHP": 6} | package com.hexagontk.core
import org.junit.jupiter.api.BeforeAll
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import org.junit.jupiter.api.TestInstance.Lifecycle.PER_CLASS
import java.net.MalformedURLException
import kotlin.test.assertFailsWith
@TestInstance(PER_CLASS)
internal class C... | 18 | Kotlin | 99 | 578 | 7436f1985832d21696fe7c08a0f454add6520284 | 2,099 | hexagon | Apache License 2.0 |
net.akehurst.language/agl-processor/src/commonMain/kotlin/agl/sppt/SPPTParserDefault.kt | dhakehurst | 197,245,665 | false | null | /**
* Copyright (C) 2018 Dr. <NAME> (http://dr.david.h.akehurst.net)
*
* 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... | 2 | null | 7 | 43 | b225becb87afb0577bebaeff31c256d3f8b85b63 | 17,045 | net.akehurst.language | Apache License 2.0 |
app/src/main/java/de/lmu/personalflashcards/datahandling/LogViewModel.kt | fionade | 639,599,746 | false | null | package de.lmu.personalflashcards.datahandling
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.viewModelScope
import de.lmu.personalflashcards.model.LogDao
import de.lmu.personalflashcards.model.LogEntry
import kotlinx.coroutines.Di... | 0 | Kotlin | 0 | 0 | 2e0da65c075b97f2d7214ffe2cf6a0fc48fb5aa6 | 1,000 | photo-flashcards-client | MIT License |
roundimageview/src/main/java/com/symeonchen/roundimageview/RoundImageView.kt | SymeonChen | 245,829,226 | false | null | package com.symeonchen.roundimageview
import android.annotation.TargetApi
import android.content.Context
import android.graphics.Path
import android.os.Build
import android.util.AttributeSet
import androidx.annotation.RequiresApi
/**
* Created by SymeonChen on 2020/3/7.
*/
class RoundImageView @JvmOverloads constr... | 1 | null | 1 | 2 | 78bda6daa3841cb9a1e50937b4fff74f50ec964c | 6,537 | RoundImageView | MIT License |
app/src/main/java/com/example/hackfestciputra2023/model/response/user/UserProfileResponse.kt | fahmigutawan | 640,132,198 | false | null | package com.example.hackfestciputra2023.model.response.user
import com.example.hackfestciputra2023.model.response.base.MetaResponse
data class UserProfileResponse(
val meta: MetaResponse,
val data: UserProfileDataResponse
)
data class UserProfileDataResponse(
val id: String,
val created_at: String,
... | 0 | Kotlin | 0 | 0 | 87e75d80142965ae366b433519a2f33eccde6a5f | 453 | Jetpack-CiputraHackfest-2023 | MIT License |
utils/src/test/java/com/grappim/hateitorrateit/utils/MimeTypesTest.kt | Grigoriym | 704,244,986 | false | {"Kotlin": 455444} | package com.grappim.hateitorrateit.utils.filesimpl
import org.junit.Assert.assertEquals
import org.junit.Before
import org.junit.Test
class MimeTypesTest {
private lateinit var mimeTypes: MimeTypes
@Before
fun setup() {
mimeTypes = MimeTypes()
}
@Test
fun `on formatMimeType with png... | 8 | Kotlin | 0 | 1 | 3ffcd0a7e16f827269613ee4aceb30fa938aedc7 | 926 | HateItOrRateIt | Apache License 2.0 |
app/src/main/java/io/horizontalsystems/bankwallet/core/storage/StorableCoinsDao.kt | tarsbase | 167,820,070 | true | {"Kotlin": 671371, "Ruby": 4769} | package io.horizontalsystems.bankwallet.core.storage
import android.arch.persistence.room.Dao
import android.arch.persistence.room.Insert
import android.arch.persistence.room.OnConflictStrategy
import android.arch.persistence.room.Query
import io.horizontalsystems.bankwallet.entities.StorableCoin
import io.reactivex.F... | 0 | Kotlin | 0 | 0 | 40e888d065e30a7f454c602ce8a77e377862e190 | 998 | bank-wallet-android | MIT License |
matrix-sdk-android/src/androidTest/java/org/matrix/android/sdk/Util.kt | tchapgouv | 340,329,238 | false | null | /*
* Copyright (c) 2022 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
*
* Unless required by app... | 75 | null | 6 | 9 | 5aa86fe9d36ad8087f289152d5e718fdfad65a2c | 1,346 | tchap-android | Apache License 2.0 |
src/main/kotlin/com/exactpro/th2/rptdataprovider/producers/EventProducer.kt | th2-net | 313,911,661 | false | null | /*******************************************************************************
* Copyright 2020-2021 Exactpro (Exactpro Systems Limited)
*
* 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... | 16 | Kotlin | 2 | 3 | 8db96fcd28914fbb60f43e1396d9b993c6863f17 | 11,434 | th2-rpt-data-provider | Apache License 2.0 |
src/main/kotlin/org/blocovermelho/mod/service/PlayerLinkingService.kt | blocovermelho | 722,373,364 | false | {"Kotlin": 77145, "Java": 4932} | package org.blocovermelho.mod.service
import kotlinx.coroutines.async
import kotlinx.coroutines.channels.consumeEach
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch
import net.minecraft.server.MinecraftServer
import org.blocovermelho.mod.BVQuilt
import org.blocovermelho.mod.api.Routes
import ... | 0 | Kotlin | 0 | 0 | 23ea791365eab08af757c160d06c93b83ae7819f | 1,376 | mod | Creative Commons Zero v1.0 Universal |
godot-kotlin/godot-library/src/nativeGen/kotlin/godot/GeometryInstance.kt | utopia-rise | 238,721,773 | false | {"Kotlin": 655494, "Shell": 171} | // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY! ALL CHANGES TO IT WILL BE OVERWRITTEN ON EACH BUILD
package godot
import godot.GeometryInstance
import godot.core.AABB
import godot.icalls._icall_Boolean_Long
import godot.icalls._icall_Double
import godot.icalls._icall_Long
import godot.icalls._icall_Material
import... | 17 | Kotlin | 17 | 286 | 8d51f614df62a97f16e800e6635ea39e7eb1fd62 | 6,710 | godot-kotlin-native | MIT License |
src/main/kotlin/br/com/zupacademy/extension/ConsultaChavePixRequestExt.kt | sergio-ads | 388,237,743 | true | {"Kotlin": 120453, "Smarty": 2172, "Dockerfile": 198} | package br.com.zupacademy.extension
import br.com.zupacademy.filtro.FiltroConsulta
import br.com.zupacademy.grpc.ConsultaChavePixRequestGRPC
import br.com.zupacademy.grpc.ConsultaChavePixRequestGRPC.FiltroCase.*
import javax.validation.ConstraintViolationException
import javax.validation.Validator
fun ConsultaChavePi... | 0 | Kotlin | 0 | 0 | e37b39e0c7ca5821cb9c10d00ef3ca55f39f4db4 | 812 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
css-gg/src/commonMain/kotlin/compose/icons/cssggicons/Box.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36756847} | package compose.icons.cssggicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.c... | 15 | Kotlin | 20 | 460 | 651badc4ace0137c5541f859f61ffa91e5242b83 | 3,179 | compose-icons | MIT License |
app/src/main/java/com/cerdenia/android/planito/data/db/AppTypeConverters.kt | joshuacerdenia | 384,061,893 | false | null | package com.cerdenia.android.planito.data.db
import androidx.room.TypeConverter
import com.cerdenia.android.planito.data.models.Day
import java.util.*
class AppTypeConverters {
@TypeConverter
fun fromUUID(uuid: UUID?): String? = uuid?.toString()
@TypeConverter
fun toUUID(uuid: String?): UUID? = UUID... | 0 | Kotlin | 0 | 0 | bcb08f2450d990ab64525f850f7cd1b17cae4792 | 612 | Planito | MIT License |
src/main/kotlin/ecdsa/Signature.kt | perun-network | 824,164,250 | false | {"Kotlin": 155715} | package perun_network.ecdsa_threshold.ecdsa
import fr.acinq.secp256k1.Secp256k1
/**
* [SIGLEN] is the standard length of ecdsa signature.
*/
const val SIGLEN = 64
/**
* The `Signature` class represents a cryptographic signature on the secp256k1 elliptic curve,
* consisting of two components: R and S.
*
* @prop... | 0 | Kotlin | 0 | 0 | de39fe1d9c86f68ae4b6fa4b40f6e3e481f61796 | 4,037 | atala-prism-threshold | Apache License 2.0 |
src/test/kotlin/_08_functional/MapFilterOperation.kt | automationhacks | 517,563,900 | false | null | package _08_functional
fun printEven() {
val nums = (1..100).toList()
val list = mutableListOf<Int>()
for (i in nums) {
if (i % 2 == 0) {
list.add(i)
}
}
println(list)
}
fun main() {
printEven()
} | 0 | Kotlin | 0 | 1 | 6b0942e163e4672c3e1f79a071a3548e483ce9ce | 252 | kotlin-for-test-automation | MIT License |
app/src/main/java/com/pramonow/gittracker/activity/UserListActivity.kt | pramonow | 161,920,733 | false | null | package com.pramonow.gittracker.activity
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.Menu
import android.view.MenuItem
import android.view.Vi... | 0 | Kotlin | 0 | 1 | e4f45992b345ebee504668afd787de7bdc3a43a1 | 3,875 | GitTracker | Apache License 2.0 |
compose/src/commonMain/kotlin/io/github/gaaabliz/kliz/compose/common/model/SnacklizController.kt | GaaabLiz | 769,193,666 | false | {"Kotlin": 306682} | package io.github.gaaabliz.kliz.compose.common.model
import androidx.compose.material.ScaffoldState
import androidx.compose.material.SnackbarData
import androidx.compose.material.SnackbarResult
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setVa... | 0 | Kotlin | 0 | 0 | f9cbc327b9784eb3f093f6a9161e390b81db22d1 | 2,656 | ktliz | Apache License 2.0 |
sample/src/main/java/com/seiko/immersionbar/sample/activity/AutoDarkModeActivity.kt | qdsfdhvh | 273,822,575 | true | {"Kotlin": 79797} | package com.seiko.immersionbar.sample.activity
import android.annotation.SuppressLint
import android.graphics.Color
import android.view.View
import android.widget.SeekBar
import android.widget.TextView
import butterknife.BindView
import com.google.android.material.animation.ArgbEvaluatorCompat
import com.seiko.immersi... | 0 | Kotlin | 0 | 1 | 70e0969f96eae5cbf665e8edd38a32c63d3172c5 | 1,818 | immersionbar | Apache License 2.0 |
litho-rendercore-mountables/mountable-canvas/src/main/java/com/facebook/mountable/canvas/Extensions.kt | facebook | 80,179,724 | false | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 120 | Java | 762 | 7,582 | efc33f980e92e8259139352f710264e949bd01c0 | 1,488 | litho | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/lps/batch/AltinnLpsMigrationScheduler.kt | navikt | 164,875,446 | false | {"Kotlin": 399103, "Java": 328380, "XSLT": 25351, "PLSQL": 1668, "Dockerfile": 359, "Shell": 257} | package no.nav.syfo.lps.batch
import no.nav.syfo.lps.database.OppfolgingsplanLPSDAO
import no.nav.syfo.lps.kafka.AltinnLpsOppfolgingsplan
import no.nav.syfo.lps.kafka.MigrationLpsProducer
import no.nav.syfo.service.LeaderElectionService
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Service
impor... | 4 | Kotlin | 0 | 0 | b4568e1ab2bb5636c77ef7507145f24b88e401eb | 2,320 | syfooppfolgingsplanservice | MIT License |
src/test/kotlin/com/wikia/tibia/v2/domain/ItemsServiceTest.kt | benjaminkomen | 82,451,650 | false | null | package com.wikia.tibia.v2.domain
import com.wikia.tibia.createBear
import com.wikia.tibia.createBearPaw
import com.wikia.tibia.createCheese
import com.wikia.tibia.createHoneycomb
import com.wikia.tibia.createRat
import com.wikia.tibia.createWasp
import com.wikia.tibia.shouldBe
import com.wikia.tibia.shouldNotBe
impor... | 11 | Kotlin | 1 | 4 | df9f76f9a32f24032fd8be377eb6c89043190061 | 3,363 | TibiaWikiBot | MIT License |
idea/tests/org/jetbrains/jet/plugin/debugger/KotlinDebuggerTestBase.kt | chashnikov | 14,658,474 | false | {"Markdown": 19, "XML": 483, "Ant Build System": 23, "Ignore List": 8, "Protocol Buffer": 2, "Java": 4001, "Kotlin": 12341, "Text": 1204, "Roff": 68, "Roff Manpage": 10, "JAR Manifest": 1, "INI": 6, "HTML": 102, "Groovy": 7, "Gradle": 61, "Maven POM": 36, "Java Properties": 10, "CSS": 10, "JavaScript": 48, "JFlex": 3, ... | /*
* Copyright 2010-2014 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... | 1 | null | 1 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 3,036 | kotlin | Apache License 2.0 |
app/kotlin/Listener.kt | codacy-badger | 270,334,432 | false | {"Kotlin": 11525} | package nfctools.io
interface Listener {
fun onDialogDisplayed()
fun onDialogDismissed()
} | 0 | null | 3 | 0 | 1fe7cc327e93f9fadf51864a67ec582785ef52fe | 99 | NfcTools | MIT License |
app/src/main/java/com/fjjukic/furniture4you/ui/search/SearchViewModel.kt | franjojosip | 678,130,646 | false | {"Kotlin": 435960} | package com.fjjukic.furniture4you.ui.search
import androidx.compose.ui.text.input.TextFieldValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.fjjukic.furniture4you.ui.common.mock.MockRepository
import com.fjjukic.furniture4you.ui.common.model.DisplayType
import dagger.hilt.an... | 0 | Kotlin | 0 | 0 | 94dc87c76ce31fa260189458d4061640f696ddac | 2,463 | Furniture4You | MIT License |
android_trusted_device_v2/src/main/java/com/fazpass/android_trusted_device_v2/NotificationUtil.kt | fazpass-sdk | 650,430,654 | false | null | package com.fazpass.android_trusted_device_v2
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.Service
import android.content.Context
import android.os.Build
internal class NotificationUtil(private val context: Context) {
companion o... | 0 | Kotlin | 0 | 0 | a4981ff88ad9cf4b18bdc3c69fcfdf55157fbf77 | 1,482 | android-trusted-device-v2 | MIT License |
app/src/test/java/in/testpress/testpress/viewmodel/AutoLoginViewModelTest.kt | testpress | 32,573,386 | false | {"Gemfile.lock": 1, "Java Properties": 4, "Gradle": 8, "Batchfile": 2, "INI": 2, "Shell": 2, "Text": 1, "Ignore List": 2, "Git Attributes": 1, "YAML": 4, "Markdown": 4, "Ruby": 7, "JSON": 3, "Kotlin": 56, "Java": 183, "XML": 155, "CSS": 1, "JavaScript": 1, "Python": 1} | package `in`.testpress.testpress.viewmodel
import `in`.testpress.testpress.util.fakes.FakeRepository
import `in`.testpress.testpress.util.fakes.FakeViewModel
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
import org.mockito.Mockito
@RunWith(JUnit4::class)
class AutoLoginViewMode... | 29 | Java | 4 | 9 | bddfa5b62235296b8f8a96bcb013afc4a746956c | 615 | android | MIT License |
app/src/main/java/com/vitordmoraes/thecompanion/files/FilesHelper.kt | vitordmoraes | 386,285,962 | false | null | package com.raywenderlich.android.trippey.files
import java.io.File
interface FilesHelper {
fun saveData(fileName: String, data: String)
fun getData(): List<File>
fun deleteData(fileName: String)
} | 0 | Kotlin | 0 | 0 | a2579c661f3fdd496bfdb2e267ad3fc2cbd4f52b | 208 | TheCompanion--Projeto | MIT License |
app/src/main/java/com/absinthe/anywhere_/viewbuilder/ViewBuilder.kt | zhaobozhen | 203,908,079 | false | null | package com.absinthe.anywhere_.viewbuilder
import android.content.Context
import android.content.res.Resources
import android.view.View
import android.view.ViewGroup
/**
* View Builder
*
*
* To build a view with Java code.
*/
open class ViewBuilder : IViewBuilder {
lateinit var root: ViewGroup
protected s... | 8 | null | 11 | 87 | 324e33d9efa8bfc98522d6d94ee275b4433aed8d | 777 | Anywhere- | Apache License 2.0 |
app/src/main/java/com/absinthe/anywhere_/viewbuilder/ViewBuilder.kt | zhaobozhen | 203,908,079 | false | null | package com.absinthe.anywhere_.viewbuilder
import android.content.Context
import android.content.res.Resources
import android.view.View
import android.view.ViewGroup
/**
* View Builder
*
*
* To build a view with Java code.
*/
open class ViewBuilder : IViewBuilder {
lateinit var root: ViewGroup
protected s... | 8 | null | 11 | 87 | 324e33d9efa8bfc98522d6d94ee275b4433aed8d | 777 | Anywhere- | Apache License 2.0 |
bbs/src/main/kotlin/com/example/bbs/service/dto/CommentCreateRequestDto.kt | dyaos1 | 727,579,217 | false | {"Kotlin": 49112} | package com.example.bbs.service.dto
import com.example.bbs.domain.Comment
import com.example.bbs.domain.Post
data class CommentCreateRequestDto(
val content: String,
val createdBy: String,
)
fun CommentCreateRequestDto.toEntity(post: Post): Comment = Comment(
content = content,
createdBy = createdBy,... | 3 | Kotlin | 0 | 0 | 1d51222f791de173dfcf57018a7a6b0df0602048 | 339 | compose-kotlin-practices | MIT License |
application/KotlinConcepts/app/src/main/java/com/istudio/app/modules/module_demos/coroutines/launch_and_withcontext/LaunchAndWithContextDemoVm.kt | devrath | 339,281,472 | false | {"Kotlin": 478593, "Java": 3273} | package com.istudio.app.modules.module_demos.coroutines.launch_and_withcontext
import androidx.lifecycle.ViewModel
import com.istudio.app.utils.extensions.printCoroutineScopeInfo
import kotlinx.coroutines.CoroutineName
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.corout... | 0 | Kotlin | 22 | 246 | b87ccbc3cba789ec81744acde724274137204283 | 1,222 | KotlinAlchemy | Apache License 2.0 |
app/src/main/java/com/example/demo/dsl/dsl.kt | AlvinMax | 115,464,083 | true | {"Kotlin": 8800} | package com.example.demo.dsl
import android.graphics.Paint
import android.support.constraint.ConstraintLayout
import android.support.constraint.ConstraintSet
import android.support.v7.app.AppCompatActivity
import android.text.InputType
import android.view.View
import android.view.ViewGroup
import android.widget.Button... | 0 | Kotlin | 0 | 0 | ba05fc8bd6f1b1e101ae9c193281b50274de8edb | 2,934 | ctddev-kotlin-demo-2017 | MIT License |
jps-plugin/testData/incremental/cacheVersionChanged/moduleWithConstantModified/module1_A.kt | JakeWharton | 99,388,807 | false | null | package a
val X = 10 | 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 21 | kotlin | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/inspectionsLocal/collections/redundantAsSequence/sequenceWithRedundantTypeArgument.kt | ingokegel | 72,937,917 | true | null | // WITH_STDLIB
fun foo(a: Sequence<String>) {
val b = a.<caret>asSequence<String>()
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 89 | intellij-community | Apache License 2.0 |
common/src/androidMain/kotlin/com/artemchep/keyguard/copy/ClipboardServiceAndroid.kt | AChep | 669,697,660 | false | {"Kotlin": 5516822, "HTML": 45876} | package com.artemchep.keyguard.copy
import android.app.Application
import android.content.ClipData
import android.content.ClipDescription
import android.content.ClipboardManager
import android.os.Build
import android.os.PersistableBundle
import androidx.core.content.getSystemService
import com.artemchep.keyguard.commo... | 66 | Kotlin | 31 | 995 | 557bf42372ebb19007e3a8871e3f7cb8a7e50739 | 1,787 | keyguard-app | Linux Kernel Variant of OpenIB.org license |
example/src/main/kotlin/me/d151l/javalin/annotations/example/main/Main.kt | D151l | 582,020,077 | false | null | package me.d151l.javalin.annotations.example.main
import me.d151l.javalin.annotations.example.JavalinExample
/**
* @created 25/12/2022 - 12:13
* @project Javalin-Annotations
* @author D151l
*/
fun main() {
JavalinExample()
} | 1 | Kotlin | 0 | 0 | c4f9989919521e4241b9b7ffd09f159f5b7dfbbc | 235 | Javalin-Annotations | MIT License |
src/nativeMain/kotlin/configuration/ManifestConf.kt | DrewCarlson | 371,519,366 | false | null | package ktpack.configuration
import kotlinx.cinterop.*
import tomlc99.*
import kotlin.system.*
data class ManifestConf(
val module: ModuleConf,
) {
companion object {
fun fromToml(content: String): ManifestConf =
parseToml(content)
}
}
// TODO: tomlc99 is the best option for toml V1 c... | 0 | Kotlin | 0 | 1 | d36b28e4de82ecbf66a301bf81dfe4525c4a388b | 2,990 | ktpack | MIT License |
picnic/src/main/java/com/jakewharton/picnic/textSurface.kt | SonOfBowser | 229,962,283 | true | {"Kotlin": 101272, "Java": 4367} | package com.jakewharton.picnic
internal class TextSurface(
override val width: Int,
override val height: Int
) : TextCanvas {
private val buffer = StringBuilder(height * (width + 1)).apply {
repeat(height) {
repeat(width) {
append(' ')
}
append('\n')
}
}
override operator f... | 0 | null | 0 | 0 | 715674880a4a56eac3c260e1509b75a5fd594c6f | 1,956 | picnic | Apache License 2.0 |
kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/checks/NullablePropertyCheck.kt | utopia-rise | 289,462,532 | false | {"Kotlin": 1649742, "GDScript": 536482, "C++": 487057, "C": 13191, "C#": 10278, "Shell": 7888, "Python": 3941, "Java": 3219, "CMake": 941} | package godot.entrygenerator.checks
import godot.entrygenerator.ext.isCoreType
import godot.entrygenerator.ext.isGodotPrimitive
import godot.entrygenerator.model.RegisterPropertyAnnotation
import godot.entrygenerator.model.SourceFile
import godot.entrygenerator.utils.Logger
class NullablePropertyCheck(logger: Logger,... | 49 | Kotlin | 44 | 634 | ac2a1bd5ea931725e2ed19eb5093dea171962e3f | 1,147 | godot-kotlin-jvm | MIT License |
app/src/main/java/com/base/games/ui/pages/detail/DetailActivity.kt | myusufcil | 329,865,962 | false | null | package com.base.games.ui.pages.detail
import android.content.Intent
import android.os.Bundle
import com.base.games.R
import com.base.games.ui.base.activity.BaseActivity
import com.base.games.ui.base.fragment.BaseFragment
import com.base.games.ui.common.enums.IntentBundleKeyEnum
import com.base.games.ui.pages.detail.v... | 0 | Kotlin | 0 | 0 | 3a0653cf0b8d351ee6cdb874c50a7d99087782ba | 1,339 | video-games | MIT License |
app/src/test/java/com/example/omdb/util/dummy_data/SeriesDetailsDummyData.kt | Pro-55 | 195,038,410 | false | {"Kotlin": 259217} | package com.example.omdb.util.dummy_data
val seriesDetailsDummyData = """
{
"Title": "Friends",
"Year": "1994–2004",
"Rated": "TV-14",
"Released": "22 Sep 1994",
"Runtime": "22 min",
"Genre": "Comedy, Romance",
"Director": "N/A",
"Writer": "<NAME>, <NAME>",
"Ac... | 0 | Kotlin | 0 | 1 | 2ee54ce67c4c077ef1ccb83cd92121e3eb778c09 | 1,169 | OMDb | Apache License 2.0 |
src/main/kotlin/com/orecic/Application.kt | monteirocicero | 296,977,268 | false | null | package com.orecic
import io.micronaut.runtime.Micronaut.*
fun main(args: Array<String>) {
build()
.args(*args)
.packages("com.orecic")
.start()
}
| 0 | Kotlin | 0 | 0 | 8bfffd119eecbe2f2c8957291ae1386b1ea66c94 | 160 | challenge-bit | Apache License 2.0 |
src/main/kotlin/com/lykke/matching/engine/outgoing/senders/impl/specialized/CashTransferOldEventSender.kt | LykkeCity | 52,304,364 | false | {"Gradle": 2, "Shell": 3, "Text": 2, "Ignore List": 1, "Batchfile": 2, "Markdown": 1, "Java Properties": 2, "Kotlin": 596, "XML": 2, "Java": 21, "Protocol Buffer": 1, "INI": 3, "YAML": 1} | package com.lykke.matching.engine.outgoing.senders.impl.specialized
import com.lykke.matching.engine.daos.TransferOperation
import com.lykke.matching.engine.fee.singleFeeTransfer
import com.lykke.matching.engine.messages.MessageType
import com.lykke.matching.engine.outgoing.messages.CashTransferEventData
import com.ly... | 5 | Kotlin | 16 | 31 | 937b360b10d461e444ebc7133dd9ab6b64ae4cb5 | 2,673 | MatchingEngine | MIT License |
widgetssdk/src/main/java/com/glia/widgets/chat/model/ChatItems.kt | salemove | 312,288,713 | false | null | package com.glia.widgets.chat.model
import android.content.Context
import com.glia.androidsdk.chat.AttachmentFile
import com.glia.androidsdk.chat.ChatMessage
import com.glia.androidsdk.chat.SingleChoiceOption
import com.glia.widgets.chat.adapter.ChatAdapter
import com.glia.widgets.helper.isDownloaded
internal abstrac... | 4 | Kotlin | 1 | 5 | 22f43ec1b5dbffc980a07b00881fa7745fa3558c | 9,101 | android-sdk-widgets | MIT License |
src/test/aoc2022/Day2Test.kt | nibarius | 154,152,607 | false | {"Kotlin": 976889} | package test.aoc2022
import aoc2022.Day2
import org.junit.Assert.assertEquals
import org.junit.Test
import resourceAsList
class Day2Test {
private val exampleInput = """
A Y
B X
C Z
""".trimIndent().split("\n")
@Test
fun testPartOneExample1() {
val day2 = Day2(exampleI... | 0 | Kotlin | 0 | 6 | c93a84c1c9c789d42b19369ad7972449b4a9e982 | 807 | aoc | MIT License |
app/src/main/java/com/example/bankappui/data/BottomNavigation.kt | simbastart001 | 748,497,647 | false | {"Kotlin": 31844} | package com.example.bankappui.data
import androidx.compose.ui.graphics.vector.ImageVector
data class BottomNavigation(
val title: String,
val icon: ImageVector
)
| 0 | Kotlin | 0 | 1 | 96d93d7362656680db61603d15c843947066cb4c | 172 | BankingUI-with-Compose | MIT License |
DoctorService/src/main/kotlin/dsdms/doctor/Server.kt | DenGuzawr22 | 619,922,902 | false | null | /*******************************************************************************
* MIT License
*
* Copyright 2023 DSDMS
*
* 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 restri... | 0 | Kotlin | 0 | 1 | aa006842ff8ccac6af1b05dd86501a3aa7833835 | 3,621 | Driving-School-Distributed-Management-Software | MIT License |
graphql-kotlin-spring-security/src/main/kotlin/io/github/wickedev/graphql/AuthDirective.kt | wickedev | 439,584,762 | false | {"Kotlin": 269467, "JavaScript": 6748, "Java": 2439, "CSS": 1699} | @file:Suppress("unused")
package io.github.wickedev.graphql
import com.expediagroup.graphql.generator.annotations.GraphQLDirective
import graphql.introspection.Introspection
import org.springframework.security.access.prepost.PreAuthorize
const val AUTH_DIRECTIVE_NAME = "auth"
@GraphQLDirective(
name = AUTH_DIRE... | 0 | Kotlin | 0 | 19 | d6913beaecf9e7ef065acdb1805794a10b07d55e | 526 | graphql-jetpack | The Unlicense |
point/core/src/commonMain/kotlin/math/MutablePoint2.kt | aSoft-Ltd | 332,269,443 | false | null | @file:Suppress("WRONG_EXPORTED_DECLARATION")
package math
import kotlin.js.JsExport
@JsExport
interface MutablePoint2<N> : Point2<N>, MutableXY<N> | 0 | Kotlin | 1 | 1 | 4b96ca50b437e6af8cdd1e5503f67958c218b886 | 148 | math | MIT License |
violet/src/main/java/com/shuisechanggong/violet/SimpleLog.kt | OoadaioO | 208,399,273 | false | {"Gradle": 10, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Proguard": 2, "Java": 2, "XML": 11, "Kotlin": 13} | package com.shuisechanggong.violet
import android.util.Log
object SimpleLog {
private var loggingEnabled = false
fun setLoggingEnabled(enabled: Boolean) {
loggingEnabled = enabled
}
fun d(tag: String, text: String) {
if (loggingEnabled) {
Log.d(tag, text)
}
... | 0 | Kotlin | 0 | 0 | 646dd7b0be7c030a5dcc14aaf0e3c697d0850de4 | 934 | qrcode | Apache License 2.0 |
violet/src/main/java/com/shuisechanggong/violet/SimpleLog.kt | OoadaioO | 208,399,273 | false | {"Gradle": 10, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Proguard": 2, "Java": 2, "XML": 11, "Kotlin": 13} | package com.shuisechanggong.violet
import android.util.Log
object SimpleLog {
private var loggingEnabled = false
fun setLoggingEnabled(enabled: Boolean) {
loggingEnabled = enabled
}
fun d(tag: String, text: String) {
if (loggingEnabled) {
Log.d(tag, text)
}
... | 0 | Kotlin | 0 | 0 | 646dd7b0be7c030a5dcc14aaf0e3c697d0850de4 | 934 | qrcode | Apache License 2.0 |
domain/src/commonMain/kotlin/studio/forface/covid/domain/util/timeUtils.kt | 4face-studi0 | 245,708,616 | false | null | package studio.forface.covid.domain.util
import com.soywiz.klock.DateFormat
import com.soywiz.klock.DateTime
import kotlinx.coroutines.delay
import kotlin.time.Duration
suspend fun delay(duration: Duration) = delay(duration.toLongMilliseconds())
fun DateTime.formatDate() = format(DefaultDateFormat)
fun DateTime.form... | 2 | Kotlin | 0 | 6 | ebabaf30bcb5d9cd46bfb7132a6046cc56f86362 | 918 | Covid19 | Apache License 2.0 |
Topics/Jumps and returns/Placement of ships/src/Main.kt | jwgibanez | 398,815,658 | false | {"HTML": 46062, "Java": 12142, "JavaScript": 5252, "Kotlin": 4595, "CSS": 3780} | fun main() {
val occupiedRows = arrayListOf<Int>()
val occupiedCols = arrayListOf<Int>()
repeat(3) {
val (x, y) = readLine()!!.split(" ")
if (!occupiedRows.contains(x.toInt())) occupiedRows.add(x.toInt())
if (!occupiedCols.contains(y.toInt())) occupiedCols.add(y.toInt())
}
va... | 0 | HTML | 0 | 0 | 787c9d1bc663b73a85939910ffab0f8d8cbbeea9 | 604 | kotlin-simple-tic-tac-toe | Apache License 2.0 |
libraries/kotlin.test/jvm/src/main/kotlin/AssertionsImpl.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:kotlin.jvm.JvmMultifileClass
@file:kotlin.jvm.JvmName("AssertionsKt")
package kotlin.test
import kotli... | 163 | null | 5686 | 46,039 | f98451e38169a833f60b87618db4602133e02cf2 | 4,821 | kotlin | Apache License 2.0 |
kstatemachine/src/commonMain/kotlin/ru/nsk/kstatemachine/visitors/Visitor.kt | KStateMachine | 296,142,904 | false | {"Kotlin": 436340} | package ru.nsk.kstatemachine.visitors
import ru.nsk.kstatemachine.event.Event
import ru.nsk.kstatemachine.state.IState
import ru.nsk.kstatemachine.statemachine.StateMachine
import ru.nsk.kstatemachine.transition.Transition
/**
* Suspendable interface for visiting state machine components
* Visitor must be used inst... | 3 | Kotlin | 19 | 325 | f2677c7fd51a11c7a228ba32b59af12a514b2d1a | 909 | kstatemachine | Boost Software License 1.0 |
compiler/testData/diagnostics/tests/inference/pcla/assignmentPlusOperator.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | fun reproduce() {
pcla { otvOwner ->
otvOwner.constrain(ScopeOwner())
otvOwner.myVar += ScopeOwner()
otvOwner.<!VAL_REASSIGNMENT!>myVal<!> += ScopeOwner()
}
}
class TypeVariableOwner<T> {
fun constrain(subtypeValue: T) {}
var myVar: T = null!!
val myVal: T = null!!
}
fun <O... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 464 | kotlin | Apache License 2.0 |
app/src/main/java/com/zhuozheng/sawyerdiyview/Test.kt | sawyer-lee | 647,582,107 | false | {"Java": 207518, "Kotlin": 36426} | package com.zhuozheng.sawyerdiyview
fun main(){
val a = "0.0000"
val b= a.toFloat().toInt().toFloat()
val result = if (a.toFloat() == b) "true" else "false"
println("wtf = $result,b = $b")
val c = 222
println(String.format("%08d",c))
} | 1 | null | 1 | 1 | c11d190e82e6dbaa362688703f38f0c3cb7b3af5 | 261 | DiyView | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.