path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/br/com/zupacademy/maxley/shared/grpc/handler/ChavePixNaoEncontradaExceptionHandler.kt | MaxCosta0 | 383,860,374 | true | {"Kotlin": 72692, "Smarty": 2032, "Dockerfile": 339} | package br.com.zupacademy.maxley.shared.grpc.handler
import br.com.zupacademy.maxley.pix.ChavePixNaoEncontradaException
import br.com.zupacademy.maxley.shared.grpc.ExceptionHandler
import io.grpc.Status
import javax.inject.Singleton
@Singleton
class ChavePixNaoEncontradaExceptionHandler: ExceptionHandler<ChavePixNaoE... | 0 | Kotlin | 0 | 0 | 46b8f1df2a315a52ac1df4124e6ec1af94cad411 | 719 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
telegram-bot/src/main/kotlin/eu/vendeli/tgbot/utils/ProcessUpdate.kt | vendelieu | 496,567,172 | false | null | package eu.vendeli.tgbot.utils
import eu.vendeli.tgbot.types.Update
import eu.vendeli.tgbot.types.User
import eu.vendeli.tgbot.types.internal.ProcessedUpdate
import eu.vendeli.tgbot.types.internal.UpdateType
@Suppress("LongMethod", "CyclomaticComplexMethod")
internal fun processUpdate(update: Update): ProcessedUpdate... | 0 | Kotlin | 2 | 70 | e35d51216afdd5748d6ee9ac8fce4aca6539f241 | 3,340 | telegram-bot | Apache License 2.0 |
core/src/commonMain/kotlin/com/raumfeld/wamp/websocket/WebSocketFactory.kt | raumfeld | 185,430,302 | false | null | package com.raumfeld.wamp.websocket
/**
* Must be implemented by clients so the library can work with WebSockets across platforms.
*/
interface WebSocketFactory {
/**
* This method should be implemented on each platform so that a WebSocket connection to the given URI is made
* and all corresponding ev... | 0 | Kotlin | 0 | 1 | 7ac39077ec5b39ad9a19773d026750d167c75bfd | 690 | rf-wamp | MIT License |
app/src/main/java/com/alexereh/cocktailbar/di/MainModule.kt | AlexEreh | 676,261,123 | false | {"Kotlin": 61166} | package com.alexereh.cocktailbar.di
import androidx.room.Room
import com.alexereh.cocktailbar.db.CocktailDatabase
import com.alexereh.cocktailbar.repo.CocktailRepository
import com.alexereh.cocktailbar.repo.CocktailRepositoryImpl
import com.google.gson.Gson
import org.koin.android.ext.koin.androidApplication
import or... | 1 | Kotlin | 0 | 3 | a938e5bc1d65511cc2893fd50fd838f71cbf70b0 | 646 | CocktailBar | MIT License |
app/src/main/java/com/example/firm/di/DbModule.kt | matinnasiridev | 665,621,905 | false | null | package com.example.firm.di
import android.content.Context
import androidx.room.Room
import com.example.firm.database.AppDatabase
import com.example.firm.database.CategoryDao
import com.example.firm.database.NoteDao
import com.example.firm.model.CategoryData
import com.example.firm.model.SingleNoteData
import com.exam... | 0 | Kotlin | 0 | 0 | ada89cdf4a376ffda9863d4bff9a297986ea96b9 | 1,200 | Firm | MIT License |
app/src/main/java/srihk/alarmq/ui/SnoozeItem.kt | srihk | 612,135,819 | false | null | package srihk.alarmq.ui
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.comp... | 0 | Kotlin | 1 | 1 | e5191af24de63d4894c383074872819a5264dd2e | 1,558 | alarmq | MIT License |
app/src/main/java/fr/openium/auvergnewebcams/service/DownloadWorker.kt | openium | 84,578,399 | false | null | package fr.openium.auvergnewebcams.service
import android.content.ContentValues
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Build
import android.os.Environment
import android.os.SystemClock
import android.provider.MediaSto... | 0 | Kotlin | 1 | 2 | e7e41eb2c021b895377b4a9933b2f5092640ae14 | 6,291 | auvergne-webcams-droid | MIT License |
BugTrackerApp/app/src/main/java/com/app/bugtrackerapp/data/RepositoryImpl.kt | rakshithraj123 | 747,021,768 | false | {"Kotlin": 24086} | package com.app.bugtrackerapp.data
import android.content.Context
import android.net.Uri
import android.util.Log
import com.app.bugtrackerapp.data.remote.NetworkRepository
import com.app.bugtrackerapp.data.remote.request.AddBugRequest
import javax.inject.Inject
class RepositoryImpl @Inject constructor(
private ... | 0 | Kotlin | 0 | 0 | 063753721fb0050259e478f81eafb66e6229248b | 715 | BugTrackerApp | Apache License 2.0 |
core/src/main/kotlin/core/ems/service/moodle/OnStartupMoodleActions.kt | kspar | 160,047,508 | false | {"Kotlin": 1278969, "HTML": 333112, "CSS": 89074, "Python": 10393, "JavaScript": 536, "Shell": 509} | package core.ems.service.moodle
import org.springframework.context.ApplicationListener
import org.springframework.context.event.ContextRefreshedEvent
import org.springframework.stereotype.Service
@Service
class OnStartupMoodleActions(
val moodleStudentsSyncService: MoodleStudentsSyncService,
val moodleGradesS... | 1 | Kotlin | 2 | 5 | 0a0a25fcd908e29aef14b240a1e7b1af1632b16d | 692 | easy | MIT License |
plugin-enclave-gradle/src/main/kotlin/com/r3/conclave/plugin/enclave/gradle/RuntimeType.kt | R3Conclave | 526,690,075 | false | null | package com.r3.conclave.plugin.enclave.gradle
enum class RuntimeType {
GRAMINE,
GRAALVM;
}
| 0 | C++ | 8 | 41 | 9b49a00bb33a22f311698d7ed8609a189f38d6ae | 100 | conclave-core-sdk | Apache License 2.0 |
app/src/main/kotlin/net/primal/android/explore/domain/UserProfileSearchItem.kt | PrimalHQ | 639,579,258 | false | {"Kotlin": 2548226} | package net.primal.android.explore.domain
import net.primal.android.profile.db.ProfileData
data class UserProfileSearchItem(
val metadata: ProfileData,
val score: Float? = null,
val followersCount: Int? = null,
)
| 56 | Kotlin | 12 | 98 | 438072af7f67762c71c5dceffa0c83dedd8e2e85 | 227 | primal-android-app | MIT License |
android/app/src/main/java/io/sotads/core/room/ADSDao.kt | Bilghazy-LLC | 187,758,298 | false | {"CSS": 1250367, "HTML": 1201076, "C++": 249044, "JavaScript": 162716, "C": 58510, "Processing": 49204, "Kotlin": 36408, "Objective-C": 11794} | package io.sotads.core.room
import androidx.lifecycle.LiveData
import androidx.room.*
import io.sotads.data.EmtDataModel
@Dao
interface ADSDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun createEMT(emtDataModel: EmtDataModel)
@Query("SELECT * FROM emt WHERE `key` = :key")
fun getEMT(key: ... | 21 | CSS | 0 | 1 | 4670ceae6b7bef8a0449e53d072e1f797cb20b25 | 512 | accident-detection-system | MIT License |
mall-service/mall-product/src/main/kotlin/com/github/product/service/SpuInfoService.kt | andochiwa | 409,491,115 | false | {"Kotlin": 5143282, "Java": 228835, "TSQL": 18775, "Dockerfile": 134} | package com.github.product.service
import com.github.constant.AttrSearchEnum
import com.github.constant.SpuPublishStatusEnum
import com.github.product.dao.*
import com.github.product.entity.*
import com.github.product.feign.CouponFeign
import com.github.product.feign.SearchFeign
import com.github.product.feign.WareFei... | 0 | Kotlin | 1 | 2 | 5685d6749a924dddd79d7f06e222b425190c7168 | 10,869 | Webflux-Mall-Back | MIT License |
lpDevice/src/main/java/com/angcyo/laserpacker/device/MaterialHelper.kt | angcyo | 229,037,684 | false | null | package com.angcyo.laserpacker.device
import com.angcyo.bluetooth.fsc.laserpacker.HawkEngraveKeys
import com.angcyo.bluetooth.fsc.laserpacker.LaserPeckerHelper
import com.angcyo.bluetooth.fsc.laserpacker.LaserPeckerModel
import com.angcyo.bluetooth.fsc.laserpacker.data.LaserPeckerProductInfo
import com.angcyo.core.vmA... | 0 | Kotlin | 4 | 3 | 1266f4a106b39113d283007a897985c0cb211d0b | 6,612 | UICoreEx | MIT License |
app/src/main/java/com/gaurav/pokemon/data/model/ApiTokenInfo.kt | gau4sar | 400,800,306 | false | null | package com.gaurav.pokemon.data.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.io.Serializable
@Entity(tableName = "apiToken")
data class ApiTokenInfo(
@PrimaryKey
val token: String,
val expiresAt: Long
) : Serializable | 0 | Kotlin | 0 | 1 | a6beb5f981bf33972b4af80c30f92040756eb2f9 | 264 | Pokemon-android | Apache License 2.0 |
core/src/test/java/com/maximcode/core/parser/DefaultParserTest.kt | merklol | 356,317,365 | false | null | /*
* MIT License
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 0 | Kotlin | 0 | 2 | 015c4e1ea17687f7ffce0874d13e6e4157938f39 | 4,052 | MC-Calculator | MIT License |
app/src/main/java/com/silverpants/instantaneous/domain/CoroutineUseCase.kt | jeevansurendran | 329,681,176 | false | null | package com.silverpants.instantaneous.domain
import com.silverpants.instantaneous.misc.Result
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.withContext
import timber.log.Timber
/**
* Executes business logic synchronously or asynchronously using Coroutines.
*/
abstract class UseCase<in P, R... | 0 | Kotlin | 1 | 1 | 5c7665cb87e19a3c3c84ab046e58bbd33d21cf51 | 1,079 | instantaneous | MIT License |
wearable-kit/src/main/java/healthstack/wearable/kit/screen/EcgMainScreen.kt | S-HealthStack | 520,365,275 | false | {"Kotlin": 900773} | package healthstack.wearable.kit.screen
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
imp... | 5 | Kotlin | 19 | 25 | f4d790ab1b195dc7906a1eb373638536254e92e3 | 3,357 | app-sdk | Apache License 2.0 |
language-server/taxi-lang-service/src/main/java/lang/taxi/lsp/completion/PartialSyntaxCompletions.kt | taxilang | 601,101,781 | false | {"Kotlin": 1681931, "ANTLR": 66122, "TypeScript": 12542, "JavaScript": 4324, "Shell": 1468, "Java": 1454, "MDX": 425} | package lang.taxi.lsp.completion
import lang.taxi.TaxiParser
import org.antlr.v4.runtime.tree.ErrorNode
import org.antlr.v4.runtime.tree.ParseTree
fun isIncompleteFieldDefinition(tree:ParseTree?):Boolean {
return tree is ErrorNode &&
tree.text == ":" &&
tree.parent is TaxiParser.TypeBodyCo... | 8 | Kotlin | 5 | 75 | 9ec062c26b5d616b340104b5d5a7ae53142a12a0 | 327 | taxilang | Apache License 2.0 |
src/Day21.kt | asm0dey | 572,860,747 | false | {"Kotlin": 61384} | sealed interface Node21 {
fun calc(): Long
fun shouldEqual(other: Long): Long?
data class Cont(val int: Long) : Node21 {
override fun calc(): Long = int
override fun shouldEqual(other: Long) = null
}
data class Expression(val el1: Node21, val op: String, val el2: Node21) : Node21 {
... | 1 | Kotlin | 0 | 1 | f49aea1755c8b2d479d730d9653603421c355b60 | 4,095 | aoc-2022 | Apache License 2.0 |
common-module/src/main/kotlin/com/build/stats/model/converter/JsonAttributeConverter.kt | SHvatov | 571,232,915 | false | {"Kotlin": 118267, "HTML": 50649, "Dockerfile": 1800, "Shell": 372, "CSS": 186} | package com.build.stats.model.converter
import com.fasterxml.jackson.databind.ObjectMapper
import liquibase.pro.packaged.T
import java.lang.reflect.ParameterizedType
import javax.persistence.AttributeConverter
abstract class JsonAttributeConverter<T : Any> : AttributeConverter<T, String> {
private val objectMapp... | 0 | Kotlin | 0 | 0 | 49739408dbcabb0fc6e4b1d6bacbaa893b115068 | 782 | build-stats | Apache License 2.0 |
boot-config-cfg4k/src/main/kotlin/com/github/rocketraman/bootable/config/Configs.kt | rocketraman | 363,045,930 | false | null | package com.github.rocketraman.bootable.config
import com.jdiazcano.cfg4k.providers.ConfigProvider
import com.jdiazcano.cfg4k.providers.bind
import org.kodein.di.*
import org.kodein.di.bindings.NoArgBindingDI
import java.io.File
/**
* Convenience function for binding configuration interfaces in Kodein modules via cf... | 0 | Kotlin | 0 | 0 | dd74baf1899b12468265bf0c30b57b0d1f7b74c5 | 1,361 | bootable | Apache License 2.0 |
src/main/kotlin/pers/neige/neigeitems/hook/mythicmobs/impl/MythicMobsHookerImpl510.kt | Neige7 | 512,226,579 | false | null | package pers.neige.neigeitems.hook.mythicmobs.impl
import io.lumine.mythic.api.mobs.MobManager
import io.lumine.mythic.bukkit.MythicBukkit
import io.lumine.mythic.bukkit.events.MythicMobDeathEvent
import io.lumine.mythic.bukkit.events.MythicMobSpawnEvent
import io.lumine.mythic.bukkit.events.MythicReloadedEvent
import... | 0 | Kotlin | 2 | 17 | 72930909722ca08c4fa292e0216345f994c923d6 | 4,310 | NeigeItems-Kotlin | MIT License |
src/main/kotlin/dev/lupluv/simplegamemode/events/PlayerHandler.kt | LUPLUV | 544,405,622 | false | {"Kotlin": 14276} | package dev.lupluv.simplegamemode.events
import dev.lupluv.simplegamemode.utils.UpdateChecker.sendUpdateMessage
import org.bukkit.event.EventHandler
import org.bukkit.event.Listener
import org.bukkit.event.player.PlayerJoinEvent
class PlayerHandler : Listener {
@EventHandler
fun onPlayerJoin(event: PlayerJoin... | 0 | Kotlin | 0 | 0 | 5c817c5b6360a1f7beebce8ab6bef747cabc81b8 | 427 | SimpleGamemode | Apache License 2.0 |
app/src/main/java/pl/pzienowicz/autoscrollviewpager/demo/ImagesAdapter.kt | pzienowicz | 211,357,593 | false | null | package pl.pzienowicz.autoscrollviewpager.demo
import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.viewpager.widget.PagerAdapter
import com.squareup.picasso.Picasso
class ImagesAdapter(
private val context: Context,
private var ... | 0 | Kotlin | 12 | 87 | e5986de5c499e6d2caf09bec8ba86697010565ee | 973 | androidx-auto-scroll-view-pager | Apache License 2.0 |
app/src/main/java/org/listenbrainz/android/service/BlogService.kt | metabrainz | 550,726,972 | false | {"Kotlin": 1481175, "Ruby": 423} | package org.listenbrainz.android.service
import org.listenbrainz.android.model.Blog
import retrofit2.http.GET
interface BlogService {
@GET("blog.metabrainz.org/posts/")
suspend fun getBlogs(): Blog
} | 25 | Kotlin | 31 | 99 | 573ab0ec6c5b87ea963f013174159ddfcd123976 | 209 | listenbrainz-android | Apache License 2.0 |
lib_common/src/main/java/com/capgemini/lib_common/base/BaseApplication.kt | anricheng | 317,877,543 | false | {"Kotlin": 105163, "Java": 13035} | package com.capgemini.lib_common.base
import android.app.Application
import android.content.ContextWrapper
import com.luliang.shapeutils.DevShapeUtils
private lateinit var INSTANCE:Application
open class BaseApplication : Application() {
override fun onCreate() {
super.onCreate()
INSTANCE = this... | 0 | Kotlin | 0 | 1 | d615168ecf7c15000a9df08a87588d5a8b38fd82 | 420 | SmartApp | Apache License 2.0 |
game/engine/src/main/kotlin/de/gleex/pltcmd/game/engine/attributes/flags/Halted.kt | Baret | 227,677,538 | false | {"Kotlin": 771077} | package de.gleex.pltcmd.game.engine.attributes.flags
import de.gleex.pltcmd.game.engine.attributes.movement.MovementModifier
/**
* Flag that states that the entity has stopped moving.
*/
object Halted: MovementModifier.Prevention() | 47 | Kotlin | 0 | 4 | d14f504f8e350f7bb54fe9ac819f54da7e1b8cff | 235 | pltcmd | MIT License |
app/src/main/java/com/example/swipe/Fragment0.kt | zys0909 | 356,170,061 | false | null | package com.example.swipe
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.zys.swipe.ItemSwipeHelper
/**
* 描述:
*
* author zys
* create by 2021/4/9
*/
class Fragment0 : BaseSampleFragment() {
private val recyclerView by lazy { requireView().findViewById<RecyclerView>(R.id.r... | 0 | Kotlin | 0 | 1 | 71005c6a4442563ce023e8acad66bc768a3a2d72 | 948 | ItemSwipeHelper | Apache License 2.0 |
android/src/main/kotlin/dev/joaop/plugpag_flutter/PlugpagFlutterPlugin.kt | joaopinacio | 667,671,718 | false | null | package dev.joaop.plugpag_flutter
import android.Manifest
import android.app.Activity
import android.content.pm.PackageManager
import android.text.TextUtils
import android.util.Log
import androidx.annotation.NonNull
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import br.com.uol.pa... | 0 | Kotlin | 0 | 1 | 756d0feda17b3a98278766bba48a9c9f5f15c586 | 17,340 | plugpag_flutter | MIT License |
app/src/test/java/fr/poveda/chatbot/data/MockedNetworkServerUnitTest.kt | PaulPoveda | 732,452,446 | false | {"Kotlin": 36096} | package fr.poveda.chatbot.data
import fr.poveda.chatbot.data.model.Author
import fr.poveda.chatbot.data.model.Message
import fr.poveda.chatbot.data.source.network.MockedNetworkServer
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.launch
import kotlin... | 1 | Kotlin | 0 | 0 | ee187bab63edb36c6897eaece05570ec63b3098c | 2,131 | Chatbot | MIT License |
macao-sdk-di-koin/src/commonMain/kotlin/com/macaosoftware/app/KoinDiContainer.kt | pablichjenkov | 135,388,611 | false | null | package com.macaosoftware.app
import org.koin.core.Koin
import org.koin.core.KoinApplication
import org.koin.core.component.KoinComponent
class DiContainerKoin(
private val koinApplication: KoinApplication
) : KoinComponent {
override fun getKoin(): Koin = koinApplication.koin
}
| 0 | null | 5 | 95 | 198b61ee7bb8b777868b64066f9004e070e63856 | 291 | macao-sdk | The Unlicense |
presentation/src/main/java/pl/org/seva/victorweather/presentation/CityDetailsPresentation.kt | syrop | 855,980,365 | false | {"Kotlin": 57213} | package pl.org.seva.victorweather.presentation
import kotlinx.coroutines.CoroutineScope
import pl.org.seva.victorweather.domain.model.CityDomainModel
import pl.org.seva.victorweather.domain.model.WeatherDomainModel
import pl.org.seva.victorweather.domain.usecase.FetchWeatherUseCase
import pl.org.seva.victorweather.dom... | 0 | Kotlin | 0 | 0 | 84cecd783e1d12e03b1b41202dfcf89d485a71c0 | 1,879 | Victor-Weather | MIT License |
c2-ssm/ssm-sdk/ssm-sdk-core/src/main/kotlin/ssm/sdk/core/ktor/KtorRepository.kt | komune-io | 746,795,057 | false | {"Kotlin": 390934, "MDX": 96903, "Java": 38712, "Gherkin": 18221, "Makefile": 16642, "Dockerfile": 8936, "Go": 5435, "Shell": 1993, "JavaScript": 1453, "CSS": 102} | package ssm.sdk.core.ktor
import io.ktor.client.HttpClient
import io.ktor.client.engine.cio.CIO
import io.ktor.client.plugins.contentnegotiation.ContentNegotiation
import io.ktor.client.plugins.logging.Logging
import io.ktor.client.request.HttpRequestBuilder
import io.ktor.client.request.get
import io.ktor.client.requ... | 1 | Kotlin | 0 | 0 | 7a85540d6bbcebf9d0a6e3d68300ed789a17a6af | 3,901 | fixers-c2 | Apache License 2.0 |
app/src/androidTest/java/com/ignitetech/compose/ui/groups/GroupScreenTest.kt | gnumilanix | 602,430,902 | false | null | package com.ignitetech.compose.ui.groups
import androidx.activity.compose.setContent
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.compose.ui.semantics.SemanticsProperties
import androidx.compose.ui.test.*
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import andro... | 3 | Kotlin | 1 | 0 | 7a7fc31e7013e91ae78947af6bca1d97fb1140ed | 3,755 | explore-compose | Apache License 2.0 |
cardmanagement/src/main/java/com/checkout/cardmanagement/model/CardExpiryDate.kt | checkout | 656,781,271 | false | {"Kotlin": 91855} | package com.checkout.cardmanagement.model
/** Expiry date of a [Card] */
public data class CardExpiryDate(
/** Expiry month for the card */
val month: String,
/** Expiry year for the card */
val year: String,
)
| 2 | Kotlin | 1 | 3 | 5076c21367c1cb38c4c51e0afaa1e5eeb4174398 | 228 | CheckoutCardManagement-Android | MIT License |
shared/src/commonMain/kotlin/io/github/alaksion/unsplashwrapper/sdk/UnsplashSdkConfig.kt | Alaksion | 738,783,181 | false | {"Kotlin": 32267, "Ruby": 2156} | package io.github.alaksion.unsplashwrapper.sdk
internal object UnsplashSdkConfig {
private const val baseUrl = "https://api.unsplash.com"
fun buildUrl(url: String) = "$baseUrl/$url"
const val version = "v1"
}
| 0 | Kotlin | 0 | 0 | c5a30d157c934d2e230ea4220f3dabeb6845c147 | 226 | UnsplashWrapper | MIT License |
shared/src/commonMain/kotlin/com/vkhooda24/viewmodel/CountryDetailsViewModel.kt | vkhooda24 | 220,740,214 | false | null | package com.vkhooda24.viewmodel
import com.vkhooda24.knowyourcountry.model.Country
/**
* Created by <NAME> on 2020-03-05.
*/
interface CountryDetailsViewModel {
suspend fun getCountryDetail(countryName: String): Country
} | 0 | Kotlin | 0 | 0 | 1ee416b5bddb21b3f2f6e870524b1ef5e1704812 | 229 | KnowMyCountry-Kotlin-Multiplatform | Apache License 2.0 |
net.akehurst.games.pong/information/src/commonMain/kotlin/information.kt | dhakehurst | 297,353,435 | false | null | /**
* Copyright (C) 2016 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... | 0 | Kotlin | 0 | 0 | 5d62ff6d7118fd21315966f284920e72ff7a1ecc | 898 | games.pong | Apache License 2.0 |
android/src/main/java/deckyfx/reactnative/printer/escposprinter/exceptions/EscPosParserException.kt | deckyfx | 663,502,538 | false | {"Kotlin": 283454, "TypeScript": 61671, "Java": 7149, "C": 5445, "Ruby": 3954, "JavaScript": 3698, "Objective-C": 2368, "Objective-C++": 1066, "Makefile": 817, "CMake": 317, "Swift": 282, "Shell": 89} | package deckyfx.reactnative.printer.escposprinter.exceptions
class EscPosParserException(errorMessage: String?) : Exception(errorMessage)
| 0 | Kotlin | 0 | 0 | 4edce0748f1a2e647eca5648c533b8b6a588ba77 | 139 | react-native-printer | MIT License |
jacodb-analysis/src/main/kotlin/org/jacodb/analysis/engine/IFDSEdge.kt | UnitTestBot | 491,176,077 | false | null | /*
* Copyright 2022 UnitTestBot contributors (utbot.org)
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless r... | 14 | Kotlin | 4 | 12 | 31828db8f07e5126cc786c7483cb8f802761cd73 | 958 | jacodb | Apache License 2.0 |
plugin-alphavantage/source/lu/kremi151/chatster/plugin/alphavantage/CommandProviderStock.kt | kremi151 | 236,297,740 | false | null | /**
* Copyright 2020 <NAME> (kremi151)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 0 | Kotlin | 0 | 0 | a47072167a7b3992a7747f5328c18826ff3e5baa | 6,537 | Chatster-Plugins | Apache License 2.0 |
app/src/main/java/uk/co/sentinelweb/cuer/app/db/init/JsonDatabaseInitializer.kt | sentinelweb | 220,796,368 | false | null | package uk.co.sentinelweb.cuer.app.db.init
import kotlinx.coroutines.launch
import uk.co.sentinelweb.cuer.app.backup.BackupFileManager
import uk.co.sentinelweb.cuer.app.orchestrator.OrchestratorContract.Source.LOCAL
import uk.co.sentinelweb.cuer.app.util.prefs.GeneralPreferences.*
import uk.co.sentinelweb.cuer.app.uti... | 57 | Kotlin | 0 | 0 | a30d014c7048c3f0a6866da78d3dfbf3cd4b733d | 1,724 | cuer | Apache License 2.0 |
trustagent/src/com/google/android/libraries/car/trustagent/OobConnectionManager.kt | cailidz | 421,459,703 | true | {"Kotlin": 828227, "Java": 243443} | // Copyright 2021 Google 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 agreed to in ... | 0 | null | 0 | 0 | 62c0952c3d8f105419e0a2c4f74d44ee8c21f6ee | 3,376 | android-auto-companion-android | Apache License 2.0 |
charset/src/com/fleeksoft/charset/io/ByteBuffer.kt | fleeksoft | 874,918,183 | false | {"Kotlin": 8845941} | package com.fleeksoft.charset.io
import com.fleeksoft.charset.internal.assert
class ByteBuffer(byteArray: ByteArray, position: Int, offset: Int, limit: Int, mark: Int = -1, readOnly: Boolean = false) :
Buffer<ByteArray>(
bufferArray = byteArray,
bufferPosition = position,
bufferOffset = of... | 1 | Kotlin | 0 | 2 | a16af685a558ad177749c12d7840a7b67aece66c | 4,737 | charset | MIT License |
app/src/main/java/com/trackme/android/ui/v2/tracklist/TrackListItemCard.kt | johangus | 303,649,111 | false | null | package com.trackme.android.ui.v2.tracklist
import SwipeToRevealStage
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeOut
import androidx.compose.animation.shrinkVertically
import androidx.compose.animation.slideOutHorizontally
imp... | 0 | Kotlin | 0 | 0 | 45f7cb8262148f3d25d59931d68142797fa0db56 | 4,777 | trackme | MIT License |
MythicDoors/app/src/main/java/org/helios/mythicdoors/utils/screenshot/ScreenshotClientImp.kt | Dazdwc | 697,206,895 | false | {"Kotlin": 348153} | package org.helios.mythicdoors.utils.screenshot
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.net.Uri
import android.os.Environment
import androidx.core.content.FileProvider
import kotlinx.coroutines.Dispatchers
import kotlinx.cor... | 0 | Kotlin | 0 | 1 | 498a86609267122e9e20c95c49d803beecf2815b | 2,636 | AppNativas | Creative Commons Zero v1.0 Universal |
pumps/common/src/main/kotlin/fund/cyber/pump/common/node/BlockchainInterface.kt | GoodforGod | 129,151,733 | true | {"Kotlin": 332422, "Shell": 139} | package fund.cyber.pump.common.node
const val UNKNOWN_PARENT_HASH = "UNKNOWN_PARENT_HASH"
interface BlockBundle {
val hash: String
val parentHash: String
val number: Long
val blockSize: Int
}
interface BlockchainInterface<out T : BlockBundle> {
fun lastNetworkBlock(): Long
fun blockBundleByN... | 0 | Kotlin | 0 | 1 | dcf7f09463cd76674326caf87509e048882b4176 | 345 | cyber-search | MIT License |
src/main/kotlin/cu/suitetecsa/sdk/nauta/core/extensions/toDateTimeString.kt | suitetecsa | 489,622,656 | false | {"Kotlin": 116270, "HTML": 37720} | package cu.suitetecsa.sdk.nauta.core.extensions
import java.text.SimpleDateFormat
import java.util.*
fun Date.toDateTimeString(): String = SimpleDateFormat("dd/MM/yyyy HH:mm:ss", Locale.getDefault()).format(this) | 2 | Kotlin | 1 | 6 | 772cf49fd586419c065896896e148ea4498a4e39 | 214 | suitetecsa-sdk-kotlin | MIT License |
app/src/main/java/vinova/henry/com/hotfilm/feature/detail/DetailViewModel.kt | henryduong26 | 120,248,676 | false | {"Kotlin": 175185, "Java": 1151} | package vinova.henry.com.hotfilm.feature.detail
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.Transformations
import android.arch.lifecycle.ViewModel
import vinova.henry.com.hotfilm.models.detail.MovieDetail
import vinova.henry.com.hotfilm.models.tra... | 0 | Kotlin | 0 | 0 | 97db98daa63c275b69cbb4b8e9887af6f9d16ada | 982 | HotFilm | Apache License 2.0 |
app/src/main/java/br/com/movieapp/movie_detail_feature/presentation/components/MovieDetailSimiliarMovies.kt | LeoDiasDev | 874,309,011 | false | {"Kotlin": 181905} | package br.com.movieapp.movie_detail_feature.presentation.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.GridItemSpan
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compo... | 0 | Kotlin | 0 | 0 | a7492d47da1f12144015c8ffcbfb91fc5c4331a1 | 3,035 | movie-app | MIT License |
app/src/main/java/com/tmvlg/smsreceiver/presentation/rent/newnumber/pager/selectcountry/search/SearchCountryViewModel.kt | aifsbei | 376,591,680 | false | null | package com.tmvlg.smsreceiver.presentation.rent.newnumber.pager.selectcountry.search
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.tmvlg.smsreceiver.domain.numberforrent.searchnumber.LoadCountryListUseCase
import com.tmvlg.smsreceiver.domain.numberforrent.NumberForRentReposito... | 0 | Kotlin | 1 | 2 | ce9a182c23ab33494201dd096966a6690fda8b40 | 1,288 | SMS-Receiver | MIT License |
draftsman/src/main/kotlin/com/gojek/draftsman/internal/Config.kt | gojek | 457,289,341 | false | {"Kotlin": 81164} | package com.gojek.draftsman.internal
import android.graphics.Color
internal object Config {
var usePx = true
var paddingEnabled = true
var marginEnabled = true
var gridEnabled = false
val boundLineColor = Color.parseColor("#311B92")
val selectedBoundColor = Color.parseColor("#2962FF")
... | 2 | Kotlin | 18 | 254 | b0909fb15abad702dd8b8a985f7c60e2f92bdbf0 | 606 | draftsman | Apache License 2.0 |
app/src/main/java/com/buuzz/donorconnect/ui/custom/DocumentDisplayView.kt | PhoenixIgris | 733,855,401 | false | {"Kotlin": 107213} | package com.buuzz.donorconnect.ui.custom
import android.content.Context
import android.content.res.TypedArray
import android.net.Uri
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.widget.RelativeLayout
import com.bumptech.glide.Glide
import com.buuzz.donorco... | 0 | Kotlin | 0 | 1 | 27d860ddf6074e2c470dee29d3987c0d2d06c7fc | 1,795 | DonorConnectAndroid | MIT License |
src/me/anno/gpu/shader/builder/ShaderBuilder.kt | AntonioNoack | 456,513,348 | false | {"Kotlin": 10912545, "C": 236426, "Java": 6754, "Lua": 4496, "C++": 3070, "GLSL": 2698} | package me.anno.gpu.shader.builder
import me.anno.gpu.DitherMode
import me.anno.gpu.GFXState
import me.anno.gpu.deferred.DeferredSettings
import me.anno.gpu.shader.BaseShader
import me.anno.gpu.shader.GLSLType
import me.anno.gpu.shader.GPUShader
import me.anno.gpu.shader.Shader
import me.anno.utils.structures.arrays.B... | 0 | Kotlin | 3 | 24 | 013af4d92e0f89a83958008fbe1d1fdd9a10e992 | 8,024 | RemsEngine | Apache License 2.0 |
app/src/main/java/com/iamageo/plantae/ui/screens/home/PlantaeHomeScreen.kt | iamageo | 551,746,207 | false | {"Kotlin": 43916} | package com.iamageo.plantae.ui.screens.home
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import a... | 0 | Kotlin | 0 | 2 | fecdf04d5acc56ba83b197c02c0548698e5e4ae4 | 3,931 | Plantae | Apache License 2.0 |
presentation/src/main/java/com/jslee/presentation/feature/boxoffice/BoxOfficeViewModel.kt | JaesungLeee | 675,525,103 | false | {"Kotlin": 298357} | package com.jslee.presentation.feature.boxoffice
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.jslee.core.logger.Logger
import com.jslee.core.ui.extension.toShortenPreviousDate
import com.jslee.domain.usecase.GetDailyBoxOfficeUseCase
import dagger.hilt.android.lifecycle.HiltVi... | 10 | Kotlin | 0 | 4 | e2ccbf7e088f0b6c082ea08ae9e8a288bd98fd76 | 1,830 | MooBeside | MIT License |
app/src/main/java/com/eyther/lumbridge/ui/common/model/text/TextResource.kt | ruialmeida51 | 249,223,684 | false | {"Kotlin": 698923} | package com.eyther.lumbridge.ui.common.model.text
import android.content.Context
import androidx.annotation.StringRes
sealed interface TextResource {
fun getString(context: Context): String
data class Text(val value: String) : TextResource {
override fun getString(context: Context): String = value
... | 6 | Kotlin | 0 | 7 | f2d2fe4383e446b94c06e156aae1b9a83dab3409 | 485 | lumbridge-android | MIT License |
android/src/main/kotlin/com/nikolai/imagedraw/draw_on_image_plugin/codec/DrawOnImageReader.kt | Nikolaiko | 376,017,084 | false | {"Dart": 15096, "Swift": 10348, "Kotlin": 10341, "Ruby": 2024, "Objective-C": 749} | package com.nikolai.imagedraw.draw_on_image_plugin.codec
import com.nikolai.imagedraw.draw_on_image_plugin.model.DrawOnImageData
import com.nikolai.imagedraw.draw_on_image_plugin.utils.DRAW_ON_IMAGE_DATA_TYPE
import io.flutter.plugin.common.StandardMessageCodec
import java.nio.ByteBuffer
class DrawOnImageReader : Sta... | 0 | Dart | 1 | 1 | 2956cfa7286b749e2f98528662ba4af37fc7b8ae | 1,372 | DrawOnImagePlugin | Do What The F*ck You Want To Public License |
Sensor Application/version 2.0/app/src/main/java/com/example/application/SensorDB.kt | AkeelMedina22 | 551,342,161 | false | null | package com.example.application
import android.hardware.Sensor
import androidx.lifecycle.LiveData
import androidx.room.*
@Entity(tableName = "sensor_db")
data class SensorDB(
@PrimaryKey(autoGenerate = true) val id : Int,
@ColumnInfo(name = "AndroidID") val a_id: String?,
@ColumnInfo(name = "SessionID") v... | 0 | Kotlin | 1 | 0 | 11e185c17ff697ae70aacc43bde81883861610cd | 1,419 | Raasta | MIT License |
android-app/app/src/main/java/app/tivi/appinitializers/LoggerInitializer.kt | ra0926 | 646,050,051 | false | null | /*
* Copyright 2018 Google 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 agreed to i... | 0 | Kotlin | 0 | 4 | e780a4c48545d5198290e4f79e5b0fda28f30d40 | 1,076 | CelebrationMessage | Apache License 2.0 |
app/src/main/java/com/drs/dseller/feature_home/presentation/screens/components/OfferImage.kt | raaja-sn | 704,140,729 | false | {"Kotlin": 307720} | package com.drs.dseller.feature_home.presentation.screens.components
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.... | 0 | Kotlin | 0 | 0 | 2cab9113d3e0e92b0a3c97459b1b3fd4a6e84278 | 1,041 | DSeller-Android | MIT License |
src/test/kotlin/net/jp/vss/visitscheduler/controller/schools/GetSchoolApiControllerTest.kt | nemuzuka | 231,857,499 | false | null | package net.jp.vss.visitscheduler.controller.schools
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockitokotlin2.verify
import com.nhaarman.mockitokotlin2.whenever
import net.jp.vss.visitscheduler.domain.exceptions.NotFoundException
import net.jp.vss.visitscheduler.domain.schools.SchoolFixtures
import ne... | 18 | Kotlin | 0 | 0 | fdd558e5b8bd426057977d8b25cafa28feaaeb30 | 5,779 | visit-scheduler | Apache License 2.0 |
src/main/kotlin/com/github/starmel/swiftfillclass/listeners/MyProjectManagerListener.kt | Starmel | 517,800,825 | false | null | package com.github.starmel.swiftfillclass.listeners
import com.intellij.openapi.components.service
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.ProjectManagerListener
import com.github.starmel.swiftfillclass.services.MyProjectService
internal class MyProjectManagerListener : Project... | 0 | Kotlin | 0 | 0 | cbda93e87a7d51d7cfca7fc0a394c6b89f81c248 | 442 | swift-fill-class | Apache License 2.0 |
image-loader/src/commonTest/kotlin/com/seiko/imageloader/component/mapper/BaseMapperTest.kt | qdsfdhvh | 502,954,331 | false | {"Kotlin": 771871, "Swift": 718, "HTML": 364, "CSS": 108, "Ruby": 107} | package com.seiko.imageloader.component.mapper
import com.seiko.imageloader.option.Options
import kotlin.test.BeforeTest
abstract class BaseMapperTest<M : Mapper<*>> {
abstract fun createMapper(): M
private lateinit var mapper: M
@BeforeTest
fun onBefore() {
mapper = createMapper()
}
... | 18 | Kotlin | 12 | 322 | ad47750481642bf5dd0e49a97f0a51c1864b490f | 402 | compose-imageloader | MIT License |
app/src/main/java/com/yoesuv/infomadiun/utils/LocationHelper.kt | yoesuv | 133,134,980 | false | null | package com.yoesuv.infomadiun.utils
import android.Manifest
import android.content.Context
import android.os.Handler
import android.os.SystemClock
import com.google.android.gms.maps.CameraUpdateFactory
import com.google.android.gms.maps.GoogleMap
import com.google.android.gms.maps.model.BitmapDescriptorFactory
import ... | 0 | Kotlin | 3 | 2 | 80dbaf153a0caef9a0ea0d21e95e511dcbe7f06a | 2,803 | ExploreMadiun | Apache License 2.0 |
app/src/main/java/com/example/wavemap/ui/settings/edittexts/EditUnsignedIntPreference.kt | NotXia | 624,959,760 | false | {"Kotlin": 137505, "TeX": 32273} | package com.example.wavemap.ui.settings.edittexts
import android.content.Context
import android.text.InputType
import android.util.AttributeSet
import androidx.preference.EditTextPreference
class EditUnsignedIntPreference : EditTextPreference {
constructor(context: Context) : super(context)
constructor(contex... | 0 | Kotlin | 0 | 0 | 132fe1d0ff9a427e930ebf1ef1b5445f551d5359 | 868 | wave-map | MIT License |
src/main/kotlin/com/cosmotech/api/events/PersistentMetricEvent.kt | Cosmo-Tech | 494,351,686 | false | {"Kotlin": 182704} | // Copyright (c) <NAME>.
// Licensed under the MIT license.
package com.cosmotech.api.events
import com.cosmotech.api.metrics.PersistentMetric
class PersistentMetricEvent(
publisher: Any,
val metric: PersistentMetric,
) : CsmEvent(publisher)
| 13 | Kotlin | 0 | 2 | d35ed4c52eada05bb546769630890afda64d0e05 | 252 | cosmotech-api-common | MIT License |
app/src/main/java/com/elifbon/composeiwd/data/SpeakerData.kt | ElifBon | 245,618,787 | false | null | package com.elifbon.composeiwd.data
import android.content.res.Resources
import androidx.ui.graphics.imageFromResource
import com.elifbon.composeiwd.R
import com.elifbon.composeiwd.model.SpeakerInfo
var speakerInfoList = listOf(
SpeakerInfo(
0,
"<NAME>",
"GDE Istanbul",
"Build UI ... | 0 | Kotlin | 1 | 0 | 51934d737c8564d68e47c96274f9ccaf91a24ca0 | 1,119 | ComposeIWD | Apache License 2.0 |
packages/SystemUI/src/com/android/systemui/user/UserSwitcherRootView.kt | liu-wanshun | 595,904,109 | true | null | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Java | 1 | 2 | e99201cd9b6a123b16c30cce427a2dc31bb2f501 | 1,302 | platform_frameworks_base | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/Process.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 6,051 | icons | MIT License |
android/common/extfun/src/main/java/app/ytak/superheroes/common/extfun/Animators.kt | yt-tkhs | 247,718,785 | false | null | package app.ytak.superheroes.common.extfun
import android.animation.*
import android.view.View
import androidx.core.view.isGone
import androidx.core.view.isInvisible
import androidx.core.view.isVisible
import androidx.interpolator.view.animation.FastOutSlowInInterpolator
import app.ytak.superheroes.core.AppDuration
f... | 0 | Kotlin | 0 | 4 | 1920cc88ee2e82ba1ef4a17eb06fb6c37fe09f86 | 3,389 | superheroes | Apache License 2.0 |
Android/ProjectColor/app/src/main/java/com/example/projectcolor/components/Checksum.kt | doublelv | 837,942,636 | false | {"Kotlin": 102560, "C++": 47639, "C": 14547, "Python": 4817} | package com.example.projectcolor.components
/**
* onesComplement is a function that computes the one's complement of a given binary string. The one's complement is obtained by inverting each bit in the string.
*
* **Parameters:**
*
* - `data`: A `String` representing the binary data for which the one's complement... | 0 | Kotlin | 0 | 0 | 5209985af5599a33c7dcd5fdbf30b026614408ba | 7,187 | Diplomna | MIT License |
src/main/java/partialview/PVHelpers.kt | Costa-Silva | 115,575,392 | false | {"Kotlin": 72009} | package partialview
import akka.actor.ActorRef
class PVHelpers {
companion object {
// HyParView config
const val ACTIVE_VIEW_MAX_SIZE = 2
const val PASSIVE_VIEW_MAX_SIZE = 7
// Join Protocol
const val ARWL = 3
const val PRWL = 1
// Shuffle protocol
... | 0 | Kotlin | 0 | 3 | cf8b1cc1e0aa5e4a9f485ea24af28d789ab689a7 | 846 | hyparview | Apache License 2.0 |
feature-governance-impl/src/main/java/io/novafoundation/nova/feature_governance_impl/presentation/tindergov/cards/model/ReferendaWithBasket.kt | novasamatech | 415,834,480 | false | {"Kotlin": 11112596, "Rust": 25308, "Java": 17664, "JavaScript": 425} | package io.novafoundation.nova.feature_governance_impl.presentation.tindergov.cards.model
import io.novafoundation.nova.feature_governance_api.data.model.TinderGovBasketItem
import io.novafoundation.nova.feature_governance_api.data.network.blockhain.model.ReferendumId
data class ReferendaWithBasket(
val referenda... | 14 | Kotlin | 30 | 50 | 166755d1c3388a7afd9b592402489ea5ca26fdb8 | 402 | nova-wallet-android | Apache License 2.0 |
livedatax/src/main/java/com/cexdirect/livedatax/ThrottlingLiveData.kt | decent-finance | 218,900,090 | false | null | /*
* Copyright 2019 CEX.IO Ltd (UK)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 0 | Kotlin | 0 | 0 | 79c6c10dc56720fd80e89e208eff218223ef8778 | 1,947 | livedatax | Apache License 2.0 |
app/src/test/java/com/brandoncano/resistancecalculator/util/ColorFinderTest.kt | bmcano | 501,427,754 | false | {"Kotlin": 93976} | package com.brandoncano.resistancecalculator.util
import com.brandoncano.resistancecalculator.R
import com.brandoncano.resistancecalculator.constants.Colors as C
import com.brandoncano.resistancecalculator.constants.Symbols as S
import org.junit.Assert.assertEquals
import org.junit.Test
class ColorFinderTest {
@... | 3 | Kotlin | 0 | 1 | 5b803381925bfbc66e35bdebb8d62a441ce3a01b | 8,596 | ResistanceCalculatorApp | MIT License |
kotlinx-serialization-kafka/src/commonMain/kotlin/io/github/vooft/kafka/serialization/encoder/KafkaStringEncoder.kt | vooft | 802,782,830 | false | {"Kotlin": 93454} | package io.github.vooft.kafka.serialization.encoder
import io.github.vooft.kafka.serialization.common.IntEncoding
import io.github.vooft.kafka.serialization.common.customtypes.VarInt
import io.github.vooft.kafka.serialization.common.encodeVarInt
import kotlinx.io.Sink
import kotlinx.io.writeString
import kotlinx.seria... | 0 | Kotlin | 0 | 0 | d418b6c4be961efeba0c87355b88aab8719df0d6 | 1,740 | kotlin-kafka-client | Apache License 2.0 |
modelql-core/src/commonMain/kotlin/org/modelix/modelql/core/MappingStep.kt | modelix | 533,211,353 | false | null | /*
* 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
* distributed u... | 44 | Kotlin | 4 | 4 | 7e9aa345587041ea7d94b399489fa088d0bc1114 | 3,657 | modelix.core | Apache License 2.0 |
order/src/main/kotlin/zoret4/allaboutmoney/order/model/service/contracts/vendor/VendorOrderService.kt | fzoro | 161,671,479 | false | null | package zoret4.allaboutmoney.order.model.service.contracts.vendor
import zoret4.allaboutmoney.order.model.domain.Order
import zoret4.allaboutmoney.order.model.domain.OrderStatus
interface VendorOrderService {
/**
* @return order json
*/
fun checkoutByVendor(vendorCustomerId: String, order: Order): ... | 0 | Kotlin | 0 | 0 | ed6133ca5f7644614f8ccd3f4acb474443b8688c | 529 | allaboutmoney | MIT License |
app/src/main/java/com/github/tommykw/musical/data/local/MusicalDatabase.kt | tommykw | 43,686,150 | false | {"Kotlin": 31858, "Shell": 46} | package com.github.tommykw.musical.data.local
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.github.tommykw.musical.data.entity.Musical
@Database(entities = [Musical::class], version = 1, exportSchema = false)
abstract class MusicalD... | 0 | Kotlin | 1 | 5 | 49343555ff772d276690d980b845fc2ce7e33b2c | 907 | Musical | MIT License |
src/commonMain/kotlin/org/daiv/tick/FileRefable.kt | henry1986 | 625,890,395 | false | null | package org.daiv.tick
interface FileRefable {
val file: FileRef
}
data class FileDataInfo<out T>(
override val start: Long,
override val end: Long,
override val isCurrent: Boolean,
val folderFile: T
) : CurrentDataCollection
fun <T : FileRefable> FileDataInfo<T>.toWithRef() = FileDataInfoWithRef(... | 0 | Kotlin | 0 | 0 | 2d78ac69fe3ddc6cc4774d05baca2136cffe2940 | 658 | timebased-datacompress | Apache License 2.0 |
sample/src/main/kotlin/com/bnorm/react/components/TodoDate.kt | bnorm | 280,722,784 | false | null | package com.bnorm.react.components
import com.bnorm.react.*
import com.bnorm.react.hooks.useDateCheck
import com.bnorm.react.hooks.useReminderNotification
import com.bnorm.react.styles.div
import react.RBuilder
import com.bnorm.react.components.TodoDateStyles as styles
private val WEEKDAYS = listOf("Sunday", "Monday"... | 4 | Kotlin | 4 | 45 | e3f39b5dc97211fcb0e7fcd3f52b278c6229fb0e | 1,007 | kotlin-react-function | Apache License 2.0 |
app/src/main/java/com/alecfut07/gamezone/di/LoginModule.kt | Alecfut07 | 661,093,415 | false | null | package com.alecfut07.gamezone.di
import com.alecfut07.gamezone.LoginRepository
import com.alecfut07.gamezone.LoginService
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ViewModelComponent
@Module
@InstallIn(ViewModelComponent::class)
object LoginModule ... | 0 | Kotlin | 0 | 0 | a3a6804ebfd080ca6d511ec71c7701fbc4d5a210 | 464 | gamezone-android | MIT License |
src/main/kotlin/com/falconer/utils/data/FileReadWriter.kt | Kyle-Falconer | 374,835,129 | false | null | package com.falconer.utils.data
import com.falconer.utils.Settings
import com.falconer.utils.task.Runner
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import java.io.File
import java.io.IOException
object FileReadWriter {
fun saveRunnersToFile(... | 0 | Kotlin | 0 | 0 | 7fd3a01a5fb3ceae5b8ad87c8f82789e58e626d3 | 1,888 | Forrest | Apache License 2.0 |
mediator/src/test/kotlin/no/nav/dagpenger/soknad/mal/SøknadMalRepositoryTest.kt | navikt | 307,991,328 | false | {"Kotlin": 598255, "HTML": 675, "Dockerfile": 204} | package no.nav.dagpenger.soknad.mal
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import kotliquery.queryOf
import kotliquery.sessionOf
import kotliquery.using
import no.nav.dagpenger.soknad.Prosessnavn
import no.nav.dagpenger.soknad.Prosessversjon
import no.nav.dagpenger.soknad.db.Postgres.withMigrat... | 2 | Kotlin | 0 | 0 | f090d8655a07f6a92f45907c2d1a019d1558ab00 | 4,589 | dp-soknad | MIT License |
common-client-jvm/src/main/kotlin/org/kotlinacademy/respositories/RepositoriesProvider.kt | tomjal | 127,006,429 | true | {"CSS": 390724, "Kotlin": 182193, "JavaScript": 2417, "HTML": 1708, "Shell": 170} | package org.kotlinacademy.respositories
actual object RepositoriesProvider {
actual fun getNewsRepository(): NewsRepository = NewsRepositoryImpl()
actual fun getFeedbackRepository(): FeedbackRepository = FeedbackRepositoryImpl()
actual fun getNotificationRepository(): NotificationRepository = NotificationR... | 0 | CSS | 0 | 0 | e256c79aa2afed75f86a3378c6ce226f7e6a12a7 | 495 | KotlinAcademyApp | Apache License 2.0 |
app/src/main/java/dev/berwyn/jellybox/ui/util/LifecycleListener.kt | berwyn | 586,199,884 | false | {"Kotlin": 84856} | package dev.berwyn.jellybox.ui.util
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.ui.platform.LocalLifecycleOwner
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleEventObserver
import androidx.lifecycle.LifecycleOwner
@Composa... | 0 | Kotlin | 0 | 0 | 9761091e1468cb98e4df5da70f1a735b00043ca0 | 863 | jellybox | Apache License 2.0 |
app/src/main/java/com/sunnyweather/study/android/logic/network/PlaceService.kt | jhchenchong | 254,855,817 | false | null | package com.sunnyweather.study.android.logic.network
import com.sunnyweather.study.android.SunnyWeatherApplication
import com.sunnyweather.study.android.logic.model.PlaceResponse
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query
interface PlaceService {
@GET("v2/place?token=${SunnyWeath... | 0 | Kotlin | 0 | 1 | 1ddaea4b52a8ea0ad981e70bdb67cd98d8473457 | 428 | SunnyWeather | Apache License 2.0 |
app/src/main/java/com/sunnyweather/study/android/logic/network/PlaceService.kt | jhchenchong | 254,855,817 | false | null | package com.sunnyweather.study.android.logic.network
import com.sunnyweather.study.android.SunnyWeatherApplication
import com.sunnyweather.study.android.logic.model.PlaceResponse
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query
interface PlaceService {
@GET("v2/place?token=${SunnyWeath... | 0 | Kotlin | 0 | 1 | 1ddaea4b52a8ea0ad981e70bdb67cd98d8473457 | 428 | SunnyWeather | Apache License 2.0 |
rxk_rxjava2/src/main/java/com/mozhimen/rxk/rxjava2/utils/ObservableUtil.kt | mozhimen | 798,637,349 | false | {"Kotlin": 19283} | package com.mozhimen.rxk.rxjava2.utils
import io.reactivex.Observable
import io.reactivex.Scheduler
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.disposables.Disposable
import java.util.concurrent.TimeUnit
/**
* @ClassName UtilKRxJava
* @Description TODO
* @Author mozhimen / Kolin Zh... | 0 | Kotlin | 0 | 0 | 5fa1eb94f35f3db7976473dca3a04e93ee0f98d1 | 1,465 | ARxKit | MIT License |
app/src/main/java/ru/usedesk/sample/ui/screens/configuration/ConfigurationScreen.kt | usedesk | 127,645,126 | false | null | package ru.usedesk.sample.ui.screens.configuration
import android.content.pm.PackageManager
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view.View.OnFocusChangeListener
import android.view.ViewGroup
impo... | 0 | Kotlin | 6 | 3 | 55ff54eb258bd586d71f7a0de755cae20105ce70 | 15,253 | Android_SDK | MIT License |
src/main/kotlin/nsl/sam/envvar/SteeredEnvironmentVariablesAccessor.kt | neat-solutions-lab | 146,033,971 | false | null | package nsl.sam.envvar
import java.util.function.Supplier
import kotlin.reflect.KClass
import kotlin.reflect.full.createInstance
class SteeredEnvironmentVariablesAccessor : EnvironmentVariablesAccessor {
companion object {
const val SUPPLIER_PROPERTY_NAME = "nsl.sam.env-vars-supplier"
}
override... | 0 | Kotlin | 0 | 0 | 85b1059a6a37f2163e27bb4bdd8b0596f45e904d | 1,089 | simple-authentication-methods | MIT License |
app/src/main/java/com/example/bibleflashcards/Passage.kt | knappyflash | 786,181,973 | false | {"Kotlin": 11854} | import java.text.Format
class Passage(var PassageIndex: String, var Passage: String) {
var IncludePassage: Boolean = false
var CorrectGuesses: Long = 0
var TotalGuesses: Long = 0
var CorrectPercent: Double = 0.00
public fun Correct(){
CorrectGuesses = CorrectGuesses + 1
TotalGuess... | 0 | Kotlin | 0 | 0 | d611fa76f1b48ab53a97909aba3923b9c3aa5192 | 917 | BibleFlashcards | MIT License |
mahout-gradle-plugin/src/gradleTest/kotlin/com/rickbusarow/mahout/MahoutVersionMatrix.kt | rickbusarow | 710,392,543 | false | {"Kotlin": 298621, "Shell": 4276} | /*
* Copyright (C) 2024 <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 ... | 5 | Kotlin | 0 | 2 | 92029f70e97b19278c6016ab59c91fb767f97fdf | 1,739 | mahout | Apache License 2.0 |
src/main/kotlin/com/saehyun/smonkey/domain/smonkey/payload/request/MakeSMonkeyRequest.kt | Team-Smonkey | 538,435,758 | false | null | package com.saehyun.smonkey.domain.smonkey.payload.request
data class MakeSMonkeyRequest(
val name: String,
val backgroundColor: String,
)
| 3 | Kotlin | 0 | 3 | e6538ddb129b05a76c85171af7a2261989306510 | 148 | SMonkey-Backend | MIT License |
library/src/main/kotlin/com/thunderdogge/messaggio/SnackbarMessage.kt | thunderdogge | 311,094,036 | false | null | package com.thunderdogge.messaggio
class SnackbarMessage(
val resource: IMessageResource,
val duration: IMessageDuration
) : IMessage
| 0 | Kotlin | 0 | 5 | 8f2f10cc2e35b7655857882a9e0d0e32a157cff6 | 143 | messaggio | MIT License |
apps/mobile/src/main/kotlin/dev/marlonlom/cappajv/features/welcome/onboarding/DefaultLandscapeOnboardingItem.kt | marlonlom | 766,685,767 | false | {"Kotlin": 354987} | /*
* Copyright 2024 Marlonlom
* SPDX-License-Identifier: Apache-2.0
*/
package dev.marlonlom.cappajv.features.welcome.onboarding
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Col... | 0 | Kotlin | 0 | 0 | 8f86b3156427753b1925d2de0f1d93933e033103 | 4,163 | cappajv | Apache License 2.0 |
zircon.jvm.swing/src/main/kotlin/org/hexworks/zircon/internal/application/SwingApplication.kt | Hexworks | 94,116,947 | false | null | package org.hexworks.zircon.internal.application
import org.hexworks.cobalt.events.api.EventBus
import org.hexworks.zircon.api.SwingApplications
import org.hexworks.zircon.api.application.AppConfig
import org.hexworks.zircon.api.application.Application
import org.hexworks.zircon.api.application.filterByType
import org... | 41 | Kotlin | 132 | 658 | 226f7fa88af1cf3092f2c1ac91a9be5a9d2c6203 | 1,226 | zircon | Apache License 2.0 |
app/src/main/java/com/example/rangkul/ui/comment/CommentViewModel.kt | ferry582 | 589,620,625 | false | null | package com.example.rangkul.ui.comment
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.rangkul.data.model.CommentData
import com.example.rangkul.data.model.UserData
import com.example.rangkul.da... | 0 | Kotlin | 1 | 0 | 78fb2760266bc82056537203f8ab90fc46a51e46 | 1,660 | rangkul_app | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.