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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
videoplayer/src/main/java/net/intbird/soft/lib/video/player/main/player/call/PlayerCallbacks.kt | intbird | 262,362,955 | false | null | package net.intbird.soft.lib.video.player.main.player.call
import net.intbird.soft.lib.video.player.main.player.mode.MediaFileInfo
/**
* created by intbird
* on 2020/5/1
* DingTalk id: intbird
*/
class PlayerCallbacks(vararg callbackVars: IPlayerCallback?) : IPlayerCallback {
private val callbacks = mutableL... | 1 | Kotlin | 1 | 9 | 6282bf14680e77866fc04713e0088dbaeb75ec76 | 2,558 | VideoPlayerLib | Apache License 2.0 |
workflow/src/main/java/com/google/android/fhir/workflow/activity/phase/request/PlanPhase.kt | google | 247,977,633 | false | {"Kotlin": 3601315, "Shell": 6510, "Java": 454} | /*
* Copyright 2024 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... | 312 | Kotlin | 288 | 485 | d417dde6c08d0a21b620754400b37e0fe131e679 | 4,972 | android-fhir | Apache License 2.0 |
imageloading-core/src/main/java/dev/chrisbanes/accompanist/imageloading/AndroidDrawablePainter.kt | hitherejoe | 342,143,601 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 1 | null | 0 | 2 | 972a308fc2b35ffe7f066b14c36551f02df92948 | 5,055 | accompanist | Apache License 2.0 |
utgang-pdl/src/main/kotlin/no/nav/paw/arbeidssoekerregisteret/utgang/pdl/Topology.kt | navikt | 771,406,758 | false | {"Kotlin": 93071, "Dockerfile": 143} | package no.nav.paw.arbeidssoekerregisteret.utgang.pdl
import io.micrometer.prometheus.PrometheusMeterRegistry
import no.nav.paw.arbeidssoekerregisteret.utgang.pdl.vo.AvsluttetHendelseSerde
import no.nav.paw.arbeidssoekerregisteret.utgang.pdl.clients.kafkakeygenerator.KafkaIdAndRecordKeyFunction
import no.nav.paw.arbei... | 0 | Kotlin | 0 | 0 | dcf5d0c7506bc9a1ed02d80ac3e13b34acfa6520 | 2,375 | paw-arbeidssoekerregisteret-utgang | MIT License |
src/main/kotlin/org/installmation/model/binary/IconsetExecutable.kt | SergeMerzliakov | 215,456,643 | false | null | /*
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 1 | Kotlin | 5 | 45 | eb1c151e70e7fe7c3b096154f1f63d47a50bea19 | 948 | installmation | Apache License 2.0 |
sekret-gradle-plugin/src/main/java/dev/datlag/sekret/gradle/tasks/CreateSekretValueTask.kt | DatL4g | 713,557,426 | false | {"Kotlin": 130347} | package dev.datlag.sekret.gradle.tasks
import dev.datlag.sekret.gradle.SekretPluginExtension
import dev.datlag.sekret.gradle.common.canReadSafely
import dev.datlag.sekret.gradle.common.existsSafely
import dev.datlag.sekret.gradle.common.isDirectorySafely
import dev.datlag.sekret.gradle.common.sekretExtension
import de... | 2 | Kotlin | 0 | 36 | bb7d60e6d63491a9eb426442c5518b94007fdd4f | 3,181 | Sekret | Apache License 2.0 |
app/src/main/java/io/naika/coin_toss_sample_dapp/ClaimRewardDialogFragment.kt | Naika-DAO | 542,124,179 | false | {"Kotlin": 72325, "Java": 8573} | package io.naika.coin_toss_sample_dapp
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import io.naika.coin_toss_sample_dapp.databinding.DialogClaim... | 0 | Kotlin | 0 | 3 | 3cb67085247bf2f76d300bb20e93bd09ad999772 | 1,688 | NaikaPay-Android-Library | MIT License |
sample/src/main/java/me/panpf/recycler/sticky/sample/adapter/item/AppHeaderItem.kt | panpf | 134,932,163 | false | {"Gradle Kotlin DSL": 4, "Java Properties": 3, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Text": 1, "Markdown": 1, "XML": 15, "Kotlin": 8, "Java": 4, "INI": 1, "Proguard": 1} | package me.panpf.recycler.sticky.sample.adapter.item
import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import me.panpf.adapter.AssemblyItem
import me.panpf.adapter.AssemblyItemFactory
import me.panpf.adapter.ktx.bindView
import me.panpf.recycler.sticky... | 1 | null | 1 | 1 | 32bb14b8797275aa4be5d27f55752c7d14f7e569 | 2,866 | sticky-recycler-item-decoration | Apache License 2.0 |
odk/extension/src/main/java/io/samagra/odk/collect/extension/listeners/FileExtractorListener.kt | jayesh212 | 668,156,153 | true | {"Java Properties": 6, "Gradle": 42, "Shell": 3, "Markdown": 24, "YAML": 3, "INI": 31, "Git Attributes": 1, "Batchfile": 1, "Ignore List": 34, "Gradle Kotlin DSL": 1, "Kotlin": 607, "Text": 2, "XML": 545, "Java": 783, "JSON": 5, "HTML": 1, "JavaScript": 1, "Proguard": 5} | package io.samagra.odk.collect.extension.listeners
/** Listener to keep track of events during extraction of a compressed file. */
interface FileExtractorListener {
/** Called when the extraction process is complete. */
fun onExtractionComplete()
/** Called when the extraction process progresses. */
... | 0 | Java | 0 | 1 | d707b7798b7e3420105a4d321cf331263d96344d | 435 | odk-collect-extension | Apache License 2.0 |
app/src/main/java/com/mapmyindia/sdk/demo/kotlin/activity/NearbyUiActivity.kt | MapmyIndia | 458,154,500 | false | null | package com.mapmyindia.sdk.demo.kotlin.activity
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.mapmyindia.sdk.demo.R
import com.mapmyindia.sdk.demo.data... | 1 | null | 3 | 3 | 0c995ebcedb84b250733fc43d61bfb3d89479dd6 | 1,532 | mapmyindia-maps-vectorSDK-android | BSD 1-Clause License |
app/src/main/java/ru/merkulyevsasha/news/presentation/articlecomments/ArticleCommentsView.kt | sashamerkulev | 72,357,607 | false | {"Gradle": 13, "HTML": 2, "Java Properties": 3, "YAML": 1, "Shell": 2, "Ignore List": 8, "Batchfile": 1, "Text": 1, "Markdown": 1, "Proguard": 7, "Java": 13, "XML": 46, "Kotlin": 113} | package ru.merkulyevsasha.news.presentation.articlecomments
import ru.merkulyevsasha.core.models.Article
import ru.merkulyevsasha.core.models.ArticleComment
import ru.merkulyevsasha.core.models.ArticleOrComment
import ru.merkulyevsasha.news.presentation.base.BaseView
interface ArticleCommentsView : BaseView {
fun... | 1 | null | 1 | 1 | fc8ab8149c34bbda3cce9a7002d203ff62f52bd6 | 515 | news | Apache License 2.0 |
src/main/kotlin/io/ashdavies/rx/rxfirebase/ValueEventSingle.kt | ashdavies | 56,701,828 | false | null | package io.ashdavies.rx.rxfirebase
import com.google.firebase.database.DataSnapshot
import com.google.firebase.database.DatabaseError
import com.google.firebase.database.ValueEventListener
import io.reactivex.SingleEmitter
internal class ValueEventSingle(private val emitter: SingleEmitter<DataSnapshot>) : ValueEventL... | 3 | Kotlin | 6 | 35 | 0935448ea99f626acbfc8b9fb0021a48576c849f | 504 | rx-firebase | Apache License 2.0 |
src/main/kotlin/io/vlang/ide/inspections/unused/VlangUnusedLabelInspection.kt | vlang | 754,996,747 | false | {"Kotlin": 1646396, "V": 250415, "Java": 68641, "Lex": 20424, "HTML": 6275} | package io.vlang.ide.inspections.unused
import com.intellij.codeInspection.ProblemHighlightType
import com.intellij.codeInspection.ProblemsHolder
import com.intellij.psi.search.searches.ReferencesSearch
import io.vlang.ide.inspections.VlangBaseInspection
import io.vlang.lang.psi.VlangLabelDefinition
import io.vlang.la... | 5 | Kotlin | 5 | 33 | a0d2cbfa63b995d93aaca3c80676f0c2f9bef117 | 919 | intellij-v | MIT License |
components-core/src/main/java/com/adyen/checkout/components/core/internal/ui/model/ButtonParams.kt | Adyen | 91,104,663 | false | null | package com.adyen.checkout.components.core.internal.ui.model
import androidx.annotation.RestrictTo
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
interface ButtonParams {
val isSubmitButtonVisible: Boolean
}
| 28 | Kotlin | 59 | 96 | 1f000e27e07467f3a30bb3a786a43de62be003b2 | 211 | adyen-android | MIT License |
biometric/src/main/java/dev/skomlach/biometric/compat/utils/DialogMainColor.kt | sergeykomlach | 317,847,167 | false | null | /*
* Copyright (c) 2021 <NAME> aka Salat-Cx65; Original project https://github.com/Salat-Cx65/AdvancedBiometricPromptCompat
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy ... | 6 | null | 5 | 94 | 9555725a28227e28079a6dbc5da7c91d8b9634bb | 1,718 | AdvancedBiometricPromptCompat | Apache License 2.0 |
adcio_analytics/src/main/java/ai/corca/adcio_analytics/network/data/event/AnalyticsPageViewRequest.kt | corca-ai | 682,358,293 | false | {"Kotlin": 84979} | package ai.corca.adcio_analytics.network.data.event
import com.google.gson.annotations.SerializedName
data class AnalyticsPageViewRequest(
@SerializedName("sessionId") val sessionId: String,
@SerializedName("deviceId") val deviceId: String,
@SerializedName("customerId") val customerId: String?,
@Seria... | 0 | Kotlin | 0 | 4 | 5da06ee83fa0edf06298aa9c6249c197f0e920da | 539 | adcio_android_plugins | MIT License |
app/src/main/kotlin/org/michaelbel/template/features/githubapi/api/RepoSearchResponse.kt | michaelbel | 354,625,997 | false | null | package ru.aasmc.githubpaging.api
import com.google.gson.annotations.SerializedName
import ru.aasmc.githubpaging.model.Repo
/**
* Data class to hold repo responses from searchRepo API calls.
*/
data class RepoSearchResponse(
@SerializedName("total_count") val total: Int = 0,
@SerializedName("items") val ite... | 1 | null | 1 | 2 | 6b8b208326091b3a2aaa3a266fae10711a115c56 | 382 | android-app-template | Apache License 2.0 |
browser-kotlin/src/jsMain/kotlin/web/codecs/VideoEncoderInit.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6214094} | // Automatically generated - do not modify!
package web.codecs
import kotlinx.js.JsPlainObject
@JsPlainObject
external interface VideoEncoderInit {
var error: WebCodecsErrorCallback
var output: EncodedVideoChunkOutputCallback
}
| 0 | Kotlin | 7 | 35 | ac6d96e24eb8d07539990dc2d88cbe85aa811312 | 239 | types-kotlin | Apache License 2.0 |
sample-app/src/main/java/com/pierfrancescosoffritti/cyplayersample/MainActivity.kt | PierfrancescoSoffritti | 111,090,932 | false | null | package com.pierfrancescosoffritti.cyplayersample
import android.annotation.SuppressLint
import android.content.ActivityNotFoundException
import android.content.Context
import android.content.Intent
import android.graphics.Point
import android.net.Uri
import android.os.Build
import androidx.appcompat.app.AppCompatActi... | 3 | null | 3 | 9 | 2197bbb16f56fbda27ac5e8c16a8a0e8b1bd7631 | 7,782 | chromecast-youtube-player | MIT License |
formula/src/test/java/com/instacart/formula/subjects/StreamInputFormula.kt | instacart | 171,923,573 | false | null | package com.instacart.formula.subjects
import com.instacart.formula.Evaluation
import com.instacart.formula.Snapshot
import com.instacart.formula.StatelessFormula
import com.instacart.formula.Stream
class StreamInputFormula : StatelessFormula<Int, Unit>() {
val messages = mutableListOf<Int>()
override fun S... | 7 | Kotlin | 12 | 133 | 079f4deaa91992aee11fd988fe042acb097cdbd7 | 613 | formula | BSD 3-Clause Clear License |
src/main/kotlin/org/raddad/main/DSLFactories.kt | fossabot | 394,966,615 | false | null | package org.raddad.main
import kotlin.reflect.KClass
fun warehouse(
scope: Any,
accessibilityManager: AccessibilityManagerContract = AccessibilityManager(),
block: Warehouse.() -> Unit,
) = Warehouse(scope, accessibilityManager = accessibilityManager).apply(
block
)
fun warehouse(
accessibility: ... | 0 | Kotlin | 0 | 1 | 17183db5bac300212745927a887281a0f6117732 | 1,424 | Warehouse | Apache License 2.0 |
src/commonMain/kotlin/app/thelema/g3d/particles/ParticleTextureFrameEffect.kt | zeganstyl | 275,550,896 | false | null | package app.thelema.g3d.particles
import app.thelema.ecs.IEntity
import app.thelema.ecs.IEntityComponent
import app.thelema.math.IVec2
class ParticleTextureFrameEffect: IParticleEffect, ParticleEmissionEffect, IEntityComponent {
override var entityOrNull: IEntity? = null
override val componentName: String
... | 6 | null | 5 | 61 | 8e2943b6d2de3376ce338025b58ff31c14097caf | 1,382 | thelema-engine | Apache License 2.0 |
composeApp/src/commonMain/kotlin/screens/ParcelableScreen.kt | thaapasa | 702,418,399 | false | {"Kotlin": 476702, "Swift": 661, "Shell": 262} | package fi.tuska.beerclock.screens
import cafe.adriel.voyager.core.screen.Screen
import fi.tuska.beerclock.util.CommonParcelable
interface ParcelableScreen : Screen, CommonParcelable
| 1 | Kotlin | 0 | 2 | ed954c500564d21d482609d62ff9b4178f4d6f64 | 186 | beerclock | Apache License 2.0 |
features/game/src/main/java/io/github/japskiddin/sudoku/feature/component/autosizetext/DensityExt.kt | sheikh-20 | 766,410,608 | false | {"Kotlin": 162051} | package com.bitvolper.yogazzz.presentation.accountsetup.utility
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.geometry.Size
import androidx.compose.ui.geometry.isSpecified
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.DpOffset
import ... | 0 | Kotlin | 1 | 0 | cbbb3cc36b3918e3788f45b9a60cee24bf1527df | 2,107 | YogaApp | The Unlicense |
app/src/main/java/dev/maxsiomin/luhn/extensions/Context.kt | MaxSiominDev | 434,318,862 | false | {"Kotlin": 25404} | package dev.maxsiomin.luhn.extensions
import android.content.Context
import androidx.preference.PreferenceManager
import dev.maxsiomin.luhn.util.SharedPrefs
fun Context.getDefaultSharedPrefs(): SharedPrefs =
PreferenceManager.getDefaultSharedPreferences(this)
| 0 | Kotlin | 0 | 0 | 8adb8545ec9b8e2a35d643eb1acc1a7df84bda75 | 266 | CardChecker | MIT License |
app/src/main/java/xyz/junerver/composehooks/MainActivity.kt | junerver | 767,292,867 | false | {"Kotlin": 254481} | package xyz.junerver.composehooks
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import an... | 0 | Kotlin | 2 | 18 | eac50416330cca285f5150026c2b27bef6cc81b3 | 2,482 | ComposeHooks | Apache License 2.0 |
data/src/main/java/com/example/data/repository/FeatureBlueRepositoryImpl.kt | fpadilha90 | 200,267,301 | false | null | package com.example.data.repository
import com.example.common.domain.exception.Failure
import com.example.common.domain.functional.Either
import com.example.common.domain.functional.flatMapIterable
import com.example.data.api.BlueService
import com.example.data.utils.safeApiCall
import com.example.feature_blue.domain.... | 1 | Kotlin | 1 | 1 | e1897c09ef1bc7f8d3620de073e76c2751148eca | 794 | feature-oriented-architecture | Apache License 2.0 |
org.librarysimplified.http.api/src/main/java/org/librarysimplified/http/api/LSHTTPClientProviderType.kt | ThePalaceProject | 491,628,613 | false | {"Kotlin": 175869, "Java": 1556} | package org.librarysimplified.http.api
import android.content.Context
/**
* A provider of HTTP clients.
*/
interface LSHTTPClientProviderType {
/**
* Create a new client using the given application context and configuration.
*/
fun create(
context: Context,
configuration: LSHTTPClientConfigurat... | 0 | Kotlin | 1 | 0 | f198924ad745a9002d6c52861518ac96e5f3be05 | 348 | android-http | Apache License 2.0 |
common-core/src/commonMain/kotlin/com/beforeyoudie/common/state/TaskGraph.kt | brandonpollack23 | 543,539,297 | false | null | package com.beforeyoudie.common.state
/** The full in memory task graph of all tasks. */
data class TaskGraph(
val tasks: Set<TaskNode> = emptySet()
)
| 18 | Kotlin | 0 | 0 | 486934303f6d2a2e68b1271c26db5853a2cb534e | 154 | before_you_die | Apache License 2.0 |
common-core/src/commonMain/kotlin/com/beforeyoudie/common/state/TaskGraph.kt | brandonpollack23 | 543,539,297 | false | null | package com.beforeyoudie.common.state
/** The full in memory task graph of all tasks. */
data class TaskGraph(
val tasks: Set<TaskNode> = emptySet()
)
| 18 | Kotlin | 0 | 0 | 486934303f6d2a2e68b1271c26db5853a2cb534e | 154 | before_you_die | Apache License 2.0 |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/areas/spawns/spawns_10808.plugin.kts | 2011Scape | 578,880,245 | false | null | package gg.rsmod.plugins.content.areas.spawns
/**
* @author Alycia <https://github.com/alycii>
*/
spawn_npc(npc = Npcs.FISHING_SPOT_7863, x = 2690, z = 3598, direction = Direction.NORTH, static = true)
spawn_npc(npc = Npcs.FISHING_SPOT_7863, x = 2692, z = 3598, direction = Direction.NORTH, static = true)
spawn_ite... | 39 | null | 97 | 34 | e5400cc71bfa087164153d468979c5a3abc24841 | 1,886 | game | Apache License 2.0 |
sample/src/main/java/re/notifica/sample/ui/monetize/products/MonetizeProductsListAdapter.kt | Notificare | 279,260,636 | false | {"Kotlin": 760683} | package re.notifica.sample.ui.monetize.products
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import re.notifica.monetize.models.NotificareProduct
import re.n... | 2 | Kotlin | 0 | 2 | f756ff63b5930360bbb43dafcb29dde61b37cb11 | 2,011 | notificare-sdk-android | MIT License |
src/main/kotlin/no/nav/omsorgspengerutbetaling/soker/SøkerService.kt | navikt | 259,895,555 | false | null | package no.nav.omsorgspengerutbetaling.soker
import no.nav.helse.dusseldorf.ktor.auth.IdToken
import no.nav.omsorgspengerutbetaling.general.CallId
class SøkerService (
private val søkerGateway: SøkerGateway
) {
suspend fun getSoker(
idToken: IdToken,
callId: CallId
): Søker {
retur... | 4 | Kotlin | 0 | 0 | 4e2acf35d84159bdaedb9e866bc79ccf64093271 | 370 | omsorgspengerutbetalingsoknad-arbeidstaker-api | MIT License |
src/main/kotlin/no/nav/syfo/consumer/brukertilgang/BrukertilgangConsumer.kt | navikt | 139,004,454 | false | {"Kotlin": 337265, "Dockerfile": 266, "Shell": 251} | package no.nav.syfo.consumer.brukertilgang
import no.nav.security.token.support.core.context.TokenValidationContextHolder
import no.nav.syfo.api.auth.tokenX.TokenXUtil
import no.nav.syfo.consumer.tokenx.tokendings.TokenDingsConsumer
import no.nav.syfo.metric.Metric
import no.nav.syfo.util.APP_CONSUMER_ID
import no.nav... | 2 | Kotlin | 2 | 2 | 8a9494a3a0bcc5f19e2e544213a93439e152fbf8 | 3,244 | syfomotebehov | MIT License |
KSpring03_ReadBook/src/main/kotlin/com/callor/readbook/config/LoggerConfig.kt | soparifly | 423,656,520 | false | null | package com.callor.readbook.config
import org.slf4j.Logger
import org.slf4j.LoggerFactory
inline fun <reified T> T.logger():Logger = LoggerFactory.getLogger(T::class.java) | 1 | null | 1 | 1 | 67eb38666dea1213d054223a0ea885cc85ed7f9b | 173 | Biz_2021_11_IDEA | MIT License |
src/main/kotlin/it/czerwinski/intellij/common/editor/PreviewEditor.kt | sczerwinski | 283,832,623 | false | null | /*
* Copyright 2020-2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 27 | Kotlin | 1 | 9 | ca6ee47083cdca9b52cd2a59994d12a4a10033eb | 1,396 | wavefront-obj-intellij-plugin | Apache License 2.0 |
src/androidMain/kotlin/ch/dreipol/dreimultiplatform/StringUtils.kt | dreipol | 283,491,376 | false | {"Kotlin": 45568} | package ch.dreipol.dreimultiplatform
actual fun formatString(
string: String,
args: List<String>,
): String {
return String.format(string, *args.toTypedArray())
} | 1 | Kotlin | 2 | 11 | a1b4830ec2f60e2b8c6c54ff61be33603df36f72 | 175 | dreimultiplatform | MIT License |
compiler/testData/diagnostics/tests/dataFlowInfoTraversal/AssignmentToArrayElement.kt | JakeWharton | 99,388,807 | false | null | // !CHECK_TYPE
fun arrayAccessRHS(a: Int?, b: Array<Int>) {
b[0] = a!!
checkSubtype<Int>(<!DEBUG_INFO_SMARTCAST!>a<!>)
}
fun arrayAccessLHS(a: Int?, b: Array<Int>) {
b[a!!] = <!DEBUG_INFO_SMARTCAST!>a<!>
checkSubtype<Int>(<!DEBUG_INFO_SMARTCAST!>a<!>)
}
| 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 273 | kotlin | Apache License 2.0 |
stream-video-android-ui-xml/src/main/kotlin/io/getstream/video/android/xml/viewmodel/CallViewModelFactoryProvider.kt | GetStream | 505,572,267 | false | {"Kotlin": 2549850, "MDX": 279508, "Python": 18285, "Shell": 4455, "JavaScript": 1112, "PureBasic": 107} | /*
* Copyright (c) 2014-2022 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-video-android/blob/main/LICENSE
*
* Unless required by ... | 3 | Kotlin | 30 | 308 | 1c67906e4c01e480ab180f30b39f341675bc147e | 877 | stream-video-android | FSF All Permissive License |
src/main/kotlin/xyz/xenondevs/nmsutils/advancement/Display.kt | xenondevs | 510,266,783 | false | null | package xyz.xenondevs.nmsutils.advancement
import net.kyori.adventure.text.Component
import net.md_5.bungee.api.chat.BaseComponent
import net.md_5.bungee.api.chat.TextComponent
import net.minecraft.advancements.DisplayInfo
import org.bukkit.inventory.ItemStack
import xyz.xenondevs.nmsutils.adapter.Adapter
import xyz.x... | 0 | Kotlin | 1 | 1 | dd7bbb76240cf5c8316f67c9b076ce8ce7842d6f | 4,884 | NMS-Utilities | MIT License |
app/src/main/java/com/telen/easylineup/dashboard/DashboardFragment.kt | kaygenzo | 177,859,247 | false | null | package com.telen.easylineup.dashboard
import android.content.DialogInterface
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.*
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import androidx.appcomp... | 0 | Kotlin | 0 | 0 | c620fa36f23ba21f1ffb8bdddb40df63d60fd248 | 12,604 | EasyLineUp | Apache License 2.0 |
src/test/kotlin/net/bjoernpetersen/shutdown/api/ShutdownTest.kt | BjoernPetersen | 147,198,908 | false | null | package net.bjoernpetersen.shutdown.api
import io.vertx.core.Vertx
import io.vertx.core.http.HttpMethod
import io.vertx.junit5.VertxTestContext
import java.util.concurrent.TimeUnit
import net.bjoernpetersen.shutdown.Instance
import net.bjoernpetersen.shutdown.ServerConfig
import net.bjoernpetersen.shutdown.encodeBase6... | 4 | Kotlin | 0 | 0 | d40f4d10108a2b0dbec6f5aeaaecf7ae02bad521 | 1,470 | ShutdownServer | MIT License |
browser-kotlin/src/jsMain/kotlin/web/codecs/VideoEncoder.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6786345} | // Automatically generated - do not modify!
package web.codecs
import js.core.JsLong
import js.core.Void
import web.events.Event
import web.events.EventHandler
import web.events.EventTarget
import kotlin.js.Promise
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web... | 0 | Kotlin | 7 | 28 | 8b3f4024ebb4f67e752274e75265afba423a8c38 | 1,419 | types-kotlin | Apache License 2.0 |
app/src/main/java/com/example/shared_grocery_list/activities/MainActivity.kt | Arkidiusz | 288,815,864 | false | null | package com.example.shared_grocery_list.activities
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.example.shared_grocery_list.R
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.FirebaseUser
import... | 0 | Kotlin | 0 | 1 | 6ab26efb892a3ec49c2654ba1a4542838e7a5560 | 2,567 | Shared-Grocery-List | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/components/ProgressBar.kt | chathil | 342,892,544 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | b58a301151fe40a4e869fad0f1c40f90980c2291 | 2,379 | adoptme-compose-challenge | Apache License 2.0 |
src/main/kotlin/com/jscisco/lom/view/fragment/PlayerStatsFragment.kt | jscisco3 | 168,425,969 | false | null | package com.jscisco.lom.view.fragment
import GameEntity
import com.jscisco.lom.attributes.Health
import com.jscisco.lom.attributes.types.Player
import com.jscisco.lom.configuration.GameConfiguration.SIDEBAR_WIDTH
import org.hexworks.zircon.api.Components
import org.hexworks.zircon.api.component.Component
import org.he... | 0 | Kotlin | 0 | 1 | e4d3ffa25ae096ee5757fad7929ad2d9175fc806 | 1,436 | lords-of-mysterium | Apache License 2.0 |
nutritionframework/src/main/java/com/frogobox/nutritionframework/recycler/core/INutriViewHolder.kt | amirisback | 361,106,969 | false | {"Kotlin": 618147, "HTML": 300988, "SCSS": 157102, "JavaScript": 155345, "CSS": 96509, "Less": 78481, "Witcher Script": 27406, "Java": 15217} | package com.frogobox.nutritionframework.recycler.core
import android.view.View
/*
* Created by <NAME>
* =========================================
* NutriRecyclerViewAdapter
* Copyright (C) 14/04/2020.
* All rights reserved
* -----------------------------------------
* Name : <NAME>
* E-mail : <EMA... | 1 | Kotlin | 4 | 41 | e7d102622e6aac67fedf1414a74fe4ab705b04f3 | 1,003 | nutrition-framework | Apache License 2.0 |
automata/file/src/main/java/com/lockwood/automata/file/DownloadDirectory.kt | yushman | 382,277,000 | true | {"Kotlin": 72723} | package com.lockwood.automata.file
import android.content.Context
import android.os.Build
import android.os.Environment
import com.lockwood.automata.core.NotEmptyString
import com.lockwood.automata.core.notEmptyString
import java.io.File
import java.io.IOException
@kotlin.jvm.Throws(IOException::class)
@Suppress("DEP... | 0 | null | 0 | 0 | 27a6e7587274cd9e6a9ee0021dac33ce71cf00d3 | 940 | nier | Apache License 2.0 |
test-utils/testData/api/typeComposure.kt | google | 297,744,725 | false | null | /*
* Copyright 2020 Google LLC
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
*
* 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.apac... | 370 | null | 268 | 2,854 | a977fb96b05ec9c3e15b5a0cf32e8e7ea73ab3b3 | 2,476 | ksp | Apache License 2.0 |
app/src/main/java/org/ak80/skeleton/di/FragmentScoped.kt | ak80 | 158,294,184 | false | null | package org.ak80.taskbuddy.di
import javax.inject.Scope
/**
* To be used for Fragment modules
*/
@Scope
@Retention(AnnotationRetention.RUNTIME)
@Target(
AnnotationTarget.CLASS,
AnnotationTarget.FILE,
AnnotationTarget.FUNCTION,
AnnotationTarget.PROPERTY_GETTER,
AnnotationTarget.PROPERTY_SETTER
)
... | 1 | Kotlin | 0 | 1 | ae3786a0031a5347c3e46f21f225de94718fd2c8 | 351 | android-skeleton | Apache License 2.0 |
processor/src/main/java/com/github/fragivity/processor/DeepLinkProcessor.kt | vitaviva | 313,186,243 | false | {"Kotlin": 222347, "Java": 30352} | package com.github.fragivity.processor
import com.github.fragivity.annotation.DeepLink
import com.google.auto.service.AutoService
import com.squareup.kotlinpoet.FileSpec
import com.squareup.kotlinpoet.FunSpec
import javax.annotation.processing.Processor
import javax.annotation.processing.RoundEnvironment
import javax.... | 16 | Kotlin | 39 | 296 | fe4dcaae2dc5ca97dc030a8f0471c0f3fbadb824 | 1,803 | fragivity | MIT License |
store/rocksdb/src/commonMain/kotlin/maryk/datastore/rocksdb/processors/constants.kt | marykdb | 290,454,412 | false | {"Kotlin": 3313154, "JavaScript": 1004} | package maryk.datastore.rocksdb.processors
/** Defines last version reference */
internal const val LAST_VERSION_INDICATOR: Byte = 0b1000
internal const val SOFT_DELETE_INDICATOR: Byte = 0
internal const val FALSE: Byte = 0
internal val FALSE_ARRAY = byteArrayOf(FALSE)
internal const val TRUE: Byte = 1
internal val ... | 1 | Kotlin | 1 | 8 | 7d71064056cdff61fa01feb1f3a9201dc0c9ec34 | 348 | maryk | Apache License 2.0 |
fragmentlearning/app/src/main/java/org/javamaster/fragmentlearning/GlobalHandler.kt | jufeng98 | 197,153,385 | false | null | package org.javamaster.fragmentlearning
import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import android.os.Environment
import android.util.Log
import com.google.android.gms.common.util.Base64Utils
import okhttp3.Call
import okhttp3.Callback
import okhttp3.Response
import ... | 6 | null | 2 | 7 | f271a958600a60b1324d6b6d4123aec4f6b4628e | 4,041 | online-exam | Apache License 2.0 |
client/src/commonMain/kotlin/com/algolia/client/model/ingestion/Event.kt | algolia | 153,273,215 | false | {"Kotlin": 1464911} | /** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */
package com.algolia.client.model.ingestion
import kotlinx.serialization.*
import kotlinx.serialization.json.*
/**
* An event describe... | 24 | Kotlin | 9 | 59 | d74a4cbfd842fdf62067451e3e398a78624ed0f3 | 1,477 | algoliasearch-client-kotlin | MIT License |
projetos/Aula03-Kotlin/Ex01.kt | chaua | 517,803,177 | false | {"Kotlin": 99688, "C++": 416} | // Crie uma classe que representa uma Conta bancária com as seguintes características:
//- Atributos: cliente, saldo, número, agência
//- Métodos: depositar, retirar, transferir, imprimirExtrato
class ContaBancaria(val cliente: String, val numero: Int, val agencia: Int) {
// Variável saldo não permite que seja al... | 0 | Kotlin | 1 | 11 | 83f994f5625b755dcebab9a08ac0e5f1223b2adc | 1,656 | programacao-mobile | MIT License |
data/models/src/main/java/app/tivi/data/compoundmodels/EpisodeWithWatches.kt | chrisbanes | 100,624,553 | false | null | /*
* Copyright 2018 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... | 39 | null | 792 | 5,749 | 5dc4d831fd801afab556165d547042c517f98875 | 1,985 | tivi | Apache License 2.0 |
data/models/src/main/java/app/tivi/data/compoundmodels/EpisodeWithWatches.kt | chrisbanes | 100,624,553 | false | null | /*
* Copyright 2018 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... | 39 | null | 792 | 5,749 | 5dc4d831fd801afab556165d547042c517f98875 | 1,985 | tivi | Apache License 2.0 |
test-suite-kotlin-ksp/src/test/kotlin/io/micronaut/docs/server/suspend/SuspendFilter.kt | micronaut-projects | 124,230,204 | false | null | package io.micronaut.docs.server.suspend
import io.micronaut.http.HttpAttributes
import io.micronaut.http.HttpRequest
import io.micronaut.http.MutableHttpResponse
import io.micronaut.http.annotation.Filter
import io.micronaut.http.filter.HttpServerFilter
import io.micronaut.http.filter.ServerFilterChain
import org.rea... | 753 | null | 1061 | 6,059 | c9144646b31b23bd3c4150dec8ddd519947e55cf | 893 | micronaut-core | Apache License 2.0 |
services/hanke-service/src/integrationTest/kotlin/fi/hel/haitaton/hanke/HankeControllerITests.kt | City-of-Helsinki | 300,534,352 | false | {"Kotlin": 1388949, "Python": 79801, "Mustache": 60281, "Shell": 27227, "Batchfile": 5169, "PLpgSQL": 1115, "Dockerfile": 980} | package fi.hel.haitaton.hanke
import assertk.assertThat
import assertk.assertions.isTrue
import fi.hel.haitaton.hanke.domain.HankeStatus
import fi.hel.haitaton.hanke.domain.SavedHankealue
import fi.hel.haitaton.hanke.domain.TyomaaTyyppi
import fi.hel.haitaton.hanke.factory.DateFactory
import fi.hel.haitaton.hanke.fact... | 5 | Kotlin | 5 | 4 | bb33f583e8a0de3c577a5d1d23d36312b9fbaf4b | 26,738 | haitaton-backend | MIT License |
src/main/kotlin/main/utils/pagination/PaginationButtonGenerator.kt | bombies | 411,889,109 | false | {"Kotlin": 810583, "Dockerfile": 355, "Shell": 131} | package main.utils.pagination
import dev.minn.jda.ktx.interactions.components.secondary
import main.constants.MessageButton
import main.constants.RobertifyEmoji
import net.dv8tion.jda.api.entities.User
import net.dv8tion.jda.api.entities.emoji.Emoji
import net.dv8tion.jda.api.interactions.components.ActionRow
class P... | 1 | Kotlin | 0 | 4 | c0477463ec2fcccad2e5bf638eb338fba5d84eeb | 1,844 | Robertify-Bot | MIT License |
module_article/src/main/java/com/example/module_article/ArticleApiManager.kt | SerendipityMatthew | 165,219,273 | true | {"Kotlin": 51533, "Java": 5543} | package com.example.module_article
import com.example.commonsdk.http.RetrofitInstance
import com.example.commonservice.article.ArticleService
/**
* @author
* @Date 2019/1/1
* @description
* @since 1.0.0
*/
val url = "http://interface.meiriyiwen.com/article/"
class ArticleApiManager private constructor() {
... | 0 | Kotlin | 0 | 0 | c6c6a95e0227a0f5a38267abcb6a452cab066b2e | 839 | ModularsArchitectureDemo | Apache License 2.0 |
app/build/generated/source/navigation-args/debug/com/sample/musicx/fragments/LibraryFragmentDirections.kt | iulian1990 | 223,891,769 | false | {"Java": 3095212, "Kotlin": 108675, "JavaScript": 42526, "HTML": 6620, "CSS": 1025, "Assembly": 18} | package com.sample.musicx.fragments
import android.os.Bundle
import android.os.Parcelable
import androidx.navigation.ActionOnlyNavDirections
import androidx.navigation.NavDirections
import com.sample.musicx.R
import com.sample.musicx.model.Album
import com.sample.musicx.model.Artist
import com.sample.musicx.model.Play... | 1 | null | 1 | 1 | a39ccd776719ea3f64390c25fd7cef6e6c836218 | 5,207 | MusicX | Apache License 2.0 |
app/src/main/java/com/example/androlearn/models/Component.kt | DSCKGEC | 356,861,006 | false | null | package com.example.androlearn.models
//class Component (
// var name: String = "",
//) | 7 | Kotlin | 11 | 5 | 2982e89325a7bccb24a3772fb4d11be9f80703a3 | 91 | AndroLearn | MIT License |
app/src/main/java/com/ethereal/flash/utils/GridMode.kt | Ethereal-OS | 743,186,045 | false | {"Kotlin": 254796} | /*
* SPDX-FileCopyrightText: 2022 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/
package com.ethereal.flash.utils
enum class GridMode {
OFF,
ON_3,
ON_4,
ON_GOLDEN_RATIO,
}
| 0 | Kotlin | 0 | 0 | b903d9547e022919dc18c591536c0873b824e0f8 | 209 | packages_apps_Flash | Apache License 2.0 |
app/src/main/java/com/chalkbox/propertyfinder/MainApplication.kt | RiversideOtters | 250,147,724 | false | null | package com.chalkbox.propertyfinder
import android.app.Application
import com.chalkbox.propertyfinder.api.firebase.remoteconfig.RemoteConfigListenerImplementation
import com.chalkbox.propertyfinder.application.componentfactory.AppComponentFactory
import com.chalkbox.propertyfinder.application.components.BaseComponent
... | 0 | Kotlin | 0 | 0 | 92c3be6363c19a68493fd91546e1bd373bc5ae82 | 1,115 | PropertyFinder-Android | MIT License |
api/src/main/kotlin/dev/bpmcrafters/processengineapi/task/TaskTerminationHandler.kt | bpm-crafters | 741,987,331 | false | {"Kotlin": 301216} | package dev.bpmcrafters.processengineapi.task
import java.util.function.Consumer
/**
* Handler that is invoked if the task is deleted after the task has been assigned to the task handler.
* @since 0.0.1
*/
fun interface TaskTerminationHandler : Consumer<String>
| 5 | Kotlin | 0 | 9 | aed20e7b2f656835dd2b4b52a89d13f409e5122a | 267 | process-engine-api | Apache License 2.0 |
app/src/main/java/com/example/moviedataapp/detail/MovieDetailFragment.kt | i-vishi | 335,276,020 | false | null | package com.example.moviedataapp.detail
import android.os.Build
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx... | 0 | Kotlin | 1 | 5 | 069b747741b1434bb6d27b7be67065e636767a11 | 2,478 | movie-data-android-app | MIT License |
Demos/Ktor/src/main/kotlin/com/groupdocs/ui/comparison/ktor/model/UploadResponse.kt | groupdocs-comparison | 65,550,714 | false | null | package com.groupdocs.ui.comparison.ktor.model
data class UploadResponse(
val guid: String
)
| 5 | null | 9 | 7 | 4d289958d8fc6ab338bbcfca8e82d237b71838be | 98 | GroupDocs.Comparison-for-Java | MIT License |
app/src/main/java/dev/sertan/android/videogames/data/model/Game.kt | scnplt | 419,744,023 | false | null | package dev.sertan.android.videogames.data.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@Entity(tableName = "game")
@JsonClass(generateAdapter = true)
internal data class Game(
@PrimaryKey var id: Int? = null,
var name: St... | 0 | Kotlin | 0 | 0 | 7c83c7e941cc06d0c87c7e360a4dbcbc63cfd348 | 587 | video-games | MIT License |
src/main/kotlin/com/theonlytails/lootgoblin/LootTables.kt | TheOnlyTails | 352,359,292 | false | null | package com.theonlytails.lootgoblin
import net.minecraft.world.level.storage.loot.LootPool
import net.minecraft.world.level.storage.loot.LootTable
import net.minecraft.world.level.storage.loot.providers.number.NumberProvider
/**
* Adds a new [LootPool.Builder] to a [LootTable.Builder].
*
* @param rolls the number ... | 0 | Kotlin | 3 | 3 | 4cb8971330b4eaf2f469939a6d1f9f5106f40f23 | 1,131 | LootGoblin | MIT License |
modo-compose/src/test/java/com/github/terrakok/modo/list/ListNavigationActionAddScreensTest.kt | ikarenkov | 336,628,876 | false | {"Kotlin": 247285} | package com.github.terrakok.modo.list
import com.github.terrakok.modo.MockScreen
import com.github.terrakok.modo.ScreenKey
import kotlin.test.Test
import kotlin.test.assertEquals
class ListNavigationActionAddScreensTest {
@Test
fun `When add screen to empty list - Then screen is added`() {
val screen... | 10 | Kotlin | 17 | 301 | 6dff8e7281e7a8a04bb19de997037192530f704a | 5,549 | Modo | The Unlicense |
src/main/kotlin/uk/gov/justice/digital/hmpps/prisonertransactionsapi/service/BarcodeService.kt | ministryofjustice | 402,475,274 | false | {"Kotlin": 60487, "Dockerfile": 1337} | package uk.gov.justice.digital.hmpps.prisonertransactionsapi.service
import org.springframework.stereotype.Service
import uk.gov.justice.digital.hmpps.prisonertransactionsapi.config.SecurityUserContext
import uk.gov.justice.digital.hmpps.prisonertransactionsapi.jpa.Barcode
import uk.gov.justice.digital.hmpps.prisonert... | 0 | Kotlin | 0 | 0 | aff2e993380f30888545c2eebeaac949ac477589 | 3,037 | prisoner-transactions-api | MIT License |
src/main/kotlin/com/example/hellokopring/domain/AccessToken.kt | KimSoungRyoul | 482,732,865 | false | null | package com.example.hellokopring.domain
import io.jsonwebtoken.Claims
data class AccessToken(
var accessTokenStr: String,
var payload: Claims,
)
| 0 | Kotlin | 0 | 0 | 191c4f213705f20a5b7457db9313053be3adb12c | 155 | HelloKopring | Apache License 2.0 |
smuggler-compiler/src/main/java/com/joom/smuggler/compiler/common/AccessExtensions.kt | nsk-mironov | 52,177,649 | false | null | package com.joom.smuggler.compiler.common
import org.objectweb.asm.Opcodes
internal val Int.isPublic: Boolean
get() = this and Opcodes.ACC_PUBLIC != 0
internal val Int.isPrivate: Boolean
get() = this and Opcodes.ACC_PRIVATE != 0
internal val Int.isProtected: Boolean
get() = this and Opcodes.ACC_PROTECTED != 0... | 4 | null | 6 | 202 | 8d0e5bbb61ae23d7024408b8adea8008f3556056 | 817 | smuggler | MIT License |
server/src/main/kotlin/com/thoughtworks/archguard/metrics/domain/coupling/ModuleCoupling.kt | archguard | 460,910,110 | false | {"Kotlin": 1540609, "Java": 593833, "TypeScript": 11395, "C#": 5593, "Dockerfile": 2263, "Shell": 926, "C": 696, "JavaScript": 400, "Go": 291, "Scala": 97, "Python": 42, "Rust": 32} | package com.thoughtworks.archguard.metrics.domain.coupling
import com.thoughtworks.archguard.code.module.domain.model.LogicModule
import org.nield.kotlinstatistics.median
class ModuleCoupling private constructor(
val logicModule: LogicModule,
val outerInstabilityAvg: Double,
val outerInstabilityMed: Doubl... | 3 | Kotlin | 86 | 557 | 92c0c8b577c7462b290e8fe89fa47d769ef98e64 | 1,387 | archguard | MIT License |
src/main/kotlin/org/abimon/revelation/locations/ExoticLocation.kt | UnderMybrella | 136,428,881 | false | {"Kotlin": 145680} | package org.abimon.revelation.locations
import org.abimon.revelation.DiceSet
sealed class ExoticLocation(val text: String) {
override fun toString(): String = text
object BRANCHES_TREE: ExoticLocation("Among the branches of a tree")
object GEYSER: ExoticLocation("Around a geyser")
object BEHIND_WATER... | 0 | Kotlin | 0 | 1 | d4ff3838bb84354bfa92108c77e6e069cbdc54eb | 1,749 | Revelation | The Unlicense |
src/main/kotlin/no/nav/syfo/rules/tilbakedateringSignatur/TilbakedateringSignaturRuleHit.kt | navikt | 158,395,714 | false | null | package no.nav.syfo.rules.tilbakedatering
import no.nav.syfo.model.Status
import no.nav.syfo.rules.common.RuleHit
enum class TilbakedateringRuleHit(
val ruleHit: RuleHit,
) {
INNTIL_8_DAGER(
ruleHit =
RuleHit(
rule = "INNTIL_8_DAGER",
status = Status.INVALID... | 1 | Kotlin | 2 | 0 | cc3991fda08e19a822c97b3bd8ddb367c9983ebb | 3,362 | syfosmregler | MIT License |
src/main/code/top/scalea/amss/core/encrypt/EncryptInterface.kt | scattered-leaves | 759,645,060 | false | {"Kotlin": 15934} | package top.scalea.amss.core.encrypt
interface EncryptInterface {
fun encrypt(data: ByteArray): ByteArray
} | 0 | Kotlin | 0 | 0 | b185bc00c662b61f12613ec7f23e5e188f9d5a29 | 112 | AutumnMinecraftSkinServer-Core | Apache License 2.0 |
app/src/main/java/net/squanchy/support/time/Timestamp.kt | squanchy-dev | 72,942,055 | false | null | package net.squanchy.support.time
import com.google.firebase.Timestamp
import org.threeten.bp.Instant
import org.threeten.bp.LocalDate
import org.threeten.bp.LocalDateTime
import org.threeten.bp.ZoneId
import org.threeten.bp.ZonedDateTime
fun Timestamp.toInstant(): Instant = Instant.ofEpochMilli(toDate().time)
fun T... | 0 | null | 45 | 298 | aa0909c327500f39fb65488baa62f7e4624837ea | 605 | squanchy-android | Apache License 2.0 |
tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/media/SendMediaGroup.kt | InsanusMokrassar | 163,152,024 | false | {"Kotlin": 2488825, "Shell": 373} | package dev.inmo.tgbotapi.extensions.api.send.media
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.send.media.*
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.media.*
import dev.inmo.tgbotapi.types.MessageId
import dev.inmo.tgbotapi.types.MessageThreadId
import... | 11 | Kotlin | 22 | 297 | 38d672b66538404b88d28275d2cb4b8cc3925c6b | 9,382 | ktgbotapi | Apache License 2.0 |
app/src/main/java/com/vonbrank/sunnyweather/logic/network/WeatherService.kt | vonbrank | 609,375,972 | false | null | package com.vonbrank.sunnyweather.logic.network
import com.vonbrank.sunnyweather.SunnyWeatherApplication
import com.vonbrank.sunnyweather.logic.model.DailyResponse
import com.vonbrank.sunnyweather.logic.model.RealtimeResponse
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path
interface Weather... | 0 | Kotlin | 0 | 0 | 96de636984b23c35b2549e24324db939988356dc | 704 | SunnyWeather-JetpackCompose | MIT License |
src/main/kotlin/no/nav/helseidnavtest/oppslag/adresse/AdresseRegisterWSAdapter.kt | navikt | 754,033,318 | false | {"Kotlin": 90466} | package no.nav.helseidnavtest.oppslag.adresse
import no.nav.helseidnavtest.error.IrrecoverableException
import no.nav.helseidnavtest.error.NotFoundException
import no.nav.helseidnavtest.error.RecoverableException
import no.nav.helseidnavtest.health.Pingable
import no.nav.helseidnavtest.oppslag.createPort
import no.nav.... | 0 | Kotlin | 0 | 0 | a6298962ed9df6f2388267cf7c1abf42df8afa68 | 1,891 | helseid-nav-test | MIT License |
src/main/kotlin/no/nav/helseidnavtest/oppslag/adresse/AdresseRegisterWSAdapter.kt | navikt | 754,033,318 | false | {"Kotlin": 90466} | package no.nav.helseidnavtest.oppslag.adresse
import no.nav.helseidnavtest.error.IrrecoverableException
import no.nav.helseidnavtest.error.NotFoundException
import no.nav.helseidnavtest.error.RecoverableException
import no.nav.helseidnavtest.health.Pingable
import no.nav.helseidnavtest.oppslag.createPort
import no.nav.... | 0 | Kotlin | 0 | 0 | a6298962ed9df6f2388267cf7c1abf42df8afa68 | 1,891 | helseid-nav-test | MIT License |
kotlin/493.Reverse Pairs(翻转对).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 an array <code>nums</code>, we call <code>(i, j)</code> an <b><i>important reverse pair</i></b> if <code>i < j</code> and <code>nums[i] > 2*nums[j]</code>.</p>
<p>You need to return the number of important reverse pairs in the given array.</p>
<p><b>Example1:</b>
<pre>
<b>Input</b>: [1,3,2,3,1]
<b>... | 0 | Python | 1 | 3 | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | 1,793 | leetcode | MIT License |
app/src/main/java/com/ascendcorp/androidtechpoc/screen/home/main/tab/HomeCFragment.kt | ascendcorp | 472,255,594 | false | null | package com.ascendcorp.androidtechpoc.screen.home.main.tab
import android.view.LayoutInflater
import android.view.ViewGroup
import com.ascendcorp.androidtechpoc.databinding.FragmentHomeCBinding
import com.ascendcorp.androidtechpoc.screen.navgraph.base.BaseFragment
class HomeCFragment : BaseFragment<FragmentHomeCBindi... | 0 | Kotlin | 1 | 4 | cf55b517c9d505fcfef9a3647315961810804f57 | 610 | android-tech-poc | MIT License |
src/main/kotlin/network/commercio/sdk/docs/CommercioDocHelper.kt | commercionetwork | 216,051,921 | false | null | package network.commercio.sdk.docs
import network.commercio.sacco.Wallet
import network.commercio.sdk.crypto.KeysHelper
import network.commercio.sdk.entities.docs.CommercioDoc
import network.commercio.sdk.entities.docs.EncryptedData
import network.commercio.sdk.entities.id.Did
import javax.crypto.SecretKey
/**
* All... | 17 | Kotlin | 1 | 2 | 0d40b844872d7159bce0b817fd1a1518b5943494 | 1,946 | commercio-sdk.kt | MIT License |
service/src/main/kotlin/org/railwaystations/rsapi/adapter/web/controller/DeprecatedApiController.kt | RailwayStations | 54,231,798 | false | {"Kotlin": 498604, "HTML": 8263, "Python": 1189, "Dockerfile": 400, "CSS": 126} | package org.railwaystations.rsapi.adapter.web.controller
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonTypeName
import jakarta.validation.Valid
import jakarta.validation.constraints.Size
import org.railwaystations.rsapi.adapter.web.RequestUtil
import org.railwaystatio... | 5 | Kotlin | 1 | 9 | c8752b356158b10fbb0865a627c1e6c3db19d585 | 7,559 | RSAPI | MIT License |
src/test/kotlin/no/nav/bidrag/grunnlag/consumer/SigrunConsumerTest.kt | navikt | 407,121,880 | false | {"Kotlin": 762284, "Dockerfile": 236, "Shell": 186} | package no.nav.bidrag.grunnlag.consumer
import no.nav.bidrag.commons.web.HttpHeaderRestTemplate
import no.nav.bidrag.grunnlag.TestUtil
import no.nav.bidrag.grunnlag.consumer.skattegrunnlag.SigrunConsumer
import no.nav.bidrag.grunnlag.consumer.skattegrunnlag.api.HentSummertSkattegrunnlagRequest
import no.nav.bidrag.gru... | 9 | Kotlin | 0 | 0 | f043678899d0156840ada796e105ab6269d6054c | 4,844 | bidrag-grunnlag | MIT License |
Software/app/src/main/java/com/lukael/oled_fpm/constant/DefaultConstants.kt | OISL-Yonsei | 343,607,213 | false | {"C++": 4394519, "Java": 2832984, "C": 353657, "CMake": 247892, "Kotlin": 230115, "Objective-C": 7449, "HTML": 6526, "Makefile": 4792, "AIDL": 995} | package com.lukael.oled_fpm.constant
const val TARGET_BUCKET = "OLED_FPM"
// rgb index
const val RED_IDX = 0
const val GREEN_IDX = 1
const val BLUE_IDX = 2
// codes for thread messaging
const val PROGRESS_1 = 1111
const val PROGRESS_2 = 2222
const val PROGRESS_3 = 3333
const val SHOW_RESULT = 4444
// permission cod... | 0 | C++ | 6 | 17 | e7bcf002e3536c9534498d48dcf5b406c5ee9e35 | 441 | Smartphone_FPM | MIT License |
project-system-gradle/testSrc/com/android/tools/idea/gradle/project/sync/hyperlink/SetSdkDirHyperlinkTest.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 3,589 | android | Apache License 2.0 |
app/src/main/java/com/mcdev/wun/MainScreen.kt | kojofosu | 332,765,835 | false | {"Kotlin": 9767, "Java": 1114} | package com.mcdev.wun
import android.graphics.Color
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.co... | 0 | Kotlin | 0 | 0 | 9254daad52625044fbf67866343d3e8c42f5243b | 4,681 | WhatsappUnsavedNumbers | Apache License 2.0 |
libraries/stdlib/jre8/src/kotlin/streams/Streams.kt | gigliovale | 89,726,097 | false | null | @file:JvmName("StreamsKt")
package kotlin.streams
import java.util.*
import java.util.stream.*
/**
* Creates a [Sequence] instance that wraps the original stream iterating through its elements.
*/
@SinceKotlin("1.1")
public fun <T> Stream<T>.asSequence(): Sequence<T> = Sequence { iterator() }
/**
* Creates a [Seq... | 1 | null | 4 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 1,846 | kotlin | Apache License 2.0 |
libraries/stdlib/jre8/src/kotlin/streams/Streams.kt | gigliovale | 89,726,097 | false | null | @file:JvmName("StreamsKt")
package kotlin.streams
import java.util.*
import java.util.stream.*
/**
* Creates a [Sequence] instance that wraps the original stream iterating through its elements.
*/
@SinceKotlin("1.1")
public fun <T> Stream<T>.asSequence(): Sequence<T> = Sequence { iterator() }
/**
* Creates a [Seq... | 1 | null | 4 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 1,846 | kotlin | Apache License 2.0 |
feed/src/test/java/com/abhat/feed/FeedRepositoryTest.kt | AnirudhBhat | 257,323,871 | false | {"Gradle": 9, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 7, "Batchfile": 1, "Markdown": 1, "INI": 5, "Proguard": 6, "Kotlin": 96, "XML": 86, "Java": 1, "YAML": 1} | package com.abhat.feed
import com.abhat.core.RedditApi
import com.abhat.core.SortType.SortType
import com.abhat.feed.data.FeedRepositoryImpl
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.verify
import kotlinx.coroutines.runBlocking
import org.junit.Test
/**
* Created by Anirudh Uppunda o... | 1 | null | 1 | 1 | 9036e653ed15d34241dcc5397efc687bae89328f | 2,368 | Reddit-client | Apache License 2.0 |
presentation/src/main/java/com/fredprojects/helloworld/presentation/features/pws/PWListItem.kt | FredNekrasov | 832,214,231 | false | {"Kotlin": 148702} | package com.fredprojects.features.pws.presentation
import android.content.res.Configuration.ORIENTATION_LANDSCAPE
import androidx.compose.foundation.layout.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Delete
import androidx.compose.material.MaterialTheme
import android... | 0 | Kotlin | 0 | 1 | b91002f5a2a07e6373bb30f424a72cd411886704 | 3,680 | jetpack-compose-projects | MIT License |
core/src/commonMain/kotlin/work/socialhub/kmisskey/api/NotesResource.kt | uakihir0 | 756,689,268 | false | {"Kotlin": 192223, "Ruby": 2188, "Shell": 1485, "Makefile": 315} | package misskey4j.api
import misskey4j.api.request.notes.*
import misskey4j.api.response.notes.*
import misskey4j.entity.share.Response
interface NotesResource {
/**
* 指定したユーザーのタイムラインを取得します。
* https://misskey.io/api-doc#operation/users/notes
*/
fun users(
request: UsersNotesRequest
... | 0 | Kotlin | 0 | 0 | 8f3b87a6e5529575a27d367cbc3597f499b6e7d8 | 4,018 | kmisskey | MIT License |
basicktest/src/main/java/com/mozhimen/basicktest/elemk/androidx/ElemKVBVMActivity.kt | mozhimen | 353,952,154 | false | null | package com.mozhimen.basicktest.elemk.androidx
import androidx.lifecycle.SavedStateViewModelFactory
import com.mozhimen.basick.elemk.androidx.appcompat.bases.databinding.BaseActivityVDBVM
import com.mozhimen.basicktest.databinding.ActivityElemkVbvmBinding
class ElemKVBVMActivity : BaseActivityVDBVM<ActivityElemkVbvmB... | 1 | null | 8 | 118 | 0827d9f88c83e7be5302b58a33584c226bd12742 | 526 | SwiftKit | Apache License 2.0 |
app/src/main/java/com/example/capitalcityquizktx/di/SurvivalViewModelModule.kt | JoseGbel | 236,566,370 | false | null | package com.example.capitalcityquizktx.di
import com.example.capitalcityquizktx.data.CountryRepository
import com.example.capitalcityquizktx.ui.survivalmode.SurvivalGameViewModel
import com.example.capitalcityquizktx.ui.survivalmode.SurvivalGameViewModelImpl
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx... | 0 | Kotlin | 0 | 0 | def161ef4a080dc388b09b0faa9dc648bae81690 | 945 | capital-city-quiz | Apache License 2.0 |
src/main/kotlin/App.kt | kogayushi | 222,180,622 | true | {"Kotlin": 6959} | import sample.AppConfig
import sample.PersonDaoImpl
fun main(args: Array<String>) {
val dao = PersonDaoImpl()
val tm = AppConfig.transactionManager
tm.required {
dao.create()
val person = dao.selectById(1)
println(person)
}
} | 0 | Kotlin | 0 | 1 | ce0bcf678f0f6591dcc982fa924f1791ee1201c9 | 266 | kotlin-sample | Apache License 2.0 |
htmlAnnotator-view/src/main/java/com/ravenl/htmlannotator/view/css/BackgroundColorCssSpannedHandler.kt | RavenLiao | 772,909,415 | false | {"Kotlin": 157383, "Swift": 594} | package com.ravenl.htmlannotator.view.css
import android.graphics.Color
import android.text.style.BackgroundColorSpan
import androidx.annotation.ColorInt
import com.ravenl.htmlannotator.view.HtmlSpanner.Companion.logger
import com.ravenl.htmlannotator.view.styler.SpannedStyler
open class BackgroundColorCssSpannedHand... | 0 | Kotlin | 0 | 3 | b60aec48b44be2cfefb797376a74f05c52a98bce | 1,242 | HtmlAnnotator | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.