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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
client/src/main/kotlin/org/findy_network/findy_common_kt/ProtocolClient.kt | findy-network | 494,781,002 | false | {"Kotlin": 12352, "Shell": 2114, "Java": 217} | package org.findy_network.findy_common_kt
import io.grpc.CallCredentials.*
import io.grpc.ManagedChannel
import org.findy_network.findy_common_kt.ProtocolServiceGrpcKt.ProtocolServiceCoroutineStub
class ProofRequestAttribute(val name: String, val credDefId: String)
class ProtocolClient(private val channel: ManagedCh... | 0 | Kotlin | 1 | 0 | 5ea09532bb2ce952f7fdcdf39501050311e70a3b | 3,665 | findy-common-kt | Apache License 2.0 |
funcify-feature-eng-json/src/main/kotlin/funcify/feature/json/behavior/KJsonScalarBehavior.kt | anticipasean | 458,910,592 | false | {"Kotlin": 2751524, "HTML": 1817} | package funcify.feature.json.behavior
internal interface KJsonScalarBehavior<WT> : KJsonBehavior<WT>
| 0 | Kotlin | 0 | 0 | 284b941de10a5b85b9ba1b5236a1d57289e10492 | 102 | funcify-feature-eng | Apache License 2.0 |
messaging-ui/src/main/java/com/nabla/sdk/messaging/ui/scene/messages/adapter/content/FileMessageContentBinder.kt | nabla | 478,468,099 | false | null | package com.nabla.sdk.messaging.ui.scene.messages.adapter.content
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.annotation.AttrRes
import coil.load
import com.google.android.material.resources.TextAppearance
import com.nabla.sdk.core.data.helper... | 0 | Kotlin | 1 | 16 | 83f1c42f21e826dd11b1330fb2d800a67720ea6c | 3,308 | nabla-android | MIT License |
app/src/main/java/id/uinjkt/salaamustadz/ui/adapter/profile/AdapterProfileUser.kt | Teguhmr | 848,863,621 | false | {"Kotlin": 556881, "Java": 799, "JavaScript": 174} | package id.uinjkt.salaamustadz.ui.adapter.profile
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import com.google.android.material.chip.Chip
impor... | 0 | Kotlin | 0 | 0 | 305c5c91e2d065342778ac556dbbdcb957e1f71e | 2,981 | Salaam-Ustadz | Apache License 2.0 |
app/core/src/main/java/com/thechance/core/domain/usecase/coupon/ClipCouponUseCase.kt | TheChance101 | 642,833,370 | false | {"Kotlin": 344872, "Dockerfile": 185} | package com.thechance.core.domain.usecase.coupon
import com.thechance.core.domain.repository.HoneyMartRepository
import com.thechance.core.utils.*
import org.koin.core.component.KoinComponent
class ClipCouponUseCase(private val repository: HoneyMartRepository) : KoinComponent {
suspend operator fun invoke(userId:... | 1 | Kotlin | 6 | 22 | aad54550989c7eb8b75c256c36d2d9f795cbb189 | 991 | Honey-Mart-Server | Apache License 2.0 |
network-protection/network-protection-impl/src/test/java/com/duckduckgo/networkprotection/impl/settings/geoswitching/CountryUtilsKtTest.kt | duckduckgo | 78,869,127 | false | {"Kotlin": 14333964, "HTML": 63593, "Ruby": 20564, "C++": 10312, "JavaScript": 8463, "CMake": 1992, "C": 1076, "Shell": 784} | package com.duckduckgo.networkprotection.impl.settings.geoswitching
import org.junit.Assert.assertEquals
import org.junit.Test
class CountryUtilsTest {
@Test
fun testEmojiForCountryCode() {
assertEquals("🇬🇧", getEmojiForCountryCode("gb"))
assertEquals("🇬🇧", getEmojiForCountryCode("GB"))
... | 67 | Kotlin | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 1,069 | Android | Apache License 2.0 |
payment-sdk-core/src/main/java/payment/sdk/android/core/Utils.kt | network-international | 187,156,001 | false | {"Kotlin": 374798, "Java": 39575} | package payment.sdk.android.core
object Utils {
fun String.getQueryParameter(param: String): String? {
return parseUrlParameters(this)[param]
}
private fun parseUrlParameters(urlString: String): Map<String, String> {
val params = mutableMapOf<String, String>()
val regex = Regex("... | 2 | Kotlin | 7 | 5 | 49bc36af7d87dcd46ef8152e342e4cb4e172de95 | 567 | payment-sdk-android | MIT No Attribution |
src/com/vitorblog/antiop/model/Jar.kt | Jaoow | 377,959,433 | true | {"Kotlin": 12198} | package com.vitorblog.antiop.model
import java.io.File
/* <NameWithPackage, Class> */
class Jar(val file:File, val files:HashMap<String, String>) | 0 | null | 0 | 0 | f651ac694a6e2d23066af0c082556be13991dd19 | 180 | BlogAntiForceOp | MIT License |
kotlin-antd/src/main/kotlin/antd/grid/Row.kt | rbargues | 302,350,324 | true | {"Kotlin": 1224294, "HTML": 1503} | @file:JsModule("antd/lib/grid/row")
@file:JsNonModule
package antd.grid
import antd.*
import org.w3c.dom.*
import react.*
@JsName("default")
external object RowComponent : Component<RowProps, RowState> {
override fun render(): ReactElement?
}
external interface RowProps : HTMLAttributes<HTMLDivElement>, RProps ... | 0 | null | 0 | 0 | 439ef1f01ffea759cf3fc51ede4e60a896cbfd87 | 564 | kotlin-js-wrappers | Apache License 2.0 |
arrow-libs/fx/arrow-fx/src/main/kotlin/arrow/fx/extensions/duration/semigroup/DurationSemigroup.kt | clojj | 343,913,289 | true | {"Kotlin": 6274993, "SCSS": 78040, "JavaScript": 77812, "HTML": 21200, "Scala": 8073, "Shell": 2474, "Ruby": 83} | package arrow.fx.extensions.duration.semigroup
import arrow.fx.IODeprecation
import arrow.fx.extensions.DurationSemigroup
import arrow.fx.typeclasses.Duration
import arrow.fx.typeclasses.Duration.Companion
import kotlin.Deprecated
import kotlin.PublishedApi
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* cach... | 0 | null | 0 | 0 | 5eae605bbaeb2b911f69a5bccf3fa45c42578416 | 1,273 | arrow | Apache License 2.0 |
app/src/main/java/com/pechuro/cashdebts/ui/fragment/countryselection/CountrySelectionFragmentViewModel.kt | Ilyshka991 | 171,679,797 | false | null | package com.pechuro.cashdebts.ui.fragment.countryselection
import androidx.recyclerview.widget.DiffUtil
import com.pechuro.cashdebts.model.entity.DiffResult
import com.pechuro.cashdebts.model.entity.CountryData
import com.pechuro.cashdebts.ui.base.BaseViewModel
import com.pechuro.cashdebts.ui.fragment.countryselection... | 0 | Kotlin | 0 | 3 | afb871ebb70b2863a1f2c290f7e06a3f5b9feab6 | 2,113 | CashDebts | Apache License 2.0 |
app/src/main/java/com/eltonkola/comfyflux/app/usecase/QueueUseCase.kt | eltonkola | 837,643,078 | false | {"Kotlin": 274642, "Jupyter Notebook": 8656} | package com.eltonkola.comfyflux.app.usecase
import android.util.Log
import com.eltonkola.comfyflux.data.model.QueueUiState
import com.eltonkola.comfyflux.data.netwrok.FluxAPI
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotli... | 0 | Kotlin | 1 | 1 | c0d2a6d106ff9df1bc9cf0ddce6d92a4da1254b7 | 1,099 | ComfyFlux | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/transformer/PersonTransformer.kt | ministryofjustice | 515,276,548 | false | null | package uk.gov.justice.digital.hmpps.approvedpremisesapi.transformer
import org.springframework.stereotype.Component
import uk.gov.justice.digital.hmpps.approvedpremisesapi.api.model.Person
import uk.gov.justice.digital.hmpps.approvedpremisesapi.model.community.OffenderDetailSummary
import uk.gov.justice.digital.hmpps... | 9 | Kotlin | 1 | 1 | 78538b994b84b450dcab3172b4ff66a538447d6d | 1,775 | hmpps-approved-premises-api | MIT License |
src/main/kotlin/ui/components/Navigation.kt | wcodesoft | 373,918,234 | false | {"Kotlin": 27490} | package ui.components
import androidx.compose.foundation.layout.size
import androidx.compose.material.BottomNavigation
import androidx.compose.material.BottomNavigationItem
import androidx.compose.material.Icon
import androidx.compose.material.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
... | 0 | Kotlin | 0 | 0 | 69cc64f41fc13e22261f1998980003dffc68c3a8 | 1,003 | sentency-desktop | MIT License |
app/src/main/kotlin/su/katso/synonym/common/entities/EncryptionInfo.kt | dakatso | 158,115,410 | false | {"Kotlin": 57799} | package su.katso.synonym.common.entities
import com.google.gson.annotations.SerializedName
data class EncryptionInfo(
@SerializedName("cipherkey")
val cipherKey: String,
@SerializedName("ciphertoken")
val cipherToken: String,
@SerializedName("public_key")
val publicKey: String,
@Serialized... | 0 | Kotlin | 0 | 1 | 38137f03e94d1c1c864d0faebaffd3cddac70ddc | 367 | Synonym | Apache License 2.0 |
StorageExplorer/src/main/java/com/commonsware/android/storage/StorageRepository.kt | Armyoftheworld | 620,695,260 | false | null | /*
Copyright (c) 2019 CommonsWare, LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required
by applicable law or agreed to in writing... | 0 | Kotlin | 0 | 0 | eb0bae4d156921709edb384af82bd7aa448b5049 | 3,507 | cw-android-q | Apache License 2.0 |
app/src/main/java/com/jiangkang/ktools/web/HybridActivity.kt | 155zhang | 123,068,902 | true | {"Kotlin": 387549, "JavaScript": 14024, "HTML": 5095, "CMake": 3043, "CSS": 2570, "C++": 968, "Makefile": 689, "Shell": 429} | package com.jiangkang.ktools.web
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import com.jiangkang.ktools.R
import com.jiangkang.tools.utils.ToastUtils
import kotlinx.android.synthetic.main.activity_hybrid.*
class HybridActivity : AppCompatActivity() {
override fun onCreate(savedInsta... | 0 | Kotlin | 0 | 0 | 26ecade56fe1980722975a94b4aae1ad1783309f | 1,118 | KTools | MIT License |
order/src/main/kotlin/me/rasztabiga/thesis/order/domain/query/handler/OrderHandler.kt | BartlomiejRasztabiga | 604,846,079 | false | null | package me.rasztabiga.thesis.order.domain.query.handler
import me.rasztabiga.thesis.order.adapter.`in`.rest.api.OrderResponse
import me.rasztabiga.thesis.order.domain.command.event.OrderStartedEvent
import me.rasztabiga.thesis.order.domain.query.exception.OrderNotFoundException
import me.rasztabiga.thesis.order.domain... | 14 | Kotlin | 0 | 0 | a343a10934d0b69d185c3ba632fd2e802077d7f9 | 1,256 | thesis | MIT License |
androidapp/src/com/lilli/gulliver/TorrentDownloader.kt | chenkaigithub | 57,477,549 | true | {"Kotlin": 34863, "Python": 12192, "Java": 3848} | package com.lilli.gulliver
import android.content.Context
import com.lilli.gulliver.torrentprovider.TorrentContract
import java.io.File
object TorrentDownloader : Downloader {
val AUTHORITY = "com.lilli.gulliver.torrentprovider"
public override fun getData(resource: String, context: Context?, options: Map<St... | 0 | Kotlin | 0 | 0 | e027f48ddee22609c3302b2a9f7f40d522741c5a | 860 | lilli | The Unlicense |
app/src/main/java/wannabit/io/cosmostaion/ui/main/chain/evm/EvmEcoSystemViewHolder.kt | cosmostation | 418,314,439 | false | {"Java": 5007328, "Kotlin": 3109600, "Shell": 3941} | package wannabit.io.cosmostaion.ui.main.chain.evm
import android.content.Context
import androidx.recyclerview.widget.RecyclerView
import com.google.gson.JsonObject
import com.squareup.picasso.Picasso
import wannabit.io.cosmostaion.R
import wannabit.io.cosmostaion.common.goneOrVisible
import wannabit.io.cosmostaion.dat... | 0 | Java | 43 | 83 | b04f3615c7c7b4407d719e160155a8c03fbae3a9 | 982 | cosmostation-android | MIT License |
app/src/main/java/com/mbobiosio/rickandmorty/presentation/characterlist/CharacterFragment.kt | mbobiosio | 490,827,613 | false | null | package com.mbobiosio.rickandmorty.presentation.characterlist
import android.os.Bundle
import android.view.Menu
import android.view.MenuInflater
import android.view.View
import androidx.appcompat.widget.SearchView
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.l... | 0 | Kotlin | 1 | 2 | d88c43ecb806ddff4a914f9a8e365b4b2f256a18 | 3,452 | RickAndMorty-GraphQL | Apache License 2.0 |
db-async-common/src/main/kotlin/com/github/mauricio/async/db/SSLConfiguration.kt | KotlinPorts | 77,183,383 | false | null | package com.github.mauricio.async.db
import java.io.File
/**
*
* Contains the SSL configuration necessary to connect to a database.
*
* @param mode whether and with what priority a SSL connection will be negotiated, default disabled
* @param rootCert path to PEM encoded trusted root certificates, None to use int... | 5 | Kotlin | 2 | 23 | 942ebfeee4601f9580916ed551fcfd2f8084d701 | 1,514 | pooled-client | Apache License 2.0 |
clouddriver-sql/src/main/kotlin/com/netflix/spinnaker/config/SqlEventCleanupAgentConfigProperties.kt | spinnaker | 37,556,951 | false | null | /*
* Copyright 2019 Netflix, 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 agreed to ... | 18 | null | 1028 | 434 | 11707d495925eee4665e1e8faf09c0c61ca73a04 | 1,732 | clouddriver | Apache License 2.0 |
documentation/src/test/kotlin/guides/Coroutines.kt | smallrye | 198,222,234 | false | {"Java": 3979205, "Kotlin": 37999, "Shell": 3208, "Just": 2073} | import io.smallrye.mutiny.Multi
import io.smallrye.mutiny.Uni
// <importStatements>
import io.smallrye.mutiny.coroutines.asFlow
import io.smallrye.mutiny.coroutines.asMulti
import io.smallrye.mutiny.coroutines.asUni
import io.smallrye.mutiny.coroutines.awaitSuspending
// </importStatements>
import io.smallrye.mutiny.co... | 18 | Java | 125 | 814 | 9fe309f9106b7e820be2d5bbe334bd7abe34bc5b | 1,794 | smallrye-mutiny | Apache License 2.0 |
platform/workspaceModel/ide/src/com/intellij/workspaceModel/ide/impl/IdeVirtualFileUrlManagerImpl.kt | LemonNekoGH | 135,536,587 | false | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.workspaceModel.ide.impl
import com.intellij.openapi.Disposable
import com.intellij.openapi.project.Project
import com.intellij.openapi.roots.impl.ProjectRoot... | 1 | null | 1 | 1 | e75042a90a9a0dcb1f72d0fb48be880ec0a035c3 | 3,383 | intellij-community | Apache License 2.0 |
app/src/main/java/guideme/volunteers/ui/fragments/genericlist/Ext.kt | mniami | 79,149,480 | false | {"Kotlin": 138804, "Java": 16817, "Shell": 349} | package guideme.volunteers.ui.fragments.genericlist
import guideme.volunteers.helpers.dataservices.datasource.DataSource
import guideme.volunteers.helpers.dataservices.datasource.ObservableDataSource
fun DataSource.isObservableDataSource(): Boolean {
return this is ObservableDataSource<*>
}
| 0 | Kotlin | 0 | 1 | ec79ba258d26206d8cd2ee7eb8ebcdc94696be5f | 298 | volunteers | Apache License 2.0 |
app/src/main/java/guideme/volunteers/ui/fragments/genericlist/Ext.kt | mniami | 79,149,480 | false | {"Kotlin": 138804, "Java": 16817, "Shell": 349} | package guideme.volunteers.ui.fragments.genericlist
import guideme.volunteers.helpers.dataservices.datasource.DataSource
import guideme.volunteers.helpers.dataservices.datasource.ObservableDataSource
fun DataSource.isObservableDataSource(): Boolean {
return this is ObservableDataSource<*>
}
| 0 | Kotlin | 0 | 1 | ec79ba258d26206d8cd2ee7eb8ebcdc94696be5f | 298 | volunteers | Apache License 2.0 |
remoter/src/main/java/remoter/compiler/kbuilder/Common.kt | josesamuel | 100,955,488 | false | {"Kotlin": 310103, "Java": 254447, "HTML": 2432, "AIDL": 1911} | package remoter.compiler.kbuilder
import com.squareup.kotlinpoet.ClassName
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import com.squareup.kotlinpoet.STAR
import com.squareup.kotlinpoet.TypeName
import com.squareup.kotlinpoet.asTypeName
import remoter.annotations.NullableType
import ... | 3 | Kotlin | 14 | 81 | 34736563db8d675208be0b0962273e1a7221cdc4 | 7,679 | remoter | Apache License 2.0 |
fork-runner/src/main/java/com/shazam/fork/preprocessor/TestsPreprocessor.kt | agoda-com | 110,643,626 | true | {"Gradle": 16, "Java Properties": 17, "Shell": 5, "Ignore List": 4, "Batchfile": 2, "YAML": 1, "Markdown": 1, "Java": 276, "HTML": 9, "CSS": 7, "Kotlin": 38, "Less": 1, "JavaScript": 17, "Groovy": 4, "INI": 3, "Proguard": 1, "XML": 2, "JSON": 2, "JSON with Comments": 1, "SCSS": 12, "Text": 1} | package com.shazam.fork.preprocessor
import com.shazam.fork.CustomExecutionStrategy
import com.shazam.fork.model.TestCaseEvent
class TestsPreprocessor(private val executionStrategy: CustomExecutionStrategy) {
fun process(input: Collection<TestCaseEvent>): Collection<TestCaseEvent> {
return if (executionSt... | 4 | Java | 4 | 16 | 0440615dc627d7650893279eae90f7bd4299a483 | 565 | fork | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/intentions/declarations/convertMemberToExtension/genericClassWithInVariance.kt | ingokegel | 72,937,917 | true | null | // AFTER-WARNING: Parameter 'x' is never used
class Foo<in T> {
fun <caret>bar(x: T) {}
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 93 | intellij-community | Apache License 2.0 |
src/test/kotlin/com/babylonml/backend/training/operations/AddTests.kt | babylonml | 800,853,059 | false | {"Gradle Kotlin DSL": 1, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "INI": 1, "Kotlin": 21, "Java": 48, "YAML": 2} | package com.babylonml.backend.training.operations
import com.babylonml.backend.training.optimizer.SimpleGradientDescentOptimizer
import com.babylonml.backend.training.TrainingExecutionContext
import com.babylonml.matrix.FloatMatrix
import com.babylonml.SeedsArgumentsProvider
import org.apache.commons.rng.simple.Random... | 1 | Java | 0 | 1 | 0caac6021678044e0cec4e7ba9c0041d5509d0ee | 3,293 | babylonml | Apache License 2.0 |
src/main/kotlin/com/stepanov/bbf/bugfinder/manager/ReportProperties.kt | mandelshtamd | 249,374,670 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | package com.stepanov.bbf.bugfinder.manager
import com.stepanov.bbf.reduktor.util.ReduKtorProperties
import java.io.File
import java.util.*
object ReportProperties {
private val file = File("bbf.conf")
fun getPropValue(name: String): String? {
val props = Properties()
props.load(file.inputStr... | 1 | null | 1 | 1 | da010bdc91c159492ae74456ad14d93bdb5fdd0a | 476 | bbfgradle | Apache License 2.0 |
dexplore-cli/src/main/java/io/github/neonorbit/dexplore/CommandLine.kt | NeonOrbit | 477,329,014 | false | {"Gradle": 5, "Shell": 5, "Text": 1, "Ignore List": 4, "Batchfile": 2, "Git Attributes": 1, "Markdown": 1, "Kotlin": 27, "Java": 71, "INI": 1, "Smali": 13, "XML": 19} | /*
* Copyright (C) 2022 NeonOrbit
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 0 | Java | 5 | 92 | 8dab4cb5b1ff62d67c7a26c490ee4e660c726f7c | 1,317 | Dexplore | Apache License 2.0 |
dexplore-cli/src/main/java/io/github/neonorbit/dexplore/CommandLine.kt | NeonOrbit | 477,329,014 | false | {"Gradle": 5, "Shell": 5, "Text": 1, "Ignore List": 4, "Batchfile": 2, "Git Attributes": 1, "Markdown": 1, "Kotlin": 27, "Java": 71, "INI": 1, "Smali": 13, "XML": 19} | /*
* Copyright (C) 2022 NeonOrbit
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 0 | Java | 5 | 92 | 8dab4cb5b1ff62d67c7a26c490ee4e660c726f7c | 1,317 | Dexplore | Apache License 2.0 |
src/main/kotlin/no/fg/hilflingbackend/controller/SearchController.kt | Fotogjengen | 206,387,255 | false | {"Kotlin": 219625, "Java": 3634, "Dockerfile": 1064, "Shell": 891} | package no.fg.hilflingbackend.controller
import no.fg.hilflingbackend.dto.MotiveDto
import no.fg.hilflingbackend.service.SearchService
import no.fg.hilflingbackend.utils.ResponseOk
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bi... | 12 | Kotlin | 1 | 1 | c685c0696d45a6e786b5ce7df5ddafdb5ed5205c | 755 | hilfling-photo-backend | MIT License |
ldtk-api/src/commonMain/kotlin/com/lehaine/ldtk/LayerIntGridAutoLayer.kt | LeHaine | 317,728,558 | false | null | package com.lehaine.ldtk
open class LayerIntGridAutoLayer(
project: Project,
val tilesetDefJson: TilesetDefinition,
intGridValues: List<IntGridValueDefinition>,
json: LayerInstance
) : LayerIntGrid(project, intGridValues, json) {
open val tileset = project.tilesets[json.tilesetDefUid]!!
val au... | 2 | Kotlin | 3 | 9 | dd534a8d90ec9d818c8247f591a0538ef4c2f6a0 | 1,173 | kt-ldtk-api | MIT License |
app/src/main/java/com/ctech/eaty/response/SearchResponse.kt | dbof10 | 116,687,959 | false | null | package com.ctech.eaty.response
import com.ctech.eaty.entity.Product
import com.google.gson.annotations.SerializedName
data class SearchResponse(@SerializedName("hits")val products: List<Product>) | 2 | null | 11 | 49 | 2e3445debaedfea03f9b44ab62744046fe07f1cc | 198 | hunt-android | Apache License 2.0 |
espressopageobject/src/main/java/com/atiurin/espressopageobject/core/espresso/action/EspressoAction.kt | alex-tiurin | 203,062,137 | false | {"Markdown": 12, "Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "YAML": 1, "Proguard": 2, "XML": 41, "Kotlin": 96, "Java": 2} | package com.atiurin.espressopageobject.core.espresso.action
import androidx.test.espresso.ViewAction
import androidx.test.espresso.ViewInteraction
import com.atiurin.espressopageobject.core.common.Operation
import com.atiurin.espressopageobject.core.common.OperationIterationResult
import com.atiurin.espressopageobject... | 0 | Kotlin | 6 | 21 | 927500c698a84f67e0c15e133db4f5b04ee82b1a | 656 | espresso-page-object | Apache License 2.0 |
appKotlin/src/main/java/com/pvryan/easycryptsample/Constants.kt | ryan652 | 95,847,881 | false | null | /*
* Copyright 2018 Priyank Vasa
* 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... | 3 | Kotlin | 18 | 109 | 4ef803c4bf097079401708caf92be434d11fd8e1 | 1,232 | EasyCrypt | Apache License 2.0 |
src/main/kotlin/coroutines/async.kt | nazmulidris | 116,611,009 | false | null | /*
* Copyright 2020 Nazmul Idris All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 1 | Kotlin | 1 | 1 | e7770f3b7003775d3c17f951f636850d1312a2b7 | 2,524 | kt-scratch | Apache License 2.0 |
legacy/ui/legacy/src/main/java/com/fsck/k9/ui/push/PushInfoFragment.kt | thunderbird | 1,326,671 | false | null | package com.fsck.k9.ui.push
import android.content.ActivityNotFoundException
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.provider.Settings
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.wi... | 846 | null | 2467 | 9,969 | 8b3932098cfa53372d8a8ae364bd8623822bd74c | 3,779 | thunderbird-android | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/Cube.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mite... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,011 | icons | MIT License |
app/src/main/java/io/homeassistant/companion/android/settings/websocket/views/WebsocketSettingView.kt | psbankar | 469,704,063 | true | {"Kotlin": 1335494} | package io.homeassistant.companion.android.settings.websocket.views
import android.app.UiModeManager
import android.content.res.Configuration
import android.os.Build
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import a... | 0 | null | 0 | 0 | 2de5815123956bde81badac7f413fe0f20484aa3 | 3,486 | android | Apache License 2.0 |
app/src/main/java/com/udacity/loadapp/util/DownloadRequestsStore.kt | jploz | 343,891,618 | false | null | package com.udacity.loadapp.util
import android.content.Context
import android.util.Log
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
class DownloadRequestsSto... | 0 | Kotlin | 0 | 0 | 7259636d163ce979cc7eed61f16444b381ccd274 | 1,584 | android-nd-load-app | Apache License 2.0 |
couchbase-entity/src/test/resources/SimpleMapperTest.kt | SchwarzIT | 92,849,438 | false | null | import kaufland.com.coachbasebinderapi.mapify.IMapifyable
import kaufland.com.coachbasebinderapi.mapify.Mapify
import kaufland.com.coachbasebinderapi.mapify.Mapifyable
import kaufland.com.coachbasebinderapi.mapify.Mapper
import java.io.Serializable
@Mapper
class SimpleMapperTest {
@Mapify
private val name : S... | 0 | Kotlin | 0 | 9 | 4cb0ef258f932c9334eafa736768f7ff60fd4d97 | 1,175 | andcouchbaseentity | MIT License |
libraries/core-ui/src/main/kotlin/io/plastique/core/dialogs/OnConfirmListener.kt | plastiqueapp | 150,879,887 | false | null | package io.plastique.core.dialogs
interface OnConfirmListener {
fun onConfirm(dialog: ConfirmationDialogFragment)
}
| 0 | Kotlin | 2 | 9 | 9271853f3741add18822858cbad9d4f8e8104f54 | 121 | plastique | Apache License 2.0 |
app/src/main/java/com/chhemsronglong/together/MessageTab/AlertViewModel.kt | srongch | 165,931,762 | false | {"Kotlin": 250907} | package com.chhemsronglong.together.MessageTab
import android.arch.lifecycle.LiveData
import com.google.android.gms.tasks.OnFailureListener
import com.chhemsronglong.together.Common.*
import com.chhemsronglong.together.DataModel.*
import com.chhemsronglong.together.Firebase.*
import com.chhemsronglong.together.util.ma... | 0 | Kotlin | 0 | 0 | 56fd2f99fbe2e8d010180acd84eaf36a8d47a8b2 | 1,443 | Together | MIT License |
app/src/main/java/com/android/skeleton/data/feature/GetRecipesRecipe.kt | tlundgren | 409,930,171 | false | {"Kotlin": 66971} | package com.android.skeleton.data.feature
/**
* Recipe embedded in a [GetRecipesHit].
*/
class GetRecipesRecipe(
val label: String
) | 0 | Kotlin | 0 | 0 | 7328ab2fe8d88ea16d9517d53bc56993ff6b8c66 | 139 | skeleton_android | MIT License |
src/main/kotlin/top/kanetah/kotlin/pattern/adapterPattern/TestAdapterPattern.kt | kanetah | 125,836,744 | false | null | package top.kanetah.kotlin.pattern.adapterPattern
import org.junit.Test
/**
* create by kanetah on 2018/3/26
* 适配器将一个类的接口转换成客户希望的另外一个接口。
* 适配器模式使得原本由于接口不兼容而不能一起工作的那些类可以一起工作。
*/
class TestAdapterPattern {
@Test
fun test() {
val captain = Captain(FishingBoatAdapter())
captain.row()
}
}
| 0 | Kotlin | 0 | 0 | 201d093534f2e94c8e295f1bc75a8d520d5ed890 | 319 | KotlinPattern | MIT License |
modules/vm/src/test/kotlin/org/acornlang/vm/unit/unary.kt | mworzala | 506,414,489 | false | null | package org.acornlang.vm.unit
import org.acornlang.vm.*
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
class TestUnaryEval {
@Test
fun `unary negate`() {
val source = """
-1
""".trimIndent()
val value = evalExpr(source)
val... | 1 | Kotlin | 0 | 0 | f1b2565aa7c3f0d17f516ce594f96c3eb27a7407 | 646 | acorn-interpreter | Apache License 2.0 |
BazaarPay/src/main/java/ir/cafebazaar/bazaarpay/data/payment/models/pay/BalanceResult.kt | cafebazaar | 489,705,723 | false | {"Kotlin": 379916, "Java": 39842} | package ir.cafebazaar.bazaarpay.data.payment.models.pay
data class BalanceResult(
val amount: String,
val humanReadableAmount: String
) | 2 | Kotlin | 2 | 9 | cd3a3befd8eb51fc635133baf356d130502b5d49 | 144 | BazaarPay | Apache License 2.0 |
sample/src/main/java/cn/nekocode/template/screen/UIRouter.kt | devopsmi | 96,514,604 | true | {"Kotlin": 5030} | package cn.nekocode.template.screen
import android.content.Context
import cn.nekocode.meepo.annotation.Bundle
import cn.nekocode.meepo.annotation.TargetClass
import cn.nekocode.meepo.Meepo
import cn.nekocode.template.data.DO.Meizi
import cn.nekocode.template.screen.page2.Page2Activity
import cn.nekocode.template.scree... | 0 | Kotlin | 0 | 0 | 33676f670bc796e2b0df8028bcdd2c21f8c5cb46 | 678 | Kotlin-Android-Template | Apache License 2.0 |
src/main/kotlin/ru/nsu_null/npide/ide/platform/Scrollbar.kt | null-company | 423,876,507 | false | {"Kotlin": 163037, "ANTLR": 8015} | package ru.nsu_null.npide.ide.platform
import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.foundation.rememberScrollbarAdapter
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.Dp
@Co... | 2 | Kotlin | 0 | 2 | c2549fe8d27df6eedba7443d888a1c2cb6bd9c18 | 759 | NPidE | MIT License |
kotlin-antd/antd-samples/src/main/kotlin/samples/tabs/Position.kt | oxiadenine | 206,398,615 | false | {"Kotlin": 1619835, "HTML": 1515} | package samples.tabs
import antd.select.SelectComponent
import antd.select.SelectValue
import antd.select.option
import antd.select.select
import antd.tabs.tabPane
import antd.tabs.tabs
import kotlinx.css.marginBottom
import kotlinx.css.px
import react.*
import react.dom.div
import styled.css
import styled.styledDiv
... | 1 | Kotlin | 8 | 50 | e0017a108b36025630c354c7663256347e867251 | 2,562 | kotlin-js-wrappers | Apache License 2.0 |
kotlin-electron/src/jsMain/generated/electron/main/WillNavigateEvent.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
package electron.main
typealias WillNavigateEvent = electron.core.WillNavigateEvent
| 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 139 | kotlin-wrappers | Apache License 2.0 |
library_widget/src/main/java/com/crimson/widget/loading/EmptyLayout.kt | crimson0829 | 231,767,479 | false | null | package com.crimson.widget.loading
import android.content.Context
import android.util.AttributeSet
import android.view.Gravity
import android.view.ViewGroup
import android.widget.FrameLayout
import androidx.appcompat.widget.AppCompatTextView
import androidx.core.content.ContextCompat
import com.crimson.widget.R
/**
... | 0 | Kotlin | 1 | 1 | f5a7282fa1c288b6f02f593ac903ba438e2ed247 | 1,516 | MVVM_Module | Apache License 2.0 |
app/src/main/kotlin/com/whereismymotivation/ui/navigation/Destination.kt | unusualcodeorg | 730,655,456 | false | {"Kotlin": 472092} | package com.whereismymotivation.ui.navigation
import androidx.navigation.NavType
import androidx.navigation.navArgument
object Destination {
data object Splash : Screen("splash")
data object Login : Screen("login")
data object Onboarding : Screen("onboarding")
data object ServerUnreachable : Screen("s... | 0 | Kotlin | 4 | 38 | 5b77e6a6b14ae9ad21e8edd55e8c9b3cc2066f75 | 1,752 | wimm-android-app | Apache License 2.0 |
app/src/main/java/com/mayur/banksymoney/data/local/database/DateConverter.kt | mayurdw | 593,101,496 | false | null | package com.mayur.banksymoney.data.local.database
import androidx.room.TypeConverter
import java.time.Month
/**
* Copied from [https://developer.android.com/training/data-storage/room/referencing-data]
* */
class DateConverter {
@TypeConverter
fun toMonth(value: Int) : Month {
return Month.of(value... | 0 | Kotlin | 0 | 0 | 5b6f3e71caf96415d235cb74e14a4c46fa1d30a2 | 423 | BanksyMoney | MIT License |
app/src/main/java/de/svedie/eqonomize/fragments/EqonomizeFileFragment.kt | svedie | 165,522,109 | false | null | package de.svedie.eqonomize.fragments
import android.app.Activity
import android.content.Context
import android.content.DialogInterface
import android.content.Intent
import android.os.Bundle
import android.provider.OpenableColumns
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGrou... | 0 | Kotlin | 0 | 0 | 114bb1631a37b0b4280364732992cd29088b58b2 | 4,004 | Eqonomize-Android | MIT License |
modules/conflate-jvm/src/test/kotlin/com/encodeering/conflate/experimental/jvm/co/RequeueContinuationTest.kt | encodeering | 81,722,175 | false | null | package com.encodeering.conflate.experimental.jvm.co
import com.encodeering.conflate.experimental.test.any
import com.encodeering.conflate.experimental.test.mock
import com.encodeering.conflate.experimental.test.whenever
import com.winterbe.expekt.expect
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api... | 3 | Kotlin | 0 | 1 | 51fd2e4cee32e29bb72cd182611393d7f8420914 | 4,555 | conflate | Apache License 2.0 |
app/src/main/java/me/pisal/abaclone/model/entity/User.kt | pisalcoding | 528,368,088 | false | {"Kotlin": 97565, "Java": 10129} | package me.pisal.abaclone.model.entity
import java.io.Serializable
data class User(
val id: String,
val name: String,
val dob: String? = null,
val occupation: String? = null,
val profileUrl: String? = null,
): Serializable | 0 | Kotlin | 0 | 3 | eb85740b5a43588d74db121179092bc5816bf9e8 | 244 | aba-ui-clone | Apache License 2.0 |
ROOMDemo/app/src/main/java/com/jjh/android/roomdemo/db/FriendRepository.kt | johnehunt | 277,604,143 | false | null | package com.jjh.android.roomdemo.db
import android.app.Application
import android.util.Log
import com.jjh.android.roomdemo.model.Friend
import io.reactivex.rxjava3.core.Observable
class FriendRepository(private val application: Application,
private val schedulerProvider: SchedulerProvider = Def... | 0 | Kotlin | 1 | 1 | 5f3640ff4c37270b28cd7fa00c77e45039e2592d | 2,315 | kotlin-android | Apache License 2.0 |
src/main/java/com/sdk/platform/apis/audittrail/AuditTrailApiList.kt | gofynd | 337,940,340 | false | null | package com.sdk.platform.apis.audittrail
import kotlinx.coroutines.Deferred
import retrofit2.Response
import okhttp3.ResponseBody
import retrofit2.http.*
import com.sdk.platform.*
import com.sdk.platform.models.audittrail.*
interface AuditTrailApiList {
@GET ("/service/platform/audit-trail/v1.0/company/{comp... | 0 | Kotlin | 4 | 4 | 5e0246485c5e7fc207734325e283b6b201ef6a31 | 1,096 | fdk-client-kotlin | MIT License |
src/main/kotlin/nl/marc/game/GameWithChosenNumbers.kt | AvansInformatica-Marc | 260,951,112 | false | null | package nl.marc.game
class GameWithChosenNumbers(override val numbers: List<Int>, override val result: Int) : Game()
| 0 | Kotlin | 0 | 0 | d7380c04133b139c527993c917bcac6a83f7616d | 118 | CalculateNumberAI | MIT License |
travako-starter/travako-starter-processor/src/main/java/io/arkitik/travako/starter/processor/logger/logger-ext.kt | arkitik | 441,685,610 | false | null | package io.arkitik.travako.starter.processor.logger
import org.slf4j.Logger
import org.slf4j.LoggerFactory
/**
* Created By [*<NAME> *](https://www.linkedin.com/in/iloom/)
* Created At 30 10:03 PM, **Thu, December 2021**
* Project *travako* [arkitik.io](https://arkitik.io)
*/
inline fun <reified T> logger(): Log... | 1 | Kotlin | 0 | 3 | 567a8d28861733b2a8a56c8b052e3cc91977e7e7 | 378 | travako | Apache License 2.0 |
src/main/kotlin/topic_2/NumberOfWords.kt | GionRubitschung | 708,739,829 | false | {"Kotlin": 8611} | package topic_2
fun getNumOfWords(sentence: String): Int {
/**
* `(\p{L}+)` captures one or more unicode letters and puts the match into a group --> matches a word in any language
*
* `|` the or operator, separates the word matcher with the separator matcher
*
* `[^\p{L}]+` captures all ch... | 0 | Kotlin | 0 | 0 | b42267a9c18fdeb75150bcadd5f7b264546b7f78 | 839 | kotlin_1 | MIT License |
androidApp/src/main/java/secret/formula/android/ui/design/Typography.kt | RamziJabali | 579,563,509 | false | {"Kotlin": 19442, "Ruby": 1706, "Swift": 342} | package io.etip.mobile.android.ui.design
import androidx.compose.material.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontWeight
// Set of Material typography styles to start with
object Typography {
val GraphikTypography = Typography(
h1 = TextStyle(
... | 0 | Kotlin | 0 | 0 | bc05ce514856fae9aaf040aeae8405e6568d8d00 | 1,930 | secret-formula-kmm | Apache License 2.0 |
src/test/kotlin/org/rust/ide/formatter/RsSingleImportRemoveBracesFormatProcessorTest.kt | SaarYogev | 211,165,404 | true | {"Kotlin": 3257698, "Rust": 77474, "Lex": 18933, "HTML": 11268, "Shell": 760, "Java": 586, "RenderScript": 318} | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.formatter
class RsSingleImportRemoveBracesFormatProcessorTest : RsFormatterTestBase() {
fun `test remove braces if single import`() = doTextTest("use getopts::{optopt};", "use getopts::... | 0 | null | 0 | 1 | 26be75d84b07150b9f4687216cc4923221de659f | 2,237 | intellij-rust | MIT License |
data_collector/src/main/kotlin/com/sortinghat/backend/data_collector/utils/HttpAbstraction.kt | the-sortinghat | 529,660,037 | false | null | package com.sortinghat.backend.data_collector.utils
interface HttpAbstraction<T> {
fun get(url: String): ResponseHttp<T>
}
| 0 | Kotlin | 0 | 0 | 95695a1808e477ce67d8257891f4fa9be21f8cce | 128 | backend | MIT License |
lib/src/commonMain/kotlin/xyz/mcxross/ksui/model/Transaction.kt | mcxross | 611,172,630 | false | null | package xyz.mcxross.ksui.model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import xyz.mcxross.ksui.model.serializer.DisassembledFieldSerializer
import xyz.mcxross.ksui.model.serializer.ObjectChangeSerializer
@Serializable
data class Transaction(
val data: Data,
val txSignatur... | 0 | Kotlin | 0 | 0 | 163a0be41d3841e2be7770eff20afb6d7aeb57a8 | 2,276 | ksui | Apache License 2.0 |
kotlin-compiler-plugin-common/src/main/kotlin/com/lightningkite/khrysalis/util/actualFqName.kt | lightningkite | 161,243,441 | false | null | package com.lightningkite.khrysalis.util
import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity
import org.jetbrains.kotlin.descriptors.DeclarationDescriptor
import org.jetbrains.kotlin.descriptors.FunctionDescriptor
import org.jetbrains.kotlin.descriptors.PropertyDescriptor
import org.jetbrains.kotli... | 13 | Kotlin | 0 | 9 | b620e939c7461799ae1dae91e9b4b426fa3acfc1 | 1,705 | khrysalis | MIT License |
samples/packs/packv4.voodoo.kts | Geometrically | 327,736,142 | true | {"Kotlin": 631508, "Java": 11999, "Shell": 2818} | mcVersion = "1.12.2"
title = "1.12.2 Pack v4"
authors = listOf("therealfarfetchd")
version = "1.0.0"
modloader {
forge(Forge_12_2.mc1_12_2_latest)
}
icon = rootFolder.resolve("icon.png")
pack {
userFiles = FnPatternList(
include = listOf(
"options.txt",
"quark.cfg",
"... | 0 | null | 0 | 0 | 72b9e4c67ee0d8e91232150667877290667da1d0 | 2,503 | Voodoo | MIT License |
src/test/kotlin/me/camdenorrb/crescentvm/PTIRTests.kt | camdenorrb | 261,362,729 | false | null | package me.camdenorrb.crescentvm
/*
import jdk.incubator.foreign.MemorySegment
import me.camdenorrb.crescentvm.data.TestCode
import me.camdenorrb.crescentvm.lexers.CrescentLexer
import me.camdenorrb.crescentvm.parsers.CrescentParser
import me.camdenorrb.crescentvm.utils.collectSystemOut
import me.camdenorrb.crescentvm... | 0 | Kotlin | 0 | 2 | 59c75ee82a0e5296b90d842825dad7c91e352a82 | 4,703 | CrescentVM | MIT License |
app/src/main/java/com/github/crisacm/sessionmanager/navigation/destinations/SplashScreenDestination.kt | crisacm | 787,713,317 | false | {"Kotlin": 84072} | package com.github.crisacm.sessionmanager.navigation.destinations
import androidx.compose.runtime.Composable
import androidx.navigation.NavController
import com.github.crisacm.sessionmanager.navigation.Home
import com.github.crisacm.sessionmanager.navigation.Login
import com.github.crisacm.sessionmanager.navigation.Sp... | 0 | Kotlin | 0 | 0 | cd2e1ccd31361ec4a5fea6df25ae7f04c4cee000 | 1,425 | android-session-manager | Apache License 2.0 |
publish-component/src/main/java/com/kotlin/android/publish/component/ui/editor/EditorViewModel.kt | R-Gang-H | 538,443,254 | false | null | package com.kotlin.android.publish.component.ui.editor
import com.kotlin.android.api.base.BaseUIModel
import com.kotlin.android.api.base.call
import com.kotlin.android.core.BaseViewModel
import com.kotlin.android.app.data.annotation.ContentType
import com.kotlin.android.app.data.constant.CommConstant
import com.kotlin... | 0 | Kotlin | 0 | 1 | e63b1f9a28c476c1ce4db8d2570d43a99c0cdb28 | 6,842 | Mtime | Apache License 2.0 |
app/src/androidTest/java/com/theathletic/interview/FileReader.kt | ruysay | 334,640,882 | false | null | package com.theathletic.interview
import androidx.test.platform.app.InstrumentationRegistry
import com.theathletic.interview.main.MainApplication
import java.io.IOException
import java.io.InputStreamReader
object FileReader {
fun readStringFromFile(fileId: Int): String {
try {
val inputStream... | 0 | Kotlin | 0 | 0 | 0481b0e8a7ba9c6398d56d7b28befd6df76b81bd | 780 | AthleticMVP | Apache License 2.0 |
app - Copy/src/main/java/com/SShayar/greenglobe/adapter/PostAdapter.kt | krishanmurariji | 758,797,770 | false | {"Kotlin": 89164, "Shell": 5766, "Batchfile": 2674} | package com.SShayar.greenglobe.adapter
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.SShayar.greenglobe.Models.Post
import com.SShayar.greenglobe.Models.User
import com.SShayar.gr... | 0 | Kotlin | 0 | 0 | c3f0a29de67421961285011164c39fcc0035d5b4 | 2,521 | InstagramClone | MIT License |
app - Copy/src/main/java/com/SShayar/greenglobe/adapter/PostAdapter.kt | krishanmurariji | 758,797,770 | false | {"Kotlin": 89164, "Shell": 5766, "Batchfile": 2674} | package com.SShayar.greenglobe.adapter
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.SShayar.greenglobe.Models.Post
import com.SShayar.greenglobe.Models.User
import com.SShayar.gr... | 0 | Kotlin | 0 | 0 | c3f0a29de67421961285011164c39fcc0035d5b4 | 2,521 | InstagramClone | MIT License |
app/src/test/java/com/example/football/presentation/viewmodel/StandingsViewModelTest.kt | joeMalebe | 585,552,196 | false | {"Kotlin": 216425} | package com.example.football.presentation.viewmodel
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.Observer
import com.example.football.FootballService
import com.example.football.data.model.StandingsResponse
import com.example.football.data.repository.StandingsRepository
... | 1 | Kotlin | 0 | 0 | 41509fa010b49d1b956f90ab4d20129f9f96fa44 | 5,463 | Football | Apache License 2.0 |
src/commonMain/kotlin/matt/http/internet/internet.kt | mgroth0 | 532,378,353 | false | null | package matt.http.internet
import matt.http.url.MURL
import matt.lang.not
import matt.model.code.valjson.ValJson.Port
class TheInternet {
// val wasAvailableInThisRuntime by lazy {
// isAvailable()
// }
// val wasNotAvailableInThisRuntime get() = not(wasAvailableInThisRuntime)
private var gotARe... | 0 | Kotlin | 0 | 0 | 50905ac93334c10c5d8ada8571ece565b2b435a7 | 697 | http | MIT License |
src/main/kotlin/io/spring/shinyay/observability/TanzuApplication.kt | shinyay | 436,214,231 | false | {"Kotlin": 2658} | package io.spring.shinyay.observability
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class TanzuApplication
fun main(args: Array<String>) {
runApplication<TanzuApplicat... | 0 | Kotlin | 0 | 0 | c0c69f4f591df869cec9cd9134dbc9331a185bfc | 409 | tanzu-observability-gs | MIT License |
protocol/osrs-225/osrs-225-desktop/src/main/kotlin/net/rsprot/protocol/game/outgoing/codec/camera/CamResetEncoder.kt | blurite | 771,753,685 | false | {"Kotlin": 11355829} | package net.rsprot.protocol.game.outgoing.codec.camera
import net.rsprot.protocol.ServerProt
import net.rsprot.protocol.game.outgoing.camera.CamReset
import net.rsprot.protocol.game.outgoing.prot.GameServerProt
import net.rsprot.protocol.message.codec.NoOpMessageEncoder
import net.rsprot.protocol.metadata.Consistent
... | 5 | Kotlin | 6 | 27 | d08cb7c11ae758b5dcabd6e85d34a4bfdba7ad3c | 457 | rsprot | MIT License |
app/src/main/java/com/example/dessertclicker/MainActivity.kt | SeppoVolsk | 646,752,785 | false | null | /*
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Kotlin | 0 | 0 | db7b24e9f74e5a324e3fdfcd64fd9485f15fa895 | 4,178 | Dessert_Clicker | Apache License 2.0 |
app/src/main/java/com/migferlab/justpizza/domain/flux/UserStore.kt | miguefl | 271,397,963 | false | null | package com.migferlab.justpizza.domain.flux
import com.hoopcarpool.fluxy.FluxyStore
import com.hoopcarpool.fluxy.Result
import com.migferlab.justpizza.domain.model.User
data class UserState(val userResult: Result<User> = Result.Empty())
class UserStore(private val userSideEffects: UserSideEffects) : FluxyStore<UserS... | 0 | Kotlin | 0 | 2 | 61943b933081d7d2ccc0f37d99944da719f40683 | 1,236 | JustPizzaApp | Apache License 2.0 |
src/main/kotlin/com/charleskorn/kaml/YAML.kt | staylward | 162,601,309 | true | {"Kotlin": 139130, "Shell": 2724} | /*
Copyright 2018 <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 writin... | 0 | Kotlin | 0 | 0 | f31c90b5f09f06187f2930c8235d303b3341bea6 | 1,306 | kaml | Apache License 2.0 |
fontawesome/src/de/msrd0/fontawesome/icons/FA_USERS_LINE.kt | msrd0 | 363,665,023 | false | null | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 0 | Kotlin | 0 | 0 | b2fdb74278104be68c95e8f083fc75ab74395112 | 2,312 | fontawesome-kt | Apache License 2.0 |
app/src/main/java/com/android/sample/app/util/LinkNavType.kt | alirezaeiii | 459,039,118 | false | {"Kotlin": 41731} | package com.android.sample.app.util
import android.os.Bundle
import androidx.navigation.NavType
import com.android.sample.app.domain.Link
import com.google.gson.Gson
class LinkNavType : NavType<Link>(isNullableAllowed = false) {
override fun get(bundle: Bundle, key: String): Link? {
return bundle.getParce... | 0 | Kotlin | 4 | 8 | 2415e52dabb4c9ad2edb524d4bfc527ff94e5e48 | 565 | Navigation-Compose | The Unlicense |
src/client/kotlin/slabmagic/utils/ImageBuilder.kt | Jempasam | 717,593,852 | false | {"Kotlin": 356942, "Java": 1036} | package slabmagic.utils
import org.joml.Vector3f
import java.awt.image.BufferedImage
import java.awt.image.WritableRaster
import kotlin.math.abs
import kotlin.math.max
import kotlin.math.min
class ImageBuilder {
private var image: BufferedImage? = null
private fun target(toPaintOn: BufferedImage?=null): Buf... | 0 | Kotlin | 0 | 0 | 5293f67ccc2484961d3c588c2d0824743be4066f | 5,825 | SlateMagic | Creative Commons Zero v1.0 Universal |
src/main/kotlin/uk/gov/justice/digital/hmpps/assessrisksandneeds/api/controllers/SupplementaryRisksController.kt | ministryofjustice | 373,137,019 | false | null | package uk.gov.justice.digital.hmpps.assessrisksandneeds.api.controllers
import io.swagger.v3.oas.annotations.Operation
import io.swagger.v3.oas.annotations.Parameter
import io.swagger.v3.oas.annotations.responses.ApiResponse
import io.swagger.v3.oas.annotations.responses.ApiResponses
import org.springframework.securi... | 9 | Kotlin | 0 | 0 | 0c3f3bd758a851727092a4410f6d55633f77c182 | 4,266 | hmpps-assess-risks-and-needs | MIT License |
day24/src/main/kotlin/Main.kt | rstockbridge | 159,586,951 | false | null | import java.io.File
fun main() {
println("Part I: the solution is ${solvePartI(readImmuneSystemInputFile(), readInfectionInputFile())}.")
println("Part II: the solution is ${solvePartII(readImmuneSystemInputFile(), readInfectionInputFile())}.")
}
fun readImmuneSystemInputFile(): List<String> {
return File... | 0 | Kotlin | 0 | 0 | c404f1c47c9dee266b2330ecae98471e19056549 | 9,760 | AdventOfCode2018 | MIT License |
app/src/main/java/com/jakoon/playground/repository/Repository.kt | andreas-borglin | 186,784,984 | false | null | package com.jakoon.playground.repository
import com.jakoon.playground.data.cache.Cache
import com.jakoon.playground.data.network.TypicodeJsonService
import com.jakoon.playground.model.Post
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.async
import kotlinx.coroutines.supervisorScope
import kot... | 0 | Kotlin | 0 | 0 | d1ab301d2c0b938237721a553138a351f66ea357 | 1,954 | android-playground | Apache License 2.0 |
src/main/kotlin/com/forestvpn/api/client/apis/NotificationsForestVPNAPI.kt | forestvpn | 593,656,292 | false | null | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package com.forestvpn.api.client.apis
import ja... | 0 | Kotlin | 0 | 0 | 06ee868f1fa748bcdfe96515352c334b91dbe353 | 15,459 | api-client-kotlin | MIT License |
kotlin-node/src/jsMain/generated/node/process/UncaughtExceptionListener.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12363456, "JavaScript": 408220} | // Generated by Karakum - do not modify it manually!
package node.process
import js.errors.JsError
typealias UncaughtExceptionListener = (error: JsError, origin: UncaughtExceptionOrigin) -> Unit
| 39 | Kotlin | 165 | 1,330 | 809b00e4aa9fbaa46d0ebfd82ac2b574b5898dfc | 198 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/app/airsignal/weather/util/TimberUtil.kt | tekken5953 | 611,614,821 | false | {"Kotlin": 476575, "Java": 2290} | package app.airsignal.weather.util
import timber.log.Timber
class TimberUtil {
fun getInstance() : TimberUtil {
Timber.plant(Timber.DebugTree())
return this
}
fun d(tag: String, msg: String?) {
Timber.tag(tag).d(msg)
}
fun i(tag: String, msg: String?) {
Timber.ta... | 0 | Kotlin | 0 | 1 | b6eb47b7d6274e60685161baa8f341a89ec7b0d3 | 495 | AS_Cloud_App | Open Market License |
sample/src/main/java/com/kkagurazaka/redukt/sample/query/VisibilityFilter.kt | k-kagurazaka | 115,560,556 | false | null | package com.kkagurazaka.redukt.sample.query
enum class VisibilityFilter {
ALL,
ACTIVE,
COMPLETED
}
| 0 | Kotlin | 0 | 12 | a13bcdd3d934357a0bb8744765efb104efc362ac | 112 | ReduKt | Apache License 2.0 |
app/src/main/java/com/uad/portal/Session.kt | IRedDragonICY | 767,423,190 | false | {"Kotlin": 44134} | package com.uad.portal
data class Session(
var session: String? = null,
var userInfo: UserInfo? = null,
var credentials: Credentials? = null
)
data class ReglabSession(
var session: String? = null,
var credentials: ReglabCredentials? = null
) | 0 | Kotlin | 0 | 0 | 4cea43f906f0e8b804cf72076ae659b359224830 | 264 | portal-uad | MIT License |
src/main/kotlin/me/drbaxr/spektrum/flexible/adapters/java/model/internal/MethodTreeNodeJava.kt | dxworks | 463,883,061 | false | null | package me.drbaxr.spektrum.flexible.adapters.java.model.internal
import me.drbaxr.spektrum.flexible.adapters.java.model.external.ProjectJava
data class MethodTreeNodeJava(
val id: Long,
val callerMethods: Set<MethodTreeNodeJava>
) {
fun toOrderString(project: ProjectJava): String {
val orderMap = ... | 0 | Kotlin | 1 | 0 | 14953414b4b303e5278fba6228ed899ffd6ce0f0 | 2,083 | spektrum | MIT License |
decompiler-gradle-plugin/src/test/kotlin/io/github/iamwent/decompiler/DecompilerPluginTest.kt | iamwent | 778,085,786 | false | {"Kotlin": 3545} | package io.github.iamwent.decompiler
import org.gradle.testfixtures.ProjectBuilder
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
class DecompilerPluginTest {
@Test
fun pluginTest() {
val pluginId = "io.github.iamwent.decompiler"
val project = ProjectBuil... | 0 | Kotlin | 0 | 0 | c1fb11b5bf4cf3f117b86877c197d72538124330 | 459 | decompiler-gradle-plugin | Apache License 2.0 |
src/main/java/httpclient/entity/HttpMethod.kt | shiqos | 199,397,179 | false | {"Kotlin": 2699} | package httpclient.entity
enum class HttpMethod(value: String) {
GET("get"),
POST("post"),
PUT("put"),
DELETE("delete")
} | 0 | Kotlin | 0 | 0 | 29f17b14b807756f88cb004cb3570bcf54199d47 | 138 | HttpClient | Apache License 2.0 |
backend/src/test/kotlin/com/denchic45/studiversity/client/role/CapabilitiesTest.kt | denchic45 | 435,895,363 | false | {"Kotlin": 2110094, "Vue": 15083, "JavaScript": 2830, "CSS": 1496, "HTML": 867} | package com.denchic45.studiversity.client.role
import com.denchic45.studiversity.KtorClientTest
import com.denchic45.studiversity.util.assertedResultIsOk
import com.denchic45.studiversity.util.unwrapAsserted
import com.denchic45.studiversity.api.membership.MembershipApi
import com.denchic45.studiversity.api.role.Capab... | 0 | Kotlin | 0 | 7 | 293132d2f93ba3e42a3efe9b54deb07d7ff5ecf9 | 3,108 | Studiversity | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.