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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
llama-stack-client-kotlin-core/src/test/kotlin/com/llama_stack_client/api/models/AgentsStepTest.kt | meta-llama | 854,913,926 | false | {"Kotlin": 2020773, "Shell": 2562} | // File generated from our OpenAPI spec by Stainless.
package com.llama_stack_client.api.models
import java.time.OffsetDateTime
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
class AgentsStepTest {
@Test
fun createAgentsStep() {
val agentsStep =
Agent... | 0 | Kotlin | 2 | 0 | ee76c5aec1d582dbbd2759d084ba16b8b74f04ea | 3,909 | llama-stack-client-kotlin | Apache License 2.0 |
db-test/src/test/kotlin/org/d7z/test/list/ListContextTest.kt | d7z-team | 458,437,220 | false | {"Kotlin": 86837, "Java": 987} | package org.d7z.test.list
import org.d7z.test.testList
import org.junit.jupiter.api.Assertions.assertFalse
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
class ListContextTest {
companion object {
private const val TEST_KEY = "DATA"
}
@Test
fun get() {
... | 0 | Kotlin | 0 | 0 | 54eff37823b55ff7060a5d8af998b69ca1ff34e2 | 1,863 | light-db | MIT License |
api/src/main/kotlin/net/devslash/FetchDsl.kt | sshkel | 377,373,840 | true | {"Kotlin": 85801} | package net.devslash
import net.devslash.err.RetryOnTransitiveError
import java.time.Duration
@DslMarker
annotation class FetchDSL
enum class HttpMethod {
GET, POST, DELETE, PUT, HEAD, OPTIONS, PATCH
}
class UnaryAddBuilder<T> {
private var hooks = mutableListOf<T>()
operator fun T.unaryPlus() {
hooks = ... | 0 | null | 0 | 0 | e6ca03983e4e13d54211ea9e21f04f0c8bf9cd4c | 5,805 | fetchDSL | MIT License |
employee-directory/app/src/main/java/work/wander/directory/framework/logging/AppLogger.kt | awallace87 | 793,807,511 | false | {"Kotlin": 642774} | package work.wander.directory.framework.logging
import android.util.Log
import javax.inject.Inject
/**
* Interface for application logging.
*
* This interface provides methods for logging messages at different priority levels.
* The default priority level is DEBUG.
*
* @see log for logging a message with a spec... | 0 | Kotlin | 0 | 0 | 8e9dfa2a66f8a330c6c26a10bad78420f818beeb | 2,371 | android-sample-apps | Apache License 2.0 |
app/src/main/java/io/outblock/lilico/page/wallet/WalletFragment.kt | Outblock | 435,317,689 | false | null | package io.outblock.lilico.page.wallet
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.activity.result.ActivityResultLauncher
import androidx.lifecycle.ViewModelProvider
import com.journeyapps.barcodescanner.ScanOptions
import com.zackr... | 6 | Kotlin | 0 | 2 | 3be43a8f7c36680f99dc157fe589358728963055 | 2,777 | Lilico-Android | Apache License 2.0 |
kzmq-cio/src/commonMain/kotlin/org/zeromq/CIO.kt | ptitjes | 386,722,015 | false | null | /*
* Copyright (c) 2021-2022 <NAME> and Kzmq contributors.
* Use of this source code is governed by the Apache 2.0 license.
*/
package org.zeromq
public expect object CIO : EngineFactory
| 21 | Kotlin | 0 | 6 | 1e6c7a35b7dc93b34a8f6da9d56fd5b3335dd790 | 192 | kzmq | Apache License 2.0 |
src/testData/jvm/expression/destructure/destructure1/Main.kt | XYZboom | 767,934,164 | false | {"Kotlin": 1295388, "Java": 27485} | class Target {
/*<target:int>*/fun component1(): Any {
return 123
}/*<target:int/>*/
/*<target:str>*/fun component2(): String {
return "comp2"
}/*<target:str/>*/
}
fun func() {
val (/*<source:int>*/int/*<source:int/>*/, /*<source:str>*/str/*<source:str/>*/) = Target(1, "123")
} | 0 | Kotlin | 1 | 0 | 47dfb26629b3d0a596f51747b04b32622aace7d3 | 315 | psi-reference-extractor | Apache License 2.0 |
src/main/kotlin/com/lss233/minidb/engine/memory/internal/catalog/AttributeView.kt | lss233 | 535,925,912 | false | null | package com.lss233.minidb.engine.memory.internal.catalog
import com.lss233.minidb.engine.memory.Database
import com.lss233.minidb.engine.schema.Column
import miniDB.parser.ast.fragment.ddl.datatype.DataType
class AttributeView(database: Database): PostgresCatalogView(database) {
override fun getColumns(): Mutable... | 1 | null | 3 | 12 | 8ab3d263e57c61a648856aae269b474201746294 | 921 | MiniDB | MIT License |
android/app/src/main/java/com/example/myapplication/ui/listeners/OnChartDateChange.kt | Ozilele | 689,018,294 | false | {"Kotlin": 98486, "HTML": 144, "Assembly": 27} | package com.example.myapplication.ui.listeners
import com.example.myapplication.data.FilterType
interface OnChartDateChange {
fun onChartDateClick(filterType: FilterType)
} | 0 | Kotlin | 0 | 0 | 812c583674f35644ccd6c763ee56624043b2ac36 | 176 | StockApp | Apache License 2.0 |
app/src/main/java/com/migualador/cocktails/presentation/animation_extensions/AnimationExtensions.kt | migualador | 719,969,621 | false | {"Kotlin": 113009} | package com.migualador.cocktails.presentation.animation_extensions
import android.view.View
import android.view.animation.AlphaAnimation
import android.view.animation.Animation
fun View.animateFadeOut() {
val animation = AlphaAnimation(1.0f, 0.0f).apply {
duration = 200
}
animation.setAnimationLis... | 0 | Kotlin | 0 | 0 | 9936484c1a9404d97a93814d2274af6cc20e5315 | 1,150 | android-kotlin-mvvm-architecture | Apache License 2.0 |
foryouandme/src/main/java/com/foryouandme/domain/usecase/configuration/GetConfigurationUseCase.kt | 4YouandMeData | 610,425,317 | false | null | package com.foryouandme.domain.usecase.configuration
import com.foryouandme.domain.policy.Policy
import com.foryouandme.domain.policy.Policy.LocalFirst
import com.foryouandme.domain.policy.Policy.Network
import com.foryouandme.domain.usecase.study.GetStudyUseCase
import com.foryouandme.entity.configuration.Configurati... | 0 | Kotlin | 0 | 0 | bc82972689db5052344365ac07c8f6711f5ad7fa | 860 | 4YouandMeAndroid | MIT License |
entertainment-lib/src/test/java/de/eso/rxplayer/AudioImplTest.kt | yuriykulikov | 158,669,220 | false | null | package de.eso.rxplayer
import io.reactivex.schedulers.TestScheduler
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class AudioImplT... | 0 | Kotlin | 1 | 2 | 2e02a170b4aa9e27f10ab50b032aded33570b105 | 675 | rxplayer | MIT License |
module_mine/src/main/java/com/czl/module_mine/viewmodel/JobLearningViewModel.kt | pigletzzzzzz | 516,985,475 | false | {"Kotlin": 723880, "Java": 176802} | package com.czl.module_mine.viewmodel
import androidx.databinding.ObservableField
import com.czl.lib_base.base.BaseBean
import com.czl.lib_base.base.BaseViewModel
import com.czl.lib_base.base.MyApplication
import com.czl.lib_base.binding.command.BindingAction
import com.czl.lib_base.binding.command.BindingCommand
impo... | 0 | Kotlin | 0 | 0 | a3276c0149c7d2d3284a6a4d83fa5cb3874664e9 | 2,175 | XPZX-New_Kotlin | Apache License 2.0 |
feature-governance-impl/src/main/java/io/novafoundation/nova/feature_governance_impl/data/repository/v1/Gov1OffChainReferendaInfoRepository.kt | novasamatech | 496,649,319 | false | {"Kotlin": 5949531, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.feature_governance_impl.data.repository.v1
import io.novafoundation.nova.common.utils.formatting.parseDateISO_8601
import io.novafoundation.nova.feature_governance_api.data.network.blockhain.model.ReferendumId
import io.novafoundation.nova.feature_governance_api.data.network.offchain.mod... | 5 | Kotlin | 9 | 28 | fcd118ab5cbedded709ec062ae5d4bc890aaf96d | 6,185 | nova-android-app | Apache License 2.0 |
app/src/main/java/com/example/mytrainingpal/composables/TextIconWidget.kt | MichaelBuessemeyer | 572,939,495 | false | {"Kotlin": 256987} | package com.example.mytrainingpal.composables
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.layout.wrapContentWidth
import androidx.compose.material.Icon
import androidx.compose.material.... | 14 | Kotlin | 0 | 2 | 5ef8c98c684bf2bb863dc6781a457c16ab8bb6e1 | 873 | MyTrainingsPal | Apache License 2.0 |
core/src/commonMain/kotlin/work/socialhub/kslack/api/methods/SlackApiRequest.kt | uakihir0 | 794,979,552 | false | {"Kotlin": 1320977, "Java": 9455, "Ruby": 2164, "Shell": 2095, "Makefile": 316} | package com.github.seratch.jslack.api.methods
/**
* A marker interface for Slack API request objects.
*/
interface SlackApiRequest {
val token: String?
}
| 0 | Kotlin | 0 | 0 | 4d1299164adc8b8e638b02e0ca7e46afb10709f8 | 161 | kslack | MIT License |
app/src/main/java/com/andb/apps/weather/ui/common/PlaceholderOnLoading.kt | andyburris | 229,464,194 | false | {"Gradle": 3, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "Kotlin": 71, "XML": 27} | package com.andb.apps.weather.ui.common
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.compositionLocalOf
import androidx.compose.ui.M... | 0 | Kotlin | 0 | 0 | 9428bd90c76af01564557a5f11b0a5c4caee59d4 | 1,345 | Weather | MIT License |
shared/src/commonMain/kotlin/App.kt | mamadou94Diop | 683,034,694 | false | {"Kotlin": 34023, "Ruby": 1790, "Swift": 653, "Shell": 228} | import androidx.compose.runtime.Composable
import io.ktor.client.HttpClient
import navigation.AppScaffold
import theme.AppTheme
@Composable
fun App() {
AppTheme {
AppScaffold()
}
}
expect fun getHttpClient() : HttpClient | 0 | Kotlin | 0 | 0 | cbe15318f0d7a41b87903a475813381658191fe5 | 237 | restaurant-app-compose-multiplatform | Apache License 2.0 |
app/idcloudaccesssample/src/main/java/com/thalesgroup/gemalto/IdCloudAccessSample/viewmodels/AuthenticationViewModel.kt | ThalesGroup | 564,335,825 | false | null | package com.thalesgroup.gemalto.IdCloudAccessSample.viewmodels
import androidx.lifecycle.ViewModel
import com.thalesgroup.gemalto.IdCloudAccessSample.data.DataStoreRepo
import com.thalesgroup.gemalto.IdCloudAccessSample.utilities.AUTH_TYPE
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.ru... | 0 | Kotlin | 0 | 0 | f78bd80cb9683bbdcfa4d8800356611ffb6d526e | 737 | idcloud-access-sample-android | Apache License 2.0 |
kotlintest-tests/kotlintest-tests-core/src/test/kotlin/com/sksamuel/kotlintest/data/DataDrivenTestingTest.kt | vinicri | 156,184,572 | true | {"Kotlin": 719237, "Java": 6857} | package com.sksamuel.kotlintest.data
import io.kotlintest.data.forall
import io.kotlintest.shouldBe
import io.kotlintest.shouldThrow
import io.kotlintest.specs.StringSpec
import io.kotlintest.tables.row
class DataDrivenTestingTest : StringSpec() {
init {
"square roots" {
forall(
row(2, 4),
... | 0 | Kotlin | 0 | 1 | cb82314ae7dfe0039f87c49698b3ba4bb008d516 | 2,724 | kotlintest | Apache License 2.0 |
builder/src/commonMain/kotlin/pw/binom/builder/Table.kt | caffeine-mgn | 196,877,393 | false | null | package pw.binom.builder
class Table {
private val headers = ArrayList<String>()
private val rows = ArrayList<List<String>>()
private fun rowWidth(withHeader: Boolean, index: Int): Int {
var max = 0
if (withHeader)
max = headers[index].length
rows.forEach {
... | 0 | Kotlin | 0 | 0 | 139606a956de5fc41b8cc92243e7e5905fa8b147 | 2,539 | Builder | Apache License 2.0 |
shared/src/commonMain/kotlin/repository/settings/SettingsModule.kt | rschattauer | 747,667,420 | false | {"Kotlin": 87325, "Swift": 6737, "Shell": 190} | package repository.settings
import org.koin.dsl.module
internal val settingsModule
get() = module {
single<Settings> { SettingsImpl(dataStore = get()) }
}
| 0 | Kotlin | 0 | 2 | 21dbcf5d3d9e1f6e70f5e87ea432c80cbbf20e15 | 173 | compose_multiplatform | Apache License 2.0 |
core/src/main/kotlin/org/hyrical/hcf/team/claim/listener/ClaimListener.kt | Hyrical | 597,847,737 | false | {"Kotlin": 323471, "Java": 30373} | package org.hyrical.hcf.team.claim.listener
import com.cryptomorin.xseries.XMaterial
import org.bukkit.Material
import org.bukkit.event.EventHandler
import org.bukkit.event.Listener
import org.bukkit.event.block.Action
import org.bukkit.event.player.PlayerDropItemEvent
import org.bukkit.event.player.PlayerInteractEven... | 13 | Kotlin | 0 | 3 | 74a1512f3af2db591bcd233d2012e4dbded10e8a | 4,013 | HCF | MIT License |
koin-projects/koin-java/src/main/java/org/koin/java/standalone/KoinJavaStarter.kt | JanStoltman | 148,633,650 | false | {"AsciiDoc": 31, "Markdown": 5, "Text": 2, "Ignore List": 7, "Gradle": 28, "Shell": 8, "Java Properties": 3, "Batchfile": 1, "INI": 9, "Kotlin": 393, "XML": 76, "CSS": 3, "JSON": 61, "Java": 3, "YAML": 1} | /*
* Copyright 2017-2018 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 1 | null | 1 | 1 | 1d95f051d02f62aa7cfb6faed899c4eec146c48e | 1,753 | koin | Apache License 2.0 |
src/test/kotlin/org/jetbrains/kotlinx/jupyter/test/ConfigTest.kt | Kotlin | 63,066,291 | false | null | package org.jetbrains.kotlinx.jupyter.test
import io.kotest.matchers.shouldBe
import jupyter.kotlin.JavaRuntime
import org.jetbrains.kotlinx.jupyter.api.KotlinKernelVersion
import org.jetbrains.kotlinx.jupyter.defaultRuntimeProperties
import org.jetbrains.kotlinx.jupyter.iKotlinClass
import org.jetbrains.kotlinx.jupyt... | 57 | Kotlin | 106 | 941 | f92a3da6c330dd6fc8d730a706720ad48f3ecd69 | 3,402 | kotlin-jupyter | Apache License 2.0 |
app/src/main/java/com/malikane/mussic/Database/PlaylistBase.kt | Muratthekus | 238,066,345 | false | {"Kotlin": 43382} | package com.malikane.mussic.Database
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "playlistBase")
data class PlaylistBase(
@PrimaryKey(autoGenerate = true)
var Id:Int=0,
var name:String,
var description:String,
var size:Int=0,
var duration:Int=0) | 0 | Kotlin | 1 | 5 | 6dad14a84ef4dfda33b67d2e2b102bd62676b1ce | 307 | Music-Player | MIT License |
app/src/main/java/re/notifica/demo/extensions/Date.kt | Notificare | 274,510,983 | false | null | package re.notifica.demo.extensions
import java.time.Duration
import java.time.Period
import java.time.ZoneId
import java.util.*
fun Date.asTimeAgo(): String {
val start = this.toInstant().atZone(ZoneId.systemDefault())
val end = Calendar.getInstance().time.toInstant().atZone(ZoneId.systemDefault())
val ... | 0 | Kotlin | 0 | 0 | 076abe62f7d268096efac66a67b96a582e042af6 | 997 | notificare-jetpack-compose-demo | MIT License |
src/commonMain/kotlin/models/Voice.kt | dragneelfps | 297,047,080 | false | null | package io.github.dragneelfps.kbot.models
import kotlinx.serialization.Serializable
/**
* [https://core.telegram.org/bots/api#voice]
*/
@Serializable
data class Voice(
val file_id: String,
val file_unique_id: String,
val duration: Int,
val mime_type: String? = null,
val file_size: Int? = null,
)... | 5 | Kotlin | 2 | 8 | ffd954dd6b28c96cd1c8e5c846f55079bbaa07af | 321 | telegram-bot.kt | MIT License |
app/src/main/java/io/tokend/template/features/trade/history/view/adapter/TradeHistoryItemViewHolder.kt | tokend | 153,459,333 | false | null | package io.tokend.template.features.trade.history.view.adapter
import android.view.View
import androidx.core.content.ContextCompat
import io.tokend.template.R
import io.tokend.template.features.trade.history.model.TradeHistoryRecord
import io.tokend.template.view.adapter.base.BaseViewHolder
import io.tokend.template.v... | 1 | null | 9 | 24 | 297a2dd4b1017f49c37e7a23e4cea0e7682c99d4 | 1,627 | android-client | Apache License 2.0 |
EtcLiteKotlin/app/src/main/java/com/etc/logger/xlog/JsonLog.kt | XiaYi24 | 572,422,369 | false | {"Kotlin": 74637, "Java": 59063} | package com.etc.logger.xlog
import android.util.Log
import com.etc.logger.KLog
import com.etc.logger.KLogUtil
import org.json.JSONArray
import org.json.JSONException
import org.json.JSONObject
/**
* Created on 2020/8/11.
* @author Holo
*/
internal object JsonLog {
fun printJson(tag: String?, msg: String, head... | 0 | Kotlin | 0 | 0 | 6ff6deb7c72a8ffad6621e99bb0eb3f40e4cdb0a | 1,166 | MvvmProject | Apache License 2.0 |
kotlin/goi/src/main/kotlin/net/paploo/goi/persistence/database/vocabulary/SqlVocabularyDao.kt | paploo | 526,415,165 | false | {"Kotlin": 551045, "Ruby": 153592, "Java": 50625, "ANTLR": 2824, "CSS": 1827, "PLpgSQL": 274} | package net.paploo.goi.persistence.database.vocabulary
import net.paploo.goi.common.extensions.flatMap
import net.paploo.goi.common.extensions.sequenceToResult
import net.paploo.goi.domain.data.vocabulary.Vocabulary
import net.paploo.goi.persistence.common.BulkWriteDao
import net.paploo.goi.persistence.common.ServiceD... | 3 | Kotlin | 0 | 0 | 88b9e39268e22f071d6825c052395d5a1bf3b8c5 | 684 | goi | MIT License |
app/src/main/java/software/galaniberico/moduledroid/MainActivity2.kt | agp221-ua | 753,141,684 | false | {"Kotlin": 46824} | package software.galaniberico.moduledroid
import android.os.Bundle
import android.widget.TextView
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import software.galaniberico.moduledroid.facade.F... | 1 | Kotlin | 0 | 0 | bc285fb5e89d65becca1cdba8d5c777cf80511f3 | 1,007 | ModuleDroid | Apache License 2.0 |
android/src/main/java/com/rnidletimer/RnIdleTimerModule.kt | TheRogue76 | 571,755,079 | false | {"Java": 7387, "Ruby": 3679, "Kotlin": 2776, "Objective-C": 2533, "JavaScript": 1832, "TypeScript": 1810, "Objective-C++": 1716, "C": 103, "Swift": 63} | package com.rnidletimer
import android.app.Activity
import android.view.WindowManager
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactMethod
class RnIdleTimerModule internal constructor(context: ReactApplicationContext) :
RnIdleTimerSpec(context) {
override fun getN... | 1 | null | 1 | 1 | 6d1056353a6f8d09a83adf80f7e214966fd47152 | 928 | rn-idle-timer | MIT License |
tictactoe/dsl/src/main/kotlin/com/anaplan/engineering/azuki/tictactoe/dsl/TicTacToeRegardlessOf.kt | anaplan-engineering | 458,253,960 | false | null | package com.anaplan.engineering.azuki.tictactoe.dsl
import com.anaplan.engineering.azuki.core.dsl.RegardlessOf
import com.anaplan.engineering.azuki.core.system.Action
import com.anaplan.engineering.azuki.tictactoe.adapter.api.TicTacToeActionFactory
class TicTacToeRegardlessOf(private val actionFactory: TicTacToeActio... | 1 | Kotlin | 0 | 2 | 016b26faa9e75798f2abb8ea55b23e648449b40b | 585 | azuki | MIT License |
src/main/kotlin/com/deflatedpickle/survivalimprovement/Reference.kt | DeflatedPickle | 126,453,191 | false | {"Scala": 2007, "Java": 407} | package com.deflatedpickle.survivalimprovement
object Reference {
const val MOD_ID = "survivalimprovement"
const val NAME = "SurvivalImprovement"
// Versions follow this format: MCVERSION-MAJORMOD.MAJORAPI.MINOR.PATCH.
const val VERSION = "1.12.2-2.0.1.0"
const val ACCEPTED_VERSIONS = "[1.12.1, 1.1... | 0 | Scala | 0 | 0 | 3d23fe9bce8a795f551b6f0451417f2d11f819d2 | 393 | SurvivalImprovement | MIT License |
src/main/kotlin/com/deflatedpickle/survivalimprovement/Reference.kt | DeflatedPickle | 126,453,191 | false | {"Scala": 2007, "Java": 407} | package com.deflatedpickle.survivalimprovement
object Reference {
const val MOD_ID = "survivalimprovement"
const val NAME = "SurvivalImprovement"
// Versions follow this format: MCVERSION-MAJORMOD.MAJORAPI.MINOR.PATCH.
const val VERSION = "1.12.2-2.0.1.0"
const val ACCEPTED_VERSIONS = "[1.12.1, 1.1... | 0 | Scala | 0 | 0 | 3d23fe9bce8a795f551b6f0451417f2d11f819d2 | 393 | SurvivalImprovement | MIT License |
app/src/main/java/xyz/teamgravity/jetpackworkmanager/data/remote/ImgurApi.kt | raheemadamboev | 467,888,679 | false | {"Kotlin": 16728} | package xyz.teamgravity.jetpackworkmanager.data.remote
import okhttp3.ResponseBody
import retrofit2.Response
import retrofit2.http.GET
interface ImgurApi {
companion object {
const val BASE_URL = "https://i.imgur.com"
}
@GET("/X2qa7nQ.jpg")
suspend fun downloadImage(): Response<ResponseBody>... | 0 | Kotlin | 0 | 5 | 02fbfe5206360b0087c960abd1990b3d82025e4e | 322 | jetpack-workmanager | Apache License 2.0 |
src/main/kotlin/org/move/lang/core/psi/ext/MvLetStatement.kt | pontem-network | 279,299,159 | false | null | package org.move.lang.core.psi.ext
import org.move.lang.core.psi.MvLetStatement
import org.move.lang.core.types.ty.Ty
val MvLetStatement.declaredTy: Ty? get() = this.typeAnnotation?.type?.ty()
| 1 | Kotlin | 4 | 11 | a8348f3ab29be141da16bf0cbf86a70f91d61bef | 195 | intellij-move | MIT License |
src/main/kotlin/com/cycode/plugin/components/toolWindow/components/violationCardContentTab/sastViolationCardContentTab/components/companyGuidelines/SastCompanyGuidelines.kt | cycodehq | 661,784,325 | false | {"Kotlin": 205675} | package com.cycode.plugin.components.toolWindow.components.violationCardContentTab.sastViolationCardContentTab.components.companyGuidelines
import com.cycode.plugin.CycodeBundle
import com.cycode.plugin.cli.models.scanResult.sast.SastDetection
import com.cycode.plugin.components.toolWindow.components.violationCardCont... | 0 | Kotlin | 0 | 1 | b313d772bb78e48dda117702a462792f858290d2 | 1,009 | intellij-platform-plugin | MIT License |
app/src/main/java/com/omerguzel/pokedex/extensions/StringExtensions.kt | omerrguzel | 720,436,407 | false | {"Kotlin": 84274} | package com.omerguzel.pokedex.extensions
fun String?.capitalizeFirstLetter(): String? {
return this?.replaceFirstChar {
if (it.isLowerCase()) it.titlecase() else it.toString()
}
}
fun String.replaceSpecialCharactersWithSpace(): String {
return this.replace(Regex("\\s+"), " ")
}
| 0 | Kotlin | 0 | 0 | e0a0c9061531a18a6159e1394a7638b6ccbbab95 | 302 | Pokedex | The Unlicense |
app/src/androidTest/java/de/freenet/espresso_databinding/TestApp.kt | dhartwich1991 | 157,396,299 | false | null | package de.freenet.espresso_databinding
import android.app.Application
import org.koin.android.ext.android.startKoin
class TestApp : Application() {
override fun onCreate() {
super.onCreate()
startKoin(this, emptyList())
}
}
| 0 | Kotlin | 3 | 6 | 1a6ce34eb121bc204b911b78e94a4773be602e2d | 251 | databinding-espresso | The Unlicense |
Keyrnel/src/test/kotlin/com/keyrus/keyrnel/extensions/StringKtTest.kt | keyrusrocks | 151,573,114 | false | null | package com.keyrus.keyrnel.extensions
import org.junit.Test
/**
* Created by <NAME> on 09/10/2018.
*/
class StringKtTest {
/**
* According to RFC 2822, there is a link to valid or invalid email addresses
* https://blogs.msdn.microsoft.com/testing123/2009/02/06/email-address-test-cases/
*/
@T... | 0 | Kotlin | 0 | 0 | 4b62a4681e02c6c9a223658789e1a757e73c0cf8 | 1,816 | Keyrnel-Android | MIT License |
src/main/java/miyucomics/hexical/casting/patterns/OpMagicMissile.kt | miyucomics | 757,094,041 | false | {"Kotlin": 312812, "Java": 29755, "GLSL": 1353} | package miyucomics.hexical.casting.patterns
import at.petrak.hexcasting.api.misc.MediaConstants
import at.petrak.hexcasting.api.spell.ParticleSpray
import at.petrak.hexcasting.api.spell.RenderedSpell
import at.petrak.hexcasting.api.spell.SpellAction
import at.petrak.hexcasting.api.spell.casting.CastingContext
import a... | 0 | Kotlin | 1 | 1 | 8acff912fc3e4ccc1503576ab8a16fdfc3261184 | 1,879 | hexical | MIT License |
src/main/kotlin/tech/youko/acms/controller/device/AccessibilityController.kt | YukiIsait | 804,121,599 | false | {"Kotlin": 32952} | package tech.youko.acms.controller.device
import org.springframework.security.access.prepost.PreAuthorize
import org.springframework.security.core.context.SecurityContextHolder
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframe... | 0 | Kotlin | 0 | 0 | 1987f44718607920a3c8b318861578d727e2bfa3 | 1,134 | AccessControlSystem-Server | MIT License |
login/domain/src/main/java/dev/vladimirj/login/domain/usecase/IsCiphertextSaved.kt | VladimirWrites | 393,602,658 | false | null | package dev.vladimirj.login.domain.usecase
import dev.vladimirj.login.domain.store.CryptographicStore
import javax.inject.Inject
class IsCiphertextSaved @Inject constructor(
private val cryptographicStore: CryptographicStore
) {
operator fun invoke(): Boolean {
return cryptographicStore.getCiphertextW... | 0 | Kotlin | 0 | 3 | b363e2965e18c182136e59e24de4da285ce17e7b | 359 | LoginExample | Apache License 2.0 |
Frontend/app/src/main/java/com/example/TeamApp/auth/LoginViewModel.kt | TeamApp-Startup | 826,845,157 | false | {"Kotlin": 104143, "Java": 12082, "Python": 404} | package com.example.TeamApp.auth
import android.content.Context
import android.content.Intent
import android.util.Log
import androidx.activity.result.ActivityResultLauncher
import android.widget.Toast
import androidx.activity.result.IntentSenderRequest
import androidx.lifecycle.LiveData
import androidx.lifecycle.Mutab... | 0 | Kotlin | 2 | 3 | 6bc5187e1a02583370c4d517d66cdb0e960d25a8 | 7,566 | TeamApp | MIT License |
app/src/main/java/com/example/mytrainingpal/model/entities/MusclePainEntryMap.kt | MichaelBuessemeyer | 572,939,495 | false | {"Kotlin": 256987} | package com.example.mytrainingpal.model
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.Index
import com.example.mytrainingpal.model.entities.Muscle
import com.example.mytrainingpal.model.entities.MusclePainEntry
@Entity(
primaryKeys = ["musclePainEntryIdMap", "muscleIdMap"],
... | 14 | Kotlin | 0 | 2 | 5ef8c98c684bf2bb863dc6781a457c16ab8bb6e1 | 1,154 | MyTrainingsPal | Apache License 2.0 |
src/main/kotlin/org/raddad/main/alias.kt | fossabot | 394,966,615 | false | null | package org.raddad.main
typealias Constructor<T> = (Warehouse) -> T
typealias MutableRegistry = MutableMap<Metadata, Factory>
typealias Registry = Map<Metadata, Factory>
| 0 | Kotlin | 0 | 1 | 17183db5bac300212745927a887281a0f6117732 | 171 | Warehouse | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/s3/CfnAccessGrantDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 70198112} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.s3
import io.cloudshiftdev.awscdkdsl.CfnTagDsl
import io.... | 0 | Kotlin | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 10,160 | awscdk-dsl-kotlin | Apache License 2.0 |
core/datastore/src/commonMain/kotlin/core/datastore/JsonHandler.kt | odvratnozgodan | 860,637,530 | false | {"Kotlin": 136956, "Swift": 594, "HTML": 338, "CSS": 102} | package core.datastore
import core.common.base.model.JsonException
import core.common.base.usecese.DataResult
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
suspend inline fun <reified RM> String.safeFromJs... | 0 | Kotlin | 0 | 2 | 77b18ef241dd823dc817ac236df91fda22215d8c | 765 | kmp-showcase | MIT License |
app/src/main/java/com/aditya/fitfriend_android/utils/PIFlags.kt | this-Aditya | 654,565,739 | false | null | /**
* Copyright 2023 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distribu... | 0 | Kotlin | 0 | 0 | 5580c516ec686a43cd586f22bad204121a31e582 | 912 | FitFriend | Apache License 2.0 |
gateway/src/main/kotlin/org/heeheepresso/gateway/common/exception/GatewayException.kt | HeeHeePresso | 758,780,391 | false | {"Kotlin": 120219, "Java": 11246} | package org.heeheepresso.gateway.common.exception
import org.heeheepresso.gateway.common.response.StatusCode
import org.springframework.http.HttpStatus
data class GatewayException(
val httpStatus: HttpStatus,
val statusCode: StatusCode
) : RuntimeException(statusCode.message) {
constructor(statusC... | 9 | Kotlin | 0 | 0 | c41fa09c4157c726c21f617e731bb980a99b901a | 376 | Backend | Apache License 2.0 |
app/src/test/java/com/sildian/apps/togetrail/hiker/model/dataRequests/HikerSaveDataRequestTest.kt | Sildian | 230,769,024 | false | {"Kotlin": 660492} | package com.sildian.apps.togetrail.hiker.model.dataRequests
import com.google.firebase.FirebaseException
import com.sildian.apps.togetrail.common.utils.cloudHelpers.AuthRepository
import com.sildian.apps.togetrail.common.utils.cloudHelpers.StorageRepository
import com.sildian.apps.togetrail.dataRequestTestSupport.Base... | 1 | Kotlin | 0 | 0 | cb8e1d926f5e2f0765fe22789ee66cd1ffa7f2be | 3,497 | TogeTrail-Android | Apache License 2.0 |
app/src/main/java/com/hha/heinhtetaung/healthcare/delegates/HealthCareDelegate.kt | zack1191 | 140,570,587 | false | {"Kotlin": 20746} | package com.hha.heinhtetaung.healthcare.delegates
import com.hha.heinhtetaung.healthcare.data.vo.HealthCareVO
/**
* Created by E5 on 7/13/2018.
*/
interface HealthCareDelegate {
fun onTapHealthcare(healthcareVO: HealthCareVO)
} | 0 | Kotlin | 0 | 0 | e8bbceec33f4518ff7769b08aabbc80e6e908e94 | 235 | PADC-5-HHA-Healthcare | Apache License 2.0 |
entities/src/commonMain/kotlin/gcu/product/entities/containers/PagerEntity.kt | Ilyandr | 612,297,078 | false | null | package gcu.product.entities.containers
import dev.icerock.moko.parcelize.Parcelable
import dev.icerock.moko.parcelize.Parcelize
@Parcelize
data class PagerEntity(
val title: String,
val description: String,
val imageId: String?
) : Parcelable {
fun requireAndroidImageId() = imageId?.toIntOrNull() ?:... | 0 | Kotlin | 0 | 1 | 8fba8e926b079df86ef5c853e0d1fffcb0e4bc64 | 1,947 | Friendly | Apache License 2.0 |
src/main/java/br/com/chicorialabs/libghiclient/ui/activity/MainActivity.kt | chicorasia | 360,713,234 | false | null | package br.com.chicorialabs.libghiclient.ui.activity
import android.content.ContentValues
import android.database.Cursor
import android.net.Uri
import android.os.Bundle
import android.provider.BaseColumns._ID
import android.util.Log
import android.widget.ProgressBar
import androidx.appcompat.app.AppCompatActivity
impo... | 0 | Kotlin | 0 | 0 | 06c27fcb442d332979bebbcc426ce10f07785abc | 4,038 | bootcamp-libghi-client | MIT License |
src/aws/lambdas/incremental_distribution/cta/src/main/java/uk/nhs/nhsx/circuitbreakers/CircuitBreakerResult.kt | turlodales | 289,705,241 | true | {"Kotlin": 1762543, "HCL": 516174, "Ruby": 402118, "Python": 95997, "HTML": 10538, "Java": 6060, "Shell": 5028, "Dockerfile": 3728, "Makefile": 780, "JavaScript": 554} | package uk.nhs.nhsx.circuitbreakers
import uk.nhs.nhsx.circuitbreakers.CircuitBreakerResult.ResultType.MissingPollingTokenError
import uk.nhs.nhsx.circuitbreakers.CircuitBreakerResult.ResultType.Ok
import uk.nhs.nhsx.circuitbreakers.CircuitBreakerResult.ResultType.ValidationError
class CircuitBreakerResult private co... | 0 | Kotlin | 0 | 0 | 8c67d6e23c7fc79f039c4012238d82131900a4d4 | 1,129 | covid19-app-system-public | MIT License |
src/main/kotlin/krayon/editor/sbgn/io/SbgnReader.kt | draeger-lab | 156,102,188 | true | {"Kotlin": 800067, "Java": 123973, "CSS": 34315, "Inno Setup": 1574} | /*
* Copyright (c) 2018 <NAME>
* This software is licensed under the Apache License, Version 2.0 (the "License"); you may not use this software 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 ... | 0 | Kotlin | 0 | 1 | d40dc53b35367a81099b929a22b1b36f8f601a42 | 22,155 | krayon4sbgn | Apache License 2.0 |
app/storybook/src/main/java/com/yourssu/storybook/atom/SearchTextFieldViewModel.kt | yourssu | 364,290,281 | false | null | package com.yourssu.storybook.atom
import android.app.Application
import androidx.lifecycle.MutableLiveData
import com.yourssu.design.system.atom.Toggle
import com.yourssu.design.undercarriage.base.TextField
import com.yourssu.storybook.BaseViewModel
class SearchTextFieldViewModel(application: Application): BaseViewM... | 2 | Kotlin | 0 | 9 | 58364077175f882def5108e654f51667b9d3af36 | 914 | YDS-Android | MIT License |
BazaarPay/src/main/java/ir/cafebazaar/bazaarpay/models/Resource.kt | cafebazaar | 489,705,723 | false | null | package ir.cafebazaar.bazaarpay.models
import ir.cafebazaar.bazaarpay.data.bazaar.models.ErrorModel
import java.io.Serializable
internal data class Resource<out T>(
val resourceState: ResourceState,
val data: T? = null,
val failure: ErrorModel? = null
) : Serializable {
val isSuccess = resourceState ... | 2 | Kotlin | 1 | 9 | 284b5cfcb288172730b7ef1d292a86eb1a6e5f85 | 1,252 | BazaarPay | Apache License 2.0 |
walletconnect-core/src/test/java/walletconnect/core/cryptography/IsHexTest.kt | jemshit | 510,397,898 | false | null | /**
* MIT License
* Copyright (c) 2022 <NAME>
*/
package walletconnect.core.cryptography
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test
class IsHexTest {
@Test
fun validNumbers() {
assertTrue("0123456789".isHex())
}
@Test
fun validChars() ... | 0 | Kotlin | 2 | 19 | c00c9481a9ce872c8376a0efd7bd2fd7816ef4b5 | 988 | WalletConnect | MIT License |
src/main/kotlin/dev/franckyi/karith/impl/KthOperatorImpl.kt | skyecodes | 521,620,818 | false | {"Kotlin": 95615} | package dev.franckyi.karith.impl
import dev.franckyi.karith.api.KthOperator
internal data class KthOperatorImpl(
override val key: String,
override val precedence: Int,
override val leftAssociative: Boolean,
private val operation: (Double, Double) -> Double
) : KthOperator {
override fun apply(lef... | 0 | Kotlin | 0 | 1 | a025ab2a288280e4f3b9a45296dc9a6d39ec6bc1 | 380 | Karith | MIT License |
app/src/main/java/cz/muni/fi/umimecesky/game/robots/LevelAdapter.kt | mareksabo | 82,814,524 | false | null | /*
* Copyright (c) 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 1 | Kotlin | 0 | 4 | 488245ce33b0abace0d21a153ac44e348fd6d1f2 | 2,376 | umimecesky | Apache License 2.0 |
app/src/main/java/com/beam/composecatalog/MyTextAndTextField.kt | breduarm | 788,251,717 | false | {"Kotlin": 34375} | package com.beam.composecatalog
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.OutlinedTextField
import androidx.compose.material3.Ou... | 0 | Kotlin | 0 | 0 | ed274e84849c70e0c4f732fef8421938a26d2703 | 3,655 | compose_catalog | MIT License |
sample/src/main/java/com/wada811/viewlifecycleproperty/sample/SampleActivity.kt | wada811 | 277,118,088 | false | null | package com.wada811.viewlifecycleproperty.sample
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.wada811.databinding.dataBinding
import com.wada811.vi... | 0 | Kotlin | 0 | 7 | 68c7e990c9aa7210faf12a8655bb71ccbfce869c | 2,403 | ViewLifecycleProperty | Apache License 2.0 |
app/src/main/java/com/gbros/tabslite/data/chord/Chord.kt | More-Than-Solitaire | 249,057,023 | false | {"Kotlin": 310724} | package com.gbros.tabslite.data.chord
import android.util.Log
import com.gbros.tabslite.data.AppDatabase
import com.gbros.tabslite.utilities.UgApi
import kotlin.math.abs
private const val LOG_NAME = "tabslite.ICompleteChord"
object Chord {
// region public methods
suspend fun ensureAllChordsDownloaded(chord... | 31 | Kotlin | 4 | 65 | 1c934bb1e0c873dd1f9884afe5468c4e4bc5ccd6 | 4,974 | Tabs-Lite | Apache License 2.0 |
shared/src/commonMain/kotlin/hr/dtakac/prognoza/shared/domain/GetForecastProvider.kt | davidtakac | 387,038,134 | false | null | package hr.dtakac.prognoza.shared.domain
import hr.dtakac.prognoza.shared.domain.data.SettingsRepository
import hr.dtakac.prognoza.shared.entity.ForecastProvider
class GetForecastProvider internal constructor(
private val settingsRepository: SettingsRepository
){
suspend operator fun invoke(): ForecastProvide... | 24 | Kotlin | 11 | 194 | 2ff651b1b6470441fc81066f84271feacc855195 | 366 | prognoza | MIT License |
shared/src/commonMain/kotlin/hr/dtakac/prognoza/shared/domain/GetForecastProvider.kt | davidtakac | 387,038,134 | false | null | package hr.dtakac.prognoza.shared.domain
import hr.dtakac.prognoza.shared.domain.data.SettingsRepository
import hr.dtakac.prognoza.shared.entity.ForecastProvider
class GetForecastProvider internal constructor(
private val settingsRepository: SettingsRepository
){
suspend operator fun invoke(): ForecastProvide... | 24 | Kotlin | 11 | 194 | 2ff651b1b6470441fc81066f84271feacc855195 | 366 | prognoza | MIT License |
app/src/main/java/jp/yn/android/light/reader/ItemListFragment.kt | yuukiw00w | 186,211,214 | false | {"Kotlin": 10759, "Ruby": 1176, "Shell": 368} | package jp.yn.android.light.reader
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProviders
import androidx.navigation.findNavControll... | 0 | Kotlin | 0 | 0 | b325597621616fdcb0a37e2f3d73b613f02e3f90 | 1,696 | QiitaReaderForAndroid | Apache License 2.0 |
app/src/main/java/jp/cordea/mackerelclient/adapter/MonitorAdapter.kt | CORDEA | 50,841,867 | false | null | package jp.cordea.mackerelclient.adapter
import android.content.Context
import com.xwray.groupie.GroupAdapter
import com.xwray.groupie.ViewHolder
import jp.cordea.mackerelclient.api.response.MonitorDataResponse
import jp.cordea.mackerelclient.di.FragmentScope
import jp.cordea.mackerelclient.view.MonitorListItem
import... | 0 | Kotlin | 1 | 4 | 20041d0cec421ec90c376d4259efdca8caee3bdd | 1,144 | MackerelClient | Apache License 2.0 |
wear/src/main/java/github/vodianov/hoursignal/dto/settings/MuteSignalRegion.kt | shredd0r | 756,834,042 | false | {"Kotlin": 19754} | package github.vodianov.hoursignal.dto.settings
import kotlinx.serialization.Serializable
@Serializable
class MuteSignalRegion(
val muteWhenCharging: Boolean,
val muteWhenDNDOn: Boolean,
val muteWhenAirplaneModeOn: Boolean) {
} | 0 | Kotlin | 0 | 0 | b922605e2d28cf0d61edf8a0cd16beda19f3821a | 241 | hour-signal-wear-os | Apache License 2.0 |
bottom_navigation/android/app/src/main/kotlin/com/cooray/nipuna/bottom_navigation/MainActivity.kt | NipunaCooray | 327,271,563 | false | {"Dart": 18667, "Swift": 1212, "Kotlin": 415, "Objective-C": 114} | package com.cooray.nipuna.bottom_navigation
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | f78b6095d8038a0f32aaec91ff7a1ab97a41b828 | 140 | flutter-snippets | MIT License |
app/src/main/java/com/mburakcakir/taketicket/data/remote/model/event/Genre.kt | mburakcakir | 319,590,139 | false | null | package com.mburakcakir.taketicket.data.remote.model.event
data class Genre(
val document_source: DocumentSource,
val id: Int,
val image: String,
val images: Images,
val name: String,
val primary: Boolean,
val slug: String
) | 0 | Kotlin | 2 | 3 | d8f1c95a6acac306d349d82c2d1fe91fcb739f09 | 253 | TakeTicket | Apache License 2.0 |
domain/src/main/java/com/safetyheads/akademiaandroida/domain/repositories/TokenRepository.kt | SafetyHeads | 590,936,924 | false | null | package com.safetyheads.akademiaandroida.domain.repositories
import kotlinx.coroutines.flow.Flow
interface TokenRepository{
fun getMessagingToken(): Flow<String>
} | 7 | Kotlin | 0 | 0 | c150bf378ff23a047bc23d19753b000f71b88511 | 169 | Akademia-Androida-2023 | Apache License 2.0 |
app/src/main/java/com/johannliebert/jisho/feature_joshi/data/remote/DictionaryAPI.kt | Paulr756756 | 481,305,351 | false | {"Kotlin": 11036} | package com.johannliebert.jisho.feature_joshi.data.remote
import com.johannliebert.jisho.feature_joshi.data.remote.dto.WordInfoDto
import retrofit2.http.*
interface DictionaryAPI {
@GET("/api/v2/entries/en/{word}")
suspend fun getWordInfo(
@Path("word") word:String
) : List<WordInfoDto>
} | 0 | Kotlin | 0 | 0 | 9115fa835b18560f57e3f8976f0994b199f74820 | 311 | Jisho | MIT License |
ERMSCompany/src/main/java/com/kust/erms_company/di/GlideModule.kt | sabghat90 | 591,653,827 | false | null | package com.kust.erms_company.di
import com.bumptech.glide.module.AppGlideModule
@com.bumptech.glide.annotation.GlideModule
class GlideModule : AppGlideModule() | 3 | Kotlin | 1 | 7 | 12030507bbd683a1004a19eb9eda78462fe48b81 | 162 | ERMS | MIT License |
app/src/main/java/com/example/proyectojunio/provider/SuperheroesProvider.kt | MrSpiderPablo | 774,884,267 | false | {"Kotlin": 23920, "Java": 7060} | package com.example.proyectojunio.provider
import com.example.proyectojunio.R
import com.example.proyectojunio.models.Superheroes
object SuperheroesProvider {
val misSuperheroes = arrayListOf<Superheroes>(
Superheroes("Daredevil", "<NAME>", R.drawable.daredevil,
"<NAME> creció en el peligroso... | 0 | Kotlin | 0 | 0 | d1650e4dcaf2e4c697d9a27bd4154b211c9f077f | 7,136 | ProyectoFinal | MIT License |
application/event-sourced-system3/src/main/kotlin/com/fraktalio/fmodel/example/eventsourcedsystem3/query/application/RestaurantEventHandler.kt | sampingantech | 422,002,486 | true | {"Kotlin": 194766} | /*
* Copyright (c) 2021 Fraktalio D.O.O. All rights reserved.
*
* 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 b... | 1 | null | 0 | 0 | 1c701216078535a808ecc0d3fb295be2fba45211 | 5,199 | fmodel-demos | Apache License 2.0 |
tl/src/main/kotlin/com/github/badoualy/telegram/tl/api/TLTopPeerCategoryCorrespondents.kt | Miha-x64 | 436,587,061 | true | {"Kotlin": 3919807, "Java": 75352} | package com.github.badoualy.telegram.tl.api
/**
* topPeerCategoryCorrespondents#637b7ed
*
* @author <NAME> <EMAIL>
* @see <a href="http://github.com/badoualy/kotlogram">http://github.com/badoualy/kotlogram</a>
*/
class TLTopPeerCategoryCorrespondents : TLAbsTopPeerCategory() {
private val _constructor: String... | 1 | Kotlin | 2 | 3 | 1a8963dce921c1e9ef05b9d1e56d8fbcb1ea1c4b | 727 | kotlogram-resurrected | MIT License |
codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/customization/s3/S3OperationErrorHandler.kt | awslabs | 121,333,316 | false | {"Kotlin": 1076968, "Smithy": 8546, "TypeScript": 1488, "JavaScript": 1134, "Dockerfile": 391} | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.sdk.kotlin.codegen.customization.s3
import software.amazon.smithy.kotlin.codegen.KotlinSettings
import software.amazon.smithy.kotlin.codegen.aws.protocols.core.AwsHttpBindingProtocolGenerato... | 79 | Kotlin | 49 | 407 | 287408211f193624d37678d66b0f31f457017d08 | 4,641 | aws-sdk-kotlin | Apache License 2.0 |
app/src/main/java/com/myetherwallet/mewconnect/content/data/MessageSignData.kt | MyEtherWallet | 152,647,742 | false | null | package com.myetherwallet.mewconnect.content.data
import com.google.gson.annotations.SerializedName
/**
* Created by BArtWell on 04.10.2018.
*/
data class MessageSignData(
@SerializedName("address")
private val address: String,
@SerializedName("sig")
private val signature: String
) | 7 | Kotlin | 37 | 49 | b55589ed7729c5afd0f81ff4c1177c92df651e45 | 319 | MEWconnect-Android | MIT License |
simpleCallApi/src/main/java/com/example/callapi/error/ErrorHandler.kt | MattyOliveira | 340,404,295 | false | null | package com.example.callapi.error
import java.io.IOException
import java.net.HttpURLConnection
import retrofit2.HttpException
class ErrorHandler {
fun handlerError(throwable: Throwable): ErrorEntity {
return when(throwable) {
is IOException -> ErrorEntity.Network
is HttpException -... | 0 | Kotlin | 0 | 3 | d963a7742eefbb2316e8d05736835a5d0b8cab98 | 753 | SimpleCallApi | Apache License 2.0 |
app/src/main/java/com/sunnyweather/android/logic/model/DailyResponse.kt | dreature1328 | 374,294,248 | true | {"Kotlin": 38865, "Java": 4302} | package com.sunnyweather.android.logic.model
import com.google.gson.annotations.SerializedName
import java.util.*
import kotlin.String
data class DailyResponse(val code: String,val updateTime: String,val fxLink: String, val daily: List<Daily>,val refer: Refer) {
data class Daily(val fxDate: Date,val sunrise: Str... | 0 | Kotlin | 0 | 0 | bcee76114a508dc5d76eb8e410eecac27b6b3e43 | 1,762 | SunnyWeather | Apache License 2.0 |
processing-status-api-function-app/src/test/kotlin/test/HealthCheckFunctionTest.kt | CDCgov | 679,761,337 | false | {"Kotlin": 573145, "Java": 30754, "Python": 12702, "TypeScript": 7647, "JavaScript": 2382} | package test
import com.azure.cosmos.CosmosClient
import com.azure.cosmos.CosmosContainer
import com.azure.cosmos.CosmosDatabase
import com.azure.cosmos.util.CosmosPagedIterable
import com.microsoft.azure.functions.ExecutionContext
import com.microsoft.azure.functions.HttpRequestMessage
import com.microsoft.azure.func... | 2 | Kotlin | 0 | 1 | 570ec1df411691da32254d5d61f9cdbe1cfabb12 | 2,861 | data-exchange-processing-status | Apache License 2.0 |
Projects/Reddit/app/src/main/java/ademar/study/reddit/plataform/factories/IntentFactory.kt | ademar111190 | 76,153,266 | false | null | package ademar.study.reddit.plataform.factories
import android.content.Intent
import javax.inject.Inject
class IntentFactory @Inject constructor() {
fun makeIntent(): Intent {
return Intent()
}
}
| 0 | Kotlin | 1 | 1 | 65466ea1c6e4f75ae9791826a428c7dd8e101f98 | 216 | Studies | MIT License |
module_home/src/main/java/com/czl/module_home/adapter/RegistrationSettlementPayAdapter.kt | pigletzzzzzz | 516,985,475 | false | {"Kotlin": 723880, "Java": 176802} | package com.czl.module_home.adapter
import androidx.recyclerview.widget.DiffUtil
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.czl.lib_base.binding.command.BindingCommand
import com.czl.lib_base.binding.command.BindingConsumer
imp... | 0 | Kotlin | 0 | 0 | a3276c0149c7d2d3284a6a4d83fa5cb3874664e9 | 2,550 | XPZX-New_Kotlin | Apache License 2.0 |
src/main/kotlin/no/elhub/common/orchid/theme/ElhubModule.kt | elhub | 378,134,526 | false | {"SCSS": 35792, "Kotlin": 9795, "JavaScript": 2867} | package no.elhub.common.orchid.theme
import com.eden.orchid.api.registration.OrchidModule
import com.eden.orchid.api.theme.Theme
import com.eden.orchid.utilities.addToSet
class ElhubModule : OrchidModule() {
override fun configure() {
addToSet<Theme, ElhubTheme>()
}
}
| 1 | SCSS | 1 | 0 | a9700db1c0131d6da802ef6b44545bc22ffb0d19 | 288 | common-orchid-theme | MIT License |
domain/src/main/java/danggai/domain/network/changedataswitch/repository/ChangeDataSwitchRepository.kt | danggai | 420,838,266 | false | null | package danggai.domain.network.changedataswitch.repository
import danggai.domain.core.ApiResult
import danggai.domain.core.Repository
import danggai.domain.network.changedataswitch.entity.ChangeDataSwitch
import kotlinx.coroutines.flow.Flow
interface ChangeDataSwitchRepository: Repository {
suspend fun changeDat... | 2 | Kotlin | 0 | 9 | 593ced62277665819bd71d97184c4e3eef2a9c9f | 546 | android_genshin_resin_widget | MIT License |
core/src/main/kotlin/com/panelsense/core/model/mqqt/MqttMessage.kt | dawidpodolak | 676,995,228 | false | {"Kotlin": 209631, "Shell": 408} | package com.panelsense.core.model.mqqt
data class MqttMessage(
val topic: String,
val message: String
)
| 0 | Kotlin | 0 | 1 | bce29e39342d4a19d027eaff745bc25bd8a7143f | 113 | android-panelsense | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/twotone/Searchfavorite.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.twotone
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... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 3,211 | VuesaxIcons | MIT License |
app/src/main/java/com/moonwinston/motivationaltodolist/ui/settings/SettingsFragment.kt | winstonmoon | 321,340,734 | false | null | package com.moonwinston.motivationaltodolist.ui.settings
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.activityViewModels
import androidx.navigation.findNavController
import com.moonwinston.motivationaltodolist.BuildConfig
import com.moonwinston.motivationaltodolist.R
import com.moonwinston.mo... | 5 | Kotlin | 1 | 4 | 4add535cf363de121c4abf2878c07e42b8a8d49b | 3,690 | motivational-todo-list-android | Apache License 2.0 |
app/src/main/kotlin/org/geepawhill/jltk/layout/TestShape.kt | GeePawHill | 661,747,103 | false | null | package org.geepawhill.jltk.layout
import org.geepawhill.jltk.parse.LogDetail
import org.geepawhill.jltk.parse.TestResult
import org.geepawhill.jltk.ui.ShapeAdder
class TestShape(
override val detail: LogDetail,
override val x: Int,
val y: Int,
val result: TestResult,
val tests: List<TestResult>
... | 0 | Kotlin | 0 | 0 | fcd6ce06c7d223d82506a0567083187100ea3e70 | 470 | jltk-viewer | MIT License |
hardkore-ktor-server/src/test/kotlin/io/github/alonsage/hardkore/ktor/server/KtorServerommandTest.kt | alon-sage | 830,704,636 | false | {"Kotlin": 204889} | package io.github.alonsage.hardkore.ktor.server
import io.ktor.client.HttpClient
import io.ktor.client.request.get
import io.ktor.client.statement.bodyAsText
import io.ktor.http.isSuccess
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.flow.flow
import kotlinx.coroutine... | 0 | Kotlin | 0 | 0 | 137d983fed70bca82ff86259949f5b68a0fd73a6 | 1,421 | hardkore-framework | Apache License 2.0 |
app/src/main/java/tk/zwander/lockscreenwidgets/listeners/WidgetResizeListener.kt | zacharee | 262,360,174 | false | null | package tk.zwander.lockscreenwidgets.listeners
import android.annotation.SuppressLint
import android.content.Context
import android.view.MotionEvent
import android.view.View
import tk.zwander.lockscreenwidgets.util.widgetBlockHeight
import tk.zwander.lockscreenwidgets.util.widgetBlockWidth
import kotlin.math.absoluteV... | 1 | null | 10 | 59 | 1b37deab5f279b018d689e2f2b761fbc3315d835 | 2,876 | LockscreenWidgets | MIT License |
source/data/src/main/kotlin/de/webis/webisstud/thesis/reimer/data/ModelExtensions.kt | webis-de | 261,803,727 | false | null | package de.webis.webisstud.thesis.reimer.data
import de.webis.webisstud.thesis.reimer.model.Corpus
import de.webis.webisstud.thesis.reimer.model.Document
import de.webis.webisstud.thesis.reimer.model.Task
import de.webis.webisstud.thesis.reimer.model.Topic
import java.io.File
val Corpus.dataDir get() = Data.corporaDi... | 0 | Kotlin | 3 | 2 | c4deb7783be495458ef9c738ebd43075b3aa9bb2 | 970 | sigir20-sampling-bias-due-to-near-duplicates-in-learning-to-rank | MIT License |
src/main/kotlin/br/com/zup/pix/ChavePixExistenteException.kt | josivaldobatista | 388,871,641 | true | {"Kotlin": 23062} | package br.com.zup.pix
class ChavePixExistenteException(message: String?) : RuntimeException(message) | 0 | Kotlin | 0 | 0 | fbfcb5d00ce859673c305239961caad5a8b9994f | 102 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
tvm/src/boc/BagOfCellsImpl.kt | ton-community | 448,983,229 | false | {"Kotlin": 1194581} | package org.ton.boc
import io.ktor.utils.io.core.*
import org.ton.cell.Cell
internal data class BagOfCellsImpl(
override val roots: List<Cell>
) : BagOfCells, List<Cell> by roots {
constructor(root: Cell) : this(roots = listOf(root))
override fun iterator(): Iterator<Cell> = iterator {
yieldAll(r... | 21 | Kotlin | 24 | 80 | 7eb82e9b04a2e518182ebfc56c165fbfcc916be9 | 675 | ton-kotlin | Apache License 2.0 |
compose/ui/ui-test/src/androidMain/kotlin/androidx/compose/ui/test/Actions.android.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* 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... | 29 | Kotlin | 1011 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 1,724 | androidx | Apache License 2.0 |
ledger/src/main/kotlin/org/knowledger/ledger/chain/solver/StorageSolverState.kt | andrediogo92 | 122,662,386 | false | {"Kotlin": 795385, "Rust": 9666, "Python": 228} | package org.knowledger.ledger.chain.solver
import com.github.michaelbull.result.Ok
import org.knowledger.ledger.chain.solver.trackers.CollectionTracker
import org.knowledger.ledger.chain.solver.trackers.IndexTracker
import org.knowledger.ledger.chain.solver.trackers.StorageTracker
import org.knowledger.ledger.database... | 0 | Kotlin | 1 | 3 | 0e5121243b9faf101b6d2ccf5bce60a657a31b4e | 4,651 | KnowLedger | MIT License |
core-ui/src/main/java/io/github/lee/core/ui/BaseActivity.kt | 291700351 | 467,801,205 | false | null | @file:Suppress("MemberVisibilityCanBePrivate")
package io.github.lee.core.ui
import android.content.Context
import android.os.Build
import android.os.Bundle
import android.view.View
import android.view.Window
import android.widget.FrameLayout
import android.widget.Toast
import androidx.annotation.ColorInt
import andr... | 0 | Kotlin | 0 | 0 | 05228000958e772128acde4da303315bee5c300c | 10,477 | core-base | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.