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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sample/hilt-di/src/main/java/com/plusmobileapps/savedstateflowhilt/MyApplication.kt | plusmobileapps | 441,450,960 | false | null | package com.plusmobileapps.savedstateflowhilt
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class MyApplication : Application() | 0 | Kotlin | 0 | 13 | 5b9d4522d6f3aef6b2fb24042e05621a46b0edd9 | 172 | SavedStateFlow | MIT License |
client/app/src/main/java/com/hao/heji/data/db/BookUSerDao.kt | RUANHAOANDROID | 324,589,079 | false | null | package com.rh.heji.data.db
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
/**
*
* @date 2023/4/25
* @author 锅得铁
* @since v1.0
*/
@Dao
interface BookUSerDao {
@Insert(onConflict = OnConflictStrategy.IGNORE)
fun insert(bookUser: Book... | 0 | null | 11 | 36 | c5491871ebbe68bca3684d1a7db3f1f78c870d68 | 484 | heji | Apache License 2.0 |
libraries/stdlib/src/kotlin/coroutines/CoroutinesH.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-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/LICENSE.txt file.
*/
package kotlin.coroutines
@PublishedApi
@SinceKotlin("1.3")
internal expect class SafeContinuation<in T> : Continuation<T> {
internal constructor(deleg... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 598 | kotlin | Apache License 2.0 |
src/jsMain/kotlin/Head.kt | CodeWithDino | 514,549,450 | false | null | import androidx.compose.runtime.Composable
import kotlinx.browser.document
import org.jetbrains.compose.web.css.Style
import org.jetbrains.compose.web.dom.TagElement
import org.jetbrains.compose.web.dom.Text
import org.w3c.dom.HTMLLinkElement
import org.w3c.dom.HTMLScriptElement
@Composable
fun Head() {
Style(AppStyl... | 3 | Kotlin | 0 | 2 | dd0099373bc2b1d44bef250654391dfdd6354948 | 1,959 | CodeWithDino | MIT License |
chaos/src/main/java/io/rhprincess/chaos/main/widgets/View.kt | rhprincess | 248,666,926 | false | null | @file:Suppress("unused")
package io.rhprincess.chaos.main.widgets
import android.view.View
import android.view.ViewManager
import android.webkit.WebView
import android.widget.*
import androidx.annotation.LayoutRes
import androidx.annotation.StyleRes
import io.rhprincess.chaos.annotations.LazyInject
import io.rhprince... | 0 | Kotlin | 0 | 1 | 55fc82e6587947c80186e3d08d2773d497a39260 | 8,254 | chaos | Apache License 2.0 |
livingdoc-results/src/test/kotlin/org/livingdoc/results/examples/decisiontables/DecisionTableResultBuilderTest.kt | LivingDoc | 85,412,044 | false | null | package org.livingdoc.results.examples.decisiontables
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import org.livingdoc.repositories.model.decisiontable.DecisionTable
import org.livingdoc.repositories.model.decisiontable.Field
import org.... | 34 | Kotlin | 16 | 14 | f3d52b8bacbdf81905e4b4a753d75f584329b297 | 8,353 | livingdoc | Apache License 2.0 |
src/test/kotlin/com/developerphil/adbidea/compatibility/BackwardCompatibleGetterTest.kt | longforus | 146,382,514 | true | {"Markdown": 4, "Gradle": 1, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Text": 1, "INI": 1, "Kotlin": 97, "XML": 6, "Java": 4} | package com.darshan.ezylogin.compatibility
import com.google.common.truth.Truth.assertThat
import org.joor.ReflectException
import org.junit.Assert.fail
import org.junit.Test
class BackwardCompatibleGetterTest {
@Test
fun onlyCallCurrentImplementationWhenItIsValid() {
var value = false
object ... | 2 | Kotlin | 3 | 31 | 8e3c405ca80b9d341b419d65693d4c4d4e0c546e | 2,078 | adb-idea-plus | Apache License 2.0 |
shared/src/test/kotlin/com/egm/stellio/shared/util/ApiUtilsTests.kt | stellio-hub | 257,818,724 | false | null | package com.egm.stellio.shared.util
import com.egm.stellio.shared.model.BadRequestDataException
import com.egm.stellio.shared.util.JsonLdUtils.NGSILD_CORE_CONTEXT
import com.egm.stellio.shared.util.OptionsParamValue.TEMPORAL_VALUES
import com.egm.stellio.shared.web.CustomWebFilter
import kotlinx.coroutines.Experimenta... | 29 | null | 11 | 27 | 3faf0a44de75e182bdeabf55b74b73d2173540c8 | 8,353 | stellio-context-broker | Apache License 2.0 |
mvvm/src/main/java/ro/dobrescuandrei/mvvm/utils/Constants.kt | irfanirawansukirman | 171,591,919 | false | null | package ro.dobrescuandrei.mvvm.utils
const val NO_VALUE_INT = 0
const val NO_VALUE_FLOAT = 0.0f
const val NO_VALUE_DOUBLE = 0.0
const val NO_VALUE_LONG = 0L
const val ARG_MODEL = "MODEL"
const val ARG_CHOOSE_MODE = "CHOOSE_MODE"
const val RESULTS_PER_PAGE = 100
| 0 | Kotlin | 5 | 1 | f940702c98847e42dc0ce230485da8f35bc32e32 | 271 | DobDroidMVVM | Apache License 2.0 |
app/src/main/java/com/example/foodie/data/repository/FavoriteRepository.kt | DayanaOviedo2001 | 806,851,708 | false | {"Kotlin": 74414} | package com.example.foodie.data.repository
import com.example.foodie.data.datasource.FavoriteDataSource
import com.example.foodie.data.entity.FavoriteFood
class FavoriteRepository(var fds: FavoriteDataSource) {
suspend fun loadFavoriteFood(): List<FavoriteFood> =
fds.loadFavoriteFood()
suspend fun ad... | 0 | Kotlin | 0 | 0 | 91b28a7f2845316033845d31e653519be0be17e9 | 569 | Foodie | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/pecs/jpc/controller/constraints/DuplicateLocationConstraintsValidator.kt | ministryofjustice | 292,861,912 | false | null | package uk.gov.justice.digital.hmpps.pecs.jpc.constraint
import org.springframework.stereotype.Component
import uk.gov.justice.digital.hmpps.pecs.jpc.controller.MapFriendlyLocationController.MapLocationForm
import uk.gov.justice.digital.hmpps.pecs.jpc.service.LocationsService
import javax.validation.ConstraintValidato... | 1 | Kotlin | 2 | 3 | fe19b13bbccc99d14ac70cfb1e3dfb017b62c87e | 835 | calculate-journey-variable-payments | MIT License |
module-square/src/main/java/com/bbgo/module_square/viewmodel/SquareViewModelFactory.kt | BlueSky15171 | 394,822,061 | true | {"Kotlin": 303361, "Java": 6868} | package com.bbgo.module_square.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.bbgo.module_square.repository.SquareRepository
/**
* author: wangyb
* date: 3/29/21 9:47 PM
* description: todo
*/
class SquareViewModelFactory(private val repository: SquareRepo... | 0 | null | 0 | 0 | 33680499e2a5d1fd95e5528dd525e2cd5f873a9d | 527 | WanAndroid | Apache License 2.0 |
plugins/github/src/org/jetbrains/plugins/github/util/CollectionDelta.kt | hieuprogrammer | 284,920,751 | false | null | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.template.util
class CollectionDelta<out T>(oldCollection: Collection<T>, val newCollection: Collection<T>) {
val newItems: Collection<T> = newColl... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 472 | intellij-community | Apache License 2.0 |
app/src/main/java/com/hello/curiosity/template/splash/SplashActivity.kt | HelloCuriosity | 190,705,036 | false | null | package com.hello.curiosity.template.splash
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.hello.curiosity.template.main.MainActivity
import com.hello.curiosity.R
import com.hello.curiosity.data.threading.SchedulerProvider
class SplashActivity : AppCompatActivity(), SplashView {
... | 16 | Kotlin | 0 | 1 | 62f139839ec3d004e9404a26ca7b7b83597153db | 890 | android-app | MIT License |
play-services-safetynet-core/src/main/kotlin/org/microg/gms/safetynet/SafetyNetClientService.kt | microg | 19,082,715 | false | null | /*
* SPDX-FileCopyrightText: 2021 microG Project Team
* SPDX-License-Identifier: Apache-2.0
*/
package org.microg.gms.safetynet
import android.content.Context
import android.content.Intent
import android.database.Cursor
import android.os.Build.VERSION.SDK_INT
import android.os.Bundle
import android.os.Parcel
import... | 746 | null | 539 | 4,529 | 17b8371b489f919d6ff87607c4a289b0af38d159 | 9,302 | GmsCore | Apache License 2.0 |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/dms/CfnEndpointDynamoDbSettingsPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.dms
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import software.amazon.awscdk.ser... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 1,994 | awscdk-dsl-kotlin | Apache License 2.0 |
src/main/kotlin/com/github/cetonek/bigbiznis/BigBiznisApplication.kt | cetonek | 393,110,614 | false | null | package com.github.cetonek.bigbiznis
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.properties.ConfigurationPropertiesScan
import org.springframework.boot.runApplication
import org.springframework.cache.annotation.EnableCaching
import org.springframework.sch... | 0 | Kotlin | 0 | 0 | fa70fd5c1edfca1ba22b0cee54a02413184cce2b | 609 | big-biznis | MIT License |
platform/lang-impl/src/com/intellij/codeInsight/intention/impl/IntentionActionAsAction.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.codeInsight.intention.impl
import com.intellij.codeInsight.CodeInsightBundle
import com.intellij.codeInsight.intention.IntentionAction
impo... | 214 | null | 4829 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,611 | intellij-community | Apache License 2.0 |
server/src/test/kotlin/at/yawk/javabrowser/server/typesearch/FullIndexBenchmark.kt | yawkat | 135,326,421 | false | null | package at.yawk.javabrowser.server.typesearch
import at.yawk.javabrowser.DbConfig
import at.yawk.javabrowser.server.Config
import at.yawk.numaec.LargeByteBuffer
import at.yawk.numaec.LargeByteBufferAllocator
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory
imp... | 17 | null | 3 | 35 | b9233824bf594bacffaee2efbf12ab9ea941763e | 5,333 | java-browser | Apache License 2.0 |
math-vector/math-vector-core/src/commonMain/kotlin/tz/co/asoft/Vec2.math.kt | aSoft-Ltd | 332,269,443 | false | null | package tz.co.asoft
operator fun Vec2<*>.plus(p: Vec2<*>) = Vec2(
x = x.toDouble() + p.x.toDouble(),
y = y.toDouble() + p.y.toDouble()
)
operator fun Vec2<*>.minus(p: Vec2<*>) = Vec2(
x = x.toDouble() - p.x.toDouble(),
y = y.toDouble() - p.y.toDouble()
)
operator fun Number.times(p: Vec2<*>) = Vec2(
... | 0 | Kotlin | 1 | 1 | 1fe38daa72aff667ef14a43de2a4f6d7bd6f1cbd | 394 | math | MIT License |
blog/src/main/kotlin/com/liux/blog/markdown/node/MoreSuspend.kt | lx0758 | 334,699,858 | false | {"Kotlin": 200977, "Vue": 104221, "CSS": 94393, "JavaScript": 82498, "HTML": 63110, "TypeScript": 23981} | package com.liux.blog.markdown.node
import org.commonmark.node.CustomBlock
class MoreSuspend : CustomBlock() | 0 | Kotlin | 0 | 0 | 094a3d2d040ad610d3161d1b6d71f7343da6d67b | 110 | Blog | MIT License |
navigation-core/src/commonMain/kotlin/com.chrynan.navigation/NavigationContextStacks.kt | chRyNaN | 439,481,580 | false | null | package com.chrynan.navigation
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializable
import kotlinx.serialization.builtins.MapSerializer
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.descriptors.buildClassSerialDescriptor
import kotlinx.serializatio... | 1 | null | 2 | 43 | f48e6dbf813e86fa2f11ea4f02c6351fbcadf4b9 | 6,916 | navigation | Apache License 2.0 |
app/src/main/java/com/codepunk/core/MainActivity.kt | codepunk | 405,428,738 | false | {"Gradle": 13, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 7, "Batchfile": 1, "Markdown": 1, "Proguard": 5, "Kotlin": 32, "XML": 43, "INI": 4, "Java": 2} | /*
* Copyright (C) 2021 Codepunk, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 1 | null | 1 | 1 | 207a10bc90c8d903cc5fea535b02ddcda09790c9 | 1,877 | codepunk-android-app-core-2021 | Apache License 2.0 |
src/commonMain/kotlin/requests/response/StockTradeAccumulate.kt | devngho | 565,833,597 | false | {"Kotlin": 268528} | package io.github.devngho.kisopenapi.requests.response
import com.ionspin.kotlin.bignum.integer.BigInteger
import kotlinx.serialization.Contextual
import kotlinx.serialization.SerialName
/**
* [KIS Developers 문서](https://apiportal.koreainvestment.com/apiservice/apiservice-domestic-stock-quotations)를 참조하세요.
* @see i... | 0 | Kotlin | 1 | 2 | bba61df1301f0d75f9051e5f423773faadb0a333 | 522 | kt_kisopenapi | MIT License |
AdventOfCodeDay22/src/nativeMain/kotlin/RebootStep.kt | bdlepla | 451,510,571 | false | {"Kotlin": 165771} | data class RebootStep(val on:Boolean,
val xRange:IntRange,
val yRange:IntRange,
val zRange:IntRange) | 0 | Kotlin | 0 | 0 | 1d60a1b3d0d60e0b3565263ca8d3bd5c229e2871 | 166 | AdventOfCode2021 | The Unlicense |
app/src/main/java/io/nosyntax/foundation/domain/model/app_config/BottomBarConfig.kt | aelrahmanashraf | 683,553,348 | false | {"Kotlin": 192262, "Groovy": 3276, "Batchfile": 1149, "Shell": 744, "HTML": 97} | package io.nosyntax.foundation.domain.model.app_config
data class BottomBarConfig(
val display: Boolean,
val background: String,
val label: String
) | 0 | Kotlin | 0 | 0 | 3ba4fdf92d9c3e3ace37737c7bde19ca37b7b0ab | 161 | nosyntax-foundation-android | MIT License |
app/src/main/java/com/kcteam/app/domain/NewOrderSizeDao.kt | DebashisINT | 558,234,039 | false | null | package com.anayaenterprises.app.domain
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.anayaenterprises.app.AppConstant
@Dao
interface NewOrderSizeDao {
@Insert
fun insert(vararg newOrderSizeEntity: NewOrderSizeEntity)
@I... | 0 | null | 1 | 1 | e6114824d91cba2e70623631db7cbd9b4d9690ed | 812 | NationalPlastic | Apache License 2.0 |
wasabi-core/src/main/kotlin/org/wasabifx/wasabi/encoding/EncodingDecoding.kt | wasabifx | 9,009,498 | false | null | package org.wasabifx.wasabi.encoding
import org.apache.commons.codec.binary.Base64
fun String.decodeBase64(encoding: String): String {
if (encoding == "base64") {
return String(Base64.decodeBase64(this)!!)
} else {
throw IllegalArgumentException()
}
}
fun String.encodeBase64(): String {
... | 20 | null | 58 | 510 | 9148843ca0aa9c4f79ca1228df8f36d590d0a24b | 383 | wasabi | Apache License 2.0 |
PopitaApp/app/src/main/java/com/example/popitaapp/activities/MyProfileActivity.kt | gpiechnik2 | 304,087,999 | false | null | package com.example.popitaapp.activities
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView
import com.example.popitaapp.R
import kotlinx.android.synthetic.main.activity_my_profile.*
class MyProfileActivity : AppCompatActivity() {
... | 0 | Kotlin | 0 | 0 | ad044f0884d1dcac6943e036187d867d5209ffd1 | 3,199 | popita | Apache License 2.0 |
app/src/main/java/cc/sovellus/vrcaa/ui/screen/login/LoginScreenModel.kt | Nyabsi | 745,635,224 | false | {"Kotlin": 74992} | package cc.sovellus.vrcaa.ui.screen.login
import android.content.Context
import android.util.Log
import android.widget.Toast
import androidx.compose.runtime.mutableStateOf
import cafe.adriel.voyager.core.model.ScreenModel
import cafe.adriel.voyager.core.model.screenModelScope
import cafe.adriel.voyager.navigator.Navig... | 0 | Kotlin | 0 | 1 | 5d8dea3ac3a281dcffa02ce96a987c0e353f241a | 1,109 | vrcaa | MIT License |
kompiledb-core/src/test/kotlin/com/saveourtool/kompiledb/core/io/parsers/WindowsCommandLineParserTest.kt | saveourtool | 651,012,030 | false | {"Kotlin": 123056} | package com.saveourtool.kompiledb.core.io.parsers
import com.saveourtool.kompiledb.core.io.CommandLineParser
import io.kotest.matchers.collections.shouldContainExactly
import kotlin.test.Test
/**
* @see WindowsCommandLineParser
*/
class WindowsCommandLineParserTest {
private val parser: CommandLineParser = Wind... | 2 | Kotlin | 0 | 8 | d1e304e61ef74cc979c7ea4405a0a741b82d087e | 2,890 | kompiledb | MIT License |
platform/platform-api/src/com/intellij/ui/tabs/newImpl/SameHeightTabs.kt | tresat | 189,062,407 | true | null | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ui.tabs.newImpl
import com.intellij.openapi.Disposable
import com.intellij.openapi.actionSystem.ActionManager
import com.intellij.openapi.project.Project
imp... | 0 | null | 0 | 0 | d169dcb59b79b133ef94c00f8037788baaf009be | 1,230 | intellij-community | Apache License 2.0 |
platform/platform-api/src/com/intellij/ui/tabs/newImpl/SameHeightTabs.kt | tresat | 189,062,407 | true | null | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ui.tabs.newImpl
import com.intellij.openapi.Disposable
import com.intellij.openapi.actionSystem.ActionManager
import com.intellij.openapi.project.Project
imp... | 0 | null | 0 | 0 | d169dcb59b79b133ef94c00f8037788baaf009be | 1,230 | intellij-community | Apache License 2.0 |
src/commonMain/kotlin/com/github/shaart/pstorage/multiplatform/ui/table/TextTableCell.kt | shaart | 643,580,361 | false | null | package com.github.shaart.pstorage.multiplatform.ui.table
import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.padding
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Check
import androidx.compose.mate... | 4 | Kotlin | 0 | 0 | a406663164f86cdf81d0e59e4a52257eb63257fd | 3,187 | pstorage-multiplatform | Apache License 2.0 |
ls2sdk-core/src/main/java/com/curiosityhealth/ls2sdk/core/rs/LS2ParticipantAccountGeneratorRequestingCredentialsStep.kt | CuriosityHealth | 125,130,072 | false | null | package com.curiosityhealth.ls2sdk.core.rs
import android.text.InputType
import org.researchsuite.rsuiteextensionscore.RSLoginStep
open class LS2ParticipantAccountGeneratorRequestingCredentialsStep @JvmOverloads constructor(
identifier: String,
title: String? = null,
text: String? = null,
... | 1 | null | 1 | 1 | ef4506be6ac8e9c76a958286ded2006944cf6b30 | 1,009 | LS2SDK-Android | Apache License 2.0 |
app/src/main/java/com/github/maravicentina/remotesecuritylockarduino/activities/LockControlActivity.kt | mara-vicentina | 779,477,358 | false | {"Kotlin": 14823} | package com.github.maravicentina.remotesecuritylockarduino.activities
import android.os.Bundle
import android.view.View
import android.widget.EditText
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCom... | 0 | Kotlin | 0 | 0 | 30c79b1643739531fb2b9f0bfa6cf8e6545c731b | 2,275 | remoteSecurityLock | MIT License |
src/test/kotlin/no/nav/medlemskap/sykepenger/lytter/service/RegelMotorResponsHandlerTest.kt | navikt | 392,288,955 | false | null | package no.nav.medlemskap.sykepenger.lytter.service
import no.nav.medlemskap.sykepenger.lytter.config.objectMapper
import no.nav.medlemskap.sykepenger.lytter.rest.Spørsmål
import org.junit.Ignore
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class RegelMotorResponsHandlerTest {
@Test
... | 0 | Kotlin | 1 | 0 | bde89aefee0f50e1f611d697bfbfa4fd7f4a244f | 7,766 | medlemskap-sykepengerlytter | MIT License |
app/src/main/java/net/dcnnt/core/utils.kt | cyanomiko | 268,339,742 | false | null | package net.dcnnt.core
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import android.net.Uri
import android.os.Build
import a... | 6 | Kotlin | 6 | 99 | 1fa43a1d02a76985bcb90bd39dc32e58e9bb1b3f | 7,284 | dcnnt-android | MIT License |
app/src/main/java/net/dcnnt/core/utils.kt | cyanomiko | 268,339,742 | false | null | package net.dcnnt.core
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import android.net.Uri
import android.os.Build
import a... | 6 | Kotlin | 6 | 99 | 1fa43a1d02a76985bcb90bd39dc32e58e9bb1b3f | 7,284 | dcnnt-android | MIT License |
tezos-rpc/src/test/kotlin/TestMocks.kt | airgap-it | 460,351,851 | false | null | import io.mockk.every
import io.mockk.mockk
import io.mockk.mockkClass
import it.airgap.tezos.contract.ContractModule
import it.airgap.tezos.contract.internal.TezosContractModule
import it.airgap.tezos.core.Tezos
import it.airgap.tezos.core.crypto.CryptoProvider
import it.airgap.tezos.core.internal.di.DependencyRegistr... | 0 | Kotlin | 2 | 1 | c5af5ffdd4940670bd66842580d82c2b9d682d84 | 1,677 | tezos-kotlin-sdk | MIT License |
data/src/main/java/com/iliaberlana/movies/data/MovieRepository.kt | siayerestaba | 196,740,845 | false | null | package com.iliaberlana.movies.data
import arrow.core.Either
import com.iliaberlana.movies.domain.entities.Movie
import com.iliaberlana.movies.domain.exception.DomainError
interface MovieRepository {
suspend fun listMovies(page: Int): Either<DomainError, List<Movie>>
} | 0 | Kotlin | 0 | 0 | 479bdabe4f2e4dea59872d8d71d5a57468fac988 | 275 | kotlin-movies-app | MIT License |
app/src/main/java/com/rgonslayer/tiktokyc/firstapp/network/WeatherAPI.kt | rgonslayer | 493,754,649 | false | {"Kotlin": 36135} | package com.rgonslayer.tiktokyc.firstapp.network
import com.google.gson.annotations.SerializedName
import retrofit2.Call
import retrofit2.http.GET
/**
* Data class where it holds information on how to serialize / deserialize our data
*
* Try deserializing other fields!
*
* Note: @field is important!
*/
data cla... | 0 | Kotlin | 0 | 0 | e8af1c78323fb9087c0360b3158820f3b704fbb2 | 6,684 | weathertiktok | The Unlicense |
src/webMain/kotlin/money/tegro/market/web/store/tonwallet/Wallet.kt | TegroTON | 491,519,429 | false | {"Kotlin": 198445, "HTML": 3914, "JavaScript": 2388, "Dockerfile": 242} | package money.tegro.market.web.store.tonwallet
@OptIn(ExperimentalJsExport::class)
@JsExport
external interface Wallet {
val address: String
val publicKey: String
val walletVersion: String
}
| 11 | Kotlin | 4 | 0 | bd82acf423a4d4e1a00c3eac6347aa7cf18eee5f | 204 | TON-Marketplace-NFT-All | MIT License |
demoapp/src/main/java/com/mercadolibre/android/andesui/demoapp/MainApplication.kt | maaguero | 252,283,086 | false | null | package com.mercadolibre.android.andesui.demoapp
import android.app.Application
import android.content.Context
import android.os.Build
import android.provider.Settings
import androidx.multidex.MultiDex
import com.facebook.common.logging.FLog
import com.facebook.drawee.backends.pipeline.Fresco
import com.facebook.image... | 1 | null | 44 | 1 | bc12913d8a91c4a71faed6ba7e5d6fdfa16de123 | 1,490 | fury_andesui-android | MIT License |
logLib/src/main/java/com/simon/log/report/ReportLog.kt | SimonRHW | 241,857,792 | false | {"Gradle": 19, "Java Properties": 3, "Shell": 1, "Text": 1, "Ignore List": 15, "Batchfile": 1, "Markdown": 1, "JSON": 1, "Proguard": 13, "Kotlin": 109, "XML": 81, "INI": 10, "Java": 53, "Checksums": 32, "Groovy": 2} | package com.simon.log.report
import com.simon.log.BaseLog
import timber.log.Timber
/**
* @author Simon
* @date 2020/5/1
* @desc
*/
class ReportLog private constructor(
consoleLog: Boolean,
logLevel: Int
) : BaseLog(consoleLog, logLevel) {
companion object {
@Volatile
private var insta... | 0 | Java | 0 | 1 | 2bc1d25b89c08ca066392e4b37deabd1cffec4fd | 786 | ABKnowledge | Apache License 2.0 |
samples/playground-android/src/main/kotlin/br/com/arch/toolkit/sample/playground/recyclerAdapter/StickyHeadersActivity.kt | matheus-corregiari | 131,161,672 | false | null | package br.com.arch.toolkit.sample.recycler.adapter
import android.os.Bundle
import android.widget.LinearLayout
import android.widget.Toast
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.RecyclerView
import br.com.arch.toolkit.delegate.viewProvider
import br.com.arch.tool... | 3 | null | 4 | 26 | 74ff8d1a4b8f88f8e667518ee60bde35cf1466f1 | 1,881 | arch-toolkit | Apache License 2.0 |
app/src/main/java/com/scriptsquad/unitalk/Notes/activities/PdfDetailActivity.kt | ST10029788 | 841,892,426 | false | {"Kotlin": 601706, "JavaScript": 1259} | package com.scriptsquad.unitalk.Notes.activities
import android.Manifest
import android.app.AlertDialog
import android.app.ProgressDialog
import android.content.Intent
import android.content.pm.PackageManager
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Environment
import ... | 0 | Kotlin | 0 | 0 | 3081ccec3bd60dd0680fd620d916f376db073b44 | 15,222 | UniTalk | MIT License |
src/main/kotlin/com/tiquionophist/ui/ScheduleTable.kt | tiquionophist | 405,590,882 | false | null | package com.tiquionophist.ui
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import a... | 1 | Kotlin | 0 | 5 | 157b827f4441b615500b1951da98fb57ecffda86 | 5,688 | hhs-scheduler | MIT License |
java/java-tests/testSrc/com/intellij/roots/LibraryRootsChangedTest.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2021 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.roots
import com.intellij.openapi.module.Module
import com.intellij.openapi.roots.ModuleRootListener
import com.intellij.openapi.roots.OrderRootType
import c... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 3,407 | intellij-community | Apache License 2.0 |
vok-framework-vokdb/src/main/kotlin/eu/vaadinonkotlin/vaadin/vokdb/Converters.kt | mvysny | 56,166,503 | false | null | package eu.vaadinonkotlin.vaadin10.vokdb
import com.github.vokorm.KEntity
import com.gitlab.mvysny.jdbiorm.Dao
import com.vaadin.flow.data.binder.Binder
import com.vaadin.flow.data.binder.Result
import com.vaadin.flow.data.binder.ValueContext
import com.vaadin.flow.data.converter.Converter
/**
* Converts an entity t... | 6 | null | 17 | 186 | aa7fab9c130d8f74e96a4712659e1d8d11ac0d5e | 1,941 | vaadin-on-kotlin | MIT License |
lib/src/main/kotlin/louis2/wear/wff/group/part/draw/shape/Rectangle.kt | LouisCAD | 704,439,760 | false | {"Kotlin": 103017} | package louis2.wear.wff.group.part.draw.shape
import kotlinx.html.TagConsumer
import kotlinx.html.attributesMapOf
import kotlinx.html.visit
import louis2.wear.wff.*
import louis2.wear.wff.group.part.draw.PARTDRAW
/**
* Draws a Rectangle shape.
*
* [AndroidX doc](https://developer.android.com/training/wearables/wff... | 3 | Kotlin | 0 | 2 | 23b1f99768c43ccbef24078e837753d5ebb6cafc | 1,062 | WatchFaceDsl | Apache License 2.0 |
src/main/kotlin/com/ort/firewolf/application/service/MessageService.kt | h-orito | 282,923,189 | false | {"Kotlin": 964665, "Batchfile": 522, "Shell": 454} | package com.ort.firewolf.application.service
import com.ort.dbflute.allcommon.CDef
import com.ort.firewolf.domain.model.ability.AbilityType
import com.ort.firewolf.domain.model.charachip.Chara
import com.ort.firewolf.domain.model.charachip.Charas
import com.ort.firewolf.domain.model.message.Message
import com.ort.fire... | 0 | Kotlin | 0 | 0 | ec5bc96cfd1ce227c9783dc934dd2d087a9ba38c | 6,376 | firewolf-api | MIT License |
app/src/main/java/com/finderbar/jovian/utilities/api/ApiServices.kt | finderbar | 705,707,975 | false | {"Kotlin": 665596, "Java": 45822} | package com.finderbar.jovian.utilities.api
import com.finderbar.jovian.models.MyFile
import com.finderbar.jovian.models.MyVideo
import okhttp3.MultipartBody
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part
import retrofit2.Call
import retrofit2.http.HeaderMap
/**
* Created by fin... | 0 | Kotlin | 0 | 0 | 63bf5531f367d1892d77151c1baa50789f814b07 | 671 | finderbar-app | MIT License |
css-gg/src/commonMain/kotlin/compose/icons/cssggicons/OpenCollective.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.cssggicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.graphics... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,776 | compose-icons | MIT License |
app/src/main/java/com/breezefieldombooks/features/viewAllOrder/interf/ProductListNewOrderOnClick.kt | DebashisINT | 876,753,253 | false | {"Kotlin": 17808242, "Java": 1030448} | package com.breezefieldombooks.features.viewAllOrder.interf
import com.breezefieldombooks.app.domain.NewOrderGenderEntity
import com.breezefieldombooks.app.domain.NewOrderProductEntity
interface ProductListNewOrderOnClick {
fun productListOnClick(product: NewOrderProductEntity)
} | 0 | Kotlin | 0 | 0 | 15ee06fe737a9dba90549856cdf40fde8d88dfb3 | 286 | OmBooks | Apache License 2.0 |
komapper-r2dbc/src/main/kotlin/org/komapper/r2dbc/dsl/runner/R2dbcTemplateSelectRunner.kt | komapper | 349,909,214 | false | null | package org.komapper.r2dbc.dsl.runner
import kotlinx.coroutines.flow.Flow
import org.komapper.core.DatabaseConfig
import org.komapper.core.DryRunStatement
import org.komapper.core.dsl.context.TemplateSelectContext
import org.komapper.core.dsl.query.Row
import org.komapper.r2dbc.R2dbcDatabaseConfig
internal class R2db... | 8 | null | 4 | 97 | 851b313c66645d60f2e86934a5036efbe435396a | 916 | komapper | Apache License 2.0 |
net.akehurst.language/agl-processor/src/commonTest/kotlin/agl/syntaxAnalyser/GrammarTypeModelTest.kt | dhakehurst | 197,245,665 | false | {"Kotlin": 3441810, "ANTLR": 64742, "Rascal": 17698, "Java": 14285, "PEG.js": 6866, "JavaScript": 5287, "BASIC": 22} | /*
* Copyright (C) 2023 Dr. <NAME> (http://dr.david.h.akehurst.net)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | 2 | Kotlin | 7 | 43 | b225becb87afb0577bebaeff31c256d3f8b85b63 | 1,774 | net.akehurst.language | Apache License 2.0 |
app/src/main/java/com/example/workout_app/Workout.kt | RasmusUK | 858,649,168 | false | {"Kotlin": 32059} | package com.example.workout_app
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.... | 0 | Kotlin | 0 | 0 | d799ada23567514fd3b59989ae4ccfc393fbe07f | 15,238 | workout-tracking-app | MIT License |
app/src/main/kotlin/com/francescsoftware/mosaic/data/image/ImageRepositoryImpl.kt | fvilarino | 487,330,720 | false | {"Kotlin": 67941} | package com.francescsoftware.mosaic.data.image
import com.francescsoftware.mosaic.core.dispatcher.DispatcherProvider
import com.francescsoftware.mosaic.core.wrapper.ImageUrl
import com.francescsoftware.mosaic.core.wrapper.Result
import kotlinx.coroutines.withContext
import javax.inject.Inject
private const val IMAGE_... | 0 | Kotlin | 1 | 2 | 4b054516345ec19957ea798ba1449728c9ab5903 | 1,017 | Mosaic | Apache License 2.0 |
src/main/kotlin/io/github/pandier/intellijdiscordrp/settings/DiscordSettings.kt | pandier | 768,334,300 | false | null | package io.github.pandier.intellijdiscordrp.settings
import io.github.pandier.intellijdiscordrp.activity.ActivityDisplayMode
import io.github.pandier.intellijdiscordrp.activity.ActivityFactory
data class DiscordSettings(
var reconnectOnUpdate: Boolean = true,
var customApplicationIdEnabled: Boolean = false,
... | 6 | null | 3 | 8 | 384d8354c59e1ffdb4053852630d6862e71b7802 | 3,963 | intellij-discord-rp | MIT License |
plugins/hh-carnival/src/main/kotlin/ru/hh/android/plugin/services/jira/JiraLinkFactory.kt | hhru | 159,637,875 | false | null | package ru.hh.android.plugin.services.jira
import com.atlassian.jira.rest.client.api.domain.input.LinkIssuesInput
import com.intellij.openapi.components.Service
import com.intellij.openapi.components.service
import com.intellij.openapi.project.Project
import ru.hh.android.plugin.core.model.jira.JiraLinkType
@Service
... | 17 | null | 18 | 97 | 2d6c02fc814eff3934c17de77ef7ade91d3116f5 | 741 | android-multimodule-plugin | MIT License |
platform/backend/core/src/main/kotlin/io/hamal/core/req/SubmitRequest.kt | hamal-io | 622,870,037 | false | {"Kotlin": 1678862, "C": 1398401, "TypeScript": 47224, "Lua": 41508, "C++": 40651, "Makefile": 11728, "Java": 7564, "CMake": 2881, "JavaScript": 1532, "HTML": 694, "Shell": 449, "CSS": 118} | package io.hamal.core.req
import io.hamal.core.component.EncodePassword
import io.hamal.core.component.GenerateSalt
import io.hamal.core.component.GenerateToken
import io.hamal.core.req.req.CreateRootAccountReq
import io.hamal.lib.domain.CorrelatedState
import io.hamal.lib.domain.Event
import io.hamal.lib.domain.Gener... | 6 | Kotlin | 0 | 0 | fd06bf799f18db2d425b7084abf15b741fa9878e | 9,259 | hamal | Creative Commons Zero v1.0 Universal |
compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/IrValidator.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2024 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.backend.common
import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSe... | 182 | null | 5646 | 48,182 | bc1ddd8205f6107c7aec87a9fb3bd7713e68902d | 8,868 | kotlin | Apache License 2.0 |
snark-storage-driver/src/main/kotlin/space/kscience/snark/storage/s3/S3File.kt | SciProgCentre | 507,609,502 | false | {"Kotlin": 191863, "Java": 82765, "JavaScript": 829, "Shell": 722, "Python": 566, "Dockerfile": 542} | package space.kscience.snark.storage.s3
import aws.sdk.kotlin.services.s3.S3Client
import aws.sdk.kotlin.services.s3.model.GetObjectRequest
import aws.sdk.kotlin.services.s3.putObject
import aws.smithy.kotlin.runtime.content.ByteStream
import aws.smithy.kotlin.runtime.content.toByteArray
import space.kscience.snark.st... | 0 | Kotlin | 0 | 5 | fb115e1ecbbb63adf87f18e0b3209f0ff6da1303 | 1,230 | snark | Apache License 2.0 |
presentation/src/main/java/com/wasin/presentation/splash/SplashScreen.kt | wa-sin-sang-dam | 828,217,645 | false | {"Kotlin": 301042} | package com.wasin.presentation.splash
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
i... | 2 | Kotlin | 0 | 0 | 28a58078ff866f6f9baa460714217884fdbea3ab | 1,288 | wasin-android | MIT License |
presentation/src/main/java/com/wasin/presentation/splash/SplashScreen.kt | wa-sin-sang-dam | 828,217,645 | false | {"Kotlin": 301042} | package com.wasin.presentation.splash
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
i... | 2 | Kotlin | 0 | 0 | 28a58078ff866f6f9baa460714217884fdbea3ab | 1,288 | wasin-android | MIT License |
kodein-di/src/jvmTest/kotlin/org/kodein/di/GenericJvmTests_16_Multiton.kt | kosi-libs | 34,046,231 | false | null | package org.kodein.di.erased
import org.kodein.di.Kodein
import org.kodein.di.bindings.ScopeCloseable
import org.kodein.di.bindings.SingleItemScopeRegistry
import org.kodein.di.bindings.UnboundedScope
import org.kodein.di.test.CloseableData
import org.kodein.di.test.FixMethodOrder
import org.kodein.di.test.MethodSorte... | 6 | null | 174 | 3,189 | 573b264a3f6f5f7145583081efc318c4303fc4d2 | 2,314 | Kodein | MIT License |
src/test/java/pl/edu/amu/wmi/erykandroidcommon/test/PowerMockTest.kt | dagi12 | 107,324,186 | false | {"Gradle": 1, "Proguard": 1, "Text": 1, "Ignore List": 1, "Markdown": 1, "Java": 2, "Kotlin": 88, "XML": 19} | package pl.edu.amu.wmi.erykandroidcommon.test
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import org.powermock.api.mockito.PowerMockito
import org.powermock.api.mockito.PowerMockito.`when`
import org.powermock.core.... | 1 | null | 1 | 1 | 0715d59c3c208df668dc116171ece78a6cf9dd2c | 1,945 | eryk-android-common | Apache License 2.0 |
columba-cli/src/main/kotlin/io/github/leofuso/columba/cli/parser/DependencyGraphAwareSchemaParser.kt | LeoFuso | 584,494,829 | false | null | package io.github.leofuso.columba.cli.parser
import io.github.leofuso.columba.cli.ConsoleLogger
import io.github.leofuso.columba.cli.command.CompileCommand
import org.apache.avro.Protocol
import org.apache.avro.Schema
import java.io.File
import java.util.function.Supplier
/**
* A [Supplier] for a [DependencyGraphAwa... | 2 | Kotlin | 0 | 5 | ea1bcd05a60cd6d2be517488af47a9faac456849 | 4,339 | argo | Apache License 2.0 |
compiler/testData/codegen/box/functions/functionNtoStringGeneric.kt | JakeWharton | 99,388,807 | false | null | // LAMBDAS: CLASS
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: IGNORED_IN_JS
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT
import kotlin.test.assertEquals
fun <T> bar(): String {
return ... | 34 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 819 | kotlin | Apache License 2.0 |
android/app/src/main/java/com/algorand/android/modules/swap/assetswap/data/di/AssetSwapRepositoryModule.kt | perawallet | 364,359,642 | false | null | /*
* Copyright 2022 Pera Wallet, LDA
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,... | 22 | null | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 3,153 | pera-wallet | Apache License 2.0 |
framework/src/main/kotlin/br/com/zup/beagle/widget/action/AddChildren.kt | ZupIT | 391,145,988 | false | null | /*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... | 5 | null | 11 | 5 | e3f33bae4e209b3852c9a24182a109676166c3d9 | 1,814 | beagle-backend-kotlin | Apache License 2.0 |
framework/src/main/kotlin/br/com/zup/beagle/widget/action/AddChildren.kt | ZupIT | 391,145,988 | false | null | /*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... | 5 | null | 11 | 5 | e3f33bae4e209b3852c9a24182a109676166c3d9 | 1,814 | beagle-backend-kotlin | Apache License 2.0 |
src/main/kotlin/io/aethibo/features/articles/domain/model/Article.kt | primepixel | 726,740,875 | false | {"Kotlin": 66411} | package io.aethibo.features.articles.domain.model
import io.aethibo.features.users.domain.model.User
import kotlinx.serialization.Serializable
@Serializable
data class ArticleDTO(val article: Article?) {
fun validArticle(): Article {
require(article != null) { "Article is invalid" }
require(articl... | 0 | Kotlin | 0 | 0 | 0d6a5d26de40aec4ef72f908b0e29a38dfbf3627 | 1,007 | Atlas | Apache License 2.0 |
src/main/kotlin/io/aethibo/features/articles/domain/model/Article.kt | primepixel | 726,740,875 | false | {"Kotlin": 66411} | package io.aethibo.features.articles.domain.model
import io.aethibo.features.users.domain.model.User
import kotlinx.serialization.Serializable
@Serializable
data class ArticleDTO(val article: Article?) {
fun validArticle(): Article {
require(article != null) { "Article is invalid" }
require(articl... | 0 | Kotlin | 0 | 0 | 0d6a5d26de40aec4ef72f908b0e29a38dfbf3627 | 1,007 | Atlas | Apache License 2.0 |
MSDKUIDemo/MSDKUIApp/src/androidTest/java/com/here/msdkuiapp/espresso/impl/core/CoreMatchers.kt | heremaps | 141,680,627 | false | null | /*
* Copyright (C) 2017-2021 HERE Europe B.V.
*
* 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... | 1 | Java | 19 | 49 | 3b54e002f92cb92edb5a71e55fb064e6112158d6 | 14,728 | msdkui-android | Apache License 2.0 |
data/src/main/java/com/yapp/gallery/data/repository/ExhibitRecordRepositoryImpl.kt | YAPP-Github | 561,171,842 | false | null | package com.yapp.gallery.data.repository
import com.yapp.gallery.data.source.local.record.ExhibitRecordLocalDataSource
import com.yapp.gallery.data.source.remote.record.ExhibitRecordRemoteDataSource
import com.yapp.gallery.domain.entity.home.CategoryItem
import com.yapp.gallery.domain.entity.home.TempPostInfo
import c... | 1 | null | 0 | 2 | c7051e5338f30175b87f6a1c2374d97653527a40 | 2,305 | 21st-ALL-Rounder-Team-2-Android | Apache License 2.0 |
src/main/kotlin/dev/aaronhowser/mods/geneticsresequenced/blocks/AntiFieldBlock.kt | aaronhowser1 | 780,170,281 | false | null | package dev.aaronhowser.mods.geneticsresequenced.blocks
import dev.aaronhowser.mods.geneticsresequenced.configs.ServerConfig
import net.minecraft.core.BlockPos
import net.minecraft.world.item.context.BlockPlaceContext
import net.minecraft.world.level.Level
import net.minecraft.world.level.block.Block
import net.minecr... | 6 | null | 0 | 1 | 11d035ab2a3f002ac6f2ebb392c242ce3d16636c | 2,317 | Genetics-Resequenced | MIT License |
ui/src/main/java/io/snabble/sdk/ui/payment/creditcard/shared/country/ui/CountrySelectionMenu.kt | snabble | 124,525,499 | false | {"Kotlin": 1339811, "Java": 559116, "HTML": 68836, "Shell": 2232} | package io.snabble.sdk.ui.payment.creditcard.shared.country.ui
import androidx.compose.material3.DropdownMenuItem
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mu... | 0 | Kotlin | 0 | 5 | f6f5fd69553e14f39bb59c55a3b5e23c5912b9b6 | 3,815 | Android-SDK | MIT License |
app/src/main/java/com/pernasa/mybirdsapp/viewModels/BirdsListViewModel.kt | PernasA | 825,166,352 | false | {"Kotlin": 108244} | package com.pernasa.mybirdsapp.viewModels
import android.content.Context
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.pernasa.mybirdsapp.models.Bird
import com.pernasa.mybirdsapp.models.room.RoomBird
import com.pernasa.mybirdsapp.models.room.RoomBirdsDao
import com.pernasa.my... | 0 | Kotlin | 0 | 0 | d45ed45461c18cbb375c12a001047d435c2bd00a | 3,575 | MyBirdsApp | MIT License |
app/src/main/java/com/pernasa/mybirdsapp/viewModels/BirdsListViewModel.kt | PernasA | 825,166,352 | false | {"Kotlin": 108244} | package com.pernasa.mybirdsapp.viewModels
import android.content.Context
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.pernasa.mybirdsapp.models.Bird
import com.pernasa.mybirdsapp.models.room.RoomBird
import com.pernasa.mybirdsapp.models.room.RoomBirdsDao
import com.pernasa.my... | 0 | Kotlin | 0 | 0 | d45ed45461c18cbb375c12a001047d435c2bd00a | 3,575 | MyBirdsApp | MIT License |
app/src/main/java/com/andor/navigate/notepad/auth/ITalkToUI.kt | andor201995 | 188,668,352 | false | {"Kotlin": 95557} | package com.andor.navigate.notepad.auth
import com.google.firebase.auth.FirebaseUser
interface ITalkToUI {
fun signingInSuccess(user: FirebaseUser)
fun signingInFailed()
fun alreadySignedIn(user: FirebaseUser)
}
| 6 | Kotlin | 0 | 2 | d3ee59258616a1a1333f45e1b1e4ddeccc4a2262 | 227 | NoteIt | Apache License 2.0 |
sample/src/main/java/com/thinkup/sample/utils/DotSpinnerRenderer.kt | nicolasCastro | 205,704,034 | false | {"Kotlin": 43001} | package com.thinkup.sample.utils
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android.widget.ArrayAdapter
import androidx.annotation.ArrayRes
import com.thinkup.easycore.ViewRenderer
import com.thinkup.sample.DotSpinnerCallback
import com.thinkup.sample.R
import kotli... | 0 | Kotlin | 1 | 3 | f99981ebf6c467c07db915e97ffcbda15d594743 | 3,040 | IndicatorsSuite | Apache License 2.0 |
001-HelloWorld/src/main/kotlin/org/testkotlin/main.kt | franck-benault | 164,351,139 | false | null | package org.testkotlin
fun main(args: Array<String>) {
println("Hello world");
} | 0 | Kotlin | 0 | 0 | 75fe442ac45d612f7f98d11346f421ff78cdf7f5 | 85 | test-kotlin | Apache License 2.0 |
aurademo/src/main/java/com/silverhetch/aurademo/resultpipe/FragmentResultDemoFragment.kt | fossabot | 268,971,220 | false | null | package com.larryhsiao.aurademo.resultpipe
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import com.larryhsiao.aura.AuraFragment
/**
* Demo Fragment for sending result to Activity with [AuraFragment.sendResult]
*/
class FragmentResultDemoFra... | 9 | null | 2 | 1 | fb00fe41a2b32dbbd9fcc88d0fcd8d531c9b0638 | 899 | Aura | MIT License |
app/src/main/java/com/wuruoye/know/ui/edit/RecordTypeEditFragment.kt | ruoyewu | 183,387,390 | false | {"Gradle": 3, "Markdown": 1, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "Kotlin": 128, "XML": 74, "Java": 16} | package com.wuruoye.know.ui.edit
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.TextView
import a... | 1 | null | 1 | 1 | 2de5a7fdecc8c135463c99c47cde417de0cbe2ec | 9,487 | know2 | Apache License 2.0 |
src/main/kotlin/com/github/wtfjoke/dgsDirectivesExamples/graphql/mutations/RatingMutation.kt | WtfJoke | 395,566,883 | false | null | package com.github.wtfjoke.dgsDirectivesExamples.graphql.mutations
import com.github.wtfjoke.generated.types.Rating
import com.github.wtfjoke.generated.types.RatingInput
import com.netflix.graphql.dgs.DgsComponent
import com.netflix.graphql.dgs.DgsMutation
import com.netflix.graphql.dgs.InputArgument
@DgsComponent
c... | 1 | Kotlin | 0 | 1 | 76db8e9d0b7741c0abf4ffb8c40ea7734809bc7d | 553 | graphql-dgs-directives-demo | MIT License |
projects/Kotlin/src/com/chronoxor/test/FlagsTypedEnum.kt | chronoxor | 145,696,528 | false | null | // Automatically generated by the Fast Binary Encoding compiler, do not modify!
// https://github.com/chronoxor/FastBinaryEncoding
// Source: test.fbe
// Version: 1.8.0.0
@file:Suppress("UnusedImport", "unused")
package com.chronoxor.test
@Suppress("EnumEntryName", "MemberVisibilityCanBePrivate", "RemoveRedundantCal... | 35 | null | 81 | 764 | 67625fcfbd89ab6adf63982b1330deb84382aa0e | 5,293 | FastBinaryEncoding | MIT License |
composeApp/src/commonMain/kotlin/com/malliaridis/tui/domain/transmissions/MediaComponent.kt | malliaridis | 781,833,057 | false | {"Kotlin": 218283, "Swift": 1167} | package com.malliaridis.tui.domain.transmissions
/**
* The media component manages the state of any playable media, like video or audio files.
*/
interface MediaComponent
| 0 | Kotlin | 0 | 3 | 740442033e99b21bb7ed2dd8796cc6460a49ea2d | 174 | tactical-user-interface | MIT License |
composeApp/src/commonMain/kotlin/com/malliaridis/tui/domain/transmissions/MediaComponent.kt | malliaridis | 781,833,057 | false | {"Kotlin": 218283, "Swift": 1167} | package com.malliaridis.tui.domain.transmissions
/**
* The media component manages the state of any playable media, like video or audio files.
*/
interface MediaComponent
| 0 | Kotlin | 0 | 3 | 740442033e99b21bb7ed2dd8796cc6460a49ea2d | 174 | tactical-user-interface | MIT License |
android/integration/testData/architecture-samples/shared-test/src/main/java/com/example/android/architecture/blueprints/todoapp/data/FakeTaskRepository.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 4,519 | android | Apache License 2.0 |
app/src/main/java/com/carin/data/local/daos/UserDao.kt | MEI-Grupo-4-CarIn | 773,390,235 | false | {"Kotlin": 348045} | package com.carin.data.local.daos
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import androidx.room.RawQuery
import androidx.room.Upsert
import androidx.sqlite.db.SimpleSQLiteQuery
import androidx.sqlite.db.SupportSQLiteQuery
import com.carin.data.local.entities.UserEntity
import com... | 2 | Kotlin | 0 | 0 | 70ea4c4ce707f3a7a1dd1e4daaf0d31302ef26c1 | 2,177 | CarIn.AndroidApp | MIT License |
app/src/main/java/com/beettechnologies/newsapp/common/data/ApiInterceptor.kt | beetsolutions | 162,338,193 | false | null | package com.beettechnologies.newsapp.common.data
import okhttp3.Interceptor
import okhttp3.Response
private const val PARAM_API_ID: String = "apiKey"
private const val PARAM_CACHE: String = "Cache-Control"
class ApiInterceptor(private val apiKey: String, private val cacheDuration: Int) : Interceptor {
override ... | 0 | Kotlin | 0 | 0 | eb9b43f28e3c23385710e6b10199a38bad70efed | 739 | newsapp | MIT License |
apps/etterlatte-tidshendelser/src/main/kotlin/no/nav/etterlatte/tidshendelser/AldersovergangerService.kt | navikt | 417,041,535 | false | {"Kotlin": 7287681, "TypeScript": 1786181, "Handlebars": 27910, "Shell": 12680, "PLpgSQL": 1891, "HTML": 1734, "CSS": 598, "Dockerfile": 547} | package no.nav.etterlatte.tidshendelser
import kotlinx.coroutines.runBlocking
import no.nav.etterlatte.libs.common.retryOgPakkUt
import no.nav.etterlatte.libs.common.sak.SakId
import no.nav.etterlatte.libs.tidshendelser.JobbType
import no.nav.etterlatte.tidshendelser.klient.BehandlingKlient
import no.nav.etterlatte.ti... | 9 | Kotlin | 0 | 6 | e715675c319d4a0a826855615749573e45ae7a75 | 2,055 | pensjon-etterlatte-saksbehandling | MIT License |
thirdparty/ktfx-jfoenix-layouts/src/test/kotlin/ktfx/jfoenix/layouts/JfxSpinnerTest.kt | hanggrian | 102,934,147 | false | {"Kotlin": 1146536, "CSS": 1653} | package ktfx.jfoenix.layouts
import com.hanggrian.ktfx.test.LayoutsStyledTest
import com.jfoenix.controls.JFXSpinner
import ktfx.layouts.KtfxPane
import kotlin.test.assertEquals
class JfxSpinnerTest : LayoutsStyledTest<KtfxPane, JFXSpinner>() {
override fun manager() = KtfxPane()
override fun KtfxPane.childC... | 1 | Kotlin | 2 | 19 | 6e5ec9fedf8359423c31a2ba64cd175bc9864cd2 | 725 | ktfx | Apache License 2.0 |
src/test/kotlin/no/nav/pensjon/simulator/tech/security/egress/oauth2/OAuth2ParameterBuilderTest.kt | navikt | 753,551,695 | false | {"Kotlin": 1507098, "Java": 133600, "Dockerfile": 144} | package no.nav.pensjon.kalkulator.tech.security.egress.oauth2
import no.nav.pensjon.kalkulator.tech.security.egress.token.TokenAccessParameter
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
import org.springframework.util.MultiValueMap
class OAuth2ParameterBuilderTest {
@Test
fun... | 0 | Kotlin | 0 | 0 | c36141a4a420f2a8837ba8bf235a437dc96a79e5 | 1,085 | pensjonssimulator | MIT License |
sykepenger-utbetaling/src/main/kotlin/no/nav/helse/hendelser/utbetaling/UtbetalingHendelse.kt | navikt | 193,907,367 | false | null | package no.nav.helse.hendelser.utbetaling
import java.time.LocalDateTime
import java.util.UUID
import no.nav.helse.hendelser.ArbeidstakerHendelse
import no.nav.helse.person.aktivitetslogg.Varselkode.RV_UT_2
import no.nav.helse.utbetalingslinjer.Oppdragstatus
import no.nav.helse.utbetalingslinjer.Oppdragstatus.AKSEPTER... | 2 | Kotlin | 6 | 5 | 314d8a6e32b3dda391bcac31e0b4aeeee68f9f9b | 1,481 | helse-spleis | MIT License |
core/src/main/java/com/gerosprime/gylog/models/data/DefaultDataImporter.kt | gerosprime | 213,372,637 | false | null | package com.gerosprime.gylog.models.data
import android.content.Context
import com.gerosprime.gylog.models.database.dao.*
import com.google.gson.Gson
import io.reactivex.Single
import java.io.*
class DefaultDataImporter(private val exerciseEntityDao : ExerciseEntityDao,
private val exerciseP... | 0 | Kotlin | 0 | 1 | a775377e6a8bdb81e405eb1b04ca5fd14f5dd9c6 | 2,617 | gylog-android-app | Apache License 2.0 |
intellij-plugin/educational-core/src/com/jetbrains/edu/coursecreator/actions/checkAllTasks/checkAllTasksUtil.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.coursecreator.actions.checkAllTasks
import com.intellij.notification.Notification
import com.intellij.notification.NotificationListener
import com.intellij.notification.NotificationType.WARNING
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnAction... | 7 | null | 49 | 150 | 9cec6c97d896f4485e76cf9a2a95f8a8dd21c982 | 7,345 | educational-plugin | Apache License 2.0 |
internal/src/main/kotlin/com/code42/jenkins/pipelinekt/internal/option/Retry.kt | code42 | 227,466,617 | false | {"Kotlin": 313768} | package com.code42.jenkins.pipelinekt.internal.option
import com.code42.jenkins.pipelinekt.core.StageOption
import com.code42.jenkins.pipelinekt.core.vars.Var
import com.code42.jenkins.pipelinekt.core.writer.GroovyWriter
data class Retry(val times: Var.Literal.Int) : StageOption {
override fun toGroovy(writer: Gr... | 4 | Kotlin | 9 | 55 | 7c37bb9c807ae97eecba1f90eac0c669f3da90da | 395 | pipelinekt | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.