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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
examples/widgets-gallery/common/src/commonMain/kotlin/org/jetbrains/compose/demo/widgets/ui/screens/Loaders.kt | JetBrains | 293,498,508 | false | null | package org.jetbrains.compose.demo.widgets.ui.screens
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.CircularProgressIndicator
import... | 934 | Kotlin | 826 | 9,090 | 97266a0ac8c0d7a8ad8d19ead1c925751a00ff1c | 1,120 | compose-jb | Apache License 2.0 |
alibaba-rsocket/src/main/kotlin/org/microjservice/rsocket/alibaba/RSocketBrokerHealthIndicator.kt | MicroJService | 382,655,227 | false | null | package org.microjservice.rsocket.alibaba
import com.alibaba.rsocket.upstream.UpstreamManager
import io.micronaut.management.health.indicator.HealthIndicator
import com.alibaba.rsocket.health.RSocketServiceHealth
import io.micronaut.management.health.indicator.HealthResult
import com.alibaba.rsocket.events.AppStatusEv... | 0 | Kotlin | 0 | 0 | e6e155b6af3be8f502f57497c8959bb066ec038d | 2,576 | micronaut-rsocket | Apache License 2.0 |
app-presentation/src/main/java/me/dmba/teamworkboards/screens/boards/adapter/CardViewHolderWithAttachments.kt | dmba | 141,046,741 | false | {"Kotlin": 86040} | package me.dmba.teamworkboards.screens.boards.adapter
import android.view.ViewGroup
import com.squareup.inject.assisted.Assisted
import com.squareup.inject.assisted.AssistedInject
import com.squareup.picasso.Picasso
import kotlinx.android.synthetic.main.column_item_with_attachments.view.*
import me.dmba.teamworkboards... | 3 | Kotlin | 0 | 0 | a3d31225ebad80ae15158ca18ca0780b81c5726f | 1,114 | teamwork-boards | Apache License 2.0 |
jipp-pdl/src/main/kotlin/com/hp/jipp/pdl/OutputSettings.kt | GladeDiviney | 204,985,808 | true | {"Kotlin": 630166, "Java": 314175, "Python": 38779, "Shell": 1417} | // Copyright 2018 HP Development Company, L.P.
// SPDX-License-Identifier: MIT
package com.hp.jipp.pdl
import com.hp.jipp.model.MediaSource
import com.hp.jipp.model.PrintQuality
import com.hp.jipp.model.Sides
/** Generic output settings which may be required for any Page Description Language. */
data class OutputSet... | 1 | Kotlin | 0 | 0 | a339430999383f9a4d8044fed1d402b764fd0a1f | 810 | jipp | MIT License |
kotlin-mui/src/main/generated/mui/base/MultiSelectUnstyledProps.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
package mui.base
import kotlinx.js.ReadonlyArray
external interface MultiSelectUnstyledProps<TValue> : react.Props {
/**
* The default selected values. Use when the component is not controlled.
* @default []
*/
var defaultValue: ReadonlyArray<TValue>... | 10 | Kotlin | 145 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 966 | kotlin-wrappers | Apache License 2.0 |
src/main/kotlin/chapter6/Anagram.kt | jatzuk | 147,863,745 | false | null | package chapter6
import chapter6.ValuesHolder.count
import chapter6.ValuesHolder.length
/*
* Created with passion and love
* for project DataStructuresAndAlgorithmsInJava(Lafore)
* by Jatzuk on 23.09.2018
* *_____*
* *... | 0 | Kotlin | 0 | 0 | 3b4d740b4ff1787e18c0f6d466004536926a31de | 1,411 | DataStructuresAndAlgorithmsInJava | MIT License |
app/src/main/java/com/breezeshankar/features/nearbyshops/api/updateaddress/ShopAddressUpdateRepo.kt | DebashisINT | 851,529,165 | false | {"Kotlin": 15698684, "Java": 1025747} | package com.breezeshankar.features.nearbyshops.api.updateaddress
import com.breezeshankar.base.BaseResponse
import com.breezeshankar.features.nearbyshops.model.updateaddress.AddressUpdateRequest
import io.reactivex.Observable
/**
* Created by Pratishruti on 05-02-2018.
*/
class ShopAddressUpdateRepo (val apiService... | 0 | Kotlin | 0 | 0 | d382b7af0064e3965a2a89789c42731687d911f5 | 516 | SHANKARMG | Apache License 2.0 |
src/main/kotlin/io/github/divinespear/plugin/extension.kt | ragnor | 261,009,136 | true | {"Kotlin": 70558, "Groovy": 55123, "Java": 11988} | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 0 | null | 0 | 0 | 972a3c50516d58e87c388bce3ccee6e78ea17fda | 5,080 | jpa-schema-gradle-plugin | Apache License 2.0 |
src/commonMain/kotlin/animatedledstrip/animations/predefined/smooth_fade.kt | AnimatedLEDStrip | 168,790,414 | false | {"Kotlin": 844872, "Python": 9025, "Shell": 8325} | /*
* Copyright (c) 2018-2021 AnimatedLEDStrip
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merg... | 10 | Kotlin | 3 | 9 | 77a61846dbf723686633827a5690d57c4a451723 | 2,716 | AnimatedLEDStrip | MIT License |
compiler/backend/src/org/jetbrains/kotlin/codegen/coroutines/SuspendFunctionGenerationStrategy.kt | JakeWharton | 99,388,807 | false | null | /*
* Copyright 2010-2019 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.codegen.coroutines
import org.jetbrains.kotlin.backend.common.CodegenUtil
import... | 12 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 9,044 | kotlin | Apache License 2.0 |
src/test/kotlin/nl/jackploeg/aoc/_2023/calendar/day03/Day03Test.kt | jackploeg | 736,755,380 | false | {"Kotlin": 318734} | package nl.jackploeg.aoc._2023.calendar.day03
import javax.inject.Inject
import nl.jackploeg.aoc._2023.DaggerTestDayComponent
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
internal class Day03Test {
@Inject
lateinit var day03: Day0... | 0 | Kotlin | 0 | 0 | f2b873b6cf24bf95a4ba3d0e4f6e007b96423b76 | 976 | advent-of-code | MIT License |
app/src/main/java/com/pengxh/secretkey/ui/GestureSetActivity.kt | frankjiayounuli | 361,637,014 | true | {"Kotlin": 230011, "HTML": 4389, "CSS": 303} | package com.pengxh.secretkey.ui
import android.os.Handler
import com.pengxh.app.multilib.utils.SaveKeyValues
import com.pengxh.secretkey.BaseActivity
import com.pengxh.secretkey.R
import com.pengxh.secretkey.extention.covertColor
import com.pengxh.secretkey.utils.Constant
import com.pengxh.secretkey.widgets.gesture.Ge... | 0 | null | 0 | 0 | d17b1bf0de88d41619b408665e3c30bd45029971 | 2,678 | SecretKey | Apache License 2.0 |
src/main/kotlin/me/jason5lee/ktpost/getUser/api.kt | Jason5Lee | 489,935,868 | false | null | package me.jason5lee.ktpost.getUser
import io.vertx.ext.web.RoutingContext
import me.jason5lee.ktpost.common.*
import me.jason5lee.resukt.getOrElse
internal fun getUserApi(getUser: GetUser) = api(
path = { get("/user/:userId") },
) { ctx ->
val input = UserId(
parseId(ctx.pathParam("userId") ?: return@api ctx... | 0 | Kotlin | 0 | 1 | b76c9ecb2777e266c2ac054a73b74d22e232237c | 1,048 | ktpost | Apache License 2.0 |
src/main/kotlin/com/nftco/flow/sdk/crypto/Crypto.kt | the-nft-company | 355,268,322 | false | null | package org.onflow.sdk.crypto
import org.bouncycastle.jce.ECNamedCurveTable
import org.bouncycastle.jce.ECPointUtil
import org.bouncycastle.jce.interfaces.ECPrivateKey
import org.bouncycastle.jce.interfaces.ECPublicKey
import org.bouncycastle.jce.provider.BouncyCastleProvider
import org.bouncycastle.jce.spec.ECNamedCu... | 6 | Kotlin | 5 | 8 | 9f5181d89e8bc3fc44292e372e577427cb657705 | 6,660 | flow-jvm-sdk | Apache License 2.0 |
navigation/core/src/commonMain/kotlin/com/taetae98/diary/navigation/core/more/MoreEntry.kt | taetae98coding | 704,066,572 | false | {"Kotlin": 306928, "Swift": 1582, "HTML": 230} | package com.taetae98.diary.navigation.core.more
import com.arkivanov.decompose.ComponentContext
import com.arkivanov.decompose.router.stack.ChildStack
import com.arkivanov.decompose.router.stack.StackNavigation
import com.arkivanov.decompose.router.stack.childStack
import com.arkivanov.decompose.value.Value
import com... | 0 | Kotlin | 0 | 0 | 5f30a80de82f1c162ea666e6260fdd78fb299137 | 1,155 | Diary | Apache License 2.0 |
src/main/kotlin/days/Day6.kt | tpepper0408 | 317,612,203 | false | null | package days
class Day6 : Day<Int>(6) {
override fun partOne(): Int {
return inputList.joinToString("\n")
.split("\n\n")
.map {
it.replace("\n", "")
.toCharArray()
.toSet()
.count()
}
... | 0 | Kotlin | 0 | 0 | 67c65a9e93e85eeb56b57d2588844e43241d9319 | 905 | aoc2020 | Creative Commons Zero v1.0 Universal |
tmp/arrays/youTrackTests/9918.kt | DaniilStepanov | 228,623,440 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | // Original bug: KT-10175
open class Base
class Derived : Base() {
fun bar() {}
}
fun foo(b: Base?) {
if (b is Derived?) {
// b: smart cast to <?>
b?.bar()
}
}
| 1 | null | 1 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 190 | bbfgradle | Apache License 2.0 |
.teamcity/settings.kts | devcon5io | 171,551,382 | false | {"Java": 97459, "Kotlin": 6373} |
import jetbrains.buildServer.configs.kotlin.v2018_2.BuildType
import jetbrains.buildServer.configs.kotlin.v2018_2.DslContext
import jetbrains.buildServer.configs.kotlin.v2018_2.buildSteps.maven
import jetbrains.buildServer.configs.kotlin.v2018_2.project
import jetbrains.buildServer.configs.kotlin.v2018_2.triggers.vcs
... | 1 | null | 1 | 1 | 78dedb5f4c861a1667eadbc0dd00418b83b3ccca | 3,622 | vertx-patterns | Apache License 2.0 |
next/kmp/browser/src/commonMain/kotlin/org/dweb_browser/browser/desk/DesktopWindowController.kt | BioforestChain | 594,577,896 | false | {"Kotlin": 2620314, "TypeScript": 690065, "Swift": 350138, "Vue": 143774, "SCSS": 39030, "Objective-C": 17350, "Shell": 11193, "HTML": 10444, "JavaScript": 3998, "CSS": 818} | package org.dweb_browser.browser.desk
import org.dweb_browser.sys.window.core.WindowController
import org.dweb_browser.sys.window.core.WindowState
import org.dweb_browser.sys.window.core.WindowsManager
class DesktopWindowController(
manager: DesktopWindowsManager,
state: WindowState,
) : WindowController(state, m... | 47 | Kotlin | 4 | 11 | b9b39e294badbb02eeb3a3a6d1851fd5105bd09f | 872 | dweb_browser | MIT License |
app/src/main/java/com/marvastsi/mediaplayer/MediaFragment.kt | marvastsi | 565,363,373 | false | null | package com.marvastsi.mediaplayer
import android.net.Uri
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android.widget.ArrayAdapter
import android.widget.MediaController
i... | 0 | Kotlin | 0 | 0 | c935dc9d3fd6ac4f3e6f3344a5a4acc67ca3a762 | 3,227 | media-player-android | MIT License |
src/test/kotlin/ControllerTestExtensions.kt | paulmiddelkoop | 456,872,687 | false | null | package se.pamisoft.theinvoice
import org.springframework.http.MediaType.APPLICATION_JSON
import org.springframework.test.web.servlet.ResultActionsDsl
fun ResultActionsDsl.thenJsonResultIs(jsonContent: String) {
andExpect {
status { isOk() }
content {
contentType(APPLICATION_JSON)
... | 2 | Kotlin | 0 | 0 | 4e15d1e75e9db730dbf0d887a5b9618811e4827b | 378 | the-invoice | MIT License |
src/test/kotlin/moe/irony/simplepc/monad_laws/TrampolineMonadTest.kt | kokoro-aya | 398,263,839 | false | null | package moe.irony.simplepc.monad_laws
class TrampolineMonadTest {
// TODO: 21/08/2021 "Not yet completed"
} | 0 | Kotlin | 0 | 0 | 3fc718f6c525b79ecd07b5f86264e5a18d5ee20d | 112 | NekoBinator | MIT License |
lib/src/main/kotlin/com/monkopedia/konstructor/lib/ScriptServiceImpl.kt | Monkopedia | 418,215,448 | false | null | /*
* Copyright 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 0 | Kotlin | 0 | 0 | 597c1c7b193734451ad9846e9010d98e1de3f1d5 | 4,043 | Konstructor | Apache License 2.0 |
compiler/fir/analysis-tests/testData/resolve/implicitTypeInFakeOverride.kt | JetBrains | 3,432,266 | false | null | fun <K> extract(x: Out<K>) = x.get()
class Out<out T>(val x: T) {
fun get() = x
}
fun test(out: Out<String>) {
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.String")!>extract(out)<!>
}
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 186 | kotlin | Apache License 2.0 |
shared-elements/src/main/java/com/mxalbert/sharedelements/MaterialArcMotion.kt | chachako | 342,547,917 | false | {"Kotlin": 141013} | /*
* Copyright 2021 The Android Open Source Project
* Copyright 2021 RinOrz (凛)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
... | 1 | Kotlin | 1 | 8 | 566e88f637b73fd85ddd93039c1f666890fd5c1b | 1,141 | compose-kitty | Apache License 2.0 |
src/main/kotlin/com/theonlytails/ketex/anchors.kt | TheOnlyTails | 481,508,642 | false | {"Kotlin": 28647} | package com.theonlytails.ketex
/**
* Append a start anchor (`^`) to the regex.
*
* > Matches the beginning of the string, or the beginning of a line if the multiline flag (`m`) is enabled.
* > This matches a position, not a character.
*/
context(KetexBuilder)
@KetexMarker
val start by token("^")
/**
* Append an... | 0 | Kotlin | 1 | 26 | e9a12f3d6d7f233ad2a2e39347447fbeff2be6b5 | 882 | ketex | MIT License |
compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/fir/FirOutputArtifact.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... | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.test.frontend.fir
import org.jetbrains.kotlin.fir.AbstractFirAnalyzerFacade
impo... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,488 | kotlin | Apache License 2.0 |
build-logic/src/main/kotlin/com/squareup/convention/AppConvention.kt | square | 554,372,622 | false | null | package com.squareup.convention
import com.squareup.convention.publishing.Publishing
import org.gradle.api.Plugin
import org.gradle.api.Project
/**
* This plugin is applied to our JVM app projects.
* ```
* plugins {
* id("com.squareup.app")
* }
* ```
*/
@Suppress("unused")
class AppConvention : Plugin<Projec... | 24 | Kotlin | 6 | 91 | b4d6f06bfde50680ad694769312de583e8fe0444 | 565 | gradle-dependencies-sorter | Apache License 2.0 |
build-logic/src/main/kotlin/com/squareup/convention/AppConvention.kt | square | 554,372,622 | false | null | package com.squareup.convention
import com.squareup.convention.publishing.Publishing
import org.gradle.api.Plugin
import org.gradle.api.Project
/**
* This plugin is applied to our JVM app projects.
* ```
* plugins {
* id("com.squareup.app")
* }
* ```
*/
@Suppress("unused")
class AppConvention : Plugin<Projec... | 24 | Kotlin | 6 | 91 | b4d6f06bfde50680ad694769312de583e8fe0444 | 565 | gradle-dependencies-sorter | Apache License 2.0 |
ui/src/main/java/io/snabble/sdk/ui/payment/externalbilling/ui/widgets/SubjectAlertDialog.kt | snabble | 124,525,499 | false | null | package io.snabble.sdk.ui.payment.externalbilling.ui.widgets
import android.app.Activity
import android.app.Dialog
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.text.InputFilter
import android.view.ViewGroup.LayoutPar... | 2 | null | 1 | 6 | 8fc301be7512714e127eb12566a905b59e2eed9d | 3,481 | Android-SDK | MIT License |
app/src/main/java/org/ageage/eggplant/feed/FeedFragment.kt | jageishi | 175,018,359 | false | null | package org.ageage.eggplant.feed
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import kotlinx.android.synthetic.main.fragment_feed.*
import org.ageage.eggplant.R
import org.ageage.eggplant.common.enums.Category
i... | 17 | Kotlin | 0 | 3 | 612f4d5d14863795ab4bd5acf52a34d00b6bb0ba | 1,574 | Eggplant | Apache License 2.0 |
app/src/main/kotlin/com/matthewemes/things/kotlinthing/MainActivity.kt | memes | 106,347,873 | false | null | package com.matthewemes.things.kotlinthing
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import com.google.android.things.pio.Gpio
import com.google.android.things.pio.PeripheralManagerService
import timber.log.Timber
import kotlinx.android.synthetic.main.activity_m... | 0 | Kotlin | 0 | 0 | 428795b6d599c900f8ffa70ac42f90737763b158 | 2,027 | kotlinthing | MIT License |
idea/src/org/jetbrains/kotlin/idea/KotlinPluginUpdater.kt | mikiyakitahara | 49,639,828 | false | null | /*
* Copyright 2010-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1 | null | 1 | 1 | ff00bde607d605c4eba2d98fbc9e99af932accb6 | 8,844 | kotlin | Apache License 2.0 |
kmp-nativecoroutines-compiler/src/test/kotlin/com/rickclephas/kmp/nativecoroutines/compiler/GenerateTests.kt | rickclephas | 374,341,212 | false | {"Kotlin": 199302, "Swift": 40082, "Ruby": 2852, "Java": 2203} | package com.rickclephas.kmp.nativecoroutines.compiler
import com.rickclephas.kmp.nativecoroutines.compiler.runners.AbstractDiagnosticsTest
import org.jetbrains.kotlin.generators.generateTestGroupSuiteWithJUnit5
fun main() {
generateTestGroupSuiteWithJUnit5 {
testGroup(testDataRoot = "src/testData", testsR... | 15 | Kotlin | 29 | 846 | 77dca3f4b23b377caa65a9f24285eaf6e09a3bcf | 468 | KMP-NativeCoroutines | MIT License |
src/test/kotlin/org/rustSlowTests/lang/resolve/CustomTargetCfgResolveTest.kt | intellij-rust | 42,619,487 | false | {"Gradle Kotlin DSL": 2, "Java Properties": 5, "Markdown": 11, "TOML": 19, "Shell": 2, "Text": 124, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "XML": 140, "Kotlin": 2284, "INI": 3, "ANTLR": 1, "Rust": 362, "YAML": 131, "RenderScript": 1, "JSON": 6, "HTML": 198, "SVG": 136, "JFlex": 1, "Java": 1, "Python": 37} | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rustSlowTests.lang.resolve
import org.rust.MinRustcVersion
import org.rust.cargo.RsWithToolchainTestBase
import org.rust.cargo.toolchain.tools.rustc
import org.rust.cargo.util.parseSemVer
import org.... | 1,841 | Kotlin | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 5,565 | intellij-rust | MIT License |
jvm/jvm-analysis-java-tests/testSrc/com/intellij/jvm/analysis/JavaJvmAnalysisTestUtil.kt | ingokegel | 72,937,917 | true | null | package com.intellij.jvm.analysis
object JavaJvmAnalysisTestUtil {
const val TEST_DATA_PROJECT_RELATIVE_BASE_PATH = "${JvmAnalysisTestUtil.MODULE_PATH}/jvm-analysis-java-tests/testData"
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 190 | intellij-community | Apache License 2.0 |
app/src/main/java/college/wyk/app/model/Stackable.kt | WYKCode | 81,462,363 | false | null | package college.wyk.app.model
interface Stackable | 1 | Kotlin | 1 | 7 | 4205693ca71267b2d149380588bb94a334104435 | 50 | WYK-Android | MIT License |
src/main/kotlin/com/github/vhromada/catalog/domain/CheatData.kt | vhromada | 23,755,847 | false | null | package com.github.vhromada.catalog.domain
import com.github.vhromada.common.entity.Audit
import javax.persistence.Entity
import javax.persistence.GeneratedValue
import javax.persistence.GenerationType
import javax.persistence.Id
import javax.persistence.SequenceGenerator
import javax.persistence.Table
/**
* A class... | 0 | Kotlin | 0 | 0 | 43511beaf8b774e415b87307ea9bbd3c857db163 | 1,066 | Catalog | MIT License |
src/main/kotlin/_0053_MaximumSubarray.kt | ryandyoon | 664,493,186 | false | null | import kotlin.math.max
// https://leetcode.com/problems/maximum-subarray
fun maxSubArray(nums: IntArray): Int {
var maxSum = nums[0]
var currentSum = maxSum
for (index in 1..nums.lastIndex) {
currentSum = max(currentSum + nums[index], nums[index])
maxSum = max(maxSum, currentSum)
}
... | 0 | Kotlin | 0 | 0 | 7f75078ddeb22983b2521d8ac80f5973f58fd123 | 336 | leetcode-kotlin | MIT License |
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/auxiliary/modifiers/modifiers.kt | androidports | 115,100,208 | false | null | /*
* Copyright 2000-2018 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.
*/
@file:JvmName("GrModifierListUtil")
package org.jetbrains.plugins.groovy.lang.psi.impl.auxiliary.modifiers
import com.intellij.psi.JavaPsiFacade
import com.intellij.psi.P... | 6 | null | 1 | 4 | 6e4f7135c5843ed93c15a9782f29e4400df8b068 | 7,202 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/orangetrainingcenterandroid/domain/quizz/model/VoteDomainModel.kt | zwayten | 662,213,656 | false | null | package com.example.orangetrainingcenterandroid.domain.quizz.model
data class VoteDomainModel(
val score: Int,
)
| 0 | Kotlin | 0 | 0 | 545afc0b9e4f17cc08cd2bc462af8f3fd71a6356 | 118 | OTC-Android | MIT License |
app/src/main/java/com/harr1424/listmaker/BaseApplication.kt | harr1424 | 467,743,859 | false | null | package com.harr1424.listmaker
import android.app.Application
import com.harr1424.listmaker.data.AppDatabase
/**
* An application class that inherits from [Application], allows for the creation of a singleton
* instance of the AppDatabase
*/
class BaseApplication : Application() {
val database: AppDatabase by ... | 0 | Kotlin | 0 | 4 | 1e3a8ba126e3b64f331891d98eb5032895ee48d9 | 360 | ListMaker-Android | MIT License |
common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/vault/add/AddScreen.kt | AChep | 669,697,660 | false | {"Kotlin": 5020574, "HTML": 45314} | @file:OptIn(ExperimentalMaterial3Api::class)
package com.artemchep.keyguard.feature.home.vault.add
import androidx.compose.animation.Crossfade
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.LocalIndication
import androidx.compose.foundation.background
import androidx.compose.founda... | 43 | Kotlin | 21 | 490 | df7db9bccab9f86410954799cc8b65b434b8f485 | 56,751 | keyguard-app | Linux Kernel Variant of OpenIB.org license |
common/src/commonMain/kotlin/tk/zwander/commonCompose/util/StateUtils.kt | zacharee | 342,079,605 | false | {"Kotlin": 344512, "AIDL": 84} | package tk.zwander.commonCompose.util
import androidx.compose.runtime.Composable
import androidx.compose.runtime.MutableState
import dev.icerock.moko.mvvm.flow.compose.collectAsMutableState
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableStateFlow
// TODO: Keep an eye on BasicTextField2 AP... | 8 | Kotlin | 96 | 939 | 6a61a0b1f596ca143f1ec4a7989d0a5632f9685c | 569 | SamloaderKotlin | MIT License |
library/src/linuxX64Main/kotlin/com/mrwhoknows/countries/kmp/library/fibiprops.linuxX64.kt | mrwhoknows55 | 796,037,431 | false | {"Kotlin": 1866} | package com.mrwhoknows.countries.kmp.library
actual val firstElement: Int = 3
actual val secondElement: Int = 5 | 0 | Kotlin | 0 | 0 | a12fd50a3d447f2886f298f0dca0b3dd4cae49f6 | 112 | countries-kmp | Apache License 2.0 |
app/src/main/java/com/github/amazingweather/di/module/ActivityBindingModule.kt | Edydaoud | 264,558,030 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 73, "XML": 44, "Java": 1, "Gradle Kotlin DSL": 1, "JAR Manifest": 1, "INI": 1, "Text": 2, "SQL": 1, "YAML": 1} | package com.github.amazingweather.di.module
import com.github.amazingweather.di.scope.ActivityScoped
import com.github.amazingweather.presentation.ui.activity.FragmentContainerActivity
import dagger.Module
import dagger.android.ContributesAndroidInjector
@Module
abstract class ActivityBindingModule {
@ActivitySco... | 0 | Kotlin | 0 | 1 | 5f974711242a596d8cf46ff4f16a4104f4e341ba | 482 | AmazingWeather | Apache License 2.0 |
src/jvmMain/kotlin/model/states/particularStates/IState.kt | DaniiLBez | 659,158,302 | false | null | package model.states.particularStates
interface IState {
fun nextStep()
fun backStep()
fun startAlgorithm()
fun finishAlgorithm()
fun resetAlgorithm()
fun mousePressed(posX: Double, posY: Double, cell: Any?)
fun mouseReleased(posX: Double, posY: Double, cell: Any?)
val status: String?
fun close()
}
| 0 | Kotlin | 0 | 2 | 63f4c707869c10f941bde3b5e072a92e3cf068c3 | 311 | stud_practice | MIT License |
security/src/test/java/com/root/security/EncodingModuleTest.kt | adessoTurkey | 246,803,496 | false | {"Kotlin": 262786, "Shell": 866} | package com.root.security
import com.root.security.encoding.hex.HexDecoder
import com.root.security.encoding.hex.HexEncoder
import org.junit.Assert
import org.junit.Test
/**
* @author haci
* @version 0.0.1
* @since 0.0.1
* Adesso Security Module.
* created on 21.11.2021
*/
class EncodingModuleTest {
privat... | 31 | Kotlin | 13 | 35 | b34346a815204c966311f0c879b66e05a10eab13 | 938 | android-sample-app | Apache License 2.0 |
PushNotification/app/src/main/java/com/juhwan/anyang_yi/present/views/home/keyword/KeywordViewModel.kt | juhwankim-dev | 324,930,598 | false | null | package com.juhwan.anyang_yi.present.views.home.keyword
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.juhwan.anyang_yi.data.model.KeywordEntity
import com.juhwan.anyang_yi.domain.usecase.keyword.Delet... | 1 | Kotlin | 1 | 5 | ae17bf81ec4bdf7a8704710b742b44cfc84a6b04 | 2,442 | pushNotificationApp | Apache License 2.0 |
exposed-jdbc/src/main/kotlin/org/jetbrains/exposed/sql/statements/jdbc/JdbcPreparedStatementImpl.kt | JetBrains | 11,765,017 | false | null | package org.jetbrains.exposed.sql.statements.jdbc
import org.jetbrains.exposed.sql.BinaryColumnType
import org.jetbrains.exposed.sql.BlobColumnType
import org.jetbrains.exposed.sql.IColumnType
import org.jetbrains.exposed.sql.statements.StatementResult
import org.jetbrains.exposed.sql.statements.api.PreparedStatementA... | 217 | null | 663 | 7,851 | f396d8ae6cf8923f574d2a6a1f098c88452957b6 | 3,843 | Exposed | Apache License 2.0 |
src/main/kotlin/ie/setu/domain/RecommendedDailyAllowance.kt | MartinDevStudent | 698,647,357 | false | {"Kotlin": 189074, "Vue": 70899, "HTML": 1950} | package ie.setu.domain
data class RecommendedDailyAllowance(
val calories: Double,
val fatTotalG: Double,
val fatSaturatedG: Double,
val proteinG: Double,
val sodiumMg: Int,
val potassiumMg: Int,
val cholesterolMg: Int,
val carbohydratesTotalG: Double,
val fiberG: Double,
val su... | 0 | Kotlin | 0 | 0 | 374d29450d72287f8b3ab5125f12fa4fe351bd64 | 336 | healthtrackerrest | PostgreSQL License |
libraries/arch/src/main/java/com/fappslab/rickandmortygraphql/libraries/arch/testing/rules/FragmentTestRule.kt | F4bioo | 628,097,763 | false | null | package com.fappslab.rickandmortygraphql.libraries.arch.testing.rules
import android.os.Bundle
import androidx.annotation.StyleRes
import androidx.annotation.VisibleForTesting
import androidx.fragment.app.Fragment
import androidx.fragment.app.testing.FragmentScenario
import androidx.lifecycle.Lifecycle
import com.goog... | 0 | Kotlin | 0 | 0 | d3e0405eae2038ea13c352daa8bc976da85914a4 | 1,833 | faurecia-aptoide-challenge | MIT License |
libraries/arch/src/main/java/com/fappslab/rickandmortygraphql/libraries/arch/testing/rules/FragmentTestRule.kt | F4bioo | 628,097,763 | false | null | package com.fappslab.rickandmortygraphql.libraries.arch.testing.rules
import android.os.Bundle
import androidx.annotation.StyleRes
import androidx.annotation.VisibleForTesting
import androidx.fragment.app.Fragment
import androidx.fragment.app.testing.FragmentScenario
import androidx.lifecycle.Lifecycle
import com.goog... | 0 | Kotlin | 0 | 0 | d3e0405eae2038ea13c352daa8bc976da85914a4 | 1,833 | faurecia-aptoide-challenge | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/nomisprisonerapi/core/PrisonService.kt | ministryofjustice | 444,895,409 | false | {"Kotlin": 2060121, "PLSQL": 263407, "Dockerfile": 1112} | package uk.gov.justice.digital.hmpps.nomisprisonerapi.core
import jakarta.transaction.Transactional
import org.springframework.data.repository.findByIdOrNull
import org.springframework.stereotype.Service
import uk.gov.justice.digital.hmpps.nomisprisonerapi.data.NotFoundException
import uk.gov.justice.digital.hmpps.nom... | 1 | Kotlin | 2 | 0 | 79cdfc08c0c75ef37324473406fdc71e77ec96e5 | 1,017 | hmpps-nomis-prisoner-api | MIT License |
app/src/main/java/com/example/weatherapp/model/CurrentWeatherData.kt | kushaldhengole | 667,028,478 | false | null | package com.example.weatherapp.model
data class CurrentWeatherData(val condition: String,val temp:String,
val humidity:String,val wind:String,val image: String,val locationName:String,val country:String)
| 0 | Kotlin | 0 | 0 | b602a676f1c3eaaaa1acebe5079e1830ef407e41 | 205 | WeatherAPP | Apache License 2.0 |
src/es/pelisplushd/src/eu/kanade/tachiyomi/animeextension/es/pelisplushd/Pelisplusph.kt | tonmoyislam250 | 705,795,259 | false | null | package eu.kanade.tachiyomi.animeextension.es.pelisplushd
import androidx.preference.ListPreference
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.animeextension.es.pelisplushd.extractors.FilemoonExtractor
import eu.kanade.tachiyomi.animeextension.es.pelisplushd.extractors.StreamlareExtractor
i... | 0 | Kotlin | 0 | 0 | 9532b590e370b53206cfe1d31874e6ce549a509e | 16,593 | aniyomi-extensions | Apache License 2.0 |
org.librarysimplified.audiobook.audioengine/src/main/java/org/librarysimplified/audiobook/audioengine/FindawayPlayerPlaybackStatus.kt | ThePalaceProject | 379,956,255 | false | {"Kotlin": 710862, "Java": 2392} | package org.librarysimplified.audiobook.audioengine
/**
* The playback status of the player.
*/
enum class FindawayPlayerPlaybackStatus {
/**
* The player is in the initialized state.
*/
INITIAL,
/**
* The player is currently buffering audio and can't play.
*/
BUFFERING,
/**
* The play... | 1 | Kotlin | 1 | 1 | 1ed86aae92d0e51070b63da5da20670a7e4a084d | 730 | android-audiobook | Apache License 2.0 |
kotlin-js/src/jsMain/kotlin/js/symbol/PrimitiveHint.kt | JetBrains | 93,250,841 | false | null | @file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
package js.symbol
import seskar.js.JsValue
import seskar.js.JsVirtual
@JsVirtual
sealed external interface PrimitiveHint {
companion object {
@JsValue("number")
val number: PrimitiveHint
@JsValue("string")
val string: Pr... | 34 | null | 174 | 1,294 | 5aaa9938ea3bee8a9bed5be39f8ab0729421d715 | 404 | kotlin-wrappers | Apache License 2.0 |
workmanager/src/main/java/worker/s06/ConstraintsFragment.kt | siarhei-luskanau | 78,451,961 | false | null | package worker.s06
import android.content.Context
import androidx.work.Constraints
import androidx.work.Data
import androidx.work.NetworkType
import androidx.work.OneTimeWorkRequestBuilder
import androidx.work.WorkManager
import androidx.work.WorkerParameters
import kotlinx.coroutines.delay
import siarhei.luskanau.exa... | 0 | Kotlin | 0 | 1 | fb8776d3a32ea222c90a6ae5f576abd923a33465 | 1,532 | android-samples | MIT License |
library/core-extentions/src/main/java/io/github/mayconcardoso/mvvm/core/ktx/ActivityExtention.kt | MayconCardoso | 257,414,651 | false | null | package io.github.mayconcardoso.mvvm.core.ktx
import android.view.LayoutInflater
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.LiveData
import androidx.lifecycle.lifecycleScope
import androidx.viewbinding.ViewBinding
import io.github.mayconcardoso.mvvm.core.BaseViewModel
import io.github.ma... | 0 | Kotlin | 1 | 14 | 41cc945107a819b442e1d0312e8c91ac060eb699 | 2,365 | Mvvm-Architecture-Toolkit | Apache License 2.0 |
src/kotlin-services/services/catalog/src/main/kotlin/com/example/app/catalog/application/usecase/CommandUseCases.kt | codejsha | 628,340,197 | false | null | package com.example.app.catalog.application.usecase
import com.example.app.catalog.domain.dto.ActorAddRequestDto
import com.example.app.catalog.domain.dto.ActorNameUpdateRequestDto
import com.example.app.catalog.domain.dto.MovieAddRequestDto
import com.example.app.catalog.domain.dto.MovieUpdateRequestDto
import com.ex... | 0 | Kotlin | 0 | 0 | b3fe748930f4372e09648ad626a5ad08382b5bd3 | 1,187 | sakila-microservices | Apache License 2.0 |
android/app/src/main/java/cloud/multipos/pos/views/CustomerTenderLine.kt | multipos-app | 773,180,579 | false | {"Kotlin": 548453, "Java": 306036} | /**
* Copyright (C) 2023 multiPOS, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 0 | Kotlin | 1 | 7 | 119bb0c86a5f9589e0219249b02f0f56d43120f7 | 1,946 | pos | Apache License 2.0 |
백준/제로.kt | jisungbin | 382,889,087 | false | null | import java.io.BufferedReader
import java.io.BufferedWriter
import java.io.InputStreamReader
import java.io.OutputStreamWriter
fun main() {
val br = BufferedReader(InputStreamReader(System.`in`))
val bw = BufferedWriter(OutputStreamWriter(System.out))
val deque = ArrayDeque<Int>()
List(br.readLine().t... | 0 | Kotlin | 1 | 9 | 215a0b0087f6ddbb65c7ac231a749f8e7d8bd827 | 588 | algorithm-code | MIT License |
android/anc/src/test/java/org/smartregister/fhircore/anc/ui/details/careplan/CarePlanDetailsFragmentTest.kt | issyzac | 420,960,297 | true | {"Kotlin": 1058894} | /*
* Copyright 2021 Ona Systems, 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 agr... | 0 | null | 0 | 0 | c4eb29dc58e6232dcee2431a77e082af7ed60421 | 7,651 | fhircore | Apache License 2.0 |
app/src/main/kotlin/cz/covid19cz/erouska/ui/contacts/event/ContactsCommandEvent.kt | covid19cz | 247,683,648 | false | null | package cz.covid19cz.erouska.ui.contacts.event
sealed class ContactsEvent {
data class ContactLinkClicked(val link: String) : ContactsEvent()
} | 0 | Kotlin | 57 | 205 | 23064413869fe7ba3d083beb9e6c639b59abfbcc | 148 | erouska-android | MIT License |
app/src/main/java/com/brimanning/mydatabinding/MainViewModel.kt | brimanning | 243,368,764 | false | null | package com.brimanning.mydatabinding
import androidx.annotation.StringRes
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
class MainViewModel : ViewModel() {
val count = MutableL... | 0 | Kotlin | 0 | 0 | 07277ff013759756a90d592ff272a935ecc91398 | 1,225 | databinding-examples | MIT License |
Aquarium/src/example/myapp/main.kt | kaden-kykim | 227,464,379 | false | null | package example.myapp
fun buildAquarium() {
makeFish()
val aquarium1 = Aquarium()
aquarium1.printSize()
val aquarium2 = Aquarium(width = 55)
aquarium2.printSize()
val aquarium3 = Aquarium(width = 60, height = 200, length = 400)
aquarium3.printSize()
val aquarium4 = Aquarium(numberOfFis... | 0 | Kotlin | 0 | 0 | 6d301ae88287ab9fb7cf71c15da3170aca8f1209 | 709 | CICCC-Android-Kotlin | MIT License |
app/src/main/kotlin/net/kivitro/kittycat/view/activity/MainActivity.kt | maiktheknife | 53,694,959 | false | null | package net.kivitro.kittycat.view.activity
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.os.Parcelable
import android.preference.PreferenceManager
import android.support.v4.widget.SwipeRefreshLayout
import android.support.v7.app.AppComp... | 0 | Kotlin | 0 | 0 | a9c74da77e226817c7f7b5ad9d58d2389d936b8d | 8,602 | KittyCat | MIT License |
im-commons/im-commons-api/src/main/kotlin/city/smartb/im/commons/utils/AddressUtils.kt | smartbcity | 651,445,390 | false | null | package city.smartb.im.commons.utils
import city.smartb.im.commons.model.Address
fun Address?.orEmpty() = this ?: Address(
street = "",
postalCode = "",
city = ""
)
| 0 | Kotlin | 0 | 0 | a85f09c5416ce211b671c14b13d25fbbe9804f3a | 179 | connect-im | Apache License 2.0 |
app/src/main/java/com/mozhimen/pagingk/test/crud/CrudActivity.kt | mozhimen | 747,018,353 | false | {"Kotlin": 163458} | package com.mozhimen.pagingk.test.crud
import android.os.Bundle
import androidx.lifecycle.Observer
import androidx.recyclerview.widget.LinearLayoutManager
import com.mozhimen.basick.elemk.androidx.appcompat.bases.databinding.BaseActivityVDBVM
import com.mozhimen.pagingk.test.databinding.ActivityCrudBinding
class Crud... | 0 | Kotlin | 2 | 2 | c9489f45b7f053e7778c3b40cc62041f3e54e80c | 1,380 | APagingKit | Apache License 2.0 |
base/media/medialib/src/main/kotlin/com/flammky/musicplayer/dump/mediaplayer/helper/external/providers/DocumentProviderHelper.kt | flammky | 462,795,948 | false | null | package com.flammky.musicplayer.dump.mediaplayer.helper.external.providers
import android.content.ContentResolver
import android.content.ContentUris
import android.content.Context
import android.net.Uri
import android.os.Environment
import android.provider.DocumentsContract
import android.provider.MediaStore
import an... | 0 | null | 6 | 56 | a452c453815851257462623be704559d306fb383 | 8,148 | Music-Player | Apache License 2.0 |
src/main/kotlin/com/helltar/artific_intellig_bot/commands/admin/ChatAsVoiceCommand.kt | Helltar | 591,327,331 | false | null | package com.helltar.artific_intellig_bot.commands.admin
import com.github.kotlintelegrambot.Bot
import com.github.kotlintelegrambot.entities.Message
import com.helltar.artific_intellig_bot.DIR_DB
import com.helltar.artific_intellig_bot.Strings
import com.helltar.artific_intellig_bot.commands.BotCommand
import com.hell... | 0 | Kotlin | 0 | 5 | a2946eeb658feb8755e7ba5a3c7c0662a43c9adb | 1,179 | artific_intellig_bot | MIT License |
app/src/main/java/com/movie/app/shared/data/model/Movie.kt | ShabanKamell | 203,558,411 | false | null | package com.movie.app.shared.data.model
import com.google.gson.annotations.SerializedName
data class Movie(
@SerializedName("poster_path")
var posterPath: String?,
@field:SerializedName("adult")
var isAdult: Boolean,
@field:SerializedName("overview")
var overview: Str... | 1 | Kotlin | 1 | 1 | fc6a5382d9ba85e5313c8286a1150787d2f9a512 | 1,438 | Movies | Apache License 2.0 |
presentation/src/main/java/com/sarangmorde/mycv/view/adapter/EducationListAdapter.kt | sarangmorde | 206,545,844 | false | null | package com.sarangmorde.mycv.view.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.sarangmorde.mycv.R
import com.sarangmorde.mycv.domain.model.Education
import com.sarangmorde.mycv.view.adapter.viewholder.MyCvV... | 0 | Kotlin | 0 | 0 | fe50e51460435c0d06d5fda0ebc502859267b2c2 | 2,244 | My-CV | MIT License |
uast/uast-kotlin-base/src/org/jetbrains/uast/kotlin/BaseKotlinUastResolveProviderService.kt | JetBrains | 278,369,660 | false | null | /*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.uast.kotlin
import com.intellij.psi.PsiClass
import com.intellij.psi.PsiElement
import ... | 0 | null | 29 | 71 | b6789690db56407ae2d6d62746fb69dc99d68c84 | 3,238 | intellij-kotlin | Apache License 2.0 |
wiki-webview/app/src/main/java/work/wander/wikiview/framework/toast/Toaster.kt | awallace87 | 797,502,762 | false | {"Kotlin": 642774} | package work.wander.wikiview.framework.toast
import android.content.Context
import android.widget.Toast
import dagger.hilt.android.qualifiers.ApplicationContext
import javax.inject.Inject
/**
* Interface to show toast messages.
*/
interface Toaster {
/**
* Show a toast message.
*
* @param messag... | 0 | Kotlin | 0 | 0 | 96d8356effa540198259646b87f751c3e08fc8bc | 789 | android-sample-apps | Apache License 2.0 |
common/src/main/java/io/github/pelmenstar1/digiDict/common/EmptyArray.kt | pelmenstar1 | 512,710,767 | false | {"Kotlin": 1238378, "Python": 531} | package io.github.pelmenstar1.digiDict.common
object EmptyArray {
@JvmField
val BYTE = ByteArray(0)
@JvmField
val LONG = LongArray(0)
@JvmField
val INT = IntArray(0)
@JvmField
val STRING = emptyArray<String>()
} | 6 | Kotlin | 0 | 3 | 62f9519a065f1b9f27d200636b07e11d88a270f6 | 247 | DigiDictionary | MIT License |
fluxo-core/src/commonMain/kotlin/kt/fluxo/core/strategy/LifoInputStrategy.kt | fluxo-kt | 566,869,438 | false | null | package kt.fluxo.core.strategy
import kotlinx.coroutines.channels.BufferOverflow
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.collectLatest
import kt.fluxo.core.InputStrategy
import kt.fluxo.core.dsl.InputStrategyScope
/**
* `Last-in, first-out` - stra... | 3 | Kotlin | 0 | 5 | 475f65186b273f02e875c59176dd3a4af0b0365f | 1,240 | fluxo-mvi | Apache License 2.0 |
evervault-common/src/test/java/com/evervault/sdk/common/handlers/DictionaryHandlerTest.kt | evervault | 650,073,299 | false | {"Kotlin": 326964, "Java": 1240, "Shell": 273} | package com.evervault.sdk.common.handlers
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertNotNull
import org.junit.Assert.assertTrue
import org.junit.Before
import org.junit.Test
import org.mockito.kotlin.anyOrNull
import org.mockito.kotlin.doAnswer
import org.moc... | 3 | Kotlin | 1 | 4 | 8b2cad55423df98d5e18f33f39ac0f47f3a50402 | 3,240 | evervault-android | MIT License |
lib/sisyphus-grpc/src/main/kotlin/com/bybutter/sisyphus/rpc/CallOptionsInterceptor.kt | ButterCam | 264,589,207 | false | {"Kotlin": 1182594, "ANTLR": 12352} | package com.bybutter.sisyphus.rpc
import io.grpc.CallOptions
import io.grpc.MethodDescriptor
interface CallOptionsInterceptor {
fun intercept(method: MethodDescriptor<*, *>, options: CallOptions): CallOptions
}
| 9 | Kotlin | 10 | 83 | 5622e1ffd5983d0a1478593f04fae2fa3ae125b5 | 217 | sisyphus | MIT License |
kmm/data/src/commonMain/kotlin/com/yao/tmdb/data/model/ProductionCompany.kt | yao-xie-kinto | 598,494,975 | false | null | package com.yao.tmdb.data.model
import kotlinx.serialization.Serializable
@Serializable
data class ProductionCompany(
val id: Int? = 0,
val logo_path: String? = null,
val name: String? = null,
val origin_country: String? = null
) | 0 | Kotlin | 0 | 0 | 8a0a36cf99e807c6dfd870a0f9e2e1db37c03f04 | 247 | TMDB_KMM | MIT License |
app/src/main/java/fr/openium/auvergnewebcams/ui/main/ViewModelMain.kt | openium | 84,578,399 | false | null | package fr.openium.auvergnewebcams.ui.main
import android.app.Application
import fr.openium.auvergnewebcams.base.AbstractViewModel
import fr.openium.auvergnewebcams.model.entity.Section
import fr.openium.auvergnewebcams.model.entity.Webcam
import fr.openium.auvergnewebcams.repository.SectionRepository
import fr.openiu... | 0 | Kotlin | 1 | 2 | e7e41eb2c021b895377b4a9933b2f5092640ae14 | 1,427 | auvergne-webcams-droid | MIT License |
src/main/kotlin/me/ezeh/copper/lang/operation/binary/CopperLogicalOr.kt | dignissimus | 117,887,289 | false | null | package me.ezeh.copper.lang.operation.binary
import me.ezeh.copper.lang.CopperExpression
import me.ezeh.copper.lang.CopperProgramme
class CopperLogicalOr(programme: CopperProgramme, left: CopperExpression, right: CopperExpression) : CopperBinaryOperation("logicalOr", programme, left, right) | 10 | Kotlin | 0 | 0 | b5b7fb666ef3283e004da51d2114e8a2ebc037c3 | 293 | Copper | Apache License 2.0 |
app/src/main/java/ch/nevis/exampleapp/ui/home/HomeFragment.kt | nevissecurity | 602,532,842 | false | null | /**
* Nevis Mobile Authentication SDK Example App
*
* Copyright © 2023. Nevis Security AG. All rights reserved.
*/
package ch.nevis.exampleapp.ui.home
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import a... | 1 | null | 0 | 2 | 1b3854ef8d1e5dbf80b4f89b166145f0b757ceaa | 3,857 | nevis-mobile-authentication-sdk-example-app-android | MIT License |
app/src/main/java/prieto/fernando/spacex/presentation/vm/LaunchesViewModel.kt | ferPrieto | 226,459,777 | false | null | package prieto.fernando.spacex.presentation.vm
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.CoroutineExceptionHandler
import kotlinx.coroutines.flow.catch
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.launch
import prieto.ferna... | 0 | Kotlin | 40 | 306 | f7f0aa5538f282c4a7bb0cb08387c72bab990c07 | 4,144 | Coroutines-Flows-Modularised | Apache License 2.0 |
retriever-runtime/src/commonMain/kotlin/com/ustadmobile/retriever/checksumproviders/KnownSha256ChecksumProvider.kt | UstadMobile | 439,850,316 | false | null | package com.ustadmobile.retriever.checksumproviders
import com.ustadmobile.retriever.ChecksumProvider
import com.ustadmobile.retriever.ChecksumType
class KnownSha256ChecksumProvider(val knownChecksum: ByteArray) : ChecksumProvider{
override suspend fun getExpectedChecksum(url: String, checksumType: ChecksumType)... | 0 | Kotlin | 0 | 0 | aa5c73a7b09d50fa596fad938d031bdb27dc9982 | 487 | retriever | MIT License |
scalechain-proto-codec/src/test/kotlin/io/scalechain/blockchain/proto/codec/messages/BlockSpec.kt | ScaleChain | 45,332,311 | false | null | package io.scalechain.blockchain.proto.codec.messages
import io.kotlintest.KTestJUnitRunner
import io.netty.buffer.Unpooled
import io.scalechain.blockchain.proto.*
import io.scalechain.blockchain.proto.codec.*
import io.scalechain.io.HexFileLoader
import io.scalechain.util.HexUtil.bytes
import org.junit.runner.RunWith... | 11 | Kotlin | 67 | 234 | e39b789928256b75c18acee847ccc2c2dc2dec5a | 1,591 | scalechain | Intel Open Source License |
app/src/main/java/com/akinci/doggoappcompose/ui/components/PageNavigator.kt | AttilaAKINCI | 440,251,794 | false | {"Kotlin": 127722} | package com.akinci.doggoappcompose.ui.components
import androidx.compose.foundation.layout.*
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.s... | 0 | Kotlin | 0 | 1 | c523cabc81059ba00ac46305052101b5d37024fb | 1,238 | Doggo | Apache License 2.0 |
src/main/kotlin/com/imma/utils/EnvMode.kt | Indexical-Metrics-Measure-Advisory | 344,732,013 | false | null | package com.imma.utils
import io.ktor.application.*
val Application.envKind get() = environment.config.property(EnvConstants.ENV_MODE).getString()
val Application.isDev get() = envKind == EnvConstants.ENV_MODE_DEV
val Application.isProd get() = envKind == EnvConstants.ENV_MODE_PROD | 0 | Kotlin | 0 | 1 | c42a959826e72ac8cea7a8390ccc7825f047a591 | 284 | watchmen-ktor | MIT License |
kork-plugins/src/main/kotlin/com/netflix/spinnaker/kork/plugins/update/internal/Front50Service.kt | spinnaker | 19,836,152 | false | {"Java": 1564018, "Kotlin": 594876, "Groovy": 107785, "Shell": 969, "JavaScript": 595, "HTML": 394} | /*
* Copyright 2020 Netflix, 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 ... | 16 | Java | 175 | 41 | 5baf9d8d228733f8d045d42e2eb9d2f4d663cc82 | 1,558 | kork | Apache License 2.0 |
src/main/kotlin/com/akkih/dusk/extension/ExMenu.kt | akkkih | 762,714,072 | false | {"Kotlin": 41563} | package com.akkih.dusk.extension
import com.akkih.dusk.menu.Menu
import net.kyori.adventure.text.Component
import org.bukkit.entity.Player
import org.bukkit.event.inventory.InventoryClickEvent
import org.bukkit.event.inventory.InventoryCloseEvent
import org.bukkit.event.inventory.InventoryOpenEvent
import org.bukkit.e... | 0 | Kotlin | 0 | 1 | 93bbad943028454fe6abe0c2268cc7bc0d095308 | 2,764 | dusk | MIT License |
screenshot_testing/src/test/java/com/costular/atomtasks/screenshottesting/designsystem/ScreenSubheaderSnapshotTest.kt | costular | 379,913,052 | false | null | package com.costular.atomtasks.screenshottesting.designsystem
import app.cash.paparazzi.Paparazzi
import com.costular.atomtasks.screenshottesting.utils.FontSize
import com.costular.atomtasks.screenshottesting.utils.PaparazziFactory
import com.costular.atomtasks.screenshottesting.utils.Theme
import com.costular.atomtas... | 2 | null | 0 | 9 | 8c81c3a3a9198e57bca0cdf8b399c89f01f28f84 | 1,281 | atom-tasks | Apache License 2.0 |
buildSrc/src/main/kotlin/com/orange/ouds/gradle/FileExt.kt | Orange-OpenSource | 817,725,638 | false | null | /*
* Software Name: Orange Design System
* SPDX-FileCopyrightText: Copyright (c) Orange SA
* SPDX-License-Identifier: MIT
*
* This software is distributed under the MIT licence,
* the text of which is available at https://opensource.org/license/MIT/
* or see the "LICENSE" file for more details.
*
* Software de... | 77 | null | 7 | 6 | 7fd1842d28ff258367499e7afa4016b10f821ea0 | 686 | ouds-android | MIT License |
src/main/kotlin/cloud/openerrands/opennlp/SupportedLanguage.kt | openerrands | 308,100,126 | false | null | package cloud.openerrands.opennlp
import opennlp.tools.postag.POSModel
import opennlp.tools.postag.POSTaggerME
import opennlp.tools.sentdetect.SentenceDetectorME
import opennlp.tools.sentdetect.SentenceModel
import opennlp.tools.stemmer.snowball.SnowballStemmer
import opennlp.tools.stemmer.snowball.SnowballStemmer.ALG... | 0 | Kotlin | 0 | 0 | 1c3a33b6f4d598443bf9759d5c534af52cab751a | 2,257 | openerrands-category-parser-lib | Apache License 2.0 |
src/main/kotlin/com/intellij/aws/cloudformation/CloudFormationPsiUtils.kt | sampritavh | 69,634,585 | true | {"Kotlin": 91697, "HTML": 354} | package com.intellij.aws.cloudformation
import com.intellij.json.psi.JsonLiteral
import com.intellij.json.psi.JsonObject
import com.intellij.json.psi.JsonProperty
import com.intellij.json.psi.JsonStringLiteral
import com.intellij.openapi.util.text.StringUtil
import com.intellij.psi.PsiElement
import com.intellij.psi.P... | 0 | Kotlin | 0 | 0 | bff496adf7a9f46b0264fc3929b2d866e671f7e7 | 3,374 | idea-cloudformation | Apache License 2.0 |
app/src/main/java/com/example/mvvm_dagger_kotlin_3_10_19/database/UserDao.kt | parthpitorda | 228,543,452 | false | null | package com.example.mvvm_dagger_kotlin_3_10_19.database
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
@Dao
interface UserDao {
@get:Query("SELECT * FROM User")
val getAllUser:List<User>
@Insert
fun insertAll(vararg user: User)
} | 0 | null | 0 | 5 | 5f37522edf20450aa96f1cc65133bdc00d406583 | 281 | kotlin_mvvm_dagger2 | MIT License |
server/src/main/com/broll/gainea/server/core/objects/buffs/BuffProcessor.kt | Rolleander | 253,573,579 | false | {"Kotlin": 426720, "Java": 265966, "HTML": 1714, "CSS": 1069, "JavaScript": 24} | package com.broll.gainea.server.core.objects.buffs
import com.broll.gainea.server.core.Game
import com.broll.gainea.server.core.objects.MapObject
import com.broll.gainea.server.core.objects.Unit
import com.broll.gainea.server.core.player.Player
import com.broll.gainea.server.core.player.isNeutral
import com.broll.gain... | 0 | Kotlin | 1 | 3 | f77dc6ff9c27b7067227eca1205ab3c4ff873625 | 2,610 | Gainea | MIT License |
src/main/kotlin/no/nav/dagpenger/doh/monitor/VedtakfattetMonitor.kt | navikt | 267,513,319 | false | {"Kotlin": 57658, "Dockerfile": 189} | package no.nav.dagpenger.doh.monitor
import mu.KotlinLogging
import mu.withLoggingContext
import no.nav.dagpenger.doh.Kibana
import no.nav.dagpenger.doh.slack.VedtakBot
import no.nav.helse.rapids_rivers.JsonMessage
import no.nav.helse.rapids_rivers.MessageContext
import no.nav.helse.rapids_rivers.RapidsConnection
impo... | 0 | Kotlin | 0 | 1 | 56a9225626a56f8fc16dbfce2ebd58912d8dcbac | 1,476 | dp-doh | MIT License |
app/src/main/java/com/breezedishanfarm/features/dailyPlan/model/GetPlanListResponseModel.kt | DebashisINT | 877,855,159 | false | {"Kotlin": 16013696, "Java": 1030008} | package com.breezedishanfarm.features.dailyPlan.model
import com.breezedishanfarm.base.BaseResponse
import java.io.Serializable
/**
* Created by Saikat on 24-12-2019.
*/
class GetPlanListResponseModel : BaseResponse(), Serializable {
var update_plan_list: ArrayList<GetPlanListDataModel>? = null
} | 0 | Kotlin | 0 | 0 | b59226c15f309bceee6069969a82f930d3a3897f | 305 | DISHANFARMS | Apache License 2.0 |
compiler/testData/codegen/boxInline/reified/arrayConstructor.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... | // FILE: 1.kt
package test
inline fun <reified T> f(x : () -> T): Array<T> = Array(1) { x() }
// FILE: 2.kt
import test.*
fun box(): String = f { "OK" }[0]
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 160 | kotlin | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.