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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bloc-redux/src/commonMain/kotlin/com/onegravity/bloc/redux/select/SelectorBuilder.kt | 1gravity | 470,411,711 | false | null | package org.reduxkotlin.select
/**
* Wrapper class for Selector factory methods, that basically is used only to capture type
* information for the state parameter
*/
class SelectorBuilder<S : Any> {
/**
* Special single input selector that should be used when you just want to retrieve a single field:
... | 0 | null | 3 | 34 | a911759197a447baca7acbb88a9cbe5b3f5f010d | 2,255 | Kotlin-Bloc | Apache License 2.0 |
glance/glance-appwidget/integration-tests/demos/src/main/java/androidx/glance/appwidget/demos/ProgressIndicatorAppWidget.kt | androidx | 256,589,781 | false | {"Kotlin": 101448370, "Java": 64375670, "C++": 9133578, "AIDL": 605967, "Python": 310682, "Shell": 187759, "TypeScript": 40586, "HTML": 32277, "Groovy": 25622, "Svelte": 20307, "ANTLR": 19860, "CMake": 18003, "C": 16982, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 25 | Kotlin | 918 | 5,019 | 063c6938121b19f73d04517b1e7fdcb9e3309403 | 5,559 | androidx | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utilities/VariableStuff.kt | notnotnerds | 581,631,890 | false | {"Java": 195204, "Kotlin": 97441} | package org.firstinspires.ftc.teamcode.support
object VariableStuff {
const val clawOpenPos=.65
const val clawClosePos=.95
const val lowerArm=.7
const val levelArm=.55
const val raiseArm=0.0
const val liftHigh=4700
const val liftMid=2200
} | 1 | null | 1 | 1 | df51a7a3a495398a43977e575da77c6f43871b99 | 268 | FtcRobotController | BSD 3-Clause Clear License |
src/main/kotlin/com/ort/howlingwolf/api/controller/DebugController.kt | h-orito | 176,481,255 | false | {"Kotlin": 820146, "HTML": 245777, "Batchfile": 522, "Shell": 454} | package com.ort.howlingwolf.api.controller
import com.ort.dbflute.exbhv.CharaBhv
import com.ort.dbflute.exbhv.PlayerBhv
import com.ort.dbflute.exbhv.VillageDayBhv
import com.ort.dbflute.exbhv.VillageSettingBhv
import com.ort.dbflute.exentity.Player
import com.ort.dbflute.exentity.VillageSetting
import com.ort.howlingw... | 1 | Kotlin | 1 | 3 | ec5db8e5323ea79f4a23648a33f8e81a71df96dc | 8,476 | wolf4busy-api | MIT License |
kotlin-mui-icons/src/main/generated/mui/icons/material/NoteAltTwoTone.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/NoteAltTwoTone")
package mui.icons.material
@JsName("default")
external val NoteAltTwoTone: SvgIconComponent
| 10 | null | 5 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 192 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/example/movieproject/ui/fragment/login/LoginFragment.kt | MehmetAkifUrgen | 599,776,429 | false | null | @file:Suppress("DEPRECATION")
package com.example.movieproject.ui.fragment.login
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
im... | 0 | Kotlin | 0 | 0 | 21aef4a728dd55be96d10e7925bc97b2047aa9cb | 4,219 | MovieProject-Clean-Architecture-MVVM-Hilt-Flow-Tmdb-Paging3 | MIT License |
app/src/main/java/com/seeleo/mikuweather/viewmodel/WeatherViewModelFactory.kt | lzcapp | 798,234,078 | false | {"Kotlin": 59595} | package com.seeleo.mikuweather.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.seeleo.mikuweather.repository.WeatherRepository
class WeatherViewModelFactory(private val weatherRepository: WeatherRepository) : ViewModelProvider.Factory {
override fun <T : ViewMo... | 0 | Kotlin | 0 | 0 | 1ff9c869c4049cc067fedb7a60f9e124c3bd7196 | 637 | MikuWeather_Android_CN | MIT License |
tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/send/abstracts/SendMessageRequest.kt | InsanusMokrassar | 163,152,024 | false | null | package dev.inmo.tgbotapi.requests.send.abstracts
import dev.inmo.tgbotapi.CommonAbstracts.types.*
interface SendMessageRequest<T: Any> : SendChatMessageRequest<T>, ReplyMessageId, DisableNotification, ProtectContent
| 18 | Kotlin | 9 | 126 | 007112e67a2e24076e3f5fb9db1e9cef5e5cdb46 | 219 | TelegramBotAPI | Apache License 2.0 |
src/main/kotlin/bridgegame/api/Suit.kt | rajmahendra | 800,019,948 | false | {"Kotlin": 5440} | package bridgegame.api
enum class Suit(private val symbol: String, val shortName: String) {
SPADE("♠\uFE0F","S"),
HEART("❤\uFE0F","H"),
DIAMOND("♦\uFE0F","D"),
CLUB("♣\uFE0F","C");
override fun toString(): String {
return shortName
}
companion object {
val values = enumVal... | 0 | Kotlin | 0 | 0 | 562f5ea39e189a0026e4520282f7a0537a849b7d | 339 | bridge-game | Apache License 2.0 |
source-code/starter-project/BookHaven/app/src/main/java/com/droidcon/bookhaven/ui/book/detail/BookDetailScreen.kt | droidcon-academy | 840,180,197 | false | {"Kotlin": 130227} | package com.droidcon.bookhaven.ui.book.detail
import android.widget.Toast
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.ui.Modifier
import androidx.compose... | 0 | Kotlin | 0 | 1 | 982e1ef98477674ed47409a0ef49ce63a4ab96f1 | 1,654 | android-mc-testing-fundamentals | Apache License 2.0 |
ktor-backend/daily-attendance/src/main/kotlin/com/steiner/workbench/daily_attendance/model/KeepDays.kt | nesteiner | 693,014,583 | false | {"Kotlin": 366481, "Dart": 247737, "C++": 24228, "CMake": 19460, "HTML": 1843, "C": 1425} | package com.steiner.workbench.daily_attendance.model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
sealed class KeepDays {
@Serializable
@SerialName("forever")
object Forever: KeepDays()
@Serializable
@SerialName("manual")
class Manual(val day... | 1 | Kotlin | 0 | 0 | e0fe7a0f9aca965bc74736f1364153a695597bfe | 342 | Workbench | MIT License |
src/main/java/org/github/otanikotani/workflow/ui/GitHubWorkflowRunLogConsole.kt | Otanikotani | 235,634,673 | false | null | package org.github.otanikotani.workflow.ui
import com.intellij.execution.impl.ConsoleViewImpl
import com.intellij.execution.process.AnsiEscapeDecoder
import com.intellij.execution.process.ProcessOutputTypes
import com.intellij.execution.ui.ConsoleViewContentType
import com.intellij.openapi.Disposable
import com.intell... | 13 | null | 9 | 25 | 70401ba7eda37a9fc3bc58b1ede8dec9ce5de52e | 1,325 | view-github-actions-idea-plugin | MIT License |
app/src/main/java/com/kylecorry/trail_sense/shared/views/chart/label/HourChartLabelFormatter.kt | kylecorry31 | 215,154,276 | false | null | package com.kylecorry.trail_sense.shared.views.chart.label
import android.content.Context
import com.kylecorry.ceres.chart.label.ChartLabelFormatter
import com.kylecorry.sol.time.Time
import com.kylecorry.sol.time.Time.toZonedDateTime
import com.kylecorry.trail_sense.shared.FormatService
import java.time.Instant
impor... | 456 | null | 66 | 989 | 41176d17b498b2dcecbbe808fbe2ac638e90d104 | 1,025 | Trail-Sense | MIT License |
coil-base/src/test/java/coil/intercept/EngineInterceptorTest.kt | ianhanniballake | 384,854,300 | false | null | package coil.interceptor
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Color
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.ColorDrawable
import androidx.test.core.app.ApplicationProvider
import coil.ComponentRegistry
import coil.EventListener
i... | 0 | null | 0 | 1 | f152e172dbfe6b9c231967242f16dc63fda422e8 | 17,927 | coil | Apache License 2.0 |
app/src/main/java/org/tokend/template/fragments/BaseFragment.kt | tokend | 192,905,357 | false | null | package org.tokend.template.fragments
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.View
import io.reactivex.disposables.CompositeDisposable
import org.tokend.template.App
import org.tokend.template.activities.OnBackPressedListener
import org.tokend.te... | 1 | null | 1 | 6 | 05bb971859713830a9c229206dc9f525ce80f754 | 4,016 | conto-android-client | Apache License 2.0 |
emoji/src/main/java/chat/rocket/android/emoji/EmojiParser.kt | RocketChat | 48,179,404 | false | null | package chat.rocket.android.emoji
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Typeface
import android.text.Spannable
import android.text.SpannableString
import android.text.Spanned
import android.text.style.ImageSpan
import com.bumptech.glide.Glide
import com.bumptech.glide.lo... | 283 | Kotlin | 585 | 877 | f832d59cb2130e5c058f5d9e9de5ff961d5d3380 | 5,827 | Rocket.Chat.Android | MIT License |
src/test/kotlin/rocks/frieler/android/release/gradle/PrepareNextDevelopmentVersionTest.kt | christopherfrieler | 347,635,688 | false | null | package rocks.frieler.android.release.gradle
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.verify
import com.nhaarman.mockitokotlin2.whenever
import org.gradle.api.internal.GradleInternal
import org.gradle.api.internal.project.ProjectInternal
import org.gradle.api.internal.project.taskfact... | 0 | Kotlin | 0 | 2 | fe914bac032f8fc0bb39f65b424f11e5d67238ff | 5,747 | android-release-gradle-plugin | MIT License |
src/main/java/com/dzen/campfire/api/requests/rubrics/RRubricsModerChangeName.kt | ZeonXX | 381,983,751 | false | {"Kotlin": 1087578} | package com.dzen.campfire.api.requests.rubrics
import com.dzen.campfire.api.tools.client.Request
import com.sup.dev.java.libs.json.Json
open class RRubricsModerChangeName(
var rubricId: Long,
var newName: String,
var comment: String
) : Request<RRubricsModerChangeName.Response>() {
overri... | 0 | Kotlin | 2 | 5 | 6f3b371624fb66a065bcbaa6302830c574c55e9f | 842 | CampfireApi | Apache License 2.0 |
src/commonMain/kotlin/net/kyori/adventure/webui/websocket/Packet.kt | KyoriPowered | 390,772,083 | false | null | package net.kyori.adventure.webui.websocket
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonObject
/** The client -> server call. */
public sealed interface Packet
@Serializable
@SerialName("call")
public data class Call(public val miniMessage: ... | 22 | Kotlin | 4 | 8 | 96e161a8975f506dfa6c60e65114e2810d813a05 | 773 | adventure-webui | MIT License |
oldAndroidProjects/untracked/Pratice3/PraticeProjects/Khaata/app/src/main/java/com/shivathapa/khaata/KhaataApplication.kt | shivathapaa | 800,628,391 | false | {"Kotlin": 3353288, "Shell": 2341} | package com.shivathapa.khaata
import android.app.Application
import com.shivathapa.khaata.data.AppContainer
import com.shivathapa.khaata.data.AppDataContainer
class KhaataApplication : Application() {
lateinit var container: AppContainer
override fun onCreate() {
super.onCreate()
container = ... | 0 | Kotlin | 0 | 0 | 442ac0be8d0d619e9abf6abb62249a06c1cd4320 | 350 | Android-Practice-Projects | The Unlicense |
integration-tests/kotlin-dsl/src/main/resources/routes/routes-with-error-handler.kts | apache | 193,065,376 | false | {"Java": 9211773, "Groovy": 57009, "Mustache": 48429, "XSLT": 25367, "Kotlin": 16697, "JavaScript": 14832, "Shell": 11110, "Tcl": 5013, "Rust": 3839, "FreeMarker": 2706, "PLpgSQL": 2094, "HTML": 909, "XQuery": 271, "Ruby": 88} | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 349 | Java | 188 | 254 | 13f2b16ab81ae58ebcb34a0ba17120f73b57ff59 | 1,276 | camel-quarkus | Apache License 2.0 |
CleanArchitectureExample/presentation/src/main/java/com/binhnk/clean/architecture/util/Utils.kt | binhnk-1899 | 189,147,136 | false | null | package com.binhnk.clean.architecture.util
import android.content.Context
import android.widget.Toast
class Utils {
companion object {
fun shortToast(mContext: Context, message:String) {
Toast.makeText(mContext, message, Toast.LENGTH_SHORT).show()
}
}
} | 1 | null | 1 | 1 | d0205e1f3c7aa7ec92c0ee9aa8bb31fb2ae21ca4 | 292 | CleanArchitectureExample | Apache License 2.0 |
model-client/src/jvmMain/kotlin/org/modelix/model/client/ReplicatedRepository.kt | modelix | 533,211,353 | false | null | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed ... | 49 | null | 9 | 6 | b132ea54e33ab8dab19fa716b292352755ff375e | 14,013 | modelix.core | Apache License 2.0 |
app/src/main/java/com/hackathon/security/Assessment.kt | rajarajank96 | 731,995,359 | false | {"Kotlin": 26614} | package com.hackathon.security
import com.google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient
import com.google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceSettings
import com.google.recaptchaenterprise.v1.Assessment
import com.google.recaptchaenterprise.v1.CreateAssessmentRequest
import co... | 0 | Kotlin | 0 | 0 | 34498164f418bbf13b1653f6fcff926fd21a8edf | 4,030 | android-security | MIT License |
matisse/src/main/java/com/matisse/utils/UIUtils.kt | zhenian | 192,932,387 | true | {"Gradle": 4, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 60, "XML": 40, "Java": 2} | package com.matisse.utils
import android.app.Activity
import android.content.Context
import android.content.res.Resources
import android.graphics.PorterDuff
import android.os.Build
import androidx.fragment.app.FragmentActivity
import android.util.DisplayMetrics
import android.util.TypedValue
import android.util.TypedV... | 0 | Kotlin | 0 | 0 | 7d72a6c703b6e83f4a4f5933f68c2049f2a07b81 | 7,323 | Matisse-Kotlin | Apache License 2.0 |
notary-commons/src/main/kotlin/com/d3/commons/sidechain/iroha/IrohaChainHandler.kt | d3ledger | 129,921,969 | false | null | /*
* Copyright D3 Ledger, Inc. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.d3.commons.sidechain.iroha
import com.d3.commons.sidechain.ChainHandler
import com.d3.commons.sidechain.SideChainEvent
import com.d3.commons.util.hex
import jp.co.soramitsu.iroha.java.Utils
import mu.KLogging
... | 2 | null | 5 | 15 | 0e719a1a8fcdce23933df68749028befe40cbc50 | 2,114 | notary | Apache License 2.0 |
src/main/kotlin/dev/deepslate/fallacy/rule/item/VanillaExtendedFoodPropertiesRule.kt | Mottle | 841,231,519 | false | {"Kotlin": 289220, "Java": 21036} | package dev.deepslate.fallacy.rule.item
import dev.deepslate.fallacy.common.item.component.NutritionData
import dev.deepslate.fallacy.common.item.data.ExtendedFoodProperties
import dev.deepslate.fallacy.common.item.data.ExtendedProperties
import dev.deepslate.fallacy.util.internalExtendedProperties
import net.minecraf... | 0 | Kotlin | 0 | 0 | 6858960a6c7021660159a04b8656215efe74cb6e | 4,208 | Fallacy | MIT License |
sample/src/main/java/eu/kevin/sample/samples/payment/card/CardPaymentActivity.kt | getkevin | 375,151,388 | false | null | package eu.kevin.sample.samples.payment.card
import android.os.Bundle
import android.view.View.GONE
import android.view.View.VISIBLE
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.Lifecycle.State
import androidx.lifecycle.lifecycleScope
import androidx.lif... | 1 | Kotlin | 2 | 6 | e6f4c7e1687595274fb99afd2ceef298610a2043 | 3,568 | kevin-android | MIT License |
src/main/kotlin/com/c5inco/modifiers/plugin/intellij/SwingColors.kt | c5inco | 349,346,768 | false | null | package com.c5inco.modifiers.plugin.intellij
import androidx.compose.runtime.*
import androidx.compose.ui.graphics.Color
import com.intellij.ide.ui.LafManagerListener
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.editor.colors.EditorColorsManager
import com.intellij.ui.JBColor
... | 3 | Kotlin | 3 | 98 | 28757a8ac22dc724c55e4fa5c2568e4fcdf5afcc | 2,953 | Compose-Modifiers-Playground | MIT License |
src/commonMain/kotlin/io/skerna/commons/sreaction/Handler.kt | skerna | 181,100,389 | false | null | /*
* Copyright (c) 2019 SKERNA
*
* 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, merge, publish, d... | 0 | Kotlin | 0 | 0 | 79e82b699c7b3995d991daa5b461402f92afab08 | 1,814 | commons-sreaction | MIT License |
packages/react-native-bpk-component-calendar/src/android/src/main/java/net/skyscanner/backpack/reactnative/calendar/CalendarViewManager.kt | felixarpa | 187,169,476 | true | {"JavaScript": 398336, "Objective-C": 25042, "Kotlin": 16336, "Ruby": 4111, "Shell": 2442, "Python": 1748} | /*
* Backpack - Skyscanner's Design System
*
* Copyright 2016-2019 Skyscanner Ltd
*
* 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
*
... | 0 | JavaScript | 0 | 0 | 0b710aa8143b3fe25d0de914c9482d156e7da55d | 3,973 | backpack-react-native | Apache License 2.0 |
app/src/main/kotlin/io/armcha/ribble/domain/fetcher/Fetcher.kt | armcha | 98,714,221 | false | null | package io.armcha.ribble.domain.fetcher
import io.armcha.ribble.data.cache.MemoryCache
import io.armcha.ribble.domain.fetcher.result_listener.RequestType
import io.armcha.ribble.domain.fetcher.result_listener.ResultListener
import io.reactivex.*
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reacti... | 6 | null | 120 | 879 | 815beaeb7c6c3f5d7d5c32aa60172372b2e5a844 | 4,151 | Ribble | Apache License 2.0 |
src/main/kotlin/es/jtp/kterm/utils/Extensions.kt | juliotpaez | 182,441,916 | false | null | package es.jtp.kterm.utils
/**
* Returns a string representation with some characters escaped to be represented as the content of a quoted string, i.e. "...".
*/
fun String.stringify() =
this.replace("\\", "\\\\").replace("\t", "\\t").replace("\r", "\\r").replace("\n", "\\n").replace("\"", "\\\"")
| 0 | Kotlin | 0 | 0 | e839fc72accb21b5a70894705b89983456abe278 | 310 | kterm | MIT License |
Tests/01-FirstUnitTest/app/src/main/java/com/example/firsttest/homework/Fibonacci.kt | PierreVieira | 314,919,628 | false | null | package com.example.firsttest.homework
object Fibonacci {
/**
* Returns the n-th fibonacci number
* They are defined like this:
* fib(0) = 0
* fib(1) = 1
* fib(n) = fib(n - 2) + fib(n - 1)
* */
fun fib(n: Int): Long {
if (n == 0) {
return 0
}
i... | 0 | Kotlin | 0 | 0 | 089c1c1e18a353c325e6cd51bfd02f0477ae53bf | 537 | AndroidApps | MIT License |
shared/feature/geminio-sdk/src/main/kotlin/ru/hh/plugins/geminio/sdk/recipe/models/widgets/RecipeParameter.kt | hhru | 159,637,875 | false | null | package ru.hh.plugins.geminio.sdk.recipe.models.widgets
import ru.hh.plugins.geminio.sdk.recipe.models.expressions.RecipeExpression
sealed class RecipeParameter {
abstract val id: String
abstract val name: String
abstract val help: String?
abstract val visibilityExpression: RecipeExpression?
abst... | 17 | null | 18 | 97 | 2d6c02fc814eff3934c17de77ef7ade91d3116f5 | 1,120 | android-multimodule-plugin | MIT License |
core/src/main/java/com/aidventory/core/common/designsystem/component/EmptyContent.kt | yuriikonovalov | 615,443,609 | false | null | package com.aidventory.core.common.designsystem.component
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
imp... | 0 | Kotlin | 0 | 0 | f6605489ce47b35b75e0628e6be64372eb5518e6 | 708 | aidventory | MIT License |
protocol/push/src/main/kotlin/com/walletconnect/push/engine/calls/SubscribeToDappUseCase.kt | WalletConnect | 435,951,419 | false | null | @file:JvmSynthetic
package com.walletconnect.notify.engine.calls
import android.net.Uri
import android.util.Base64
import com.walletconnect.android.internal.common.crypto.kmr.KeyManagementRepository
import com.walletconnect.android.internal.common.crypto.sha256
import com.walletconnect.android.internal.common.explore... | 147 | Kotlin | 59 | 157 | e34c0e716ca68021602463773403d8d7fd558b34 | 8,864 | WalletConnectKotlinV2 | Apache License 2.0 |
booster-transform-br-inline/src/main/kotlin/com/didiglobal/booster/transform/br/inline/BRInlineTransformer.kt | didi | 182,968,735 | false | null | package com.didiglobal.booster.transform.br.inline
import com.didiglobal.booster.kotlinx.asIterable
import com.didiglobal.booster.kotlinx.search
import com.didiglobal.booster.kotlinx.touch
import com.didiglobal.booster.transform.ArtifactManager.Companion.ALL_CLASSES
import com.didiglobal.booster.transform.ArtifactMana... | 47 | null | 554 | 4,625 | 8d3bf8e8cb6aa1194feb4f1d8024a6b6ab1ebda9 | 4,696 | booster | Apache License 2.0 |
shared/src/commonMain/kotlin/com/twilio/passkeys/PasskeyPayloadMapper.kt | twilio | 755,169,665 | false | {"Kotlin": 159946, "Swift": 21348, "Ruby": 18931, "Shell": 5990} | /*
* Copyright © 2024 Twilio Inc.
*
* 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... | 5 | Kotlin | 0 | 4 | 244a4da6ae7579426cb3fa8b4bf948154084a18d | 5,517 | twilio-verify-passkeys | Apache License 2.0 |
kotlinx-coroutines-core/jvm/test/examples/example-delay-01.kt | hltj | 151,721,407 | true | null | /*
* Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
// This file was automatically generated from Delay.kt by Knit tool. Do not edit.
package kotlinx.coroutines.examples.exampleDelay01
import kotlinx.coroutines.*
import kotlinx.coroutines.flow.*
fun main() = ... | 1 | Kotlin | 99 | 255 | 9565dc2d1bc33056dd4321f9f74da085e6c0f39e | 526 | kotlinx.coroutines-cn | Apache License 2.0 |
cache/cache-symbol-processor/src/test/kotlin/ru/tinkoff/kora/cache/symbol/processor/testdata/CacheableTargetArgumentWrongType.kt | Tinkoff | 568,800,636 | false | null | package ru.tinkoff.kora.cache.symbol.processor.testdata
import ru.tinkoff.kora.cache.annotation.CachePut
import ru.tinkoff.kora.cache.annotation.Cacheable
import ru.tinkoff.kora.cache.symbol.processor.testcache.DummyCacheManager
import java.math.BigDecimal
class CacheableTargetArgumentMissing {
var value = "1"
... | 19 | null | 21 | 145 | d73219324d1875dab225ee52106dc43c8c4dcaa5 | 685 | kora | Apache License 2.0 |
examples/ejectionHandler/src/main/kotlin/ejectionHandler/EjectionHandler.kt | ebrown17 | 191,096,960 | false | null | package ejectionHandler
import pinpak.core.*
fun main(){
val pipeline = PinPak.create("EjectionHandlerExample") { config ->
config.addEjectionHandler(EjectionHandler { name, data,error ->
println("$name ejected [$data] with $error")
})
config.addDeliveryHandler(DeliveryHandl... | 0 | Kotlin | 0 | 1 | dcd765d96c7e5dde06b0cf04c7e461f077748043 | 677 | pinpak | Apache License 2.0 |
common-ui-view/src/main/java/app/tivi/TiviFragment.kt | grvgoel81 | 272,160,037 | false | null | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 1 | null | 1 | 1 | f9a8bed638a448afdb272b8a20b9cc6d365bd627 | 1,278 | tivi | Apache License 2.0 |
app/src/main/java/com/techchallange/app/util/DateUtils.kt | hasankucuk | 209,618,765 | false | null | package com.techchallange.app.util
import android.annotation.SuppressLint
import java.text.SimpleDateFormat
import java.util.*
import android.widget.TextView
import androidx.databinding.BindingAdapter
import io.reactivex.annotations.NonNull
/**
* This function returns integer month name to string month name.
*
* r... | 0 | Kotlin | 1 | 6 | 8204cc8ce3e2cae24da7056a94ecd1dbb31a562f | 919 | Android-Developer-Tech-Challenge | Apache License 2.0 |
src/main/kotlin/io/vlang/lang/psi/types/VlangBaseTypeEx.kt | vlang | 754,996,747 | false | {"Kotlin": 1646396, "V": 250415, "Java": 68641, "Lex": 20424, "HTML": 6275} | package org.vlang.lang.psi.types
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.UserDataHolderBase
import com.intellij.psi.PsiElement
import org.vlang.ide.codeInsight.VlangCodeInsightUtil
import org.vlang.lang.psi.*
import org.vlang.lang.psi.impl.VlangLangUtil
import org.vlang.lang.psi.im... | 5 | Kotlin | 5 | 33 | a0d2cbfa63b995d93aaca3c80676f0c2f9bef117 | 12,039 | intellij-v | MIT License |
app/src/main/java/ru/dimon6018/metrolauncher/content/settings/activities/ThemeSettingsActivity.kt | queuejw | 659,118,377 | false | {"Kotlin": 358288, "Java": 81331} | package ru.dimon6018.metrolauncher.content.settings.activities
import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.content.Context
import android.os.Build
import android.os.Bundle
import android.text.Spannable
import android.text.SpannableString
import android.text.style.Foregro... | 1 | Kotlin | 1 | 28 | 9f3e2e04378f3ac16e526f18c02a19631ed9e181 | 17,018 | MetroPhoneLauncher | MIT License |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/design/PaintLine.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.remix.remix.design
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.Str... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,358 | compose-icon-collections | MIT License |
app/src/main/java/com/example/composemvvm/datasource/networking/NetworkingService.kt | AnastasiaRainMaker | 425,563,066 | false | {"Kotlin": 18543} | package com.example.compose_mvvm_weather_app.networking
import com.example.compose_mvvm_weather_app.model.WeatherApiResponse
import com.example.compose_mvvm_weather_app.utils.Constants
import retrofit2.http.GET
import retrofit2.http.Query
interface NetworkingService {
@GET("data/2.5/onecall?exclude=minutely,hour... | 0 | Kotlin | 10 | 52 | 1736c9897d6fbc024ac8a4e56e0a941dce0af662 | 540 | Compose-MVVM-app-sample | Apache License 2.0 |
frogorecyclerview/src/main/java/com/frogobox/recycler/core/FrogoBuilderRvBase.kt | amirisback | 229,149,549 | false | null | package com.frogobox.recycler.core
import androidx.recyclerview.widget.RecyclerView
import com.frogobox.recycler.R
/**
* Created by faisalamir on 24/07/21
* FrogoRecyclerView
* -----------------------------------------
* Name : <NAME>
* E-mail : <EMAIL>
* Github : github.com/amirisback
* -------------... | 1 | null | 16 | 99 | 0554af5591bb2a812b44e6df1faeedcccf2c50ce | 859 | frogo-recycler-view | Apache License 2.0 |
term-2/block-4/task-7/lib/meteo-storm-glass/src/main/kotlin/meteo/stormglass/data/model/StormGlassErrorModel.kt | AzimMuradov | 626,118,027 | false | null | package meteo.stormglass.data.model
import kotlinx.serialization.Serializable
@Serializable
internal data class StormGlassErrorModel(val errors: Map<String, String>)
| 0 | Kotlin | 0 | 0 | 20d712d69d19a399072ce997fe11f3066dc01354 | 168 | computer-workshop-spbu | Apache License 2.0 |
app/src/main/java/br/com/hearthisat/service/config/Error.kt | danielsadoliveira | 205,500,215 | false | null | package br.com.hearthisat.service.config
import br.com.hearthisat.extensions.caseNotNull
import br.com.hearthisat.extensions.caseNull
import com.google.gson.JsonParseException
import com.google.gson.JsonSyntaxException
import okhttp3.Request
import okhttp3.ResponseBody
import retrofit2.Response
/**
* Created by dani... | 0 | Kotlin | 1 | 4 | 720e4a29587289c1a7ae28d554a487def1e200b0 | 3,422 | hearthisat | The Unlicense |
src/main/kotlin/no/nav/familie/ba/sak/integrasjoner/pdl/PdlUtil.kt | navikt | 224,639,942 | false | null | package no.nav.familie.ef.sak.opplysninger.personopplysninger
import no.nav.familie.ef.sak.infrastruktur.exception.PdlNotFoundException
import no.nav.familie.ef.sak.infrastruktur.exception.PdlRequestException
import no.nav.familie.ef.sak.opplysninger.personopplysninger.pdl.PdlBolkResponse
import no.nav.familie.ef.sak.... | 8 | null | 2 | 9 | ce534f2feb45a66b0b01ddda7edbd6646bae306b | 2,417 | familie-ba-sak | MIT License |
module_test/src/main/java/com/ndhzs/module/test/page/TestViewModel.kt | VegetableChicken-Group | 497,243,579 | false | {"Kotlin": 315359, "Shell": 8775} | package com.ndhzs.module.test.page
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.ndhzs.lib.base.ui.BaseViewModel
import com.ndhzs.lib.utils.extensions.defaultHandler
import com.ndhzs.lib.utils.extensions.postDelay
import kotlin.random.Random
/**
* ...
* @author 985892345 (<... | 0 | Kotlin | 14 | 30 | 3455309ef00ecbe61dbc2c80b8871f8981b412e2 | 647 | WanAndroid_Multi | MIT License |
app/src/main/java/com/example/covidmapper/MainActivity.kt | rishabh115 | 249,815,342 | false | null | package com.example.covidmapper
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.ProgressBar
import android.widget.Toast
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
class MainActivity : ... | 0 | Kotlin | 1 | 3 | ebef2341b815360b04ef3e0e0ecd359e617328ff | 1,396 | CovidMapper | MIT License |
src/main/kotlin/pistonlang/compiler/util/lists/NonEmptyList.kt | PistonLang | 594,852,711 | false | null | package pistonlang.compiler.util.lists
@JvmInline
value class NonEmptyList<out T> internal constructor(private val nested: List<T>) : List<T> by nested {
override fun isEmpty(): Boolean = false
}
fun <T> List<T>.assertNonEmpty(): NonEmptyList<T> =
if (isEmpty()) error("The list should not be empty")
else... | 0 | Kotlin | 0 | 0 | 296b4894becc0e0597930dbc230e7af80eeb6e7d | 403 | compiler | MIT License |
KotlinTest/src/main/java/com/zcf/app2/Urls.kt | liang979zhang | 134,248,607 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 56, "XML": 90, "Java": 1} | package com.zcf.app2
/**
* Created by Administrator on 2018/5/21.
*/
object Urls {
val url: String = "http://www.wanandroid.com/"
} | 1 | null | 1 | 1 | d08245f76642e5280073f879b727796a7f04f8ed | 139 | kotlinStudy-master | Apache License 2.0 |
jvm-debugger/test/testData/sequence/streams/sequence/misc/ZipWithNextSingle.kt | JetBrains | 278,369,660 | false | null | package misc
fun main(args: Array<String>) {
// Breakpoint!
sequenceOf(1).zipWithNext().count()
} | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 102 | intellij-kotlin | Apache License 2.0 |
app/src/main/java/com/example/myapplication/activity/RegistroExitoso2Activity.kt | Francuster | 788,721,638 | false | {"Kotlin": 392562, "Java": 3238} | package com.example.myapplication.activity
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.example.myapplication.R
class RegistroExitoso2Activity: AppCompatActivity() {
override fun onCreate(s... | 0 | Kotlin | 0 | 0 | f229fd95d9a3de9b0d78d7b535eb89da20bb8ea6 | 776 | PPI_RF | Apache License 2.0 |
src/main/kotlin/com/kneelawk/transpositioners/client/screen/TPBackgroundPainters.kt | Kneelawk | 332,850,862 | false | null | package com.kneelawk.transpositioners.client.screen
import com.kneelawk.transpositioners.client.screen.icon.IconRenderingUtils
import io.github.cottonmc.cotton.gui.client.BackgroundPainter
import io.github.cottonmc.cotton.gui.widget.WItemSlot
import io.github.cottonmc.cotton.gui.widget.data.HorizontalAlignment
import ... | 0 | Kotlin | 0 | 0 | fc85e9c93dc93a81353004a08d18ab5d836437a8 | 1,515 | Transpositioners | MIT License |
Extensions/Economy/src/main/kotlin/net/sourcebot/module/economy/Economy.kt | TheSourceCodeLLC | 271,902,483 | false | null | package net.sourcebot.module.economy
import net.dv8tion.jda.api.entities.Member
import net.sourcebot.Source
import net.sourcebot.api.configuration.ConfigurationInfo
import net.sourcebot.api.module.SourceModule
import net.sourcebot.module.economy.command.*
import net.sourcebot.module.economy.data.EconomyData
import net... | 5 | Kotlin | 8 | 9 | 2bd6a869343a50cf6c9104c4afec092d827ffe5d | 1,220 | Source | MIT License |
app/src/main/java/com/yury/lebowski/ui/operations/OperationTabListAdapter.kt | iliailemkov | 143,139,061 | true | {"Kotlin": 112583} | package com.yury.lebowski.ui.operations
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import com.yury.lebowski.data.local.models.enums.OperationState
class OperationTabListAdapter(fm: FragmentManager, tabTitle: Array<String>, ... | 0 | Kotlin | 0 | 0 | aec038962531c5c1945ce4df71f3f93c15ebd4c1 | 1,016 | Lebowski | Creative Commons Attribution 3.0 Unported |
src/main/kotlin/com/dannbrown/braziliandelight/content/block/FallingCoconutBlock.kt | danbrown | 768,934,002 | false | {"Kotlin": 370306, "Java": 3856} | package com.dannbrown.braziliandelight.content.block
import com.dannbrown.braziliandelight.init.AddonBlocks
import net.minecraft.core.BlockPos
import net.minecraft.core.Direction
import net.minecraft.world.damagesource.DamageSource
import net.minecraft.world.entity.Entity
import net.minecraft.world.entity.item.Falling... | 0 | Kotlin | 0 | 1 | c69fbc2a58d23c4048eca870714d681b9697970b | 3,825 | braziliandelight | MIT License |
core/src/main/java/com/zyhang/startup/utils/ProcessUtils.kt | EvilMouth | 306,280,273 | false | {"Gradle": 13, "Java Properties": 2, "YAML": 3, "Shell": 1, "Ignore List": 11, "Batchfile": 1, "Markdown": 1, "INI": 7, "Proguard": 9, "Kotlin": 56, "XML": 24, "Java": 7} | package com.zyhang.startup.utils
import android.annotation.SuppressLint
import android.app.ActivityManager
import android.app.Application
import android.content.Context
import android.os.Process
class ProcessUtils {
companion object {
private var currentProcessName: String? = null
fun getCurrent... | 0 | Kotlin | 0 | 12 | 3bb85cbcc918d2819422c1dd800b5dbb74ecae9a | 1,859 | Startup | Apache License 2.0 |
core/src/main/java/com/zyhang/startup/utils/ProcessUtils.kt | EvilMouth | 306,280,273 | false | {"Gradle": 13, "Java Properties": 2, "YAML": 3, "Shell": 1, "Ignore List": 11, "Batchfile": 1, "Markdown": 1, "INI": 7, "Proguard": 9, "Kotlin": 56, "XML": 24, "Java": 7} | package com.zyhang.startup.utils
import android.annotation.SuppressLint
import android.app.ActivityManager
import android.app.Application
import android.content.Context
import android.os.Process
class ProcessUtils {
companion object {
private var currentProcessName: String? = null
fun getCurrent... | 0 | Kotlin | 0 | 12 | 3bb85cbcc918d2819422c1dd800b5dbb74ecae9a | 1,859 | Startup | Apache License 2.0 |
app/src/main/java/com/batdemir/template/data/entities/db/ListModel.kt | batdemir | 332,569,012 | false | null | package com.batdemir.template.data.entities.db
import android.os.Parcel
import android.os.Parcelable
data class ListModel(
val dt: Long,
val main: MainModel,
val weather: List<WeatherModel>,
val clouds: CloudsModel,
val wind: WindModel,
val visibility: Long,
val pop: Double,
val sys: S... | 0 | Kotlin | 0 | 0 | 2721e6369ac5e828f8b4c78e2dc619a5743ba096 | 1,642 | weather.example.public | Apache License 2.0 |
src/test/kotlin/com/hbk619/intellisay/files/FileNameListenerTest.kt | hbk619 | 762,230,623 | false | {"Kotlin": 90904} | package com.hbk619.intellisay.files
import com.hbk619.intellisay.BaseTestCase
import com.intellij.openapi.fileEditor.ex.FileEditorManagerEx
import com.intellij.testFramework.UsefulTestCase
class FileNameListenerTest: BaseTestCase() {
override fun getTestDataPath(): String {
return "src/test/testdata/java-... | 0 | Kotlin | 0 | 0 | c166a75bd838e9eff16713e779c377de7e62880e | 1,190 | intellisay | MIT License |
src/main/kotlin/g1001_1100/s1051_height_checker/Solution.kt | javadev | 190,711,550 | false | {"Kotlin": 4909193, "TypeScript": 50446, "Python": 3646, "Shell": 994} | package g1001_1100.s1051_height_checker
// #Easy #Array #Sorting #Counting_Sort #2023_05_29_Time_140_ms_(94.37%)_Space_35.3_MB_(77.46%)
class Solution {
fun heightChecker(heights: IntArray): Int {
var heightDiff = 0
val count = IntArray(101)
val actualLine = IntArray(heights.size)
... | 0 | Kotlin | 20 | 43 | 62708bc4d70ca2bfb6942e4bbfb4c64641e598e8 | 852 | LeetCode-in-Kotlin | MIT License |
app/src/main/java/ru/fredboy/toxoid/clean/domain/usecase/tox/GetLatestSelfConnectionStatusUseCase.kt | fredboy | 549,930,628 | false | null | package ru.fredboy.toxoid.clean.domain.usecase.tox
import im.tox.tox4j.core.enums.ToxConnection
import ru.fredboy.toxoid.clean.data.repository.ToxSelfConnectionRepository
import javax.inject.Inject
class GetLatestSelfConnectionStatusUseCase @Inject constructor(
private val toxSelfConnectionRepository: ToxSelfConn... | 0 | Kotlin | 0 | 1 | 01bb244970635a8e3e01d418e3c64b71d99010a3 | 460 | toxoid | MIT License |
src/main/kotlin/de/flapdoodle/tab/observable/KObservables.kt | flapdoodle-oss | 237,231,857 | false | null | package de.flapdoodle.tab.observable
import de.flapdoodle.fx.bindings.Bindings
import javafx.beans.binding.ObjectBinding
import javafx.collections.FXCollections
import javafx.collections.ObservableList
import org.fxmisc.easybind.monadic.MonadicBinding
fun <S : Any, D : Any> AObservable<S>.mapNonNull(map: (S) -> D?): ... | 0 | Kotlin | 1 | 0 | 8fbeeba0df11af2c780d48a505b826c9196c6158 | 3,737 | tab | Apache License 2.0 |
android-lang/src/com/android/tools/idea/lang/agsl/AgslParserDefinition.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | Kotlin | 230 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 2,467 | android | Apache License 2.0 |
app/src/main/kotlin/com/ojhdtapp/parabox/ui/common/ChangeLogBottomSheet.kt | Parabox-App | 482,740,446 | false | {"Kotlin": 1527632, "Java": 316} | package com.ojhdtapp.parabox.ui.common
import androidx.appcompat.app.AppCompatDelegate
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundatio... | 2 | Kotlin | 8 | 128 | ff3c8605d40e73ce90a86e816b21bb6d30f8d084 | 5,082 | Parabox | MIT License |
testing/src/test/kotlin/cz/vutbr/fit/knot/enticing/testing/performance/EnticingTestFixture.kt | d-kozak | 180,137,313 | false | {"Kotlin": 1104829, "TypeScript": 477922, "Python": 23617, "Shell": 19609, "HTML": 8510, "ANTLR": 2005, "CSS": 1432} | package cz.vutbr.fit.knot.enticing.testing.performance
import cz.vutbr.fit.knot.enticing.dto.SearchQuery
import cz.vutbr.fit.knot.enticing.dto.config.dsl.EnticingConfiguration
import cz.vutbr.fit.knot.enticing.dto.config.dsl.validateOrFail
import cz.vutbr.fit.knot.enticing.dto.config.executeScript
import cz.vutbr.fit.... | 0 | Kotlin | 0 | 0 | 1ea9f874c6d2e4ea158e20bbf672fc45bcb4a561 | 3,580 | enticing | MIT License |
subprojects/delivery/cd/src/main/kotlin/com/avito/ci/steps/TestSummaryPluginBuildStep.kt | avito-tech | 230,265,582 | false | null | package com.avito.ci.steps
import com.android.build.gradle.internal.tasks.factory.dependsOn
import com.avito.android.stats.statsdConfig
import com.avito.impact.configuration.internalModule
import com.avito.instrumentation.extractReportCoordinates
import com.avito.instrumentation.instrumentationTaskDefaultEnvironment
i... | 6 | null | 36 | 327 | b8d12a06a169ae60d89d24f66978a7dc23833282 | 2,581 | avito-android | MIT License |
java/src/test/java/trinsic/KotlinTestKt.kt | trinsic-id | 361,889,702 | false | {"Dart": 1230446, "TypeScript": 932951, "Java": 476366, "Rust": 305144, "Kotlin": 187564, "Python": 107506, "C#": 93194, "Go": 92301, "PowerShell": 6207, "JavaScript": 4802} | import kotlinx.coroutines.runBlocking
import org.junit.jupiter.api.Test
class KotlinTestKt {
@Test
fun ecosystemDemo() {
runBlocking { runEcosystemsDemo() }
}
@Test
fun trustRegistryDemo() {
runBlocking { runTrustRegistryDemo() }
}
@Test
fun vaccineDemo() {
runBlocking { runVaccineDemo() }
... | 10 | Dart | 16 | 28 | 8174f1266566ff1396fa344c212e19b2dcca6623 | 326 | sdk | Apache License 2.0 |
_pending/WeatherApp_v8/app/src/main/java/com/weatherapp/models/Clouds.kt | sosimpson1 | 371,359,679 | false | null | package com.blissvine.weatherapp.models
import java.io.Serializable
data class Clouds(
val all: Int,
): Serializable | 1 | null | 3 | 1 | fc0bfc3b717a681f504c7a438460798d4c7620d5 | 123 | my-android-journey | MIT License |
src/main/kotlin/org/opensearch/commons/notifications/model/EventSource.kt | opensearch-project | 354,136,133 | false | null | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.commons.notifications.model
import org.opensearch.common.Strings
import org.opensearch.common.io.stream.StreamInput
import org.opensearch.common.io.stream.StreamOutput
import org.opensearch.common.io.stream.Writea... | 28 | null | 93 | 7 | d221aa35182c323a191144cdb3668f08df45d964 | 4,617 | common-utils | Apache License 2.0 |
src/main/kotlin/org/opensearch/commons/notifications/model/EventSource.kt | opensearch-project | 354,136,133 | false | null | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.commons.notifications.model
import org.opensearch.common.Strings
import org.opensearch.common.io.stream.StreamInput
import org.opensearch.common.io.stream.StreamOutput
import org.opensearch.common.io.stream.Writea... | 28 | null | 93 | 7 | d221aa35182c323a191144cdb3668f08df45d964 | 4,617 | common-utils | Apache License 2.0 |
spesialist-selve/src/test/kotlin/no/nav/helse/mediator/api/OppgaveApiTest.kt | navikt | 244,907,980 | false | null | package no.nav.helse.mediator.api
import io.ktor.application.*
import io.ktor.auth.*
import io.ktor.client.*
import io.ktor.client.features.*
import io.ktor.client.features.json.*
import io.ktor.client.request.*
import io.ktor.client.statement.*
import io.ktor.features.*
import io.ktor.http.*
import io.ktor.jackson.*
... | 0 | Kotlin | 0 | 0 | a2f919f15447aaed116878d29ea3f42a76a921cc | 3,371 | helse-spesialist | MIT License |
src/main/kotlin/days/aoc2023/Day18.kt | bjdupuis | 435,570,912 | false | {"Kotlin": 537037} | package days.aoc2023
import days.Day
import util.Point2d
import util.Point2dl
import util.isOdd
import util.toward
import kotlin.math.max
import kotlin.math.min
class Day18 : Day(2023, 18) {
override fun partOne(): Any {
return calculatePartOneShoelace(inputList)
}
override fun partTwo(): Any {
... | 0 | Kotlin | 0 | 1 | c692fb71811055c79d53f9b510fe58a6153a1397 | 7,821 | Advent-Of-Code | Creative Commons Zero v1.0 Universal |
libdatabase2/src/main/java/ru/relation/onetomany/AlbumEntity.kt | elronsmith | 317,674,896 | false | null | package ru.relation.onetomany
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = AlbumEntity.TABLE_NAME)
data class AlbumEntity(
@PrimaryKey(autoGenerate = true)
@ColumnInfo(name = "id")
val id: Long = 0,
@ColumnInfo(name = "name")
val n... | 0 | Kotlin | 0 | 0 | 1d5eff3afb6123727db0ff28547f7365c79caf9b | 406 | ExampleRoom | Apache License 2.0 |
mock/src/main/kotlin/MockMachineMonitor.kt | neilellis | 15,782,049 | false | null | /*
* Copyright 2014 Cazcade Limited (http://cazcade.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 app... | 0 | Kotlin | 0 | 0 | 38d115785e33b1383d389815e039f5f09f6ccec1 | 1,803 | kontrol | Apache License 2.0 |
idea/tests/testData/multiModuleQuickFix/createExpect/enumComplex/jvm/jvm.kt | JetBrains | 278,369,660 | false | null | // "Create expected enum class in common module testModule_Common" "true"
// DISABLE-ERRORS
actual enum class <caret>Complex {
FIRST {
override fun foo() {}
};
actual abstract fun foo()
} | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 209 | intellij-kotlin | Apache License 2.0 |
app/src/main/java/at/ac/fhcampuswien/bookapplication/widgets/AppBar.kt | sytungan | 555,676,870 | false | {"Kotlin": 43876} | package at.ac.fhcampuswien.bookapplication.widgets
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.width
import androidx.compose.material.Text
import androidx.compose.mat... | 0 | Kotlin | 0 | 0 | ad2aa3652a110c52855ce5752c6f0d7ac7e385f9 | 1,154 | simple-book-app | MIT License |
src/test/kotlin/no/nav/familie/ef/sak/cucumber/steps/BeregningBarnetilsynEnPeriodeStepDefinitions.kt | navikt | 206,805,010 | false | null | package no.nav.familie.ef.sak.cucumber.steps
import io.cucumber.datatable.DataTable
import io.cucumber.java.no.Gitt
import io.cucumber.java.no.Når
import io.cucumber.java.no.Så
import no.nav.familie.ef.sak.beregning.barnetilsyn.BeregningBarnetilsynUtil
import no.nav.familie.ef.sak.cucumber.domeneparser.parseBigDecimal... | 8 | Kotlin | 2 | 0 | d1d8385ead500c4d24739b970940af854fa5fe2c | 2,887 | familie-ef-sak | MIT License |
shared/ui/src/androidMain/kotlin/com/moviearchive/ui/android/widget/Actions.kt | Adnan9011 | 742,366,441 | false | {"Kotlin": 131984, "Swift": 574} | package com.moviearchive.ui.android.widget
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import com.moviearchive.ui.widget.LikeAction
@Preview
@Composable
private fun LikeActionPreview() {
LikeAction(
isLiked = true,
onFavoriteClicked = {}
)
} | 0 | Kotlin | 1 | 12 | 71895140edd28ee13691a0fbe1fd49baf262a6cc | 317 | movie_archive_kmp | MIT License |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceProps.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 142794926} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.vpclattice
import io.cloudshiftdev.awscdk.CfnTag
import io.cloudshiftdev.awscdk.IResolvable
import io... | 1 | Kotlin | 0 | 4 | eb3eef728b34da593a3e55dc423d4f5fa3668e9c | 11,566 | kotlin-cdk-wrapper | Apache License 2.0 |
common/ui/compose/src/main/java/com/afterroot/ui/common/compose/components/MediaCard.kt | thesandipv | 255,834,235 | false | {"Kotlin": 565099, "Shell": 1180} | /*
* Copyright (C) 2020-2022 Sandip Vaghela
* 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 ... | 9 | Kotlin | 1 | 5 | b52a8c406045372408f45575f281e1920f57a87f | 7,107 | watchdone | Apache License 2.0 |
ledger/src/main/kotlin/org/knowledger/ledger/data/HumidityData.kt | fakecoinbase | 282,563,487 | false | null | @file:UseSerializers(BigDecimalSerializer::class)
package org.knowledger.ledger.data
import kotlinx.serialization.BinaryFormat
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import org.knowledger.ledger.config.GlobalLedgerConfiguration.GLOB... | 0 | Kotlin | 0 | 0 | 8bc64987e1ab4d26663064da06393de6befc30ae | 2,077 | SeriyinslashKnowLedger | MIT License |
libs/canvas-api-2/src/main/java/com/instructure/canvasapi2/models/DiscussionTopicHeader.kt | instructure | 179,290,947 | false | null | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* 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 requ... | 7 | null | 90 | 99 | 1bac9958504306c03960bdce7fbb87cc63bc6845 | 9,210 | canvas-android | Apache License 2.0 |
client_end_user/shared/src/commonMain/kotlin/presentation/chatSupport/ChatSupportInteractionListener.kt | TheChance101 | 671,967,732 | false | {"Kotlin": 2473455, "Ruby": 8872, "HTML": 6083, "Swift": 4726, "JavaScript": 3082, "CSS": 1436, "Dockerfile": 1407, "Shell": 1140} | package presentation.chatSupport
import presentation.base.BaseInteractionListener
interface ChatSupportInteractionListener: BaseInteractionListener {
fun onMessageChanged(message: String)
fun onClickSendMessage(message: String, userId: String)
fun onClickBack()
} | 4 | Kotlin | 55 | 572 | 1d2e72ba7def605529213ac771cd85cbab832241 | 277 | beep-beep | Apache License 2.0 |
compose/animation/animation/integration-tests/animation-demos/src/main/java/androidx/compose/animation/demos/AnimatedVisibilityDemo.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 937 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 9,256 | androidx | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/ui/data/entities.kt | sol-digital | 342,192,628 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 7c4d583263585ddab590e0cfed5676f3d1161391 | 6,647 | compose_challenge | Apache License 2.0 |
app/src/main/java/com/vitorpamplona/amethyst/model/AntiSpamFilter.kt | vitorpamplona | 587,850,619 | false | null | package com.vitorpamplona.amethyst.model
import android.util.Log
import android.util.LruCache
import androidx.lifecycle.LiveData
import com.vitorpamplona.amethyst.service.model.Event
import com.vitorpamplona.amethyst.service.relays.Relay
import com.vitorpamplona.amethyst.ui.components.BundledUpdate
import kotlinx.coro... | 120 | null | 88 | 686 | 24d722cdb72a7b52986e488b66a5540682be18f6 | 2,384 | amethyst | MIT License |
core/persistence/src/androidMain/kotlin/org/michaelbel/movies/persistence/database/MovieBlockingPersistence.kt | michaelbel | 115,437,864 | false | {"Kotlin": 927426, "Swift": 692, "HTML": 606, "Shell": 235} | @file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
package org.michaelbel.movies.persistence.database
import androidx.paging.PagingSource
import org.michaelbel.movies.persistence.database.entity.pojo.MoviePojo
import org.michaelbel.movies.persistence.database.typealiases.PagingKey
actual class MovieBloc... | 7 | Kotlin | 36 | 267 | 5d98adfc3b74eb87353870934f4969fc38279b4f | 563 | movies | Apache License 2.0 |
next/kmp/sys/src/commonMain/kotlin/org/dweb_browser/sys/permission/PermissionManagerRender.kt | BioforestChain | 594,577,896 | false | {"Kotlin": 2673868, "TypeScript": 704141, "Swift": 350138, "Vue": 146618, "SCSS": 39016, "Objective-C": 17350, "Shell": 11193, "HTML": 10807, "JavaScript": 3998, "CSS": 818} | package org.dweb_browser.sys.permission
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.requiredSize
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.Delete
import androidx.compos... | 47 | Kotlin | 4 | 11 | 2a129afdf353564b3dd93ad2ad6dd6528c43413b | 6,969 | dweb_browser | MIT License |
app/src/main/java/org/rdtoolkit/util/MediaUtil.kt | dimagi | 262,149,568 | false | null | package org.rdtoolkit.util
import android.graphics.BitmapFactory
import android.widget.ImageView
import java.io.InputStream
fun configureImageView(iv: ImageView, stream: InputStream?) : Boolean {
if (stream == null) {
iv.setImageBitmap(null)
return false
}
stream.use {
iv.setImageB... | 13 | null | 4 | 6 | f33c44c438c0b14ca7ce9795f558569afb1bdf56 | 1,275 | rd-toolkit | Apache License 2.0 |
gekom-core/src/main/kotlin/fr/cvlaminck/gekom/api/mapper/ValueProvider.kt | cyr62110 | 133,463,246 | false | null | package fr.cvlaminck.gekom.api.mapper
/**
* Interface providing methods to extract values of properties that will be mapped to the object using a [Mapper].
*/
interface ValueProvider {
/**
* Returns the value and the type of the property with name [propertyName].
*
* @param propertyName Name of t... | 0 | Kotlin | 0 | 0 | 4a18ef358ae81cd6724be7790fdf9500693a0fe7 | 490 | gekom | Apache License 2.0 |
platform/vcs-log/impl/src/com/intellij/vcs/log/history/VcsDirectoryRenamesProvider.kt | ingokegel | 284,920,751 | false | null | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.vcs.log.history
import com.intellij.openapi.components.*
import com.intellij.openapi.project.Project
import com.intellij.openapi.vcs.FilePath
import com.inte... | 284 | null | 5162 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 3,498 | intellij-community | Apache License 2.0 |
feature/weather/src/main/java/com/trifork/feature/weather/presentation/components/animations/AnimationDrawable.kt | codeskraps | 736,729,776 | false | {"Kotlin": 198822} | package com.trifork.feature.weather.presentation.components.animations
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.runtime.Composable
interface AnimationDrawable {
fun build(): @Composable (BoxScope.() -> Unit)
} | 0 | Kotlin | 0 | 0 | 9870a7358703239f9c46b10823ff562b486b16d5 | 250 | Weekly-Weather | Apache License 2.0 |
app/src/main/java/com/mcmp2023/s/data/db/models/Category.kt | S-B-Corporation | 649,775,096 | false | {"Kotlin": 122677} | package com.mcmp2023.s.data.db.models
import android.graphics.drawable.Drawable
data class Category(
val id : String,
val name: String,
val icon: Int
)
| 0 | Kotlin | 0 | 0 | 2a6ba547eb84bdacc295efdfc93827393d18500b | 166 | AplicationSB | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.