path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/io/github/airdaydreamers/homebuttonhandler/HomeApplication.kt | vladislav-smirnov | 297,154,534 | false | null | package io.github.airdaydreamers.homebuttonhandler
import android.app.Application
import androidx.lifecycle.ViewModelStore
import androidx.lifecycle.ViewModelStoreOwner
class HomeApplication : Application(), ViewModelStoreOwner {
//region ViewModelStoreOwner
//TODO:Notes: This is not a good way. This is not a... | 0 | Kotlin | 0 | 1 | 6ec9046f8b260f293dd8c354e00ad82818cf290c | 679 | homebuttonhandler | Apache License 2.0 |
data/src/main/java/weather/data/AndroidPopulateCities.kt | weupz | 154,643,741 | false | {"Gemfile.lock": 1, "Gradle Kotlin DSL": 17, "Java Properties": 1, "Shell": 1, "Text": 5, "Ignore List": 1, "Batchfile": 1, "Markdown": 2, "Ruby": 2, "Proguard": 11, "Java": 17, "XML": 44, "Kotlin": 96, "INI": 1, "JSON": 1, "YAML": 2} | package weather.data
import android.content.Context
import com.squareup.moshi.JsonReader
import com.squareup.moshi.Moshi
import io.reactivex.Completable
import io.reactivex.functions.Action
import okio.GzipSource
import okio.Okio
import javax.inject.Inject
class AndroidPopulateCities @Inject constructor(
private ... | 3 | Kotlin | 1 | 0 | 560272ef568c6f83d3b377a67b8c7ef4ee203673 | 1,232 | weather | MIT License |
unit-simple-impl/src/main/kotlin/com/cosmoloj/kt/unit/simple/impl/SimpleDerivedUnit.kt | SamuelAndresPascal | 660,699,981 | false | {"Kotlin": 10931} | package com.cosmoloj.kt.unit.simple.impl
import com.cosmoloj.kt.unit.simple.api.DerivedUnit
import com.cosmoloj.kt.unit.simple.api.Factor
import com.cosmoloj.kt.unit.simple.api.UnitConverter
class SimpleDerivedUnit private constructor(
private val definition: List<Factor>
) : SimpleUnit(), DerivedUnit {
ove... | 0 | Kotlin | 0 | 0 | cc89a9ee464e2eac58337bb369513f185a879868 | 1,023 | cosmoloj-kt | The Unlicense |
compose-core/src/main/java/com/qmuiteam/compose/core/helper/LogTag.kt | Tencent | 88,970,564 | false | null | package com.qmuiteam.compose.core.helper
interface LogTag {
val TAG: String
get() = getTag(javaClass)
}
fun logTag(clazz: Class<*>): LogTag = object : LogTag {
override val TAG = getTag(clazz)
}
inline fun <reified T: Any> logTag(): LogTag = logTag(T::class.java)
private fun getTag(clazz: Class<*>):... | 424 | null | 2672 | 14,373 | 026e7d486677d6593a96689cd590ec3561176717 | 457 | QMUI_Android | Apache License 2.0 |
app/src/main/java/pl/droidsonroids/bugcatching/LocalizationActivity.kt | koral-- | 231,553,329 | false | null | package pl.droidsonroids.bugcatching
import android.os.Bundle
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
class LocalizationActivity : AppCompatActivity(R.layout.activity_localization) {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceStat... | 0 | Kotlin | 0 | 0 | 9673b1864f1b792d4fcb580af7b426478d1602cf | 446 | bugcatching | MIT License |
jvm-debugger/util/src/org/jetbrains/kotlin/idea/debugger/evaluate/compilation/CompiledDataDescriptor.kt | JetBrains | 278,369,660 | false | null | /*
* Copyright 2000-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.debugger.evaluate.compilation
import com.intellij.debugger.SourcePosition
i... | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 894 | intellij-kotlin | Apache License 2.0 |
composeApp/src/commonMain/kotlin/com/andruszkiewiczarturmobileeng/planyourprotocol/presentation/home/ProtocolRealizationType.kt | Andruszkiewicz-Artur | 839,051,811 | false | {"Kotlin": 130360, "Ruby": 2603, "Swift": 576} | package com.andruszkiewiczarturmobileeng.planyourprotocol.presentation.home
enum class ProtocolRealizationType {
Today,
CAD,
PNA,
CNA,
Canceled
} | 0 | Kotlin | 0 | 0 | 2af9a5b3fcdad1104eeac58e8f2d63d0336e0504 | 166 | Plan-your-protocol | MIT License |
libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/utils/androidPluginIds.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.gradle.utils
internal val androidPluginIds = listOf(
"com.android.applicatio... | 135 | null | 5074 | 40,992 | 57fe6721e3afb154571eb36812fd8ef7ec9d2026 | 569 | kotlin | Apache License 2.0 |
MVVM-WanAndroid/app/src/main/java/com/wlm/mvvm_wanandroid/datasource/square/SquareDataSourceFactory.kt | wangliming123 | 189,384,638 | false | null | package com.wlm.mvvm_wanandroid.datasource.square
import com.wlm.mvvm_wanandroid.base.paging.BaseDataSourceFactory
import com.wlm.mvvm_wanandroid.common.Article
import com.wlm.mvvm_wanandroid.viewmodel.SquareViewModel
class SquareDataSourceFactory(private val viewModel: SquareViewModel) : BaseDataSourceFactory<Squar... | 0 | Kotlin | 0 | 0 | 08cc0303d1d9badbbe877f85278f409326511bef | 432 | kotlinDemos | Apache License 2.0 |
android-navigator/src/com/android/tools/idea/navigator/nodes/ndk/includes/model/PackageKey.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | Kotlin | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,121 | android | Apache License 2.0 |
libs/arrow-meta/src/test/kotlin/arrow/meta/quotes/scope/plugins/LambdaExpressionsPlugin.kt | arrow-kt | 217,378,939 | false | null | package arrow.meta.quotes.scope.plugins
import arrow.meta.CliPlugin
import arrow.meta.Meta
import arrow.meta.invoke
import arrow.meta.phases.CompilerContext
import arrow.meta.quotes.Transform
import arrow.meta.quotes.lambdaExpression
open class LambdaExpressionsPlugin : Meta {
override fun intercept(ctx: CompilerCo... | 100 | Kotlin | 36 | 297 | 155df7a8d8dbe3433079fe171567b856503a159c | 619 | arrow-meta | Apache License 2.0 |
MoTrack/sdk-plugin-criteo/src/main/java/com/motrack/sdk/criteo/CriteoProduct.kt | motrackorg | 542,491,377 | false | null | package com.motrack.sdk.criteo
/**
* @author yaya (@yahyalmh)
* @since 07th December 2021
*/
class CriteoProduct(var price: Float, var quantity: Int, var productID: String) | 0 | Kotlin | 0 | 0 | c17229901ac6b1d10fc016297f6daefe8506b6c2 | 177 | AndroidSDK | MIT License |
foundation/impl/src/commonMain/kotlin/ru/kyamshanov/mission/foundation/impl/splash_screen/presentation/component/SplashScreenDComponent.kt | KYamshanov | 656,042,097 | false | {"Kotlin": 424932, "Batchfile": 2703, "HTML": 199} | package ru.kyamshanov.mission.foundation.impl.splash_screen.presentation.component
import com.arkivanov.decompose.ComponentContext
import com.arkivanov.essenty.instancekeeper.InstanceKeeper
import com.arkivanov.essenty.instancekeeper.getOrCreate
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispat... | 6 | Kotlin | 0 | 1 | 19ba9237ba59a1f52ca54b948647144d9d450902 | 2,291 | Mission-app | Apache License 2.0 |
app/src/main/java/dev/kdblib/kdbexemple/data/repository/resource/ResourceRepositoryImpl.kt | paulocns | 173,752,118 | false | null | package dev.kdblib.kdbexemple.data.repository.resource
import android.app.Application
import dev.kdblib.kdbexemple.R
/**
* Created by psato on 29/06/16.
*/
class ResourceRepositoryImpl(var devCampApplication: Application) : ResourceRepository {
override val notFoundShow: String
get() = devCampApplica... | 1 | null | 3 | 83 | 50cde00d9424f28650ad6f5a2359df8f339a75ea | 363 | kdb | Apache License 2.0 |
src/main/kotlin/no/nav/helse/flex/domain/soknadarbeidsgiver/SoknadArbeidsgiverRespons.kt | navikt | 475,306,289 | false | null | package no.nav.helse.flex.domain.soknadarbeidsgiver
import java.io.Serializable
import java.util.Collections.emptyList
data class SoknadArbeidsgiverRespons(
val narmesteLedere: List<Soknadrelasjon>? = null,
val humanResources: List<Soknadrelasjon> = emptyList(),
) : Serializable
| 8 | null | 0 | 4 | 9621f69b34eef0347b085aeaf7a32313f8378a44 | 290 | sykepengesoknad-backend | MIT License |
opencola-server/relay/common/src/main/kotlin/io/opencola/relay/common/message/v2/Challenge.kt | johnmidgley | 441,008,781 | false | {"Kotlin": 1130580, "Java": 851281, "Dart": 181759, "Clojure": 111662, "CSS": 61393, "HTML": 42666, "Shell": 17124, "Swift": 14391, "JavaScript": 10218, "PowerShell": 8360, "Ruby": 1586, "Dockerfile": 654, "Objective-C": 38} | /*
* Copyright 2024 OpenCola
*
* 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 ... | 16 | Kotlin | 1 | 3 | 2fd637c1e17db537aae3ba3852ddc09e1d1e6387 | 1,704 | opencola | Apache License 2.0 |
lint/src/main/java/com/bael/cross/lint/registry/CrossIssueRegistry.kt | ErickSumargo | 308,520,146 | false | null | package com.bael.cross.lint.registry
import com.android.tools.lint.client.api.IssueRegistry
import com.android.tools.lint.detector.api.CURRENT_API
import com.android.tools.lint.detector.api.Issue
import com.bael.cross.lint.issue.ISSUE_DESTRUCTURING_DECLARATION
import com.bael.cross.lint.issue.ISSUE_INIT_BLOCK
import c... | 10 | Kotlin | 1 | 3 | 89a4a091141da43bc20cd3f4c892a1600f5218ed | 1,251 | Cross | MIT License |
buildSrc/src/main/java/version.kt | D10NGYANG | 378,832,800 | false | {"Kotlin": 207661} | // android
const val android_compile_sdk = 34
const val android_min_sdk = 26
const val android_target_sdk = 30
const val android_build_ver = "8.4.1"
const val androidx_core_ver = "1.13.1"
// kotlin
const val kotlin_ver = "2.0.0"
const val ksp_ver = "2.0.0-1.0.21"
// kotlin ex
const val kotlin_coroutines_ver = "1.8.0"... | 0 | Kotlin | 0 | 0 | bedc815c5461dfc237dcf9987e70054de45126be | 493 | DLAppUtil | MIT License |
blescanner/src/androidTest/java/org/sorz/lab/blescanner/ExampleInstrumentedTest.kt | sorz | 218,219,556 | false | null | package org.sorz.lab.blescanner
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documen... | 0 | Kotlin | 0 | 3 | 0bae0b8b3acda59ec04feb3ac7738f5732ec1883 | 678 | blescanner | MIT License |
kotlin-json/src/main/kotlin/com/baeldung/kotlin/nodataclass/GsonGenericMapSerDes.kt | Baeldung | 260,481,121 | false | null | package com.baeldung.kotlin.nodataclass
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
object GsonGenericMapSerDes : JsonSerDes<Map<String, Any?>> {
private val gson = Gson()
private val mapAdapter = gson.getAdapter(object : TypeToken<Map<String, Any?>>() {})
override fun toJson(i... | 14 | null | 6 | 465 | f1ef5d5ded3f7ddc647f1b6119f211068f704577 | 483 | kotlin-tutorials | MIT License |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/appconfig/internal/ApplicationConfigurationInvalidException.kt | HogoDorn | 325,298,507 | true | {"Gradle": 4, "JSON": 15, "CODEOWNERS": 1, "Java Properties": 1, "Markdown": 11, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "EditorConfig": 1, "Proguard": 1, "YAML": 4, "XML": 385, "Kotlin": 829, "Java": 3, "Checksums": 2, "HTML": 7, "JAR Manifest": 1, "Protocol Buffer": 28, "Groovy": 1, "SVG": ... | package de.rki.coronawarnapp.appconfig.internal
import de.rki.coronawarnapp.exception.reporting.ErrorCodes
import de.rki.coronawarnapp.exception.reporting.ReportedException
class ApplicationConfigurationInvalidException(
cause: Exception? = null,
message: String? = null
) : ReportedException(
code = Error... | 0 | null | 0 | 0 | 715c30ad482301594b77a003ce870f5997302541 | 409 | cwa-app-android | Apache License 2.0 |
presentation/src/main/java/com/no1/taiwan/stationmusicfm/features/main/mymusic/MyMusicIndexFragment.kt | SmashKs | 168,842,876 | false | null | /*
* Copyright (C) 2019 The Smash Ks Open Project
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | 0 | Kotlin | 1 | 5 | 696fadc54bc30fe72f9115bdec2dacdac8cd4394 | 7,541 | StationMusicFM | MIT License |
src/main/kotlin/com/github/avrokotlin/avro4k/records.kt | avro-kotlin | 194,962,508 | false | null | package com.sksamuel.avro4k
import org.apache.avro.Schema
import org.apache.avro.generic.GenericRecord
import org.apache.avro.specific.SpecificRecord
/**
* An implementation of [org.apache.avro.generic.GenericContainer] that implements
* both [GenericRecord] and [SpecificRecord].
*/
interface Record : GenericRecor... | 27 | null | 36 | 187 | f550163d19c60a1071df84f5c9671cb9e35364f4 | 1,311 | avro4k | Apache License 2.0 |
type-alias-fun/src/main/kotlin/MainKT.kt | diegopacheco | 278,523,314 | false | {"Kotlin": 83246, "Shell": 5681, "Java": 5544, "Mustache": 114} | data class Item(val name: String, val price: Double)
typealias Cart = MutableMap<Item, Int>
fun main() {
val cart: Cart = mutableMapOf(
Item("apple", 0.99) to 2,
Item("banana", 0.79) to 3,
Item("orange", 0.69) to 1
)
println(cart)
val newItem = Item("pear", 1.29)
cart[newIt... | 1 | Kotlin | 1 | 1 | 3684a3c1c8d043d5678accba3ee19aca11f12c94 | 349 | kotlin-playground | The Unlicense |
vico/views/src/main/java/com/patrykandpatrick/vico/views/theme/TextComponentStyleExtensions.kt | patrykandpatrick | 338,848,755 | false | null | /*
* Copyright 2022 by <NAME> and <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 ... | 23 | null | 81 | 978 | 3e24d5d78b35b51eb186dbedcae4d81101fd1b9d | 7,051 | vico | Apache License 2.0 |
keel-web/src/test/kotlin/com/netflix/spinnaker/keel/rest/ResourceControllerTests.kt | runlevel-six | 248,825,699 | true | {"Kotlin": 1350979, "Java": 9170, "Shell": 2086} | package com.netflix.spinnaker.keel.rest
import com.netflix.spinnaker.keel.KeelApplication
import com.netflix.spinnaker.keel.api.id
import com.netflix.spinnaker.keel.diff.AdHocDiffer
import com.netflix.spinnaker.keel.persistence.memory.InMemoryResourceRepository
import com.netflix.spinnaker.keel.spring.test.MockEurekaC... | 0 | Kotlin | 0 | 0 | c9cdf65d57826469e599edf6dee93d32f7ce31aa | 4,403 | keel | Apache License 2.0 |
kibaan/src/test/java/kibaan/android/extension/CGFloatTest.kt | Kibaan | 160,439,455 | false | null | package kibaan.android.extension
import kibaan.android.ios.CGFloat
import kibaan.android.ios.nan
import org.junit.Assert
import org.junit.Assert.assertEquals
import org.junit.Test
class CGFloatTest {
@Test
fun testStringValue() {
val f = 123.45
Assert.assertEquals("123.450000", f.stringValue)... | 1 | Kotlin | 1 | 1 | 883d30c546a05667008fff9806371f0bf6001cfa | 670 | Android-Kibaan | Apache License 2.0 |
compiler/testData/diagnostics/tests/multiplatform/scopes/expectFunInterface.ll.kt | JetBrains | 3,432,266 | false | {"Kotlin": 78963920, "Java": 6943075, "Swift": 4063829, "C": 2609498, "C++": 1947933, "Objective-C++": 170573, "JavaScript": 106044, "Python": 59695, "Shell": 32949, "Objective-C": 22132, "Lex": 21352, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // LANGUAGE: +MultiPlatformProjects
// ISSUE: KT-58845
// MODULE: common
// FILE: common.kt
expect fun interface F1 {
fun foo()
}
expect <!FUN_INTERFACE_WRONG_COUNT_OF_ABSTRACT_MEMBERS!>fun<!> interface F2
expect fun interface F3 {
fun foo()
}
<!EXPECT_ACTUAL_INCOMPATIBILITY{JVM}!>expect fun interface F4 {
... | 184 | Kotlin | 5691 | 48,625 | bb25d2f8aa74406ff0af254b2388fd601525386a | 996 | kotlin | Apache License 2.0 |
app/src/test/java/com/filip/cryptoViewer/api/CoinPaprikaApiTest.kt | filipus959 | 852,338,147 | false | {"Kotlin": 131654} | package com.filip.cryptoViewer.api
import com.filip.cryptoViewer.data.remote.CoinPaprikaApi
import com.filip.cryptoViewer.data.remote.dto.CoinChartDtoItem
import com.filip.cryptoViewer.data.remote.dto.CoinDetailDto
import com.filip.cryptoViewer.data.remote.dto.CoinDto
import com.filip.cryptoViewer.data.remote.dto.Coin... | 0 | Kotlin | 0 | 0 | 292eff37a8bb7d659cf39bd7f0d24a49e77f9795 | 9,084 | CryptoViewer | Apache License 2.0 |
client/slack-api-client/src/main/kotlin/com/kreait/slack/api/group/users/UserConversationsMethod.kt | raphaeldelio | 342,576,196 | true | {"Kotlin": 923419, "Shell": 654} | package com.kreait.slack.api.group.users
import com.kreait.slack.api.contract.jackson.group.users.ConversationsRequest
import com.kreait.slack.api.contract.jackson.group.users.ErrorConversationsResponse
import com.kreait.slack.api.contract.jackson.group.users.SuccessfulConversationsResponse
import com.kreait.slack.api... | 0 | null | 0 | 0 | d2eb88733f0513665b8a625351b599feba926b69 | 666 | slack-spring-boot-starter | MIT License |
processor/src/main/kotlin/org/codepond/roomprovider/RoomProviderProcessor.kt | k9998fuck | 276,862,853 | false | {"Kotlin": 23850} | package org.codepond.roomprovider
import com.google.auto.common.BasicAnnotationProcessor
import com.google.auto.common.MoreElements
import com.google.auto.service.AutoService
import com.google.common.collect.SetMultimap
import org.codepond.roomprovider.contract.ContractWriter
import org.codepond.roomprovider.contract.... | 0 | Kotlin | 1 | 0 | 7407101bf5b7e6dd54f821f9cd966c7de3534fda | 1,983 | roomprovider | Apache License 2.0 |
app/src/main/java/com/schaefer/mymovies/domain/model/ListEpisodeDomain.kt | arturschaefer | 318,792,328 | false | {"Kotlin": 160961} | package com.schaefer.mymovies.domain.model
data class ListEpisodeDomain(val listOfEpisodes: List<EpisodeDomain>) | 0 | Kotlin | 0 | 0 | a2580e6020ef40b2efbbafd95c3e5db7ab3b1bb3 | 113 | My-Shows | MIT License |
BachelorThesis/app/src/main/java/com/diana/bachelorthesis/viewmodel/ItemChoiceViewModel.kt | DianaIfrosa | 603,042,578 | false | {"Kotlin": 514096} | package com.diana.bachelorthesis.viewmodel
import androidx.lifecycle.ViewModel
import com.diana.bachelorthesis.model.*
import com.diana.bachelorthesis.repository.ChatRepository
import com.diana.bachelorthesis.repository.ItemRepository
import com.diana.bachelorthesis.repository.ProposalRepository
import com.diana.bache... | 0 | Kotlin | 0 | 0 | 5521213fa092114c3ff97434304204b30dd55b12 | 5,074 | Swap-Android-app | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bold/Frame1.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.co... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 3,055 | VuesaxIcons | MIT License |
app/src/main/kotlin/me/dmmax/alfred/gitbook/App.kt | dmmax | 433,724,805 | false | {"Kotlin": 11501} | package me.dmmax.alfred.gitbook
import me.dmmax.alfred.gitbook.database.DatabaseInitialization
import me.dmmax.alfred.gitbook.links.LinksSingletons
fun main(args: Array<String>) {
initDb()
when (val command = args[0]) {
"update" -> {
updateLinks()
}
"find" -> {
... | 0 | Kotlin | 0 | 3 | 751d203128d6b7c83b201a1c872b1a9920ef24c1 | 844 | alfred-gitbook | MIT License |
domain/src/main/java/com/naeggeodo/domain/utils/ChatDetailType.kt | naeggeodo | 503,673,565 | false | null | package com.naeggeodo.domain.utils
enum class ChatDetailType {
TEXT,
IMAGE,
WELCOME,
EXIT,
CNT,
BAN,
ALERT,
SYSTEM
} | 1 | Kotlin | 1 | 0 | 7dd8903cd1042a11fd43e5f6a76fe212cc5013fc | 149 | naeggeodo-android | MIT License |
app/src/main/java/com/rewardtodo/presentation/settings/UserListAdapter.kt | mattrob33 | 241,623,871 | false | null | package com.rewardtodo.presentation.settings
import android.graphics.*
import android.os.Build
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import android... | 0 | Kotlin | 0 | 0 | eefb7aade1c43be3e32dedc83bffb6145fcc37e1 | 3,337 | reward | Apache License 2.0 |
app/src/main/java/com/daineey/vita_log/constants/Constants.kt | VITA-LOG | 652,340,267 | false | {"Kotlin": 142599} | package com.daineey.vita_log.constants
const val openAIApiKey = ""
const val urlToImageAppIcon = "https://res.cloudinary.com/apideck/image/upload/v1672442492/marketplaces/ckhg56iu1mkpc0b66vj7fsj3o/listings/-4-ans_frontend_assets.images.poe.app_icon.png-26-8aa0a2e5f237894d_tbragv.png"
const val urlToImageAuthor = "htt... | 0 | Kotlin | 5 | 8 | 1bbc6e5ab384c85296b16218491240e34dee6c4e | 556 | VITA-LOG | Apache License 2.0 |
app/src/main/java/com/app/montra/data/remote/dto/ResetPasswordResponseDto.kt | nyamwaya | 568,413,595 | false | {"Kotlin": 71461} | package com.app.montra.data.remote.dto
data class ResetPasswordResponseDto(
val email_id: String,
val request_id: String,
val status_code: Int,
val user_id: String
) | 0 | Kotlin | 0 | 0 | 08d69c9a439a43a2045dc3dab0eb212710b005e6 | 182 | montra | Apache License 2.0 |
src/main/kotlin/com/sbrati/spring/boot/starter/kotlin/telegram/handler/update/UpdateHandler.kt | rastiehaiev | 247,459,311 | false | null | package com.sbrati.spring.boot.starter.kotlin.telegram.handler.update
import com.sbrati.spring.boot.starter.kotlin.telegram.command.Context
import com.github.kotlintelegrambot.entities.Update
abstract class UpdateHandler<T : Context> {
abstract fun isApplicable(update: Update, progress: T): Boolean
abstract... | 0 | Kotlin | 0 | 0 | 790206a088286766f1061a4ea836ce1c68daff86 | 367 | spring-boot-starter-kotlin-telegram | MIT License |
definitions/src/main/kotlin-gen/xyz/urbanmatrix/mavlink/definitions/common/ChangeOperatorControl.kt | urbanmatrix | 484,943,163 | false | null | package xyz.urbanmatrix.mavlink.definitions.common
import java.nio.ByteBuffer
import java.nio.ByteOrder
import kotlin.ByteArray
import kotlin.Int
import kotlin.String
import kotlin.Unit
import xyz.urbanmatrix.mavlink.api.GeneratedMavField
import xyz.urbanmatrix.mavlink.api.GeneratedMavMessage
import xyz.urbanmatrix.ma... | 1 | Kotlin | 4 | 9 | 8f480256eeaac5755a2ce5582c338a4b30c7e178 | 3,980 | mavlink-kotlin | Apache License 2.0 |
app/src/main/java/com/app/di/annotations/DataBinding.kt | yash786agg | 197,660,329 | false | null | package com.app.di.annotations
import javax.inject.Scope
@Scope
@MustBeDocumented
@kotlin.annotation.Retention(AnnotationRetention.RUNTIME)
annotation class DataBinding | 1 | Kotlin | 10 | 33 | 7ce772d9919f4ed247e5002607c35dbb317d528b | 170 | PagingKotlin | Apache License 2.0 |
app/src/main/java/com/example/bachelor_work/utils/ToolBarHelper.kt | OroszVision | 781,943,673 | false | {"Kotlin": 137724} | package com.example.bachelor_work.utils
import android.content.Context
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.example.bachelor_work.R
import c... | 0 | Kotlin | 0 | 0 | c54935dd0c726b4c644aaccd913791b3bf0a4553 | 3,817 | Bachelor_Work | MIT License |
zowe-core-for-zowe-sdk/src/jsMain/kotlin/zowe/sdk/core/rest/doc/IHeaderContent.kt | lppedd | 761,812,661 | false | {"Kotlin": 1887051} | package zowe.sdk.core.rest.doc
/**
* Interface to add index signature to http headers
*/
// TODO(Edoardo): is this one right? How do I instantiate it?
external interface IHeaderContent {
@seskar.js.JsNative
operator fun get(key: String): String?
@seskar.js.JsNative
operator fun set(
key: String,
val... | 0 | Kotlin | 0 | 3 | 0f493d3051afa3de2016e5425a708c7a9ed6699a | 339 | kotlin-externals | MIT License |
graphics/src/main/kotlin/matt/fx/graphics/wrapper/node/parent/parent.kt | mgroth0 | 497,866,693 | false | null | package matt.fx.graphics.wrapper.node.parent
import javafx.scene.Parent
import matt.fx.base.wrapper.obs.collect.list.createImmutableWrapper
import matt.fx.base.wrapper.obs.obsval.toNullableROProp
import matt.fx.graphics.service.wrapped
import matt.fx.graphics.wrapper.node.NodeWrapper
import matt.fx.graphics.wrapper.no... | 0 | Kotlin | 0 | 0 | b5f70ed7894f9e6aab044abcc85defc6a6e1e47e | 2,844 | fx | MIT License |
app/src/main/java/com/maximmakarov/comparator/domain/interactor/ITemplateInteractor.kt | makarov-nsk | 143,522,419 | false | null | package com.maximmakarov.comparator.domain.interactor
import androidx.lifecycle.LiveData
import com.maximmakarov.comparator.data.model.Template
interface ITemplateInteractor {
fun getTemplates(): LiveData<List<Template>>
fun getTemplateById(templateId: Int): LiveData<Template>
fun addTemplate(name: St... | 9 | Kotlin | 0 | 1 | a7c0cc20318a73a51ee9f58e359cc80c88a79ddc | 402 | comparator | MIT License |
src/main/kotlin/ru/tikhonovdo/enrichment/service/importscenario/ScenarioState.kt | tikhonovdo | 578,711,174 | false | {"Kotlin": 241895, "Java": 11245, "HTML": 6016, "JavaScript": 4528, "Dockerfile": 643} | package ru.tikhonovdo.enrichment.service.importscenario
enum class ScenarioState(val weight: Int) {
INITIAL(0),
OTP_SENT(1),
LOGIN_SUCCEED(2),
DATA_SAVED(3),
FAILURE(4),
DESTROYED(Int.MAX_VALUE);
} | 0 | Kotlin | 0 | 0 | b28476fc5254ff0460db703a639a64b8a6cd85da | 224 | enrichment | MIT License |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/crypto/bulk/Ethereum.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.crypto.bulk
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import andr... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 4,678 | VuesaxIcons | MIT License |
src/main/kotlin/tech/kaxon/projects/bot/commands/CmdChatFilter.kt | kaxlabs | 298,455,167 | false | null | package tech.kaxon.projects.bot.commands
import net.dv8tion.jda.api.events.message.MessageReceivedEvent
import tech.kaxon.projects.bot.commands.managers.Command
import tech.kaxon.projects.bot.utils.UtilEmbed
class CmdChatFilter : Command("chatfilter", "<none>", "Toggle the chat filter on or off (default: on).") {
... | 0 | Kotlin | 0 | 0 | c4b41e87df5d0240180926b9abdf20fdd8d50cd1 | 817 | discord-sbs-bot | Creative Commons Zero v1.0 Universal |
src/main/kotlin/com/core/util/Colorlet.kt | nitrochange | 493,994,080 | false | {"Kotlin": 66136} | package com.core.util
import com.core.tikz.commands.Command
public class Colorlet(val colorname: String, params: MutableList<String>): Command(name = "\\colorlet", params = params) {
override fun toTex(): String = name + "{${colorname}}" + params.joinToString("!", "{", "}") + ";"
} | 0 | Kotlin | 0 | 0 | 3c07aae0e01b7fcf953f830ad7f56488272d1da5 | 290 | editor | Apache License 2.0 |
browser-kotlin/src/jsMain/kotlin/webrtc/RTCRtpSender.kt | karakum-team | 393,199,102 | false | null | // Automatically generated - do not modify!
package webrtc
import js.core.Void
import web.media.streams.MediaStream
import web.media.streams.MediaStreamTrack
import kotlin.js.Promise
sealed external class RTCRtpSender {
val dtmf: RTCDTMFSender?
val track: MediaStreamTrack?
val transport: RTCDtlsTransport... | 0 | Kotlin | 6 | 22 | 00321b7e81352bc3d7243dd6631e1fb178f528c8 | 692 | types-kotlin | Apache License 2.0 |
app/src/main/java/com/manish/shopnow/model/CheckStatus.kt | YadavYashvant | 809,385,313 | false | {"Kotlin": 130178} | package com.manish.shopnow.model
data class CheckStatus(
val code: String,
val message: String,
val success: Boolean
)
| 0 | Kotlin | 0 | 0 | 2358371aa3fb94564146dfa73b0921dc7304f4af | 132 | Shop_Now | Apache License 2.0 |
src/main/kotlin/ru/greenpix/monitoring/service/impl/EmailServiceImpl.kt | GreenpixDev | 617,091,832 | false | null | package ru.greenpix.monitoring.service.impl
import io.jsonwebtoken.Claims
import io.jsonwebtoken.JwtParser
import io.jsonwebtoken.Jwts
import io.jsonwebtoken.security.Keys
import jakarta.mail.internet.InternetAddress
import kotlinx.coroutines.*
import org.springframework.mail.javamail.JavaMailSender
import org.springf... | 0 | Kotlin | 0 | 0 | 690943a96b0f8b3822dc70c132bf4841d46bf410 | 3,312 | MonitoringBackend | Apache License 2.0 |
app/src/main/java/com/na/dgsw/gongyou_android/data/repository/FileRepository.kt | agvx124 | 256,236,304 | false | {"Kotlin": 66985} | package com.na.dgsw.gongyou_android.data.repository
import com.na.dgsw.gongyou_android.domain.entity.Response
import com.na.dgsw.gongyou_android.domain.entity.file.request.FileRequest
import com.na.dgsw.gongyou_android.domain.entity.file.response.FileResponse
import io.reactivex.Single
/**
* Created by NA on 2020-1... | 0 | Kotlin | 1 | 0 | c49a8fb1c6024c9f129e2b65b0bcf39bd001aca0 | 559 | GongYou_Android | Apache License 2.0 |
app/src/main/java/com/dreamsoftware/fitflextv/domain/model/SubscriptionBO.kt | sergio11 | 534,529,261 | false | null | package com.dreamsoftware.melodiqtv.domain.model
data class SubscriptionBO(
val id: String,
val periodTime: String,
val price: String,
) | 0 | null | 3 | 40 | 4452dcbcf3d4388144a949c65c216de5547c82a6 | 149 | fitflextv_android | Apache License 2.0 |
app/shared-common/src/commonTest/kotlin/com/gmail/jiangyang5157/shared/common/data/math/Vector2iTest.kt | jiangyang5157 | 553,993,370 | false | {"Kotlin": 716721, "Shell": 85} | package com.gmail.jiangyang5157.kit.math
import kotlin.test.assertEquals
import kotlin.test.assertNotEquals
import kotlin.test.assertTrue
/**
* Created by <NAME> on April 24, 2018
*/
class Vector2iTest {
@org.junit.Test
fun test_constructor() {
val empty = Vector2i()
assertEquals(0, empty.... | 0 | Kotlin | 0 | 0 | 8a0acaf313574cb40f8fa1c35e176d9ec69d0401 | 2,366 | kotlin-multiplatform-mobile | MIT License |
save-backend/src/test/kotlin/com/saveourtool/save/backend/controller/TestExecutionControllerTest.kt | saveourtool | 300,279,336 | false | null | package com.saveourtool.save.backend.controller
import com.saveourtool.save.agent.TestExecutionDto
import com.saveourtool.save.agent.TestExecutionExtDto
import com.saveourtool.save.agent.TestExecutionResult
import com.saveourtool.save.agent.TestSuiteExecutionStatisticDto
import com.saveourtool.save.authservice.utils.A... | 201 | null | 3 | 38 | e101105f8e449253d5fbe81ece2668654d08639f | 10,458 | save-cloud | MIT License |
src/main/kotlin/lean4ij/actions/ToggleLeanInfoViewInternal.kt | onriv | 815,545,367 | false | {"Kotlin": 214596, "CSS": 178544, "Lex": 13636, "TypeScript": 9595, "Python": 1638, "ANTLR": 1470, "HTML": 685, "JavaScript": 436} | package lean4ij.actions
import com.intellij.ide.BrowserUtil
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.components.service
import lean4ij.infoview.LeanInfoViewWindowFactory
import lean4ij.infoview.external.JcefInfoviewService
impo... | 8 | Kotlin | 0 | 5 | 41feb47544d21e71876d0e7db22eff94a97e6cc7 | 2,416 | lean4ij | Apache License 2.0 |
kotlin-quick-start-guide/kotlin-basic/kotlin-local-variables/src/main/kotlin/App.kt | phamvmhoang | 154,031,875 | false | null | fun immutabble(){
val name: String = "Kotlin"
// name = "groovy"
val test: Boolean
if (true){
test = true
} else {
test = false
}
println(test)
}
fun mutable(){
var name : String = "Kotlin"
name = "java"
}
fun main(args: Array<String>) {
immutabble();
} | 0 | Kotlin | 0 | 0 | 7e6196768a6a62827110b868070db9e120068b8e | 311 | kotlin | MIT License |
base/src/main/java/jp/juggler/util/ui/UiUtils.kt | tateisu | 89,120,200 | false | null | package jp.juggler.util.ui
import android.app.Activity
import android.content.Context
import android.content.DialogInterface
import android.content.Intent
import android.content.res.ColorStateList
import android.content.res.TypedArray
import android.graphics.Color
import android.graphics.ColorFilter
import android.gra... | 37 | null | 24 | 238 | f20f9fee8ef29bfcbba0f4c610ca8c2fb1c29d4f | 11,703 | SubwayTooter | Apache License 2.0 |
base/src/main/java/jp/juggler/util/ui/UiUtils.kt | tateisu | 89,120,200 | false | null | package jp.juggler.util.ui
import android.app.Activity
import android.content.Context
import android.content.DialogInterface
import android.content.Intent
import android.content.res.ColorStateList
import android.content.res.TypedArray
import android.graphics.Color
import android.graphics.ColorFilter
import android.gra... | 37 | null | 24 | 238 | f20f9fee8ef29bfcbba0f4c610ca8c2fb1c29d4f | 11,703 | SubwayTooter | Apache License 2.0 |
sample-compose/src/androidMain/kotlin/com.chrynan.chords.sample.compose/MainActivity.kt | chRyNaN | 51,400,387 | false | null | package com.chrynan.chords.sample.compose
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import com.chrynan.chords.model.Chord
import com.chrynan.chords.util.getChord
import com.chrynan.chords.util.putChord
import kotlinx.serialization.json.Json
imp... | 0 | Kotlin | 5 | 28 | 5a2e21c9b4789c878f0459e3d5c6fcfcbc66658d | 947 | chords | Apache License 2.0 |
conventions/src/main/kotlin/AndroidConvention.kt | DenisGithuku | 831,438,141 | false | {"Kotlin": 67780} | object AndroidConvention {
// parent
val application = "botan.convention.application"
val library = "botan.convention.library"
val hilt = "botan.convention.hilt"
// child
val module = "botan.convention.module"
val feature = "botan.convention.feature"
object Compose {
const val ... | 0 | Kotlin | 0 | 0 | 6752ac3137d0dec2e272306f775fe7018bbd6544 | 443 | Botan | Apache License 2.0 |
test-suite-kotlin/src/test/kotlin/io/micronaut/docs/annotation/requestattributes/RequestAttributeSpec.kt | swanandvk | 295,730,530 | true | {"Java": 8459831, "Groovy": 3832488, "Kotlin": 402935, "Shell": 31796, "HTML": 143} | package io.micronaut.docs.annotation.requestattributes
import io.kotlintest.shouldBe
import io.kotlintest.shouldNotBe
import io.kotlintest.specs.StringSpec
import io.micronaut.context.ApplicationContext
import io.micronaut.http.client.RxHttpClient
import io.micronaut.runtime.server.EmbeddedServer
import org.junit.Asse... | 0 | null | 0 | 1 | 8c6c499ccf68085ccd2b303092c82c1444ae022d | 1,126 | micronaut-core | Apache License 2.0 |
bot/storage-mongo/target/generated-sources/kapt/compile/ai/tock/bot/mongo/DialogFlowStateCol_Serializer.kt | theopenconversationkit | 84,538,053 | false | null | package ai.tock.bot.mongo
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.databind.SerializerProvider
import com.fasterxml.jackson.databind.module.SimpleModule
import com.fasterxml.jackson.databind.ser.std.StdSerializer
import org.litote.jackson.JacksonModuleServiceLoader
internal class D... | 163 | null | 127 | 475 | 890f69960997ae9146747d082d808d92ee407fcb | 2,017 | tock | Apache License 2.0 |
src/commonTest/kotlin/de/westnordost/osm_opening_hours/parser/StringWithCursorTest.kt | westnordost | 749,898,969 | false | {"Kotlin": 159281} | package de.westnordost.osm_opening_hours.parser
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
import kotlin.test.assertFalse
import kotlin.test.assertTrue
class StringWithCursorTest {
@Test fun advance() {
val x = StringWithCursor("ab")
assertEquals(0, ... | 0 | Kotlin | 0 | 7 | d50f0ef463d7f4d1fbc0b9489db04bef9a4cc88c | 6,101 | osm-opening-hours | MIT License |
app/src/main/java/com/example/marsphotos/data/MarsPhotosRepository.kt | Cesarpratama | 716,410,409 | false | {"Kotlin": 34037} | /*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Kotlin | 0 | 0 | a564dbe250f856edb1ac09e584c2c08a04443fd1 | 1,288 | marsphoto | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/melding/kafka/domain/KafkaMeldingFraBehandlerDTO.kt | navikt | 602,146,320 | false | {"Kotlin": 404554, "Dockerfile": 226} | package no.nav.syfo.melding.kafka.domain
import java.time.OffsetDateTime
data class KafkaMeldingFraBehandlerDTO(
val uuid: String,
val personIdent: String,
val type: String,
val conversationRef: String,
val parentRef: String?,
val msgId: String?,
val tidspunkt: OffsetDateTime,
val beha... | 3 | Kotlin | 0 | 0 | 5cf87000d5a2970514473f63fb44f03b2edc8dd5 | 349 | isbehandlerdialog | MIT License |
src/main/java/org/tokend/sdk/api/tfa/TfaApi.kt | TamaraGambarova | 291,018,574 | true | {"Gradle": 2, "Markdown": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Text": 1, "INI": 1, "Kotlin": 416, "Java": 224, "Ruby": 1, "YAML": 2} | package org.tokend.sdk.api.tfa
import com.google.gson.reflect.TypeToken
import org.tokend.sdk.api.base.ApiRequest
import org.tokend.sdk.api.base.MappedRetrofitApiRequest
import org.tokend.sdk.api.base.SimpleRetrofitApiRequest
import org.tokend.sdk.api.base.model.AttributesEntity
import org.tokend.sdk.api.base.model.Da... | 0 | Kotlin | 0 | 1 | 941186aee243d0639d72e7ee189d509afc6292b9 | 3,242 | kotlin-sdk | Apache License 2.0 |
shrd_preferences/android/app/src/main/kotlin/com/example/shrd_preferences/MainActivity.kt | R-MP | 400,340,685 | false | {"Dart": 99437, "HTML": 62943, "Swift": 8484, "Kotlin": 2733, "Objective-C": 798} | package com.example.shrd_preferences
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 94ecc7cb7dd3064ee10c2c2dab1657520f9f82d7 | 133 | Flutter | MIT License |
app/src/main/java/com/paypaytest/currencyconversionapp/domain/repository/CurrencyAppRepository.kt | deepdelvadiya | 753,472,003 | false | {"Kotlin": 72443} | package com.paypaytest.currencyconversionapp.domain.repository
import com.paypaytest.currencyconversionapp.data.utils.Syncable
import com.paypaytest.currencyconversionapp.domain.model.CountryModel
import com.paypaytest.currencyconversionapp.domain.model.RateModel
import kotlinx.coroutines.flow.Flow
interface Currenc... | 0 | Kotlin | 0 | 0 | 3d8eecadc1963879bea43ba0236bcc7b58494d42 | 441 | Currency-Conversion-App | Apache License 2.0 |
presentation/src/main/java/com/dsm/dms/presentation/di/module/main/apply/extension/ApplyExtensionFloorListModule.kt | DSM-DMS | 203,186,000 | false | null | package com.dsm.dms.presentation.di.module.main.apply.extension
import com.dsm.dms.presentation.di.scope.ApplyFragmentScope
import com.dsm.dms.presentation.viewmodel.main.apply.extension.ApplyExtensionFloorListViewModelFactory
import dagger.Module
import dagger.Provides
@Module
class ApplyExtensionFloorListModule {
... | 0 | Kotlin | 2 | 14 | ae7de227cee270d22a72a4f59090bff07c43f019 | 491 | DMS-Android-V4 | MIT License |
app/src/main/java/com/salton123/eleph/video/compressor/ui/AboutActivity.kt | LiveSalton | 452,515,757 | false | {"Java": 936723, "Kotlin": 136965} | package com.salton123.eleph.video.compressor.ui
import android.widget.ImageButton
import android.widget.TextView
import com.salton123.base.BaseActivity
import com.salton123.eleph.BuildConfig
import com.salton123.eleph.R
/**
* User: <EMAIL>
* Date: 2020/4/22 21:31
* ModifyTime: 21:31
* Description:
*/
class About... | 1 | null | 1 | 1 | e7b842ac64227dd4ad94d4099ea39e197a40dd71 | 1,105 | eleph-video-compressor | Apache License 2.0 |
app/src/main/java/com/euntaek/mymusic/ui/components/CachedAsyncImage.kt | eun1310434 | 701,451,912 | false | {"Kotlin": 138745} | package com.euntaek.mymusic.ui.components
import android.net.Uri
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.platform.LocalContext
import coil.compose.AsyncImage
import coil.decode.ImageDecoderDecoder
import co... | 0 | Kotlin | 0 | 0 | c20612b82aba58b2cda79d1c1b9a296739e26b78 | 1,629 | MyMusic | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/ArrowCircleDown.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,145 | icons | MIT License |
src/main/kotlin/ru/yoomoney/tech/grafana/dsl/metrics/prometheus/functions/Ceil.kt | yoomoney | 158,901,967 | false | {"Kotlin": 378524, "Shell": 644} | package ru.yoomoney.tech.grafana.dsl.metrics.prometheus.functions
import ru.yoomoney.tech.grafana.dsl.metrics.prometheus.InstantVectorTypedMetric
/**
* Function `ceil(v instant-vector)` rounds the sample values of all elements in `v` up to the nearest integer.
*
* [Official documentation](https://prometheus.io/doc... | 2 | Kotlin | 8 | 53 | 58ab4e2e70e544c4160b97b4dc64e73235a4bd00 | 772 | grafana-dashboard-dsl | MIT License |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/NotLessTilde.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: NotLessTilde
*
* Full name: System`NotLessTilde
*
* Usage: NotLessTilde[x, y, …] displays as x... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 923 | mathemagika | Apache License 2.0 |
projects/external-api-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/model/PersonIdentifier.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 4381242, "HTML": 72513, "D2": 44286, "Ruby": 26979, "Shell": 23475, "SCSS": 6630, "HCL": 2712, "Dockerfile": 2431, "JavaScript": 1428, "Python": 268} | package uk.gov.justice.digital.hmpps.model
data class PersonIdentifier(val crn: String, val nomsId: String)
| 2 | Kotlin | 0 | 2 | 5f99d532965fa886def1907b5e20fce6ac83ce43 | 109 | hmpps-probation-integration-services | MIT License |
app/src/main/kotlin/com/twain/interprep/constants/StringConstants.kt | Audienix | 614,703,096 | false | null | package com.twain.interprep.constants
object StringConstants {
const val DT_FORMAT_DATE = "dd"
const val DT_FORMAT_MONTH_YEAR = "MMM, yyyy"
const val DT_FORMAT_DAY = "EEE"
const val DT_FORMAT_MM_DD_YYYY_HH_MM_A = "MM/dd/yyyy hh:mm a"
const val DT_FORMAT_HOUR_MIN = "hh:mm a"
const val DT_FORMAT_... | 2 | Kotlin | 0 | 0 | f0f6267d030331097ae0f97d060aa691c8a07249 | 1,061 | InterPrep | Apache License 2.0 |
src/main/kotlin/no/nav/sbl/sosialhjelp_mock_alt/datastore/fiks/SvarUtService.kt | navikt | 257,863,652 | false | {"Kotlin": 224929, "Dockerfile": 1139, "Shell": 217} | package no.nav.sbl.sosialhjelp_mock_alt.datastore.fiks
import no.ks.fiks.svarut.klient.model.Forsendelse
import no.nav.sbl.soknadsosialhjelp.soknad.JsonSoknad
import no.nav.sbl.sosialhjelp_mock_alt.utils.logger
import org.springframework.beans.factory.annotation.Value
import org.springframework.stereotype.Component
@... | 2 | Kotlin | 0 | 1 | 734eb511175980d918a80e0f98cfe45d876029de | 1,494 | sosialhjelp-mock-alt-api | MIT License |
domain/src/test/kotlin/com/rubylichtenstein/domain/favorites/GetFavoriteImagesUseCaseTest.kt | RubyLichtenstein | 692,730,044 | false | {"Kotlin": 82416} | package com.rubylichtenstein.domain.favorites
import app.cash.turbine.test
import com.rubylichtenstein.domain.common.AsyncResult
import com.rubylichtenstein.domain.images.DogImageEntity
import kotlinx.coroutines.test.runTest
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.BeforeEach
import org.jun... | 1 | Kotlin | 2 | 36 | 144ff7eefcb0d5c18675b920467bb0e22f1c0976 | 1,564 | Dogiz | MIT License |
src/jvmMain/kotlin/maryk/rocksdb/RocksMutableObject.kt | marykdb | 192,168,972 | false | null | package maryk.rocksdb
actual typealias RocksMutableObject = org.rocksdb.RocksMutableObject
| 0 | Kotlin | 2 | 7 | 7e2c471854195b7635db7b75ca23d26305700ba7 | 92 | rocksdb-multiplatform | Apache License 2.0 |
src/jvmMain/kotlin/maryk/rocksdb/RocksMutableObject.kt | marykdb | 192,168,972 | false | null | package maryk.rocksdb
actual typealias RocksMutableObject = org.rocksdb.RocksMutableObject
| 0 | Kotlin | 2 | 7 | 7e2c471854195b7635db7b75ca23d26305700ba7 | 92 | rocksdb-multiplatform | Apache License 2.0 |
idea/idea-completion/testData/handlers/charFilter/CommaForFunction2.kt | JakeWharton | 99,388,807 | false | null | fun foo(p: Int) {}
fun bar() {
x(<caret>)
}
// ELEMENT: foo
// CHAR: ','
| 1 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 79 | kotlin | Apache License 2.0 |
subprojects/cfa/cfa-analysis/src/main/kotlin/hu/bme/mit/theta/cfa/analysis/CfaControlInitFunc.kt | ftsrg | 39,392,321 | false | {"Java": 5132879, "Kotlin": 1301970, "C": 278090, "ANTLR": 121913, "C++": 110696, "SWIG": 65732, "SMT": 24985, "Shell": 5456, "Dockerfile": 2404, "PowerShell": 865} | /*
* Copyright 2024 Budapest University of Technology and Economics
*
* 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
*
* Unles... | 53 | Java | 43 | 49 | 529352a44fa893ca89a65c1a56c995d64737799d | 1,067 | theta | Apache License 2.0 |
eureka-server/src/test/kotlin/org/learning/by/example/spring/kube/playground/eureka/server/EurekaServerApplicationTests.kt | LearningByExample | 121,017,872 | false | null | package org.learning.by.example.spring.kube.playground.eureka.server
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit4.SpringRunner
@RunWith(SpringRunner::class)
@SpringBootTest
class EurekaServerApplication... | 2 | Kotlin | 0 | 7 | c22abd50687657ab8210c2baacec4284a82ca22e | 367 | spring-kube-playground | MIT License |
kotlin/hole3/src/main/kotlin/hole3/TakeHomeCalculator.kt | tripledio | 458,760,679 | false | null | package hole3
import java.util.Arrays
internal class TakeHomeCalculator(private val percent: Int) {
fun netAmount(first: Money, vararg rest: Money): Money {
val monies = rest.asList()
var total = first
for (next in monies) {
if (next.currency != total.currency) {
... | 1 | null | 1 | 1 | 2a0666ef08c1796efbfdfbdd9229cd240172d282 | 806 | refactoring-golf | MIT License |
kotlin/hole3/src/main/kotlin/hole3/TakeHomeCalculator.kt | tripledio | 458,760,679 | false | null | package hole3
import java.util.Arrays
internal class TakeHomeCalculator(private val percent: Int) {
fun netAmount(first: Money, vararg rest: Money): Money {
val monies = rest.asList()
var total = first
for (next in monies) {
if (next.currency != total.currency) {
... | 1 | null | 1 | 1 | 2a0666ef08c1796efbfdfbdd9229cd240172d282 | 806 | refactoring-golf | MIT License |
app/src/main/java/com/mikifus/padland/Database/ServerModel/ServerRepository.kt | mikifus | 29,370,170 | false | null | package com.mikifus.padland.Database.ServerModel
import androidx.lifecycle.LiveData
class ServerRepository(private val serverDao: ServerDao) {
val getAll: LiveData<List<Server>> = serverDao.getAll()
val getAllEnabled: LiveData<List<Server>> = serverDao.getAllEnabled()
suspend fun insertServer(server: Se... | 7 | null | 15 | 62 | e22e933f81f6d1b5841736c0cf06b8ef2bc6b538 | 758 | padland | Apache License 2.0 |
noria-common/src/main/kotlin/noria/utils/Map.kt | y2k | 136,721,211 | true | {"Gradle": 11, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Kotlin": 51, "HTML": 1, "Java Properties": 1, "Proguard": 1, "XML": 6, "INI": 1, "Java": 1, "JSON": 2} | package noria.utils
interface MutableMapLike<K : Any, V> {
operator fun get(key: K): V?
fun put(key: K, v: V)
operator fun set(key: K, v: V)
fun remove(key: K)
fun containsKey(key: K): Boolean
fun forEach(handler: (K, V) -> Unit)
fun size(): Int
fun clear()
}
expect fun <V> fastString... | 0 | Kotlin | 0 | 2 | ef6d146126aa301d8828e61c0eab544770ed80ad | 664 | noria-kt | Apache License 2.0 |
idea/tests/testData/multiModuleLineMarker/withOverloads/common/common.kt | JetBrains | 278,369,660 | false | null | expect fun <!LINE_MARKER("descr='Has actuals in jvm module'")!>foo<!>(): Int
expect fun <!LINE_MARKER("descr='Has actuals in jvm module'")!>foo<!>(arg: Int): Int
| 1 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 163 | intellij-kotlin | Apache License 2.0 |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/presencetracing/organizer/warn/duration/TraceLocationWarnDurationViewModel.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.ui.presencetracing.organizer.warn.duration
import android.content.res.Resources
import androidx.lifecycle.LiveData
import dagger.assisted.Assisted
import dagger.assisted.AssistedFactory
import dagger.assisted.AssistedInject
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.presence... | 6 | null | 504 | 2,486 | 7b0eee8d53a090ee0ca585c6a90c4cec570e51d6 | 5,338 | cwa-app-android | Apache License 2.0 |
test/ii_collections/_20_Group_By.kt | RicterZ | 92,598,767 | false | null | package ii_collections
import ii_collections.data.groupedByCities
import ii_collections.data.shop
import org.junit.Assert.assertEquals
import org.junit.Test
class _20_Group_By {
@Test fun testGroupCustomersByCity() {
assertEquals(groupedByCities, shop.groupCustomersByCity())
assertEquals(groupedBy... | 1 | Kotlin | 1 | 4 | 66f190abfbf08a2f48008ac01204f8a71935be5f | 380 | kotlin-koans | MIT License |
idea/testData/multiModuleLineMarker/hierarchyWithExpectClassPlatformSide/jvm/jvm.kt | JakeWharton | 99,388,807 | true | null | package test
actual open class <lineMarker><lineMarker>ExpectedChild</lineMarker></lineMarker> : SimpleParent() {
actual override fun <lineMarker><lineMarker><lineMarker>foo</lineMarker></lineMarker></lineMarker>(n: Int) {}
actual override val <lineMarker><lineMarker><lineMarker>bar</lineMarker></lineMarker></... | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 517 | kotlin | Apache License 2.0 |
app/src/main/java/com/github/vase4kin/teamcityapp/account/create/router/CreateAccountRouterImpl.kt | vase4kin | 68,111,887 | false | {"Gradle": 29, "JSON": 2, "Java Properties": 2, "Markdown": 6, "Shell": 1, "Ignore List": 26, "Batchfile": 1, "Text": 1, "YAML": 5, "INI": 24, "Proguard": 25, "XML": 228, "Java": 33, "Kotlin": 580, "HTML": 1, "Gradle Kotlin DSL": 1} | /*
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 0 | Kotlin | 11 | 52 | 9abb1ed56c127d64679124c38d30b0014ec024de | 1,046 | TeamCityApp | Apache License 2.0 |
subprojects/test-runner/device-provider/impl/src/main/kotlin/com/avito/android/runner/devices/internal/kubernetes/KubernetesReservationClientProvider.kt | avito-tech | 230,265,582 | false | null | package com.avito.android.runner.devices.internal.kubernetes
import com.avito.android.runner.devices.internal.AndroidDebugBridgeProvider
import com.avito.android.runner.devices.internal.EmulatorsLogsReporterProvider
import com.avito.k8s.KubernetesApiFactory
import com.avito.logger.LoggerFactory
import kotlinx.coroutin... | 8 | null | 50 | 414 | 4dc43d73134301c36793e49289305768e68e645b | 1,865 | avito-android | MIT License |
xml-performance/test-drive-xml-dom-xpath/src/main/kotlin/org/jesperancinha/test/drive/xml/XmlBookDomXpathParserManager.kt | jesperancinha | 44,497,748 | false | {"Kotlin": 38982, "Shell": 393, "Makefile": 141} | package org.jesperancinha.test.drive.xml
import org.w3c.dom.Document
import org.w3c.dom.NodeList
import org.xml.sax.SAXException
import java.io.IOException
import java.io.InputStream
import javax.xml.namespace.NamespaceContext
import javax.xml.parsers.DocumentBuilderFactory
import javax.xml.parsers.ParserConfiguration... | 0 | Kotlin | 0 | 2 | c4bd18b9be93e12aa9a4d861b2111ae48812029a | 3,228 | performance-xml-csv-json | Apache License 2.0 |
KCPPacket.kt | kenvix | 453,569,223 | false | null | package com.kenvix.natpoked.utils.network.kcp
import io.netty.buffer.ByteBuf
data class KCPPacket(val data: ByteBuf, val size: Int)
| 1 | null | 1 | 2 | 2cc9fd6280604626a79253f20b2a8c7869d647dc | 134 | CoroutineKCP | Apache License 2.0 |
KCPPacket.kt | kenvix | 453,569,223 | false | null | package com.kenvix.natpoked.utils.network.kcp
import io.netty.buffer.ByteBuf
data class KCPPacket(val data: ByteBuf, val size: Int)
| 1 | null | 1 | 2 | 2cc9fd6280604626a79253f20b2a8c7869d647dc | 134 | CoroutineKCP | Apache License 2.0 |
app/src/main/java/io/swagger/server/models/DisplayRotationEnumCompanion.kt | dtmilano | 214,093,875 | false | null | package io.swagger.server.models
fun DisplayRotationEnum.Companion.of(value: Int): DisplayRotationEnum {
try {
return enumValues<DisplayRotationEnum>().first { it.value == value }
} catch (e: NoSuchElementException) {
val msg = "ð Cannot find the DisplayRotationEnum for value=${value}"
... | 3 | null | 27 | 98 | 352b6fb49c26bb5ee6456d99fe4070edbe8d9626 | 387 | CulebraTester2-public | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.