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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
purchases/src/test/java/com/revenuecat/purchases/common/caching/InMemoryCachedObjectTest.kt | RevenueCat | 127,346,826 | false | null | package com.revenuecat.purchases.common.caching
import com.revenuecat.purchases.Offerings
import com.revenuecat.purchases.common.DateProvider
import io.mockk.mockk
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
import java.util.Date
class InMemoryCachedObjectTest {
// region clearCacheTim... | 30 | null | 52 | 253 | dad31133777389a224e9a570daec17f5c4c795ca | 2,356 | purchases-android | MIT License |
18.ShareViewModel/app/src/main/java/com/jdc/share/model/StudentModel.kt | minlwin | 233,192,363 | false | null | package com.jdc.share.model
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import java.util.*
class StudentModel:ViewModel() {
val name = MutableLiveData<String>("Min Lwin")
val entranceDate = MutableLiveData<Date>().also {
it.value = Date()
}
val subject = Muta... | 0 | Kotlin | 0 | 4 | 6971afb1b7a8602f7ea8dd207f346a803b941a63 | 423 | acl3-data-binding | MIT License |
Desenvolvimento Android/Cap 1 - O Mundo das Pequenas telas/08 - estruturas condicionais e de repetição/if-else.kt | fslaurafs | 333,881,500 | false | {"Jupyter Notebook": 59401, "JavaScript": 55135, "HTML": 48497, "Python": 19788, "Kotlin": 18635, "CSS": 10344, "C++": 785, "PHP": 559} | fun main(args: Array<String>) {
// if - else - else if
var number = 11
if (number % 2 == 0) {
println("Ele é par")
} else {
println("Ele é ímpar")
}
var temperature = 18
var climate = ""
if (temperature < 0 ) {
climate = "Muito frio"
} else if (temper... | 0 | Jupyter Notebook | 0 | 0 | 718458136eac36b5317ca2859e9f92be1524f60e | 622 | NanoCourses-FiapOn | MIT License |
src/main/kotlin/dev/interfiber/karpet/server/player/PlayerBackpack.kt | KarpetPowered | 490,243,114 | false | {"Kotlin": 68475, "Shell": 362} | package dev.interfiber.karpet.server.player
import net.minestom.server.coordinate.Pos
import net.minestom.server.entity.ItemEntity
import net.minestom.server.entity.Player
import net.minestom.server.event.item.PickupItemEvent
import net.minestom.server.instance.InstanceContainer
import net.minestom.server.instance.blo... | 0 | Kotlin | 1 | 8 | 1d0c1c2df4ad65d043150ebbb80b033c6ca86679 | 1,430 | Karpet | MIT License |
features/recipes/stepDetail/src/main/java/com/example/eziketobenna/bakingapp/stepdetail/presentation/mvi/StepDetailViewAction.kt | Ezike | 270,478,922 | false | null | package com.example.eziketobenna.bakingapp.stepdetail.presentation
import com.example.eziketobenna.bakingapp.domain.model.Step
import com.example.eziketobenna.bakingapp.presentation.mvi.ViewAction
sealed class StepDetailViewAction : ViewAction {
object Idle : StepDetailViewAction()
data class LoadInitialViewA... | 1 | null | 79 | 432 | ba1ee513d08f9d02141f914e3e58abde1abe4c14 | 593 | Baking-App-Kotlin | Apache License 2.0 |
app/src/main/java/xyz/hetula/dragonair/city/CityManager.kt | hetula | 185,856,171 | false | null | package xyz.hetula.dragonair.city
import android.content.Context
import com.google.gson.Gson
import xyz.hetula.dragonair.R
import xyz.hetula.dragonair.util.GsonHelper
import java.io.BufferedReader
import java.io.InputStreamReader
class CityManager {
private val mCities = HashMap<Long, City>()
fun loadCitiesS... | 0 | Kotlin | 0 | 0 | 7ce1fba3fcb73621efbbc0d2794e151e83f1da2a | 645 | wforweather | Apache License 2.0 |
app/src/main/java/com/rektapps/assaulttimer/notifications/ClickedNotificationEntity.kt | N3-M3-S1S | 199,498,741 | false | null | package com.rektapps.assaulttimer.notifications
import com.rektapps.assaulttimer.model.enums.AssaultType
import com.rektapps.assaulttimer.model.enums.Region
data class ClickedNotificationEntity(val region: Region, val assaultType: AssaultType) | 0 | Kotlin | 0 | 0 | 54c188e671558de43b63ea75993ec28591d8601d | 245 | assault_timer | MIT License |
src/test/kotlin/org/springframework/data/mapping/model/PreferredConstructorDiscovererUnitTests.kt | spring-projects | 1,072,614 | false | null | /*
* Copyright 2017-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 195 | null | 674 | 775 | 07a5c58903e5bd5741b80f6119fce167ee0e110d | 4,431 | spring-data-commons | Apache License 2.0 |
src/test/kotlin/de/bringmeister/spring/aws/kinesis/metrics/MetricsInboundHandlerTest.kt | bringmeister | 125,221,797 | false | null | package de.bringmeister.spring.aws.kinesis.metrics
import com.nhaarman.mockito_kotlin.doReturn
import com.nhaarman.mockito_kotlin.doThrow
import com.nhaarman.mockito_kotlin.mock
import com.nhaarman.mockito_kotlin.verify
import com.nhaarman.mockito_kotlin.whenever
import de.bringmeister.spring.aws.kinesis.KinesisInboun... | 4 | null | 6 | 24 | bb706ff599811f333363530bec9a9c3ec475ea37 | 3,608 | aws-kinesis-spring-boot-starter | MIT License |
kotlin-history/src/main/generated/history/HashHistory.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
package history
/**
* A hash history stores the current location in the fragment identifier portion
* of the URL in a web browser environment.
*
* This is ideal for apps that do not control the server for some reason
* (because the fragment identifier is never sent to ... | 11 | null | 135 | 916 | a1c5ba66f49ba16a50f7ce42acc82eefb8a32604 | 610 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/example/gallery/ui/SettingsActivity.kt | Lmh170 | 482,977,075 | false | {"Kotlin": 135906} | package org.kenvyra.gallery.ui
import android.os.Bundle
import android.provider.SearchRecentSuggestions
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.preference.Preference
import androidx.preference.PreferenceFragmentCompat
import org.kenvyra.gallery.MySuggestionProvider
... | 5 | Kotlin | 4 | 12 | 411c5be3c5f80ad8d7240e1b1397e59767187a16 | 1,764 | Android-Gallery-App | MIT License |
detekt-rules/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/bugs/DuplicateCaseInWhenSpec.kt | winterDroid | 101,381,574 | true | {"Kotlin": 238835, "Java": 163} | package io.gitlab.arturbosch.detekt.rules.bugs
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.rules.CommonSpec
import org.jetbrains.spek.subject.SubjectSpek
import org.jetbrains.spek.subject.itBehavesLike
/**
* @author <NAME>
*/
class DuplicateCaseInWhenSpec : SubjectSpek<Duplicate... | 0 | Kotlin | 2 | 0 | 95857d9d64888a42d8bf6ade0e5eb5adcc28a32c | 433 | detekt-old | Apache License 2.0 |
app/src/main/java/io/dwak/hoverlauncher/app/LauncherMenuService.kt | burntcookie90 | 130,277,693 | false | null | package io.dwak.hoverlauncher.app
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.arch.lifecycle.GenericLifecycleObserver
import android.arch.lifecycle.Lifecycle
import android.arch.lifecycle.LifecycleOwner
import android.arch.lifecycle.Servi... | 0 | Kotlin | 0 | 3 | 169319f72869cf847c74cb7eb1a1ff9de2252ce2 | 2,512 | floating-launcher | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/BarberShop.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,117 | icons | MIT License |
settings-presentation/src/main/java/com/infinitepower/newquiz/settings_presentation/SettingsScreenUiEvent.kt | joaomanaia | 443,198,327 | false | null | package com.infinitepower.newquiz.settings_presentation
sealed interface SettingsScreenUiEvent {
object DownloadTranslationModel : SettingsScreenUiEvent
object DeleteTranslationModel : SettingsScreenUiEvent
object SignOut : SettingsScreenUiEvent
object ClearWordleCalendarItems : SettingsScreenUiEven... | 2 | Kotlin | 8 | 62 | 0dfff8721f37d61e8328f620ec3dd5a4d2f2c151 | 423 | newquiz | Apache License 2.0 |
core/ui/src/main/java/org/expenny/core/ui/base/ExpennyDrawerManager.kt | expenny-application | 712,607,222 | false | {"Kotlin": 1159082} | package org.expenny.core.ui.base
import androidx.compose.animation.core.TweenSpec
import androidx.compose.material3.DrawerState
import androidx.compose.material3.DrawerValue
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
import androi... | 0 | Kotlin | 3 | 42 | 0eb0f1fa9a4376c3ad2222d16ec704754f7f0786 | 1,856 | expenny-android | Apache License 2.0 |
examples/testapp/src/main/java/saas/test/app/utils/Resource.kt | digime | 198,619,583 | false | {"Kotlin": 198719} | package me.digi.saas.utils
/**
* Utility class that helps us handle UI components
*/
sealed class Resource<out T>(val data: T? = null, val message: String? = null) {
class Idle<out T> : Resource<T>()
class Loading<out T> : Resource<T>()
class Success<out T>(data: T) : Resource<T>(data)
class Failure<... | 0 | Kotlin | 3 | 1 | dd0b82f0c991547c220d09408b63996b758a4c0d | 392 | digime-sdk-android | Apache License 2.0 |
libraries/tools/kotlin-gradle-plugin-idea-proto/src/test/kotlin/org/jetbrains/kotlin/gradle/idea/proto/kpm/FragmentTest.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.gradle.idea.proto.kpm
import org.jetbrains.kotlin.gradle.idea.kpm.*
import org.j... | 157 | null | 5608 | 45,423 | 2db8f31966862388df4eba2702b2f92487e1d401 | 2,036 | kotlin | Apache License 2.0 |
json-model-generator/src/main/kotlin/eft/weapons/builds/BuildModelsAnnotationProcessor.kt | neonailol | 207,225,209 | false | {"Kotlin": 55401} | package eft.weapons.builds
import com.google.auto.service.AutoService
import java.io.File
import javax.annotation.processing.AbstractProcessor
import javax.annotation.processing.Processor
import javax.annotation.processing.RoundEnvironment
import javax.annotation.processing.SupportedAnnotationTypes
import javax.annota... | 0 | Kotlin | 1 | 0 | 1254d1157a7478360480d2a4a84aad590a95e201 | 1,587 | eft-codex | MIT License |
afterpay/src/main/kotlin/com/afterpay/android/internal/AfterpayInstalment.kt | afterpay | 279,474,371 | false | null | package com.afterpay.android.internal
import java.math.BigDecimal
import java.math.RoundingMode
import java.text.DecimalFormat
import java.text.NumberFormat
import java.util.Currency
internal sealed class AfterpayInstalment {
data class Available(
val instalmentAmount: String
) : AfterpayInstalment()
... | 0 | Kotlin | 1 | 4 | 14236a9eb95ec8d3a0c886f18a376a15fe572fd6 | 2,700 | sdk-android | Apache License 2.0 |
recursion/src/main/java/com/github/ch8n/recursion/extension.kt | ch8n | 557,463,156 | false | null | package com.github.ch8n.recursion
inline fun Int.ifZero(action: () -> Unit) {
if (this == 0) {
action.invoke()
}
} | 0 | Kotlin | 0 | 1 | b0cf5d46ee1321509931cfab80f4229d181f16fc | 131 | DataStructureKT | Adobe Glyph List License |
platform/util/ui/src/com/intellij/util/ui/StartupUiUtil.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:Suppress("ReplaceGetOrSet")
package com.intellij.util.ui
import com.intellij.openapi.Disposable
import com.intellij.openapi.util.Disposer
import com.intellij.openapi.util.SystemInfoRt
import ... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 17,336 | intellij-community | Apache License 2.0 |
service/src/test/kotlin/no/nav/su/se/bakover/service/søknadsbehandling/SøknadsbehandlingServiceOppdaterStønadsperiodeTest.kt | navikt | 227,366,088 | false | null | package no.nav.su.se.bakover.service.søknadsbehandling
import arrow.core.left
import arrow.core.right
import io.kotest.matchers.shouldBe
import io.kotest.matchers.shouldNotBe
import no.nav.su.se.bakover.common.juni
import no.nav.su.se.bakover.common.mars
import no.nav.su.se.bakover.common.periode.Periode
import no.nav... | 4 | null | 0 | 1 | d7157394e11b5b3c714a420a96211abb0a53ea45 | 4,515 | su-se-bakover | MIT License |
src/client/kotlin/com/cheat/features/SwitchTool.kt | xRetart | 760,102,686 | false | {"Kotlin": 27144, "Java": 1018} | package com.cheat.features
import com.cheat.utility.findInHotbarBy
import net.minecraft.block.BlockState
import net.minecraft.client.MinecraftClient
import net.minecraft.client.network.ClientPlayerEntity
import net.minecraft.item.SwordItem
import net.minecraft.util.hit.BlockHitResult
import net.minecraft.util.hit.Enti... | 0 | Kotlin | 0 | 1 | 07e485609627442300f738d9c18ba3b0069715fd | 2,319 | informatikcheat | Creative Commons Zero v1.0 Universal |
idea/src/org/jetbrains/kotlin/idea/intentions/branchedTransformations/intentions/IfThenToSafeAccessIntention.kt | gigliovale | 89,726,097 | 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 | 4 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 3,765 | kotlin | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/sam/CfnFunctionTableStreamSAMPTPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 70198112} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.sam
import cloudshift.awscdk.common.CdkDslMarker
import kotlin... | 3 | Kotlin | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 1,240 | awscdk-dsl-kotlin | Apache License 2.0 |
snapshots/sample/ui-module/src/androidTest/kotlin/com/emergetools/snapshots/sample/ui/GreetingPreview.kt | EmergeTools | 645,957,551 | false | {"Kotlin": 255570} | package com.emergetools.snapshots.sample.ui
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
@Preview
@Composable
fun GreetingPreviewFromAndroidTest() {
Greeting("AndroidTest")
}
| 3 | Kotlin | 1 | 9 | 8174b9c6e2d7791e01363aabd4d287736bfa38c4 | 228 | emerge-android | Apache License 2.0 |
app/src/main/java/com/saxenasachin/redditpics/ui/SplashActivity.kt | saxenasachin | 505,074,064 | false | null | package com.saxenasachin.redditpics.ui
import android.os.Bundle
import android.os.Handler
import androidx.appcompat.app.AppCompatActivity
import com.saxenasachin.redditpics.databinding.ActivitySplashBinding
/**
Created by <NAME> on 19/06/22.
*/
class SplashActivity : AppCompatActivity() {
override fun onCreate(... | 0 | Kotlin | 0 | 1 | 99b570d65bd646877af765e71b1674e3a4113a1c | 890 | Reddit-PIcs-Browser | Apache License 2.0 |
src/main/kotlin/com/mineinabyss/blocky/BlockyCommandExecutor.kt | MineInAbyss | 468,482,997 | false | {"Kotlin": 178711} | package com.mineinabyss.blocky
import com.github.shynixn.mccoroutine.bukkit.launch
import com.mineinabyss.blocky.components.core.BlockyFurniture
import com.mineinabyss.blocky.components.features.blocks.BlockyDirectional
import com.mineinabyss.blocky.helpers.gearyInventory
import com.mineinabyss.blocky.menus.BlockyMain... | 8 | Kotlin | 0 | 3 | a848b556befb7dff5cbd261fe4dba8091c1b70da | 7,137 | Blocky | MIT License |
app/src/main/java/com/mindbodyonline/workshop/ui/theme/Icon.kt | MINDBODY-Mobile | 361,985,948 | false | null | package com.mindbodyonline.workshop.ui.theme
| 0 | Kotlin | 0 | 1 | d0a95229fbd6c728fdccc378c0712dc7dc47aec7 | 46 | 2021-Engineering-Summit-Workshop | Apache License 2.0 |
vid-app-common/src/main/java/org/onap/vid/job/command/RootServiceCommand.kt | onap | 115,762,948 | false | null | package org.onap.vid.job.command
import org.onap.portalsdk.core.logging.logic.EELFLoggerDelegate
import org.onap.vid.job.Job
import org.onap.vid.job.JobAdapter
import org.onap.vid.job.JobCommand
import org.onap.vid.job.JobsBrokerService
import org.onap.vid.job.impl.JobSharedData
import org.onap.vid.model.Action
import... | 4 | null | 5 | 6 | 8cef7fbeed5b8f1255535fcf1cf0c7304df6d447 | 4,640 | archived-vid | Apache License 2.0 |
mordant/src/commonMain/kotlin/com/github/ajalt/mordant/terminal/TerminalColors.kt | ajalt | 104,693,921 | false | null | package com.github.ajalt.mordant.terminal
import com.github.ajalt.colormath.Color
import com.github.ajalt.mordant.internal.DEFAULT_STYLE
import com.github.ajalt.mordant.internal.downsample
import com.github.ajalt.mordant.rendering.TextColors
import com.github.ajalt.mordant.rendering.TextStyle
import com.github.ajalt.m... | 18 | null | 34 | 946 | 059b9a71ecbaececb0a58a197981295b0e5e0aec | 6,605 | mordant | Apache License 2.0 |
nav/safeargs/common/src/com/android/tools/idea/nav/safeargs/cache/DirectionsShortNamesCache.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 4,352 | android | Apache License 2.0 |
module/bookmark/src/main/java/com/tochy/tochybrowser/bookmark/overflow/model/HideModel.kt | tochyodikwa | 613,355,237 | false | null |
package com.tochy.tochybrowser.bookmark.overflow.model
typealias HideModel = Int
| 0 | Kotlin | 0 | 0 | a0ca7aca9488134188c5c4cca1c3bae7981863c8 | 84 | Browser | Apache License 2.0 |
src/test/kotlin/com/aperfilyev/versioncataloghelper/editor/MyCopyPastePreProcessorTest.kt | aperfilyev | 743,381,903 | false | {"Kotlin": 20547} | package com.aperfilyev.versioncataloghelper.editor
import com.intellij.openapi.ide.CopyPasteManager
import com.intellij.testFramework.EditorTestUtil
import com.intellij.testFramework.fixtures.BasePlatformTestCase
import org.intellij.lang.annotations.Language
import org.toml.lang.psi.TomlFileType
import java.awt.datatr... | 2 | Kotlin | 0 | 1 | f090f56a1a6a1270bdaba8c7f17bdb4c1c059c67 | 7,578 | version-catalog-helper | Apache License 2.0 |
multik-openblas/src/commonMain/kotlin/org/jetbrains/kotlinx/multik/openblas/math/NativeMath.kt | Kotlin | 265,785,552 | false | {"Kotlin": 1233813, "C++": 95317, "C": 8142, "CMake": 6406} | /*
* Copyright 2020-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package org.jetbrains.kotlinx.multik.openblas.math
import org.jetbrains.kotlinx.multik.api.math.Math
import org.jetbrains.kotlinx.multik.api.math.MathEx
import org.jetbrains.kotlinx.multik.ndarray.data.*
int... | 59 | Kotlin | 39 | 636 | b121652b8d151782d5770c5e1505864ac0307a5b | 8,599 | multik | Apache License 2.0 |
app/src/main/java/com/duckduckgo/widget/SearchAndFavoritesGridCalculator.kt | duckduckgo | 78,869,127 | false | {"Kotlin": 14333964, "HTML": 63593, "Ruby": 20564, "C++": 10312, "JavaScript": 8463, "CMake": 1992, "C": 1076, "Shell": 784} | /*
* Copyright (c) 2021 DuckDuckGo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 67 | Kotlin | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 3,026 | Android | Apache License 2.0 |
app/src/main/java/com/simbiri/equityjamii/constants/CONSTANTS.kt | SimbaSimbiri | 706,250,529 | false | {"Kotlin": 240056} | package com.simbiri.equityjamii.constants
import com.simbiri.equityjamii.data.model.AuthUtils
val POST_COLLECTION ="Post_Gallery"
val POST_STORAGE_REF ="PostStorage_Images"
val NEWS_STORAGE_REF = "NewsImageStore"
val USERS_COLLECTION ="Users"
val LIKES_SUB_COLLECTION = "Likes"
val NEWS_COLLECTION = "News"
val EVENTS_... | 0 | Kotlin | 0 | 0 | afe8f3958915c21d6db20701addaa3c2e63f68fc | 384 | EquiJamii | Apache License 2.0 |
vk-api/src/main/kotlin/name/alatushkin/api/vk/generated/board/methods/BoardGetTopicsMethodExtended.kt | alatushkin | 156,866,851 | false | null | package name.alatushkin.api.vk.generated.board.methods
import com.fasterxml.jackson.core.type.TypeReference
import name.alatushkin.api.vk.VkMethod
import name.alatushkin.api.vk.api.VkSuccess
import name.alatushkin.api.vk.generated.board.GetTopicsResponse
import name.alatushkin.api.vk.generated.board.Order
import name.... | 2 | Kotlin | 3 | 10 | 123bd61b24be70f9bbf044328b98a3901523cb1b | 3,421 | kotlin-vk-api | MIT License |
agoraui/src/main/kotlin/io/agora/uikit/impl/users/AgoraUIRoster.kt | AgoraIO-Community | 330,886,965 | false | null | package io.agora.uikit.impl.users
import android.annotation.SuppressLint
import android.app.Dialog
import android.content.Context
import android.content.DialogInterface
import android.graphics.Color
import android.graphics.Rect
import android.text.SpannableString
import android.text.style.ImageSpan
import android.util... | 2 | null | 10 | 8 | 4dbaa7e4a69dce0078d4126ac866a68352a3847d | 19,851 | CloudClass-Android | MIT License |
common/src/main/kotlin/de/sambalmueslie/openevent/common/crud/CrudService.kt | Black-Forrest-Development | 542,810,521 | false | null | package de.sambalmueslie.openevent.common.crud
import io.micronaut.data.model.Page
import io.micronaut.data.model.Pageable
interface CrudService<T, O : BusinessObject<T>, R : BusinessObjectChangeRequest> {
fun get(id: T): O?
fun getAll(pageable: Pageable): Page<O>
fun create(request: R): O
fun update... | 1 | Kotlin | 0 | 1 | 317fbad90ec99908cc527b4082af0ba89525fe42 | 500 | open-event | Apache License 2.0 |
komga/src/main/kotlin/org/gotson/komga/infrastructure/hash/Hasher.kt | gotson | 201,228,816 | false | null | package org.gotson.komga.infrastructure.hash
import com.appmattus.crypto.Algorithm
import mu.KotlinLogging
import org.springframework.stereotype.Component
import java.io.InputStream
import java.nio.file.Path
import kotlin.io.path.inputStream
private val logger = KotlinLogging.logger {}
private const val DEFAULT_BUFF... | 86 | null | 240 | 4,029 | 6cc14e30beac7598284b9ceb2cdaf18da5aed76c | 1,060 | komga | MIT License |
compose/foundation/foundation-layout/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/layout/WindowInsetsDeviceTest.kt | androidx | 256,589,781 | false | null | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 29 | null | 937 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 13,232 | androidx | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsjobsboardapi/unit/messaging/OutboundEventsServiceTest.kt | ministryofjustice | 775,484,528 | false | {"Kotlin": 44647, "Dockerfile": 1154} | package uk.gov.justice.digital.hmpps.hmppsjobsboardapi.unit.messaging
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.mockito.Mock
import org.mockito.junit.jupiter.MockitoExtension
import org.springframework.security.core.Authentica... | 0 | Kotlin | 0 | 0 | 7be25a1356f2964feed77a3f4b7ea22044b12691 | 1,256 | hmpps-jobs-board-api | MIT License |
src/main/kotlin/snc/smartchargingnetwork/node/models/exceptions/ScpiExceptions.kt | Smart-Charging | 245,366,665 | false | {"Gradle Kotlin DSL": 2, "YAML": 2, "Dockerfile": 1, "INI": 3, "Shell": 3, "Text": 1, "Batchfile": 1, "Markdown": 2, "Kotlin": 152, "Java": 2, "Java Properties": 3, "AsciiDoc": 1, "desktop": 1, "JSON": 2} | /*
Copyright 2020 Smart Charging Solutions
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 1 | null | 1 | 1 | 15d7320f19d5ce94782a8e52635855dc046aa5a4 | 4,063 | scn-node | Apache License 2.0 |
library/src/main/java/ru/mintrocket/lib/mintpermissions/internal/MintPermissionsControllerImpl.kt | mintrocket | 503,334,946 | false | {"Kotlin": 111822} | package ru.mintrocket.lib.mintpermissions.internal
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.map
import ru.mintrocket.lib.mintpermissions.MintPermissionsController
import ru.mintrocket.lib.mintpermissions.... | 1 | Kotlin | 3 | 68 | 2de0d97454e7ab330418e53d9d1a2b899ca06ad0 | 2,638 | MintPermissions | MIT License |
tutorials/tutorial-sample/src/main/java/com/zhuinden/simplestacktutorials/steps/step_7/Step7Activity.kt | Zhuinden | 78,756,993 | false | null | package com.zhuinden.simplestacktutorials.steps.step_7
import android.content.Context
import android.os.Bundle
import androidx.activity.OnBackPressedCallback
import androidx.appcompat.app.AppCompatActivity
import com.zhuinden.simplestack.GlobalServices
import com.zhuinden.simplestack.History
import com.zhuinden.simple... | 5 | Java | 76 | 1,309 | c2d55fe826e9fcab995af9efe1270d23cfbd1417 | 2,833 | simple-stack | Apache License 2.0 |
app/src/main/kotlin/com/sbhachu/bootstrap/extensions/ViewPager.kt | sbhachu | 67,833,845 | false | null | package com.sbhachu.bootstrap.extensions
import android.support.v4.view.ViewPager
import com.sbhachu.bootstrap.extensions.listener.PageWatcher
fun ViewPager.pageListener(init: PageWatcher.() -> Unit) {
addOnPageChangeListener(PageWatcher().apply(init))
} | 0 | Kotlin | 2 | 2 | f40f34667f435c9878ed62e7c066ff466b09fbfe | 260 | kotlin-bootstrap | Apache License 2.0 |
modules/feature/feature_schedule/src/test/kotlin/kekmech/ru/feature_schedule/ScheduleReducerTest.kt | tonykolomeytsev | 203,239,594 | false | null | package kekmech.ru.feature_schedule
import io.kotest.core.spec.style.BehaviorSpec
import io.kotest.matchers.booleans.shouldBeFalse
import io.kotest.matchers.booleans.shouldBeTrue
import io.kotest.matchers.collections.shouldBeEmpty
import io.kotest.matchers.collections.shouldContainExactly
import io.kotest.matchers.map... | 9 | Kotlin | 4 | 21 | 4ad7b2fe62efb956dc7f8255d35436695643d229 | 12,353 | mpeiapp | MIT License |
src/main/kotlin/org/batteryparkdev/cosmicgraphdb/neo4j/loader/CosmicTumorLoader.kt | fcriscuo | 407,274,893 | false | {"Java": 281073, "Kotlin": 178148} | package org.batteryparkdev.cosmicgraphdb.neo4j.loader
import com.google.common.base.Stopwatch
import com.google.common.flogger.FluentLogger
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.ReceiveChannel
import kotlinx.coroutines.channels.p... | 1 | null | 1 | 1 | c55422a21c5250e61a8437fba533caff0c1c3b83 | 4,423 | CosmicGraphDb | Creative Commons Zero v1.0 Universal |
app/src/test/java/com/garymcgowan/moviepedia/MovieDetailsActivityPresenterTest.kt | GaryMcGowan | 89,954,716 | false | null | package com.garymcgowan.moviepedia
import com.garymcgowan.moviepedia.model.Movie
import com.garymcgowan.moviepedia.model.MovieRepository
import com.garymcgowan.moviepedia.view.details.MovieDetailsContract
import com.garymcgowan.moviepedia.view.details.MovieDetailsPresenter
import io.reactivex.Single
import io.reactive... | 0 | Kotlin | 0 | 0 | 2010e76a8b771d9d55f9d808d4b8d6f24069d84e | 1,788 | Moviepedia | Apache License 2.0 |
compiler-plugin/src/main/java/io/mths/kava/compiler/frontend/k2/resolve/ConstantValueKind.kt | MerlinTHS | 598,539,841 | false | null | package io.mths.kava.compiler.frontend.k2.resolve
import org.jetbrains.kotlin.fir.FirSession
import org.jetbrains.kotlin.fir.expressions.FirConstExpression
import org.jetbrains.kotlin.fir.expressions.builder.buildConstExpression
import org.jetbrains.kotlin.fir.resolve.transformers.body.resolve.expectedConeType
import ... | 0 | Kotlin | 0 | 0 | 5d038afd21c7099a47eb889422dbdb4b34926d0f | 743 | KavaCompilerPlugin | Apache License 2.0 |
src/main/kotlin/care/better/platform/web/template/builder/model/input/range/WebTemplateTemporalRange.kt | better-care | 343,549,109 | false | null | /* Copyright 2021 Better Ltd (www.better.care)
*
* 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 ... | 0 | Kotlin | 1 | 1 | 4aa47c5c598be6687dc2c095b1f7fcee49702a28 | 3,722 | web-template | Apache License 2.0 |
core/model/src/test/kotlin/au/com/dius/pact/core/model/OptionalBodyTest.kt | pact-foundation | 15,750,847 | false | null | package au.com.dius.pact.core.model
import io.kotlintest.matchers.shouldBe
import io.kotlintest.matchers.shouldEqual
import io.kotlintest.specs.StringSpec
import java.nio.charset.Charset
class OptionalBodyTest : StringSpec() {
val nullBodyVar: OptionalBody? = null
val missingBody = OptionalBody.missing()
val n... | 338 | null | 466 | 998 | 74cd39cc2d2717abce6b44025dd40fc86fc64a74 | 3,024 | pact-jvm | Apache License 2.0 |
idea/tests/testData/multiModuleQuickFix/createExpect/sealedClass/jvm/My.kt | JetBrains | 278,369,660 | false | null | // "Create expected class in common module testModule_Common" "true"
// DISABLE-ERRORS
actual sealed class <caret>My actual constructor(actual val x: Double) {
actual abstract val num: Int
actual open fun isGood() = false
actual object First : My(1.0) {
actual override val num = 0
}
act... | 284 | null | 5162 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 532 | intellij-kotlin | Apache License 2.0 |
projects/wotw-server/src/commonMain/kotlin/wotw.util/MultiMap.kt | timoschwarzer | 371,785,735 | true | {"C": 48238133, "C++": 47731793, "C#": 1375424, "Rust": 410871, "Kotlin": 246948, "Scala": 132870, "AutoHotkey": 78595, "CMake": 41111, "Objective-C": 9352, "CSS": 7917, "Batchfile": 3132, "JavaScript": 1623, "Shell": 622, "HTML": 296} | package wotw.util
class MultiMap<K, V>(private val backingMap: MutableMap<K, MutableSet<V>>): Map<K, MutableSet<V>> by backingMap{
constructor(): this(hashMapOf())
override operator fun get(key: K): MutableSet<V>{
return backingMap.getOrPut(key){ mutableSetOf()}
}
fun add(key: K, value: V){
... | 0 | C | 0 | 0 | f5a1582a4d70f0046c20f572c3c4d2b4da2522b6 | 452 | OriWotwRandomizerClient | MIT License |
app/src/main/java/org/stepic/droid/ui/fragments/FastContinueFragment.kt | romanbannikov | 205,717,847 | false | null | package org.stepic.droid.ui.fragments
import android.graphics.BitmapFactory
import android.os.Bundle
import android.support.annotation.StringRes
import android.support.v4.graphics.drawable.RoundedBitmapDrawableFactory
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.... | 1 | null | 1 | 1 | 8a2ead7334b6b26a281b3a7842e6502fd96b2cc5 | 8,657 | stepik-android | Apache License 2.0 |
src/test/java/net/swiftzer/semver/SemVerTest.kt | swiftzer | 107,759,525 | false | null | package net.swiftzer.semver
import org.junit.Test
import kotlin.test.assertEquals
import kotlin.test.assertFails
import kotlin.test.assertFalse
import kotlin.test.assertTrue
class SemVerTest {
@Test
fun initValid() {
SemVer(12, 23, 34, "alpha.12", "test.34")
}
@Test
fun initInvalidMajor(... | 6 | null | 13 | 70 | 57dbf2f10c83629e5f7a85d89df7a7383f9c6328 | 9,929 | semver | MIT License |
app/src/main/java/com/progix/fridgex/light/functions/Functions.kt | T8RIN | 417,568,516 | false | {"Kotlin": 454504, "Java": 146} | package com.progix.fridgex.light.functions
import android.content.Context
import android.content.ContextWrapper
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.Handler
import android.os.Looper
import com.progix.fridgex.light.data.DataArrays
import com.progix.fridgex.light.model.R... | 0 | Kotlin | 4 | 30 | dd77e17dc0737e1f0a1a2668a9381838ba627fdf | 4,557 | FridgeXLight | Apache License 2.0 |
src/main/kotlin/br/ufpe/liber/controllers/AssetsController.kt | Liber-UFPE | 733,309,986 | false | {"Kotlin": 121844, "JavaScript": 7520, "SCSS": 3925, "Shell": 805} | package br.ufpe.liber.controllers
import br.ufpe.liber.assets.Asset
import br.ufpe.liber.assets.AssetsResolver
import io.micronaut.core.io.ResourceResolver
import io.micronaut.http.HttpHeaders
import io.micronaut.http.HttpResponse
import io.micronaut.http.MutableHttpResponse
import io.micronaut.http.annotation.Control... | 2 | Kotlin | 0 | 0 | 53fc24dcdc1abfd1bc0e7dd42d7410129f70d358 | 2,687 | visaoholandesa | Apache License 2.0 |
java/java-impl/src/com/intellij/internal/statistic/libraryUsage/LibraryLayer.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.internal.statistic.libraryUsage
import com.intellij.openapi.diagnostic.thisLogger
import org.jetbrains.annotations.ApiStatus
@ApiStatus.In... | 191 | null | 4372 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 2,202 | intellij-community | Apache License 2.0 |
app/src/main/java/com/corphish/quicktools/activities/WUPActivity.kt | corphish | 680,429,782 | false | {"Kotlin": 159426} | package com.corphish.quicktools.activities
import android.content.Intent
import android.net.Uri
import android.widget.Toast
import com.corphish.quicktools.R
import com.corphish.quicktools.data.Constants
import com.corphish.quicktools.settings.SettingsHelper
/**
* WUP (WhatsApp Unknown Phone number) activity handles ... | 8 | Kotlin | 2 | 72 | e1edb5683b5ed60b040f5cff30fa281d45134899 | 2,426 | TextTools | Apache License 2.0 |
contacts-phone/phone-core/src/commonMain/kotlin/contacts/Phone.kt | aSoft-Ltd | 321,297,839 | false | {"Gradle Kotlin DSL": 10, "Markdown": 3, "Java Properties": 1, "Shell": 2, "Text": 1, "Ignore List": 1, "Batchfile": 2, "INI": 2, "YAML": 2, "Kotlin": 20, "JavaScript": 6, "Java": 1} | package contacts
import kotlinx.serialization.Serializable
import kotlin.js.JsExport
import kotlin.js.JsName
@JsExport
@Serializable(with = PhoneSerializer::class)
class Phone(phone: String) {
@JsName("ofNumber")
constructor(phone: Int) : this(phone.toString())
@JsName("_ofNumber")
constructor(phone:... | 0 | Kotlin | 1 | 1 | 06a887855b62b589c4bda8fa5ed520a70e343ad6 | 650 | contacts | MIT License |
snackbarutils/src/main/java/com/iws/snackbarutils/SnackbarUtils.kt | AlexeyIWS | 156,519,714 | false | null | package com.iws.snackbarutils
import android.app.Activity
import android.content.Context
import android.view.View
import android.widget.TextView
import android.widget.Toast
import com.google.android.material.snackbar.Snackbar
/**
* @param message uses for show snackbar. Snackbar is widget for purpose and purpose and... | 0 | Kotlin | 0 | 0 | f253c860d8b95ea3b8bb827ac6b3bd712f076a7f | 1,115 | Test | Apache License 2.0 |
app/src/main/java/com/barisatalay/themoviedatabase/core/network/interceptor/NetworkInterceptor.kt | barisatalay | 193,387,251 | false | null | package com.barisatalay.themoviedatabase.core.network.interceptor
import android.content.Context
import android.util.Log
import com.barisatalay.themoviedatabase.core.data.constant.ErrorConstant
import com.barisatalay.themoviedatabase.core.helper.UtilsNetwork
import okhttp3.Interceptor
import okhttp3.Response
import ja... | 0 | Kotlin | 0 | 0 | f464f7c846d2729687f326ecd5dc8d668bd5aed8 | 851 | movie-database | Apache License 2.0 |
compose/src/commonTest/kotlin/androidx/constraintlayout/core/scout/Direction.kt | Lavmee | 711,725,142 | false | null | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 6 | null | 1 | 82 | 6f1563153d06c2e46ff694288bb2c17999a12818 | 3,524 | constraintlayout-compose-multiplatform | Apache License 2.0 |
tensorflow/src/main/kotlin/org/jetbrains/kotlinx/dl/api/core/util/TfGraphUtil.kt | Kotlin | 249,948,572 | false | null | /*
* Copyright 2023 JetBrains s.r.o. and Kotlin Deep Learning project contributors. All Rights Reserved.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
*/
package org.jetbrains.kotlinx.dl.api.core.util
import org.tensorflow.Graph
import org.tensorflow.Gra... | 82 | null | 108 | 1,418 | 0f36d1b481fc755a7108a34aaf7d8cc226bcc4eb | 1,598 | kotlindl | Apache License 2.0 |
presentation/view/handlebars/src/main/kotlin/com/neva/javarel/presentation/view/handlebars/HandlebarsViewEngine.kt | neva-dev | 52,150,334 | false | null | package com.neva.javarel.presentation.view.handlebars
import com.github.jknack.handlebars.Handlebars
import com.github.jknack.handlebars.io.TemplateLoader
import com.google.common.collect.Sets
import com.neva.javarel.foundation.api.JavarelConstants
import com.neva.javarel.presentation.view.api.View
import com.neva.jav... | 8 | Kotlin | 0 | 8 | 6b75efa9d3e83c5eec23ed7cd4368e901f1f54dc | 2,816 | javarel-framework | Apache License 2.0 |
plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/geom/geom_area_ridges.kt | JetBrains | 172,682,391 | false | null | /*
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package org.jetbrains.letsPlot.geom
import org.jetbrains.letsPlot.Stat
import org.jetbrains.letsPlot.intern.GeomKind
import org.jetbrains.letsPlot.intern.Layer
import org.jet... | 19 | null | 36 | 433 | f6edab1a67783d14e2378675f065ef7111bdc1a0 | 7,776 | lets-plot-kotlin | MIT License |
src/main/kotlin/io/github/bayang/jelu/service/imports/CsvImportService.kt | bayang | 426,792,636 | false | {"Kotlin": 633783, "Vue": 418236, "TypeScript": 113503, "CSS": 7963, "Java": 3470, "JavaScript": 3200, "Dockerfile": 1964, "Shell": 1372, "HTML": 726} | package io.github.bayang.jelu.service.imports
import io.github.bayang.jelu.config.JeluProperties
import io.github.bayang.jelu.dao.ImportEntity
import io.github.bayang.jelu.dao.ImportSource
import io.github.bayang.jelu.dao.MessageCategory
import io.github.bayang.jelu.dao.ProcessingStatus
import io.github.bayang.jelu.da... | 9 | Kotlin | 9 | 340 | 32de3210e27f64102052cc596e6602258b433a83 | 29,802 | jelu | MIT License |
web/src/main/kotlin/app/visual/log/Application.kt | cxpqwvtj | 96,679,825 | false | null | package app.visual.log
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.context.annotation.EnableAspectJAutoProxy
@SpringBootApplication
@EnableAspectJAutoProxy
open class Application {
companion object {
@JvmS... | 0 | Kotlin | 0 | 0 | ceb0a5859056439f5a3ae8cf7bbb40c2b7024a2e | 442 | visual-log | MIT License |
app/src/main/java/digital/lamp/dagger_test/api/ResultsResponse.kt | amaljofy | 248,206,587 | false | null | package digital.lamp.dagger_test.api
import com.google.gson.annotations.SerializedName
/**
* Created by <NAME>. on 03,March,2020
*/
data class ResultsResponse<T>(
@SerializedName("count")
val count: Int,
@SerializedName("next")
val next: String? = null,
@SerializedName("previous")
val previo... | 0 | Kotlin | 0 | 1 | e606b55696e428c62cc960128b41483c184b9867 | 397 | NewsList-Part-1 | MIT License |
presentation/src/commonMain/kotlin/ireader/presentation/ui/home/sources/extension/CatalogItem.kt | kazemcodes | 540,829,865 | false | null | package ireader.presentation.ui.home.sources.extension
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.padding
import androidx.compose.foun... | 11 | null | 21 | 6 | b6b2414fa002cec2aa0d199871fcfb4c2e190a8f | 9,792 | IReader | Apache License 2.0 |
sources/cli/test/org/jetbrains/amper/util/ExecuteOnChangedInputsTest.kt | JetBrains | 709,379,874 | false | null | /*
* Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package org.jetbrains.amper.util
import kotlinx.coroutines.runBlocking
import org.jetbrains.amper.cli.AmperBuildOutputRoot
import org.junit.jupiter.api.io.TempDir
import java.nio.file.Path
i... | 1 | null | 30 | 988 | 6a2c7f0b86b36c85e9034f3de9bfe416516b323b | 6,482 | amper | Apache License 2.0 |
shimmer/src/main/java/com/valentinilk/shimmer/ShimmerTheme.kt | valentinilk | 399,151,906 | false | null | package io.spherelabs.system.ui.shimmer
import androidx.compose.animation.core.AnimationSpec
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.tween
import androidx.compo... | 6 | null | 5 | 81 | 3e55e953536c7f53ae824beb5536103254b3733f | 2,684 | compose-shimmer | Apache License 2.0 |
tabulate-core/src/main/kotlin/io/github/voytech/tabulate/core/template/operation/AttributeSetBasedCache.kt | voytech | 262,033,710 | false | null | package io.github.voytech.tabulate.core.operation
import io.github.voytech.tabulate.core.model.AttributeAware
import io.github.voytech.tabulate.core.model.Attributes
@JvmInline
internal value class AttributeClassBasedCache<K : AttributeAware, V>(
private val cache: MutableMap<Attributes, V> = mutableMapOf(),
) {
... | 17 | Kotlin | 0 | 2 | c7886212148dbaba9cfcaeba826ce752b4971bea | 3,418 | tabulate | Apache License 2.0 |
example/app/src/main/kotlin/me/omico/lux/compose/material3/pullrefresh/test/MainActivity.kt | Omico | 576,859,638 | false | {"Kotlin": 45494} | package me.omico.lux.compose.material3.pullrefresh.test
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSi... | 0 | Kotlin | 6 | 58 | 04e019da3a923d68d111cc0bf5a2141dc711966f | 3,128 | androidx-compose-material3-pullrefresh | Apache License 2.0 |
android/app/src/main/kotlin/com/example/verygoodcore/MainActivity.kt | NjokiCynthia | 466,003,459 | false | {"Dart": 53693, "C++": 16819, "CMake": 7941, "HTML": 3941, "C": 715, "Swift": 404, "Kotlin": 138, "Objective-C": 38} | package com.example.verygoodcore.the_list
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 22a8f6c65c73de81f04a426a31074762640f274d | 138 | cubit_list | MIT License |
common/src/commonMain/kotlin/com/artemchep/keyguard/common/service/relays/api/firefoxrelay/FirefoxRelayEmailRelay.kt | AChep | 669,697,660 | false | {"Kotlin": 5254408, "HTML": 45810} | package com.artemchep.keyguard.common.service.relays.api.firefoxrelay
import com.artemchep.keyguard.common.io.IO
import com.artemchep.keyguard.common.io.ioEffect
import com.artemchep.keyguard.common.model.GeneratorContext
import com.artemchep.keyguard.common.service.relays.api.EmailRelay
import com.artemchep.keyguard.... | 57 | Kotlin | 22 | 735 | 4e9809d0252257b9e918e44050570769d9326bc2 | 3,585 | keyguard-app | Linux Kernel Variant of OpenIB.org license |
src/main/kotlin/ro/kreator/GenerateWith.kt | random-object-kreator | 96,997,454 | false | null | package io.github.memoizr.kofix
import kotlin.reflect.KProperty
inline fun <reified T, reified A, reified B> custom(noinline custom: (A, B) -> T) = Generator1(custom)
class Generator1<T, A, B>(private val custom: (A, B) -> T) {
operator fun getValue(a: Any, property: KProperty<*>): Generator1<T, A, B> {
... | 1 | null | 1 | 1 | e8bfd68a2b1e0f00e1e282f0f8ad7e6724cf6c74 | 1,523 | random-object-kreator | Apache License 2.0 |
src/main/kotlin/com/github/h0tk3y/compilersCourse/x86/StackToX86Compiler.kt | h0tk3y | 84,680,038 | false | {"Kotlin": 121497, "C": 6067} | package com.github.h0tk3y.compilersCourse.x86
import com.github.h0tk3y.compilersCourse.Compiler
import com.github.h0tk3y.compilersCourse.language.*
import com.github.h0tk3y.compilersCourse.stack.*
import java.util.*
import kotlin.math.absoluteValue
enum class TargetPlatform { UNIX, WIN }
class StackToX86Compiler(val... | 0 | Kotlin | 3 | 8 | 3ce171ab6870c44c93233dbca5ccffebc631d3c4 | 19,096 | compilers-course | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProviderProps.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 137826907} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk
import io.cloudshiftdev.awscdk.common.CdkDslMarker
import io.cloudshiftdev.awscdk.common.CdkObject
import io.c... | 4 | Kotlin | 0 | 4 | e15f2e27e08adeb755ad44b2424c195521a6f5ba | 10,432 | kotlin-cdk-wrapper | Apache License 2.0 |
picker/src/main/java/com/afollestad/materialdialogs/picker/DialogNumberPicker.kt | kamaelyoung | 112,328,897 | true | {"Kotlin": 308220} | package com.afollestad.materialdialogs.picker
import android.widget.NumberPicker
import androidx.annotation.CheckResult
import com.afollestad.materialdialogs.MaterialDialog
import com.afollestad.materialdialogs.customview.customView
import com.afollestad.materialdialogs.list.ItemListener
import com.afollestad.material... | 0 | Kotlin | 0 | 0 | 64c2a9a74fcf944326664603997d16c36774e3e6 | 1,519 | material-dialogs | Apache License 2.0 |
app/src/main/java/com/example/foodappwithmvi/view/favorite/FavoriteViewModel.kt | rezakardan | 719,055,375 | false | {"Kotlin": 59035} | package com.example.foodappwithmvi.view.favorite
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.foodappwithmvi.data.repository.FavoriteRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow... | 0 | Kotlin | 0 | 0 | e10b7caaf0cb37752702f030bbb4417023216757 | 1,408 | foodWithMvi_Git | MIT License |
data/src/main/kotlin/com/vultisig/wallet/data/repositories/TransactionRepository.kt | vultisig | 789,965,982 | false | {"Kotlin": 1481084, "Ruby": 1713} | package com.vultisig.wallet.data.repositories
import com.vultisig.wallet.data.models.Transaction
import com.vultisig.wallet.data.models.TransactionId
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.flow.update
import javax... | 58 | Kotlin | 2 | 6 | 98e6a0754d4872ce4d44fa4a631488d4f805397f | 1,019 | vultisig-android | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/application/api/authentication/JwtIssuer.kt | navikt | 402,451,651 | false | {"Kotlin": 1051781, "Dockerfile": 226} | package no.nav.syfo.application.api.authentication
data class JwtIssuer(
val acceptedAudienceList: List<String>,
val jwtIssuerType: JwtIssuerType,
val wellKnown: WellKnown,
)
enum class JwtIssuerType {
VEILEDER_V2,
}
| 2 | Kotlin | 2 | 0 | b153cb253f54e8f26c498234a341722d34b6d959 | 235 | syfooversiktsrv | MIT License |
sqiffy-test/src/test/kotlin/com/dzikoysk/sqiffy/e2e/JdbiE2ETest.kt | dzikoysk | 589,226,903 | false | null | @file:Suppress("RemoveRedundantQualifierName")
package com.dzikoysk.sqiffy.e2e
import com.dzikoysk.sqiffy.dialect.Dialect.POSTGRESQL
import com.dzikoysk.sqiffy.api.Role
import com.dzikoysk.sqiffy.domain.UnidentifiedUser
import com.dzikoysk.sqiffy.domain.User
import com.dzikoysk.sqiffy.e2e.specification.SqiffyE2ETestS... | 9 | null | 2 | 41 | 67093bc13803248ab5b9a54b9bd104d68adee62c | 3,191 | sqiffy | Apache License 2.0 |
app/src/main/java/com/tyhoo/nba/data/players/PlayersSeasonResponse.kt | cnwutianhao | 367,525,529 | false | null | package com.tyhoo.nba.data.players
import com.google.gson.annotations.SerializedName
data class PlayersSeasonResponse(
@field:SerializedName("yearDisplay") val yearDisplay: String
) | 0 | Kotlin | 2 | 3 | 8336ee1889e10aee2b31dec35c105af0c1584218 | 187 | android-architecture-components-sample | Apache License 2.0 |
src/test/enhetstester/kotlin/no/nav/familie/ks/sak/kjerne/behandling/steg/vilkårsvurdering/forskyvBarnehageplassVilkårTest.kt | navikt | 533,308,075 | false | {"Kotlin": 2851682, "Shell": 1039, "Dockerfile": 141} | package no.nav.familie.ks.sak.kjerne.behandling.steg.vilkårsvurdering
import no.nav.familie.ks.sak.data.lagVilkårResultat
import no.nav.familie.ks.sak.kjerne.behandling.steg.vilkårsvurdering.domene.Vilkår
import org.hamcrest.CoreMatchers.nullValue
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.a... | 5 | Kotlin | 1 | 2 | c39fb12189c468a433ca2920b1aa0f5509b23d54 | 27,989 | familie-ks-sak | MIT License |
app/src/main/java/com/example/mediclick/OTPActivity.kt | Utkarsh1244p | 803,613,938 | false | {"Kotlin": 72381, "Java": 40993} | package com.codingstuff
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.text.Editable
import android.text.TextWatcher
import android.util.Log
import android.view.View
import android.widget.Button
import android.widget.EditText
import android.widg... | 0 | Kotlin | 2 | 0 | ec4132569f5af107800878d86afd72daaadf1207 | 9,182 | SIH | MIT License |
vyne-core-types/src/main/java/com/orbitalhq/schemas/DefaultTypeCache.kt | orbitalapi | 541,496,668 | false | {"TypeScript": 9344934, "Kotlin": 5669840, "HTML": 201985, "SCSS": 170620, "HCL": 55741, "Java": 29373, "JavaScript": 24697, "Shell": 8800, "Dockerfile": 7001, "Smarty": 4741, "CSS": 2966, "Mustache": 1392, "Batchfile": 983, "MDX": 884, "PLpgSQL": 337} | package com.orbitalhq.schemas
import com.orbitalhq.models.*
import com.orbitalhq.schemas.taxi.TaxiSchema
import com.orbitalhq.utils.timed
import lang.taxi.TaxiDocument
import lang.taxi.types.ArrayType
import lang.taxi.types.EnumValueQualifiedName
import lang.taxi.types.ObjectType
import lang.taxi.types.StreamType
impo... | 9 | TypeScript | 10 | 292 | 2be59abde0bd93578f12fc1e2ecf1f458a0212ec | 7,747 | orbital | Apache License 2.0 |
platform/platform-api/src/com/intellij/openapi/wm/StartPagePromoter.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.wm
import com.intellij.openapi.extensions.ExtensionPointName
import org.jetbrains.annotations.ApiStatus
import javax.swing.JComponent
@ApiStatus.Int... | 214 | null | 4829 | 15,129 | 5578c1c17d75ca03071cc95049ce260b3a43d50d | 942 | intellij-community | Apache License 2.0 |
ulyp-ui/src/main/kotlin/com/ulyp/ui/FileRecordingsTab.kt | 0xaa4eb | 393,146,539 | false | null | package com.ulyp.ui
import com.ulyp.core.ProcessMetadata
import com.ulyp.storage.Recording
import com.ulyp.ui.util.FxThreadExecutor.execute
import javafx.event.EventHandler
import javafx.scene.control.Tab
import javafx.scene.control.TabPane
import org.springframework.context.ApplicationContext
import org.springframewo... | 1 | null | 1 | 4 | 8a19f8b0efecf863693d35878d87b50e975e7af8 | 1,890 | ulyp | Apache License 2.0 |
shared/src/main/java/xyz/klinker/messenger/shared/service/notification/NotificationSummaryProvider.kt | zacharee | 295,825,167 | false | null | package com.stream_suite.link.shared.service.notification
import android.app.Notification
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.os.Build
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManagerCompat
import android.t... | 1 | null | 7 | 4 | f957421823801b617194cd68e31ba31b96e6100b | 5,007 | pulse-sms-android | Apache License 2.0 |
kotlinx-coroutines-core/jvm/test/examples/test/FlowDelayTest.kt | hltj | 151,721,407 | false | null | // This file was automatically generated from Delay.kt by Knit tool. Do not edit.
package kotlinx.coroutines.examples.test
import kotlinx.coroutines.knit.*
import org.junit.Test
class FlowDelayTest {
@Test
fun testExampleDelay01() {
test("ExampleDelay01") { kotlinx.coroutines.examples.exampleDelay01.m... | 295 | null | 1850 | 255 | 9565dc2d1bc33056dd4321f9f74da085e6c0f39e | 1,573 | kotlinx.coroutines-cn | Apache License 2.0 |
src/main/kotlin/no/nav/sokos/spk/mottak/domain/CommonType.kt | navikt | 758,019,980 | false | {"Kotlin": 204477, "Shell": 2474, "Dockerfile": 142} | package no.nav.sokos.spk.mottak.domain
const val SPK = "SPK"
const val NAV = "NAV"
// FILETYPE
const val FILETYPE_ANVISER = "ANV"
// FILTILSTANDTYPE
const val FILTILSTANDTYPE_AVV = "AVV"
const val FILTILSTANDTYPE_GOD = "GOD"
const val FILTILSTANDTYPE_INN = "INN"
const val FILTILSTANDTYPE_RET = "RET"
const val FILTIL... | 1 | Kotlin | 0 | 0 | bda9bb90d652f62cdd4eddd5429b76d3c9f8edcf | 900 | sokos-spk-mottak | MIT License |
c2-ssm/ssm-tx/ssm-tx-f2/src/main/kotlin/ssm/chaincode/f2/features/command/SsmTxSessionPerformActionFunctionImpl.kt | komune-io | 746,795,057 | false | {"Kotlin": 381968, "MDX": 96903, "Java": 39028, "Gherkin": 18221, "Makefile": 15434, "Dockerfile": 8936, "Go": 5435, "Shell": 1993, "JavaScript": 1453, "CSS": 102} | package ssm.chaincode.f2.features.command
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.map
import ssm.chaincode.dsl.model.uri.burst
import ssm.chaincode.dsl.config.InvokeChunkedProps
import ssm.chaincode.dsl.config.chunk
import ssm.chaincode.dsl.config.flattenConcurrently
import ssm.sdk.core.SsmT... | 2 | Kotlin | 0 | 0 | 7c534953e0a0a8a6afbbc09f10b862444975edb0 | 1,218 | fixers-c2 | Apache License 2.0 |
app/src/main/java/br/com/movieapp/MainActivity.kt | renatobentorocha | 523,154,607 | false | null | package com.example.movieapp
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import com.example.movieapp.navigation.MovieNavigation
import com.example.movieapp.u... | 0 | Kotlin | 0 | 0 | ab80cafebb721028c93fc706140b95db3d55e4f4 | 809 | android | MIT License |
android/versioned-abis/expoview-abi46_0_0/src/main/java/abi46_0_0/expo/modules/kotlin/objects/PropertyComponent.kt | expo | 65,750,241 | false | null | package abi46_0_0.expo.modules.kotlin.objects
import abi46_0_0.com.facebook.react.bridge.Arguments
import abi46_0_0.expo.modules.kotlin.functions.SyncFunctionComponent
import abi46_0_0.expo.modules.kotlin.jni.CppType
import abi46_0_0.expo.modules.kotlin.jni.JNIFunctionBody
import abi46_0_0.expo.modules.kotlin.jni.Java... | 454 | null | 3947 | 19,768 | af47d96ef6e73a5bced7ec787fea430905f072d6 | 1,369 | expo | MIT License |
compose/material3/material3/src/androidMain/kotlin/androidx/compose/material3/DynamicTonalPalette.android.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 30 | null | 950 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 24,592 | androidx | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.