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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
android/app/src/main/java/com/renrenbit/rrwallet/network/ICommonApi.kt | RenrenBit-zz | 239,955,382 | false | null | package com.renrenbit.rrwallet.network
import retrofit2.Call
import retrofit2.http.*
import retrofit2.http.POST
/**
* Created by jackQ on 2018/6/1.
*/
interface ICommonApi {
@GET
fun get(@Url relativePath: String, @HeaderMap headers: Map<String, String>): Call<String>
@POST
@FormUrlEncoded
fu... | 5 | null | 54 | 99 | 73e877a900cd48c40a03cd1b101eedb84c24e191 | 646 | RRWallet | MIT License |
src/main/kotlin/io/izzel/testunits/TestItemBuilder.kt | Bkm016 | 384,852,198 | false | null | package io.izzel.testunits
import taboolib.common.LifeCycle
import taboolib.common.platform.Awake
import taboolib.library.xseries.XMaterial
import taboolib.module.chat.TellrawJson
import taboolib.module.nms.getItemTag
import taboolib.platform.util.buildItem
object TestItemBuilder {
@Awake(LifeCycle.ENABLE)
f... | 0 | Kotlin | 3 | 2 | 690a931e7886cce40164e2731c8f36c8f8186411 | 480 | TabooLib-Test-Units | Creative Commons Zero v1.0 Universal |
platform/platform-impl/src/com/intellij/platform/ProjectFrameAllocator.kt | present1001 | 203,810,020 | true | null | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.platform
import com.intellij.conversion.CannotConvertException
import com.intellij.diagnostic.runActivity
import com.intellij.ide.RecentProjectsManager
impor... | 1 | null | 1 | 1 | c029028839bd38d96f7f6916ed115a089ce6b277 | 4,510 | intellij-community | Apache License 2.0 |
sdk/src/main/kotlin/io/github/wulkanowy/sdk/pojo/GradePointsStatistics.kt | wulkanowy | 138,756,468 | false | {"Kotlin": 705036, "HTML": 70768} | package io.github.wulkanowy.sdk.pojo
data class GradePointsStatistics(
val semesterId: Int,
val subject: String,
val others: Double,
val student: Double
)
| 9 | Kotlin | 5 | 8 | 340245d8ccc2790dcb75219c2839e8bdd8b448a4 | 172 | sdk | Apache License 2.0 |
data/source/src/main/java/com/uxstate/source/local/converter/Converters.kt | Tonnie-Dev | 518,721,038 | false | {"Kotlin": 160830} | package com.uxstate.source.local.converter
import androidx.room.TypeConverter
/*Be ware of using "," as separator as sometimes your string may
have the same character and it can be a mess.*/
class Converters {
/* takes a list of string e.g. Currency list and stores it in
ROOM database as a string */
@T... | 0 | Kotlin | 0 | 5 | de0ed8b62b891acd6ebf87a8fabaa4c3e2ce08ef | 1,317 | CountriesPad | The Unlicense |
app/src/main/java/org/p2p/wallet/jupiter/repository/transaction/JupiterSwapTransactionRemoteRepository.kt | p2p-org | 306,035,988 | false | {"Kotlin": 4517101, "HTML": 3064848, "Java": 296567, "Groovy": 1601, "Shell": 1252} | package org.p2p.wallet.jupiter.repository.transaction
import kotlinx.coroutines.CancellationException
import org.p2p.solanaj.utils.crypto.Base64String
import org.p2p.wallet.infrastructure.dispatchers.CoroutineDispatchers
import org.p2p.wallet.jupiter.api.SwapJupiterApi
import org.p2p.wallet.jupiter.repository.model.Ju... | 8 | Kotlin | 18 | 33 | 509f73eb690114a77d24d1e44298819b20351b0e | 1,371 | key-app-android | MIT License |
common/src/main/java/com/sec/common/BaseFragment.kt | liuhuiAndroid | 311,604,995 | false | null | package com.sec.common
import androidx.fragment.app.Fragment
abstract class BaseFragment : Fragment() {
} | 0 | Kotlin | 0 | 1 | 2ccbf66a540cc4db738f9d3e0fdcc6f5db014526 | 108 | fizz | MIT License |
app/src/main/java/com/ckarthickit/mealdb/ui/MealItemsSectionAdapter.kt | ckarthickit2 | 198,757,650 | false | null | package com.ckarthickit.mealdb.ui
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.appcompat.widget.AppCompatTextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.... | 5 | null | 1 | 2 | 1124a1733382198204f99af9fd6046de5c4575d5 | 2,075 | android-best-practices | Linux Kernel Variant of OpenIB.org license |
android/app-newm/src/main/java/io/newm/utils/AndroidFeatureFlagManager.kt | projectNEWM | 435,674,758 | false | {"Kotlin": 562064, "Swift": 310096} | package io.newm.utils
import android.app.Application
import com.launchdarkly.sdk.ContextKind
import com.launchdarkly.sdk.LDContext
import com.launchdarkly.sdk.android.LDClient
import com.launchdarkly.sdk.android.LDConfig
import com.launchdarkly.sdk.android.LDConfig.Builder.AutoEnvAttributes
import io.newm.shared.confi... | 3 | Kotlin | 9 | 16 | 805eed8f6bb505e1a6b13483f33395e34a61aae9 | 1,812 | newm-mobile | Apache License 2.0 |
app/src/main/java/ilkadam/ilksohbet/domain/usecase/profileScreen/LoadProfileFromFirebase.kt | ademkocamaz | 803,881,747 | false | {"Kotlin": 261729} | package ilkadam.ilksohbet.domain.usecase.profileScreen
import ilkadam.ilksohbet.domain.repository.ProfileScreenRepository
class LoadProfileFromFirebase(
private val profileScreenRepository: ProfileScreenRepository
) {
suspend operator fun invoke() = profileScreenRepository.loadProfileFromFirebase()
} | 0 | Kotlin | 0 | 0 | cd06a2de124fdbc8c78085da8e9d8bcc46a74033 | 311 | ilkMuhabbet | MIT License |
app/src/main/java/com/stevesoltys/seedvault/ui/storage/StorageCheckFragment.kt | seedvault-app | 104,299,796 | false | null | package com.stevesoltys.seedvault.ui.storage
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.View.GONE
import android.view.View.INVISIBLE
import android.view.View.VISIBLE
import android.view.ViewGroup
import android.widget.Button
import android.widget.ProgressBa... | 98 | null | 9 | 998 | 2bbeece7b7a09e1b3d19f15cb037b197e7e032c6 | 2,186 | seedvault | Apache License 2.0 |
src/test/kotlin/net/rentalhost/plugins/php/hammer/inspections/flowOptimization/IfSimplificationElseInspectionTestCase.kt | hammer-tools | 509,864,102 | false | null | package net.rentalhost.plugins.php.hammer.inspections.flowOptimization
import net.rentalhost.plugins.php.hammer.services.TestCase
class IfSimplificationElseInspectionTestCase : TestCase() {
fun testAll(): Unit = testInspection(IfSimplificationElseInspection::class.java)
}
| 9 | null | 2 | 96 | eb07d4f34bdd4a588251db854e6c60ca6584886a | 277 | php-hammer | Apache License 2.0 |
src/main/kotlin/Main.kt | PedroDiogo | 432,836,814 | false | {"Kotlin": 128203} | import problems.*
import java.net.URL
import java.time.Duration
import java.time.Instant
import java.util.*
fun main() {
val problems: List<Problem> = listOf(
Day0("problems/day0".asResource().readText()),
Day1("problems/day1".asResource().readText()),
Day2("problems/day2".asResource().read... | 0 | Kotlin | 0 | 0 | 93363faee195d5ef90344a4fb74646d2d26176de | 2,437 | AdventOfCode2021 | MIT License |
shared/src/commonMain/kotlin/com/thomaskioko/tvmaniac/util/ExceptionHandler.kt | c0de-wizard | 361,393,353 | false | null | package com.thomaskioko.tvmaniac.util
import io.github.aakira.napier.Napier
import io.ktor.client.features.ResponseException
import io.ktor.client.features.ServerResponseException
import io.ktor.client.statement.HttpResponse
open class ExceptionHandler(
val errorMessage: String,
) : Exception() {
override va... | 3 | Kotlin | 1 | 16 | 051aaba6359199cb8f9815feb6e96e0f5580d589 | 1,731 | tv-maniac | Apache License 2.0 |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Curseforge.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.ui.graphics... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 5,148 | compose-icons | MIT License |
core/network/src/main/java/com/msg/network/request/auth/SignUpGovernmentRequest.kt | School-of-Company | 700,744,250 | false | {"Kotlin": 724178} | package com.msg.network.request.auth
import com.msg.model.enumdata.HighSchool
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class SignUpGovernmentRequest(
@Json(name = "email") val email: String,
@Json(name = "name") val name: String,
@Json(name... | 6 | Kotlin | 1 | 22 | 358bf40188fa2fc2baf23aa6b308b039cb3fbc8c | 689 | Bitgoeul-Android | MIT License |
app/src/main/java/com/example/cryptoflow/data/Tickers.kt | Naphtali-cpu | 428,728,616 | false | null | package com.example.cryptoflow.data
class Tickers : ArrayList<TickersItem>() | 0 | Kotlin | 1 | 2 | c0dd08f6b534af9bd1a7349529bf40e772ae84f1 | 77 | Crypto-View | The Unlicense |
http4k-core/src/main/kotlin/org/http4k/core/ContentType.kt | http4k | 86,003,479 | false | null | package org.http4k.core
import java.nio.charset.Charset
data class ContentType(val value: String, val directives: Parameters = emptyList()) {
fun withNoDirectives() = copy(directives = emptyList())
fun toHeaderValue() = (
listOf(value) +
directives
.map { it.first + (it.s... | 34 | null | 249 | 2,615 | 7ad276aa9c48552a115a59178839477f34d486b1 | 1,506 | http4k | Apache License 2.0 |
collector/src/test/java/com/bitmovin/analytics/data/EventDataTest.kt | bitmovin | 120,633,749 | false | null | package com.bitmovin.analytics.data
import com.bitmovin.analytics.TestFactory
import com.bitmovin.analytics.api.AnalyticsConfig
import com.bitmovin.analytics.api.DefaultMetadata
import com.bitmovin.analytics.api.SourceMetadata
import com.bitmovin.analytics.enums.PlayerType
import com.bitmovin.analytics.utils.DataSeria... | 0 | Kotlin | 6 | 8 | c593bdde3d6968b8be6263b5a79c20af2c95df0d | 13,363 | bitmovin-analytics-collector-android | Amazon Digital Services License |
core/src/main/kotlin/ch/ergon/dope/validtype/ValidType.kt | ergon | 745,483,606 | false | {"Kotlin": 377965} | package ch.ergon.dope.validtype
sealed interface ValidType
interface ComparableType : ValidType
interface BooleanType : ValidType
interface NumberType : ComparableType
interface StringType : ComparableType
interface NullType : ValidType
interface MissingType : ValidType
interface ArrayType<T : ValidType> : Vali... | 7 | Kotlin | 0 | 4 | 76aeb7e9a2a0bb1ee74df57c6a5efdc36d90da9d | 403 | dope-query-builder | MIT License |
app/src/main/java/ca/josephroque/bowlingcompanion/statistics/impl/overall/LeftOfMiddleHitsStatistic.kt | autoreleasefool | 28,992,199 | false | null | package ca.josephroque.bowlingcompanion.statistics.impl.overall
import android.os.Parcel
import android.os.Parcelable
import ca.josephroque.bowlingcompanion.R
import ca.josephroque.bowlingcompanion.common.interfaces.parcelableCreator
import ca.josephroque.bowlingcompanion.games.lane.Deck
import ca.josephroque.bowlingc... | 30 | Kotlin | 5 | 6 | be42ac42d6c842b3126a8841990e5f9c8c6af232 | 1,468 | bowling-companion | Apache License 2.0 |
app/src/main/java/com/mgpersia/androidbox/common/RoundedTransformation.kt | mahsak01 | 596,924,815 | false | null | package com.mgpersia.androidbox.common
import android.graphics.*
import com.squareup.picasso.Transformation
class RoundedTransformation(
private val radius: Int, // dp
private var margin: Int
) : Transformation {
override fun transform(source: Bitmap): Bitmap {
val paint = Paint()
paint.i... | 0 | Kotlin | 0 | 0 | e1ef9a8a316f76446718489f458e3a088ae55d15 | 1,165 | ArianaFilm | The Unlicense |
app/src/main/java/com/magonxesp/randomanimepicker/domain/anime/pick/AnimePick.kt | magonxesp | 741,908,674 | false | {"Kotlin": 269209, "Makefile": 1027} | package com.magonxesp.randomanimepicker.domain.anime.pick
import com.magonxesp.randomanimepicker.domain.anime.AnimeId
data class AnimePick(
val like: AnimePickLike,
val pickedOn: AnimePickOn,
val anime: AnimeId
)
| 0 | Kotlin | 0 | 1 | 1d6738bade13a9567417d2eaba2c76d156a90d69 | 218 | RandomAnimePicker-android | MIT License |
app/src/main/java/ke/derrick/steps/ui/theme/Shape.kt | Sciederrick | 607,208,726 | false | null | package ke.derrick.steps.ui.theme
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Shapes
val RoundedShapes = Shapes(
small = RoundedCornerShape(percent = 20),
medium = RoundedCornerShape(percent = 40),
large = RoundedCornerShape(percent = 50),
) | 7 | Kotlin | 0 | 0 | af5508c296b3c4fb982f5c779a5ea575b3ca0c6d | 304 | Steps | MIT License |
lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardProductService.kt | lithic-com | 592,386,416 | false | {"Kotlin": 4349340, "Java": 5023, "Shell": 1068, "Dockerfile": 305} | // File generated from our OpenAPI spec by Stainless.
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package com.lithic.api.services.blocking
import com.lithic.api.core.RequestOptions
import com.lithic.api.models.CardProductCreditDetailParams
import com.lithic.api.models.C... | 1 | Kotlin | 0 | 15 | d96120bd2375c77f762f1d90f920bf7db2303798 | 629 | lithic-java | Apache License 2.0 |
lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardProductService.kt | lithic-com | 592,386,416 | false | {"Kotlin": 4349340, "Java": 5023, "Shell": 1068, "Dockerfile": 305} | // File generated from our OpenAPI spec by Stainless.
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package com.lithic.api.services.blocking
import com.lithic.api.core.RequestOptions
import com.lithic.api.models.CardProductCreditDetailParams
import com.lithic.api.models.C... | 1 | Kotlin | 0 | 15 | d96120bd2375c77f762f1d90f920bf7db2303798 | 629 | lithic-java | Apache License 2.0 |
app/src/main/kotlin/com/numero/sojodia/ui/splash/SplashPresenter.kt | NUmeroAndDev | 58,176,699 | false | null | package com.numero.sojodia.ui.splash
import com.numero.sojodia.core.Presenter
interface SplashPresenter : Presenter | 14 | Kotlin | 3 | 9 | 8769696e7f087a78d036956569c1d73ff0507df7 | 117 | SojoDia-android | MIT License |
src/main/kotlin/io/github/dqualizer/dqlang/types/adapter/ctk/Pauses.kt | dqualizer | 610,310,524 | false | {"Kotlin": 110854, "HTML": 3542, "Python": 3352} | package io.github.dqualizer.dqlang.types.adapter.ctk
data class Pauses(
val before: Int = 0,
val after: Int = 0
)
| 6 | Kotlin | 0 | 0 | 938543c2fd0602879492bd9183c668d98d631f3c | 119 | dqlang | Apache License 2.0 |
app/src/main/java/com/challenge/android_template/ui/MainActivity.kt | merRen22 | 392,808,733 | false | null | package com.challenge.android_template.ui
import android.annotation.SuppressLint
import android.graphics.drawable.TransitionDrawable
import android.os.Build
import android.os.Bundle
import androidx.activity.viewModels
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import an... | 0 | Kotlin | 0 | 0 | e94b54a1b9f4786315bfdf6caf81445fc89b9fab | 3,415 | template-android | Apache License 2.0 |
src/main/kotlin/com/charylin/game/model/Blast.kt | GitLqr | 313,784,463 | false | null | package com.charylin.game.model
import com.charylin.game.Config
import com.charylin.game.business.Destroyable
import org.itheima.kotlin.game.core.Painter
/**
* @author LQR
* @time 2020/11/19
* @desc 爆炸物
*/
class Blast(override val x: Int, override val y: Int) : View, Destroyable {
override val width: Int = C... | 0 | Kotlin | 0 | 1 | 437ee515e3456679b178223dcc9ef5004cf40857 | 787 | game-tank | MIT License |
applications/tools/universal-blob-inspector/src/main/kotlin/net/corda/blobinspector/amqp/DynamicDescriptorRegistry.kt | corda | 346,070,752 | false | {"Kotlin": 20585419, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.blobinspector.amqp
import org.apache.qpid.proton.amqp.UnsignedInteger
class DynamicDescriptorRegistry(private val lenientBuiltIns: Boolean = false) {
private val prefix = "net.corda:"
private val types: MutableMap<Descriptor, TypeHandle> = mutableMapOf()
init {
for (value in Pr... | 11 | Kotlin | 27 | 69 | d478e119ab288af663910f9a2df42a7a7b9f5bce | 2,964 | corda-runtime-os | Apache License 2.0 |
backend.native/tests/external/stdlib/text/StringTest/reverse.kt | juliuskunze | 116,136,849 | false | null | import kotlin.test.*
fun box() {
assertEquals("dcba", "abcd".reversed())
assertEquals("4321", "1234".reversed())
assertEquals("", "".reversed())
}
| 0 | null | 0 | 1 | 2e07b3f52f99b51d353a8c0e53bdf9fff86988e0 | 162 | kotlin-native | Apache License 2.0 |
core/presentation/src/main/kotlin/org/cazait/presentation/ui/signin/SignInFragment.kt | CaZaIt | 594,701,085 | false | null | package org.cazait.presentation.ui.signin
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.Lifecy... | 2 | Kotlin | 0 | 0 | 31b6496d1e028fe002c146319333b3f795e4c1c3 | 3,067 | CaZaIt-Android-Admin | Apache License 2.0 |
buildSrc/src/main/kotlin/korlibs/korge/gradle/targets/js/Esbuild.kt | korlibs | 80,095,683 | false | null | package korlibs.korge.gradle.targets.js
import korlibs.korge.gradle.*
import korlibs.korge.gradle.util.*
import org.gradle.api.*
import org.gradle.api.file.*
import org.gradle.api.tasks.*
import org.jetbrains.kotlin.gradle.targets.js.ir.*
import java.io.*
fun Project.configureEsbuild() {
try {
configureEr... | 464 | null | 123 | 2,497 | 1a565007ab748e00a4d602fcd78f7d4032afaf0b | 6,232 | korge | Apache License 2.0 |
tehreer-android/src/main/java/com/mta/tehreer/graphics/GlyphKey.kt | Tehreer | 68,520,755 | false | null | /*
* Copyright (C) 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 2 | C | 16 | 78 | 74aa7286b37efe058971e3bee427214bffbc5ad5 | 4,069 | Tehreer-Android | Apache License 2.0 |
src/main/java/io/acari/DDLC/themes/dark/DeletedCharacterTheme.kt | ezc | 161,744,541 | false | null | package io.acari.DDLC.themes.dark
import com.chrisrm.ideaddlc.utils.MTAccents
import io.acari.DDLC.themes.DokiDokiTheme
import javax.swing.plaf.ColorUIResource
/**
* C̸̮͙̭̀h̷̯̯̋͊̅ä̶̠̟̝́ȑ̸̟̝̪̇a̵̞̙͝c̴̩͝t̵̳͉̆ẻ̴̫r̸̨̢͑ ̷̡̛̛͍͐n̶̡͚̻̽o̵͈͌̈͝t̴̻͚͑̏̽ ̴̰͌f̷̫͛ò̴̠̺̝ú̵̧̲̘̐̚ṅ̸̠̠̰d̵̦͎̲͠͠
*/
class DeletedCharacterTheme : DokiDo... | 1 | null | 1 | 1 | de9010c32203e5fe52cc10f550581fad081a264e | 2,294 | ddlc-jetbrains-theme | MIT License |
sdk/src/test/java/com/stytch/sdk/consumer/network/StytchApiTest.kt | stytchauth | 314,556,359 | false | {"Kotlin": 1178299, "HTML": 508} | package com.stytch.sdk.consumer.network
import android.app.Application
import android.content.Context
import com.stytch.sdk.common.DeviceInfo
import com.stytch.sdk.common.EncryptionManager
import com.stytch.sdk.common.StorageHelper
import com.stytch.sdk.common.StytchResult
import com.stytch.sdk.common.errors.StytchAPI... | 0 | Kotlin | 1 | 22 | a2a54bc90fdfd47aca01a35e972448076c164929 | 24,954 | stytch-android | MIT License |
src/main/kotlin/kt/kotlinalgs/app/graph/KruskalMST.ws.kts | sjaindl | 384,471,324 | false | {"Java": 388563, "Kotlin": 302517, "Shell": 5915, "Batchfile": 3122} | package kt.kotlinalgs.app.graph
println("Test")
Solution().test()
class Solution {
fun test() {
//https://www.geeksforgeeks.org/kruskals-minimum-spanning-tree-algorithm-greedy-algo-2/
val vertice0 = Vertice(0)
val vertice1 = Vertice(1)
val vertice2 = Vertice(2)
val vertice... | 1 | null | 1 | 1 | e7ae2fcd1ce8dffabecfedb893cb04ccd9bf8ba0 | 4,159 | KotlinAlgs | MIT License |
kotlin-remix-run-router/src/main/generated/remix/run/router/AgnosticDataRouteObject.kt | JetBrains | 93,250,841 | false | null | @file:JsModule("@remix-run/router")
@file:JsNonModule
@file:Suppress(
"NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE",
"NAME_CONTAINS_ILLEGAL_CHARS",
)
package remix.run.router
/**
* A data route object, which is just a RouteObject with a required unique ID
*/
typealias AgnosticDataRouteObject = Any /* A... | 20 | Kotlin | 162 | 1,140 | 75827d7f288fecb503092f644abd7c49e31d639b | 385 | kotlin-wrappers | Apache License 2.0 |
src/main/kotlin/org/move/cli/runConfigurations/aptos/FunctionCallConfigurationBase.kt | pontem-network | 279,299,159 | false | {"Kotlin": 1720857, "Move": 30827, "Lex": 5466, "HTML": 1737} | package org.move.cli.runConfigurations.aptos
import com.intellij.execution.configurations.ConfigurationFactory
import com.intellij.openapi.project.Project
import org.move.cli.MoveProject
import org.move.cli.moveProjects
abstract class FunctionCallConfigurationBase(
project: Project,
factory: ConfigurationFact... | 12 | Kotlin | 25 | 61 | 6ebc0235bfef60666b09fcf71ace86821ad15705 | 927 | intellij-move | MIT License |
wpi/src/main/kotlin/frc/team4069/saturn/lib/hid/SaturnHID.kt | FRCTeam4069 | 152,143,141 | false | null | /*
* Copyright 2019 <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... | 0 | Kotlin | 0 | 5 | cafa7ae6dbd39177f807d5aaa5ef17c98f057826 | 4,503 | SaturnLibrary | Apache License 2.0 |
zircon.core/src/jvmTest/kotlin/org/hexworks/zircon/internal/behavior/impl/ThreadSafeLayerableTest.kt | klaushauschild1984 | 251,023,634 | false | {"Gradle Kotlin DSL": 7, "Markdown": 7, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Kotlin": 730, "YAML": 2, "XML": 3, "Java": 42} | package org.hexworks.zircon.internal.behavior.impl
import org.assertj.core.api.Assertions.assertThat
import org.hexworks.zircon.api.CP437TilesetResources
import org.hexworks.zircon.api.builder.graphics.LayerBuilder
import org.hexworks.zircon.api.data.Position
import org.hexworks.zircon.api.data.Size
import org.hexwork... | 1 | null | 1 | 1 | 8b6adaadeef6931accd467dc5628027e7470075a | 1,813 | zircon | Apache License 2.0 |
src/main/java/com/sayzen/campfiresdk/models/objects/FandomParam.kt | ZeonXX | 381,986,881 | false | null | package com.sayzen.campfiresdk.models.objects
import com.dzen.campfire.api.models.translate.Translate
import com.sayzen.campfiresdk.controllers.t
class FandomParam(
val index: Long,
private val mame: Translate
) {
val name: String
get() = t(mame)
} | 0 | Kotlin | 1 | 0 | f35704dd1b362a631055fa64768decc0d612a46c | 280 | CampfireSDK | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/WelcomeActivity.kt | nihaolqs | 347,816,950 | false | null | package com.example.androiddevchallenge
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.materia... | 0 | Kotlin | 0 | 0 | d8f69069448f53454fb4cc81b81ccc60b3f16595 | 1,952 | compose_week_3 | Apache License 2.0 |
app/src/main/java/com/better/alarm/presenter/UiStore.kt | yuriykulikov | 4,096,259 | false | null | package com.better.medicalAlarm.presenter
import com.better.medicalAlarm.configuration.EditedAlarm
import io.reactivex.subjects.BehaviorSubject
import io.reactivex.subjects.PublishSubject
import io.reactivex.subjects.Subject
/** Created by Yuriy on 11.08.2017. */
interface UiStore {
fun editing(): BehaviorSubject<E... | 53 | null | 157 | 445 | 533072ecd400ed6b1bf59d2535483682692c263a | 738 | AlarmClock | Apache License 2.0 |
kirc-suspending/src/main/kotlin/de/cmdjulian/kirc/client/SuspendingContainerImageClientFactory.kt | cmdjulian | 524,628,199 | false | null | package de.cmdjulian.kirc.client
import com.github.kittinunf.fuel.core.FuelManager
import de.cmdjulian.kirc.image.ContainerImageName
import de.cmdjulian.kirc.impl.ContainerRegistryApi
import de.cmdjulian.kirc.impl.ContainerRegistryApiImpl
import de.cmdjulian.kirc.impl.SuspendingContainerImageClientImpl
import de.cmdju... | 6 | Kotlin | 0 | 10 | 70ce7be12985b5cb5ab9638fb4c7470670ea82c0 | 2,202 | kirc | MIT License |
remoting/src/main/kotlin/com/agmtopy/kocketmq/remoting/netty/NettyRequestProcessor.kt | agmtopy | 376,882,907 | false | null | package com.agmtopy.kocketmq.remoting.netty
import com.agmtopy.kocketmq.remoting.RemotingCommand
import io.netty.channel.ChannelHandlerContext
/**
* Netty请求处理器
*/
interface NettyRequestProcessor {
/**
* 处理请求
*/
@Throws(Exception::class)
fun processRequest(ctx: ChannelHandlerContext?, request: ... | 1 | null | 1 | 1 | 91e15b054ff8f1784d79b96e498894065ba025f8 | 420 | kocketmq | Apache License 2.0 |
src/main/kotlin/com/cognifide/gradle/common/build/Retry.kt | wttech | 237,183,159 | false | {"Gradle Kotlin DSL": 2, "YAML": 3, "Markdown": 1, "Shell": 2, "Java Properties": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "INI": 1, "Kotlin": 99, "Java": 6, "SVG": 1} | package com.cognifide.gradle.common.build
import com.cognifide.gradle.common.CommonException
import com.cognifide.gradle.common.CommonExtension
import com.cognifide.gradle.common.utils.Formats
import kotlin.math.max
class Retry(val common: CommonExtension) {
var times = 1L
var delay: (Long) -> Long = { 0L }... | 9 | Kotlin | 2 | 4 | c132b8ec82e68247308070309f7f5481dc77914b | 2,849 | gradle-common-plugin | Apache License 2.0 |
compose/src/commonMain/kotlin/com/camackenzie/exvi/client/model/ComposeExerciseSet.kt | CallumMackenzie | 450,286,341 | false | {"Kotlin": 239407, "Swift": 582} | @file:Suppress("UNCHECKED_CAST")
package com.camackenzie.exvi.client.model
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import com.camackenzie.exvi.core.model.*
import com.camackenzie... | 1 | Kotlin | 0 | 0 | 033a4826b7cd6dd856fc65605414f73f56a646db | 2,580 | exvi-client | Apache License 2.0 |
src/main/kotlin/org/beckn/one/sandbox/bap/client/order/status/controllers/OnOrderStatusPollController.kt | OSSVerse | 853,138,400 | false | {"Kotlin": 651081, "Jinja": 3324} | package org.beckn.one.sandbox.bap.client.order.status.controllers
import org.beckn.one.sandbox.bap.auth.utils.SecurityUtil
import org.beckn.one.sandbox.bap.client.external.bap.ProtocolClient
import org.beckn.one.sandbox.bap.client.order.status.services.OnOrderStatusService
import org.beckn.one.sandbox.bap.client.share... | 0 | Kotlin | 0 | 8 | b3ca6a6455f41b9d53bbb35f5c01e31c1fde2638 | 4,859 | OSSVerse-buyer-app | Apache License 2.0 |
app/src/main/java/com/neo/fbrules/main/data/model/DataCredential.kt | Irineu333 | 442,610,375 | false | null | package com.neo.fbrules.main.data.model
data class DataCredential(
val privateKey: String,
val databaseKey: String
) | 2 | Kotlin | 2 | 4 | 84b17274eb8f4e823d4d205b350163494d400a97 | 125 | DatabaseRules | MIT License |
feature/listing/src/main/kotlin/com/github/felipehjcosta/marvelapp/listing/presentation/CharacterItemViewModel.kt | felipehjcosta | 73,579,053 | false | {"Kotlin": 164257, "Java": 7399, "Shell": 467} | package com.github.felipehjcosta.marvelapp.listing.presentation
class CharacterItemViewModel(val id: Long, val name: String, val image: String)
| 0 | Kotlin | 0 | 16 | f48c56c345622ac6dcf3fc8203c2b77114b5077b | 145 | marvel-app | MIT License |
abstract-factory/src/main/kotlin/io/kommons/designpatterns/abstractfactory/FactoryMaker.kt | debop | 235,066,649 | false | null | package io.kommons.designpatterns.abstractfactory
import io.kommons.designpatterns.abstractfactory.elf.ElfKingdomFactory
import io.kommons.designpatterns.abstractfactory.orc.OrcKingdomFactory
/**
* FactoryMaker
*
* @author debop
* @since 28/09/2019
*/
object FactoryMaker {
enum class KingdomType {
E... | 0 | Kotlin | 11 | 53 | c00bcc0542985bbcfc4652d0045f31e5c1304a70 | 507 | kotlin-design-patterns | Apache License 2.0 |
app/src/main/java/com/googof/bitcointimechainwidgets/mempool/halving/NextHalvingGlanceWidgetReceiver.kt | gooGofZ | 573,747,284 | false | {"Kotlin": 116937} | package com.googof.bitcointimechainwidgets.mempool.halving
import android.content.Context
import androidx.glance.appwidget.GlanceAppWidgetReceiver
class NextHalvingGlanceWidgetReceiver : GlanceAppWidgetReceiver() {
override val glanceAppWidget = NextHalvingGlanceWidget()
override fun onEnabled(context: Conte... | 1 | Kotlin | 2 | 12 | 1a4bbb6f1f69f21cc31ebca8beaeecdcf35e6bc9 | 540 | BitcoinTimechainWidgets | Apache License 2.0 |
common/src/main/java/com/zlagi/common/exception/NetworkException.kt | Zlagi | 475,379,557 | false | {"Kotlin": 496613} | package com.zlagi.common.exception
sealed class NetworkException : Exception() {
object NetworkUnavailable : NetworkException()
object Network : NetworkException()
object NotFound : NetworkException()
object BadRequest : NetworkException()
object NotAuthorized : NetworkException()
object Servic... | 0 | Kotlin | 12 | 63 | dffd07e8533c285bb5ca9de4e9676985aa0e87cc | 533 | Blogfy | Apache License 2.0 |
gradle-plugin/plugin/src/functionalTest/kotlin/com/emergetools/android/gradle/base/EmergeGradleRunner.kt | EmergeTools | 645,957,551 | false | {"Kotlin": 255570} | package com.emergetools.android.gradle.base
import com.emergetools.android.gradle.EmergePluginTest
import okhttp3.HttpUrl
import okhttp3.mockwebserver.MockWebServer
import org.gradle.internal.impldep.com.google.common.io.Files
import org.gradle.testkit.runner.BuildResult
import org.gradle.testkit.runner.GradleRunner
i... | 3 | Kotlin | 1 | 9 | 8174b9c6e2d7791e01363aabd4d287736bfa38c4 | 5,737 | emerge-android | Apache License 2.0 |
src/main/kotlin/com/peasenet/util/KeyBindUtils.kt | gavinsmod | 666,761,068 | false | null | /*
* Copyright (c) 2022-2023. <NAME> and contributors.
*
* 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... | 0 | Kotlin | 0 | 0 | c2c751aee401e99903fb80031f1f6e467867e30a | 2,704 | gemclient-core | MIT License |
app/src/main/java/com/anangkur/footbalku/feature/league/LeagueActionListener.kt | anangkur | 228,181,423 | false | null | package com.anangkur.footbalku.feature.league
import com.anangkur.footbalku.data.model.League
interface LeagueActionListener {
fun onClickItem(data: League)
} | 0 | Kotlin | 0 | 1 | 40e60bad7c73849114af407e1cd9c108f849674d | 164 | Football-Ku | MIT License |
simplified-books-covers/src/main/java/org/nypl/simplified/books/covers/BookCoverBadgeOffset.kt | NatLibFi | 730,988,035 | false | {"Kotlin": 3601772, "JavaScript": 853788, "Java": 403841, "CSS": 65407, "HTML": 49894, "Shell": 18611, "Ruby": 7554} | package org.nypl.simplified.books.covers
data class BookCoverBadgeOffset (
val x: Int,
val y: Int
){
/** Determine static offsets in DP, which is then scaled to pixels in the cover image **/
companion object {
@JvmStatic
val OFFSET_DEFAULT: BookCoverBadgeOffset = BookCoverBadgeOffset(0,0)
@JvmStati... | 1 | Kotlin | 0 | 0 | 6c3ed3c296495b86bb069dda53e3c3670a9ad101 | 493 | ekirjasto-android-core | Apache License 2.0 |
chartsfeature/src/test/java/com/simtop/chart/presentation/ChartViewModelTest.kt | simtop | 319,123,588 | false | {"Gradle": 4, "Gradle Kotlin DSL": 2, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 6, "Batchfile": 1, "Markdown": 1, "Proguard": 3, "XML": 24, "Kotlin": 51, "JSON": 2, "INI": 2, "Java": 1} | package com.simtop.chart.presentation
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.simtop.chart.presentation.chart.ChartViewState
import com.simtop.chart.presentation.chart.ChartViewModel
import com.simtop.chart.domain.usecases.GetMarketPriceUseCase
import com.simtop.chart.utils.fakeMa... | 0 | Kotlin | 0 | 0 | aed8de6a8653b185cc1904b8c466fc1ea0afbc46 | 2,000 | BitCoinChartFeatureModulesRx | MIT License |
app/src/main/java/com/babylon/wallet/android/presentation/settings/securitycenter/SecurityCenterScreen.kt | radixdlt | 513,047,280 | false | {"Kotlin": 4396111, "HTML": 215350, "Ruby": 2757, "Shell": 1963} | package com.babylon.wallet.android.presentation.settings.securitycenter
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import ... | 7 | Kotlin | 11 | 6 | c024b6ed21372d13ed8eba68ed04cef0aa73333b | 16,785 | babylon-wallet-android | Apache License 2.0 |
app/src/main/java/com/meksconway/covid/ui/fragment/home/HomeFragment.kt | meksconways | 256,483,114 | false | null | package com.meksconway.covid.ui.fragment.home
import androidx.lifecycle.Observer
import androidx.recyclerview.widget.GridLayoutManager
import com.jakewharton.rxbinding3.view.clicks
import com.meksconway.covid.R
import com.meksconway.covid.base.BaseFragment
import com.meksconway.covid.common.HomeFragmentRecyclerViewIte... | 0 | Kotlin | 1 | 2 | 8feaacf6dc251b6359c19113e2dd0e2f05575d8d | 3,220 | Covid-19-Android | MIT License |
src/main/kotlin/pistonlang/compiler/common/items/HandleTrees.kt | PistonLang | 594,852,711 | false | null | package pistonlang.compiler.common.items
import pistonlang.compiler.common.language.SyntaxType
import pistonlang.compiler.common.parser.RelativeNodeLoc
import pistonlang.compiler.util.NonEmptyList
import pistonlang.compiler.util.nonEmptyListOf
data class HandleTree<out Type: SyntaxType>(
val dataList: List<Handle... | 0 | Kotlin | 0 | 0 | ca127e4c1e79f1361a4319171177fecf608e94c0 | 1,082 | compiler | MIT License |
SDF/src/me/anno/sdf/shapes/SDFHeart.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.ecs.components.mesh.sdf.shapes
import me.anno.ecs.components.mesh.TypeValue
import me.anno.ecs.components.mesh.sdf.SDFComposer.dot2
import me.anno.ecs.components.mesh.sdf.VariableCounter
import me.anno.maths.Maths.SQRT2F
import me.anno.maths.Maths.max
import me.anno.maths.Maths.min
import me.anno.maths... | 0 | null | 3 | 9 | 17bbf880148cbbc81edae00494411d18e390ccd3 | 2,561 | RemsEngine | Apache License 2.0 |
app/src/main/java/openfoodfacts/github/scrachx/openfood/images/ImageSize.kt | openfoodfacts | 35,174,991 | false | null | package openfoodfacts.github.scrachx.openfood.images
/**
* Image size. Warn: don't change these values: they are used to retrieve API keys
*/
enum class ImageSize {
SMALL, DISPLAY, THUMB
} | 390 | null | 447 | 772 | 836bab540ec9e2792b692a3b25ff61e444fae045 | 195 | openfoodfacts-androidapp | Apache License 2.0 |
githubApi/src/commonMain/kotlin/io/github/opletter/espul/gh/data/Team.kt | DennisTsar | 739,949,683 | false | {"Kotlin": 161521, "HTML": 398} | package io.github.opletter.espul.gh.data
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonNull
@Serializable
data class Team(
val description: String?,
@SerialName("html_url")
val htmlUrl: String,
val id: Int,
@SerialName("memb... | 0 | Kotlin | 0 | 0 | ae8b4f59abd2b593698a050baa01fa4ce3f0c5aa | 1,444 | Espul | Apache License 2.0 |
app/src/main/java/com/example/inventory/ui/home/HomeViewModel.kt | sfeng1 | 785,449,063 | false | {"Kotlin": 33995} | /*
* <NAME>
* OSU
* CS 492
*/
package com.example.inventory.ui.home
import android.util.Log
import androidx.compose.material3.Text
import androidx.lifecycle.ViewModel
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import com.example.inv... | 0 | Kotlin | 0 | 0 | 12cddf80f082f0febc4ad798d2d82fdbc8b7a2f6 | 4,245 | flight-search | Apache License 2.0 |
src/commonMain/kotlin/com/jeffpdavidson/kotwords/formats/unidecode/x5c.kt | jpd236 | 143,651,464 | false | {"Kotlin": 4427197, "HTML": 41941, "Rouge": 3731, "Perl": 1705, "Shell": 744, "JavaScript": 618} | package com.jeffpdavidson.kotwords.formats.unidecode
internal val x5c = arrayOf(
// 0x5c00: 尀 => Po
"\u0050\u006f\u0020",
// 0x5c01: 封 => Feng
"\u0046\u0065\u006e\u0067\u0020",
// 0x5c02: 専 => Zhuan
"\u005a\u0068\u0075\u0061\u006e\u0020",
// 0x5c03: 尃 => Fu
"\u0046\u0075\u0020",
... | 8 | Kotlin | 6 | 25 | e18e9cf0bad7497da15b40f6c81ba4234ec83917 | 14,627 | kotwords | Apache License 2.0 |
app/src/main/java/dev/pimentel/marvelapp/shared/network/RequestInterceptor.kt | bfpimentel | 225,730,080 | false | null | package dev.pimentel.marvelapp.shared.network
import android.content.Context
import dev.pimentel.marvelapp.R
import okhttp3.Interceptor
import okhttp3.Response
import java.math.BigInteger
import java.security.MessageDigest
import java.util.*
/**
* @author <NAME> on 04/12/2019
*/
class RequestInterceptor(
privat... | 0 | Kotlin | 0 | 0 | 8990a7f098e15ad35b4cf743b79be6424b5ff2c4 | 1,745 | marvel-app | MIT License |
app/src/main/java/com/example/stockmarket/data/mapper/CompanyMapper.kt | NathanP11 | 802,882,602 | false | {"Kotlin": 37530} | package com.example.stockmarket.data.mapper
import com.example.stockmarket.data.local.CompanyListingEntity
import com.example.stockmarket.data.remote.dto.CompanyInfoDto
import com.example.stockmarket.domain.model.CompanyInfo
import com.example.stockmarket.domain.model.CompanyListing
fun CompanyListingEntity.toCompany... | 0 | Kotlin | 0 | 0 | 71a830026a308be1d6719430cf66ecf81c45638d | 661 | stock-market-app-main | Apache License 2.0 |
one.irradia.mime.tests/src/main/java/one/irradia/mime/tests/MIMELexerContract.kt | irradia | 177,191,881 | false | {"Gradle": 6, "INI": 4, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Text": 2, "XML": 4, "YAML": 1, "Markdown": 1, "Kotlin": 18, "Java": 2, "Java Properties": 1} | package one.irradia.mime.tests
import one.irradia.mime.api.MIMELexerResult
import one.irradia.mime.api.MIMELexerType
import one.irradia.mime.api.MIMEToken.EOF
import one.irradia.mime.api.MIMEToken.Equals
import one.irradia.mime.api.MIMEToken.MIMETextToken.Quoted
import one.irradia.mime.api.MIMEToken.MIMETextToken.Text... | 1 | null | 1 | 1 | a7fdefce539d5367c6f740ef8e430e71d4115274 | 7,891 | one.irradia.mime | BSD Zero Clause License |
src/main/kotlin/com/demonwav/mcdev/platform/bungeecord/inspection/BungeeCordListenerImplementedInspection.kt | Earthcomputer | 240,984,777 | false | null | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2022 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.platform.bungeecord.inspection
import com.demonwav.mcdev.platform.bungeecord.util.BungeeCordConstants
import com.demonwav.mcdev.util.addImplements
import com.demonwav... | 204 | null | 2 | 23 | ab8aaeb8804c7a8b2e439e063a73cb12d0a9d4b5 | 2,271 | MinecraftDev | MIT License |
FrenchKotlinIdeaProject/src/main/kotlin/Main.kt | TimCook314 | 674,810,000 | false | {"Kotlin": 90309} | //fun main() {
// println("Hello, World!")
//}
import java.io.BufferedReader
import java.io.File
import java.io.FileReader
// ---------------------------
fun main(args: Array<String>) {
println("Hello World!")
// Try adding program arguments via Run/Debug configuration.
// Learn more about running a... | 0 | Kotlin | 0 | 0 | ba274908eb21411b614e462a7adcdc211fb8f7dd | 23,904 | FrenchLangApp | MIT License |
tests/push-apps-unit-tests/src/test/kotlin/unit/ConfigReaderTest.kt | cloudfoundry-incubator | 114,146,752 | false | null | package unit
import org.apache.commons.io.FilenameUtils
import org.assertj.core.api.Assertions.assertThat
import org.cloudfoundry.tools.pushapps.config.ConfigReader
import org.cloudfoundry.tools.pushapps.config.DatabaseDriver
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.context
import org.jetbr... | 10 | Kotlin | 2 | 1 | e4971e4f85de88b9a08eccf998172842aa784666 | 9,081 | push-apps | Apache License 2.0 |
config/src/main/kotlin/uk/govuk/app/config/flags/local/LocalFlagRepo.kt | alphagov | 788,896,208 | false | {"Kotlin": 107147} | package uk.govuk.app.config.flags.local
import javax.inject.Inject
class LocalFlagRepo @Inject constructor() {
fun isSearchEnabled() = true
} | 0 | Kotlin | 0 | 1 | dad64eb082223cd12bb0bb30578653752f9824d9 | 149 | govuk-mobile-android-app | MIT License |
app/src/main/java/com/wegdut/wegdut/CourseService.kt | laishere | 301,439,203 | false | null | package com.wegdut.wegdut
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Build
import android.os.IBinder
import androidx.core.app.Notif... | 0 | Kotlin | 2 | 6 | b62720ce8fbe79817b9c05e6bb1eeff09f53e804 | 6,709 | wegdut-android | MIT License |
weiV/src/main/java/cn/flutterfirst/weiv/wrappers/linearlayout/weiVFlex.kt | hackware1993 | 493,227,143 | false | {"Kotlin": 128669, "Java": 7893} | package cn.flutterfirst.weiv.wrappers.linearlayout
import android.annotation.SuppressLint
import android.content.Context
import android.os.Build
import android.view.Gravity
import android.view.View
import android.widget.LinearLayout
import cn.flutterfirst.weiv.core.WeiV
import cn.flutterfirst.weiv.core.extension.Exten... | 5 | Kotlin | 8 | 75 | 17867a038c0002e5f80ab40b4ebc6c7e8e440572 | 4,133 | weiV | MIT License |
app/src/androidTest/kotlin/jp/co/yumemi/android/code_check/TestExtensions.kt | tshion | 707,962,901 | false | {"Kotlin": 86653} | package jp.co.yumemi.android.code_check
import androidx.test.platform.app.InstrumentationRegistry
/**
* リソースID の文字列表記へ変換
*
* ※参考文献: [Androidテスト全書](https://peaks.cc/books/android_testing) p. 193
*/
fun Int.toName(): String = InstrumentationRegistry.getInstrumentation()
.targetContext
.resources
.getRe... | 29 | Kotlin | 0 | 0 | d34bc53c0aa1eca3361953246b3ce8e7a423bc2f | 337 | yumemi-inc_android-engineer-codecheck | Apache License 2.0 |
trixnity-olm/src/jsMain/kotlin/net.folivo.trixnity.olm/Pointers.kt | benkuly | 330,904,570 | false | {"Kotlin": 4165934, "JavaScript": 5352, "TypeScript": 2906, "CSS": 1454, "Dockerfile": 1328} | package net.folivo.trixnity.olm
actual typealias OlmAccountPointer = Account
actual typealias OlmInboundGroupSessionPointer = InboundGroupSession
actual typealias OlmOutboundGroupSessionPointer = OutboundGroupSession
actual typealias OlmPkDecryptionPointer = PkDecryption
actual typealias OlmPkEncryptionPointer = PkEnc... | 0 | Kotlin | 3 | 30 | 6dfadb2efa1843a33030fba9eb6be0bfecdfb94d | 503 | trixnity | Apache License 2.0 |
app/src/main/java/com/kaboom/kidsmathgame/GameActivity.kt | frashasantoYT | 800,977,604 | false | {"Kotlin": 19462} | package com.kaboom.kidsmathgame
import android.annotation.SuppressLint
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.CountDownTimer
import android.view.View
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.a... | 0 | Kotlin | 0 | 1 | 2b350b87563147d342e7340d8b0b06ee3d303d0d | 8,148 | Kids-Math-Game | MIT License |
android/src/main/java/com/callstack/reactnativebrownfield/ReactNativeFragment.kt | callstack | 196,995,247 | false | null | package com.callstack.reactnativebrownfield;
import android.annotation.TargetApi
import android.os.Build
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.KeyEvent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.facebook.infer.annota... | 31 | null | 16 | 238 | bf5312d853bb97968436e34bbe7df3d64efb224a | 6,387 | react-native-brownfield | MIT License |
feature/player/src/main/kotlin/com/flammky/musicplayer/player/presentation/presenter/PlaybackObserver.kt | flammky | 462,795,948 | false | null | package com.flammky.musicplayer.player.presentation.presenter
import com.flammky.musicplayer.base.media.playback.OldPlaybackQueue
import com.flammky.musicplayer.base.media.playback.PlaybackProperties
import kotlinx.coroutines.Job
import kotlinx.coroutines.flow.StateFlow
import kotlin.coroutines.CoroutineContext
import... | 0 | null | 6 | 56 | 2b8b4affab4306e351cfc8721c15a5bc7ecba908 | 3,198 | Music-Player | Apache License 2.0 |
sample-simple-app-without-plugins/src/test/kotlin/com/damianchodorek/sample_simple_app_without_plugins/controller/interactor/MakeApiCallInteractorImplTest.kt | DamianChodorek | 129,797,476 | false | null | package com.damianchodorek.sample_simple_app_without_plugins.controller.interactor
import com.damianchodorek.sample_simple_app_without_plugins.utils.RxTestRule
import io.reactivex.schedulers.TestScheduler
import org.junit.Rule
import org.junit.Test
import java.util.concurrent.TimeUnit
/**
* @author <NAME>
*/
class ... | 0 | Kotlin | 0 | 2 | c72df09782cdb9483bbde3503a167f2d5bc760b4 | 1,124 | renshi-redux | Apache License 2.0 |
MLKitCustom/app/src/main/java/com/google/mlkit/vision/demo/EntryChoiceActivity.kt | Rishit-dagli | 284,226,663 | false | null | /*
* Copyright 2020 Google LLC. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 54 | null | 5 | 73 | 2d25277dd1cdad4758cda70a96ccd3621088a997 | 1,522 | ML-with-Android-11 | Apache License 2.0 |
app/src/main/java/com/forecaster/weatherlens/data/Forecast.kt | raghulk | 409,059,304 | false | null | package com.forecaster.weatherlens.data
import com.squareup.moshi.Json
data class Forecast(
val lat: Double?,
val lon: Double?,
val timezone: String?,
@Json(name = "timezone_offset")
val timezoneOffset: Int?,
var daily: List<DailyForecast>?,
) {
data class DailyForecast(
val dt: Lo... | 0 | Kotlin | 0 | 0 | b3155011347e1e5b14f5b094e0a670b65d1bb38c | 1,662 | WeatherLens | MIT License |
cams/src/main/java/com/linwei/cams/base/activity/IActivity.kt | WeiShuaiDev | 390,686,269 | false | null | package com.linwei.cams.base.activity
import android.app.Activity
import com.linwei.cams.di.component.AppComponent
import com.linwei.cams.http.cache.Cache
/**
* ---------------------------------------------------------------------
* @Author: WeiShuai
* @Time: 2020/5/22
* @Contact: <EMAIL>"
* @Follow: https://git... | 1 | Kotlin | 1 | 1 | 3c7289aae35551ee53284d91e96ad5f24c21eb50 | 1,542 | Cams | Apache License 2.0 |
app/src/main/java/com/example/gamebuddy/presentation/auth/verify/VerifyState.kt | GameBuddyDevs | 609,491,782 | false | null | package com.example.gamebuddy.presentation.auth.verify
import com.example.gamebuddy.util.Queue
import com.example.gamebuddy.util.StateMessage
data class VerifyState(
val isLoading: Boolean = false,
val verificationCode: String = "",
val isVerifyCompleted: Boolean = false,
val queue: Queue<StateMessage... | 0 | Kotlin | 1 | 3 | 0a767229f5505e6a68e167aece41c10abb282e1b | 350 | GameBuddy-Android | MIT License |
app/src/main/java/com/example/gamebuddy/presentation/auth/verify/VerifyState.kt | GameBuddyDevs | 609,491,782 | false | null | package com.example.gamebuddy.presentation.auth.verify
import com.example.gamebuddy.util.Queue
import com.example.gamebuddy.util.StateMessage
data class VerifyState(
val isLoading: Boolean = false,
val verificationCode: String = "",
val isVerifyCompleted: Boolean = false,
val queue: Queue<StateMessage... | 0 | Kotlin | 1 | 3 | 0a767229f5505e6a68e167aece41c10abb282e1b | 350 | GameBuddy-Android | MIT License |
app/src/main/kotlin/com/cloverlab/kloveroid/repository/repositories/source/LocalDataStore.kt | dev-cloverlab | 104,434,875 | false | null | package com.cloverlab.kloveroid.repository.repositories.source
import com.cloverlab.kloveroid.entities.FakeEntity
import com.cloverlab.kloveroid.repository.repositories.IDataStore
import io.reactivex.Observable
/**
* @author <NAME>
* @since 2017/09/25
*/
class LocalDataStore : IDataStore {
override fun crea... | 0 | Kotlin | 1 | 7 | f558c5de219c2b5d9b015627c824997ce6c9a3c1 | 407 | Kloveroid | MIT License |
sample-library-1/src/main/java/com/bennyhuo/kotlin/mixin/sample/library1/Api1.kt | bennyhuo | 426,646,493 | false | null | package com.bennyhuo.kotlin.mixin.sample.library1
import com.bennyhuo.kotlin.mixin.annotations.Mixin
/**
* Created by benny.
*/
@Mixin("com.bennyhuo.kotlin.mixin.sample", "Apis")
class Api1 {
val url1 = "https://www.api1.com"
fun getObject1(key: String): Any {
return ""
}
fun ... | 0 | Kotlin | 0 | 27 | 61c9d5678865a309b35b10fbdade02d53b54b6ac | 549 | Mixin | MIT License |
subprojects/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/TaskContainerExtensions.kt | Verdinjoshua26 | 187,253,049 | false | null | /*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 10 | null | 1 | 2 | cfeeb71d1e3159f5d10856aef854344ba92c4a0f | 8,932 | gradle | Apache License 2.0 |
features/feature_search_photo_shared/src/commonMain/kotlin/com/hoc081098/compose_multiplatform_kmpviewmodel_sample/search_photo/presentation/components/PhotoGridCell.kt | hoc081098 | 675,918,221 | false | null | package com.hoc081098.compose_multiplatform_kmpviewmodel_sample.search_photo.presentation.components
import androidx.compose.animation.core.tween
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.material.icons.Icons
import androidx.compose.material.icon... | 12 | null | 4 | 8 | b5ab12979e96f40ade3b64324e3f8f9f18ea806a | 1,576 | Compose-Multiplatform-KmpViewModel-Unsplash-Sample | Apache License 2.0 |
platform/platform-impl/src/com/intellij/openapi/wm/impl/customFrameDecorations/style/ComponentStyle.kt | ingokegel | 284,920,751 | false | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.wm.impl.customFrameDecorations.style
import org.jetbrains.annotations.NonNls
import java.awt.MouseInfo
import java.awt.event.MouseAdapter
import java... | 251 | null | 5079 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 5,231 | intellij-community | Apache License 2.0 |
app/src/main/java/com/muratozturk/mova/data/paging_source/MoviePagingSource.kt | muratozturk5 | 587,507,400 | false | null | package com.hoangtien2k3.themoviedb.data.paging_source
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.hoangtien2k3.themoviedb.common.Constants.STARTING_PAGE
import com.hoangtien2k3.themoviedb.common.MovieRequestOptionsMapper
import com.hoangtien2k3.themoviedb.common.enums.MovieEnum
i... | 1 | Kotlin | 13 | 96 | 280ced4d70d4e2f9e7c4549b5c919cc7cd821146 | 2,878 | Mova | MIT License |
src/main/kotlin/org/rust/cargo/icons/CargoIconProvider.kt | torkleyy | 83,174,689 | true | {"Kotlin": 1201029, "Rust": 74760, "Lex": 19046, "HTML": 8877, "Java": 586, "Shell": 523, "RenderScript": 15} | package org.rust.cargo.icons
import com.intellij.ide.IconProvider
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
import org.rust.cargo.CargoConstants
import javax.swing.Icon
public class CargoIconProvider : IconProvider() {
override fun getIcon(element: PsiElement, flags: Int): Icon? {
... | 1 | Kotlin | 1 | 1 | 59a8df2b0a66018aea92c9454493a94bceea8f9a | 717 | intellij-rust | MIT License |
app/src/main/java/com/halilkrkn/finderecipe/feature/presentation/onboarding/OnboardingViewModel.kt | halilkrkn | 808,027,185 | false | {"Kotlin": 324108} | package com.halilkrkn.finderecipe.feature.presentation.onboarding
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.halilkrkn.finderecipe.domain.usecase.onboarding.FindeRecipeOnBoardingUseCase
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.Dispatchers... | 0 | Kotlin | 0 | 0 | 2a22bbe8c63b42cd5ae614227fa0a9b6e8746913 | 704 | FindeRecipe | MIT License |
token-client-spring/src/test/kotlin/no/nav/security/token/support/client/spring/oauth2/OAuth2ClientConfigurationWithoutCacheTest.kt | navikt | 124,397,000 | false | {"Kotlin": 362723} | package no.nav.security.token.support.client.spring.oauth2
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.boot.test.mock.mockito.Mock... | 8 | Kotlin | 7 | 15 | 2bdb7c2938c01184e714dd917f538c7ef7fe86af | 1,389 | token-support | MIT License |
z2-material-cookbook/src/jsMain/kotlin/main.kt | spxbhuhb | 661,566,882 | false | null | /*
* Copyright © 2020-2023, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
import hu.simplexion.z2.browser.css.*
import hu.simplexion.z2.browser.demo.calendar.calendarDemo
import hu.simplexion.z2.browser.demo.layout.containerDemo
import hu.simplexion.z2.browse... | 1 | Kotlin | 0 | 0 | 5d660fdecdf0d41e3c307dd1db68108e5661504f | 5,237 | z2-material | Apache License 2.0 |
services/host-fs-service/src/main/kotlin/org/katan/service/fs/host/di/HostFsServiceDI.kt | KatanPanel | 182,468,654 | false | null | package org.katan.service.fs.host.di
import org.katan.service.fs.FSService
import org.katan.service.fs.host.HostFSService
import org.koin.core.module.Module
import org.koin.dsl.module
val hostFsServiceDI: Module = module {
single<FSService> {
HostFSService(
dockerClient = get(),
co... | 0 | Kotlin | 5 | 55 | 8e2f39310ec87bf19eed5a8a73b105518cabe7d9 | 351 | Katan | Apache License 2.0 |
oneloginoidc/src/main/java/com/onelogin/oidc/session/SessionInfoError.kt | onelogin | 241,972,325 | false | null | package com.onelogin.oidc.session
class SessionInfoError(message: String? = null, cause: Throwable? = null) : Exception(message, cause)
| 5 | Kotlin | 5 | 6 | 198284347d48c2ed1886d1c15ee233d5298a2855 | 137 | onelogin-oidc-android | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.