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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
service/src/test/java/fr/nihilus/music/service/actions/DeleteActionTest.kt | ismailghedamsi | 322,889,723 | true | {"Kotlin": 987508, "Prolog": 57} | /*
* Copyright 2019 Thibault Seisel
*
* 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... | 0 | null | 0 | 0 | 6ae2682be14bb1914ec1ffd3ba07db8b3f1f81c3 | 6,342 | android-odeon | Apache License 2.0 |
detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/visitors/PackageCountVisitor.kt | anna-yn | 98,596,998 | true | {"Kotlin": 355738, "Groovy": 1433, "Java": 163} | package io.gitlab.arturbosch.detekt.core.visitors
import io.gitlab.arturbosch.detekt.api.DetektVisitor
import io.gitlab.arturbosch.detekt.core.NUMBER_OF_PACKAGES_KEY
import org.jetbrains.kotlin.psi.KtFile
class PackageCountVisitor : DetektVisitor() {
private val packageNames: MutableSet<String> = HashSet<String>()
... | 0 | Kotlin | 0 | 0 | bcc691883e3c287efafb780534d1bc89ba3ef625 | 486 | detekt | Apache License 2.0 |
library/src/main/java/io/appwrite/services/Storage.kt | abnegate | 438,607,298 | false | {"Kotlin": 192641} | package io.appwrite.services
import android.net.Uri
import io.appwrite.Client
import io.appwrite.models.*
import io.appwrite.exceptions.AppwriteException
import okhttp3.Cookie
import okhttp3.Response
import okhttp3.HttpUrl
import okhttp3.HttpUrl.Companion.toHttpUrl
import java.io.File
class Storage(client: Client) : ... | 0 | Kotlin | 0 | 1 | c61b6dcf38fb58b9ba8805e52f6f78737dc8cb90 | 11,639 | appwrite-videoreel | MIT License |
androidApp/src/main/java/com/example/oradore/android/Theme.kt | AnleAnja | 528,355,714 | false | null | package com.example.oradore.android
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material.MaterialTheme
import androidx.compose.material.darkColors
import androidx.compose.material.lightColors
import androidx.compose.runtime.Composable
import com.example.oradore.color.Color
private v... | 6 | Kotlin | 0 | 3 | 008d80b3482154ecec651dee3fea396777c64e9b | 1,068 | oradore | MIT License |
src/test/kotlin/no/skatteetaten/aurora/clerk/service/PodServiceTest.kt | Skatteetaten | 173,108,440 | false | null | package no.skatteetaten.aurora.clerk.service
import assertk.assertThat
import assertk.assertions.isEmpty
import assertk.assertions.isEqualTo
import com.fkorotkov.kubernetes.metadata
import com.fkorotkov.kubernetes.newPod
import com.fkorotkov.kubernetes.newPodList
import com.fkorotkov.kubernetes.status
import io.fabric... | 0 | Kotlin | 2 | 1 | 47501423881da9c39dcef000f23748ff30153e69 | 2,188 | clerk | Apache License 2.0 |
src/mobile/android/kt/src/app/src/main/java/org/bigsbyspot/tic_tac_toe/Player.kt | Bigsby | 130,376,391 | false | {"C#": 26401, "JavaScript": 24544, "Kotlin": 9062, "CSS": 1804, "HTML": 1402, "Python": 946, "Batchfile": 256, "C": 245, "F#": 88, "Shell": 82} | package org.bigsbyspot.tic_tac_toe
data class Player(val letter: String, val color: Int) {
} | 0 | C# | 0 | 2 | 785fea33164e48e294a81c6c34d8cf1a94e853bd | 93 | tic-tac-toe | The Unlicense |
plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/annotationNotQualifierWithTypeArgs.kt | JetBrains | 2,489,216 | false | null | // "Create annotation 'A'" "false"
// ERROR: Unresolved reference: A
package p
internal fun foo(): <caret>A<Int, String> = throw Throwable("") | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 143 | intellij-community | Apache License 2.0 |
2015/kt/src/test/kotlin/org/adventofcode/Day13Test.kt | windmaomao | 225,344,109 | false | {"JavaScript": 538717, "Ruby": 89779, "Kotlin": 58408, "Rust": 21350, "Go": 19106, "TypeScript": 9930, "Haskell": 8908, "Dhall": 3201, "PureScript": 1488, "HTML": 1307, "CSS": 1092} | package org.adventofcode
import org.junit.Assert.assertEquals
import org.junit.Test
class Day13Test {
private val d: Day13 = Day13()
val lines = parseFile("13")
@Test
fun day13ExtractSitting() {
assertEquals(
Triple("Alice", "Bob", -57),
d.extractSitting("Alice would lose 57 happiness units b... | 5 | JavaScript | 0 | 0 | 1d64d7fffa6fcfc6825e6aa9322eda76e790700f | 1,614 | adventofcode | MIT License |
app/src/main/java/com/example/trackme/sensor/SensorSubscriber.kt | unitatem | 306,978,983 | false | null | package com.example.trackme.sensor
abstract class SensorSubscriber {
abstract fun update(data: AccelerometerMeasure)
}
| 0 | Kotlin | 0 | 0 | 6f82450f5aae391f989a99c198d8cca5d99adf59 | 124 | track_me | MIT License |
library/src/test/kotlin/com/cesarferreira/tempo/StringExtensionsTest.kt | cesarferreira | 191,353,694 | false | null | package com.cesarferreira.tempo
import org.junit.Test
class StringExtensionsTest {
@Test
fun toDate() {
assertEquals(
expected = Tempo.with(year = 1987, month = 6, day = 2, hour = 0, minute = 0, second = 0),
actual = "1987-06-02".toDate("yyyy-MM-dd")
)
}
}
| 0 | Kotlin | 4 | 39 | 2d3c1ccc86aafea3b8191a805db1d64c1674b400 | 312 | tempo | Apache License 2.0 |
core/src/main/java/com/kylecorry/andromeda/core/system/Screen.kt | kylecorry31 | 394,273,851 | false | null | package com.kylecorry.andromeda.core.system
import android.app.Activity
import android.content.Context
import android.os.Build
import android.view.View
import android.view.Window
import android.view.WindowManager
object Screen {
fun setKeepScreenOn(window: Window, keepOn: Boolean) {
if (keepOn) {
... | 22 | Kotlin | 0 | 6 | e6541d527e74c8214f640a0b3907cd55fa730212 | 2,561 | andromeda | MIT License |
settings-core/src/main/java/com/michaelflisar/settings/core/Extension.kt | MFlisar | 256,263,996 | false | null | package com.michaelflisar.settings.core
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.app.Activity
import android.content.Context
import android.content.ContextWrapper
import android.content.res.ColorStateList
import android.text.Spannable
import android.text.Spannab... | 0 | Kotlin | 0 | 2 | 5fc5264a9b2bfc108aab03e8925244d665c6a9d4 | 2,877 | Settings | Apache License 2.0 |
app/src/main/java/com/kshitijpatil/elementaryeditor/ui/edit/ExportProgressDialog.kt | Kshitij09 | 427,469,641 | false | null | package com.kshitijpatil.elementaryeditor.ui.edit
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible
import androidx.fragment.app.DialogFragment
import androidx.work.WorkInfo
i... | 4 | Kotlin | 0 | 0 | 67aa2f2cc0f60e9c64f6b9ad40e5a971f2fbe446 | 5,593 | Elementary-Editor | Apache License 2.0 |
example/shared/src/commonMain/kotlin/com/splendo/kaluga/example/shared/model/scientific/converters/EnergyConverters.kt | splendo | 191,371,940 | false | {"Kotlin": 6494822, "Swift": 172024, "Shell": 1514} | /*
Copyright 2023 Splendo Consulting B.V. The Netherlands
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appli... | 87 | Kotlin | 7 | 315 | 4094d5625a4cacb851b313d4e96bce6faac1c81f | 43,436 | kaluga | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/findUsages/kotlin/findFunctionUsages/functionUsedInPlainText.0.kt | ingokegel | 72,937,917 | true | null | // PSI_ELEMENT: org.jetbrains.kotlin.psi.KtNamedFunction
// OPTIONS: textOccurrences
// PSI_ELEMENT_AS_TITLE: "fun foo(Int, String): Unit"
package test
class Foo {
fun <caret>foo(i: Int, s: String) {
}
}
| 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 216 | intellij-community | Apache License 2.0 |
kommons-time/src/commonMain/kotlin/com/bkahlert/kommons/time/time.kt | bkahlert | 323,048,013 | false | {"Kotlin": 1649529, "JavaScript": 540} | package com.bkahlert.kommons.time
import kotlinx.datetime.Clock
import kotlinx.datetime.DateTimeUnit
import kotlinx.datetime.FixedOffsetTimeZone
import kotlinx.datetime.Instant
import kotlinx.datetime.LocalDate
import kotlinx.datetime.TimeZone
import kotlinx.datetime.UtcOffset
import kotlinx.datetime.daysUntil
import ... | 5 | Kotlin | 0 | 18 | 747cb51cf6e6b729d574396a4938eabafbdac1fe | 5,185 | kommons | MIT License |
app/src/main/java/com/vimal/margh/util/Utils.kt | vimalcvs | 796,155,728 | false | {"Kotlin": 42410} | @file:Suppress("DEPRECATION")
package com.vimal.margh.util
import android.app.DownloadManager
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.net.Uri
import android.os.Environment
import android.provider.MediaStore
import android.util.Log
import android.widge... | 0 | Kotlin | 0 | 0 | 2990033c1cae7494ab4398c7093d1c8f0869c06d | 3,964 | Retrofit-Room-Multiplatform-KMP-Favorite-List | MIT License |
apps/etterlatte-brev-api/src/main/kotlin/no/nav/etterlatte/brev/notat/PdfGeneratorKlient.kt | navikt | 417,041,535 | false | {"Kotlin": 6191088, "TypeScript": 1564281, "Handlebars": 27578, "Shell": 12214, "HTML": 1734, "Dockerfile": 676, "CSS": 598, "PLpgSQL": 556} | package no.nav.etterlatte.brev.notat
import io.ktor.client.HttpClient
import io.ktor.client.call.body
import io.ktor.client.request.header
import io.ktor.client.request.post
import io.ktor.client.request.setBody
import io.ktor.http.ContentType
import io.ktor.http.contentType
import no.nav.etterlatte.brev.model.Slate
i... | 9 | Kotlin | 0 | 6 | bfc4d2a6577eb204d0859288a180fa873a75a370 | 1,461 | pensjon-etterlatte-saksbehandling | MIT License |
sharedPaywall/src/commonMain/kotlin/apps/amo/paywall/extensions/ImageRes.kt | amomama | 754,027,977 | false | {"Kotlin": 149946, "Swift": 2049} | package apps.amo.paywall.extensions
import androidx.compose.runtime.Composable
import apps.amo.paywall.theme.LocalImageRes
import org.jetbrains.compose.resources.DrawableResource
import org.jetbrains.compose.resources.ExperimentalResourceApi
@Composable
@OptIn(ExperimentalResourceApi::class)
fun String.getResId(): Dr... | 0 | Kotlin | 0 | 0 | 4ab93a7aac020d6b07438305571a547a88a7bce4 | 614 | AmoPaywallBuilder | Apache License 2.0 |
common/network-common/src/main/kotlin/com/sotti/watch/network/common/TmdbInterceptor.kt | Sottti | 196,598,437 | false | null | package com.sotti.watch.network.common
import okhttp3.HttpUrl
import okhttp3.Interceptor
import okhttp3.Request
class TmdbInterceptor : Interceptor {
private val apiKeyQueryParamName = "api_key"
private val apiKeyQueryParamValue = "<KEY>"
override fun intercept(chain: Interceptor.Chain) =
chain.... | 13 | Kotlin | 2 | 5 | a26b41ff69d6ee1b13300d2fc454d6fbfbe5a360 | 777 | Watch | MIT License |
app/src/main/java/com/geekymusketeers/uncrack/presentation/intro/model/OnBoardingItem.kt | uncrack-vault | 569,328,395 | false | {"Kotlin": 306752, "Java": 23299} | package com.geekymusketeers.uncrack.presentation.intro.model
import com.geekymusketeers.uncrack.R
data class OnBoardingItem(
val title: String,
val text: String,
val image: Int
) {
companion object {
// TODO: Need to fix the strings
fun onboardingScreenItems() = listOf(
OnB... | 13 | Kotlin | 3 | 28 | 27fc9744a616b1fff17d346ff468691b1cc51189 | 784 | android | MIT License |
sdk-base/src/main/java/com/mapbox/maps/interactions/standard/generated/StandardBuildingsStateKey.kt | mapbox | 330,365,289 | false | {"Kotlin": 3982759, "Java": 98572, "Python": 18705, "Shell": 11465, "C++": 10129, "JavaScript": 4344, "Makefile": 2413, "CMake": 1201, "EJS": 1194} | // This file is generated.
package com.mapbox.maps.interactions.standard.generated
import com.mapbox.maps.MapboxDelicateApi
import com.mapbox.maps.MapboxExperimental
import com.mapbox.maps.interactions.FeatureStateKey
/**
* State keys for [StandardBuildingsState] that should be used in `removeFeatureState`.
*/
@Ma... | 181 | Kotlin | 131 | 472 | 2700dcaf18e70d23a19fc35b479bff6a2d490475 | 1,191 | mapbox-maps-android | Apache License 2.0 |
src/commonMain/kotlin/com/github/adriantodt/lin/bytecode/insn/BinarySubtractOperationInsn.kt | adriantodt | 280,314,655 | false | null | package com.github.adriantodt.lin.bytecode.insn
import com.github.adriantodt.lin.bytecode.utils.writeU24
import okio.Buffer
public object BinarySubtractOperationInsn : Insn() {
override fun serializeTo(buffer: Buffer) {
buffer.writeByte(Opcode.PARAMETERLESS.ordinal).writeU24(ParameterlessCode.BINARY_SUBTR... | 17 | Kotlin | 0 | 7 | 63f833f1522a07e7ef1f59b4714cd76e3b96b4a1 | 341 | Lin | MIT License |
app/src/main/kotlin/net/tlalka/fiszki/domain/services/StorageService.kt | jtlalka | 52,197,843 | false | null | package net.tlalka.fiszki.domain.services
import net.tlalka.fiszki.core.annotations.SessionScope
import net.tlalka.fiszki.model.helpers.StorageHelper
import net.tlalka.fiszki.model.types.LanguageType
import net.tlalka.fiszki.model.types.StorageType
import javax.inject.Inject
@SessionScope
class StorageService @Inject... | 0 | Kotlin | 0 | 2 | 7e7c2aba5d9a1634a5b295319ec1bb5a4b5a7aa0 | 1,090 | fiszki | MIT License |
kotlin/simple-hexagonal/domain/src/main/kotlin/com/example/domain/advertisement/AdvertisementId.kt | Gummybearr | 461,541,289 | false | null | package com.example.domain.advertisement
import com.example.domain.DistributedId
data class AdvertisementId(val id: Long) {
constructor() : this(DistributedId.nextId())
}
| 0 | Kotlin | 3 | 19 | e627e0ac9b03aa38ad388b55603e87b44bbaeec0 | 177 | random-kata | MIT License |
ui-base/src/main/java/pl/kamilszustak/read/ui/base/binding/ViewDataBindingAdapter.kt | swistak7171 | 289,985,013 | false | null | package pl.kamilszustak.read.ui.base.binding
import android.view.View
import androidx.databinding.BindingAdapter
import pl.kamilszustak.read.ui.base.util.setGone
import pl.kamilszustak.read.ui.base.util.setVisible
object ViewDataBindingAdapter {
private const val VISIBLE_IF_NOT_NULL_ATTRIBUTE: String = "visibleIf... | 2 | Kotlin | 0 | 1 | 70d7be58042410bdb969035413b726126426e3d3 | 1,174 | read | Apache License 2.0 |
shared/src/commonMain/kotlin/com/seiko/greenqrscanner/data/db/adapter/JsonColumnAdapter.kt | qdsfdhvh | 650,389,325 | false | {"Kotlin": 266749, "Ruby": 1100, "Swift": 628, "Shell": 228} | package com.seiko.greenqrscanner.data.db.adapter
import app.cash.sqldelight.ColumnAdapter
import com.seiko.greenqrscanner.util.decodeJson
import com.seiko.greenqrscanner.util.encodeJson
import kotlinx.serialization.KSerializer
internal class JsonColumnAdapter<T : Any>(
private val serializer: KSerializer<T>
) : C... | 12 | Kotlin | 0 | 3 | 65be33474fa91c635bd7236144b00231a404b0e2 | 500 | green-qrscanner | Apache License 2.0 |
app/src/test/java/com/gojekgithub/trending/ui/model/MainViewModelTest.kt | anukalp | 302,643,538 | false | {"Kotlin": 100738} | package com.gojekgithub.trending.ui.model
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.gojekgithub.trending.CoroutinesTestRule
import com.gojekgithub.trending.R
import com.gojekgithub.trending.constants.FilterResponse
import com.gojekgithub.trending.constants.NetworkResponse
import com... | 0 | Kotlin | 0 | 0 | 93de746bdeb186d083e5a0dfc017d4f9400557dd | 9,670 | GojekGithubSample | MIT License |
sample/src/main/kotlin/dev/inkremental/sample/YogaActivity.kt | inkremental | 205,363,267 | true | null | package dev.inkremental.sample
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.facebook.soloader.SoLoader
import com.facebook.yoga.YogaAlign
import com.facebook.yoga.YogaFlexDirection
import dev.inkremental.dsl.android.Size.MATCH
import dev.inkremental.dsl.android.Size.WRAP
import d... | 20 | Kotlin | 5 | 58 | 6e6241a0e9ac80a1edd1f0e100ad6bf0c4f8175e | 3,226 | inkremental | MIT License |
ObjectOrientedParadigm/Exercise-1/Document.kt | Johanx22x | 674,064,501 | false | {"Kotlin": 19851, "Go": 18444, "F#": 13580, "Prolog": 4760, "Rust": 4512, "Makefile": 822} | class Document(name: String, vararg sheets: Sheet) {
private var name: String = name
get() = field
set(value) { field = value }
private var sheets: MutableList<Sheet> = sheets.toMutableList()
get() = field
set(value) { field = value }
fun draw() {
println("Document: ... | 0 | Kotlin | 0 | 1 | 17ef99cfb4e12803a15615f235bfd3d0961ec373 | 470 | ProgrammingLanguages | MIT License |
bro/src/main/java/me/xx2bab/bro/core/util/Constants.kt | 2BAB | 125,506,500 | false | null | package me.xx2bab.bro.core.util
object Constants {
const val KEY_DEFAULT_PAGE_TYPE = "default_page_type"
const val KEY_DEFAULT_PAGE_TARGET = "default_page_target"
const val DEFAULT_PAGE_UNKNOWN_ERROR = 0x23330
const val DEFAULT_PAGE_NOT_FOUND = 0x23333
const val DEFAULT_PAGE_PERMISSION_DENIED = 0x2... | 9 | Kotlin | 0 | 9 | 4df07b25d728959d3ec5e65a4f9d5e78f0c5e271 | 387 | Bro | Apache License 2.0 |
app/src/main/java/com/example/cupcake/ui/SummaryScreen.kt | 0da39bc82 | 782,730,344 | false | {"Kotlin": 55054} |
package com.example.cupcake.ui
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.la... | 0 | Kotlin | 0 | 0 | eba86c8d80ec1b8b2a31d82361fba39df1df77b2 | 5,011 | Kotlin-SubShop | Apache License 2.0 |
sudovirtualcards/src/test/java/com/sudoplatform/sudovirtualcards/SudoVirtualCardsProvisionVirtualCardTest.kt | sudoplatform | 287,155,437 | false | {"Kotlin": 1055433} | /*
* Copyright © 2024 <NAME>, Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.sudoplatform.sudovirtualcards
import android.content.Context
import com.amplifyframework.api.ApiCategory
import com.amplifyframework.api.graphql.GraphQLOperation
import com.amplifyframework.api.graphql.G... | 0 | Kotlin | 0 | 0 | 8e15044222a7b853234fe6994994d5969f6be0da | 23,280 | sudo-virtual-cards-android | Apache License 2.0 |
cloudsdk/src/test/java/io/particle/android/sdk/cloud/ParticleCloudTest.kt | particle-iot | 34,549,566 | false | null | package io.particle.android.sdk.cloud
import android.content.Intent
import com.google.gson.Gson
import com.squareup.okhttp.HttpUrl
import com.squareup.okhttp.mockwebserver.MockResponse
import com.squareup.okhttp.mockwebserver.MockWebServer
import com.squareup.okhttp.mockwebserver.RecordedRequest
import io.particle.and... | 34 | null | 38 | 38 | bda215376a916b39b16c091977132e29e616b8e5 | 7,461 | particle-android | Apache License 2.0 |
aws-globalaccelerator-endpointgroup/src/test/kotlin/software/amazon/globalaccelerator/endpointgroup/ReadHandlerTest.kt | DJ-C | 271,874,034 | true | {"Kotlin": 174746} | package software.amazon.globalaccelerator.endpointgroup
import com.amazonaws.AmazonWebServiceResult
import com.amazonaws.ResponseMetadata
import com.amazonaws.services.globalaccelerator.model.*
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.... | 0 | Kotlin | 0 | 0 | 28e547deb0a9f246393bd91ee29ea010d9ef2800 | 5,761 | aws-cloudformation-resource-providers-globalaccelerator-1 | Apache License 2.0 |
app/shared/analytics/public/src/commonMain/kotlin/build/wallet/analytics/events/screen/context/PairHardwareEventTrackerScreenIdContext.kt | proto-at-block | 761,306,853 | false | {"C": 10424094, "Kotlin": 7156393, "Rust": 2046237, "Swift": 700307, "Python": 331492, "HCL": 271992, "Shell": 111209, "TypeScript": 102700, "C++": 64770, "Meson": 64234, "JavaScript": 36227, "Just": 28071, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.analytics.events.screen.context
/**
* Context for screens related to pairing a new HW device in the app.
* Customers pair a new HW during new account creation as well as during HW recovery.
*/
enum class PairHardwareEventTrackerScreenIdContext : EventTrackerScreenIdContext {
/** Events for pa... | 0 | C | 10 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 468 | bitkey | MIT License |
plugins/devkit/devkit-core/src/inspections/IncorrectParentDisposableInspection.kt | hieuprogrammer | 284,920,751 | true | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.idea.devkit.inspections
import com.intellij.codeInspection.ProblemsHolder
import com.intellij.openapi.Disposable
import com.intellij.openapi.application.App... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 2,728 | intellij-community | Apache License 2.0 |
app/src/main/java/com/axel_stein/glucose_tracker/core/DatePeriod.kt | AxelStein | 320,277,698 | false | null | package com.axel_stein.glucose_tracker.core
enum class DatePeriod {
TODAY,
TWO_WEEKS,
MONTH,
THREE_MONTHS,
SIX_MONTHS,
YEAR;
fun fromInt(value: Int): DatePeriod {
return when (value) {
0 -> TODAY
1 -> TWO_WEEKS
2 -> MONTH
3 -> THREE_M... | 4 | Kotlin | 0 | 1 | e6ed8ebdaf7d10bbec4ea830448dd9b174ed8c17 | 446 | GlucoseTracker | Apache License 2.0 |
zircon.core/src/commonMain/kotlin/org/hexworks/zircon/api/component/ListItem.kt | Hexworks | 94,116,947 | false | null | package org.hexworks.zircon.api.component
import org.hexworks.zircon.api.behavior.TextOverride
/**
* A [ListItem] is a non-interactive [Component] that semantically represents
* a textual list item. It also contains style information that's consistent with its
* purpose and the other semantic elements, like:
* - ... | 42 | null | 138 | 738 | 55a0ccc19a3f1b80aecd5f1fbe859db94ba9c0c6 | 420 | zircon | Apache License 2.0 |
src/main/kotlin/com/kokasai/api/http/user/form/list.kt | astralbrim | 332,749,834 | true | {"Kotlin": 69658} | package com.kokasai.api.http.user.form
import com.kokasai.api.http._dsl.onlyUser
import com.kokasai.api.http.group.form.getGroupFormListResponse
import com.kokasai.flowerkt.route.RouteAction
import io.ktor.application.call
import io.ktor.response.respond
import io.ktor.routing.get
import kotlinx.serialization.Serializ... | 0 | Kotlin | 0 | 1 | 012fdf1c1b209e3d4ce9df8c021fe9d9454538fe | 688 | api.kokasai.com | Apache License 2.0 |
log4k-slf4j/src/commonMain/kotlin/saschpe/log4k/slf4j/SLF4JLogger.kt | saschpe | 221,440,719 | false | {"Kotlin": 45740, "Shell": 4224} | package saschpe.log4k.slf4j
import saschpe.log4k.Log
import saschpe.log4k.Logger
/**
* Logger that forwards all log statements to SLF4J API on JVM and Android platforms.
*
* Suitable to replace [saschpe.log4k.ConsoleLogger]:
*
* ```kotlin
* Log.loggers.clear()
* Log.loggers += SLF4JLogger()
* ```
*
* On JVM... | 0 | Kotlin | 2 | 17 | 702b147a149eee3dca396e1d3e551290a6c73058 | 559 | Log4K | Apache License 2.0 |
src/main/java/com/sdk/platform/share/ShareApiList.kt | gofynd | 337,940,340 | false | {"Kotlin": 2497895, "Java": 179} | package com.sdk.platform.share
import kotlinx.coroutines.Deferred
import retrofit2.Response
import okhttp3.ResponseBody
import retrofit2.http.*
import com.sdk.platform.*
interface ShareApiList {
@POST ("/service/platform/share/v1.0/company/{company_id}/application/{application_id}/links/short-link/")
sus... | 0 | Kotlin | 4 | 4 | 1054e3cfc8828b73b302ace4bc6110459126a1ce | 1,861 | fdk-client-kotlin | MIT License |
examples/basic-integration-jetpack-compose/app/src/main/java/com/deuna/compose_demo/screens/VaultSuccessfulScreen.kt | darwinmorocho-deuna | 840,494,266 | false | {"Kotlin": 59588} | package com.deuna.compose_demo.screens
import androidx.compose.foundation.layout.*
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.*
import androidx.compose.ui.tooling.preview.*
import androidx.compose.ui.unit.*
import com.deuna.compose_demo.*
import com.deuna.maven.sha... | 0 | Kotlin | 0 | 0 | aed627548ac68cbf04fcbcf5a88f63c4f865c1d4 | 2,268 | deunasdk | MIT License |
src/Day08.kt | haraldsperre | 572,671,018 | false | null | fun main() {
fun isVisible(patch: List<List<Int>>, tree: Pair<Int, Int>): Boolean {
val (x, y) = tree
if (x == 0 || y == 0 || x == patch.size - 1 || y == patch[x].size - 1) {
return true
}
val treeHeight = patch[x][y]
return treeHeight > listOf(
patch... | 0 | Kotlin | 0 | 0 | c4224fd73a52a2c9b218556c169c129cf21ea415 | 2,357 | advent-of-code-2022 | Apache License 2.0 |
src/test/kotlin/no/nav/personbruker/internal/periodic/metrics/reporter/metrics/cache/count/NumberOfCachedRecordsTest.kt | navikt | 400,413,252 | false | null | package no.nav.personbruker.internal.periodic.metrics.reporter.metrics.cache.count
import org.amshove.kluent.`should be equal to`
import org.junit.jupiter.api.Test
internal class NumberOfCachedRecordsTest {
@Test
fun `Skal summere totalene riktig`() {
val cachedRecords = NumberOfCachedRecords(1, 2, 3... | 0 | Kotlin | 0 | 0 | 04cefba9314597cbc81585d7e849debc8f0cb58a | 597 | internal-periodic-metrics-reporter | MIT License |
base/src/main/java/com/frogobox/base/BaseViewModel.kt | frogobox | 221,978,119 | false | {"Kotlin": 246872} | package com.frogobox.base
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import com.frogobox.base.util.SingleLiveEvent
/**
* Created by Faisal Amir
* FrogoBox Inc License
* =========================================
* movie
* Copyright (C) 16/11/2019.
* All rights reserved
* ---------... | 0 | Kotlin | 2 | 16 | 8cb6e3c49650be2dfe586570d44dd76c207a4598 | 803 | kick-start-android-modular | Apache License 2.0 |
src/main/kotlin/ee/mcdimus/matewp/service/OpSysServiceFactory.kt | mcdimus | 23,383,063 | false | null | package ee.mcdimus.matewp.service
/**
* @author Dmitri Maksimov
*/
object OpSysServiceFactory {
private enum class OS {
LINUX, WINDOWS
}
fun get() = when (detectOS()) {
OS.LINUX -> LinuxMateService()
OS.WINDOWS -> WindowsService()
}
private fun detectOS() = when (val osName = System.getPrope... | 0 | Kotlin | 0 | 1 | b4a958b1a003100a7fa22a303cdecdb0bb26529d | 688 | mate-wp | MIT License |
feature/addmeal/src/main/java/com/kanyideveloper/addmeal/di/AddMealModule.kt | JoelKanyi | 554,742,212 | false | null | /*
* Copyright 2022 Joel Kanyi.
*
* 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... | 14 | null | 9 | 69 | 040b552070450d2e2b34cd1817eece7145fb2086 | 2,409 | MealTime | Apache License 2.0 |
app/src/main/java/com/example/coderadar/data/repository/dataSourceImpl/ContestCacheDataSourceImpl.kt | thekuldeep07 | 430,311,480 | false | null | package com.example.coderadar.data.repository.dataSourceImpl
import com.example.coderadar.data.model.Contest
import com.example.coderadar.data.repository.dataSource.ContestCacheDataSource
class ContestCacheDataSourceImpl : ContestCacheDataSource {
private var contestList = ArrayList<Contest>()
override suspe... | 0 | Kotlin | 3 | 0 | 028f4624a72c78b84ae1e5df2aa989e1f893ea7c | 550 | CodeRadar | MIT License |
app/src/main/java/com/kotlin/cleanarchitecture/presentation/common/BottomNavigationScreen.kt | hiroshi-homma-origin | 287,533,709 | false | {"Kotlin": 36592, "Ruby": 4164} | package com.kotlin.cleanarchitecture.presentation.common
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.material.BottomNavigation
import androidx.compose.material.BottomNavigationItem
import androidx.compose.material.Icon
import androidx.compo... | 0 | Kotlin | 1 | 1 | 9f155d0b8cc2e0eb86bcdd6eb226fca887c74a1e | 2,450 | hiroCleanArchitecture | Apache License 2.0 |
komapper-processor/src/main/kotlin/org/komapper/processor/EmptySymbolProcessor.kt | komapper | 349,909,214 | false | {"Kotlin": 2802685, "Java": 57131} | package org.komapper.processor
import com.google.devtools.ksp.processing.Resolver
import com.google.devtools.ksp.processing.SymbolProcessor
import com.google.devtools.ksp.symbol.KSAnnotated
object EmptySymbolProcessor : SymbolProcessor {
override fun process(resolver: Resolver): List<KSAnnotated> = emptyList()
}
| 7 | Kotlin | 12 | 294 | 5830d985f81f0b0d1eb8b91b304411940394876d | 320 | komapper | Apache License 2.0 |
idea/testData/inspectionsLocal/redundantSetter/annotation.kt | JakeWharton | 99,388,807 | true | null | // PROBLEM: none
annotation class Inject
class Test {
var x = 1
@Inject set<caret>
} | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 97 | kotlin | Apache License 2.0 |
app/src/main/java/com/madreain/aachulk/module/single/SingleViewModel.kt | yujianchengfeng | 342,184,458 | true | {"Kotlin": 265090} | package com.madreain.aachulk.module.refreshSingle
import androidx.lifecycle.MutableLiveData
import com.madreain.aachulk.module.api.ApiService
import com.madreain.libhulk.em.RequestDisplay
import com.madreain.libhulk.mvvm.BaseViewModel
/**
* @author madreain
* @date 2020/3/16.
* module:
* description:
*/
class Re... | 0 | null | 0 | 0 | 9de904506fc388f8adea17578ddc03a226ee4530 | 956 | AACHulk | Apache License 2.0 |
ECommerceApp/app/src/main/java/com/android/ecommerceapp/service/ApiService.kt | oguzhansatilmis | 746,560,331 | false | {"Kotlin": 22096} | package com.android.ecommerceapp.service
import com.android.ecommerceapp.model.Product
import kotlinx.coroutines.flow.Flow
import okhttp3.ResponseBody
import retrofit2.Response
import retrofit2.http.GET
interface ApiService {
@GET("products/categories")
suspend fun getAllCategories():Response<List<String>>
... | 0 | Kotlin | 0 | 0 | 431c209a6fe4d8449507d15e9a692a9162a8eac0 | 401 | E-Commerce-App | MIT License |
app/src/main/java/com/muhammedesadcomert/ecommerceapp/ui/home/Home.kt | muhammedesadcomert | 438,645,365 | false | {"Kotlin": 57506} | package com.muhammedesadcomert.ecommerceapp.ui.home
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 androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavCon... | 0 | Kotlin | 1 | 5 | f52c8332ac7e1df790efcbafd80cfbb989a7902d | 2,117 | eCommerceApp | MIT License |
github-workflows-kt/src/test/kotlin/io/github/typesafegithub/workflows/domain/RunnerTypeTest.kt | typesafegithub | 439,670,569 | false | {"Kotlin": 1853198} | package io.github.typesafegithub.workflows.domain
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.core.spec.style.FunSpec
class RunnerTypeTest : FunSpec({
context("Labelled") {
test("should throw on invalid arguments") {
shouldThrow<IllegalArgumentException> {
... | 35 | Kotlin | 23 | 482 | ead70ab267ec1a5d9d6b4b3ed31cdcf7147af590 | 495 | github-workflows-kt | Apache License 2.0 |
identity/ui/src/main/java/com/thechance/identity/ui/composable/BackButton.kt | Salmon-family | 569,890,321 | false | {"Kotlin": 837143} | package com.thechance.identity.ui.composable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.material.Icon
import androidx.compose.material.IconButton
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Compos... | 11 | Kotlin | 19 | 24 | 7589d73a400c78ecfa94b24d87189b4f5e01de9b | 1,487 | Clubs | Apache License 2.0 |
app/src/main/java/com/gaugustini/vort/database/SkillDao.kt | gaugustini | 416,395,415 | false | null | package com.gaugustini.vort.database
import androidx.room.Dao
import androidx.room.Query
import com.gaugustini.vort.model.Skill
/**
* The Data Access Object for [Skill].
*/
@Dao
interface SkillDao {
/**
* Returns a list of positive [Skill] for blademaster or gunner.
*/
@Query("SELECT * FROM skill... | 0 | Kotlin | 0 | 0 | 2f26bb863801caab95733511c6683b527ef33f35 | 421 | vort | MIT License |
app/src/main/java/tr/com/gndg/self/domain/model/ImageUri.kt | Cr3bain | 840,332,370 | false | {"Kotlin": 567278} | package tr.com.gndg.self.domain.model
import tr.com.gndg.self.core.dataSource.roomDatabase.entity.ImageUriEntity
data class ImageUri(
val id: Long?,
val uuid: String,
val productUUID: String,
val imageUri: String?
)
fun ImageUri.toImageUriEntity() = ImageUriEntity(
uuid = this.uuid,
productUU... | 0 | Kotlin | 0 | 0 | 12e58c3753a642bfd922d9cca44486eef3453e88 | 373 | self | Apache License 2.0 |
src/main/kotlin/cafe/ferret/kosekata/_Utils.kt | mazziechai | 606,690,300 | false | null | /*
* Copyright (c) 2023 mazziechai
*/
package cafe.ferret.kosekata
import cafe.ferret.kosekata.database.entities.Note
import dev.kord.core.Kord
import dev.kord.rest.builder.message.modify.MessageModifyBuilder
import dev.kord.rest.builder.message.modify.embed
import kotlinx.datetime.Instant
import java.text.SimpleDa... | 0 | Kotlin | 0 | 1 | 96e4c4482173cc8bd4953ea37e9ba1cdb3c83294 | 1,395 | kose-kata | MIT License |
prova01/Ex05_Main.kt | JoaoVitor-nks | 765,941,398 | false | {"Kotlin": 9774} | import java.time.LocalDate
//Nome: João Vitor de Assis Martins e Eduardo Batista Barboza
//Crie uma classe Tarefa que represente uma tarefa a ser realizada com atributos como título
// , descrição, data de vencimento e prioridade. Crie uma classe GerenciadorDeTarefas que gerencie
// uma lista de tarefas. Implemente mé... | 0 | Kotlin | 0 | 0 | c6a30b4c8b9118faab660886773601bd477c97cb | 1,909 | programacao-mobile | MIT License |
jvb/src/main/kotlin/org/jitsi/videobridge/cc/allocation/Prioritize.kt | jitsi | 9,657,943 | false | null | /*
* Copyright @ 2020 - present 8x8, 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 ... | 179 | null | 951 | 2,680 | 0aa0b1f672f1e92d0382f16145888746aa5cc6a2 | 3,153 | jitsi-videobridge | Apache License 2.0 |
app/src/main/java/me/spica/spicaweather2/view/view_group/AirIntroduceLayout.kt | yangSpica27 | 720,276,419 | false | {"Kotlin": 424276, "Java": 8338} | package me.spica.spicaweather2.view.view_group
import android.content.Context
import android.view.Gravity
import android.view.ViewGroup
import androidx.appcompat.widget.AppCompatTextView
import androidx.core.content.ContextCompat
import androidx.core.view.marginTop
import me.spica.spicaweather2.R
import me.spica.spica... | 0 | Kotlin | 1 | 9 | c820893d93f955cfb5f7228f22af9216c6caa9de | 9,093 | SpicaWeather2 | MIT License |
sqllin-dsl/src/commonMain/kotlin/com/ctrip/sqllin/dsl/sql/clause/GroupByClause.kt | ctripcorp | 570,015,389 | false | {"C": 576161, "Kotlin": 247558, "Shell": 1539} | /*
* Copyright (C) 2022 Ctrip.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 applicable law or agreed... | 2 | C | 10 | 217 | 4872fddad7ad72f5f95e14ad831b3ebb7fc87d47 | 2,514 | SQLlin | Apache License 2.0 |
kotlin-antd/antd-samples/src/main/kotlin/samples/localeprovider/Basic.kt | xlj44400 | 248,655,590 | true | {"Kotlin": 1516065, "HTML": 1503} | package samples.localeprovider
import antd.localeprovider.*
import antd.pagination.*
import react.*
import react.dom.*
import styled.*
fun RBuilder.basicApp() {
div {
pagination {
attrs {
defaultCurrent = 1
total = 50
showSizeChanger = true
... | 0 | Kotlin | 0 | 0 | ce8216c0332abdfefcc0a06cf5fbbbf24e669931 | 528 | kotlin-js-wrappers | Apache License 2.0 |
src/main/kotlin/ds/Queue.kt | xmmmmmovo | 280,634,710 | false | null | /*
* Copyright (c) 2020. xmmmmmovo
*/
package ds
/**
* 单向队列类
* @author xmmmmmovo
* @date 2020/7/28 16:44
* @since version-1.0
*/
class Queue<T> : Collection<T> {
private var first: Node<T>? = null
private var last: Node<T>? = null
private var n: Int = 0
constructor()
constructor(q: Queue<T... | 0 | Kotlin | 0 | 0 | 94da0519cf2b8d8a9b42b4aea09caf50d9732599 | 2,746 | Algorithms4thEditionKotlinSolutions | Apache License 2.0 |
src/main/kotlin/com/example/demo3/model/Repository.kt | wenvelope | 524,697,668 | false | {"Kotlin": 16341} | package com.example.demo3.model
import javax.persistence.Column
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table
@Entity
@Table(name = "repository")
data class Repository(
@Id
var uid:String ?=null,
@Column
var name:String ?=null,
@Column
var country:S... | 0 | Kotlin | 0 | 0 | 422afdc84f07844dc4bbad1bc041dc4a41cfe57d | 465 | SpringBootDemo | MIT License |
src/main/kotlin/mixit/ticket/model/TicketService.kt | mixitconf | 76,134,720 | false | null | package mixit.ticket.model
import mixit.ticket.repository.TicketRepository
import mixit.util.cache.CacheTemplate
import mixit.util.cache.CacheZone
import mixit.util.errors.DuplicateException
import org.springframework.stereotype.Service
import reactor.core.publisher.Mono
@Service
class TicketService(
private val ... | 12 | Kotlin | 125 | 526 | cde6cbedac3a6b7dab1978ebf7e18ffe58cde0a1 | 1,692 | mixit | Apache License 2.0 |
frontend/app/src/main/java/com/example/library_management_system/presentation/navigations/bottomnavbar/NavGraph.kt | aasif21 | 835,881,037 | false | {"Kotlin": 75858, "JavaScript": 8858} | package com.example.library_management_system.presentation.navigations.bottomnavbar
import androidx.compose.runtime.Composable
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import com.exam... | 0 | Kotlin | 0 | 0 | aa41f515fe703505ba9a0ecf047241f34f3f08ad | 1,086 | Library_Management_System | MIT License |
geary-core/src/commonMain/kotlin/com/mineinabyss/geary/context/FormatsContext.kt | MineInAbyss | 306,093,350 | false | null | package com.mineinabyss.geary.context
import com.mineinabyss.geary.serialization.GearyFormats
public interface FormatsContext {
public val formats: GearyFormats
}
| 19 | Kotlin | 9 | 23 | b4e5b1b5365d600cdd5eda11ae4d4a0c8249165b | 169 | Geary | MIT License |
authinterceptor/src/main/java/com/matt/authinterceptor/HeaderWriter.kt | mattdrzazga | 137,091,064 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "Proguard": 3, "Java": 4, "XML": 17, "Kotlin": 17} | package com.matt.authinterceptor
import okhttp3.Request
class HeaderWriter(private val repository: TokenStore) {
var defaultWithToken = true
fun modifyRequest(request: Request): Request.Builder {
val token = repository.getToken()
val header = repository.getTokenHeader()
val builder = ... | 0 | Kotlin | 0 | 1 | 093d1dad86b9b6e20957a8c46744e9c577bfad07 | 1,130 | AuthInterceptor | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/Investment.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.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.Mite... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,762 | icons | MIT License |
app/src/main/kotlin/com/mounacheikhna/nearby/ui/venues/VenuesView.kt | chemouna | 47,512,499 | false | null | package com.mounacheikhna.nearby.ui.venues
import android.Manifest
import android.annotation.TargetApi
import android.content.Context
import android.graphics.Color
import android.os.Build
import android.support.annotation.StringRes
import android.support.design.widget.Snackbar
import android.support.v7.widget.LinearLa... | 3 | Kotlin | 6 | 40 | 08ffa6a851bf07866b34de2961fa9d1fbc9f9413 | 6,250 | Nearby | Apache License 2.0 |
gsmovies/src/main/java/com/kyawhut/astycast/gsmovie/data/network/response/VideoResponse.kt | kyawhtut-cu | 406,324,527 | false | null | package com.kyawhut.astycast.gsmovie.data.network.response
import androidx.annotation.Keep
import androidx.leanback.widget.DiffCallback
import com.google.gson.annotations.SerializedName
import java.io.Serializable
/**
* @author kyawhtut
* @date 9/29/21
*/
@Keep
data class VideoResponse(
@SerializedName("status... | 0 | Kotlin | 4 | 3 | 72d56fa28f5be7526f0a9848491ddd87cca3804d | 1,382 | atsy-cast | Apache License 2.0 |
src/main/kotlin/net/darkdevelopers/magmarun/functions/Player.kt | chain3d | 192,891,966 | false | null | package net.darkdevelopers.magmarun.functions
import de.astride.minecraft.servercore.spigot.ServerCoreSpigotPlugin
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import net.darkdevelopers.darkbedrock.darkness.spigot.functions.schedule
import org.bukkit.Material
i... | 0 | Kotlin | 0 | 2 | 03d10d14009d65634f350c04d7b1750db266550c | 815 | MagmaRun | MIT License |
app/src/main/java/cz/bornasp/charging/data/UserPreferencesRepository.kt | bugulin | 603,802,191 | false | null | package cz.bornasp.charging.data
import android.util.Log
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.booleanPreferencesKey
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.emptyPrefe... | 0 | Kotlin | 0 | 1 | cb76e1af0976eb4c9410f413748dfc59e95e511c | 3,040 | Charging | Apache License 2.0 |
airbyte-cdk/java/airbyte-cdk/core/src/test/kotlin/io/airbyte/cdk/integrations/base/IntegrationRunnerTest.kt | tim-werner | 511,419,970 | false | {"Java Properties": 8, "Shell": 57, "Markdown": 1170, "Batchfile": 1, "Makefile": 3, "JavaScript": 31, "CSS": 9, "Python": 4183, "Kotlin": 845, "Java": 723, "INI": 10, "Dockerfile": 27, "HTML": 7, "SQL": 527, "PLpgSQL": 8, "TSQL": 1, "PLSQL": 2} | /*
* Copyright (c) 2023 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.cdk.integrations.base
import com.fasterxml.jackson.databind.JsonNode
import com.google.common.collect.ImmutableMap
import com.google.common.collect.Lists
import io.airbyte.cdk.integrations.util.ConnectorExceptionUtil
import io.airbyte.... | 1 | null | 1 | 1 | b2e7895ed3e1ca7c1600ae1c23578dd1024f20ff | 24,305 | airbyte | MIT License |
Source/packages/apps/ThemePicker/src/com/android/customization/module/SysUiStatsLogger.kt | stayboogy | 784,959,483 | false | {"XML": 12479, "Ignore List": 14, "Markdown": 7, "Text": 104, "Shell": 20, "Makefile": 32, "INI": 11, "Soong": 58, "Java": 9482, "Gradle": 8, "Java Properties": 5, "Batchfile": 3, "Proguard": 2, "Protocol Buffer": 33, "JSON": 83, "Python": 6, "Kotlin": 469, "C++": 24, "XSLT": 1, "HTML": 5, "C": 23, "AIDL": 5, "Git Attr... | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Java | 0 | 0 | e6132560c5e2416db150b856bd3f331d80795c4c | 5,367 | stayboogy_AOSimPle_Pixel-5_Redfin | Apache License 2.0 |
intellij-plugin/educational-core/src/com/jetbrains/edu/learning/stepik/hyperskill/HyperskillStartupActivity.kt | JetBrains | 43,696,115 | false | {"Text": 28, "Gradle Kotlin DSL": 6, "Java Properties": 17, "YAML": 9, "Markdown": 10, "Shell": 2, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "Python": 6, "TOML": 1, "INI": 4, "Java": 7, "Kotlin": 1709, "XML": 105, "CSS": 18, "HTML": 45, "JSON": 268, "SVG": 183, "JavaScript": 2, "CODEOWNERS": 1} | package com.jetbrains.edu.learning.stepik.hyperskill
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.project.Project
import com.intellij.openapi.startup.StartupActivity
import com.jetbrains.edu.learning.EduLogInListener
import com.jetbrains.edu.learning.EduUtilsKt.isStudentProjec... | 6 | Kotlin | 48 | 143 | 8c8ffb1372f80ed9efd9aa1ad58544141df9698f | 2,428 | educational-plugin | Apache License 2.0 |
src/main/kotlin/no/digdir/catalog_comments_service/repository/UserRepository.kt.kt | Informasjonsforvaltning | 424,515,262 | false | null | package no.digdir.catalog_comments_service.repository
import org.springframework.data.mongodb.repository.MongoRepository
import org.springframework.stereotype.Repository
import no.digdir.catalog_comments_service.model.UserDBO
@Repository
interface UserDAO:MongoRepository<UserDBO,String>
| 5 | Kotlin | 0 | 0 | abb56085e01c382f329f7acb8b0cde2c5a9bd99c | 290 | catalog-comments-service | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/intentions/removeLabeledReturnInLambda/outerLambda.kt | ingokegel | 72,937,917 | false | null | // WITH_STDLIB
// IS_APPLICABLE: FALSE
fun foo() {
listOf(1,2,3).forEach {
listOf(1,2,3).find {
return@forEach<caret>
}
}
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 160 | intellij-community | Apache License 2.0 |
src/图片整理/Main.kt | masx200 | 798,368,501 | false | {"Kotlin": 18728} | package com.github.masx200.nowcoder_test.图片整理
import java.util.Scanner
fun main(args: Array<String>) {
val read = Scanner(System.`in`)
while (read.hasNext()) {
val a = read.next()
val b = a.toCharArray()
b.sort()
println(b.joinToString(""))
}
} | 0 | Kotlin | 0 | 1 | 312cab559f386d65cbbbabe7d608ab9cda4af768 | 290 | nowcoder-test | Mulan Permissive Software License, Version 2 |
src/main/kotlin/br/com/presentation/spring/kafka/reprocessor/consumer/KafkaConsumer.kt | hivisonnmoura | 251,085,988 | false | null | package br.com.presentation.spring.kafka.reprocessor.consumer
import org.apache.kafka.common.TopicPartition
import org.slf4j.LoggerFactory
import org.springframework.kafka.annotation.KafkaListener
import org.springframework.kafka.listener.ConsumerSeekAware
import org.springframework.kafka.support.KafkaHeaders
import o... | 0 | Kotlin | 0 | 0 | 8e2f7bc9f7d7da92a882c4e1424f05fb8d8acdfe | 1,226 | spring-kafka-reprocessor | MIT License |
feature/nutritionfacts/src/main/java/com/ariefzuhri/gizee/feature/nutritionfacts/data/NutritionFactsRepository.kt | ariefzuhri | 388,739,293 | false | null | package com.ariefzuhri.gizee.feature.nutritionfacts.data
import com.ariefzuhri.gizee.feature.nutritionfacts.domain.repository.INutritionFactsRepository
import com.ariefzuhri.gizee.core.common.dto.ApiResponse
import com.ariefzuhri.gizee.core.common.dto.NetworkBoundResource
import com.ariefzuhri.gizee.core.common.dto.Re... | 5 | Kotlin | 2 | 4 | 228e830857d6d2622282ef2146891dd7d76b6b03 | 1,919 | Gizee | MIT License |
phoenix-android/src/main/kotlin/fr/acinq/phoenix/android/components/contact/ContactsListView.kt | ACINQ | 192,964,514 | false | {"C": 8424033, "Kotlin": 2796821, "Swift": 1884690, "Java": 39996, "HTML": 13403, "Dockerfile": 3585, "CMake": 2276, "CSS": 504} | /*
* Copyright 2024 ACINQ SAS
*
* 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... | 100 | C | 96 | 666 | 011c8b85f16ea9ad322cbbba2461439c5e2b0aed | 6,355 | phoenix | Apache License 2.0 |
device-manager-v2/src/com/android/tools/idea/devicemanagerv2/ActionButtonsPanel.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2023 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 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 2,373 | android | Apache License 2.0 |
tools-manage/invocationlab-admin-21/src/main/kotlin/org/javamaster/invocationlab/admin/model/erd/DatatypeBean.kt | jufeng98 | 191,107,543 | false | null | package org.javamaster.invocationlab.admin.model.erd
import org.javamaster.invocationlab.admin.annos.AllOpen
/**
* @author yudong
* @date 2023/2/12
*/
@AllOpen
class DatatypeBean {
var name: String? = null
var code: String? = null
var apply: ApplyBean? = null
}
| 32 | null | 66 | 129 | 0ea2a5644bd08c1b8b2226a8490ab7c37a25a36f | 281 | java-master | Apache License 2.0 |
kuksa-sdk/src/test/kotlin/org/eclipse/kuksa/connectivity/databroker/docker/SecureDataBrokerDockerContainer.kt | eclipse-kuksa | 687,949,615 | false | {"Kotlin": 486057, "Java": 7211, "Shell": 2409} | /*
* Copyright (c) 2023 - 2024 Contributors to the Eclipse Foundation
*
* 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 re... | 14 | Kotlin | 1 | 2 | 5cbbf9250a10dd94e8f4cdd9e14d6e50e87d0519 | 2,516 | kuksa-android-sdk | Apache License 2.0 |
src/all/webtoons/src/eu/kanade/tachiyomi/extension/th/webtoons/WebtoonsThai.kt | yshalsager | 163,608,699 | true | {"Kotlin": 1568796, "Java": 4615, "Shell": 1729} | package eu.kanade.tachiyomi.extension.th.webtoons
import eu.kanade.tachiyomi.extension.all.webtoons.WebtoonsDefault
import java.text.SimpleDateFormat
import java.util.*
class WebtoonsThai: WebtoonsDefault("th") {
override fun chapterParseDate(date: String): Long {
return SimpleDateFormat("d MMM yyyy", Loc... | 0 | Kotlin | 0 | 0 | 948b756e7f8ca8e7c4742d57696bc606a6e57699 | 356 | tachiyomi-extensions | Apache License 2.0 |
benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/perfetto/MemoryUsageQuery.kt | androidx | 256,589,781 | false | {"Kotlin": 102794437, "Java": 64412412, "C++": 9138104, "AIDL": 617598, "Python": 310931, "Shell": 189529, "TypeScript": 40586, "HTML": 35176, "Groovy": 27482, "ANTLR": 26700, "Svelte": 20307, "CMake": 18033, "C": 16982, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2023 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... | 28 | Kotlin | 937 | 5,108 | 89ec14e39cf771106a8719337062572717cbad31 | 2,879 | androidx | Apache License 2.0 |
data/src/main/java/appus/software/githubusers/data/entities/ContributorEntity.kt | appus-studio | 180,989,176 | false | null | package appus.software.githubusers.data.entities
import appus.software.githubusers.domain.model.ContributorModel
import appus.software.githubusers.domain.model.UserModel
import com.google.gson.annotations.SerializedName
/**
* Created by bogdan.martynov on 2019-04-24 16:12. top-github-contributors-android
*/
data c... | 0 | Kotlin | 0 | 1 | 72b630dbaffe7e2d6c08a81ac48d551f8578b627 | 583 | top-github-contributors-android | Apache License 2.0 |
src/main/kotlin/com/dood/springboot/springdemo/config/CoroutineConfig.kt | coderdude1 | 505,686,334 | false | null | package com.dood.springboot.springdemo.config
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
@Configuration
class CoroutineConfig {
//Some Coroutine Scopes to support stru... | 0 | Kotlin | 0 | 0 | 088d0692a226dfc34dcc39fc8fb97a100d88f1b0 | 520 | SpringBootKotlin | Apache License 2.0 |
domain/src/main/java/uoc/cbonache/tfg/route/GetRouteInteractor.kt | cbonacheuoc | 109,753,411 | true | {"Kotlin": 144808, "Java": 6706} | package uoc.cbonache.tfg.route
import uoc.cbonache.tfg.Result
import uoc.cbonache.tfg.async.PostExecutionThread
import uoc.cbonache.tfg.interactor.Interactor
import uoc.cbonache.tfg.model.Step
import uoc.cbonache.tfg.repository.RouteRepository
import javax.inject.Inject
/**
* @author cbonache
*/
class GetRouteInter... | 0 | Kotlin | 0 | 1 | c6c3cdc87eb96aaf179a6442111371aebe0a80dc | 809 | Transpdroid-Android-App | Apache License 2.0 |
app/src/main/java/com/kylecorry/trail_sense/shared/lists/ListItem.kt | kylecorry31 | 215,154,276 | false | null | package com.kylecorry.trail_sense.shared.lists
import android.graphics.Bitmap
import androidx.annotation.ColorInt
import androidx.annotation.DrawableRes
import com.kylecorry.trail_sense.shared.database.Identifiable
data class ListItem(
override val id: Long,
val title: CharSequence,
val subtitle: CharSequ... | 281 | Kotlin | 37 | 396 | f42af867337e90b18fb91590246ec72f04021f2e | 1,316 | Trail-Sense | MIT License |
android_kmp/craftd-compose/src/main/java/com/github/codandotv/craftd/compose/builder/CraftDComposeBuilders.kt | CodandoTV | 788,958,834 | false | {"Kotlin": 53080, "C++": 20938, "CMake": 18713, "Dart": 14923, "Swift": 7869, "HTML": 1836, "C": 1425, "SCSS": 607, "Objective-C": 38} | package com.github.codandotv.craftd.compose.builder
import com.github.codandotv.craftd.compose.ui.button.CraftDButtonComposeBuilder
import com.github.codandotv.craftd.compose.ui.empty.CraftDEmptyComposeRender
import com.github.codandotv.craftd.compose.ui.text.CraftDTextComposeRender
class CraftDComposeBuilders {
... | 1 | Kotlin | 0 | 1 | e897123e2428adf25929b30b8bef19adce71e940 | 1,121 | CraftD | MIT License |
app/src/main/java/com/changrojasalex1168165/simonsays/navigation/NavManager.kt | JellyPork | 717,329,885 | false | {"Kotlin": 46812} | package com.changrojasalex1168165.simonsays.navigation
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.NavType
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.navArgument
import com.ch... | 0 | Kotlin | 0 | 0 | 3bd220f8f9fed60c3d426120ecc409c86630d86f | 1,473 | SimonSays | Apache License 2.0 |
src/main/java/com/gazman/db/callbacks/MainThreadCallback.kt | gazman-sdk | 62,981,480 | false | null | package com.gazman.db.callbacks
import android.os.Handler
import android.os.Looper
/**
* Created by <NAME> on 7/9/2016.
*/
abstract class MainThreadCallback<T> protected constructor() : DataBaseDataCallback<T>(HANDLER) {
companion object {
val HANDLER = Handler(Looper.getMainLooper())
}
} | 0 | Kotlin | 1 | 4 | b0573b64d7f086fbb873dc8bdf1df743c212d5d1 | 309 | SQLite-Assets-Helper | Apache License 2.0 |
common/src/main/java/com/laposa/common/features/mediaSource/ui/MediaSourceItemContent.kt | laposa | 796,639,770 | false | {"Kotlin": 274304} | package com.laposa.common.features.mediaSource.ui
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compos... | 4 | Kotlin | 0 | 2 | b0f5964f7e62f8070577465a5199a386f4cdfb19 | 2,654 | media-player | MIT License |
src/zh/kanmanhua886/src/eu/kanade/tachiyomi/extension/zh/mkanmanhua886/Kanmanhua886.kt | ZongerZY | 287,689,898 | true | {"Kotlin": 3948599, "Shell": 1958, "Java": 608} | package eu.kanade.tachiyomi.extension.zh.mkanmanhua886
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.Filter
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.MangasPage
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.sour... | 0 | Kotlin | 1 | 8 | 1f40e4d4c4aff4b71fa72ffae03dbcd871e91803 | 6,812 | tachiyomi-extensions | Apache License 2.0 |
tribune-core/src/main/kotlin/com/sksamuel/tribune/core/collections/lists.kt | sksamuel | 10,692,938 | false | null | package com.sksamuel.tribune.core.collections
import arrow.core.invalidNel
import arrow.core.sequence
import com.sksamuel.tribune.core.Parser
/**
* Lifts an existing [Parser] to support lists of the input types supported by
* the underlying parser.
*
* In other words, given a parser from I to A, returns a parser ... | 0 | Kotlin | 19 | 152 | 0f265805583df39aa5c1e755e86e71221db304b0 | 1,457 | tribune | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.