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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/lbg/project/domain/usecase/PostFavCatUseCase.kt | PC-Wipro | 696,757,421 | false | {"Java": 429337, "Kotlin": 100932} | package com.lbg.project.domain.usecase
import com.lbg.project.data.NetworkResult
import com.lbg.project.data.models.catDetails.PostFavCatModel
import com.lbg.project.data.models.mappers.CallSuccessModel
import com.lbg.project.domain.repositories.CatDetailsRepository
import com.lbg.project.utils.Constants
import kotlin... | 0 | Kotlin | 0 | 1 | a7523671ce0cb940cc682018357c96014d6f2da6 | 630 | LBG | Apache License 2.0 |
CarLife-Android-Vehicle-V2.0/carlife-sdk/src/main/java/com/baidu/carlife/sdk/util/MotionEvents.kt | songzhixiang | 608,940,896 | true | {"Markdown": 7, "Text": 2, "Ignore List": 9, "Shell": 12, "Java Properties": 6, "Python": 1, "Ant Build System": 1, "XML": 232, "Batchfile": 4, "Gradle": 14, "INI": 9, "Java": 297, "AIDL": 5, "HTML": 14, "CSS": 18, "JavaScript": 8, "Proguard": 7, "Kotlin": 119, "Protocol Buffer": 126, "C++": 142, "Makefile": 8} | package com.baidu.carlife.sdk.util
import android.view.MotionEvent
import com.baidu.carlife.sdk.Constants
import java.lang.Exception
import java.lang.reflect.Method
private var setDisplayIdMethod: Method? = null
private var getDisplayIdMethod: Method? = null
fun MotionEvent.setDisplayId(displayId: Int) {
if (set... | 0 | null | 0 | 1 | fddb0be12a24b501bee435a56be3f564a158fd39 | 1,011 | apollo-DuerOS | Apache License 2.0 |
pushlibrary/src/main/java/com/kiven/pushlibrary/Web.kt | WangKiven | 64,111,499 | false | null | package com.kiven.pushlibrary
import android.content.Context
import android.content.Intent
import android.net.Uri
import com.kiven.kutils.logHelper.KLog
import com.kiven.kutils.tools.KContext
import com.sxb.kutils_ktx.util.KWeb
import org.json.JSONObject
internal object Web {
var context: Context? = null
var ... | 1 | null | 5 | 5 | fc73477823f89e741588862e243a46e45279fdf3 | 9,914 | KUtils | Apache License 2.0 |
android/app/src/main/java/org/tensorflow/lite/examples/objectdetection/ui/login/LoginViewModel.kt | Me-in-U | 718,779,371 | false | {"Text": 7, "Ignore List": 2, "Git Attributes": 1, "Markdown": 1, "Gradle": 4, "Java Properties": 6, "Shell": 1, "Batchfile": 1, "Proguard": 1, "JSON": 126, "XML": 211, "Kotlin": 35, "Java": 71, "INI": 6, "Unix Assembly": 1, "SQL": 2, "PureBasic": 2} | package org.tensorflow.lite.examples.objectdetection.ui.login
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import android.util.Patterns
import android.widget.Toast
import org.tensorflow.lite.examples.objectdetection.data.LoginC... | 0 | Java | 0 | 0 | d60bb68f38a92268fbf823f2b3069c8f134ee896 | 5,425 | DataSet_Maker_for_Object_Detection | MIT License |
lib_keepalive/src/main/java/com/kpc/lib_keepalive/KeepAlive78.kt | royhook | 497,205,403 | true | {"Java Properties": 4, "Shell": 2, "Markdown": 1, "Batchfile": 1, "INI": 4, "Proguard": 2, "Kotlin": 110, "C": 101, "Java": 101, "JavaScript": 101, "Python": 101, "C++": 101, "Go": 1} | print("保活加微信:KeepAliveCore"); | 0 | null | 0 | 0 | dbf62d5d3433f1a50b362486ec493b5493ac99d8 | 29 | KeepAliveCore | Apache License 2.0 |
InkKotlinExtensions/src/test/java/com/inlacou/inkkotlinextensions/extensions/ListExtensionsUnitTests.kt | inlacou | 400,138,100 | false | {"Kotlin": 514448, "Shell": 139} | package com.inlacou.inkkotlinextensions.extensions
import com.inlacou.inkkotlinextensions.*
import org.junit.Assert
import org.junit.Test
import org.junit.jupiter.api.assertThrows
import java.lang.IllegalArgumentException
import java.lang.IndexOutOfBoundsException
/**
* Example local unit test, which will execute on... | 0 | Kotlin | 0 | 0 | 5eb677d1464ae935b0bb825515e47ace2506c248 | 16,390 | InkCommons | MIT License |
app/src/main/java/hu/tb/minichefy/presentation/screens/storage/storage_create/navigation/StorageCreateNavigation.kt | BTheofil | 705,819,849 | false | {"Kotlin": 307171} | package hu.tb.minichefy.presentation.screens.storage.storage_create.navigation
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable
import hu.tb.minichefy.presentation.screens.storage.storage_create.StorageCreateScreen
const val STORAGE_CREA... | 3 | Kotlin | 0 | 0 | 86ccf4b8c94d1d16a492006d793d0c787884c581 | 663 | MiniChefy | Apache License 2.0 |
app/src/main/java/com/youtubedl/data/local/model/ProgressInfo.kt | myselfsufiyan | 165,861,072 | true | {"Kotlin": 115070} | package com.youtubedl.data.local.model
import com.youtubedl.data.local.room.entity.VideoInfo
import com.youtubedl.util.ext.getFileSize
/**
* Created by cuongpm on 1/8/19.
*/
data class ProgressInfo constructor(
var downloadId: Long = 0,
var videoInfo: VideoInfo,
var bytesDownloaded: Int = 0,
var... | 0 | Kotlin | 0 | 0 | 434e829ea6c6a42d183a100b5ab85ebd57ea9123 | 570 | youtube-dl-android-1 | MIT License |
app/src/main/java/com/kasuminotes/data/ExSkillData.kt | chilbi | 399,723,451 | false | null | package com.kasuminotes.data
data class ExSkillData(
val exActions: List<SkillAction>,
val exEvolutionActions: List<SkillAction>
) {
fun getProperty(rarity: Int, exLevel: Int): Property {
val pairs = mutableListOf<Pair<Int, Double>>()
val actions = if (rarity > 4) exEvolutionActions else e... | 0 | Kotlin | 0 | 0 | 8514bf08cff0a10a2d85333639589357ae6dc571 | 545 | KasumiNotes | Apache License 2.0 |
lemniscate/src/test/java/com/vlad1m1r/lemniscate/base/settings/AnimationSettingsParcelableTest.kt | VladimirWrites | 79,385,776 | false | null | package com.vlad1m1r.lemniscate.base.settings
import android.os.Build
import android.os.Parcel
import com.google.common.truth.Truth.assertThat
import com.vlad1m1r.lemniscate.testutils.isEqualTo
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
im... | 0 | Kotlin | 43 | 427 | e2410addd33d5379157ff8b22d4d3909f0d2b303 | 933 | Lemniscate | Apache License 2.0 |
app/src/main/java/ke/derrick/steps/Constants.kt | Sciederrick | 607,208,726 | false | null | package ke.derrick.steps
import androidx.compose.ui.graphics.Color
import ke.derrick.steps.ui.theme.Blue800
import ke.derrick.steps.ui.theme.Green400
import ke.derrick.steps.ui.theme.Pink700
import ke.derrick.steps.ui.theme.White
enum class DaysOfTheWeek(val shortName: String) {
SUNDAY("Sun"), MONDAY("Mon"), TUES... | 7 | Kotlin | 0 | 0 | af5508c296b3c4fb982f5c779a5ea575b3ca0c6d | 1,118 | Steps | MIT License |
src/test/kotlin/co/nums/intellij/aem/htl/completion/HtlPredefinedPropertiesDotAccessCompletionTest.kt | karollewandowski | 74,054,504 | false | null | package co.nums.intellij.aem.htl.completion
import co.nums.intellij.aem.htl.DOLLAR
import co.nums.intellij.aem.htl.definitions.*
class HtlPredefinedPropertiesDotAccessCompletionTest : HtlCompletionTestBase() {
private val allPredefinedProperties = HtlPredefinedProperty.values()
.filter { it.context =... | 0 | Kotlin | 8 | 26 | 9e76302b897bddb9ce6721d67787e92be575794f | 1,535 | aem-intellij-plugin | MIT License |
modules/LoadingView/src/main/java/com/loading/view/space/system/PositionSystem.kt | siarheisinelnikau | 337,195,832 | false | null | package com.loading.view.space.system
import com.badlogic.ashley.core.Entity
import com.badlogic.ashley.core.Family
import com.badlogic.ashley.systems.IteratingSystem
import com.loading.view.ecs.util.VectorFloat
import com.loading.view.space.component.MovementComponent
import com.loading.view.space.component.Transform... | 0 | Kotlin | 0 | 0 | ed59d1e4c1f67c1e70cadd8e37a52882fe879912 | 1,552 | LoadingView | Apache License 2.0 |
modules/LoadingView/src/main/java/com/loading/view/space/system/PositionSystem.kt | siarheisinelnikau | 337,195,832 | false | null | package com.loading.view.space.system
import com.badlogic.ashley.core.Entity
import com.badlogic.ashley.core.Family
import com.badlogic.ashley.systems.IteratingSystem
import com.loading.view.ecs.util.VectorFloat
import com.loading.view.space.component.MovementComponent
import com.loading.view.space.component.Transform... | 0 | Kotlin | 0 | 0 | ed59d1e4c1f67c1e70cadd8e37a52882fe879912 | 1,552 | LoadingView | Apache License 2.0 |
deob-bytecode/src/main/kotlin/org/openrs2/deob/bytecode/analysis/IntBranch.kt | openrs2 | 315,027,372 | false | null | package org.openrs2.deob.bytecode.analysis
import org.objectweb.asm.Opcodes.IFEQ
import org.objectweb.asm.Opcodes.IFGE
import org.objectweb.asm.Opcodes.IFGT
import org.objectweb.asm.Opcodes.IFLE
import org.objectweb.asm.Opcodes.IFLT
import org.objectweb.asm.Opcodes.IFNE
import org.objectweb.asm.Opcodes.IF_ICMPEQ
impor... | 0 | Kotlin | 2 | 8 | 12eba96055ba13e8a8e3ec0ad3be7d93b3dd5b1b | 2,416 | openrs2 | ISC License |
musicbot-spotify/src/main/java/net/bjoernpetersen/spotify/auth/SpotifyAuthenticator.kt | fossabot | 202,222,482 | true | {"Kotlin": 139538, "HTML": 266} | package net.bjoernpetersen.spotify.auth
import net.bjoernpetersen.musicbot.api.plugin.Base
import net.bjoernpetersen.musicbot.spi.plugin.GenericPlugin
private const val DESCRIPTION = "Provides Spotify authentication"
@Base
interface SpotifyAuthenticator : GenericPlugin {
suspend fun getToken(): String
overr... | 0 | Kotlin | 0 | 0 | f9ff6853f0f68d5f138803febb6e62374cf64855 | 378 | MusicBot-plugins | MIT License |
src/main/java/com/aillen/shopmall/module/detail/head/FirstHead.kt | anlonglong | 138,116,731 | false | {"Kotlin": 234110, "HTML": 390} | package com.aillen.shopmall.module.detail.head
import android.content.Intent
import android.graphics.Paint
import android.support.annotation.StringRes
import android.support.design.widget.BottomSheetDialog
import android.support.v7.widget.LinearLayoutManager
import android.view.View
import android.widget.ImageView
imp... | 0 | Kotlin | 2 | 2 | 6ceafeca69702605c08a04957c57ab66bff01d08 | 7,741 | ShopMall | Apache License 2.0 |
src/main/kotlin/interpreter/object/Environment.kt | agrison | 651,415,192 | false | null | package interpreter.`object`
class Environment(private val store: MutableMap<String, MonkeyObject>, private val outer: Environment?) {
companion object {
fun newEnvironment(): Environment {
return Environment(mutableMapOf(), null)
}
fun newEnclosedEnvironment(outer: Environment... | 0 | Kotlin | 0 | 0 | 94fa3897c9d52f88184da425b2281594458d3ab6 | 666 | monkey-kotlin | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsppudautomationapi/controller/ReferenceControllerTest.kt | ministryofjustice | 709,230,604 | false | null | package uk.gov.justice.digital.hmpps.hmppsppudautomationapi.controller
import kotlinx.coroutines.runBlocking
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.mockito.BDDMockito.giv... | 1 | null | 1 | 3 | f617b7f5b0ebf596029a794475696e0466747c5a | 5,675 | hmpps-ppud-automation-api | MIT License |
app/src/main/java/com/hl/baseproject/compose/pages/ComposeListFragment.kt | Heart-Beats | 473,996,742 | false | null | package com.hl.baseproject.compose.pages
import android.content.res.Configuration
import android.os.Bundle
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.Spring
import... | 1 | null | 3 | 2 | 7d297415585c0919845d928f8df0804ebe3c2b90 | 10,820 | BaseProject | Apache License 2.0 |
Haemin-Park/Mission3/app/src/main/java/com/example/mission3/model/Client.kt | Yapp-17th | 285,854,858 | false | {"Swift": 256086, "Kotlin": 116710, "JavaScript": 26300, "Ruby": 3960, "Objective-C": 1731, "HTML": 1196} | package com.example.mission3.model
class Client(num: Int) {
private val printerSpooler = PrinterSpooler
fun printRequest(printData: Print){
PrinterSpooler.printing(printData)
}
} | 20 | Swift | 1 | 5 | 572983a00913bbc110ce062f26fd2cb35475186b | 201 | Study_DesignPattern | MIT License |
app/src/main/kotlin/com/example/di/AppComponent.kt | youla-dev | 498,730,372 | false | {"Kotlin": 47612} | package com.example.di
import android.app.Application
import dagger.BindsInstance
import dagger.Component
import dagger.android.DispatchingAndroidInjector
import javax.inject.Singleton
@Component(
modules = [
AppCompositeModule::class,
//this way you'll have more modules - a little bit more codege... | 0 | Kotlin | 0 | 2 | 9de8648ff6a97ee4ff1fc265b9a94f396f018f0d | 737 | android_testability_sample | MIT License |
app/src/main/java/rocks/flawless/marveltestapp/helpers/LiveDataHelper.kt | tperraut | 184,448,958 | false | null | package rocks.flawless.marveltestapp.helpers
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
import androidx.lifecycle.Observer
import androidx.lifecycle.Transformations
fun <X, Y> LiveData<X>.map(f: (X) -> Y) = Transformations.map(this, f)
fun <T> LiveData<T>.bind(owner: LifecycleOwner, ... | 0 | Kotlin | 0 | 0 | bb83235657fb90cfb70b46d3d5c7aa13f9474342 | 370 | marvel-android-test | MIT License |
samples/logic-sample/src/main/kotlin/net/aquadc/propertiesSampleLogic/sql/SqlViewModel.kt | Miha-x64 | 102,399,925 | false | null | package net.aquadc.propertiesSampleLogic.sql
import net.aquadc.persistence.sql.*
import net.aquadc.persistence.sql.blocking.Blocking
import net.aquadc.persistence.sql.blocking.Eagerly.cell
import net.aquadc.persistence.sql.blocking.Eagerly.execute
import net.aquadc.persistence.sql.blocking.Eagerly.struct
import net.aq... | 11 | Kotlin | 10 | 118 | d0a804271d0aaaa6368a2addce3ef7f081f5f560 | 6,405 | Lychee | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/CartMinus.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 | 3,641 | icons | MIT License |
bungee/src/main/kotlin/cc/dreamcode/template/config/MessageConfig.kt | DreamPoland | 594,102,524 | false | null | package cc.dreamcode.template.config
import cc.dreamcode.notice.minecraft.MinecraftNoticeType
import cc.dreamcode.notice.minecraft.bungee.BungeeNotice
import cc.dreamcode.platform.bungee.component.configuration.Configuration
import eu.okaeri.configs.OkaeriConfig
import eu.okaeri.configs.annotation.*
@Configuration(ch... | 5 | null | 0 | 2 | ac9b9accaf6ac0272bb47b49db681d44f2e0aac2 | 1,268 | dream-kotlin-template | MIT License |
bindings/core/pango/src/nativeMain/kotlin/org/gtkkn/bindings/pango/RenderPart.kt | gtk-kn | 609,191,895 | false | {"Kotlin": 10448515, "Shell": 2740} | // This is a generated file. Do not modify.
package org.gtkkn.bindings.pango
import org.gtkkn.native.pango.PangoRenderPart
import org.gtkkn.native.pango.PangoRenderPart.PANGO_RENDER_PART_BACKGROUND
import org.gtkkn.native.pango.PangoRenderPart.PANGO_RENDER_PART_FOREGROUND
import org.gtkkn.native.pango.PangoRenderPart.... | 0 | Kotlin | 0 | 13 | c033c245f1501134c5b9b46212cd153c61f7efea | 1,646 | gtk-kn | Creative Commons Attribution 4.0 International |
server/src/main/kotlin/tech/figure/objectstore/gateway/extensions/GenericExtensions.kt | FigureTechnologies | 475,618,109 | false | null | package tech.figure.objectstore.gateway.extensions
inline fun <reified T> T.wrapList(): List<T> = listOf(this)
inline fun <reified T> T.wrapSet(): Set<T> = setOf(this)
inline fun <reified T> T.wrapArray(): Array<T> = arrayOf(this)
fun <T : Any> T?.checkNotNull(lazyMessage: () -> String): T {
checkNotNull(this, la... | 5 | Kotlin | 0 | 0 | f35eff92e4502cbbed6dcdabec9257ab9b3a220a | 349 | object-store-gateway | Apache License 2.0 |
core/ui/src/main/kotlin/com/kevlina/budgetplus/core/ui/Button.kt | kevinguitar | 517,537,183 | false | null | package com.kevlina.budgetplus.core.ui
import androidx.compose.animation.animateColorAsState
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interactio... | 1 | null | 0 | 9 | ba738370c0a04e5105c4907ac4aabeeb64cada1c | 3,547 | budgetplus-android | MIT License |
app/src/main/java/org/techtown/cryptoculus/viewmodel/ImageViewModel.kt | lht1324 | 348,436,674 | false | null | package org.techtown.cryptoculus.viewmodel
import android.app.Application
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.bumptech.glide.request.target.CustomTarget
import com.bum... | 0 | Kotlin | 0 | 1 | 4980f825706ab44c589b14f9478cc10599fc02f8 | 3,573 | CryptOculus | MIT License |
app/src/main/java/com/redridgeapps/remoteforqbittorrent/ui/torrentdetails/TorrentDetailsViewModel.kt | SaurabhSandav | 123,869,187 | false | null | package com.redridgeapps.remoteforqbittorrent.ui.torrentdetails
import com.redridgeapps.remoteforqbittorrent.ui.base.BaseViewModel
import javax.inject.Inject
class TorrentDetailsViewModel @Inject constructor() : BaseViewModel()
| 0 | Kotlin | 0 | 1 | 1d3d81dfd9add116333e5892de1c7dda96a58dcb | 230 | qBittorrentRemote | MIT License |
src/main/kotlin/me/jakejmattson/discordkt/api/arguments/MessageArg.kt | DiscordKt | 271,063,846 | false | null | package me.jakejmattson.discordkt.api.arguments
import dev.kord.core.entity.Message
import dev.kord.core.entity.channel.GuildMessageChannel
import kotlinx.coroutines.flow.firstOrNull
import me.jakejmattson.discordkt.api.dsl.CommandEvent
import me.jakejmattson.discordkt.api.dsl.internalLocale
import me.jakejmattson.dis... | 2 | Kotlin | 9 | 51 | cd7b9cd4e8b1d0270f0f99006e76df2abcf6e905 | 2,265 | DiscordKt | MIT License |
src/com/reco1l/framework/Pool.kt | osudroid | 248,937,035 | false | {"Java": 2551119, "Kotlin": 759688, "HTML": 1699, "Batchfile": 50} | package com.reco1l.framework
/**
* A simple object pool implementation.
*
* @param T The type of object to pool.
* @param initialSize The initial size of the pool, by default 0.
* @param maxSize The maximum size of the pool, by default -1 (no limit).
* @param factory The factory to use to create new objects.
* ... | 24 | Java | 77 | 521 | 9f1da90c2c26b179bf425fb55fbb626515c2fc97 | 1,244 | osu-droid | Apache License 2.0 |
lib-moshi/src/main/java/net/codefeet/lemmyandroidclient/gen/types/FederatedInstances.kt | Flex4Reddit | 648,927,752 | false | null | package net.codefeet.lemmyandroidclient.gen.types
import android.os.Parcelable
import com.squareup.moshi.JsonClass
import kotlin.collections.List
import kotlinx.parcelize.Parcelize
@Parcelize
@JsonClass(generateAdapter = true)
public data class FederatedInstances(
public val linked: List<Instance>,
public val all... | 0 | Kotlin | 0 | 0 | 8028bbf4fc50d7c945d20c7034d6da2de4b7c0ac | 395 | lemmy-android-client | MIT License |
core/datastore/src/main/kotlin/com/flixclusive/core/datastore/serializer/AppSettingsSerialiazer.kt | flixclusiveorg | 659,237,375 | false | {"Kotlin": 1904772, "Java": 18011} | package com.flixclusive.core.datastore.serializer
import com.flixclusive.model.datastore.AppSettings
object AppSettingsSerializer : BaseSettingsSerializer<AppSettings>(
serializer = AppSettings.serializer()
) {
override val defaultValue: AppSettings
get() = AppSettings()
} | 26 | Kotlin | 29 | 362 | f488f6d1b2de3ec0737a8437ce1c981bc2f55c31 | 291 | Flixclusive | MIT License |
src/main/kotlin/eu/wojciechzurek/mattermost/calc/bot/api/mattermost/Link.kt | wojciech-zurek | 259,397,070 | false | null | package eu.wojciechzurek.mattermost.calc.bot.api.mattermost
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
@JsonIgnoreProperties(ignoreUnknown = true)
data class Link(
val link: String
) | 0 | Kotlin | 0 | 0 | dffcac84b09e6f0caba0ea85390a93d6a2a5e695 | 210 | mattermost-calc-bot | MIT License |
konfork-predicates/src/commonTest/kotlin/io/github/konfork/predicates/cases/UuidTestCases.kt | konfork | 557,451,504 | false | {"Kotlin": 142473, "Java": 904} | package io.github.konfork.predicates.cases
class UuidTestCases {
private val invalid: List<String> = listOf(
"",
"@",
"<EMAIL>",
" 00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000 ",
)
val nilUuid: List<String> = listOf("00000000-0000-0000... | 1 | Kotlin | 0 | 4 | b75e6b96aa7c80efa5095a7763a22fcf614b10d8 | 1,513 | konfork | MIT License |
buildSrc/src/main/kotlin/GradleExtensions.kt | Hazer | 206,080,261 | true | {"Kotlin": 69841} | @file:Suppress("NOTHING_TO_INLINE")
import org.gradle.api.Action
import org.gradle.api.DomainObjectCollection
@Suppress("ObjectLiteralToLambda")
inline fun <reified T> DomainObjectCollection<T>.every(crossinline onEach: (T) -> Unit) {
this.all(object : Action<T> {
override fun execute(t: T) {
... | 0 | Kotlin | 0 | 1 | a0b1f323abf7220456753966f1fe321cc1a6f9d8 | 631 | konfigure | MIT License |
app/src/main/java/io/horizontalsystems/bankwallet/core/adapters/zcash/ZcashTransaction.kt | horizontalsystems | 142,825,178 | false | null | package io.horizontalsystems.bankwallet.core.adapters.zcash
import cash.z.ecc.android.sdk.model.FirstClassByteArray
import cash.z.ecc.android.sdk.model.TransactionOverview
import cash.z.ecc.android.sdk.model.TransactionState
import cash.z.ecc.android.sdk.model.Zatoshi
import java.util.Date
class ZcashTransaction : Co... | 168 | null | 364 | 895 | 218cd81423c570cdd92b1d5161a600d07c35c232 | 2,605 | unstoppable-wallet-android | MIT License |
src/main/kotlin/model/struct/Functional.kt | Ezrnest | 840,624,657 | false | {"Kotlin": 421487} | package io.github.ezrnest.model.struct
import java.util.function.Function
/**
* Describes objects that can be composed. For example, two functions can be composed to
* a new function. The composing may be not commutative, so there are two kinds of composing:
* [.compose] and [.andThen], which correspond to the me... | 0 | Kotlin | 0 | 0 | fdd50fdebedb79ba34dc04632d6a66f6d16a6381 | 1,449 | MathSymK | MIT License |
src/main/kotlin/io/github/snarks/reactivestore/caches/ReactiveCacheExtensions.kt | snarks | 120,741,418 | false | null | /*
* Copyright 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 agreed to in wr... | 5 | Kotlin | 0 | 0 | 03e369a0d5382c0fd5fd4d459769c77d6996857f | 2,088 | ReactiveStore | Apache License 2.0 |
app/src/main/java/com/lb/apkmanifestfetcher/ManifestParser2.kt | syslogic | 247,408,164 | false | null | package com.lb.apkmanifestfetcher
import org.xmlpull.v1.XmlPullParser
import org.xmlpull.v1.XmlPullParserFactory
import java.io.File
import java.io.InputStream
import java.util.*
import kotlin.collections.HashMap
/**a tiny bit more efficient way to parse manifest attributes alone*/
class ManifestParser2 {
var isS... | 0 | Kotlin | 1 | 0 | 84c13113a76b8d1917cbd589caba27ce23265a7b | 4,570 | ApkManifestFetcher | Apache License 2.0 |
BaseDebug/src/main/java/com/bihe0832/android/base/debug/tts/DebugTTSAndASRFragment.kt | AndroidAppFactory | 222,415,705 | false | {"C++": 2708240, "Java": 2681786, "Kotlin": 1379398, "HTML": 18641, "JavaScript": 18036, "Groovy": 10003, "Shell": 5604, "AIDL": 3845, "CMake": 1415} | /*
* *
* * Created by zixie <code@bihe0832.com> on 2022/7/8 下午10:09
* * Copyright (c) 2022 . All rights reserved.
* * Last modified 2022/7/8 下午10:05
*
*/
package com.bihe0832.android.base.debug.tts
import android.media.AudioFormat
import android.media.MediaRecorder
import android.util.Log
import android.view... | 0 | C++ | 21 | 64 | dc755e4745ecde8a42bdc7629f954c140adbc84c | 8,374 | AndroidAppFactory | MIT License |
mewwalletbl/src/main/java/com/myetherwallet/mewwalletbl/data/database/TokenDescription.kt | MyEtherWallet | 225,456,139 | false | null | package com.myetherwallet.mewwalletbl.data.database
import android.os.Parcelable
import com.myetherwallet.mewwalletkit.bip.bip44.Address
import kotlinx.android.parcel.Parcelize
@Parcelize
data class TokenDescription(
val id: Long,
val decimals: Int,
val name: String,
val symbol: String,
val logo: ... | 2 | null | 6 | 8 | 0c876055cad9373c425230b8444978bee11e2a52 | 754 | mew-wallet-android-biz-logic | MIT License |
src/main/kotlin/org/arend/refactoring/changeSignature/ChangeSignatureRefactoringDescriptor.kt | JetBrains | 96,068,447 | false | {"Kotlin": 2655823, "Lex": 16187, "Java": 5894, "HTML": 2144, "CSS": 1108, "JavaScript": 713} | package org.arend.refactoring.changeSignature
import com.intellij.psi.PsiElement
import com.intellij.psi.SmartPsiElementPointer
import com.intellij.psi.util.elementType
import com.intellij.psi.util.endOffset
import com.intellij.psi.util.startOffset
import org.arend.codeInsight.*
import org.arend.naming.reference.Class... | 37 | Kotlin | 12 | 90 | 7a6608a2e44369e11c5baad3ef2928d6f9c971b2 | 26,894 | intellij-arend | Apache License 2.0 |
app/src/main/java/ch/magdenbt/a1ccaclient/model/accounts/entities/Account.kt | MagDenBT | 674,819,011 | false | null | package ch.magdenbt.a1ccaclient.model.accounts.entities
import ch.magdenbt.a1ccaclient.model.EmptyFieldException
import ch.magdenbt.a1ccaclient.model.Field
data class Account(
val caURL: String,
val username: String,
val password: String,
) {
fun validate() {
if (caURL.isBlank()) throw Emp... | 0 | Kotlin | 0 | 0 | 09e202c0da94903a5e988de22b07c19f9cc26cb8 | 507 | 1c_CA_client | MIT License |
DesignChallenges/MySoothe/app/src/main/java/com/example/androiddevchallenge/ui/screen/main/screen/Profile.kt | halcyonmobile | 340,389,463 | false | null | package com.example.androiddevchallenge.ui.screen.main.screen
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.runtime.Composable
import androidx.compose... | 0 | Kotlin | 0 | 0 | f9eaf5ebf1cd7d4da6dcc9194dfe7abfe1bb0448 | 684 | compose-playground | Apache License 2.0 |
kategory-test/src/main/kotlin/kategory/laws/PrismLaws.kt | octaplexsys | 106,288,486 | true | {"Kotlin": 585547, "Shell": 2458} | package kategory
import io.kotlintest.properties.Gen
import io.kotlintest.properties.forAll
import kategory.optics.Prism
import kategory.optics.modify
import kategory.optics.modifyF
object PrismLaws {
inline fun <reified A, reified B, reified F> laws(prism: Prism<A, B>, aGen: Gen<A>, bGen: Gen<B>, funcGen: Gen<(... | 0 | Kotlin | 0 | 0 | 3ea910ab11e831f09af93e68de60f7d53d02beeb | 2,771 | kategory | Apache License 2.0 |
point/shared/src/commonMain/kotlin/ru/mission/point/DefaultRootComponent.kt | KYamshanov | 805,006,151 | false | {"Kotlin": 24362} | package ru.mission.point
import com.arkivanov.decompose.ComponentContext
import com.arkivanov.decompose.router.stack.ChildStack
import com.arkivanov.decompose.router.stack.StackNavigation
import com.arkivanov.decompose.router.stack.childStack
import com.arkivanov.decompose.router.stack.pop
import com.arkivanov.decompo... | 0 | Kotlin | 0 | 0 | e597b3f2554e399c9c329c1f2fffeb06b5d88c5c | 2,521 | Mission-LSP | Apache License 2.0 |
src/main/kotlin/parser/dsl/ParserState.kt | y9san9 | 673,971,849 | false | null | package parser.dsl
import parser.base.Parser
import parser.base.ParserResult
private class ParserFailure : RuntimeException()
class ParserState(
var source: String
) {
fun <T> Parser<T>.parse(): T =
when (val result = parse(source)) {
ParserResult.Failure -> fail()
is ParserRe... | 1 | Kotlin | 2 | 12 | 816319dad0f290a6f9fb7cb574ae501fecc635a6 | 995 | kotlin-simple-json | MIT License |
app/src/main/java/com/elementary/tasks/core/view_models/groups/GroupViewModel.kt | Animesh-Barai | 255,411,818 | true | {"Kotlin": 1974833, "Java": 180404, "HTML": 14775} | package com.elementary.tasks.core.view_models.groups
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.elementary.tasks.core.data.models.ReminderGroup
import com.elementary.tasks.core.utils.Constants
import com.elementary.tasks.core.utils.launchDefault
import com.elementary.tas... | 0 | null | 0 | 0 | ed79158ac4df09d18749b03b7e77c5208175b550 | 1,797 | reminder-kotlin | Apache License 2.0 |
opendc-experiments/opendc-experiments-timo/src/main/kotlin/org/opendc/experiments/timo/codec/HostFilterGene.kt | Timovanmilligen | 463,493,229 | true | {"Kotlin": 1739390, "JavaScript": 315037, "Shell": 133006, "Python": 120908, "R": 36284, "SCSS": 13210, "Dockerfile": 2314} | package org.opendc.experiments.timo.codec
import io.jenetics.util.RandomRegistry
import java.util.*
class HostFilterGene(allele: Pair<String,Any>?) : PolicyGene<Pair<String,Any>>(allele) {
private val choices: List<(Random) -> Pair<String,Any>> = listOf(
{ random: Random -> Pair("instanceCountFilter", ra... | 0 | Kotlin | 0 | 0 | fe4c5852fe39b04b72da6882bfbee10f01a9897e | 1,027 | opendc | MIT License |
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/solid/ThermometerFull.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.fontawesomeicons.solid
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.... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 3,218 | compose-icons | MIT License |
libs/messaging/messaging-impl/src/main/kotlin/net/corda/messaging/mediator/MultiSourceEventMediatorImpl.kt | corda | 346,070,752 | false | {"Kotlin": 20585393, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.messaging.mediator
import net.corda.lifecycle.LifecycleCoordinator
import net.corda.lifecycle.LifecycleCoordinatorName
import net.corda.lifecycle.LifecycleStatus
import net.corda.messaging.api.mediator.MultiSourceEventMediator
import net.corda.messaging.api.mediator.config.EventMediatorConfig
import ... | 83 | Kotlin | 27 | 69 | 0766222eb6284c01ba321633e12b70f1a93ca04e | 3,227 | corda-runtime-os | Apache License 2.0 |
kzen-auto-common/src/commonMain/kotlin/tech/kzen/auto/common/objects/document/script/control/ConditionalExpression.kt | alexoooo | 131,353,826 | false | null | package tech.kzen.auto.common.objects.document.script.control
import tech.kzen.auto.common.paradigm.common.model.*
import tech.kzen.auto.common.paradigm.imperative.api.ScriptControl
import tech.kzen.auto.common.paradigm.imperative.model.ImperativeModel
import tech.kzen.auto.common.paradigm.imperative.model.control.*
i... | 0 | Kotlin | 0 | 1 | 73ab080e0291db39c35ab4201aed84c273f75b96 | 2,826 | kzen-auto | MIT License |
app/src/main/java/com/radityarin/spacexinfo/data/model/launches/LaunchSite.kt | radityarin | 276,372,378 | false | null | package com.radityarin.spacexinfo.data.model.launches
import com.google.gson.annotations.SerializedName
import java.io.Serializable
data class LaunchSite(
@SerializedName("site_id")
val siteId: String,
@SerializedName("site_name")
val siteName: String,
@SerializedName("site_name_long")
val si... | 0 | Kotlin | 0 | 3 | a22126a732676db88d7da062528ad021fd61ea33 | 354 | SpaceXInfo | MIT License |
src/main/kotlin/com/fileee/oihTransformer/fileee/Entity.kt | openintegrationhub | 159,690,955 | false | null | package com.fileee.oihTransformer.fileee
import arrow.core.Option
typealias UUID = String
abstract class Entity(
val id: Option<UUID>
) {
companion object {
// json keys
const val id = "id"
}
} | 0 | Kotlin | 0 | 0 | 07b8f1323a584734a521ef7813c4c8d641e8af7e | 228 | fileee-transformer | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/twotone/Folderconnection.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.linear
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,942 | VuesaxIcons | MIT License |
src/main/kotlin/io/mverse/kslack/api/model/Purpose.kt | mverse | 161,946,116 | true | {"Kotlin": 403852} | package io.mverse.kslack.api.model
data class Purpose(
val value: String? = null,
val creator: String? = null,
val lastSet: Int? = null)
| 0 | Kotlin | 0 | 0 | 9ebf1dc13f6a3d89a03af11a83074a4d636cb071 | 144 | jslack | MIT License |
app/practice/src/main/java/com/bowoon/practice/apis/PokemonApiService.kt | KimBoWoon | 519,954,177 | false | {"Kotlin": 392794, "HTML": 2816} | package com.bowoon.practice.apis
import com.bowoon.practice.data.PokemonDataConstant
import com.bowoon.practice.data.PokemonResponse
import retrofit2.http.GET
import retrofit2.http.Query
import retrofit2.http.Url
interface PokemonApiService {
/**
* 200
*/
@GET
suspend fun getAllPokemon(
... | 0 | Kotlin | 0 | 0 | e1fde43cc65b6ec8c6c83dec62d71ff7f2a07255 | 632 | BoWoon | MIT License |
app/src/main/java/com/ningsk/zrdc/db/DltbDao.kt | kicker315 | 334,635,124 | false | null | package com.ningsk.zrdc.db
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.ningsk.zrdc.entity.dic.Dltb
/**
* =======================================
* The Data Access Object for the DLTB class
* Cr... | 0 | null | 0 | 0 | b82990a7edac9ccef42ff0ad69520a8a3d14819b | 614 | gis | Apache License 2.0 |
flowbius/src/test/kotlin/com/trello/flowbius/FlowMobiusLoopTest.kt | atlassian-labs | 450,276,182 | false | {"Kotlin": 38011} | package com.trello.flowbius
import app.cash.turbine.test
import com.spotify.mobius.Effects.effects
import com.spotify.mobius.First.first
import com.spotify.mobius.Mobius
import com.spotify.mobius.Next.next
import com.spotify.mobius.runners.ImmediateWorkRunner
import com.spotify.mobius.test.RecordingConnection
import c... | 1 | Kotlin | 3 | 57 | f99da6fd36fce37a766a00b7c29abe2393deb95b | 6,944 | Flowbius | Apache License 2.0 |
acrarium/src/main/kotlin/com/faendir/acra/persistence/mailsettings/MailSettingsRepository.kt | F43nd1r | 91,593,043 | false | null | package com.faendir.acra.persistence.mailsettings
import com.faendir.acra.jooq.generated.tables.references.MAIL_SETTINGS
import com.faendir.acra.persistence.app.AppId
import com.faendir.acra.persistence.fetchListInto
import com.faendir.acra.persistence.fetchValueInto
import org.jooq.DSLContext
import org.springframewo... | 6 | Kotlin | 46 | 169 | f277b0abf211fbd3149becd2b59a138b3d6177cc | 1,800 | Acrarium | Apache License 2.0 |
basick/src/main/java/com/mozhimen/basick/elemk/androidx/lifecycle/StickyObserver.kt | mozhimen | 353,952,154 | false | {"Kotlin": 1460326, "Java": 3916, "AIDL": 964} | package com.mozhimen.basick.elemk.androidx.lifecycle
import androidx.lifecycle.Observer
import com.mozhimen.basick.elemk.androidx.lifecycle.commons.IStickyLiveData
/**
* @ClassName StickyObserver
* @Description 还有一种方法: 通过反射, 获取liveData当中的mVersion字段, 来控制黏性数据的分发与否, 但是我们认为这种反射不够优雅
* @Author Mozhimen / Kolin Zhao
* @... | 1 | Kotlin | 6 | 118 | bbdd6ab9b945f04036c27add35c1cbd70c1b49f7 | 1,167 | SwiftKit | Apache License 2.0 |
src/test/kotlin/com/github/kerubistan/kerub/planner/steps/vstorage/share/nfs/ShareNfsTest.kt | soloturn | 164,455,794 | true | {"Kotlin": 1728202, "Gherkin": 74051, "HTML": 73962, "JavaScript": 53966, "CSS": 754} | package com.github.kerubistan.kerub.planner.steps.vstorage.share.nfs
import com.github.kerubistan.kerub.model.services.NfsService
import com.github.kerubistan.kerub.planner.OperationalState
import com.github.kerubistan.kerub.testHost
import org.junit.Assert.assertTrue
import org.junit.Test
import kotlin.test.assertTru... | 0 | Kotlin | 0 | 1 | 42b70cb9a182af4923a7f960c6df98284e03bab2 | 884 | kerub | Apache License 2.0 |
composeApp/src/wasmJsMain/kotlin/utils/CustomIndication.kt | josegbel | 776,515,727 | false | {"Kotlin": 38834, "HTML": 544} | package utils
import androidx.compose.foundation.Indication
import androidx.compose.foundation.IndicationInstance
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.*
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.composed
impor... | 0 | Kotlin | 0 | 0 | 2c0fb5bed66fbedd1a99e9bb433e3a33d0ae0af5 | 1,959 | josegbel.github.io | MIT License |
app/src/main/java/de/theaninova/kontrol/ui/theme/Color.kt | Theaninova | 446,806,334 | false | null | package de.theaninova.kontrol.ui.theme
import androidx.compose.ui.graphics.Color
val md_theme_light_primary = Color(0xFF8f3f8d)
val md_theme_light_onPrimary = Color(0xFFffffff)
val md_theme_light_primaryContainer = Color(0xFFffd6f9)
val md_theme_light_onPrimaryContainer = Color(0xFF37003a)
val md_theme_light_seconda... | 0 | Kotlin | 0 | 0 | c8b7b0ed2c7a7dc19549267c91161fe84f83f505 | 2,737 | Kontrol | MIT License |
src/main/day13/day13.kt | rolf-rosenbaum | 572,864,107 | false | null | package day13
import java.util.*
import readInput
import second
sealed interface Packet : Comparable<Packet> {
data class ListPacket(val packets: MutableList<Packet> = mutableListOf()) : Packet {
override fun compareTo(other: Packet): Int {
return when (other) {
is IntPacket -... | 0 | Kotlin | 0 | 2 | 81c84a1305e0af1f76d6c1394b642156ba7c008c | 2,972 | aoc-2022 | Apache License 2.0 |
cutlass-api/src/main/kotlin/io/strlght/cutlass/api/TypeMappingVisitor.kt | strlght | 365,810,651 | false | null | package io.strlght.cutlass.api
import io.strlght.cutlass.api.types.Members
import io.strlght.cutlass.api.types.Type
interface TypeMappingVisitor {
fun visitType(type: Type, newType: Type?)
fun visitField(field: Members.Field, newName: String)
fun visitMethod(method: Members.Method, mapping: MethodMapping)... | 1 | Kotlin | 0 | 4 | 7658df7b6cb659a760be6883fbf87c531e500627 | 323 | cutlass | Apache License 2.0 |
preferences/src/commonMain/kotlin/com/alexvanyo/composelife/preferences/DiskPreferencesDataStore.kt | alexvanyo | 375,146,193 | false | null | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 35 | null | 7 | 99 | 3b697abef92c235eb92dfe3364c3176110a73132 | 2,458 | composelife | Apache License 2.0 |
collections/src/main/kotlin/moe/kanon/kommons/collections/Iterators.kt | Olivki | 219,809,070 | false | null | /*
* Copyright 2019-2020 Oliver Berg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 0 | Kotlin | 0 | 0 | d667161238bc5d891fa6669ffd2d6cfa558c5e32 | 3,676 | kanon.kommons | Apache License 2.0 |
app/src/main/java/com/example/reviewdb/data/responses/SignUpResponse.kt | LHLHLHE | 624,007,870 | false | null | package com.example.reviewdb.data.responses
import com.google.gson.annotations.SerializedName
data class SignUpResponse(
@SerializedName("User")
val user: User
)
| 0 | Kotlin | 0 | 0 | fc4e1df3e8b7bfb395fa93ca25e91953b51a8c30 | 172 | ReviewDB_mobile_app | MIT License |
harmonysoft-common/src/main/kotlin/tech/harmonysoft/oss/common/time/schedule/impl/DaysOfWeekTimeWindows.kt | harmonysoft-tech | 517,062,754 | false | {"Kotlin": 638765, "Gherkin": 24382, "Shell": 555, "JavaScript": 378} | package tech.harmonysoft.oss.common.time.schedule.impl
import java.time.DayOfWeek
data class DaysOfWeekTimeWindows(
val daysOfWeek: Set<DayOfWeek>,
private val _timeWindows: Set<TimeWindow>
) {
val timeWindows = _timeWindows.toTypedArray()
init {
for (timeWindow in timeWindows) {
... | 1 | Kotlin | 1 | 2 | 9d720ff1128857317f28a0e68d7053fa744653bf | 2,574 | harmonysoft-kotlin-libs | MIT License |
src/main/kotlin/lab/maxb/dark_api/model/RecognitionTask.kt | MaxBQb | 430,378,546 | false | null | package lab.maxb.dark_api.model
import java.util.*
import javax.persistence.*
@Entity
class RecognitionTask(
@ElementCollection
var names: Set<String>? = null,
@ElementCollection
var images: MutableList<String>? = null,
@ManyToOne(fetch = FetchType.LAZY, optional = false)
var owner: User? = ... | 0 | Kotlin | 0 | 1 | eae042d24cadf9c91f2fdf65b3880a0001d0f64f | 632 | TheDarkApp.API | MIT License |
sketch-gif/src/androidTest/kotlin/com/github/panpf/sketch/gif/test/androiod/BitmapRegionDecoderTest.kt | panpf | 14,798,941 | false | null | /*
* Copyright (C) 2022 panpf <panpfpanpf@outlook.com>
*
* 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 appl... | 1 | null | 309 | 1,978 | 82ffde1ff148311bb5b36eb70a4c82224d1f3af4 | 10,481 | sketch | Apache License 2.0 |
PremiumStorefront/src/main/java/co/geeksempire/premium/storefront/Database/Read/OutputProcess.kt | eliasdfazel | 357,269,336 | false | null | /*
* Copyright © 2021 By Geeks Empire.
*
* Created by <NAME>
* Last modified 6/25/21, 5:35 AM
*
* Licensed Under MIT License.
* https://opensource.org/licenses/MIT
*/
package co.geeksempire.premium.storefront.Database.Read
class OutputProcess {
} | 0 | Kotlin | 0 | 1 | 92eb74efe6de4bf775161ae7c1901598e14dbc5b | 256 | PremiumStorefront | MIT License |
app/src/main/java/com/fahad/unitscalculator/base/BaseApp.kt | profahad | 832,124,483 | false | {"Kotlin": 31863} | package com.fahad.unitscalculator.base
import android.app.Activity
import android.app.Application
import android.os.Bundle
import com.fahad.common_data.utils.CurrentActivityProvider
import dagger.hilt.android.HiltAndroidApp
import javax.inject.Inject
@HiltAndroidApp
class BaseApp : Application(),
Application.Acti... | 0 | Kotlin | 0 | 0 | a1572eb2a17e8873f49bdb35e10b0b7569f35460 | 1,095 | units-calculator | MIT License |
src/main/kotlin/icu/windea/pls/core/search/ParadoxLocalisationSearcher.kt | DragonKnightOfBreeze | 328,104,626 | false | null | package icu.windea.pls.core.search
import com.intellij.openapi.application.*
import com.intellij.psi.search.*
import com.intellij.util.*
import icu.windea.pls.core.*
import icu.windea.pls.core.index.*
import icu.windea.pls.localisation.psi.*
/**
* 本地化的查询器。
*/
class ParadoxLocalisationSearcher: QueryExecutorBase<Par... | 2 | Kotlin | 2 | 13 | 420d29dfe90a863155d022367fd60e8b33babac4 | 953 | Paradox-Language-Support | MIT License |
pickleperfect-ecs/pickleperfect-ecs-shared/src/test/kotlin/net/mostlyoriginal/pickleperfect/internal/SubscriptionTest.kt | DaanVanYperen | 93,187,911 | false | null | package net.mostlyoriginal.pickleperfect.internal
import net.mostlyoriginal.pickleperfect.common.Bits
import net.mostlyoriginal.pickleperfect.predicate.ContainsAnyBitPredicate
import org.junit.Test
import kotlin.test.assertFalse
import kotlin.test.assertTrue
/**
* @author <NAME>
*/
class SubscriptionTest {
@Te... | 0 | Kotlin | 0 | 2 | b81cff8162943cf7dedab5276a63648446518f65 | 2,394 | pickleperfect-ecs | MIT License |
app/src/main/java/com/example/whatnow/core/data/Categories.kt | 0xSA7 | 850,304,365 | false | {"Kotlin": 54506} | package com.example.whatnow.core.data
enum class Categories(val code: String) {
BUSINESS("business"),
ENTERTAINMENT("entertainment"),
GENERAL("general"),
HEALTH("health"),
SCIENCE("science"),
SPORTS("sports"),
TECHNOLOGY("technology"),
None("");
companion object{
fun returnA... | 0 | Kotlin | 1 | 5 | beb2ba760c0fd4059eb7ee0e141bf8d759d45105 | 585 | What-Now-NewsApp | MIT License |
app/src/main/java/com/tomclaw/drawa/info/InfoView.kt | solkin | 62,579,229 | false | null | package com.tomclaw.drawa.info
import android.view.View
import android.widget.TextView
import androidx.appcompat.widget.Toolbar
import com.jakewharton.rxrelay2.PublishRelay
import com.tomclaw.drawa.R
import io.reactivex.Observable
interface InfoView {
fun navigationClicks(): Observable<Unit>
fun rateClicks(... | 1 | null | 6 | 22 | 131f0ef2a9ea88854f18ecef2250d5396da225e2 | 1,510 | drawa-android | Apache License 2.0 |
modules/feature_schedule/src/main/java/kekmech/ru/feature_schedule/find_schedule/presentation/FindScheduleActor.kt | alexberdreal | 312,900,118 | true | {"Kotlin": 408124, "Shell": 46} | package kekmech.ru.feature_schedule.find_schedule.presentation
import io.reactivex.Observable
import kekmech.ru.common_mvi.Actor
import kekmech.ru.domain_schedule.ScheduleRepository
import kekmech.ru.feature_schedule.find_schedule.presentation.FindScheduleEvent.News
internal class FindScheduleActor(
private val s... | 0 | null | 0 | 0 | 44324701b5e121bfca3fc854d3f84dffbe8ae90c | 856 | mpeiapp | MIT License |
common/src/main/kotlin/dev/msfjarvis/claw/common/ui/PasswordField.kt | msfjarvis | 289,347,156 | false | {"Kotlin": 287266, "Shell": 6744} | /*
* Copyright © 2023 Harsh Shandilya.
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
package dev.msfjarvis.claw.common.ui
import androidx.compose.foundation.clickable
import androidx.compose.material.icons.Icon... | 3 | Kotlin | 8 | 99 | 8303530857c7a94eefae83e4853438d0e73435db | 2,134 | compose-lobsters | MIT License |
app/src/main/java/com/example/baseandroid/utils/StringUtils.kt | Quokka-Labs-LLP | 654,054,080 | false | null | package com.example.baseandroid.utils
import android.app.Activity
import android.content.Context
import android.content.pm.PackageManager
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import java.util.*
fun String.capitalizeFirstLetter(): String {
if (this.isNullOrEmpty()) {
... | 0 | Kotlin | 0 | 1 | 9631a4c5c55bd945026c9b61d1a3c15dda53ba57 | 665 | base-android | MIT License |
src/main/kotlin/test/interactivestandard/app/service/FilesSizeUpdateService.kt | im-infamou5 | 670,136,513 | false | null | package test.interactivestandard.app.service
import jakarta.annotation.PostConstruct
import jakarta.annotation.PreDestroy
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.runBlocking
import org.springframework.jdbc.core.JdbcTemplate
import org.springframework.scheduling.annotation.Scheduled
import org.s... | 0 | Kotlin | 0 | 0 | c150cfd2c0ef8528be2c335d476063296ea41af6 | 718 | image-downloader | MIT License |
Dagger2/app/src/main/java/com/demo/zee/chapter02/d/ActivityScope.kt | totemtec | 368,780,586 | false | null | package com.demo.zee.chapter02.c
import android.content.Intent
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.demo.R
import retrofit2.Retrofit
import javax.inject.Inject
/**
* 使用作用域实现单例
*/
class ActivitySingleton : ... | 0 | Kotlin | 0 | 0 | 15c446d43073bc32876b0fb97d38eadd26f96dbc | 1,133 | hilt | Apache License 2.0 |
app/src/main/java/com/example/newair/data/user_locations/UserLocation.kt | vladislav-iliev | 606,184,408 | false | null | package com.example.newair.data.user_locations
import com.google.android.gms.maps.model.LatLng
data class UserLocation(val name: String, val latLng: LatLng) | 0 | Kotlin | 0 | 0 | fb8e049ada351e8be5abf2b1de3cdb7154927ff7 | 158 | NewAir | MIT License |
intellij.tools.ide.starter.junit5/src/com/intellij/ide/starter/junit5/StarterBusTestPlanListener.kt | JetBrains | 499,194,001 | false | {"Kotlin": 555547, "C++": 3610, "Makefile": 713} | package com.intellij.ide.starter.junit5
import com.intellij.tools.ide.starter.bus.EventsBus
import org.junit.platform.launcher.TestExecutionListener
import org.junit.platform.launcher.TestPlan
import java.util.concurrent.atomic.AtomicBoolean
open class StarterBusTestPlanListener : TestExecutionListener {
companion ... | 0 | Kotlin | 6 | 17 | 63ca6f3a1d55ea46c3d2e55521a37831f9cb2a56 | 858 | intellij-ide-starter | Apache License 2.0 |
app/src/main/java/ru/shadowsparky/messenger/custom_views/ImagedEditText.kt | shadowsparky | 148,388,054 | false | null | package ru.shadowsparky.messenger.custom_views
import android.content.Context
import android.os.Build
import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputConnection
import android.widget.EditText
import androidx.core.view.inputmethod.EditorInfoCompat
import androidx.core.view.inputmethod.In... | 0 | Kotlin | 0 | 0 | c9c14e5226c692dbdcea559806263a4cea78b1ac | 1,393 | vk-messenger-two | The Unlicense |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/StroopwafelSolid.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.lineawesomeicons
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
... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 5,662 | compose-icons | MIT License |
app/src/main/kotlin/com/craftandtechnology/dockerlocalhost/repository/dynamodb/converters/ZonedDateTimeAttributeConverter.kt | create1st | 348,252,347 | false | null | package com.craftandtechnology.dockerlocalhost.repository.dynamodb.converters
import software.amazon.awssdk.enhanced.dynamodb.AttributeConverter
import software.amazon.awssdk.enhanced.dynamodb.AttributeValueType
import software.amazon.awssdk.enhanced.dynamodb.EnhancedType
import software.amazon.awssdk.services.dynamod... | 5 | Kotlin | 1 | 2 | 8c9027827580d8091ff72f9830948575c7d9351c | 879 | docker-localstack | Apache License 2.0 |
app/src/main/java/cucerdariancatalin/contacts/dialogs/MyDatePickerDialog.kt | darian-catalin-cucer | 586,519,582 | false | null | package cucerdariancatalin.contacts.dialogs
import com.simplemobiletools.commons.activities.BaseSimpleActivity
import com.simplemobiletools.commons.extensions.getAlertDialogBuilder
import com.simplemobiletools.commons.extensions.setupDialogStuff
import com.simplemobiletools.commons.helpers.isSPlus
import cucerdarianca... | 0 | Kotlin | 0 | 2 | fc3c54b5cd2392fe933177c485c15aef318cb300 | 2,822 | Contacts | MIT License |
cameraViewEx/src/main/base/com/priyankvasa/android/cameraviewex/ImageProcessor.kt | msoftware | 159,532,514 | true | {"Kotlin": 155851, "RenderScript": 1028} | package com.priyankvasa.android.cameraviewex
import android.annotation.TargetApi
import android.graphics.Bitmap
import android.graphics.ImageFormat
import android.media.Image
import android.os.Build
import android.renderscript.Allocation
import android.renderscript.Element
import android.renderscript.RenderScript
impo... | 0 | Kotlin | 0 | 0 | 6b8324d969114c4fc9339cc45693714f57b5242b | 10,450 | cameraview-ex | Apache License 2.0 |
core/ui/compose/theme/src/main/java/app/k9mail/core/ui/compose/theme/Shapes.kt | thunderbird | 1,326,671 | false | null | package app.k9mail.core.ui.compose.theme
import androidx.compose.foundation.shape.CornerBasedShape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.staticCompositionLocalOf
import androidx.compose.ui.unit.dp
import androidx.compose.ma... | 789 | null | 2414 | 9,379 | 71f6713a2e7cc9d587e849329908fc2526f3923a | 751 | thunderbird-android | Apache License 2.0 |
src/main/kotlin/org/jetbrains/intellij/platform/gradle/tasks/PrepareTestTask.kt | JetBrains | 33,932,778 | false | {"Kotlin": 708285, "Java": 6924} | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.intellij.platform.gradle.tasks
import org.gradle.api.DefaultTask
import org.gradle.api.Project
import org.gradle.api.tasks.CacheableTask
import org.gradle.api.tasks.testing.Te... | 75 | Kotlin | 270 | 1,380 | 571dac1150703ba13a6bac72daadc708dfd0d654 | 886 | intellij-platform-gradle-plugin | Apache License 2.0 |
app/src/main/java/de/rauschdo/animals/di/DatabaseModule.kt | rauschdo | 752,729,154 | false | {"Kotlin": 246779, "Java": 32524} | package de.rauschdo.animals.di
import android.app.Application
import androidx.room.Room
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import de.rauschdo.animals.database.*
import javax.inject.Singleton
@Module
@InstallIn(SingletonComponent::c... | 0 | Kotlin | 0 | 0 | d193a3850a84cdcc591d2c1940711a84539ca98d | 1,337 | animals | MIT License |
app/src/main/java/ru/beryukhov/coffeegram/Application.kt | phansier | 274,754,270 | false | null | package ru.beryukhov.coffeegram
import android.app.Application
import androidx.glance.appwidget.updateAll
import com.jakewharton.threetenabp.AndroidThreeTen
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLog... | 0 | Kotlin | 14 | 173 | 65081da33412a3348dabf1be3f2ef6d228bac027 | 2,464 | Coffeegram | Apache License 2.0 |
src/main/kotlin/Search.kt | drakon64 | 622,012,311 | false | null | @file:OptIn(DelicateCoroutinesApi::class)
package cloud.drakon.ktlodestone
import cloud.drakon.ktlodestone.exception.LodestoneException
import cloud.drakon.ktlodestone.search.CharacterSearch
import cloud.drakon.ktlodestone.search.World
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.GlobalSc... | 4 | Kotlin | 0 | 1 | c70e492ba71488c3cbd77142a3b87a2d3cbbe86c | 1,194 | KtLodestone | MIT License |
klue-runtime-reactnative/src/hostMain/kotlin/com/bennyhuo/klue/reactnative/ReactNativeBridge.kt | bennyhuo | 510,040,663 | false | {"Kotlin": 62501, "Swift": 9327, "Ruby": 3696, "JavaScript": 2398, "Smarty": 1265, "HTML": 1038, "Objective-C": 312} | package com.bennyhuo.klue.reactnative
import com.bennyhuo.klue.common.CommonBridge
import com.bennyhuo.klue.common.invoke.KlueFunctionInfo
import com.bennyhuo.klue.common.invoke.KlueFunctionResult
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.json.Json
/**
* Created by benny at 2022/7/19... | 0 | Kotlin | 0 | 46 | 025390fa1b0a861240cc4cd82b0a84db013ff75f | 691 | Klue | MIT License |
src/main/kotlin/library/ByteOrder.kt | froks | 815,679,873 | false | {"Kotlin": 40674} | package library
public enum class ByteOrder {
BIG_ENDIAN,
LITTLE_ENDIAN
}
| 1 | Kotlin | 0 | 0 | 0d0371668770e32eeeb71866ff59af2e25844615 | 83 | dlt-core | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.