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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
powermanager/src/main/java/com/pyamsoft/powermanager/settings/SettingsPreferenceFragment.kt | pyamsoft | 24,553,477 | false | null | /*
* Copyright 2017 Peter Kenji Yamanaka
*
* 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 a... | 0 | Kotlin | 0 | 1 | bfc57e557e56a0503daae89a964a0ab447695b16 | 3,914 | power-manager | Apache License 2.0 |
idea/testData/refactoring/safeDelete/deleteTypeParameter/kotlinTypeParameter/internalUsages2.kt | JakeWharton | 99,388,807 | true | null | class A<X> {
fun foo<<caret>Y>(x: X, y: Y) {
}
}
fun bar(a: A<String>) {
a.foo<Int>("123", 123)
} | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 111 | kotlin | Apache License 2.0 |
src/nl/hannahsten/texifyidea/action/insert/InsertSectionAction.kt | Hannah-Sten | 62,398,769 | false | null | package nl.hannahsten.texifyidea.action.insert
import nl.hannahsten.texifyidea.action.InsertEditorAction
/**
* @author <NAME>
*/
class InsertSectionAction : InsertEditorAction("Section", "\\section{", "}") | 99 | null | 87 | 891 | 986550410e2fea91d1e93abfc683db1c8527c9d9 | 209 | TeXiFy-IDEA | MIT License |
common/src/main/kotlin/com/github/netomi/bat/io/FileOutputSink.kt | netomi | 265,488,804 | false | {"Kotlin": 1925501, "Smali": 713862, "ANTLR": 25494, "Shell": 12074, "Java": 2326} | /*
* Copyright (c) 2020-2022 Thomas Neidhart.
*
* 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 applicab... | 1 | Kotlin | 3 | 10 | 5f5ec931c47dd34f14bd97230a29413ef1cf219c | 1,351 | bat | Apache License 2.0 |
ocs/src/main/kotlin/org/ostelco/prime/ocs/EventHandlerImpl.kt | sami-alajrami | 145,691,257 | false | {"Gradle": 25, "YAML": 32, "Markdown": 33, "Shell": 31, "Text": 1, "Ignore List": 11, "Batchfile": 1, "Dockerfile": 9, "Kotlin": 146, "XML": 27, "Java": 24, "Java Properties": 2, "OASv2-yaml": 2, "INI": 1, "Protocol Buffer": 2, "JSON": 3, "PlantUML": 19, "SVG": 13, "Cypher": 1} | package org.ostelco.prime.ocs
import com.lmax.disruptor.EventHandler
import org.ostelco.ocs.api.ActivateResponse
import org.ostelco.ocs.api.CreditControlAnswerInfo
import org.ostelco.ocs.api.FinalUnitAction
import org.ostelco.ocs.api.FinalUnitIndication
import org.ostelco.ocs.api.MultipleServiceCreditControl
import or... | 1 | null | 1 | 1 | b642713279f783ca8fa643713cc34f6c8b3560cb | 4,958 | ostelco-core | Apache License 2.0 |
data/src/main/java/com/edwin/randompicture/data/mapper/PostMapper.kt | EdwinRomelta | 154,439,136 | false | null | package com.edwin.randompicture.data.mapper
import com.edwin.randompicture.data.model.PostEntity
import com.edwin.randompicture.domain.model.Post
import javax.inject.Inject
class PostMapper @Inject constructor() : Mapper<PostEntity, Post> {
override fun mapFromEntity(type: PostEntity) =
Post(id = typ... | 1 | null | 1 | 2 | 4ec4eff34efe189cc8db49907de7fc92ad11e929 | 668 | random-picture-android | MIT License |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/crypto/bold/Theta.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.crypto.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 andr... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 4,247 | VuesaxIcons | MIT License |
src/main/kotlin/ch08/8.1.4_2_KotlinMakesNumberConversionsExplicit1.kt | Kotlin | 531,157,893 | false | {"Kotlin": 49621, "Java": 876} | package ch08.ex1_4_2_KotlinMakesNumberConversionsExplicit1
fun printALong(l: Long) = println(l)
fun main(args: Array<String>) {
val b: Byte = 1
val l = b + 1L
printALong(42)
}
| 0 | Kotlin | 4 | 30 | ed05aed5460e379145a7bd531ac15c7fa2f53f33 | 190 | kotlin-in-action-2e | MIT License |
src/main/kotlin/g3001_3100/s3021_alice_and_bob_playing_flower_game/Solution.kt | javadev | 190,711,550 | false | {"Kotlin": 4870729, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g3001_3100.s3021_alice_and_bob_playing_flower_game
// #Medium #Math #2024_03_03_Time_141_ms_(43.24%)_Space_33.2_MB_(86.49%)
class Solution {
fun flowerGame(n: Int, m: Int): Long {
val nEven = n.toLong() / 2
val nOdd = n - nEven
val mEven = m.toLong() / 2
val mOdd = m - mEve... | 0 | Kotlin | 20 | 43 | e8b08d4a512f037e40e358b078c0a091e691d88f | 373 | LeetCode-in-Kotlin | MIT License |
barber/src/main/kotlin/app/cash/barber/models/DocumentTemplate.kt | cashapp | 192,409,968 | false | null | package app.cash.barber.models
import app.cash.barber.locale.Locale
import app.cash.barber.models.BarberSignature.Companion.getBarberSignature
import app.cash.barber.models.TemplateToken.Companion.getTemplateToken
import kotlin.reflect.KClass
/**
* For each DocumentData we have a DocumentTemplate that provides a nat... | 11 | Kotlin | 16 | 97 | 29a231e44a8024c7fc53ebde018be5e80ce9e6b4 | 1,720 | barber | Apache License 2.0 |
sample_app/src/main/java/uk/co/alt236/btlescan/ui/details/recyclerview/holder/HeaderHolder.kt | alt236 | 17,951,611 | false | null | package uk.co.alt236.btlescan.ui.details.recyclerview.holder
import android.view.View
import android.widget.TextView
import uk.co.alt236.btlescan.R
import uk.co.alt236.btlescan.ui.common.recyclerview.BaseViewHolder
import uk.co.alt236.btlescan.ui.details.recyclerview.model.HeaderItem
class HeaderHolder(itemView: View... | 13 | Java | 303 | 849 | bfd2eecba6df3158005837d619c84d1f1033ba1b | 444 | Bluetooth-LE-Library---Android | Apache License 2.0 |
project/kimmer-sql/src/main/kotlin/org/babyfish/kimmer/sql/MappingException.kt | babyfish-ct | 447,936,858 | false | {"Kotlin": 967243} | package org.babyfish.kimmer.sql
import java.lang.RuntimeException
class MappingException(message: String, cause: Throwable? = null): RuntimeException(message, cause) | 0 | Kotlin | 3 | 37 | 8345d9112292b7f13aaccae681bc91cb51fa9315 | 167 | kimmer | MIT License |
app/src/main/java/com/maliks/applocker/xtreme/ui/BaseBottomSheetDialog.kt | gamerz1990 | 873,653,054 | false | {"Kotlin": 362849, "Java": 1255} | package com.maliks.applocker.xtreme.ui
import android.content.Context
import android.os.Bundle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import dagger.android.AndroidInjector
import dagger.android.Dispatching... | 0 | Kotlin | 0 | 0 | 28189c677f7a595580e5f97d13291b0f617b159f | 1,199 | applocker | Apache License 2.0 |
MineSweeperKt/src/main/java/com/panch/minesweeperkt/view/MSKView.kt | panchy | 182,879,105 | false | null | package com.panch.minesweeperkt.view
import android.content.Context
import android.media.MediaPlayer
import android.util.AttributeSet
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import android.widget.LinearLayout
import com.panch.minesweeperkt.R
import com.panch.minesweeper... | 0 | Kotlin | 1 | 0 | 45b349ceffbbe0c6aa1cde0d98c86e9ae7dd20d2 | 14,346 | MineSweeperKt | MIT License |
lib/src/commonTest/kotlin/GraphTest.kt | spbu-coding-2023 | 791,480,179 | false | {"Kotlin": 10192} | import kotlin.test.Test
import kotlin.test.assertTrue
class GraphTest {
@Test
fun `graph test example`() {
assertTrue(true)
}
} | 1 | Kotlin | 0 | 0 | 94f28096041391f3a1301ce05d568b8bb5b9eb63 | 149 | graphs-graphs-8 | Do What The F*ck You Want To Public License |
settings.gradle.package.kts | jangocheng | 303,889,126 | true | {"Kotlin": 80718} | include(
":smartype-api",
":smartype-generator",
":smartype",
":smartype-receivers:smartype-mparticle"
) | 0 | null | 0 | 0 | 76b2b4e5fffa601c6a120865913b4108e0ec252f | 120 | smartype | Apache License 2.0 |
manager/src/main/kotlin/com/github/open_edgn/fx/manager/window/InternalWindow.kt | OpenEdgn | 316,234,299 | false | {"Gradle Kotlin DSL": 4, "Shell": 1, "Text": 1, "Markdown": 2, "Ignore List": 3, "Batchfile": 1, "YAML": 1, "Java Properties": 1, "Java": 2, "Kotlin": 21, "XML": 1} | package com.github.open_edgn.fx.manager.window
import javafx.scene.input.KeyCombination
import javafx.stage.Stage
internal class InternalWindow(private val stage: Stage) : Window() {
override val name: String = javaClass.name
override val fxStage: Stage
get() = stage
override val fxWindow: java... | 1 | null | 1 | 1 | 1a8e067a2daef812c9352c09797cf0814b18c22a | 1,873 | FXUIManager | MIT License |
src/main/kotlin/com/featurevisor/sdk/serializers/Serializers.kt | featurevisor | 679,341,509 | false | {"Kotlin": 167563} | package com.featurevisor.sdk.serializers
import com.featurevisor.sdk.FeaturevisorInstance
import com.featurevisor.types.AndGroupSegment
import com.featurevisor.types.BucketBy
import com.featurevisor.types.Condition
import com.featurevisor.types.ConditionValue
import com.featurevisor.types.GroupSegment
import com.featu... | 5 | Kotlin | 4 | 3 | cd67f437ae24afbf0b6ed8ade36df752f08a438b | 14,031 | featurevisor-kotlin | MIT License |
src/main/kotlin/me/melijn/melijnbot/database/channel/StreamUrlWrapper.kt | ToxicMushroom | 107,187,088 | false | null | package me.melijn.melijnbot.database.channel
import me.melijn.melijnbot.database.HIGHER_CACHE
import me.melijn.melijnbot.database.NORMAL_CACHE
class StreamUrlWrapper(private val streamUrlDao: StreamUrlDao) {
suspend fun getUrl(guildId: Long): String {
val cached = streamUrlDao.getCacheEntry(guildId, HIGH... | 5 | null | 22 | 80 | 01107bbaad0e343d770b1e4124a5a9873b1bb5bd | 811 | Melijn | MIT License |
examples/src/main/kotlin/examples/video/DolbyDigitalPlus.kt | hiperbou | 77,711,558 | false | {"Kotlin": 456816, "HTML": 335} |
package examples.video
import Phaser.*
class DolbyDigitalPlus: State() {
//var game = Phaser.Game(800, 600, Phaser.CANVAS, "phaser-example", object{ var preload= preload; var create= create })
override fun preload() {
game.add.text(100, 100, "Loading videos ...", object{ var font= "65px Arial"; va... | 2 | Kotlin | 11 | 55 | 18d247ecf44c32f5aca0560dce7727c10dfe196a | 659 | kotlin-phaser | MIT License |
node/src/integration-test/kotlin/net/corda/contracts/serialization/custom/CurrantsySerializer.kt | corda | 70,137,417 | false | null | package net.corda.contracts.serialization.custom
import net.corda.core.serialization.SerializationCustomSerializer
@Suppress("unused")
class CurrantsySerializer : SerializationCustomSerializer<Currantsy, CurrantsySerializer.Proxy> {
data class Proxy(val currants: Long)
override fun fromProxy(proxy: Proxy): C... | 62 | null | 1077 | 3,989 | d27aa0e6850d3804d0982024054376d452e7073a | 687 | corda | Apache License 2.0 |
app/src/test/kotlin/no/nav/aap/AppTest.kt | navikt | 546,507,998 | false | {"Kotlin": 3969, "Dockerfile": 1102} | package no.nav.aap
import io.ktor.client.request.*
import io.ktor.http.*
import io.ktor.server.config.*
import io.ktor.server.testing.*
import no.nav.aap.kafka.streams.v2.test.KStreamsMock
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class AppTest {
@Test
fun hello() {
tes... | 1 | Kotlin | 0 | 0 | f25cada9c42cf8af47de020f755f71200354c9a3 | 1,033 | aap-andre-ytelser | MIT License |
core/src/me/srikavin/fbla/game/award/Award.kt | srikavin | 226,561,986 | false | {"Kotlin": 170669, "HTML": 115041, "Java": 899, "Batchfile": 23} | package me.srikavin.fbla.game.award
import com.badlogic.gdx.assets.AssetManager
import com.badlogic.gdx.graphics.Texture
import com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable
import me.srikavin.fbla.game.state.GameRules
abstract class Award {
private lateinit var texture: Texture
private lateinit... | 1 | Kotlin | 1 | 2 | d9fb02ff8d1c84ce971df6ad450b75ca72747a0f | 1,101 | Quest-for-Success | MIT License |
cli/src/main/kotlin/uk/gov/justice/digital/cli/editor/TextEditor.kt | ministryofjustice | 620,391,775 | false | null | package uk.gov.justice.digital.cli.editor
import org.jline.keymap.BindingReader
import org.jline.keymap.KeyMap
import org.jline.utils.InfoCmp.Capability
import uk.gov.justice.digital.cli.editor.TextEditor.Operation.*
import uk.gov.justice.digital.cli.session.InteractiveSession
import kotlin.math.min
/**
* A simple t... | 1 | Kotlin | 1 | 1 | 156f2772a4e203b44993318d46f03974f6eb33f9 | 10,107 | digital-prison-reporting-domain-builder | MIT License |
app/src/main/java/com/puc/easyagro/ui/MainActivity.kt | herva2003 | 693,382,766 | false | {"Kotlin": 200044, "Java": 2561} | package com.puc.easyagro.ui
import android.os.Bundle
import android.view.View
import com.google.android.material.bottomnavigation.BottomNavigationView
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.findNavController
import androidx.navigation.ui.setupWithNavController
import com.puc.easyagr... | 0 | Kotlin | 0 | 0 | ca0a6754f9dbcace8d14545d277ac9d129798a27 | 2,429 | EasyAgro | Apache License 2.0 |
app/src/main/java/com/peteralexbizjak/europaopen/models/statistics/Indicator.kt | sunderee | 375,731,952 | false | null | package com.peteralexbizjak.europaopen.models.statistics
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class Indicator(
val domainID: Int,
val title: String,
val comment: String? = null,
val rules: List<Rule> = emptyList()
) : Parcelable | 0 | Kotlin | 0 | 2 | c0317b90ea882dafc54740ee3ef49a32c1ebf185 | 289 | EuropaOpen | MIT License |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/twotone/Crown.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.twotone
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.Round
import androidx.compose.ui.graphics.StrokeJoin
i... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 2,040 | VuesaxIcons | MIT License |
app/src/main/java/com/nisaefendioglu/newsapp/api/NewsApi.kt | nisaefendioglu | 432,163,789 | false | null |
package com.nisaefendioglu.newsapp.api
import com.nisaefendioglu.newsapp.data.model.NewsResponse
import com.nisaefendioglu.newsapp.utils.Constants.Companion.API_KEY
import com.nisaefendioglu.newsapp.utils.Constants.Companion.CountryCode
import com.nisaefendioglu.newsapp.utils.Constants.Companion.QUERY_PER_PAGE
import... | 0 | Kotlin | 0 | 7 | 3340ed841e5358c4438e813954c8c6461297ab48 | 1,078 | iNews | MIT License |
src/main/java/com/vladsch/md/nav/util/format/FormatControlProcessor.kt | vsch | 32,095,357 | false | null | // Copyright (c) 2015-2023 Vladimir Schneider <vladimir.schneider@gmail.com> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.vladsch.md.nav.util.format
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
import com.intellij.psi.codeStyle.... | 134 | null | 131 | 809 | ec413c0e1b784ff7309ef073ddb4907d04345073 | 3,320 | idea-multimarkdown | Apache License 2.0 |
src/main/kotlin/com/totec/trading/engine/exchange/impls/bitmex/BitmexExchangeImpl.kt | ondrsh | 753,526,970 | false | {"Kotlin": 82375} | /**
* Created by ndrsh on 7/10/20
*/
package com.totec.trading.engine.exchange.impls.bitmex
import com.totec.trading.core.exchanges.Exchange
import com.totec.trading.core.exchanges.SymbolConverter
import com.totec.trading.core.instrument.CurrenciesAllowed
import com.totec.trading.core.instrument.InfoDeserializer
im... | 0 | Kotlin | 0 | 0 | 4c9779749331368c4a7603f214d4fafa7b95343d | 1,916 | totec-engine | MIT License |
miniapp/src/main/java/com/rakuten/tech/mobile/miniapp/js/iap/MiniAppPurchaseRecord.kt | rakutentech | 225,744,634 | false | {"Kotlin": 1372013} | package com.rakuten.tech.mobile.miniapp.js.iap
import androidx.annotation.Keep
@Keep
internal data class MiniAppPurchaseRecord(
val platform: String,
val productId: String,
val transactionState: Int,
val transactionId: String,
val transactionDate: String,
val transactionReceipt: String,
va... | 8 | Kotlin | 34 | 73 | 9111d5080f211cf3d6104a2531f4439ac3eb8bcd | 804 | android-miniapp | MIT License |
kcrypto/src/main/kotlin/org/bouncycastle/kcrypto/AuthenticationKey.kt | bcgit | 196,159,414 | false | {"Kotlin": 458444, "HTML": 419} | package org.bouncycastle.kcrypto
import KCryptoServices
import org.bouncycastle.asn1.x509.AlgorithmIdentifier
import org.bouncycastle.kcrypto.spec.MacAlgSpec
import org.bouncycastle.kcrypto.spec.kdf.findPrfAlgId
import org.bouncycastle.kcrypto.spec.symmetric.CCMSpec
import org.bouncycastle.kcrypto.spec.symmetric.CMACS... | 0 | Kotlin | 15 | 69 | dc86103f5fef1baf9f6e1cdff17bbf31927637ab | 7,393 | bc-kotlin | MIT License |
kotlin/src/main/kotlin/com/linecorp/armeria/client/kotlin/CoroutineRestClient.kt | line | 46,251,204 | false | null | /*
* Copyright 2022 LINE Corporation
*
* LINE Corporation licenses this file to you 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 r... | 665 | null | 914 | 4,805 | be686f377aa11575eb6bd8b39f03c2b0ed2135d6 | 1,607 | armeria | Apache License 2.0 |
app/src/androidTest/java/com/github/drunlin/webappbox/activity/FragmentActivityTest.kt | vaginessa | 104,403,291 | true | {"Kotlin": 165945, "HTML": 1409} | package com.github.drunlin.webappbox.activity
import android.support.test.rule.ActivityTestRule
import android.support.test.runner.AndroidJUnit4
import org.hamcrest.core.AllOf.allOf
import org.hamcrest.core.IsNot.not
import org.junit.Assert.assertThat
import org.junit.Rule
import org.junit.Test
import org.junit.runner... | 0 | Kotlin | 0 | 0 | d8cc48f878dd732656bc8f8142db5c1a5e93035f | 913 | webappbox | Apache License 2.0 |
app/src/main/java/com/example/android/trackmysleepquality/database/SleepDatabase.kt | ardakazanci | 199,505,358 | false | null | /*
* Copyright 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 applica... | 0 | Kotlin | 0 | 0 | 95c1c359dbcef13c5663a42748178a721c5d34a9 | 2,636 | TrackMySleepQuality-Final | Apache License 2.0 |
DSLs/kubernetes/dsl/src/main/kotlin-gen/com/fkorotkov/kubernetes/policy/v1beta1/metadata.kt | fkorotkov | 84,911,320 | false | null | // GENERATED
package com.fkorotkov.kubernetes.policy.v1beta1
import io.fabric8.kubernetes.api.model.ListMeta as model_ListMeta
import io.fabric8.kubernetes.api.model.ObjectMeta as model_ObjectMeta
import io.fabric8.kubernetes.api.model.policy.v1beta1.Eviction as v1beta1_Eviction
import io.fabric8.kubernetes.api.model.... | 6 | Kotlin | 19 | 317 | ef8297132e6134b6f65ace3e50869dbb2b686b21 | 1,670 | k8s-kotlin-dsl | MIT License |
subprojects/samples/src/main/kotlin/kotools/types/collection/NotEmptyMapKotlinSample.kt | kotools | 581,475,148 | false | null | package kotools.types.collection
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import kotools.types.number.StrictlyPositiveInt
internal class NotEmptyMapKotlinSample {
fun serialization() {
val map: NotEmptyMap<Char, Int> = notEmptyMapOf('a' to 1, 'b' to 2)
val... | 29 | null | 6 | 79 | 9af7f7da9aaf3c8dc46240ca8be88cbd64c7757c | 2,255 | types | MIT License |
app/src/main/java/fr/nexhub/homedia/features/server_registration/domain/repository/ServerRegistrationRepository.kt | valmnt | 795,633,176 | false | {"Kotlin": 238030} | package fr.nexhub.homedia.features.server_registration.domain.repository
import arrow.core.Either
import fr.nexhub.homedia.network.error.NetworkError
interface ServerRegistrationRepository {
suspend fun ping(url: String): Either<NetworkError, String>
} | 7 | Kotlin | 0 | 6 | 0cd04aa9cb4944da6be1dd796e827ebc72ac7f05 | 258 | homedia | Apache License 2.0 |
app/src/main/java/com/elementary/tasks/settings/voice/TimesViewModel.kt | naz013 | 165,067,747 | false | {"Kotlin": 2972212, "HTML": 20925} | package com.elementary.tasks.settings.voice
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.ViewModel
import com.elementary.tasks.core.utils.datetime.DateTimeManager
import com.elementary.tasks.core.utils.mutableLiveDataOf
import com.elementary.tasks.core.utils.params.Prefs
import com.elem... | 0 | Kotlin | 3 | 6 | f60a6b1f690b4e1becce00e5475b5bf684f99131 | 2,268 | reminder-kotlin | Apache License 2.0 |
live/src/main/kotlin/dev/ricknout/rugbyranker/live/ui/WomensLiveMatchViewModel.kt | ricknout | 150,327,538 | false | {"Kotlin": 221634} | package dev.ricknout.rugbyranker.live.ui
import dagger.hilt.android.lifecycle.HiltViewModel
import dev.ricknout.rugbyranker.core.model.Sport
import dev.ricknout.rugbyranker.live.work.LiveMatchWorkManager
import dev.ricknout.rugbyranker.match.data.MatchRepository
import javax.inject.Inject
@HiltViewModel
class MensLiv... | 6 | Kotlin | 49 | 288 | 19fbb5c93e4ef037ef8f6ec74e9437a0662f833a | 488 | rugby-ranker | Apache License 2.0 |
src/main/kotlin/com/namju/simple_todo/exception/CustomErrorCode.kt | cmsong111 | 689,422,737 | false | {"Kotlin": 15592, "HTML": 12892} | package com.namju.simple_todo.exception
import org.springframework.http.HttpStatus
enum class CustomErrorCode(val status: HttpStatus, val message: String) {
ALREADY_EXIST_USER_ID(HttpStatus.BAD_REQUEST, "이미 존재하는 아이디입니다."),
}
| 0 | Kotlin | 0 | 0 | bdd2a427e69a1c84da2ef1bf3f34c582eca2a3dc | 231 | Simple_todo | MIT License |
geo/src/main/java/io/em2m/geo/feature/FeatureFilter.kt | em2m | 114,274,216 | false | null | package io.em2m.geo.feature
interface FeatureFilter {
fun accept(feature: Feature): Boolean
} | 3 | null | 16 | 3 | 35d6b94a9b77685f441b0b9bc272f9a51d550178 | 99 | em2m-java-sdk | Apache License 2.0 |
app/src/main/kotlin/dev/aaa1115910/bv/component/controllers/TopController.kt | aaa1115910 | 571,702,700 | false | null | package dev.aaa1115910.bv.component.controllers
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose... | 23 | null | 95 | 999 | e93863f4f266485e16e1768fcea6e6b9ad0b276b | 1,868 | bv | MIT License |
data/RF02088/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF02088"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
1 to 4... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 13,600 | Rfam-for-RNArtist | MIT License |
app/src/main/java/fi/efelantti/frisbeegolfer/model/Hole.kt | efelantti | 299,355,717 | false | null | package fi.efelantti.frisbeegolfer.model
import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.PrimaryKey
import kotlinx.parcelize.Parcelize
import java.util.*
@Entity(
foreignKeys = [ForeignKey(
entity = Course::class... | 0 | Kotlin | 1 | 0 | ee88617fdb907d0071bba4bdab8f6c7a7961d9f7 | 1,884 | Frisbeegolfer | MIT License |
app/src/main/java/com/steve_md/nftapp/di/Module.kt | MuindiStephen | 619,123,016 | false | null | /*
* Copyright (c) <NAME> @2023
*/
package com.steve_md.nftapp.di
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import com.steve_md.nftapp.network.ApiDataSource
import com.steve_md.nftapp.network.NftApiService
import com.steve_md.nftapp.utils.Constants.BASE_URL
import dagger.Module
import dagger.Pro... | 1 | Kotlin | 0 | 5 | 87b8bcf223fd76265620a014c85f2ad61b4d3c5e | 1,624 | NFT-App | MIT License |
app/src/test/kotlin/ch/empa/openbisio/ConcreteIdentifierTest.kt | empa-scientific-it | 618,383,912 | false | null | /*
* Copyright 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 in wr... | 0 | Kotlin | 0 | 0 | 39396bb489fa91e8e65f83206e806b67fcd3ac65 | 1,679 | instanceio | Apache License 2.0 |
src/commonMain/kotlin/com/drjcoding/plow/parser/cst_nodes/expression_CST_nodes/VariableAccessCSTNode.kt | PlowLang | 377,725,033 | false | null | package com.drjcoding.plow.parser.cst_nodes.expression_CST_nodes
import com.drjcoding.plow.parser.ast_nodes.expression_AST_nodes.VariableAccessASTNode
import com.drjcoding.plow.parser.cst_nodes.QualifiedIdentifierCSTNode
/**
* An expression that represents an access to a global or local function or variable.
*
* @... | 0 | Kotlin | 0 | 2 | d308cf06d1fa6a9c78022e96a1937fded78ec58f | 618 | Plow | MIT License |
src/main/polkauction/core/service/sidecar/SidecarClient.kt | CrommVardek | 366,623,025 | false | null | package polkauction.core.service.sidecar
import com.fasterxml.jackson.databind.util.JSONPObject
import com.fasterxml.jackson.datatype.guava.GuavaModule
import com.fasterxml.jackson.module.kotlin.kotlinModule
import io.ktor.client.*
import io.ktor.client.engine.cio.*
import io.ktor.client.features.*
import io.ktor.clie... | 0 | Kotlin | 2 | 2 | 58edc8e99c8cd148100497142af3f831664d796a | 4,299 | polk-auction-core | Apache License 2.0 |
src/main/java/com/kairlec/utils/RSACoder.kt | kairlec | 225,800,593 | false | null | package com.kairlec.utils
import java.security.Key
import java.security.KeyFactory
import java.security.KeyPairGenerator
import java.security.Signature
import java.security.spec.PKCS8EncodedKeySpec
import java.security.spec.X509EncodedKeySpec
import java.util.*
import javax.crypto.Cipher
/**
*@program: Backend
*@de... | 1 | Kotlin | 0 | 1 | ae54906c4837f55075fe2b072c121b4ea232d3b0 | 7,093 | SKExplorer-Backend | Apache License 2.0 |
libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/mpp/Util.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 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.mpp
import org.gradle.api.Project
import org.gradle.api.internal.project.... | 157 | null | 5209 | 42,102 | 65f712ab2d54e34c5b02ffa3ca8c659740277133 | 1,476 | kotlin | Apache License 2.0 |
plugins/kotlin/jvm-debugger/test/testData/smartStepInto/lambdas.kt | JetBrains | 2,489,216 | false | null | fun main() {
<caret>f1({ println("l1") }, { println("l2") })
}
fun f1(l1: () -> Unit, l2: () -> Unit) {}
// EXISTS: f1(() -> Unit\, () -> Unit), f1: l1.invoke(), f1: l2.invoke()
// IGNORE_K2
| 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 197 | intellij-community | Apache License 2.0 |
core/design-system/src/main/java/com/msg/design_system/theme/color/ColorTheme.kt | School-of-Company | 700,744,250 | false | null | package com.msg.design_system.theme.color
import androidx.compose.ui.graphics.Color
abstract class ColorTheme {
//Primary Color
abstract val P1: Color
abstract val P2: Color
abstract val P3: Color
abstract val P4: Color
abstract val P5: Color
abstract val P6: Color
abstract val P7: Col... | 6 | null | 1 | 22 | 358bf40188fa2fc2baf23aa6b308b039cb3fbc8c | 1,220 | Bitgoeul-Android | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/IpAddress.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,803 | icons | MIT License |
core-database/src/main/java/com/hanbitkang/core/database/di/DaoModule.kt | hanbikan | 566,121,083 | false | {"Kotlin": 58666} | package com.hanbitkang.core.database.di
import com.hanbitkang.core.database.MpDatabase
import com.hanbitkang.core.database.dao.PokemonDao
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(SingletonComponent::class)
object DaoMo... | 1 | Kotlin | 0 | 0 | 1afd4dd586fe1b5ded28c5b45811900940c500d6 | 443 | mypokemon | Apache License 2.0 |
app/src/main/kotlin/com/flxrs/dankchat/service/twitch/emote/EmoteManager.kt | yosefsa7 | 340,862,427 | true | {"Kotlin": 278877} | package com.flxrs.dankchat.service.twitch.emote
import android.util.LruCache
import com.flxrs.dankchat.service.api.TwitchApi
import com.flxrs.dankchat.service.api.dto.BadgeDtos
import com.flxrs.dankchat.service.api.dto.EmoteDtos
import com.flxrs.dankchat.utils.extensions.supplementaryCodePointPositions
import kotlinx.... | 0 | null | 0 | 0 | d428ca5ca456c9fb6b04ef3a1dd171eada4b8d26 | 14,329 | DankChat | MIT License |
src/main/kotlin/com/timepath/hl2/io/captions/VCCD.kt | SourceUtils | 9,677,599 | false | {"Kotlin": 271789} | package com.timepath.hl2.io.captions
import com.timepath.Logger
import com.timepath.io.OrderedInputStream
import com.timepath.steam.io.VDF
import java.io.IOException
import java.io.InputStream
import java.io.OutputStream
import java.nio.ByteBuffer
import java.nio.ByteOrder
import java.nio.charset.Charset
import java.n... | 0 | Kotlin | 1 | 3 | 60bd0fbc5a1b59805d0e40e7050b119323e6f393 | 11,508 | hl2-toolkit | Artistic License 2.0 |
_src/Chapter09/social_network/src/test/kotlin/com/packtpub/sunnat629/social_network/SocialNetworkApplicationTests.kt | paullewallencom | 319,169,129 | false | null | package com.packtpub.sunnat629.social_network
import org.junit.runner.RunWith
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit4.SpringRunner
@RunWith(SpringRunner::class)
@SpringBootTest
class SocialNetworkApplicationTests {
}
| 0 | Kotlin | 0 | 1 | 7f70b39ec3926fe712617984974b13e6039df5c0 | 288 | android-spring-978-1-7893-4925-2 | Apache License 2.0 |
lib/src/test/kotlin/LibTest.kt | sschuberth | 763,202,091 | false | {"Kotlin": 1037} | package dev.schuberth.template.lib
import io.kotest.core.spec.style.WordSpec
import io.kotest.matchers.shouldBe
class LibTest : WordSpec({
"sayHello()" should {
"say hello" {
sayHello() shouldBe "Hello world!"
}
}
})
| 0 | Kotlin | 0 | 1 | ab5bf7682823189527bb2f3d66f00574f224ee10 | 255 | kotlin-lib-cli | MIT License |
app/src/main/java/com/example/jeonghyun/movieapp/compose/ViewModelActivity.kt | yoojh9 | 225,756,921 | false | null | package com.example.jeonghyun.movieapp.compose
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
open class ViewModelActivity: AppCompatActivity() {
protected inline fun <reified T: ViewDataBinding> binding(resId: Int): Lazy<T>... | 0 | Kotlin | 0 | 0 | 55bf44cc91d856c6fe9562509151eb52cf76e5ad | 387 | MovieApp | Apache License 2.0 |
data/RF02690/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF02690"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
1 to 7... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 3,313 | Rfam-for-RNArtist | MIT License |
app/src/main/java/com/victor/clips/ui/fragment/VideoCategoryFragment.kt | Victor2018 | 152,215,979 | false | null | package com.victor.clips.ui.fragment
import android.os.Bundle
import android.support.v4.widget.SwipeRefreshLayout
import android.view.View
import android.widget.AdapterView
import com.victor.clips.R
import com.victor.clips.ui.adapter.VideoCategoryAdapter
import com.victor.clips.presenter.VideoCategoryPresenterImpl
imp... | 0 | null | 13 | 45 | ebd31401c63ec5641e69427bd25e41c60f0fa9fd | 5,258 | FunnyClips | Apache License 2.0 |
GrowthBook/src/jvmTest/kotlin/com/sdk/growthbook/tests/GBEncryptedFeatures.kt | growthbook | 445,362,249 | false | {"Kotlin": 237974} | package com.sdk.growthbook.tests
import com.sdk.growthbook.GBSDKBuilder
import com.sdk.growthbook.Utils.DefaultCrypto
import com.sdk.growthbook.Utils.encryptToFeaturesDataModel
import com.sdk.growthbook.model.GBExperiment
import com.sdk.growthbook.model.GBExperimentResult
import com.soywiz.krypto.encoding.Base64
impor... | 8 | Kotlin | 20 | 24 | b7bc211c29c68dc6b8361add740bbd07e475f416 | 2,962 | growthbook-kotlin | MIT License |
app/src/main/java/ru/ifmo/statapp/data/db/dao/GroupDao.kt | Aroize | 277,159,439 | false | null | package ru.ifmo.statapp.data.db.dao
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import io.reactivex.Completable
import io.reactivex.Single
import ru.ifmo.statapp.data.db.entity.Group
@Dao
interface GroupDao {
@Query("SELECT * FROM groups")
fun gr... | 0 | Kotlin | 0 | 0 | 037aae09c085650af9a1ef49d9a74e661e3c4c6a | 459 | StatApp | MIT License |
integration-tests/common-companion/src/test/kotlin/me/tatarka/inject/test/CompanionTest.kt | evant | 194,859,139 | false | null | package me.tatarka.inject.test
import me.tatarka.inject.annotations.Component
import kotlin.test.Test
@Component abstract class CompanionComponent {
companion object
}
class CompanionTest {
@Test
fun creates_a_component_with_a_companion() {
val component = CompanionComponent.create()
}
} | 33 | null | 46 | 964 | e3dca3cb386960d18065bb10aef02cce2e38acb8 | 316 | kotlin-inject | Apache License 2.0 |
examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/platform.desktop.kt | JetBrains | 293,498,508 | false | null | package template.x
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Share
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.ImageBitmap
import androidx.compose.ui.graphics.vector.ImageVector
import android... | 1,056 | null | 957 | 12,793 | 950d5a991ccffbe9d7b831af413b30c97aa5ccf0 | 743 | compose-multiplatform | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/Cloud.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.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
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,761 | icons | MIT License |
analysis/src/org/jetbrains/kotlin/config/KotlinFacetSettingsProvider.kt | JetBrains | 278,369,660 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.config
import com.intellij.openapi.module.Module
import com.intellij.openapi.project.Project
interface KotlinFacetSettingsProvider {
fun getSettings(module: Module)... | 1 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 623 | intellij-kotlin | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsauditapi/jpa/AuthUsernameRepositoryTest.kt | ministryofjustice | 340,068,469 | false | {"Kotlin": 149727, "Mustache": 1803, "Dockerfile": 1436} | package uk.gov.justice.digital.hmpps.hmppsauditapi.jpa
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTe... | 0 | Kotlin | 2 | 0 | 1ac748b38772d3d23c88c7e7e33a09949e15e149 | 1,685 | hmpps-audit-api | MIT License |
app/src/main/java/com/tiriig/whatsdeleted/utility/Notifications.kt | jimale | 459,107,648 | false | {"Kotlin": 35564} | package com.tiriig.whatsdeleted.utility
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.media.RingtoneManager
import android.os.Build
import androidx.core.app.NotificationCompat
im... | 3 | Kotlin | 2 | 38 | 2630fc8d37e50f94eb6b8f483c7c6057da36a705 | 2,654 | WhatsDeleted | Apache License 2.0 |
opentelemetry/server/src/main/kotlin/opentelemetry/ktor/example/plugins/opentelemetry/extractions/capturedHeaders.kt | ktorio | 118,613,634 | false | {"Kotlin": 235717, "HTML": 31889, "FreeMarker": 8801, "Swift": 6462, "CSS": 5404, "JavaScript": 1916} | package opentelemetry.ktor.example.plugins.opentelemetry.extractions
import io.opentelemetry.instrumentation.ktor.v2_0.server.KtorServerTracing
// setCapturedRequestHeaders
fun KtorServerTracing.Configuration.capturedRequestHeaders(vararg headers: String) {
capturedRequestHeaders(headers.asIterable())
}
fun Ktor... | 40 | Kotlin | 340 | 1,448 | f8f6e53f4d912293c06d2351f5cf582fa51a89ff | 759 | ktor-samples | Apache License 2.0 |
test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/transforms/DeferredDeepRenameTest.kt | atlassian-labs | 121,346,908 | false | {"Kotlin": 2152306, "Java": 8400} | package graphql.nadel.tests.next.fixtures.defer.transforms
import graphql.nadel.NadelExecutionHints
import graphql.nadel.tests.next.NadelIntegrationTest
open class DeferredDeepRenameTest : NadelIntegrationTest(
query = """
query {
...@defer {
details {
name # Deep renamed fro... | 27 | Kotlin | 23 | 157 | 89f7d257c01259467c8585fea1a857369eee81f8 | 2,187 | nadel | Apache License 2.0 |
app/src/main/java/com/mynimef/foodmood/data/repository/dao/ClientDao.kt | MYnimef | 637,497,996 | false | null | package com.mynimef.foodmood.data.repository.dao
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.mynimef.foodmood.data.models.database.ClientEntity
@Dao
interface ClientDao {
@Query("SELECT * FROM clien... | 0 | Kotlin | 0 | 0 | 7e4d7f7e31bcb12b61d0b9d39e3323d69d9f331b | 798 | FoodMood-Android | MIT License |
collection-utils-core/src/test/java/com/guardanis/collections/CollectionControllerTests.kt | mattsilber | 48,820,964 | false | {"Java": 93592, "Kotlin": 40943} | package com.guardanis.collections
import android.graphics.Canvas
import android.view.MotionEvent
import android.view.View
import android.widget.ListView
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Assert.*
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.kotlin.*
impor... | 5 | Java | 1 | 0 | 50853d4ed712d7b406cf51eb632e08834e8975dc | 3,278 | collection-utils | Apache License 2.0 |
collection-utils-core/src/test/java/com/guardanis/collections/CollectionControllerTests.kt | mattsilber | 48,820,964 | false | {"Java": 93592, "Kotlin": 40943} | package com.guardanis.collections
import android.graphics.Canvas
import android.view.MotionEvent
import android.view.View
import android.widget.ListView
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Assert.*
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.kotlin.*
impor... | 5 | Java | 1 | 0 | 50853d4ed712d7b406cf51eb632e08834e8975dc | 3,278 | collection-utils | Apache License 2.0 |
network-mvi/src/main/java/ru/shafran/network/session/SessionsUsageHistoryStore.kt | SuLG-ik | 384,238,863 | false | null | package ru.shafran.network.session
import com.arkivanov.mvikotlin.core.store.Store
import ru.shafran.network.companies.data.CompanyId
import ru.shafran.network.session.data.GetSessionUsagesHistoryRequest
import ru.shafran.network.session.data.SessionUsageHistoryItem
interface SessionsUsageHistoryStore :
Store<Ses... | 0 | Kotlin | 0 | 1 | aef4a3083c87e2bd2de1eaff2b9925a5dc226fe2 | 1,073 | ShafranCards | Apache License 2.0 |
code/default_value.kt | kibotu | 79,160,508 | false | null | package de.check24.learningKotlinJava.kotlin.classes
// You can provide default value to constructor parameters:
class defaultValue (name: String, age: Int = 18) {
init {
println("$name ist $age Jahre alt.")
}
}
fun main () {
defaultValue("Markus")
defaultValue(name = "Max", age = 22)
}
// Aus... | 1 | null | 2 | 2 | 9deaa6b866330f0f7173cab84a9e811e691ee000 | 379 | java-is-like-kotlin | MIT License |
app/src/test/java/com/marknkamau/justjava/ui/checkout/CheckoutViewModelTest.kt | MarkNjunge | 86,477,705 | false | null | package com.marknkamau.justjava.ui.checkout
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.Observer
import com.marknjunge.core.data.local.PreferencesRepository
import com.marknjunge.core.data.model.Address
import com.marknjunge.core.data.model.Order
import com.marknjunge.c... | 1 | null | 36 | 74 | e3811f064797d50fadef4033bf1532b3c2ceef8d | 3,662 | JustJava-Android | Apache License 2.0 |
lib/kafka/src/main/kotlin/vdi/component/kafka/index.kt | VEuPathDB | 575,990,672 | false | {"Kotlin": 643010, "Java": 215012, "RAML": 91739, "Makefile": 2361, "Dockerfile": 729, "Shell": 495} | package vdi.components.kafka
import org.apache.kafka.clients.consumer.ConsumerConfig
import org.apache.kafka.clients.producer.ProducerConfig
import org.apache.kafka.common.serialization.StringDeserializer
import org.apache.kafka.common.serialization.StringSerializer
import org.apache.kafka.clients.consumer.KafkaConsum... | 6 | Kotlin | 0 | 0 | 8e02c1598abc74274caddf3e7db8ef11cec9da71 | 4,855 | vdi-service | Apache License 2.0 |
app/src/main/java/io/github/zmunm/insight/viewmodel/GameViewModel.kt | zmunm | 317,224,320 | false | null | package io.github.zmunm.insight.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.asLiveData
import io.github.zmunm.insight.entity.Game
import io.github.zmunm.insight.usecase.GetLike
import io.github.zmunm.insight.usecase.ToggleLike
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coro... | 0 | Kotlin | 2 | 5 | b9b1f0aa330e68665f94b8dc198669525aa79002 | 1,328 | insight | MIT License |
src/main/kotlin/com/fussionlabs/gradle/docker/tasks/DockerLogin.kt | dm0275 | 861,931,270 | false | {"Kotlin": 9705} | package com.fussionlabs.gradle.docker.tasks
import com.fussionlabs.gradle.docker.utils.PluginUtils.dockerExt
import java.io.ByteArrayInputStream
open class DockerLogin: DockerTask() {
override fun exec() {
val username = project.dockerExt.username
val password = project.dockerExt.password
... | 0 | Kotlin | 0 | 0 | e3751addf6d1f6c755b0bfd0a989d0d1176bac66 | 503 | docker-plugin | Apache License 2.0 |
app/src/main/java/me/ssttkkl/mrmemorizer/data/converter/LocalDateConverter.kt | ssttkkl | 437,893,611 | false | {"Kotlin": 77581} | package me.ssttkkl.mrmemorizer.data.converter
import androidx.room.TypeConverter
import java.time.LocalDate
class LocalDateConverter {
@TypeConverter
fun dateToEpochDay(date: LocalDate): Long = date.toEpochDay()
@TypeConverter
fun epochDayToDate(epochDay: Long): LocalDate {
return LocalDate.o... | 0 | Kotlin | 0 | 2 | 3b2ef323465c71c5bfd214a6a71bf2c85c635882 | 347 | Mr.MEMORIZER | MIT License |
zipline-loader/src/jvmTest/kotlin/app/cash/zipline/loader/loaderTestsJvm.kt | cashapp | 41,445,081 | false | {"C": 2214152, "Kotlin": 1352475, "C++": 39612, "Shell": 1471, "CMake": 871, "JavaScript": 313} | /*
* Copyright (C) 2022 Block, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 83 | C | 154 | 2,043 | e7ad22ac5110a20686035b616aef190814472d19 | 1,618 | zipline | Apache License 2.0 |
app/src/test/kotlin/edu/stanford/bdh/engagehf/education/EngageEducationRepositoryTest.kt | StanfordSpezi | 787,513,636 | false | {"Kotlin": 1195675, "Ruby": 1769, "Shell": 212} | package edu.stanford.bdh.engagehf.education
import com.google.common.truth.Truth.assertThat
import com.google.firebase.firestore.CollectionReference
import com.google.firebase.firestore.DocumentReference
import com.google.firebase.firestore.DocumentSnapshot
import com.google.firebase.firestore.FirebaseFirestore
import... | 16 | Kotlin | 2 | 8 | 9eae0b52bc631fa171b4873a739baddad8fe4b2c | 3,997 | SpeziKt | MIT License |
Project-Kotlin-Basics/src/main/kotlin/part_04_Variables_And_Strings/StringFunktions.kt | kostadinlambov | 556,440,716 | false | null | package part_04_Variables_And_Strings
import java.util.*
fun main(args: Array<String>){
val myPet = "Crocodile"
println(myPet.length)
println(myPet.replaceFirstChar {
if (it.isLowerCase())
it.titlecase(Locale.getDefault())
else it.toString()
})
println(myPet.decapitali... | 0 | Kotlin | 0 | 0 | f0ef5e00b3d85f5656348902c0b3cedfe5d9c009 | 536 | Kotlin-development-2022 | MIT License |
app/src/main/java/com/wrbug/kv/sample/AccountLocalSource.kt | WrBug | 440,489,816 | false | {"Kotlin": 69252, "Java": 489} | package com.wrbug.kv.sample
import com.wrbug.kv.annotation.KV
import com.wrbug.kv.annotation.KVGet
@KV
interface AccountLocalSource {
var id: Long
var name: String
fun isMale(): Boolean
fun setMale(male: Boolean)
var user: User
fun getMap(): Map<String, String>
fun removeMap()
fun cl... | 0 | Kotlin | 0 | 5 | c6acca4b65a84b7f37515b2f316b53f7c7e1bf2c | 427 | kv | Apache License 2.0 |
b2bExampleApp/src/main/java/com/stytch/exampleapp/b2b/DiscoveryViewModel.kt | stytchauth | 314,556,359 | false | null | package com.stytch.exampleapp.b2b
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.stytch.sdk.b2b.StytchB2BClient
import com.stytch.sdk.b2b.discovery.Discovery
import com.stytch.sdk.b2b.network.models.AllowedAuthMethods
import com.stytch.sdk.b2b.network.models.AuthMethods
import ... | 4 | Kotlin | 1 | 8 | bcc4045ca304e6eed4605678a86f3147b756ae0b | 2,278 | stytch-android | MIT License |
appcompat/appcompat/src/androidTest/java/androidx/appcompat/app/AppCompatWindowCallbackWrapperTest.kt | JetBrains | 351,708,598 | false | null | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 10 | null | 16 | 59 | e18ad812b77fc8babb00aacfcea930607b0794b5 | 5,221 | androidx | Apache License 2.0 |
RetenoSdkCore/src/main/java/com/reteno/core/data/remote/mapper/DeviceMapper.kt | reteno-com | 545,381,514 | false | {"Kotlin": 1375235, "Java": 161825, "HTML": 17807, "Shell": 379} | package com.reteno.core.data.remote.mapper
import com.reteno.core.data.local.model.device.DeviceCategoryDb
import com.reteno.core.data.local.model.device.DeviceDb
import com.reteno.core.data.local.model.device.DeviceOsDb
import com.reteno.core.data.remote.model.device.DeviceCategoryRemote
import com.reteno.core.data.r... | 1 | Kotlin | 2 | 1 | c6e0b25af2dc39eb0303eb663bc967dda39d4bef | 1,601 | reteno-mobile-android-sdk | MIT License |
sudoku-presenter/src/androidTest/java/com/gmail/jiangyang5157/sudoku_presenter/ResolvePuzzleTaskTest.kt | jiangyang5157 | 95,961,752 | false | null | package com.gmail.jiangyang5157.sudoku_presenter
import android.support.test.runner.AndroidJUnit4
import com.gmail.jiangyang5157.sudoku_presenter.libs.SudokuSolverTest
import com.gmail.jiangyang5157.sudoku_presenter.model.Terminal
import com.google.gson.Gson
import org.junit.Assert
import org.junit.Test
import org.jun... | 0 | Kotlin | 0 | 0 | d104dcc1564192e8255cac3a4e813fd30e3cc600 | 2,082 | sudoku-android | MIT License |
shared/src/commonMain/kotlin/com.sbga.sdgbapp/Net/VO/Mai2/PingResponseVO.kt | NickJi2019 | 717,286,554 | false | {"Kotlin": 107919, "Ruby": 2257, "Swift": 1595, "JavaScript": 485, "HTML": 323} | package com.sbga.sdgbapp.VO.Mai2
import com.sbga.sdgbapp.VO.VOSerializer
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
class PingResponseVO(
@SerialName("result") val result: String?
) : VOSerializer()
| 1 | Kotlin | 1 | 2 | de8bd85171f546f81fa4554a36b339ae7080f84b | 258 | SDGBApp | MIT License |
src/main/java/com/github/siosio/upsource/bean/Project.kt | siosio | 67,378,076 | false | null | package com.github.siosio.upsource.bean
data class Project(
val projectId: String,
val projectName: String,
val headHash: String,
val isReady: Boolean,
val lastCommitDate: Long? = null,
val lastCommitAuthorName: String? = null
)
| 0 | Kotlin | 0 | 1 | 48bea5bf818b1fed618f1e20ced72a6c5d6eebae | 254 | upsource-kotlin-api | MIT License |
example_sample/src/main/java/com/georgebindragon/application/sample/mvrx/TasksState.kt | GeorgeBin | 180,957,762 | false | {"Gradle": 1, "Gradle Kotlin DSL": 8, "Java Properties": 7, "Shell": 1, "Text": 1, "Ignore List": 6, "Batchfile": 1, "Markdown": 1, "TOML": 1, "Proguard": 3, "Java": 229, "XML": 16, "Kotlin": 1} | // package com.georgebindragon.application.sample.mvrx
//
// import com.airbnb.mvrx.Async
// import com.airbnb.mvrx.MvRxState
// import com.airbnb.mvrx.Uninitialized
// import java.util.UUID
//
// /**
// *
// * 创建人:George
// * 类名称:TasksState
// * 类概述:
// * 详细描述:
// *
// *
// * 修改人:
// * 修改时间:
// * 修改备注:
// *... | 0 | Java | 0 | 1 | 03e2d6cf142508883180d78640ab6d222c2ac6c2 | 848 | BaseUtils | MIT License |
app/src/main/java/com/mappls/sdk/demo/kotlin/settings/MapplsGeofenceSetting.kt | mappls-api | 503,209,680 | false | null | package com.mapmyindia.sdk.demo.kotlin.settings
import android.graphics.Color
class MapmyIndiaGeofenceSetting {
var isDefault = true
var circleOutlineWidth = 1f
var circleFillColor = Color.parseColor("#D81B60")
var circleFillOutlineColor = Color.parseColor("#511050")
var draggingLineColor = Color... | 2 | null | 3 | 6 | 9c99d32a2acb24c9947357701e4f507151ff59e1 | 952 | mappls-android-sdk | FSF All Permissive License |
CommonRecycler-Kotlin/src/main/java/com/shuyu/commonrecycler/BindSuperAdapterManager.kt | CarGuo | 74,585,853 | false | null | package com.shuyu.commonrecycler
import android.support.v7.widget.RecyclerView
import android.view.View
import com.shuyu.commonrecycler.listener.OnLoadingListener
import com.shuyu.commonrecycler.xrecycler.ArrowRefreshHeader
import com.shuyu.commonrecycler.xrecycler.LoadingMoreFooter
import com.shuyu.commonrecycler.x... | 1 | Java | 61 | 260 | c759af9544aa025a7ab15991f6b3c5fabc3b3f68 | 5,844 | LazyRecyclerAdapter | MIT License |
app/src/main/java/com/experiments/locate/helper/reporting/ErrorReporter.kt | krupalshah | 76,797,776 | false | null | /*
* Copyright (c) 2016 <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 ... | 0 | Kotlin | 0 | 0 | 4f888c31aca136656bc46cf4b48e62bc0116650e | 1,959 | Locate | Apache License 2.0 |
app/src/main/java/com/you/android/ui/roomlist/RoomListViewModel.kt | bupt-juniorTeam | 351,010,398 | false | null | package com.you.android.ui.roomlist
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.you.android.logic.Repository
import com.you.android.logic.model.RoomListResponse
class RoomListViewModel : ViewModel() {
private val flagLiveData =... | 0 | Kotlin | 1 | 0 | a142b801ba17b79f3fddfcb7a51f72e08a92589f | 621 | You | MIT License |
examples/plugin/src/allopen/UserIsOpenTest.kt | bazelbuild | 119,720,081 | false | null | package plugin.allopen
import java.util.*
class Subclass : User(UUID.randomUUID(), "<EMAIL>")
| 225 | null | 206 | 332 | 7c14a348b8b4529d74f8ee52ff1ec4fbb4e4ac2a | 96 | rules_kotlin | Apache License 2.0 |
android/src/main/kotlin/com/bimsina/ime_pay/ImePayPlugin.kt | truenary | 440,454,712 | true | {"Dart": 5184, "Swift": 4570, "Kotlin": 4123, "Ruby": 2306, "Objective-C": 664} | package com.bimsina.ime_pay
import android.app.Activity
import androidx.annotation.NonNull
import com.swifttechnology.imepaysdk.ENVIRONMENT
import com.swifttechnology.imepaysdk.IMEPayment
import com.swifttechnology.imepaysdk.IMEPaymentCallback
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.... | 0 | null | 0 | 0 | c87686127f3d8222c063a324eace306a959a1952 | 3,991 | ime_pay | MIT License |
src/main/kotlin/homework7/Matrix.kt | faf0be172 | 340,895,478 | false | null | package homework7
import kotlinx.coroutines.Job
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
class Matrix(private val rows: List<IntArray>) {
init {
rows.forEach {
require(it.size == rows.size) { "Matrix is not square" }
}
}
private val size = rows.si... | 1 | Kotlin | 0 | 0 | c53fb9c6b3398917c53efdbafd50f7e93cdfcdc7 | 1,645 | Kotlin_homeworks | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.