path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/kotlin/xyz/marcreyes/palaylab/app/custom/DisplayChart.kt | marcreyesph | 164,389,296 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 2, "Ignore List": 2, "Batchfile": 1, "Markdown": 2, "JSON": 2, "Proguard": 1, "Kotlin": 29, "XML": 28, "Java": 2, "HTML": 2, "CSS": 1, "SVG": 3, "YAML": 1} | package xyz.marcreyes.palaylab.app.custom
import android.graphics.Color
import com.github.mikephil.charting.animation.Easing
import com.github.mikephil.charting.charts.BarChart
import com.github.mikephil.charting.charts.PieChart
import com.github.mikephil.charting.components.XAxis
import com.github.mikephil.charting.d... | 0 | Kotlin | 1 | 2 | d0e6a1b98bf029b5c6762e5882198a261918c887 | 2,801 | palaylab-mobile | MIT License |
sezzleMerchantSDKAndroid/src/main/java/com/sezzle/sezzlemerchantsdkandroid/CheckoutRequest.kt | sezzle | 286,573,137 | false | {"Gradle": 5, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "INI": 1, "Proguard": 2, "Kotlin": 48, "XML": 22, "HTML": 1, "Java": 1} | package com.sezzle.sezzlemerchantsdkandroid
import android.os.Handler
import android.os.Looper
import android.util.Log
import com.beust.klaxon.Klaxon
import com.sezzle.sezzlemerchantsdkandroid.exception.APIException
import com.sezzle.sezzlemerchantsdkandroid.exception.ConnectionException
import com.sezzle.sezzlemercha... | 0 | Kotlin | 0 | 1 | 725d0e370853311ab1b60d3e636715994f337f84 | 3,352 | sezzlemerchantsdkandroid | Apache License 2.0 |
buildSrc/src/main/kotlin/com/anatawa12/gradleRust/CargoBuildTask.kt | fixrtm | 343,694,407 | false | null | @file:Suppress("UnstableApiUsage")
package com.anatawa12.gradleRust
import org.gradle.api.DefaultTask
import org.gradle.api.file.RegularFile
import org.gradle.api.provider.Provider
import org.gradle.api.tasks.*
import org.gradle.kotlin.dsl.*
import java.io.File
open class CargoBuildTask : DefaultTask(), EnvironmentP... | 3 | null | 1 | 2 | 9d99dcd2f420bf048131faa0b8b964b97da5c7dc | 3,383 | mod-patching | Apache License 2.0 |
app/src/main/java/com/frontinelabs/rxsample/interface/ViewTypeDelegateAdapter.kt | emjea | 106,777,564 | false | null | package com.frontinelabs.rxsample.`interface`
import android.support.v7.widget.RecyclerView
import android.view.ViewGroup
/**
* Created by EBaba on 12/10/2017.
*/
interface ViewTypeDelegateAdapter{
fun onCreateViewHolder(parent: ViewGroup): RecyclerView.ViewHolder
fun onBindViewHolder(holder: RecyclerView... | 1 | null | 1 | 1 | 504d87d06f2678ed31ea6752e1b18449fbdaf794 | 350 | RxSample | MIT License |
marcel-android-legacy/app/src/main/java/com/tambapps/marcel/android/marshell/ui/editor/LineCountWatcher.kt | tambapps | 587,877,674 | false | {"Maven POM": 26, "Text": 1, "Ignore List": 11, "Markdown": 87, "Kotlin": 465, "Gradle Kotlin DSL": 5, "INI": 4, "Java Properties": 4, "Shell": 5, "Batchfile": 2, "Proguard": 8, "XML": 83, "Java": 226, "YAML": 1, "JavaScript": 1, "TOML": 1, "Gradle": 5, "JFlex": 1} | package com.tambapps.marcel.android.marshell.ui.editor
import android.text.Editable
import android.text.TextWatcher
import androidx.lifecycle.MutableLiveData
class LineCountWatcher(private val linesCount: MutableLiveData<Int>): TextWatcher {
override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, a... | 0 | Java | 0 | 7 | 83bf3562f8bb6b43fe5d6f2e13c9ed5ad3300bce | 537 | marcel | Apache License 2.0 |
app/src/main/java/com/zkp/wanandroid/http/HttpsUtilWeather.kt | Zkp275557625 | 189,195,174 | false | null | package com.zkp.wanandroid.http
import android.content.Context
import android.util.Log
import com.franmontiel.persistentcookiejar.PersistentCookieJar
import com.franmontiel.persistentcookiejar.cache.SetCookieCache
import com.franmontiel.persistentcookiejar.persistence.SharedPrefsCookiePersistor
import com.zkp.wanandro... | 0 | Kotlin | 0 | 3 | dbe9f1fbae70e5b39ad71afece26495c3f7bcfc3 | 6,515 | WanAndroidKotlin | MIT License |
base/build-system/gradle-core/src/test/java/com/android/build/gradle/internal/tasks/featuresplit/FeatureNameWriterTaskTest.kt | qiangxu1996 | 301,210,525 | false | null | /*
* Copyright (C) 2019 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... | 1 | null | 1 | 1 | 3411c5436d0d34e6e2b84cbf0e9395ac8c55c9d4 | 1,996 | vmtrace | Apache License 2.0 |
samples/server/petstore/kotlin-springboot-3/src/test/kotlin/org/openapitools/api/UserApiTest.kt | OpenAPITools | 133,134,007 | false | null | package org.openapitools.api
import org.openapitools.model.User
import org.junit.jupiter.api.Test
import org.springframework.http.ResponseEntity
class UserApiTest {
private val service: UserApiService = UserApiServiceImpl()
private val api: UserApiController = UserApiController(service)
/**
* To te... | 4,939 | null | 6547 | 21,692 | 30ff0d7ca9c01cc6bea7e9b0914493223645956f | 3,058 | openapi-generator | Apache License 2.0 |
presentation/src/main/java/com/naeggeodo/presentation/view/MainActivity.kt | naeggeodo | 503,673,565 | false | null | package com.naeggeodo.presentation.view
import android.os.Build
import androidx.activity.viewModels
import androidx.core.view.WindowInsetsCompat.Type.ime
import androidx.core.view.isGone
import androidx.navigation.NavController
import androidx.navigation.NavOptions
import androidx.navigation.fragment.NavHostFragment
i... | 1 | Kotlin | 1 | 0 | 7dd8903cd1042a11fd43e5f6a76fe212cc5013fc | 2,642 | naeggeodo-android | MIT License |
core/src/main/kotlin/tech/openEdgn/test/system/process/impl/MFQAlgorithm.kt | ExplodingFKL | 316,875,411 | false | {"Gradle Kotlin DSL": 3, "Markdown": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 1, "Kotlin": 33, "Java": 4, "CSS": 3, "XML": 2, "Java Properties": 1} | package tech.openEdgn.test.system.process.impl
import tech.openEdgn.test.system.ProcessStatus
import tech.openEdgn.test.system.manager.ISystemManager
import tech.openEdgn.test.system.memory.IMemoryAlgorithm
import tech.openEdgn.test.system.pcbs.MFQPCB
import tech.openEdgn.test.system.process.SimpleProcessAlgorithm
imp... | 0 | Kotlin | 0 | 0 | 7aeca46864590e305c5cc76c01ce2f95d4baea85 | 4,898 | SystemOperation | MIT License |
ui-kit/src/main/java/com/quickblox/android_ui_kit/data/source/remote/RemoteDataSource.kt | QuickBlox | 637,751,718 | false | {"Kotlin": 1833847} | /*
* Created by Injoit on 13.01.2023.
* Copyright © 2023 Quickblox. All rights reserved.
*/
package com.quickblox.android_ui_kit.data.source.remote
import com.quickblox.android_ui_kit.data.dto.remote.dialog.RemoteDialogDTO
import com.quickblox.android_ui_kit.data.dto.remote.file.RemoteFileDTO
import com.quickblox.a... | 1 | Kotlin | 0 | 4 | 0ef856d22efb1540d6e238a073badbf31c03961a | 4,427 | android-ui-kit | MIT License |
module-wan/src/main/java/com/huyingbao/module/wan/ui/article/action/ArticleActionCreator.kt | coolfire2015 | 202,471,966 | false | null | package com.huyingbao.module.wan.ui.article.action
import com.huyingbao.core.arch.action.RxActionManager
import com.huyingbao.core.arch.dispatcher.RxDispatcher
import com.huyingbao.module.common.app.CommonAppConstants
import com.huyingbao.module.wan.BuildConfig
import com.huyingbao.module.wan.app.WanActionCreator
impo... | 0 | Kotlin | 0 | 1 | b33fe78edace5dfda77943885da2f0c6baaec952 | 1,554 | RxFluxArchApp | Apache License 2.0 |
app/src/main/java/com/mg/zeldamexchain/ui/view/fragments/EntryFragment.kt | FranciscoDanielLh | 856,706,986 | false | {"Kotlin": 23810} | package com.mg.zeldamexchain.ui.view.fragments
import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.core.view.isInvisible... | 0 | Kotlin | 0 | 0 | 46fd094709d21236bf9db0de558dce0675ded314 | 3,292 | ZeldaMexChain | MIT License |
libChat/messagePage/AutoInput/adapter/HorizontalRecyclerAutoInputViewAdapter.kt | Gianzhou | 308,232,822 | false | null | package com.somoplay.wefungame.libChat.messagePage.AutoInput.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import... | 0 | Kotlin | 0 | 0 | 48e7d1dfc279b5ae203d88824615fc6ba074d528 | 2,918 | AndroidChatFunction | MIT License |
app/src/main/java/com/gcect/gcectapp/adapters/ExaminationScheduleViewPagerAdapter.kt | anistdnt | 458,702,833 | true | {"Kotlin": 144960} | package com.gcect.gcectapp.adapters
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.navigation.NavController
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.gcect.gcectapp.ui.fragments.CSIFragment
import com.gcect... | 0 | Kotlin | 0 | 1 | 2a71986d8388ac5b6c079e200bacf23078cd9845 | 1,001 | GCECT-APP | MIT License |
core/src/main/java/com/loitp/game/findNumber/ui/FrmFindNumberPlay.kt | tplloi | 126,578,283 | false | null | package com.game.findnumber.ui
import android.app.ActivityOptions
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.util.TypedValue
import android.view.Gravity
import android.view.View
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.constraintl... | 1 | Kotlin | 1 | 9 | 1bf1d6c0099ae80c5f223065a2bf606a7542c2b9 | 5,783 | base | Apache License 2.0 |
increase-kotlin-core/src/main/kotlin/com/increase/api/models/InboundAchTransferReturnCreateParams.kt | Increase | 614,596,742 | false | null | package com.increase.api.models
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
import co... | 1 | Kotlin | 0 | 1 | 7e4d46996a733dbb137f6b5ba3d70b1084e1f362 | 16,202 | increase-kotlin | Apache License 2.0 |
src/test/kotlin/com/roundel/serpent/SerpentTest.kt | BWalusiak | 267,695,775 | false | null | package com.roundel.serpent
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.ParameterizedTest.INDEX_PLACEHOLDER
import org.junit.jupiter.params.provider.CsvFileSource
/**
* Test vector source: http://www.cs.technion.ac.il/~biham/R... | 0 | Kotlin | 0 | 0 | 35792e0a7ec9fdfc99e29ae37209ad414aefb404 | 1,155 | serpent-kotlin | MIT License |
app/src/main/java/com/babylon/wallet/android/presentation/transaction/analysis/processor/ValidatorStakeProcessor.kt | radixdlt | 513,047,280 | false | null | package com.babylon.wallet.android.presentation.transaction.analysis.processor
import com.babylon.wallet.android.domain.model.Transferable
import com.babylon.wallet.android.domain.model.TransferableAsset
import com.babylon.wallet.android.domain.usecases.assets.ResolveAssetsFromAddressUseCase
import com.babylon.wallet.... | 8 | null | 6 | 9 | 04554f86520d77f3e9f27786064c666ad45a3d7c | 4,911 | babylon-wallet-android | Apache License 2.0 |
common/src/main/kotlin/org/jglrxavpok/hephaistos/mca/Palette.kt | jglrxavpok | 276,705,212 | false | {"Kotlin": 192927, "Java": 186060, "ANTLR": 1574} | package org.jglrxavpok.hephaistos.mca
import it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap
import org.jglrxavpok.hephaistos.collections.ImmutableLongArray
import org.jglrxavpok.hephaistos.mcdata.Biome
import org.jglrxavpok.hephaistos.nbt.NBT
import org.jglrxavpok.hephaistos.nbt.NBTCompound
import org.jglrxavpok.... | 6 | Kotlin | 11 | 54 | ddcb64d5d8e6854290350a288543655903500dca | 5,731 | Hephaistos | MIT License |
app/src/main/java/com/muen/sunnyweather/utils/SnackBar.kt | Asheone12 | 693,938,653 | false | {"Kotlin": 26484} | package com.muen.materialdesigntest.utils
import android.view.View
import android.widget.Toast
import com.google.android.material.snackbar.Snackbar
fun View.showSnackbar(text:String,actionText:String?=null,
duration: Int=Toast.LENGTH_SHORT,block:(()->Unit)?=null){
val snackbar=Snackbar.make(... | 0 | Kotlin | 0 | 0 | ed7f1805f267d55be892be30cf88d6a7c0d112df | 802 | SunnyWeather | Apache License 2.0 |
app/src/main/java/com/appunite/loudius/ui/components/LoudiusFullScreenError.kt | appunite | 604,044,782 | false | null | /*
* Copyright 2023 AppUnite S.A.
*
* 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 t... | 6 | Kotlin | 0 | 13 | 49cfa8a65226b5bbb6bc420d62e530b2e8de5eb1 | 3,648 | Loudius | Apache License 2.0 |
common-app-covpass/src/main/java/de/rki/covpass/app/certificateswitcher/CertificateSwitcherFragment.kt | Digitaler-Impfnachweis | 376,239,258 | false | null | /*
* (C) Copyright IBM Deutschland GmbH 2021
* (C) Copyright IBM Corp. 2021
*/
package de.rki.covpass.app.certificateswitcher
import android.content.Context
import android.os.Bundle
import android.view.View
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible
import androidx.recyclerview.... | 34 | null | 60 | 185 | 7301f1500dab4a686aa40341500667cf4cc54d1e | 9,166 | covpass-android | Apache License 2.0 |
ui-showdetails/src/main/java/app/tivi/showdetails/details/ShowDetailsAction.kt | cdsap | 253,314,668 | false | {"Gradle": 32, "YAML": 10, "Shell": 6, "Java Properties": 3, "Markdown": 5, "Text": 9, "Ignore List": 2, "Batchfile": 1, "XML": 195, "Kotlin": 413, "Java": 7, "JSON": 35, "INI": 1, "Proguard": 1, "Gradle Kotlin DSL": 1, "Dockerfile": 2} | /*
* 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,491 | tivi | Apache License 2.0 |
app/src/main/kotlin/com/github/premnirmal/ticker/network/NewsProvider.kt | nassemz | 265,851,148 | true | {"Kotlin": 313301} | package com.github.premnirmal.ticker.network
import com.github.premnirmal.ticker.components.Injector
import com.github.premnirmal.ticker.model.FetchException
import com.github.premnirmal.ticker.model.FetchResult
import com.github.premnirmal.ticker.network.data.NewsArticle
import com.github.premnirmal.ticker.network.da... | 0 | Kotlin | 0 | 0 | 26a4c980cd2d6ca96dca232df157f0f3000336ab | 2,062 | StockTicker | MIT License |
chapter5_configuration/src/main/kotlin/com/example/springinaction/tacos/RegistrationController.kt | jpwiedekopf | 374,557,285 | false | null | package com.example.springinaction.tacos
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.security.crypto.password.PasswordEncoder
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.P... | 0 | Kotlin | 1 | 1 | 12ab65dd55d33e227c1bc751596e23b42563530b | 938 | spring-in-action | Apache License 2.0 |
src/test/kotlin/net/starlegacy/feature/multiblock/areashield/AreaShield5Test.kt | hafarooki | 437,384,015 | false | null | package net.starlegacy.feature.multiblock.areashield
import net.starlegacy.feature.progression.advancement.SLAdvancement
import net.starlegacy.util.Vec3i
internal class AreaShield5Test : AreaShieldTest() {
override fun getMultiblock() = AreaShield5
override fun getExpectedAdvancement() = SLAdvancement.AREA_SH... | 0 | Kotlin | 16 | 4 | c830eb40180c935e8bfff599da0f9310eeccfb5c | 441 | StarLegacy | MIT License |
kotlin-mui-icons/src/main/generated/mui/icons/material/CalendarViewMonthTwoTone.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/CalendarViewMonthTwoTone")
package mui.icons.material
@JsName("default")
external val CalendarViewMonthTwoTone: SvgIconComponent
| 10 | Kotlin | 5 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 212 | kotlin-wrappers | Apache License 2.0 |
src/test/kotlin/ru/capjack/tool/biser/generator/langs/kotlin/KotlinLoaderTest.kt | CaptainJack | 362,383,807 | false | null | package ru.capjack.tool.biser.generator.langs.kotlin
import ru.capjack.tool.biser.generator.model.DefaultModel
import ru.capjack.tool.biser.generator.model.Model
import java.nio.file.Paths
import kotlin.test.Test
import kotlin.test.assertEquals
class KotlinLoaderTest {
@Test
fun `Load to empty model`() {
val mode... | 0 | Kotlin | 0 | 0 | dc770d80f77413f9a28157dfa566e35701f455c0 | 635 | tool-biser-generator | MIT License |
kotlin/241.Different Ways to Add Parentheses(为运算表达式设计优先级).kt | learningtheory | 141,790,045 | false | {"Python": 4025652, "C++": 1999023, "Java": 1995266, "JavaScript": 1990554, "C": 1979022, "Ruby": 1970980, "Scala": 1925110, "Kotlin": 1917691, "Go": 1898079, "Swift": 1827809, "HTML": 124958, "Shell": 7944} | /**
<p>Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. The valid operators are <code>+</code>, <code>-</code> and <code>*</code>.</p>
<p><b>Example 1:</b></p>
<pre>
<b>Input:</b> <code>"2-1-1"</code>
<b>Outpu... | 0 | Python | 1 | 3 | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | 2,047 | leetcode | MIT License |
src/main/kotlin/com/mx/hush/HushPlugin.kt | mxenabled | 504,646,339 | false | null | /**
* Copyright 2020 MX Technologies.
*
* 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 t... | 0 | Kotlin | 0 | 3 | e828053c327b25f7328f0dac34ef145d0b041b8c | 1,975 | hush | Apache License 2.0 |
accelerators/corda/service-bus-integration/corda-local-network/src/main/kotlin/net/corda/workbench/cordaNetwork/tasks/StopCordaNodesTask.kt | Azure-Samples | 175,045,447 | false | null | package net.corda.workbench.cordaNetwork.tasks
import net.corda.workbench.commons.event.EventStore
import net.corda.workbench.commons.registry.Registry
import net.corda.workbench.commons.taskManager.ExecutionContext
import net.corda.workbench.commons.taskManager.NodesTask
import net.corda.workbench.commons.taskManager... | 18 | Kotlin | 116 | 138 | 5b55efd24d2239a7a2d57fb395b0a230e687dc73 | 1,151 | blockchain-devkit | MIT License |
app/src/main/java/com/motionapps/sensorbox/fragments/advanced/AdvancedFragment.kt | maaeedee | 375,376,778 | true | {"Kotlin": 436072, "Java": 37398} | package com.motionapps.sensorbox.fragments.advanced
import android.Manifest
import android.os.Build
import androidx.core.content.ContextCompat
import androidx.navigation.NavDirections
import androidx.navigation.Navigation
import com.motionapps.sensorbox.R
import com.motionapps.sensorbox.fragments.HomeFragment
import c... | 0 | null | 0 | 0 | de0c4f939426cbf3c0bd294e90be031d38a1b5eb | 1,807 | SensorBox | Apache License 2.0 |
src/cds-converter/src/main/kotlin/Application.kt | icpc | 447,849,919 | false | null | package org.icpclive
import ClicsExporter
import io.ktor.http.*
import io.ktor.serialization.kotlinx.json.*
import io.ktor.server.application.*
import io.ktor.server.plugins.autohead.*
import io.ktor.server.plugins.callloging.*
import io.ktor.server.plugins.contentnegotiation.*
import io.ktor.server.plugins.cors.routi... | 15 | Kotlin | 7 | 28 | b8ad2d7f1852076b67fcbcb5643b3490a1478462 | 4,620 | live-v3 | MIT License |
src/test/kotlin/ProjectListTest.kt | alpascasts | 240,444,828 | false | null | import dev.alpas.fireplace.database.factories.ProjectFactory
import dev.alpas.fireplace.database.factories.UserFactory
import dev.alpas.fireplace.entities.Project
import dev.alpas.fireplace.entities.Projects
import dev.alpas.make
import dev.alpas.pulsar.RefreshDatabase
import org.junit.jupiter.api.Test
import org.junit... | 1 | null | 1 | 1 | 9d21841d2db039158618f471cc25dac84e6a6353 | 2,890 | fireplace | MIT License |
app/src/main/java/com/example/lessons_schedule/schedule/components/EditScheduleDialog.kt | RUD0MIR | 597,636,190 | false | {"Kotlin": 75382} | package com.example.lessons_schedule.schedule.components
import android.app.ActionBar
import android.app.Dialog
import android.content.Context
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import a... | 0 | Kotlin | 0 | 0 | b4ff2a5d4c09e0b4fef40264d5e2ff324c75c507 | 6,071 | lessons-schedule-manager-app | MIT License |
src/main/kotlin/core/transaction/AccountingTransactionBuilder.kt | leus | 117,886,540 | false | null | package core.transaction
import core.account.AccountSide
import core.account.AccountingEntry
import java.math.BigDecimal
import java.time.Instant
import java.util.HashSet
class AccountingTransactionBuilder private constructor(private val info: Map<String, String>?) {
private val entries = HashSet<AccountingEntry>... | 1 | null | 1 | 1 | 2f89ff3f16fb15d87651b9e8ee56bfa1fe91107e | 1,161 | accounting | MIT License |
app/src/main/kotlin/dev/teogor/ceres/feature/lookandfeel/LookAndFeelScreen.kt | teogor | 555,090,893 | false | {"Kotlin": 1325679} | /*
* Copyright 2023 teogor (<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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 2 | Kotlin | 4 | 62 | d7381c48a88dd5f887fb41e0ad13475a47589e87 | 2,862 | ceres | Apache License 2.0 |
composeApp/src/wasmJsMain/kotlin/augmy/interactive/com/shared/LocalSettings.kt | Let-s-build-something | 867,003,530 | false | {"Kotlin": 108818, "HTML": 2487, "JavaScript": 1633, "CSS": 690} | package augmy.interactive.com.shared
/** Configuration specific to this application */
data class LocalSettings(
/** user-selected theme for this application */
val theme: ThemeChoice = ThemeChoice.SYSTEM
)
enum class ThemeChoice {
LIGHT,
DARK,
SYSTEM
} | 0 | Kotlin | 0 | 1 | b352de83416659e791829eb89c464512e397d9ee | 276 | website-brand | Apache License 2.0 |
app/src/test/java/se/locutus/sl/realtidhem/ConfigurationTest.kt | ovelius | 157,601,439 | false | {"Kotlin": 227960, "Batchfile": 351} | package se.locutus.sl.realtidhem
import android.appwidget.AppWidgetManager
import android.content.Context
import android.os.PowerManager
import androidx.test.core.app.ApplicationProvider
import org.hamcrest.CoreMatchers
import org.junit.Assert
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectri... | 2 | Kotlin | 0 | 3 | ff49106e55980bed22375d3465d21d2180e78b9e | 2,646 | SlRealtidwidget-ng | Apache License 2.0 |
app/src/main/java/io/bidmachine/qr_ad_fetcher/ad/VideoAd.kt | NikitaCherep | 226,803,683 | false | null | package io.bidmachine.qr_ad_fetcher.ad
import android.app.Activity
import android.content.Context
import com.explorestack.iab.utils.IabClickCallback
import com.explorestack.iab.vast.*
import com.explorestack.iab.vast.activity.VastActivity
import io.bidmachine.qr_ad_fetcher.Helper
class VideoAd(private val adListener:... | 0 | Kotlin | 1 | 1 | 71b4941645d0b6cee734ad5a621ce4e52aaf461d | 2,361 | QRAdFetcher | Apache License 2.0 |
2021/src/day14/Day14KtTest.kt | scrubskip | 160,313,272 | false | {"Kotlin": 145509, "Python": 114888, "Dart": 86314} | package day14
import org.junit.jupiter.api.Assertions.*
import kotlin.test.Test
internal class Day14KtTest {
val INPUT = listOf(
"NNCB",
"",
"CH -> B",
"HH -> N",
"CB -> H",
"NH -> C",
"HB -> C",
"HC -> B",
"HN -> C",
"NN -> C",
... | 0 | Kotlin | 0 | 0 | 5057c1f12d8a3553e932b614d213a4bcf3d229c8 | 1,949 | adventofcode | Apache License 2.0 |
libs/hops-common-fhir/src/main/kotlin/no/nav/helse/hops/fhir/messages/BaseMessage.kt | ybelMekk | 375,614,053 | true | {"Gradle Kotlin DSL": 11, "Markdown": 6, "Ignore List": 3, "CODEOWNERS": 1, "Dockerfile": 1, "INI": 3, "Shell": 1, "Batchfile": 1, "YAML": 19, "XML": 16, "Kotlin": 132, "JSON": 24, "Python": 1, "Dotenv": 1, "Java": 19} | package no.nav.helse.hops.fhir.messages
import org.hl7.fhir.r4.model.Bundle
import org.hl7.fhir.r4.model.MessageHeader
import org.hl7.fhir.r4.model.Resource
/** See https://www.hl7.org/fhir/messaging.html **/
abstract class BaseMessage(val bundle: Bundle) {
init {
require(bundle.entry != null && bundle.en... | 0 | null | 0 | 0 | 664e2248c97b020370e5c11230c020ddafd2d41d | 890 | helseopplysninger | MIT License |
typescript-kotlin/src/jsMain/kotlin/typescript/CaseKeyword.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6912722} | // Automatically generated - do not modify!
package typescript
typealias CaseKeyword = KeywordToken<SyntaxKind.CaseKeyword>
| 0 | Kotlin | 7 | 31 | 79f2034ed9610e4416dfde5b70a0ff06f88210b5 | 126 | types-kotlin | Apache License 2.0 |
app/src/main/java/com/pr0gramm/app/ui/views/UsernameView.kt | mopsalarm | 30,804,448 | false | {"Kotlin": 1414351, "Shell": 6752, "Python": 1124} | package com.pr0gramm.app.ui.views
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.*
import android.text.SpannableStringBuilder
import android.text.style.ForegroundColorSpan
import android.text.style.ImageSpan
import android.util.AttributeSet
import android.widget.TextView
... | 39 | Kotlin | 38 | 284 | d6917f3ec16b6664a90a4519843f3d3d4ccae2cf | 3,639 | Pr0 | MIT License |
androidApp/src/main/java/cat/alexgluque/paraulogicsolver/android/RootVIew.kt | alexluque | 451,162,453 | false | null | package cat.alexgluque.paraulogicsolver.android
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.layout.Arrangement.Center
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.Text
import androidx.compose... | 0 | Kotlin | 0 | 0 | 4d1d0b78d4c5d8b9a9d7c20a75e1fc857e9b1ccf | 6,377 | ParaulogicSolver | Apache License 2.0 |
ui/source/src/main/kotlin/dev/sanson/lightroom/ui/source/ChooseSource.kt | jamiesanson | 662,641,050 | false | null | // Copyright (C) 2023, Jamie Sanson
// SPDX-License-Identifier: Apache-2.0
package dev.sanson.lightroom.ui.source
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.ani... | 4 | null | 0 | 1 | 8ef2e0528bcf2cf20b0ae641795d86ed458e891f | 7,218 | lightroom-muzei | Apache License 2.0 |
multiplatform-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/foundation/lazy/LazyColumn.kt | cl3m | 327,994,833 | false | null | package com.rouge41.kmm.compose.foundation.lazy
import com.rouge41.kmm.compose.ui.Modifier
import com.rouge41.kmm.compose.foundation.layout.PaddingValues
import com.rouge41.kmm.compose.foundation.InteractionState
import com.rouge41.kmm.compose.foundation.layout.Arrangement
import com.rouge41.kmm.compose.foundation.lay... | 2 | Kotlin | 24 | 458 | 4bf075118ccc5f80d03e4ed28118299e1b749182 | 2,147 | multiplatform-compose | Apache License 2.0 |
cinescout/database/src/commonMain/kotlin/cinescout/database/sample/DatabaseSeasonSample.kt | fardavide | 280,630,732 | false | {"Kotlin": 2374797, "Shell": 11599} | package cinescout.database.sample
import cinescout.database.model.DatabaseSeason
import cinescout.database.model.id.DatabaseTmdbSeasonId
import cinescout.database.model.id.DatabaseTraktSeasonId
import korlibs.time.Date
object DatabaseSeasonSample {
val BreakingBad_s0 = DatabaseSeason(
episodeCount = 0,
... | 11 | Kotlin | 2 | 6 | 67ae15424264bb80befcae68590243e970e9d040 | 1,656 | CineScout | Apache License 2.0 |
spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/web/reactive/webflux/MyRoutingConfiguration.kt | snicoll | 16,165,420 | false | null | /*
* Copyright 2012-2022 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 576 | null | 6 | 8 | 0934b68c6c234f32fc32c3b5f13f05d55a13a69b | 1,801 | spring-boot | Apache License 2.0 |
plugin/src/main/kotlin/com/astrainteractive/astrasync/utils/Locker.kt | Astra-Interactive | 525,464,505 | false | null | package com.astrainteractive.astrasync.utils
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import java.util.concurrent.ConcurrentHashMap
class Locker<T> {
private val writerDispatcher = Dispatchers.IO.limitedParallelism(1)
private val set: MutableSet<T> = ConcurrentHashMap.newKey... | 0 | Kotlin | 0 | 0 | 5069aa6fe6a56e3c309e2e597147bcd671493391 | 617 | AstraSync | MIT License |
app/src/main/java/com/yvkalume/gifapp/ui/screen/favorite/FavoriteScreen.kt | yveskalume | 604,632,872 | false | null | package com.yvkalume.gifapp.ui.screen.favorite
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentHeight
impo... | 0 | Kotlin | 0 | 3 | 4815a9563f899cbf90237a1a93de2d57d0fedeac | 3,761 | gif-app | Apache License 2.0 |
utilcode/src/test/java/com/blankj/utilcode/util/EncodeUtilsTest.kt | cat-x | 121,213,241 | true | {"Kotlin": 1063393, "Java": 25059} | package com.blankj.utilcode.util
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import org.robolectric.annotation.Config
import java.util.*
/**
* <pre>
* author: Blankj
* blog : http://blank... | 0 | Kotlin | 0 | 0 | ba2d70d56ae44180933524aa3e2cfe96909e4876 | 2,537 | AndroidUtilCode-Kotlin | Apache License 2.0 |
common/src/main/kotlin/cn/disy920/chatbridge/network/packets/c2s/PingC2SPacket.kt | disymayufei | 823,768,380 | false | {"Kotlin": 24135} | package cn.disy920.chatbridge.network.packets.c2s
object PingC2SPacket : C2SPacket<Map<Nothing, Nothing>>(
type = "ping",
reqGroup = null,
args = emptyMap()
) | 0 | Kotlin | 0 | 1 | 5a57fd1ff6da5ced3bc8c16554ac1fafdf52f01a | 171 | ChatBridge | Apache License 2.0 |
app/src/main/java/com/duckduckgo/app/global/view/ClearPersonalDataAction.kt | andrey-p | 164,923,819 | false | {"Gemfile.lock": 1, "Git Config": 1, "Gradle": 4, "Shell": 2, "YAML": 1, "Java Properties": 3, "Markdown": 5, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Ruby": 2, "CMake": 1, "Proguard": 1, "XML": 142, "JSON": 19, "Kotlin": 328, "Java": 5, "C++": 17, "C": 4} | /*
* Copyright (c) 2018 DuckDuckGo
*
* 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 ... | 1 | null | 1 | 1 | e4328e68fda04b2e7d874fd0c974311014afe9fe | 4,090 | Android | Apache License 2.0 |
data/local/src/main/java/com/developersancho/local/db/RortyDatabase.kt | developersancho | 454,045,719 | false | {"Kotlin": 643302} | package com.developersancho.local.db
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.developersancho.local.converter.StringListConverter
import com.developersancho.local.dao.CharacterFavoriteDao
import com.developersancho.local.dao.EpisodeFavoriteDao
impor... | 1 | Kotlin | 33 | 236 | 53d96f038e70712387f26a0099949c26a2aa2311 | 976 | JetRorty.Android | Apache License 2.0 |
src/main/kotlin/net/fakezane/klox/TokenType.kt | AnotherZane | 553,108,751 | false | {"Kotlin": 37439} | package net.fakezane.klox
enum class TokenType {
// Single-character tokens.
LEFT_PAREN, RIGHT_PAREN, LEFT_BRACE, RIGHT_BRACE,
COMMA, DOT, SEMICOLON, SLASH, STAR,
MINUS, PLUS, MINUS_MINUS, PLUS_PLUS,
CARET, TILDE,
// One or two character tokens.
BANG, BANG_EQUAL,
EQUAL, EQUAL_EQUAL,
... | 0 | Kotlin | 0 | 2 | 206b8ca4a4da5137155340e4ce407c18e0d4afa5 | 664 | Klox | MIT License |
src/commonMain/kotlin/github/otisgoodman/pocketKt/dsl/collections/Collection.kt | OtisGoodman | 572,316,780 | false | null | package github.otisgoodman.pocketKt.dsl.collections
import github.otisgoodman.pocketKt.PocketKtDSL
import github.otisgoodman.pocketKt.PocketbaseException
import github.otisgoodman.pocketKt.dsl.query.ExpandRelations
import github.otisgoodman.pocketKt.models.Collection
import github.otisgoodman.pocketKt.models.Collectio... | 4 | Kotlin | 1 | 3 | 99d4c3f99cad97bd3718829628c986b06b371d89 | 13,382 | pocket-kt | MIT License |
app/src/main/java/com/tigerspike/flickrfeed/data/api/model/ImagesResponse.kt | knighthedspi | 216,192,104 | false | null | package com.tigerspike.flickrfeed.data.api.model
data class ImagesResponse(
val title: String,
val link: String,
val description: String,
val modified: String,
val generator: String,
val items: List<ImageItem>
) | 0 | Kotlin | 0 | 2 | 6d4e9e856adca7da912d01f6c24dc703c7fdc7a1 | 236 | FlickrFeed | Apache License 2.0 |
OrderCenter/src/main/java/com/kotlin/order/presenter/view/OrderConfirmView.kt | starktonys | 140,391,283 | false | {"Kotlin": 263051, "Java": 7941} | package com.kotlin.order.presenter.view
import com.kotlin.base.presenter.view.BaseView
import com.kotlin.order.data.protocol.Order
/*
订单确认页 视图回调
*/
interface OrderConfirmView : BaseView {
//获取订单回调
fun onGetOrderByIdResult(result:Order)
//提交订单回调
fun onSubmitOrderResult(result:Boolean)
}
| 0 | Kotlin | 1 | 8 | 7cb3f869a27c9f8a6ba44b72a7d328a1383ec4aa | 311 | KotlinMall-App | Apache License 2.0 |
Chapter06/KotlinCoroutine/src/main/kotlin/4_CancellingAJob.kt | bpbpublications | 282,140,018 | false | {"Kotlin": 105989, "Java": 22937, "Swift": 4863, "Assembly": 30} | import kotlinx.coroutines.*
import kotlinx.coroutines.Dispatchers.Default
import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.Dispatchers.Main
import kotlin.coroutines.EmptyCoroutineContext
import kotlin.random.Random
import kotlin.system.exitProcess
fun main() {
runBlocking {
val orderJob ... | 1 | Kotlin | 1 | 3 | d2ac05eb771dc03f184ff0684035b2e9f63e0b37 | 878 | Android-Application-Development-with-Kotlin | MIT License |
app/src/main/java/com/android/anonymous_02_22/ui/recycler/OffsetItemDecoration.kt | ngothanhtuan1203 | 464,987,929 | false | {"Kotlin": 84145} | package com.android.anonymous_02_22.ui.recycler
import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.RecyclerView
class OffsetItemDecoration(private val spanCount: Int, private val spacing: Int, private val includeEdge: Boolean) : RecyclerView.ItemDecoration() {
private var f... | 0 | Kotlin | 0 | 0 | a6017683936fbe748a5424692893bd71ba23e518 | 1,517 | anonymous_02_22 | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/BlogPencil.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,840 | icons | MIT License |
wear/src/main/java/com/turtlepaw/sleeptools/utils/data.kt | Turtlepaw | 850,914,510 | false | {"Kotlin": 129319} | package com.turtlepaw.sleeptools.utils
import android.util.Log
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.stringSetPreferencesKey
import androidx.lifecycle.ViewModel
import an... | 0 | Kotlin | 0 | 0 | fefcc68ef68667f28eebe6de2b12ab1ce252e439 | 4,344 | sleep | Apache License 2.0 |
src/test/kotlin/no/nav/sokos/spk/mottak/util/UtilTest.kt | navikt | 758,019,980 | false | {"Kotlin": 141844, "Shell": 945, "Dockerfile": 111} | package no.nav.sokos.spk.mottak.util
import io.kotest.core.spec.style.ExpectSpec
import io.kotest.matchers.shouldBe
import java.time.LocalDate
import no.nav.sokos.spk.mottak.util.Util.toLocalDate
class UtilTest : ExpectSpec({
context("string konverteres til LocalDate") {
expect("returnerer LocalDate") {... | 0 | Kotlin | 0 | 0 | bda9bb90d652f62cdd4eddd5429b76d3c9f8edcf | 734 | sokos-spk-mottak | MIT License |
app/src/main/java/com/bitshares/oases/database/blockchain_daos/VestingBalanceDao.kt | huskcasaca | 464,732,039 | false | null | package com.bitshares.oases.database.blockchain_daos
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Query
import bitshareskit.objects.GrapheneObject
import bitshareskit.objects.VestingBalanceObject
@Dao
interface VestingBalanceDao : GrapheneObjectDao<VestingBalanceObject> {
@Que... | 0 | Kotlin | 4 | 5 | 2522ec7169a5fd295225caf936bae2edf09b157e | 752 | bitshares-oases-android | MIT License |
src/test/kotlin/org/gmd/slack/command/AddGameTest.kt | akustik | 184,784,065 | false | null | package org.gmd.slack.command
import org.gmd.Algorithm
import org.gmd.EnvProviderForTesting
import org.gmd.TestData.Companion.dummy
import org.gmd.TestData.Companion.player1
import org.gmd.TestData.Companion.player2
import org.gmd.model.Evolution
import org.gmd.service.AsyncGameServiceForTesting
import org.gmd.service... | 8 | null | 3 | 4 | 07184b0ea0889b22c78b46f710818187d36b1af7 | 3,494 | topscores | MIT License |
libraries/design/src/main/java/com/fappslab/seedcake/libraries/design/pluto/customview/plutopinview/PinResult.kt | F4bioo | 693,834,465 | false | {"Kotlin": 401014, "Python": 2583, "Shell": 900} | package com.fappslab.seedcake.libraries.design.pluto.customview.plutopinview
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
sealed class PinResult : Parcelable {
object Validate : PinResult()
data class Register(val pin: String) : PinResult()
}
| 0 | Kotlin | 0 | 1 | b126728e15261c877943736d592d7d269618a114 | 283 | Seedcake | MIT License |
src/main/kotlin/io/github/dqualizer/dqlang/types/rqa/definition/loadtest/parametrization/PathVariable.kt | dqualizer | 610,310,524 | false | {"Kotlin": 86018, "HTML": 3542, "Python": 3352} | package io.github.dqualizer.dqlang.types.rqa.definition.loadtest.parametrization
import java.util.LinkedList
data class PathVariable(
val name: String? = null,
val scenarios: List<Scenario>? = LinkedList()
)
| 7 | Kotlin | 0 | 0 | 8799a0dafd87314e39656e42a09638a9b3b40be9 | 219 | dqlang | Apache License 2.0 |
src/commonMain/kotlin/conversations/demo/DemoConversation.kt | hiperbou | 532,496,333 | false | {"Kotlin": 44693, "Shell": 1210} | package conversations.demo
import com.hiperbou.conversation.dsl.*
import core.*
class DemoConversation {
companion object{
val singleLineTest = say("This is fine")
val test1 = conversation {
//0 - set character
//1 - say
//2-19 OptionsDevice
val var... | 0 | Kotlin | 0 | 0 | 0767dc9ebd38700ff7ff710ef73d99d3aeb5ec5d | 3,909 | korgersation | MIT License |
app/src/main/java/com/seadev/aksi/adapter/ProfileAdapter.kt | Jagongan-Software-Engineering | 250,706,553 | false | null | package com.seadev.aksi.adapter
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.recyclerview.widget.RecyclerView
import c... | 0 | Kotlin | 0 | 1 | b8addb9b0fe2d3b4221b4ee09cc4e9e80e7e3495 | 2,940 | kampung-siaga-covid-app | MIT License |
src/main/kotlin/io/github/cidverse/cid/sdk/domain/VCSAuthor.kt | cidverse | 568,851,225 | false | {"Kotlin": 18409} | package io.github.cidverse.cid.sdk.domain
data class VCSAuthor(
val name: String,
val email: String,
)
| 0 | Kotlin | 0 | 0 | fd0a3fdc8f2ed3386a8dde038ca10722d1ce6314 | 112 | cid-sdk-java | MIT License |
lib/src/androidTest/java/com/mobilabsolutions/stash/core/HyperchargePaymentInstrumentationTests.kt | mobilabsolutions | 152,575,999 | false | null | package com.mobilabsolutions.stash.core/*
* Copyright © MobiLab Solutions GmbH
*/
// package com.mobilabsolutions.payment.android.newapi
//
// import android.app.Application
// import android.os.Build
// import androidx.test.InstrumentationRegistry
// import com.mobilabsolutions.payment.android.psdk.internal.*
// im... | 1 | Kotlin | 1 | 2 | 9a1a5b978e7edc0a29b3360e4018eb9aabb9b27a | 6,971 | stash-sdk-android | Apache License 2.0 |
src/Day21.kt | joy32812 | 573,132,774 | false | {"Kotlin": 62766} | fun main() {
fun getAnsMap(opMap: Map<String, String>, humnUnknow: Boolean = false): Map<String, Long?> {
val ansMap = mutableMapOf<String, Long?>()
fun dfs(key: String): Long? {
if (key in ansMap) return ansMap[key]
val op = opMap[key]!!
val result = if (op[0].isDigit()) {
op.toLon... | 0 | Kotlin | 0 | 0 | 5e87958ebb415083801b4d03ceb6465f7ae56002 | 2,383 | aoc-2022-in-kotlin | Apache License 2.0 |
app/src/test/java/com/jnj/vaccinetracker/common/helpers/FileExtKtTest.kt | johnsonandjohnson | 503,902,626 | false | {"Kotlin": 1680998} | package com.jnj.vaccinetracker.common.helpers
import encodeBase64ToString
import io.kotest.assertions.fail
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.nulls.shouldBeNull
import io.kotest.matchers.shouldBe
import java.io.File
import kotlin.random.Random
const val TEST_FILE="test.bin"
class Fil... | 1 | Kotlin | 1 | 1 | 79a8a5638424d63a4e22148bcaa230b62e4ebe80 | 2,059 | vxnaid | Apache License 2.0 |
exchange/src/main/kotlin/com/rubenlr/demo/data/entities/User.kt | rubenlr | 833,934,155 | false | {"Kotlin": 36363, "HTML": 3913, "Batchfile": 640, "Dockerfile": 145} | package com.rubenlr.demo.data.entities
import jakarta.persistence.*
@Entity
@Table(name = "users")
data class User(
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
var id: Long = 0,
@Column(nullable = false, length = 200)
var name: String,
@Column(nullable = false, length = 200, uniq... | 2 | Kotlin | 0 | 0 | 06d24491f2983575e96c3183759222c0b1c85191 | 354 | demo-kotlin | The Unlicense |
core/data/src/main/java/de/cleema/android/core/data/AvatarRepository.kt | sandstorm | 840,235,083 | false | {"Kotlin": 955115, "Ruby": 1773} | /*
* Created by Kumpels and Friends on 2023-01-24
* Copyright © 2023 Kumpels and Friends. All rights reserved.
*/
package de.cleema.android.core.data
import kotlinx.coroutines.flow.Flow
interface AvatarRepository {
fun getAvatarsStream(): Flow<Result<List<de.cleema.android.core.models.IdentifiedImage>>>
}
| 0 | Kotlin | 0 | 1 | ddcb7ddedbbefb8045e7299e14a2ad47329fc53e | 316 | cleema-android | MIT License |
src/main/java/com/coinpaprika/apiclient/entity/MoverEntity.kt | MDLlife | 191,176,372 | true | {"Kotlin": 86987, "Java": 725} | /*
* Created by <NAME> on 28.12.18 17:07
*/
package com.coinpaprika.apiclient.entity
import com.google.gson.annotations.SerializedName
data class MoverEntity(val id: String,
val name: String,
val symbol: String,
val rank: Int,
... | 0 | Kotlin | 1 | 0 | 53f56558aaf29c5ab1f16c5f75eb4caa48b1fad2 | 384 | coinpaprika-api-kotlin-client | MIT License |
token-client-kotlin-demo/src/main/kotlin/no/nav/security/token/support/ktor/oauth/ClientPropertiesConfig.kt | patped | 335,947,164 | true | {"Java": 356913, "Kotlin": 50914} | package no.nav.security.token.support.ktor.oauth
import com.nimbusds.oauth2.sdk.auth.ClientAuthenticationMethod
import io.ktor.config.ApplicationConfig
import io.ktor.util.KtorExperimentalAPI
import no.nav.security.token.support.client.core.ClientAuthenticationProperties
import no.nav.security.token.support.client.cor... | 0 | null | 0 | 0 | f4bd629aa38fa94c94d7fc9a669ea8d20e00125e | 2,973 | token-support | MIT License |
src/main/kotlin/no/ok/origo/dataplatform/csvtransformer/CSVLTEvent.kt | oslokommune | 394,674,757 | false | {"Kotlin": 39733, "Makefile": 1308} | package no.ok.origo.dataplatform.csvtransformer
import java.lang.Exception
data class CSVLTEvent(
val input: Map<String, String>,
val output: String,
val csvlt: String,
val header_row: Boolean = true,
val delimiter: Char = ';',
val record_separator: Char = '\n',
val quote: Char = '"'
)
dat... | 0 | Kotlin | 0 | 0 | fbbe3aa53ae6e746ed0f8a4b7ca62db4d4f0afb7 | 1,171 | okdata-pipeline-jvm | MIT License |
plugins/kotlin/base/indices/src/org/jetbrains/kotlin/idea/stubindex/KotlinPropertyShortNameIndex.kt | xGreat | 182,651,778 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.stubindex
import com.intellij.openapi.project.Project
import com.intellij.psi.search.GlobalSearchScope
import com.intellij.psi... | 1 | null | 1 | 1 | fb5f23167ce9cc53bfa3ee054b445cf4d8f1ce98 | 1,009 | intellij-community | Apache License 2.0 |
core/src/main/kotlin/io/github/mirkofelice/structure/Test.kt | mirko-felice | 634,173,598 | false | null | /*
* Copyright (c) 2023, <NAME>. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for details.
*/
package io.github.mirkofelice.core
/**
* Represents the single test to execute.
* @property description description to understand what this test does
* @property configura... | 2 | Kotlin | 0 | 0 | 87ed21f16e0f48825ea7f880a475b9a43322a3b7 | 537 | gradle-plugin-testkit | MIT License |
app/src/main/java/com/f11labz/yahooapi/data/sync/RefreshStockWorker.kt | atomtec | 307,329,115 | false | null | package com.f11labz.yahooapi.data.sync
import android.content.Context
import androidx.work.CoroutineWorker
import androidx.work.WorkerParameters
import com.f11labz.yahooapi.data.database.getDatabase
import com.f11labz.yahooapi.data.repository.StockRepository
class RefreshStockWorker(appContext: Context, params: Worke... | 0 | Kotlin | 0 | 1 | f64cb7c4e6f91bcd62ef19107437cd20ac949ed1 | 697 | YahooFinanceKotlin | MIT License |
server/src/main/kotlin/com/github/windsekirun/kohakunas/dashboard/model/dto/UserDTO.kt | WindSekirun | 487,203,207 | false | {"Kotlin": 43435, "TypeScript": 12413, "Vue": 9450, "Python": 1541, "Dockerfile": 575, "HTML": 415, "SCSS": 64, "Shell": 35} | package com.github.windsekirun.kohakunas.dashboard.model.dto
import com.github.windsekirun.kohakunas.dashboard.model.entity.User
class UserDTO {
data class CreateUser(val userName: String, val password: String, val registerSecret: String)
data class Me(val userName: String, val role: String) {
compan... | 0 | Kotlin | 0 | 0 | 10c767d353c22b7487acd9a502c4b19ccf1475c7 | 423 | kohakunas-dashboard | MIT License |
sam-java-core/src/main/kotlin/software/elborai/api/services/blocking/simulations/CardDisputeService.kt | DefinitelyATestOrg | 787,029,081 | false | {"Kotlin": 13368521, "Shell": 3638, "Dockerfile": 366} | // File generated from our OpenAPI spec by Stainless.
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package software.elborai.api.services.blocking.simulations
import software.elborai.api.core.RequestOptions
import software.elborai.api.models.CardDispute
import software.el... | 1 | Kotlin | 0 | 0 | 896c77d132ececb8926a3b29f08ea09c98355ecd | 921 | sam-java | Apache License 2.0 |
App_Mobile/app/src/main/java/com/example/quickmatch/content/club/PlayerAdapter.kt | aliissaoui | 309,474,880 | false | null | package com.example.quickmatch.content.club
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.appcompat.widget.PopupMenu
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.example.quickm... | 0 | Kotlin | 0 | 0 | 0243cc5ec35ab5e088a938f2ebbb4d4707c267ac | 2,798 | quickmatch | MIT License |
dlt-analyzer-app/src/main/kotlin/analyzer/ui/DltMainTabbedPane.kt | froks | 772,775,135 | false | {"Kotlin": 101199} | package analyzer.ui
import analyzer.asIcon
import analyzer.plugin.DltTargetAware
import analyzer.plugin.TabActivation
import analyzer.ui.sxs.LogPanel
import analyzer.ui.table.DltTablePane
import com.formdev.flatlaf.FlatClientProperties
import db.DltTarget
import jiconfont.icons.google_material_design_icons.GoogleMater... | 0 | Kotlin | 0 | 1 | 32188d7028e654eea3dbf90de54d92fe94dd0420 | 1,300 | dlt-tools | Apache License 2.0 |
app/src/main/java/com/varshakulkarni/dailynews/presentation/news/sources/NewsSourcesFragment.kt | Varsha-Kulkarni | 358,326,913 | false | null | package com.varshakulkarni.dailynews.presentation.news.sources
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
import com.airbnb.mvrx... | 0 | Kotlin | 0 | 2 | 64b9caac0eb2fc8baab7fee7bcea6889c6db876f | 3,540 | DailyNews | MIT License |
src/main/kotlin/org/rust/ide/fixes/RemovePolyBoundFix.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.fixes
import com.intellij.codeInspection.LocalQuickFixOnPsiElement
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
import org.r... | 1,805 | Kotlin | 368 | 4,389 | f121641a20b22cc2006077e83fd5a28183ccf243 | 880 | intellij-rust | MIT License |
core/data/src/main/java/com/niyaj/data/repository/AddressRepository.kt | skniyajali | 644,752,474 | false | {"Kotlin": 2028840} | package com.niyaj.data.repository
import com.niyaj.common.result.Resource
import com.niyaj.model.Address
import com.niyaj.model.AddressWiseOrder
import kotlinx.coroutines.flow.Flow
interface AddressRepository {
suspend fun getAllAddress(searchText: String): Flow<List<Address>>
suspend fun getAddressById(add... | 12 | Kotlin | 0 | 3 | f068f418b7691ab2959e12ff6ec900c4bd92bfb5 | 871 | PoposRoom | Apache License 2.0 |
app/src/main/java/be/hogent/faith/faith/loginOrRegister/registerAvatar/AvatarProvider.kt | hydrolythe | 353,694,404 | false | null | package be.hogent.faith.faith.loginOrRegister.registerAvatar
import android.graphics.drawable.Drawable
interface AvatarProvider {
/**
* Provides a list of all the names of the avatars.
* This can be seen as a repository of all the currently available avatars.
*/
fun getAvatars(skinColor: SkinCo... | 0 | Kotlin | 0 | 0 | 14c6aec4b3c0a42bc73a7f779964d166fffeea20 | 1,622 | FAITHAndroid | The Unlicense |
app/src/main/java/be/hogent/faith/faith/loginOrRegister/registerAvatar/AvatarProvider.kt | hydrolythe | 353,694,404 | false | null | package be.hogent.faith.faith.loginOrRegister.registerAvatar
import android.graphics.drawable.Drawable
interface AvatarProvider {
/**
* Provides a list of all the names of the avatars.
* This can be seen as a repository of all the currently available avatars.
*/
fun getAvatars(skinColor: SkinCo... | 0 | Kotlin | 0 | 0 | 14c6aec4b3c0a42bc73a7f779964d166fffeea20 | 1,622 | FAITHAndroid | The Unlicense |
props/static/src/ContextUtils.kt | leomindez | 33,270,247 | true | {"Kotlin": 989474, "Java": 39912, "Shell": 350, "HTML": 97} | /*
* Copyright 2015 JetBrains s.r.o.
*
* 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... | 0 | Kotlin | 0 | 0 | a07d3ccefabcb3234d9a047fd988989203bff69b | 7,670 | koan | Apache License 2.0 |
app/src/main/java/com/looktabinc/WebActivity.kt | Looktab-naer | 568,419,392 | false | null | package com.looktabinc
import android.webkit.WebSettings
import com.looktabinc.base.BaseActivity
import com.looktabinc.databinding.ActivityWebBinding
import com.wikitude.architect.ArchitectStartupConfiguration
class WebActivity : BaseActivity<ActivityWebBinding>(R.layout.activity_web) {
val url = "file:///andro... | 0 | Kotlin | 0 | 0 | 77c9d1672509fa52b680d742da1d698dc3665d10 | 730 | android | MIT License |
drm-blockchain/src/test/kotlin/service/AccountServiceTest.kt | Smileslime47 | 738,883,139 | false | {"Kotlin": 191453, "Vue": 52721, "Java": 42412, "TypeScript": 19613, "Solidity": 18053, "CSS": 1622, "Shell": 773, "Dockerfile": 440, "HTML": 390} | package service
import BlockChainTest
import moe._47saikyo.BlockChain
import moe._47saikyo.BlockChainConfigurationBuilder
import moe._47saikyo.configuration.koin.KoinBlockChainConfiguration
import moe._47saikyo.service.AccountService
import org.koin.core.context.startKoin
import org.koin.java.KoinJavaComponent.inject
... | 0 | Kotlin | 0 | 2 | 8ef270753c3f0cc520f0befcde8d60cb97c25f75 | 1,009 | Digital-Rights-Management | MIT License |
shared/src/commonMain/kotlin/apiclient/dtos/LoginResponse.kt | Ombrelin | 732,472,586 | false | {"Kotlin": 30928, "Shell": 81} | package apiclient.dtos
import kotlinx.serialization.Serializable
@Serializable
data class LoginResponse(val token: String)
| 0 | Kotlin | 0 | 0 | 6d00c2d46255e314707a103ca97d09639745671c | 125 | planificateur-client | Apache License 2.0 |
plugin-locationcomponent/src/main/java/com/mapbox/maps/plugin/locationcomponent/utils/BitmapUtils.kt | mapbox | 330,365,289 | false | null | package com.mapbox.maps.plugin.locationcomponent.utils
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.drawable.BitmapDrawable
import androidx.annotation.DrawableRes
import androidx.annotation.VisibleForTesting
import androidx.appcompat.content.res.A... | 216 | null | 131 | 472 | 2700dcaf18e70d23a19fc35b479bff6a2d490475 | 2,041 | mapbox-maps-android | Apache License 2.0 |
compiler/testData/diagnostics/tests/generics/projectionsScope/projectedOutConventions.kt | JakeWharton | 99,388,807 | false | null | // !WITH_NEW_INFERENCE
// !DIAGNOSTICS: -UNUSED_PARAMETER
class A<T> {
operator fun plus(x: T): A<T> = this
operator fun set(x: Int, y: T) {}
operator fun get(x: T) = 1
}
fun test(a: A<out CharSequence>) {
a <!OI;MEMBER_PROJECTED_OUT!>+<!> <!NI;TYPE_MISMATCH!>""<!>
<!OI;MEMBER_PROJECTED_OUT!>a[1]<... | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 416 | kotlin | Apache License 2.0 |
bubbletabbar/src/main/java/io/ak1/OnBubbleClickListener.kt | akshay2211 | 203,377,762 | false | null | package io.ak1
fun interface OnBubbleClickListener {
fun onBubbleClick(id: Int)
} | 0 | Kotlin | 67 | 624 | c8d45e9d9460d4785437aeee51a57d5d60db83b3 | 87 | BubbleTabBar | Apache License 2.0 |
vk-sdk-api/src/main/java/com/vk/sdk/api/wall/methods/WallPost.kt | hackumono | 359,598,859 | true | {"Kotlin": 5863360, "Java": 37555} | /**
* The MIT License (MIT)
*
* Copyright (c) 2019 vk.com
*
* 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... | 0 | null | 0 | 0 | 9417300f321cae4f231d6cb0ee44002a140a2124 | 6,596 | vk-android-sdk | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.