path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/example/flirtcompose/network/RequestApiService.kt | OverLordN7 | 612,099,774 | false | null | package com.example.flirtcompose.network
import com.example.flirtcompose.model.Request
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Query
interface RequestApiService {
@GET("ByLiked")
suspend fun getJournals(
@Query("page") page:Int,
): Response<Request>
} | 0 | Kotlin | 0 | 1 | ffc77ad182d26ab9bb51b482f6d371d228654637 | 307 | FlirtCompose | The Unlicense |
app/src/main/java/com/benli/kotlinweather/main/weather/model/WeatherModel.kt | beilly | 98,971,871 | false | null | package com.benli.kotlinweather.main.weather.model
/**
* Created by shibenli on 2017/8/14.
*/
data class WeatherModel(
val lcation: String = "",
val forecasts: List<Forecast>
)
data class Forecast(
val time: String = "",
val iconText: String = "",
val temperature: String = ""... | 0 | Kotlin | 0 | 1 | 74ad306c941d49a22012d67aa6c05309a81c0452 | 837 | KotlinWeather | Apache License 2.0 |
src/main/kotlin/com/github/sgdan/kiss/syntax/Function.kt | sgdan | 164,282,700 | false | null | package com.github.sgdan.kiss.syntax
import com.github.sgdan.kiss.KissLanguage
import com.github.sgdan.kiss.ast.FunctionNode
class Function(
val name: String,
private val expression: Syntax
) : Syntax() {
lateinit var node: FunctionNode
override fun createNode(kl: KissLanguage) {
node... | 1 | Kotlin | 0 | 1 | d8b52ab6bc4469f68ae599c1690ed929e0923989 | 528 | kiss | MIT License |
components-core/src/main/java/com/adyen/checkout/components/flow/FlowExtensions.kt | leandromagnabosco | 533,836,687 | false | null | /*
* Copyright (c) 2022 Adyen N.V.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by josephj on 19/8/2022.
*/
package com.adyen.checkout.components.flow
import kotlinx.coroutines.channels.BufferOverflow
import kotlinx.coroutines.flow.MutableShar... | 2 | Kotlin | 0 | 0 | c154e989a08f1dc76cf90f6949878621cbbfa644 | 1,088 | testsonarcloud | MIT License |
app/src/main/java/com/bignerdranch/android/photogallery/api/GalleryItem.kt | JRSiwiecki | 705,941,996 | false | {"Kotlin": 21623} | package com.bignerdranch.android.photogallery.api
import android.net.Uri
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class GalleryItem(
val title: String,
val id: String,
@Json(name = "url_s") val url: String,
val owner: String
) {
... | 0 | Kotlin | 0 | 0 | 85a43de40d5474535cc4cafd64e6e36e48c7e8f1 | 509 | PhotoGallery | MIT License |
jvm/src/test/kotlin/fr/xgouchet/elmyr/jvm/factories/LocalDateTimeForgeryFactoryTest.kt | xgouchet | 92,030,208 | false | {"Kotlin": 480997, "Java": 23870} | package fr.xgouchet.elmyr.jvm.factories
import fr.xgouchet.elmyr.annotation.Forgery
import fr.xgouchet.elmyr.junit5.ForgeConfiguration
import fr.xgouchet.elmyr.junit5.ForgeExtension
import fr.xgouchet.elmyr.jvm.JvmConfigurator
import java.time.LocalDateTime
import java.time.ZoneOffset
import kotlin.math.abs
import org... | 6 | Kotlin | 3 | 83 | 0ab6c3a673fd8771e9fc02f0676a3a886992a1ef | 1,199 | Elmyr | MIT License |
src/main/java/io/github/sergkhram/managers/idb/IdbKtManager.kt | SergKhram | 499,425,493 | false | {"Java": 259512, "Kotlin": 23424, "Shell": 1768, "Dockerfile": 1446, "JavaScript": 1438, "CSS": 273} | package io.github.sergkhram.managers.idb
import io.github.sergkhram.data.entity.AppDescription
import io.github.sergkhram.data.entity.Device
import io.github.sergkhram.data.entity.DeviceDirectoryElement
import io.github.sergkhram.data.entity.Host
import io.github.sergkhram.data.enums.DeviceType
import io.github.sergkh... | 1 | null | 1 | 1 | 470961d43892b8b4a04af6c41d77f94102388637 | 7,460 | DeviceIO | Apache License 2.0 |
scuttlebutt-client-lib/src/main/kotlin/org/apache/tuweni/scuttlebutt/lib/RawRequestService.kt | Consensys | 693,991,624 | true | {"SVG": 2, "Java Properties": 2, "Markdown": 64, "Gradle": 64, "Shell": 3, "EditorConfig": 1, "YAML": 13760, "Git Attributes": 1, "Batchfile": 1, "Text": 33, "Ignore List": 2, "Git Config": 1, "Kotlin": 393, "TOML": 8, "Java": 443, "XML": 18, "JSON": 17343, "JavaScript": 4, "CSS": 1, "HTML": 8, "SQL": 5, "INI": 3, "ANT... | // Copyright The Tuweni Authors
// SPDX-License-Identifier: Apache-2.0
package org.apache.tuweni.scuttlebutt.lib
import com.fasterxml.jackson.core.JsonProcessingException
import org.apache.tuweni.scuttlebutt.rpc.RPCAsyncRequest
import org.apache.tuweni.scuttlebutt.rpc.RPCResponse
import org.apache.tuweni.scuttlebutt.r... | 1 | Java | 2 | 0 | d780a654afc90f5fd3c16540d592259487e0a190 | 1,303 | tuweni | Apache License 2.0 |
agp-7.1.0-alpha01/tools/base/common/src/main/java/com/android/utils/concurrency/EvictingExecutorService.kt | jomof | 502,039,754 | true | {"Markdown": 63, "Java Properties": 56, "Shell": 31, "Batchfile": 12, "Proguard": 30, "CMake": 10, "Kotlin": 3443, "C++": 594, "Java": 4446, "HTML": 34, "Makefile": 14, "RenderScript": 22, "C": 30, "JavaScript": 2, "CSS": 3, "INI": 11, "Filterscript": 11, "Prolog": 1, "GLSL": 1, "Gradle Kotlin DSL": 5, "Python": 12, "D... | /*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1 | null | 1 | 0 | 9e3475f6d94cb3239f27ed8f8ee81b0abde4ef51 | 3,016 | CppBuildCacheWorkInProgress | Apache License 2.0 |
backend-spring-kotlin/src/testIntegration/kotlin/lunchbox/util/ocr/NginxTest.kt | rori-dev | 29,542,877 | false | null | @file:Suppress("ktlint:standard:max-line-length")
package lunchbox.util.ocr
import org.amshove.kluent.shouldBeEqualTo
import org.junit.jupiter.api.Test
import org.springframework.web.reactive.function.client.WebClient
import org.springframework.web.reactive.function.client.bodyToMono
import org.testcontainers.contain... | 2 | null | 2 | 1 | 91fa2d558d56ee2b05bb3058c842f3656fa7fab3 | 1,763 | lunchbox | MIT License |
common/src/main/kotlin/combo/sat/constraints/Arithmetic.kt | rasros | 148,620,275 | false | null | package combo.sat.constraints
import combo.model.IntVar
import combo.sat.*
import combo.sat.constraints.Relation.*
import combo.util.*
import kotlin.math.abs
import kotlin.math.absoluteValue
import kotlin.math.max
import kotlin.math.min
import kotlin.random.Random
/**
* Linear constraint encodes a linear sum [relati... | 0 | Kotlin | 1 | 2 | 4e133cbf332dc48ddd65eef2f8366241627c2365 | 14,679 | combo | Apache License 2.0 |
app/src/main/java/com/wololo/hulkify/ui/splash/SplashActivity.kt | msayan | 141,748,886 | false | null | package com.wololo.hulkify.ui.splash
import android.animation.Animator
import android.animation.ValueAnimator
import android.content.Intent
import android.media.MediaPlayer
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.support.annotation.RawRes
import android.support.v7.app... | 1 | null | 1 | 5 | 6b174dae47682d714ca2e961c4602967cf0c659a | 3,007 | hulkify | Apache License 2.0 |
app/src/main/java/com/skydoves/waterdays/consts/LocalNames.kt | skydoves | 100,711,724 | false | null | /*
* Copyright (C) 2016 skydoves
*
* 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 ... | 1 | Kotlin | 23 | 75 | 0196d34d71e11d0466e8e08e5ceab788e9d7fbbb | 1,238 | WaterDrink | Apache License 2.0 |
app/src/main/java/com/disruption/cookcentral/models/search/SearchedRecipe.kt | Fbada006 | 255,243,946 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "YAML": 1, "JSON": 3, "Proguard": 1, "Java": 2, "XML": 48, "Kotlin": 42} | package com.disruption.cookcentral.models.search
data class SearchedRecipe(
var id: Int = 0,
var title: String? = null,
var readyInMinutes: Int = 0,
var servings: Int = 0,
var image: String? = null)
| 0 | Kotlin | 0 | 0 | bba7c12f0a615b16a10fd2bffea5a92704474df1 | 241 | Cook-Central | Apache License 2.0 |
app/src/main/java/org/fattili/luckymusic/ui/view/main/song/edit/SongsEditModelFactory.kt | dengzhenli | 354,794,474 | false | null | package org.fattili.luckymusic.ui.view.main.song.edit
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import org.fattili.luckymusic.data.SongRepository
import org.fattili.luckymusic.data.SongsRepository
/**
* 2020/10/28
* @author dengzhenli
* 歌单编辑
*/
class SongsEditModelFactory(priv... | 1 | Kotlin | 0 | 1 | 869d5714a1a9fa4c131da4e833dfcb0856bc3549 | 548 | LuckyMusic | Apache License 2.0 |
plugins/editorconfig/src/org/editorconfig/language/psi/reference/EditorConfigDeclarationReference.kt | hieuprogrammer | 284,920,751 | true | null | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.editorconfig.language.psi.reference
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiReferenceBase
import org.editorconfig.language.psi.interfaces.Editor... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 534 | intellij-community | Apache License 2.0 |
app/src/main/java/org/simple/clinic/newentry/PatientEntryUi.kt | simpledotorg | 132,515,649 | false | {"Kotlin": 6129044, "Shell": 1660, "HTML": 545} | package org.simple.clinic.newentry
import org.simple.clinic.newentry.country.InputFields
import org.simple.clinic.widgets.ageanddateofbirth.DateOfBirthAndAgeVisibility
interface PatientEntryUi {
fun setDateOfBirthAndAgeVisibility(visibility: DateOfBirthAndAgeVisibility)
fun showIdentifierSection()
fun hideIdent... | 13 | Kotlin | 73 | 236 | ff699800fbe1bea2ed0492df484777e583c53714 | 508 | simple-android | MIT License |
implementation/src/main/kotlin/com/aoc/fuel/calculator/strategy/FuelCalculationStrategy.kt | TomPlum | 227,887,094 | false | null | package com.aoc.fuel.calculator.strategy
import kotlin.math.floor
abstract class FuelCalculationStrategy {
/**
* The strategy contract.
* @param mass The mass of the module whose fuel requirements are being calculated.
* @return The quantity of fuel required for the given module [mass].
*/
... | 7 | null | 1 | 2 | 12d47cc9c50aeb9e20bcf110f53d097d8dc3762f | 708 | advent-of-code-2019 | Apache License 2.0 |
gradle-plugin/src/main/kotlin/com/athaydes/wasm/WasmGradlePlugin.kt | andrewaylett | 476,364,503 | false | null | package com.athaydes.wasm
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.JavaBasePlugin
import org.gradle.api.tasks.SourceSetContainer
import org.gradle.api.tasks.compile.AbstractCompile
class WasmGradlePlugin : Plugin<Project> {
override fun apply(project: Project) {
... | 5 | null | 1 | 3 | e6b0cb60033435d25aad1cef720a21d231703afe | 1,703 | asmble | MIT License |
shared/src/commonMain/kotlin/ui/JobsScreen.kt | Pulkitjndl | 723,968,507 | false | {"Kotlin": 34088, "Swift": 650} | package ui
import androidx.compose.runtime.Composable
@Composable
fun JobsScreen() {
} | 0 | Kotlin | 0 | 0 | 7ae80d7d5b3ef7bc080947f0c8047c293e174ff4 | 88 | LearningApp | MIT License |
src/main/kotlin/ru/krindra/vknorthtypes/newsfeed/NewsfeedList.kt | kravandir | 745,597,090 | false | {"Kotlin": 633233} | package ru.krindra.vknorthtypes.newsfeed
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class NewsfeedList (
@SerialName("title") val title: String,
@SerialName("id") val id: Long,
)
| 0 | Kotlin | 0 | 0 | 508d2d1d59c4606a99af60b924c6509cfec6ef6c | 247 | VkNorthTypes | MIT License |
src/main/kotlin/xtex/minecraftServerPropsDumper/analyzer/Analyzer.kt | xtexChooser | 586,400,650 | false | null | package xtex.minecraftServerPropsDumper.analyzer
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import xtex.minecraftServerPropsDumper.mjapi.ensureServerJar
import xtex.minecraftServerPropsDumper.mjapi.fetchGameVersion
import xtex.minecraftServerPropsDumper.util.ensureFile
import ja... | 0 | Kotlin | 0 | 0 | 70e9ab8b77e20ada3bbe109ea6b5533a10ef2562 | 1,456 | minecraft-server-props-dumper | Apache License 2.0 |
src/main/kotlin/it/unibo/skpf/re/utils/RegressionUtils.kt | sabbatinif | 418,445,072 | true | null | package it.unibo.skpf.re.utils
import it.unibo.skpf.re.Extractor
import it.unibo.skpf.re.cart.CartPredictor
import it.unibo.skpf.re.utils.RegressionUtils.createCART
import it.unibo.skpf.re.utils.RegressionUtils.createGridEx
import it.unibo.skpf.re.utils.RegressionUtils.createITER
import it.unibo.skpf.re.utils.Regressi... | 1 | Kotlin | 2 | 0 | f8f70a720dfa8222f2d40525872ca6ae84e85910 | 7,138 | psyke-jvm | Apache License 2.0 |
src/main/kotlin/com/ioannuwu/inline/domain/MaxErrorsPerLine.kt | IoaNNUwU | 594,100,636 | false | null | package com.ioannuwu.inline.domain
import com.ioannuwu.inline.data.DefaultSettings
import com.ioannuwu.inline.data.MySettingsService
import com.ioannuwu.inline.domain.settings.SettingsChangeEvent
import com.ioannuwu.inline.domain.settings.SettingsChangeListener
import com.ioannuwu.inline.domain.settings.SettingsChange... | 0 | Kotlin | 0 | 6 | daad0725a42495ee0c5b5733ed03e91fcb4ccbc0 | 880 | InLine | MIT License |
canvas2_lp/src/main/java/com/angcyo/canvas2/laser/pecker/dslitem/control/RendererFlatItem.kt | angcyo | 229,037,684 | false | {"Kotlin": 3482606, "JavaScript": 5542, "HTML": 1598} | package com.angcyo.canvas2.laser.pecker.dslitem.control
import com.angcyo.canvas.render.renderer.CanvasGroupRenderer
import com.angcyo.canvas2.laser.pecker.R
import com.angcyo.canvas2.laser.pecker.dslitem.CanvasIconItem
import com.angcyo.library.canvas.core.Reason
import com.angcyo.library.component.Strategy
/**
* C... | 0 | Kotlin | 4 | 4 | 16490a3e212472aeaad38ba9b53db97b17ac328a | 1,064 | UICoreEx | MIT License |
feature/setting/src/main/java/com/goms/setting/component/SelectThemeDropDown.kt | team-haribo | 740,096,241 | false | {"Kotlin": 566099} | package com.goms.setting.component
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.foundation.layout.padding
import androidx.compose.material... | 2 | Kotlin | 0 | 7 | d9e1aba763c8b3b1201a522a63ae7abba07be2cb | 2,145 | GOMS-Android-V2 | MIT License |
jasy/src/main/java/com/example/jasy/helpers/constants/DateFormatConstants.kt | vespinola | 207,432,505 | false | null | package com.example.jasy.helpers.constants
class DateFormatConstants {
companion object {
val year = "yyyy"
val default = "yyyy-MM-dd"
val pretty = "LLLL dd, yyyy"
}
} | 0 | Kotlin | 0 | 0 | 372259eb46475fa58267d1fca8088f3feacdf0ca | 200 | jasy-android | MIT License |
src/test/kotlin/com/preslavrachev/kandas/DataFrameUTest.kt | preslavrachev | 141,668,237 | false | null | package com.preslavrachev.kandas
import assertk.assertThat
import assertk.assertions.containsOnly
import assertk.assertions.isNotNull
import org.junit.jupiter.api.Test
internal class DataFrameUTest {
@Test
fun `ensure column names when providing a list of maps`() {
val df = DataFrame(listOf(
... | 1 | Kotlin | 0 | 3 | 0cd8df3abc89fdab87b5fbe823982b3a70d485af | 1,157 | kandas | MIT License |
web/widgets/src/commonMain/kotlin/layouts/defaults/BoxDefault.kt | bvc3at | 390,572,166 | true | {"Kotlin": 928979, "Shell": 10292, "Dockerfile": 5716, "HTML": 2892, "PowerShell": 1708, "Groovy": 1415, "CSS": 1022, "JavaScript": 203} | package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.Modifier
import androidx.compose.runtime.Composable
@Composable
fun Box(
modifier: Modifier = Modifier.Companion,
content: @Composable () -> Unit
) { BoxActual(modifier, content) }
| 0 | null | 0 | 1 | 2e571c8734c31426cc7cd6be3076ec39d638b4fc | 285 | compose-jb | Apache License 2.0 |
firebase-installations/src/androidMain/kotlin/suntrix/kmp/firebase/installations/FirebaseInstallations.kt | kotlin-multiplatform | 542,823,504 | false | {"Kotlin": 126662, "Makefile": 152} | package suntrix.kmp.firebase.installations
import kotlinx.coroutines.tasks.await
/**
* Created by <NAME> on 25/09/2022
*/
actual class FirebaseInstallations internal constructor(val nativeSdk: com.google.firebase.installations.FirebaseInstallations) {
actual suspend fun delete() {
nativeSdk.delete().aw... | 0 | Kotlin | 0 | 1 | 684e9142ce9fced949c1a9c539e8651aeb0a87da | 517 | firebase-kmp-sdks | MIT License |
src/main/kotlin/network/cere/ddc/node/api/apps/Applications.kt | Cerebellum-Network | 346,027,534 | false | null | package network.cere.ddc.node.api.apps
import network.cere.ddc.node.api.DdcNodeApiResponse
interface Applications {
fun create(request: CreateApplicationRequest) : DdcNodeApiResponse<Unit>
fun get(appPubKey: String): DdcNodeApiResponse<Application>
fun getTopology(appPubKey: String) : DdcNodeApiResponse... | 0 | Kotlin | 1 | 0 | 06280470629e6851a6b7ca13a3813a707edf9ea4 | 344 | ddc-node-api-kotlin | MIT License |
app/src/main/java/com/lyc/gank/utils/SingleLiveEvent.kt | SirLYC | 93,046,345 | false | null | package com.lyc.gank.utils
import android.arch.lifecycle.LifecycleOwner
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.Observer
import android.support.annotation.MainThread
import java.util.concurrent.atomic.AtomicBoolean
/**
* Created by hgj on 20/12/2017.
*/
open class SingleLiveEvent... | 1 | Kotlin | 0 | 6 | f72e0079a84871da510012e8f4b8cb330f80d1a1 | 1,104 | Android-Gank-Share | Apache License 2.0 |
src/main/kotlin/chatterbox/util/commands/DynamicCommandRegistry.kt | Plugineers | 136,838,957 | false | {"Kotlin": 14185} | package chatterbox.util.commands
import chatterbox.logInfo
import chatterbox.logSevere
import chatterbox.logWarn
import org.bukkit.Bukkit
import org.bukkit.command.Command
import org.bukkit.command.CommandMap
import java.lang.reflect.Field
val HELP_ARGS = arrayOf("help", "h", "?")
class DynamicCommandRegistry(privat... | 1 | Kotlin | 0 | 1 | e5889e451c5922cdf511d5f2bb0af3f0c56b1393 | 2,855 | Chatterbox | MIT License |
src/main/java/com/github/moskvax/viewbinding/components/ViewBindingFragment.kt | moskvax | 428,208,963 | false | {"Kotlin": 2118} | package com.github.moskvax.viewbinding.components
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.CallSuper
import androidx.fragment.app.Fragment
import androidx.viewbinding.ViewBinding
import kotlin.reflect.KClass
abstract ... | 0 | Kotlin | 0 | 0 | a57c883a598a39592701c97fc86d61f5b17dc4c0 | 884 | viewbinding-components | Apache License 2.0 |
src/main/java/com/github/moskvax/viewbinding/components/ViewBindingFragment.kt | moskvax | 428,208,963 | false | {"Kotlin": 2118} | package com.github.moskvax.viewbinding.components
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.CallSuper
import androidx.fragment.app.Fragment
import androidx.viewbinding.ViewBinding
import kotlin.reflect.KClass
abstract ... | 0 | Kotlin | 0 | 0 | a57c883a598a39592701c97fc86d61f5b17dc4c0 | 884 | viewbinding-components | Apache License 2.0 |
src/main/kotlin/com/odim/simulator/tree/templates/redfish/embedded/FPGATemplate.kt | ODIM-Project | 355,910,204 | false | null | // Copyright (c) Intel Corporation
//
// 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... | 1 | Kotlin | 0 | 7 | 7e8a3030ca83c040678f8edf76def588b2b01cca | 1,970 | BMCSimulator | Apache License 2.0 |
src/commonMain/kotlin/io/violabs/ripley/domain/DefaultTaskGroup.kt | violabs | 672,379,526 | false | null | package io.violabs.ripley.domain
class DefaultTaskGroup(
override var normalizedTask: ITask? = null,
override var targetedTask: IAcceptedTask? = null,
override var taskOptions: Any? = null
) : ITaskGroup | 0 | Kotlin | 0 | 1 | bd6182281977a89c28454a46cc341fdd19c48723 | 216 | ripley | Apache License 2.0 |
src/test/kotlin/asserts/strikt/StriktAssertsTest.kt | ov7a | 277,275,871 | false | null | package asserts.strikt
import common.AssertsFullTest
class StriktAssertsTest : AssertsFullTest(StriktAsserts()) | 0 | Kotlin | 1 | 6 | b3a4ff794d755837fdf8177c7fe9b05b9ca1653b | 113 | kotlin-asserts-comparison | MIT License |
app/src/main/java/dev/cdrck/mdgtictoe/themes/Color.kt | cedrick1445 | 748,069,467 | false | {"Kotlin": 66457, "HTML": 11095, "CSS": 1471, "JavaScript": 425} | package dev.cdrck.mdgtictoe.themes
import androidx.compose.ui.graphics.Color
val md_theme_light_primary = Color(0xFFA63A23)
val md_theme_light_onPrimary = Color(0xFFFFFFFF)
val md_theme_light_primaryContainer = Color(0xFFFFDAD3)
val md_theme_light_onPrimaryContainer = Color(0xFF3D0600)
val md_theme_light_secondary = ... | 0 | Kotlin | 0 | 0 | 718ab193784a806a604796701d3844de9fcf2396 | 3,528 | Zodiac_TicTacToe | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/Tags.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 | 3,029 | icons | MIT License |
resources-generator/src/main/kotlin/dev/icerock/gradle/generator/js/JsImagesGenerator.kt | icerockdev | 204,874,263 | false | {"Kotlin": 343774, "Shell": 1130} | /*
* Copyright 2022 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.gradle.generator.js
import com.squareup.kotlinpoet.ClassName
import com.squareup.kotlinpoet.CodeBlock
import com.squareup.kotlinpoet.FunSpec
import com.squareup.kotlinpoet.KModifier
import com.... | 149 | Kotlin | 112 | 997 | 590fc8f2eacbe5aca4992df83aa7473bb3e28b62 | 2,281 | moko-resources | Apache License 2.0 |
app/src/main/java/com/example/assignment_7/viewsHolders/BaseViewHolder.kt | SawThanDar18 | 209,331,092 | false | null | package com.example.assignment_7.viewsHolders
import android.view.View
import androidx.recyclerview.widget.RecyclerView
abstract class BaseViewHolder<T>(itemView: View): RecyclerView.ViewHolder(itemView) {
var data: T? = null
set(value) {
field = value
value?.let {
... | 0 | Kotlin | 0 | 0 | 74a750de9e651919873268a59401c2bcd8e03622 | 399 | Assignment_7 | Apache License 2.0 |
app/src/androidTest/java/info/jukov/rijksmuseum/feature/art/collection/data/ArtCollectionRepositoryTestImpl.kt | jukov | 722,639,886 | false | {"Kotlin": 143624} | package info.jukov.rijksmuseum.feature.art.details.data
import info.jukov.rijksmuseum.feature.art.collection.domain.ArtCollectionRepository
import info.jukov.rijksmuseum.feature.art.collection.domain.model.ArtCollectionItem
import io.reactivex.rxjava3.core.Single
import javax.inject.Inject
class ArtCollectionReposito... | 0 | Kotlin | 0 | 0 | ffbada31bc49d8e02d3b2fe28b88f6650906c1dd | 829 | Rijksmuseum | The Unlicense |
src/main/kotlin/org/jaqpot/api/service/qsartoolbox/QSARToolboxAPI.kt | ntua-unit-of-control-and-informatics | 790,773,279 | false | {"Kotlin": 206289, "FreeMarker": 3417, "PLpgSQL": 1407} | package org.jaqpot.api.service.qsartoolbox
import io.github.oshai.kotlinlogging.KotlinLogging
import org.jaqpot.api.service.qsartoolbox.config.QsartoolboxConfig
import org.jaqpot.api.service.qsartoolbox.dto.QSARSearchSmilesResponse
import org.springframework.core.ParameterizedTypeReference
import org.springframework.h... | 1 | Kotlin | 0 | 0 | 810ba82016fae28a64e57f14d8df74a721678836 | 2,199 | jaqpot-api | MIT License |
app/src/main/kotlin/com/ceh9/portfolio/common/data/local/CommonData.kt | CeH9 | 202,865,791 | false | null | package com.ceh9.portfolio.common.data.local
/**
* Created by CeH9 on 19.09.2019
*/
object CommonData {
const val DEBUG_START_DESTINATION_ENABLED: Boolean = false
const val DEBUG_LET_EXCEPTIONS_THROW: Boolean = false
} | 0 | Kotlin | 0 | 0 | d4efdcffbee64a02cdb82d73d4f707f322964c40 | 229 | Portfolio | MIT License |
roboquant-core/test/orders/CombinedOrderTest.kt | neurallayer | 406,929,056 | false | null | /*
* Copyright 2021 Neural Layer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 4 | Kotlin | 9 | 27 | 601f0b39950a53b32889d6c3688b2bcfecae9323 | 1,254 | roboquant | Apache License 2.0 |
src/main/kotlin/Application.kt | paulmiddelkoop | 347,105,584 | false | null | package se.pamisoft.skola.avgifter
import com.sksamuel.hoplite.ConfigLoader
import se.pamisoft.skola.avgifter.calculation.CalculateFees
import se.pamisoft.skola.avgifter.calculation.FamilyFee
import se.pamisoft.skola.avgifter.fortnox.InvoiceInFortnox
import se.pamisoft.skola.avgifter.fortnox.fortnoxModule
import se.pa... | 1 | Kotlin | 0 | 0 | 0ea54cf6bbac8541b02400ec3eadc092cf6f9c88 | 2,555 | skola-avgifter | MIT License |
app/src/main/kotlin/com/stepmate/app/ui/navigation/permission/PermissionRequester.kt | step-Mate | 738,437,093 | false | {"Kotlin": 732407} | package com.stepmate.app.ui.navigation.permission
import android.Manifest
import android.app.AlarmManager
import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.core.content.ContextCompat
object PermissionRequester {
@... | 0 | Kotlin | 0 | 0 | 589774b58ae8529b486c3ec19e0e39db01e48dd6 | 1,149 | Android | Apache License 2.0 |
app/src/main/java/com/chocolate/triviatitans/presentation/screens/quiz_screen/text_game/view_model/mapper/QuestionsMapper.kt | team-chocolate-cake | 661,943,976 | false | null | package com.chocolate.triviatitans.presentation.screens.quiz_screen.text_game.view_model.mapper
import com.chocolate.triviatitans.domain.entities.TextChoiceEntity
import com.chocolate.triviatitans.domain.mapper.Mapper
import com.chocolate.triviatitans.presentation.screens.quiz_screen.base.QuestionUiState
import javax.... | 0 | Kotlin | 3 | 1 | 94e74e9943f25d94a64311d898baf4b07fabfc63 | 790 | TriviaTitans | MIT License |
kotlin-electron/src/jsMain/generated/electron/core/Product.kt | JetBrains | 93,250,841 | false | null | // Generated by Karakum - do not modify it manually!
package electron.core
external interface Product {
// Docs: https://electronjs.org/docs/api/structures/product
/**
* 3 character code presenting a product's currency based on the ISO 4217 standard.
*/
var currencyCode: String
/**
* An ar... | 40 | null | 174 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 1,822 | kotlin-wrappers | Apache License 2.0 |
app/src/mvvmMaterial/java/xyz/thaihuynh/android/sample/arch/ui/notes/NotesFragment.kt | thaihuynhxyz | 470,112,438 | false | {"Kotlin": 59749} | package xyz.thaihuynh.android.sample.arch.ui.notes
import android.content.res.Resources
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewMode... | 0 | Kotlin | 0 | 1 | 58b23685e7b690bcb3a1ec9b97ffe6d151e70969 | 3,986 | android-architecture-samples | Apache License 2.0 |
1905.Count Sub Islands.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | internal class Solution {
private val dirs = intArrayOf(-1, 0, 1, 0, -1)
private var grid1: Array<IntArray>
private var grid2: Array<IntArray>
private var m = 0
private var n = 0
fun countSubIslands(grid1: Array<IntArray>, grid2: Array<IntArray>): Int {
m = grid1.size
n = grid1[0].size
this.gri... | 0 | Kotlin | 0 | 0 | 71f5d03abd6ae1cd397ec4f1d5ba04f792dd1b48 | 825 | kotlin-leetcode | MIT License |
app/src/main/java/dev/jamescullimore/wifiwizard/WiFiWizardScreen.kt | LethalMaus | 708,772,183 | false | {"Kotlin": 30344} | package dev.jamescullimore.wifiwizard
import android.content.Intent
import android.provider.Settings
import android.widget.Toast
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
impo... | 0 | Kotlin | 0 | 0 | 6cdd14891401e8629fc6328e64d2641519c971a2 | 5,397 | WiFiWizard | MIT License |
src/main/kotlin/db/tables/GroupChatInviteMessages.kt | ertprs | 330,072,795 | true | {"Kotlin": 548594, "Dockerfile": 1135} | package com.neelkamath.omniChat.db.tables
import org.jetbrains.exposed.sql.*
import org.jetbrains.exposed.sql.transactions.transaction
/** @see [Messages] */
object GroupChatInviteMessages : Table() {
override val tableName = "group_chat_invite_messages"
private val messageId: Column<Int> = integer("message_i... | 0 | null | 0 | 0 | ce27f094c2d33967367be0c8d8e36c021272f77c | 996 | omni-chat | MIT License |
platform/src/main/kotlin/researchstack/backend/application/service/mapper/InvestigatorStudyRelationMapper.kt | S-ResearchStack | 520,365,362 | false | {"Kotlin": 1297740, "Dockerfile": 202, "Shell": 59} | package researchstack.backend.application.service.mapper
import org.mapstruct.Mapper
import org.mapstruct.factory.Mappers
import researchstack.backend.application.port.incoming.investigator.InviteInvestigatorCommand
import researchstack.backend.domain.common.Email
import researchstack.backend.domain.investigator.Inves... | 1 | Kotlin | 9 | 29 | edd76f219cdb10c8151b8ac14175b1e818a6036a | 733 | backend-system | Apache License 2.0 |
02-func-and-objects/app/src/main/java/com/example/funcandobjects/BankAccount.kt | omerfarukgulhan | 855,786,708 | false | {"Kotlin": 110308} | package com.example.funcandobjects
class BankAccount(var accountNumber: String) {
private var balance: Double = 0.0
init {
printAccountDetails()
}
fun getBalance(): Double {
return balance
}
fun printAccountDetails() {
println("Account Number: ${getBalance()}")
... | 0 | Kotlin | 0 | 0 | a15360feabe764a68bcf7cb0d6489065b8df57d9 | 943 | kotlin-workshops | MIT License |
philarios-circleci/src/main/kotlin/io/philarios/circleci/Sugar.kt | taxpon | 180,252,847 | true | {"Kotlin": 666395, "Ruby": 7769, "Shell": 1002, "HTML": 398} | package io.philarios.circleci
fun <C> JobBuilder<C>.run(body: RunBuilder<C>.() -> Unit) {
step(RunStepSpec {
run(body)
})
}
fun <C> JobBuilder<C>.run(command: String, body: RunBuilder<C>.() -> Unit = {}) {
run {
command(command)
apply(body)
}
}
fun <C> JobBuilder<C>.run(name: ... | 0 | Kotlin | 0 | 0 | ea311f14fe3e62ea5f2b76f13bafe76ac5dfe073 | 2,375 | philarios | MIT License |
src/test/kotlin/days/aoc2021/Day24Test.kt | bjdupuis | 435,570,912 | false | {"Kotlin": 498025} | package days.aoc2021
import org.hamcrest.CoreMatchers.`is`
import org.hamcrest.MatcherAssert
import org.junit.Test
class Day24Test {
private val day = Day24()
@Test
fun testPartOne() {
val instructions1 = """
inp x
mul x -1
""".trimIndent().lines()
var alu ... | 0 | Kotlin | 0 | 1 | 8da2d31224769546a559280c47a13461a4f1e0a0 | 846 | Advent-Of-Code | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/sqz/writingboard/glance/MainWidget.kt | Z-Siqi | 685,058,978 | false | {"Kotlin": 184638} | package com.sqz.writingboard.glance
import android.content.Context
import androidx.compose.runtime.Composable
import androidx.compose.ui.unit.dp
import androidx.glance.GlanceId
import androidx.glance.GlanceModifier
import androidx.glance.GlanceTheme
import androidx.glance.Image
import androidx.glance.ImageProvider
imp... | 0 | Kotlin | 1 | 9 | 477df96a7945b3a64f2e66b25c379f24a1c5e970 | 3,569 | WritingBoard | MIT License |
app/src/main/java/com/concordium/wallet/ui/transaction/sendfundsconfirmed/SendFundsConfirmedActivity.kt | Concordium | 750,205,274 | false | {"Kotlin": 1641344, "Java": 247867, "HTML": 31416, "CSS": 256} | package com.concordium.wallet.ui.transaction.sendfundsconfirmed
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.lifecycle.ViewModelProvider
import com.concordium.wallet.R
import com.concordium.wallet.data.room.Recipient
import com.concordium.wallet.data.room.Transfer
imp... | 6 | Kotlin | 0 | 1 | 35ce1e40d756c9dabef4d72c2766a47c309f53ab | 3,303 | cryptox-android | Apache License 2.0 |
app/src/main/java/com/aemerse/quanage/activities/ProfileActivity.kt | akshaaatt | 448,409,041 | false | {"Kotlin": 140910, "Ruby": 465} | package com.aemerse.quanage.activities
import android.app.Activity
import android.content.Intent
import android.graphics.drawable.Drawable
import android.net.Uri
import android.os.Bundle
import android.view.View
import android.view.View.GONE
import androidx.appcompat.app.AppCompatActivity
import com.aemerse.quanage.R
... | 0 | Kotlin | 0 | 0 | cbe86a2ef172fcf38a3c5f17b29dd8256d0bddfd | 7,797 | Quanage-Android | Apache License 2.0 |
app/src/main/java/io/github/jingtuo/android/aa/ui/widget/AppList.kt | jingtuo | 551,964,282 | false | {"Kotlin": 69008} | package io.github.jingtuo.android.aa.ui.widget
import android.content.pm.PackageInfo
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.text.Keyboard... | 0 | Kotlin | 0 | 2 | 02de06746966207bba02fc4b5ba716e5f17303c0 | 5,451 | app-analysis | Apache License 2.0 |
SpaceSoccerr/app/src/main/java/aula5/example/spacesoccer/views/TermosECondicoes.kt | macyuri94 | 257,707,367 | false | null | package aula5.example.spacesoccer.views
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import aula5.example.spacesoccer.R
class TermosECondicoes : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(... | 0 | Kotlin | 0 | 1 | e9f3d461cffe60934ca2980c2d46b5186bae2067 | 356 | space_soccer | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/R.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,263 | icons | MIT License |
app/src/main/java/com/manu/pokedoke/network/IPokemonService.kt | ManaswiniKundeti | 274,271,534 | false | null | package com.manu.pokedoke.network
import com.manu.pokedoke.model.PokemonInfo
import com.manu.pokedoke.model.PokemonResponse
import okhttp3.OkHttpClient
import retrofit2.Call
import retrofit2.Retrofit
import retrofit2.converter.moshi.MoshiConverterFactory
import retrofit2.http.GET
import retrofit2.http.Path
import retr... | 1 | Kotlin | 5 | 5 | 04f7a7a29f072235204073394dea118b36bb3a01 | 1,021 | Pokedoke | Apache License 2.0 |
app/src/main/java/com/patrykkosieradzki/androidmviexample/ui/composables/LifecycleUtils.kt | k0siara | 374,188,998 | false | null | package com.patrykkosieradzki.androidmviexample.ui.composables
import androidx.compose.runtime.Composable
import androidx.compose.runtime.State
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.remember
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import and... | 0 | Kotlin | 3 | 58 | 5039dc84d560bd7ccdd43895108d3cde15df699f | 766 | AndroidMVIExample | Apache License 2.0 |
app/src/main/java/com/afra/cheforia/ui/HomeScreen.kt | afradigm | 853,749,359 | false | {"Kotlin": 50350} | package com.afra.cheforia.ui
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.as... | 1 | Kotlin | 0 | 1 | 0e583ca99c9df4af703c8ddb27ca28e34cc03057 | 3,149 | cheforia-android-app | Apache License 2.0 |
app/src/main/java/tf/samir/borrowtee/viewbase/RecyclerViewBindings.kt | samirtf | 298,431,857 | false | null | package tf.samir.borrowtee.viewbase
import androidx.databinding.BindingAdapter
import androidx.recyclerview.widget.RecyclerView
@BindingAdapter("items")
fun setRecyclerViewItems(
recyclerView: RecyclerView,
items: List<RecyclerItem>?
) {
var adapter = (recyclerView.adapter as? RecyclerViewAdapter)
if ... | 3 | Kotlin | 0 | 0 | feb4cd97c194701505eaed98b811498a59a8e5da | 467 | borrowtee | MIT License |
codebase/android/core/data/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/core/data/usecase/transactionfor/GetAllTransactionForValuesUseCase.kt | Abhimanyu14 | 429,663,688 | false | {"Kotlin": 1459939, "Dart": 102426} | package com.makeappssimple.abhimanyu.financemanager.android.core.data.usecase.transactionfor
import com.makeappssimple.abhimanyu.financemanager.android.core.data.repository.transactionfor.TransactionForRepository
import com.makeappssimple.abhimanyu.financemanager.android.core.model.TransactionFor
interface GetAllTran... | 11 | Kotlin | 0 | 1 | 433728cb7a9003e38ea9f579d561e4e27b47ef76 | 702 | finance-manager | Apache License 2.0 |
Plantilla/app/src/main/java/com/example/codigocolores/ui/AuthActivity.kt | jjmorleo | 343,568,652 | false | null | package com.example.codigocolores.ui
import android.app.ActivityOptions
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.core.widget.addTextChangedListener
import com.example.codigocolores.ColorActivity
import com.example.codigocolores.R
import com.... | 0 | Kotlin | 0 | 0 | e0f95b0b7c2c1aa244f867d453735b51fea249e3 | 2,719 | Codigo-Colores | MIT License |
Dialogue/src/main/kotlin/Statistics.kt | AdorableParker | 519,499,809 | false | null | package org.nymph
import net.mamoe.mirai.console.command.CommandManager
import net.mamoe.mirai.console.command.MemberCommandSenderOnMessage
import net.mamoe.mirai.console.command.SimpleCommand
object Statistics : SimpleCommand(
Dialogue, "Statistics", "统计",
description = "统计问答数据"
) {
override val usage: S... | 0 | Kotlin | 0 | 0 | 34ca0d5d5ab303b4d30bbd9415e1d17f2849bab7 | 2,413 | MiraiConsolePlugins | Apache License 2.0 |
connectors/aws/lambda/src/main/kotlin/io/river/connector/aws/lambda/LambdaExt.kt | River-Kt | 539,201,163 | false | null | package io.river.connector.aws.lambda
import io.river.core.mapParallel
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.future.await
import software.amazon.awssdk.core.SdkBytes
import software.amazon.awssdk.services.lambda.LambdaAsyncClient
import software.amazon.awssdk.services.lambda.model.InvocationTyp... | 11 | Kotlin | 1 | 7 | 0d31565394650e8fca318fd103e6009db6c3e93f | 1,196 | river | MIT License |
next/kmp/window/src/commonMain/kotlin/org/dweb_browser/sys/window/core/modal/WindowModalState.kt | BioforestChain | 594,577,896 | false | {"Kotlin": 3446191, "TypeScript": 818538, "Swift": 369625, "Vue": 156647, "SCSS": 39016, "Objective-C": 17350, "HTML": 16184, "Shell": 13534, "JavaScript": 3982, "Svelte": 3504, "CSS": 818} | package org.dweb_browser.sys.window.core.modal
import androidx.compose.runtime.Composable
import androidx.compose.runtime.mutableStateOf
import kotlinx.coroutines.CompletableDeferred
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
impor... | 66 | Kotlin | 5 | 20 | 6db1137257e38400c87279f4ccf46511752cd45a | 4,701 | dweb_browser | MIT License |
app/src/main/java/com/lyricgan/winky/hello/MainActivity.kt | LyricGan | 429,727,070 | false | null | package com.lyricgan.winky.hello
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activi... | 0 | Kotlin | 0 | 0 | b082a898d6a6afc39fce2b4c607294d5023fa5c4 | 557 | Winky | Apache License 2.0 |
src/main/kotlin/org/carPooling/cars/domain/CarValidator.kt | ortzit | 588,298,236 | false | null | package org.carPooling.cars.domain
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Service
@Service
class CarValidator {
private val logger: Logger = LoggerFactory.getLogger(this::class.java)
fun check(cars: Collection<Car>) {
cars.checkDuplicatedId()
... | 0 | Kotlin | 0 | 0 | a39c6ad957e366480e19adef9a6089e1300535d1 | 1,267 | car-pooling | MIT License |
core/src/main/kotlin/ch/ergon/dope/resolvable/fromable/Bucket.kt | ergon | 745,483,606 | false | {"Kotlin": 252052} | package ch.ergon.dope.resolvable.fromable
import ch.ergon.dope.resolvable.expression.AsteriskExpression
sealed class Bucket(open val name: String) : Fromable {
override fun toQueryString(): String = name
}
open class UnaliasedBucket(name: String) : Bucket(name) {
fun alias(alias: String) = AliasedBucket(name... | 2 | Kotlin | 0 | 3 | e5cd66e4001b5d84a0812c7a604bc4c2a1bc9436 | 515 | dope-query-builder | MIT License |
core/src/commonMain/kotlin/com/sjaindl/s11/core/firestore/user/UserRepository.kt | sjaindl | 833,289,183 | false | {"Kotlin": 342674, "Ruby": 7377, "Swift": 1695, "HTML": 1023, "CSS": 306} | package com.sjaindl.s11.core.firestore.user
import com.sjaindl.s11.core.firestore.user.model.User
import dev.gitlive.firebase.Firebase
import dev.gitlive.firebase.auth.FirebaseUser
import dev.gitlive.firebase.auth.auth
import dev.gitlive.firebase.storage.File
import kotlinx.coroutines.flow.Flow
import org.koin.core.co... | 0 | Kotlin | 0 | 0 | b06e955e5d8ed3d3a62274952d8187055864af6b | 2,095 | StartingEleven | MIT License |
src/main/kotlin/me/katsumag/aspigotframework/worldbuilder/factories/SuperflatWorldFactory.kt | katsumag | 281,989,662 | false | null | package me.katsumag.aspigotframework.worldbuilder.factories
import me.katsumag.aspigotframework.worldbuilder.generators.SuperflatWorldGenerator
import me.katsumag.aspigotframework.worldbuilder.options.LayerOptions
import org.bukkit.World
import org.bukkit.WorldCreator
class SuperflatWorldFactory(private val options: ... | 0 | Kotlin | 0 | 0 | c0580e5f70ea45690479a3b3868c2fda15a4f695 | 549 | ASpigotFramework | MIT License |
src/main/kotlin/com/example/DogResponse.kt | gledsonvsantos | 759,418,822 | false | {"Kotlin": 5216} | package com.example
import io.micronaut.serde.annotation.Serdeable
@Serdeable.Serializable
@Serdeable.Deserializable
data class DogResponse(
val message: String,
val status: String
) | 0 | Kotlin | 0 | 0 | 06a240e9224a48118b5a91fbb05ceb36582876d7 | 192 | KotlinHttpClientsExploration | Apache License 2.0 |
src/me/anno/extensions/events/EventHandler.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.extensions.events
annotation class EventHandler(val priority: Int = 0) | 0 | Kotlin | 1 | 9 | b2532f7d40527eb2c9e24e3659dd904aa725a1aa | 87 | RemsEngine | Apache License 2.0 |
chapter_two/app/src/main/java/com/madona/chapter_two/app_one/SportsScoreApp.kt | PacktPublishing | 797,780,112 | false | {"Kotlin": 37589} | package com.madona.chapter_two.app_one
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.m... | 0 | Kotlin | 0 | 0 | 0d16dd5b35723301b3fdab214be42b1263c7cdf1 | 3,153 | Modern-Android-15-Development-Cookbook-2nd-Edition | MIT License |
core1/src/main/kotlin/coroutines/Future.kt | pull-vert | 209,649,296 | false | null | package coroutines
import java.util.concurrent.Future
/**
* Cancels a specified [future] when this job is cancelled.
* This is a shortcut for the following code with slightly more efficient implementation (one fewer object created).
* ```
* invokeOnCancellation { future.cancel(false) }
* ```
*/
public fun Cance... | 0 | Kotlin | 0 | 0 | 2bf6a041b34a31765ecfbc6f925831f4d9351e07 | 869 | kotlin-play | Apache License 2.0 |
shared/src/commonMain/kotlin/me/saket/press/shared/preferences/sync/stats/SyncStatsForNerdsPresenter.kt | saket | 201,701,386 | false | null | package me.saket.press.shared.preferences.sync.stats
import com.badoo.reaktive.observable.ObservableWrapper
import com.badoo.reaktive.observable.combineLatest
import com.badoo.reaktive.observable.distinctUntilChanged
import com.badoo.reaktive.observable.flatMap
import com.badoo.reaktive.observable.startWithValue
impor... | 13 | null | 110 | 1,849 | 5f64350ec51402f3e6aeff145cbc35438780a03c | 2,893 | press | Apache License 2.0 |
library/src/main/java/org/dbtools/android/commons/ui/compose/image/ImageScrim.kt | jeffdcamp | 521,116,574 | false | {"Kotlin": 226673} | @file:Suppress("unused")
package org.dbtools.android.commons.ui.compose.image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout... | 0 | Kotlin | 0 | 3 | a725c575ec5ca9cf4323ddef8504236d54248c49 | 2,584 | android-commons-ui | Apache License 2.0 |
ledger/storage/src/main/kotlin/org/knowledger/ledger/storage/results/IntoResult.kt | andrediogo92 | 122,662,386 | false | {"Kotlin": 795385, "Rust": 9666, "Python": 228} | package org.knowledger.ledger.storage.results
import org.knowledger.ledger.database.results.DataFailure
import org.knowledger.ledger.database.results.QueryFailure
import org.knowledger.ledger.results.propagate
//---------------------------------------
//Into Ledger Result
//---------------------------------------
... | 0 | Kotlin | 1 | 3 | 0e5121243b9faf101b6d2ccf5bce60a657a31b4e | 5,011 | KnowLedger | MIT License |
src/main/kotlin/org/example/detekt/util/Graph.kt | 23522046 | 614,245,919 | false | {"Kotlin": 245020, "Shell": 738} | package org.example.detekt.util
import kotlin.collections.ArrayList
//class to store edges of the weighted graph
internal class Edge(var src: Int, var dest: Int, var weight: Int)
// Graph class
internal class Graph(edges: List<Edge>) {
// node of adjacency list
internal class Node(var value: Int, var weight... | 5 | Kotlin | 0 | 1 | c253009ea715dfbd7c73d42647562e25184a0530 | 1,450 | Detekt-Custom | Apache License 2.0 |
app/src/main/java/com/example/sneakersnap/AddNewSneaker.kt | codebyLFN | 655,790,055 | false | null | package com.example.sneakersnap
import android.app.Activity
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.Bitmap
import android.net.Uri
import android.os.Bundle
import android.provider.MediaStore
import android.widget.Button
import android.widget.EditText
import android... | 0 | Kotlin | 1 | 2 | 7e15c32ea9b1877bbd7a77651d06b6b454fdeed0 | 7,560 | SneakerSnap | MIT License |
src/main/java/de/tum/www1/orion/build/instructor/OrionRunConfigurationProvider.kt | MDK5 | 344,242,897 | true | {"Kotlin": 133045, "Java": 11785} | package de.tum.www1.orion.build.instructor
import com.intellij.execution.RunnerAndConfigurationSettings
interface OrionRunConfigurationProvider {
fun provideBuildAndTestRunConfiguration(): RunnerAndConfigurationSettings
} | 0 | Kotlin | 0 | 0 | 190135cf809227301a8b33826af236d33f49ce89 | 227 | Orion | MIT License |
old-app-kotlin/src/main/java/tech/thdev/kotlin_udemy_sample/data/FlickrPhoto.kt | becooni | 133,846,675 | true | {"Kotlin": 125549, "Java": 48845} | package tech.thdev.kotlin_udemy_sample.data
/**
* Created by tae-hwan on 11/13/16.
*/
data class FlickrPhoto(val id: String,
val secret: String,
val server: String,
val farm: Int,
val dateuploaded: String,
... | 0 | Kotlin | 0 | 1 | 6d4964e1f6e70162b33a8d76023f1bd7557c2dfd | 971 | Kotlin-Udemy-Sample | Apache License 2.0 |
android/src/main/java/com/vydia/RNUploader/GlobalRequestObserverDelegate.kt | sedeepaksharma | 461,828,271 | true | {"Objective-C": 30466, "JavaScript": 21623, "Kotlin": 20756, "Java": 7754, "Starlark": 1934, "Shell": 1600, "Ruby": 1116, "Swift": 161, "C": 104} | package com.vydia.RNUploader
import android.content.Context
import android.util.Log
import com.facebook.react.bridge.Arguments
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.WritableMap
import com.facebook.react.modules.core.DeviceEventManagerModule.RCTDeviceEventEmitter
impo... | 0 | Objective-C | 0 | 2 | 8edfce2787ddbdc7e5cfd3ba1a36fa665f243eec | 3,759 | react-native-background-upload | MIT License |
app/src/main/java/com/elementary/tasks/core/appwidgets/buttons/CombinedButtonsWidget.kt | naz013 | 165,067,747 | false | {"Kotlin": 2615719, "HTML": 20926} | package com.elementary.tasks.core.appwidgets.buttons
import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
import android.content.Context
import android.widget.RemoteViews
import com.elementary.tasks.R
import com.elementary.tasks.birthdays.create.AddBirthdayActivity
import com.elementary... | 0 | Kotlin | 2 | 4 | 3334dc71c3451e90e675ffe1300fc1c0cac30046 | 3,547 | reminder-kotlin | Apache License 2.0 |
basic-project/app/src/main/java/com/synerise/integration/app/di/DataModule.kt | Synerise | 848,174,151 | false | {"Kotlin": 490674} | package com.synerise.integration.app.di
import android.content.Context
import com.synerise.integration.app.product.storage.ProductDao
import com.synerise.integration.app.product.storage.ProductDatabase
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.Applic... | 0 | Kotlin | 0 | 0 | 76bb2dd6190ff91be3734fd0961b1cf72282f007 | 749 | android-codelabs | Apache License 2.0 |
playground/sandbox-compose/src/main/kotlin/com/sdds/playground/sandbox/switch/SandboxSwitch.kt | salute-developers | 765,665,583 | false | {"Kotlin": 1702334} | package com.sdds.playground.sandbox.switch
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import com.sdds.compose.uikit.Swi... | 2 | Kotlin | 0 | 1 | f48c90444d32f4c25e25d87570daba44f6312f35 | 2,259 | plasma-android | MIT License |
app/src/main/java/com/odogwudev/user_authentication_compose_ktor_mongodb/data/repository/RepositoryImpl.kt | odogwudev | 487,690,001 | false | {"Kotlin": 62241} | package com.odogwudev.user_authentication_compose_ktor_mongodb.data.repository
import com.odogwudev.user_authentication_compose_ktor_mongodb.data.remote.KtorApi
import com.odogwudev.user_authentication_compose_ktor_mongodb.domain.model.ApiRequest
import com.odogwudev.user_authentication_compose_ktor_mongodb.domain.mod... | 0 | Kotlin | 1 | 3 | a8b1ee274e43460ddccf7df49c894096ec72a257 | 2,231 | user_authentication_compose_ktor_mongodb | MIT License |
android_coverage_plugin/coverage-library/src/main/java/com/duqian/coverage_library/JacocoCallback.kt | duqian291902259 | 404,950,295 | false | {"Ignore List": 10, "Text": 4, "Markdown": 5, "HTML": 40, "JavaScript": 11, "CSS": 2, "Shell": 13, "Batchfile": 1, "YAML": 4, "Maven POM": 1, "Dockerfile": 5, "JSON": 2, "Makefile": 1, "JSON with Comments": 1, "Vue": 6, "Java": 32, "Kotlin": 23, "Gradle": 10, "Java Properties": 5, "INI": 3, "Proguard": 3, "XML": 21, "G... | package com.duqian.coverage_library
import java.io.File
/**
* Description:回调
* @author n20241 Created by 杜小菜 on 2022/1/21 - 10:01 .
* E-mail: duqian2010@gmail.com
*/
interface JacocoCallback {
fun onEcDumped(ecPath: String?)
fun onEcUploaded(isSingleFile: Boolean, ecFile: File)
fun onIgnored(failedMsg... | 2 | Java | 2 | 7 | 7044411b2f3216e40e77d0eb91a47aaa327362e4 | 374 | android_coverage_jacoco | Apache License 2.0 |
app/src/main/java/com/kennyc/sleeptimer/main/MainActivity.kt | Kennyc1012 | 134,072,353 | false | {"Kotlin": 28951} | package com.kennyc.sleeptimer.main
import android.os.Bundle
import android.preference.PreferenceManager
import android.text.format.DateUtils
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import com.google.android.material.tabs.TabLayout
... | 0 | Kotlin | 0 | 1 | 67bff9d23aeb0b8ace1fbb99c71c2644664678bf | 3,376 | Sleep-Timer | Apache License 2.0 |
app/src/main/java/ir/roohi/farshid/reminderpro/views/adapter/MapStyleAdapter.kt | FarshidRoohi | 156,371,913 | false | null | package ir.roohi.farshid.reminderpro.views.adapter
import android.annotation.SuppressLint
import android.graphics.Color
import android.os.Handler
import androidx.core.content.ContextCompat
import androidx.core.view.ViewCompat
import androidx.databinding.ViewDataBinding
import ir.farshid_roohi.customadapterrecycleview.... | 9 | Kotlin | 8 | 32 | ca8057f117442ae1ff292179723d0f779efbde7a | 2,645 | ReminderPro | Apache License 2.0 |
common/src/main/java/io/github/pelmenstar1/digiDict/common/GetLazyValue.kt | pelmenstar1 | 512,710,767 | false | null | package io.github.pelmenstar1.digiDict.common
/**
* If [currentValue] is null,
* then calls [create] lambda and the returned value of [create] is passed to [set] lambda
* which should set argument [T] to some member in a class.
* If [currentValue] isn't null, returns [currentValue]
*
* In other words, this just ... | 6 | Kotlin | 0 | 3 | 76a8229099c3775bb36fff5cedb15b5bf54945df | 1,114 | DigiDictionary | MIT License |
app/src/main/java/com/example/amoledwallpaper/wallpaperFirebase/Model/CategoryModel.kt | manojkp08 | 658,883,465 | false | null | package com.example.amoledwallpaper.wallpaperFirebase.Model
data class CategoryModel(
val id: String = "",
val link: String = "",
val name: String = ""
){
}
| 0 | Kotlin | 0 | 0 | f19c4eda5b381e6a5459eb29cac218222fd6dda5 | 171 | Titan_Wallpapres | MIT License |
cottontaildb-core/src/main/kotlin/org/vitrivr/cottontail/core/values/generators/ShortVectorValueGenerator.kt | vitrivr | 160,775,368 | false | {"Kotlin": 2769415, "TypeScript": 98011, "Java": 97672, "HTML": 38965, "ANTLR": 23679, "CSS": 8582, "SCSS": 1690, "JavaScript": 1441, "Dockerfile": 548} | package org.vitrivr.cottontail.core.values.generators
import org.vitrivr.cottontail.core.types.VectorValue
import org.vitrivr.cottontail.core.values.IntVectorValue
import org.vitrivr.cottontail.core.values.ShortVectorValue
import java.util.*
import java.util.random.RandomGenerator
/**
* A [VectorValueGenerator] for ... | 24 | Kotlin | 20 | 38 | bc4d0aa435aac78628fa7771dbf8333f1fe5a971 | 1,660 | cottontaildb | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.