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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/bpsrobotics/engine/utils/Sugar.kt | TheFlyingHedgehogs | 446,919,594 | false | null | package com.bpsrobotics.engine.utils
import com.kauailabs.navx.frc.AHRS
import kotlin.math.PI
// Don't show warnings if these functions are unused or could be private
@Suppress("unused", "MemberVisibilityCanBePrivate")
/**
* Sugar is an object where we are adding convenience functions
*/
object Sugar {
/**
... | 0 | Kotlin | 0 | 1 | 6e35698cf194d7cdbec05ecee8873f0c16fabeb5 | 1,342 | 2022-rapid-react | Apache License 2.0 |
data/src/main/java/com/example/data/mappers/mapperutil.kt | dayakaral | 851,617,558 | false | {"Kotlin": 28876} | package com.example.data.mappers
import com.example.data.db.entities.DefinitionEntity
import com.example.data.db.entities.LicenseEntity
import com.example.data.db.entities.MeaningEntity
import com.example.data.db.entities.PhoneticEntity
import com.example.data.db.entities.WordEntity
import com.example.domain.entities.... | 0 | Kotlin | 0 | 0 | f03d1ad299c74f7b9e32659204864a2598abb6cf | 2,585 | Dayakar_Dictionary | MIT License |
src/test/resources/test-compile-data/jvm/kotlin-web-site/basic-syntax/5ec261721162729866abc1e8f7293ef4.14.kt | AlexanderPrendota | 219,478,945 | false | null | //sampleStart
fun maxOf(a: Int, b: Int): Int {
if (a > b) {
return a
} else {
return b
}
}
//sampleEnd
fun main() {
println("max of 0 and 42 is ${maxOf(0, 42)}")
} | 14 | Kotlin | 47 | 89 | 95326951087813b6dea8b5ef4234fc06f252bd80 | 196 | kotlin-compiler-server | Apache License 2.0 |
Android_Service_2024/app/src/main/java/com/example/androidservicelearnings/job/jobsecheduler/MyJobService.kt | rahulgothwal5 | 767,463,333 | false | {"Kotlin": 70836} | package com.example.androidservicelearnings.job.jobsecheduler
import android.app.job.JobParameters
import android.app.job.JobService
import android.util.Log
import com.example.androidservicelearnings.MainActivity
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.Job
... | 0 | Kotlin | 0 | 0 | ee9344488239b66bf4aed2d07afefe329bb76f23 | 1,086 | Android-Services-2024 | MIT License |
app/src/main/java/com/devop/aashish/android/vo/Request.kt | aashish-aadarsh | 228,884,203 | false | null | /*
* Copyright(c) 2019 Aashish Aadarsh
*
* 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 appli... | 0 | Kotlin | 0 | 0 | e3e8a06368a8eca59c7c99d2da277c5ce50107c2 | 1,270 | android-sync-lib | Apache License 2.0 |
imagekit/src/main/java/com/gobinda/currency/converter/imagekit/CountryImageProvider.kt | gobinda1547 | 745,860,953 | false | {"Kotlin": 54684} | package com.gobinda.currency.converter.imagekit
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
object CountryImageProvider {
fun getBitmap(context: Context, countryCode: String): Bitmap {
try {
val validFileName = countryCode.lowercase().sub... | 0 | Kotlin | 0 | 0 | 144ed0a1b0c9464a31e778d41e1ca21905779045 | 829 | Currency-Converter-Android-App | MIT License |
konversation-plugin/src/main/kotlin/org/rewedigital/dialog/utils/KonversationExtensions.kt | CTeyson | 220,455,569 | true | {"Kotlin": 99215} | package org.rewedigital.dialog.utils
import org.rewedigital.dialog.handler.DialogflowHandler
import org.rewedigital.dialog.handler.DialogflowResponseBuilder
import org.rewedigital.dialog.model.google.GoogleSimpleResponse
import org.rewedigital.dialog.model.google.RichResponse
import org.rewedigital.konversation.Enviro... | 0 | null | 0 | 0 | 4077ceab3ae2b2baa98a728784f31daa75f381d0 | 1,972 | dialog | MIT License |
src/test/kotlin/no/fdk/concept_catalog/contract/SearchConcepts.kt | Informasjonsforvaltning | 366,717,204 | false | null | package no.fdk.concept_catalog.contract
import com.fasterxml.jackson.module.kotlin.readValue
import no.fdk.concept_catalog.configuration.JacksonConfigurer
import no.fdk.concept_catalog.model.Begrep
import no.fdk.concept_catalog.model.JsonSearchOperation
import no.fdk.concept_catalog.utils.ApiTestContext
import no.fdk.... | 4 | Kotlin | 0 | 0 | d9cf806429288841490c41aced349ac521fbcdfa | 3,755 | concept-catalog | Apache License 2.0 |
src/main/kotlin/docker/DockerService.kt | blackducksoftware | 190,764,009 | false | null | package docker
import com.synopsys.integration.exception.IntegrationException
import com.synopsys.integration.log.Slf4jIntLogger
import convertToString
import org.apache.commons.lang3.StringUtils
import org.slf4j.LoggerFactory
import java.io.File
import java.io.InputStream
import java.util.concurrent.TimeUnit
// TODO... | 0 | Kotlin | 0 | 0 | 1cd99710b9887b36869e3835a44922470a09d4f9 | 3,411 | blackduck-artifactory-automation | Apache License 2.0 |
app/src/main/java/de/niklasbednarczyk/nbweather/MainViewModel.kt | NiklasBednarczyk | 529,683,941 | false | null | package de.niklasbednarczyk.nbweather
import dagger.hilt.android.lifecycle.HiltViewModel
import de.niklasbednarczyk.nbweather.core.common.string.NBString
import de.niklasbednarczyk.nbweather.core.data.localremote.models.resource.NBResource
import de.niklasbednarczyk.nbweather.core.data.localremote.models.resource.NBRe... | 22 | Kotlin | 0 | 0 | b2d94e99336b908a48e784febda56a4750039cb2 | 4,384 | NBWeather | MIT License |
src/vi/teamlanhlung/src/eu/kanade/tachiyomi/extension/vi/teamlanhlung/TeamLanhLung.kt | komikku-app | 720,497,299 | false | {"Kotlin": 6775539, "JavaScript": 2160} | package eu.kanade.tachiyomi.extension.vi.teamlanhlung
import eu.kanade.tachiyomi.multisrc.a3manga.A3Manga
class TeamLanhLung : A3Manga("Team Lạnh Lùng", "https://teamlanhlungday.vip", "vi")
| 22 | Kotlin | 8 | 97 | 7fc1d11ee314376fe0daa87755a7590a03bc11c0 | 192 | komikku-extensions | Apache License 2.0 |
seeker/src/test/java/dev/vivvvek/seeker/SeekerUtilsTest.kt | 2307vivek | 595,118,282 | false | null | /*
* Copyright 2023 Vivek Singh
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 1 | Kotlin | 4 | 98 | 17f639093eca623930c75cd69ca44376e5116e62 | 1,632 | Seeker | Apache License 2.0 |
projects/tier-to-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/controller/model/PersonDetails.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 4354937, "HTML": 70066, "D2": 44286, "Ruby": 25921, "Shell": 19356, "SCSS": 6370, "HCL": 2712, "Dockerfile": 2447, "JavaScript": 1372, "Python": 268} | package uk.gov.justice.digital.hmpps.controller.model
data class PersonDetails(
val crn: String,
val name: Name
)
data class Name(
val forenames: String,
val surname: String
)
| 4 | Kotlin | 0 | 2 | bafb32470fd72f96026e8e8c53a636778c6abacf | 194 | hmpps-probation-integration-services | MIT License |
app/src/main/kotlin/com/contentful/tea/kotlin/content/rest/Converter.kt | contentful | 132,734,874 | false | null | package com.contentful.tea.kotlin.content.rest
import com.contentful.java.cda.CDAAsset
import com.contentful.java.cda.CDAEntry
import com.contentful.java.cda.image.ImageOption
import com.contentful.java.cda.image.ImageOption.formatOf
import com.contentful.java.cda.image.ImageOption.https
import com.contentful.tea.kotl... | 1 | Kotlin | 24 | 14 | e92edf20018b9a149100abb36286a226906e5c2d | 6,404 | the-example-app.kotlin | Apache License 2.0 |
app/src/main/java/com/aulbachscheuerpflug/mobileVrCamera/uiComponents/TakePhotoButton.kt | MobileVRCamera | 669,464,993 | false | {"Kotlin": 205215, "Java": 1153} | package com.aulbachscheuerpflug.mobileVrCamera.uiComponents
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.LinearOutSlowInEasing
import androidx.compose.animation.core.TweenSpec
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.fad... | 0 | Kotlin | 0 | 1 | bd57f48091f4d69d151ae808ba04939e483fe738 | 9,275 | MobileVRCamera | MIT License |
app/src/main/java/com/lomamo/lomamo3/adapters/MovieAdapter.kt | L0pesi | 589,295,448 | false | null | package com.lomamo.lomamo3.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.lomamo.lomamo3.R
import com.lomamo.lomamo3.database.models.MovieData
import com.lomamo.lomamo3.model... | 0 | Kotlin | 0 | 0 | 536f75b62c486b6110f4b48794d5aaba466dad09 | 1,597 | lomamo3 | The Unlicense |
src/main/kotlin/tokyo/pmmp/test/Core.kt | fuyutsuki | 121,720,904 | false | null | package tokyo.pmmp.test
import cn.nukkit.plugin.PluginBase
import cn.nukkit.utils.TextFormat
class Core : PluginBase() {
override fun onEnable() {
logger.info(TextFormat.GREEN.toString() + "ことりん(・8・)")
}
override fun onDisable() {
logger.info(TextFormat.RED.toString() + "さよならちゅん(・8・)")
... | 0 | Kotlin | 1 | 0 | c0bf58d18ef7fcd36d3b3728ffb871598ccae88a | 326 | TestPlugin-Kotlin | MIT License |
src/commonMain/kotlin/ru/spbstu/wheels/collections/IAbstractMutableSet.kt | vorpal-research | 185,828,983 | false | {"Kotlin": 245655} | package ru.spbstu.wheels.collections
interface IAbstractMutableSet<T>: IAbstractSet<T>, MutableSet<T>, IAbstractMutableCollection<T> {
override fun addAll(elements: Collection<T>): Boolean = super.addAll(elements)
override fun clear() = super.clear()
override fun removeAll(elements: Collection<T>): Boolean... | 0 | Kotlin | 2 | 1 | 389f9c290d496aae3d4f5eaa2a0d4f4863f281c2 | 795 | kotlin-wheels | MIT License |
src/jsMain/kotlin/baaahs/app/ui/settings/MainSettingsPanel.kt | baaahs | 174,897,412 | false | {"Kotlin": 4817815, "C": 1529197, "C++": 661363, "GLSL": 412779, "JavaScript": 61944, "HTML": 56277, "CMake": 30499, "CSS": 4340, "Shell": 2381, "Python": 1450} | package baaahs.app.ui.settings
import baaahs.app.settings.UiSettings
import baaahs.app.ui.appContext
import baaahs.app.ui.dialog.DialogPanel
import baaahs.ui.View
import baaahs.ui.renderWrapper
import baaahs.ui.typographyH6
import baaahs.ui.xComponent
import mui.material.*
import react.*
class MainSettingsPanel(
... | 111 | Kotlin | 13 | 40 | 77ad22b042fc0ac440410619dd27b468c3b3a600 | 3,550 | sparklemotion | MIT License |
proj-js/src/jsMain/kotlin/io/github/alexoooo/sample/proj/Main.kt | alexoooo | 251,178,920 | false | {"Kotlin": 26068, "JavaScript": 473, "HTML": 209} | package io.github.alexoooo.sample.proj
import kotlinx.browser.window
import react.FC
import react.Props
import react.create
import react.dom.client.createRoot
import web.html.HTMLElement
fun main() {
val rootHtmlElementId = "react-app"
fun emptyRootElement(): HTMLElement {
val rootElement = web.dom.... | 1 | Kotlin | 0 | 0 | 315a248515d9d646367fdcdd9457d4040b0d775a | 784 | sample-multiplatform-boot-react | Creative Commons Zero v1.0 Universal |
src/main/kotlin/elements/api/ability/executor/AbilityExecutor.kt | ElementsPlugin | 163,351,686 | false | null | package elements.api.ability.executor
import org.spongepowered.api.scheduler.Task
import java.util.concurrent.TimeUnit
interface AbilityExecutor {
val currentTask: Task?
fun executeDelay(delay: Long, unit: TimeUnit, task: (Long) -> Unit)
fun executeYield(unit: TimeUnit, task: (Long) -> Unit)
} | 0 | Kotlin | 0 | 0 | d86f268dd9e7f1799ec4ab33e6cf12d030e82de7 | 311 | elements-api | MIT License |
common/src/main/java/jp/co/soramitsu/common/interfaces/FileProvider.kt | guangxingmao | 315,566,082 | true | {"Kotlin": 795393} | package jp.co.soramitsu.common.interfaces
import io.reactivex.Single
import java.io.File
interface FileProvider {
fun createFileInTempStorage(fileName: String): Single<File>
} | 0 | null | 0 | 0 | e4139ee7cbb9b48b4b622d6a3ddcf4a9e25dabca | 182 | fearless-Android | Apache License 2.0 |
multifilepicker/src/main/java/br/com/alissontfb/multifilepicker/model/ObFileView.kt | AlissonBolsoni | 172,914,743 | false | null | package br.com.alissontfb.multifilepicker.model
import java.io.File
import java.util.*
class ObFileView(
var root: File,
var itemsInPath: ArrayList<ObFileItemView>
)
class ObFileItemView(
val item: File
){
var checked = false
}
| 0 | Kotlin | 0 | 0 | 300ab6bfd44562779e6d190f6914c1637460bda4 | 271 | MultiPickerLib | MIT License |
maps-compose-web/src/jsMain/kotlin/com/chihsuanwu/maps/compose/web/MapApplier.kt | chihsuanwu | 606,414,454 | false | {"Kotlin": 170197, "HTML": 180} | package com.chihsuanwu.maps.compose.web
import androidx.compose.runtime.AbstractApplier
import com.chihsuanwu.maps.compose.web.jsobject.MapView
internal interface MapNode {
fun onAttached() {}
fun onRemoved() {}
fun onCleared() {}
}
private object MapNodeRoot : MapNode
internal class MapApplier(
val... | 3 | Kotlin | 1 | 13 | be5a689d2fc9ae62baf40169fae6727fd18f2ae9 | 1,042 | google-maps-compose-web | Apache License 2.0 |
app/src/main/java/com/ricardojrsousa/movook/presentation/viewHolders/MovieSuggestionViewHolder.kt | RicardoRSousa | 246,833,387 | false | null | package com.ricardojrsousa.movook.presentation.viewHolders
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import com.ricardojrsousa.movook.R
import com.ricardojrsousa.movook.core.data.Movie
import com.ricardojrsousa.movook.wrappers.loadBigMovie... | 0 | Kotlin | 0 | 0 | 5dc6dea7b0785f95409f9b32600e702c0abefa22 | 1,491 | Movook | The Unlicense |
nanoc-kt-core/src/main/java/net/opatry/nanoc/kt/dsl/PreProcessRule.kt | opatry | 327,147,143 | false | null | package net.opatry.nanoc.kt.dsl
import net.opatry.nanoc.kt.core.ContextProvider
import net.opatry.nanoc.kt.core.Repository
class PreProcessRule(private val repository: Repository, val run: PreProcessRule.() -> Unit): Rule(), ContextProvider by repository | 0 | Kotlin | 0 | 0 | cdf946e5ec4cff6a9653f224979e1e6442a6e9d9 | 256 | nanoc-kt | Apache License 2.0 |
components/keyscreen/impl/src/main/java/com/flipperdevices/keyscreen/impl/viewmodel/KeyScreenViewModelFactory.kt | flipperdevices | 288,258,832 | false | null | package com.flipperdevices.keyscreen.impl.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.flipperdevices.bridge.dao.api.model.FlipperKeyPath
class KeyScreenViewModelFactory(
private val keyPath: FlipperKeyPath?
) : ViewModelProvider.NewInstanceFactory() {
@... | 2 | Kotlin | 29 | 266 | ea066973aaca66c6c5338912397d59a7c8b658d1 | 470 | Flipper-Android-App | MIT License |
oauth2/src/test/kotlin/org/scriptonbasestar/auth/oauth2/CallContextInImpl.kt | ScriptonBasestar-io | 453,046,222 | false | {"Kotlin": 106009} | package org.scriptonbasestar.auth.oauth2
import org.scriptonbasestar.auth.http.Headers
import org.scriptonbasestar.auth.http.HttpMethod
import org.scriptonbasestar.auth.http.HttpProto
import org.scriptonbasestar.auth.http.Params
import org.scriptonbasestar.auth.oauth2.context.CallContextIn
import org.scriptonbasestar.... | 0 | Kotlin | 0 | 0 | 99463f1f3733c6029fbcdb9bf9dc1df95eb6ee76 | 731 | sb-authorization-server | Apache License 2.0 |
app/src/main/java/ru/axcheb/spotifyapi/ui/search/SearchableViewHolder.kt | axcheb | 402,218,865 | false | null | package ru.axcheb.spotifyapi.ui.search
import androidx.recyclerview.widget.RecyclerView
import androidx.viewbinding.ViewBinding
import ru.axcheb.spotifyapi.data.model.SearchableEntity
abstract class SearchableViewHolder<T : SearchableEntity>(binding: ViewBinding) :
RecyclerView.ViewHolder(binding.root) {
abst... | 0 | Kotlin | 0 | 0 | a40c53cfe39d9e9b2ee58c09236e9b0d57e4462d | 345 | SpotifyBrowser | MIT License |
shared/src/main/java/com/armandodarienzo/k9board/shared/model/TextComposition.kt | armyj94 | 783,586,202 | false | {"Kotlin": 164768} | package com.armandodarienzo.k9board.shared.model
class TextComposition(
startIndex: Int,
endIndex: Int,
text: String
) {
var startIndex = startIndex
private set
var endIndex = endIndex
private set
var text = text
private set
val length: Int = endIndex - startInde... | 0 | Kotlin | 0 | 0 | 73c51d708b0b82aa421b9ae622d21ed2a4234014 | 732 | K9board | The Unlicense |
core/src/jvmMain/kotlin/info/laht/threekt/objects/Line.kt | jonike | 199,983,331 | true | {"Kotlin": 581556, "GLSL": 105344} | package info.laht.threekt.objects
import info.laht.threekt.core.*
import info.laht.threekt.materials.LineBasicMaterial
import info.laht.threekt.math.Vector3
open class Line @JvmOverloads constructor(
geometry: BufferGeometry? = null,
material: LineBasicMaterial? =null
): Object3DImpl(), GeometryObject, Mate... | 0 | Kotlin | 0 | 0 | 6704a3cea0e5d754304f945929bb4a257a5be6bd | 1,567 | three.kt | MIT License |
local/src/test/kotlin/io/github/gmvalentino8/github/sample/local/error/LocalExceptionHandlerTest.kt | wasabi-muffin | 462,369,263 | false | {"Kotlin": 2712155, "Mustache": 4796, "Ruby": 1144, "Shell": 812} | package io.github.gmvalentino8.github.sample.local.error
import io.kotest.matchers.shouldBe
import io.github.gmvalentino8.github.sample.data.core.DataException
import io.github.gmvalentino8.github.sample.local.core.LocalExceptionHandler
import org.junit.Test
class LocalExceptionHandlerTest {
private val localExce... | 0 | Kotlin | 0 | 1 | 2194a2504bde08427ad461d92586497c7187fb40 | 669 | github-sample-project | Apache License 2.0 |
app/src/main/java/com/harshad/projectclean/APIRequests/grievance_data_class/GrievancesListResponse.kt | TwoPointerr | 455,129,436 | false | {"Kotlin": 57873} | package com.harshad.projectclean.APIRequests.grievance_data_class
data class GrievancesListResponse(val gri_data: List<SingleGrievanceResponse>)
| 1 | Kotlin | 1 | 2 | c815c0cfda332dabf5f63dab5d96a4ad1c41c9e4 | 146 | Project-Clean-Android-Application | MIT License |
app/src/main/java/com/uzias/starwarsshop/core/networking/errors/RestErrorsHandler.kt | uziassantosferreira | 108,789,405 | false | null | package com.uzias.starwarsshop.core.networking.errors
import com.uzias.starwarsshop.core.errors.ContentNotFoundError
import com.uzias.starwarsshop.core.errors.UnexpectedResponseError
import io.reactivex.Flowable
import io.reactivex.FlowableTransformer
import io.reactivex.functions.Function
import org.reactivestreams.P... | 0 | Kotlin | 1 | 38 | dec2d949a69e870bf37a76c4f22d86c93c12c143 | 1,296 | Star-Wars-Shop | Apache License 2.0 |
vitrivr-engine-module-m3d/src/main/kotlin/org/vitrivr/engine/model3d/lwjglrender/render/Render.kt | vitrivr | 679,355,326 | false | {"Kotlin": 1141621, "GLSL": 568} | package org.vitrivr.engine.model3d.lwjglrender.render
import org.lwjgl.opengl.GL
import org.lwjgl.opengl.GL30
import org.vitrivr.engine.model3d.lwjglrender.window.Window
import org.vitrivr.engine.model3d.lwjglrender.glmodel.GLScene
/**
* This class holds the render logic for the LWJGL engine
* Holds the [SceneRend... | 9 | Kotlin | 3 | 5 | da6775b4ebee9ab4e8b76848bafdcdd31db189f9 | 1,721 | vitrivr-engine | MIT License |
app/src/main/java/com/nakul/blogWall/adapters/TrendingBlogAdapter.kt | nakul-19 | 368,067,955 | false | null | package com.nakul.blogWall.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.nakul.blogWall.activities.BlogActivity
import com.nakul.blogWall.databinding.ItemTrendingBlogsBinding
import com.nakul.blogWal... | 0 | Kotlin | 0 | 6 | 75088bce7a5f4b516c7c702cc83c7226c151e829 | 1,410 | Blog-Wall | MIT License |
payze-android-sdk/src/main/java/com/payze/sdk/model/CardBrandType.kt | PayzeTech | 876,806,123 | false | {"Kotlin": 62807, "Java": 26374} | package com.payze.sdk.model
enum class CardBrandType(val type: String) {
VISA("Visa"),
MASTER_CARD("MasterCard"),
HUMO("Humo"),
UZ_CARD("Uzcard"),
AMEX("AmexCredit");
} | 0 | Kotlin | 0 | 0 | 9360a967d0de1d50a34f9af0799f696f2943aead | 189 | Payze-Android-SDK | MIT License |
src/main/kotlin/com/github/atsumerudev/api/metron/network/MetronService.kt | AtsumeruDev | 584,515,155 | false | null | package com.github.atsumerudev.api.metron.network
import com.github.atsumerudev.api.metron.model.Issue
import com.github.atsumerudev.api.metron.model.ResponseResult
import com.github.atsumerudev.api.metron.model.Serie
import com.github.atsumerudev.api.metron.model.info.*
import com.github.atsumerudev.api.metron.model.... | 0 | Kotlin | 0 | 0 | 5df48fef47f17e3498765b26a2b4378264227036 | 4,619 | MetronAPI | MIT License |
presentation/src/main/java/com/example/huitdduru/view/sign/RegisterActivity.kt | HUITDDURU | 468,589,462 | false | null | package com.example.huitdduru.view.sign
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.fragment.app.commit
import com.example.huitdduru.R
import com.example.huitdduru.databinding.ActivityRegisterBinding
import com.example.huitdduru.base.BaseActivity
import dagger.hilt.android.AndroidEnt... | 1 | Kotlin | 1 | 0 | 4d390a361b75289f76e4ce427a07e28a8c19d909 | 912 | RUMA_Android | MIT License |
fontawesome/src/de/msrd0/fontawesome/icons/FA_L.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 | 1,340 | fontawesome-kt | Apache License 2.0 |
app/src/main/java/cafe/adriel/cryp/view/custom/QrCodeOverlayView.kt | adrielcafe | 105,951,831 | false | null | package cafe.adriel.cryp.view.custom
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.PointF
import android.util.AttributeSet
import android.view.View
import cafe.adriel.cryp.R
import cafe.adriel.cryp.colorFrom
class QrCodeOverlayView(context: Context... | 0 | Kotlin | 9 | 27 | 5e9c5f805c66990f4b7da3169a0044bb251ccd22 | 888 | CrypAndroidApp | MIT License |
data/src/main/java/com/phil/airinkorea/data/database/model/GPSLocationEntity.kt | want8607 | 574,473,916 | false | null | package com.phil.airinkorea.data.database.model
import androidx.room.ColumnInfo
import androidx.room.Entity
import com.phil.airinkorea.data.model.Location
/**
* 사용자의 GPS로 부터 얻어온 시군구 정보, 측정소 정보를 가지는 entity
*/
@Entity(
tableName = "gps_location",
primaryKeys = ["en_do", "en_sigungu", "en_eupmyeondong"]
)
data... | 0 | Kotlin | 0 | 0 | e61bc7ef1039578347e1d47f32f629c085ffce3d | 825 | AirInKorea | Apache License 2.0 |
app/src/test/java/com/anddev404/calculatorbmi/SharedViewModelTest.kt | anddev404 | 528,137,106 | false | {"Kotlin": 62710, "HTML": 6655} | package com.anddev404.calculatorbmi
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.LiveData
import androidx.lifecycle.Observer
import com.anddev404.calculatorbmi.data.model.WeightUnit
import junit.framework.TestCase
import org.junit.After
import org.junit.Before
import org... | 0 | Kotlin | 1 | 0 | d07545a6b62328f7d6dbff272d96adb975379b3b | 2,403 | Calculator-Bmi | Apache License 2.0 |
libraries/rib-base/src/main/java/com/badoo/ribs/routing/source/backstack/BackStackFeature.kt | ShikaSD | 178,303,031 | true | {"Kotlin": 1643578} | package com.badoo.ribs.routing.source.backstack
import android.os.Bundle
import android.os.Parcelable
import com.badoo.mvicore.android.AndroidTimeCapsule
import com.badoo.mvicore.element.Actor
import com.badoo.mvicore.element.Bootstrapper
import com.badoo.mvicore.element.Reducer
import com.badoo.mvicore.element.TimeCa... | 0 | Kotlin | 0 | 0 | 0ffeabef7928bb94d186baa5b8d94616f77c6a01 | 9,379 | RIBs | Apache License 2.0 |
konfig-yaml/src/jvmTest/kotlin/net/mamoe/konfig/yaml/TestNewStream.kt | Hai-tun | 261,638,920 | true | {"Kotlin": 155051} | package net.mamoe.konfig.yaml
import kotlinx.serialization.Serializable
import org.junit.Test
internal class TestNewStream {
@Test
fun testNewStream() {
@Serializable
data class Data(
val s: String
)
println(
Yaml.default.parse(
Data.se... | 0 | null | 0 | 0 | 10d0f98be2f24ed5989364f7d59941caffdcc441 | 396 | konfig | Apache License 2.0 |
src/main/kotlin/payload/response/Items.kt | LastExceed | 249,260,520 | false | null | package payload.response
import kotlinx.serialization.Serializable
import payload.response.common.ItemShort
@Serializable
data class Items private constructor(
val items: List<ItemShort>
) | 24 | Kotlin | 0 | 3 | c6526533f943fb5819d275fdfae0b97ae5a1d7d0 | 191 | WarframeMarKT | MIT License |
src/main/kotlin/com/michigang1/backendcourse/models/Category.kt | michigang1 | 717,830,098 | false | {"Kotlin": 23565, "Dockerfile": 440} | package com.michigang1.backendcourse.models
data class Category(
var id: Int = 0,
val name: String? = "No name provided",
)
| 0 | Kotlin | 0 | 1 | 6940a025d0e624b57798dde73d1660f9a95a3997 | 134 | back-end-course | MIT License |
subprojects/android-test/test-screenshot/src/main/java/com/avito/android/test/screenshot_test/internal/BitmapHelpers.kt | avito-tech | 230,265,582 | false | {"Kotlin": 3385243, "Java": 52258, "Shell": 28052, "Dockerfile": 12770, "Makefile": 8156, "HTML": 2803} | package com.avito.android.test.screenshot_test.internal
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.util.Log
import java.io.File
import java.io.FileInputStream
import java.io.FileOutputStream
@SuppressLint("S... | 7 | Kotlin | 45 | 382 | 52f5fe52961d2e32413f1228746249055b07f663 | 913 | avito-android | MIT License |
subprojects/android-test/test-screenshot/src/main/java/com/avito/android/test/screenshot_test/internal/BitmapHelpers.kt | avito-tech | 230,265,582 | false | {"Kotlin": 3385243, "Java": 52258, "Shell": 28052, "Dockerfile": 12770, "Makefile": 8156, "HTML": 2803} | package com.avito.android.test.screenshot_test.internal
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.util.Log
import java.io.File
import java.io.FileInputStream
import java.io.FileOutputStream
@SuppressLint("S... | 7 | Kotlin | 45 | 382 | 52f5fe52961d2e32413f1228746249055b07f663 | 913 | avito-android | MIT License |
sykepenger-mediators/src/main/kotlin/no/nav/helse/spleis/PersonMediator.kt | navikt | 193,907,367 | false | null | package no.nav.helse.spleis
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.databind.node.ObjectNode
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.module.kotlin.convertValue
import com.fast... | 1 | Kotlin | 5 | 5 | a1d4ace847a123e6bf09754ea0640116caf6ceb7 | 14,439 | helse-spleis | MIT License |
app/src/main/java/com/romnan/kamusbatak/domain/model/Language.kt | deddyrumapea | 458,088,031 | false | {"Kotlin": 204437, "CMake": 1603} | package com.romnan.kamusbatak.domain.model
import com.romnan.kamusbatak.R
import com.romnan.kamusbatak.domain.util.UIText
enum class Language(
val displayName: UIText,
val codeName: String,
) {
BTK(
displayName = UIText.StringResource(R.string.batak),
codeName = "btk",
),
IND(
... | 0 | Kotlin | 0 | 1 | 31f0711b770ec97ce4b3f7fc4a07dc02331db1ed | 417 | KamusBatak | Apache License 2.0 |
2022/06/06.kt | LiquidFun | 435,683,748 | false | {"Kotlin": 40554, "Rust": 37108, "Python": 36317, "Julia": 29455, "OCaml": 2592, "C++": 1965, "Shell": 1714, "APL": 191} | fun String.solve(n: Int) = n + this.windowed(n).indexOfFirst { it.toSet().size == it.length }
fun main() {
val s = readln()
println(s.solve(4))
println(s.solve(14))
}
| 0 | Kotlin | 7 | 45 | de350478dcc03bf8dee41fca356247e512769475 | 180 | adventofcode | Apache License 2.0 |
android/app/src/main/java/com/algorand/android/assetsearch/domain/pagination/AssetSearchPagination.kt | perawallet | 364,359,642 | false | {"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596} | /*
* Copyright 2022 Pera Wallet, LDA
* 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,... | 22 | Swift | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 2,318 | pera-wallet | Apache License 2.0 |
app/src/main/kotlin/com/adesso/movee/internal/util/typeconverter/GenreConverter.kt | adessoTurkey | 246,803,496 | false | {"Kotlin": 262786, "Shell": 866} | package com.adesso.movee.internal.util.typeconverter
import androidx.room.TypeConverter
class GenreConverter {
@TypeConverter
fun fromString(genreIds: String): List<Long> {
return if (genreIds.isNotEmpty()) {
genreIds.split(",").map { it.toLong() }
} else {
emptyList()... | 31 | Kotlin | 13 | 35 | b34346a815204c966311f0c879b66e05a10eab13 | 464 | android-sample-app | Apache License 2.0 |
repository/src/main/java/jp/co/yahoo/android/repository/item/ItemEntityRepository.kt | yuukiw00w | 186,211,214 | false | {"Kotlin": 10759, "Ruby": 1176, "Shell": 368} | package jp.co.yahoo.android.repository.item
data class ItemEntityRepository(val itemEntity: ItemEntity) | 0 | Kotlin | 0 | 0 | b325597621616fdcb0a37e2f3d73b613f02e3f90 | 104 | QiitaReaderForAndroid | Apache License 2.0 |
composeApp/src/commonMain/kotlin/ui/Assets.kt | ShreyashKore | 672,328,509 | false | null | package ui
import models.ChichenItza
import models.ChristRedeemer
import models.Colosseum
import models.GreatWall
import models.MachuPicchu
import models.Petra
import models.PyramidsGiza
import models.TajMahal
import models.Wonder
object ImagePaths {
const val root = "files/images"
val collectibles = "$root/... | 4 | null | 2 | 94 | a0d32d8abc3e6b0470f38e74d1e632e1ab3f0999 | 1,874 | wonderous_compose | MIT License |
app/shared/cloud-backup/public/src/commonMain/kotlin/build/wallet/cloud/backup/csek/SealedCsek.kt | proto-at-block | 761,306,853 | false | {"C": 10424094, "Kotlin": 7156393, "Rust": 2046237, "Swift": 700307, "Python": 331492, "HCL": 271992, "Shell": 111209, "TypeScript": 102700, "C++": 64770, "Meson": 64234, "JavaScript": 36227, "Just": 28071, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.cloud.backup.csek
import build.wallet.serialization.ByteStringAsHexSerializer
import kotlinx.serialization.Serializable
import okio.ByteString
/**
* Represents encrypted CSEK (Cloud Storage Encryption Key). Acts as an alias to access raw
* [Csek] from [CsekDao].
*
* Generally speaking, this k... | 0 | C | 10 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 778 | bitkey | MIT License |
year2019/day14/chemistry/src/test/kotlin/com/curtislb/adventofcode/year2019/day14/chemistry/ReactionTest.kt | curtislb | 226,797,689 | false | {"Kotlin": 1905641} | package com.curtislb.adventofcode.year2019.day14.chemistry
import kotlin.test.assertEquals
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
/**
* Tests [Reaction].
*/
class ReactionTest {
@Test
fun testConstructWithNoReactants() {
assertThrows<IllegalArgumentException> {
... | 0 | Kotlin | 1 | 1 | addf5ae8d002d30abf1ab816e23502a296debc4e | 1,883 | AdventOfCode | MIT License |
mod/src/main/kotlin/kotx/customgui/view/creators/RectViewCreator.kt | TeamKun | 344,696,205 | false | null | package kotx.customgui.view.creators
import com.mojang.blaze3d.matrix.MatrixStack
import kotx.customgui.gui.guis.EditorGUI
import kotx.customgui.util.component
import kotx.customgui.view.ViewCreator
import kotx.customgui.view.ViewType
import kotx.customgui.view.holders.RectViewHolder
import kotx.customgui.view.views.... | 0 | Kotlin | 0 | 0 | 57f4d373f2f9bb80c91ce5671e78edb4e32deb49 | 4,162 | CustomGUI | MIT License |
app/src/main/java/com/androidstudy/mpesa/MpesaExpressApp.kt | orama254 | 300,177,523 | true | {"Kotlin": 35147, "Java": 2248} | package com.androidstudy.mpesa
import com.androidstudy.mpesa.di.DaggerAppComponent
import dagger.android.AndroidInjector
import dagger.android.DaggerApplication
class MpesaExpressApp : DaggerApplication() {
override fun applicationInjector(): AndroidInjector<out DaggerApplication> {
return DaggerAppCompo... | 0 | null | 0 | 0 | fc0b3c29d439cd2f6717531a040b66645eac5ba6 | 341 | android-mpesa-api | MIT License |
sample/src/main/kotlin/pl/hypeapp/materialtimelinesample/model/Timepoint.kt | hypeapps | 106,310,523 | false | null | package pl.hypeapp.materialtimelinesample.model
import pl.hypeapp.materialtimelinesample.adapter.ViewType
data class Timepoint(val timepoint: String,
val description: String) : ViewType {
override fun getViewType(): Int = ViewType.LINE
}
| 3 | Kotlin | 81 | 457 | 3f8c5d703d32deaa830166c125895b0ce50ccebc | 267 | MaterialTimelineView | MIT License |
client/src/main/java/com/fesskiev/compose/presentation/NoteDetailsViewModel.kt | fesskiev | 328,395,075 | false | null | package com.fesskiev.compose.presentation
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.fesskiev.compose.data.remote.parseHttpError
import com.fesskiev.compose.domain.GetNoteByIdUseCase
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.catch
import... | 0 | Kotlin | 0 | 0 | 30ebd00d91fda759f5b4b558e0b0f12fcb61b67b | 1,161 | NotesClientServerApp | MIT License |
src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BlueprintWebClientService.kt | excelsior-esy | 190,620,763 | false | {"Gradle Kotlin DSL": 2, "INI": 5, "Shell": 3, "Text": 3, "Ignore List": 1, "Batchfile": 1, "AsciiDoc": 1, "YAML": 4, "JSON": 77, "Python": 28, "Java Properties": 4, "XML": 30, "Unity3D Asset": 7, "Kotlin": 184, "Velocity Template Language": 10, "Jinja": 1, "Java": 16, "Dockerfile": 1, "Groovy": 4} | /*
* Copyright © 2017-2019 AT&T, Bell Canada, Nordix Foundation
* Modifications Copyright © 2018-2019 IBM.
* Modifications Copyright © 2019 Huawei.
*
* 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... | 1 | null | 1 | 1 | 8e5d445d627fb36106468fed1d8d21988f59f976 | 11,709 | blueprintsprocessor | Apache License 2.0 |
core/src/com/jupiter/europa/entity/ability/spell/Spells.kt | ntemplon | 27,618,453 | false | {"Gradle": 4, "Text": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Kotlin": 138, "Java": 19, "XML": 3, "JSON": 2} | /*
* The MIT License
*
* Copyright 2015 <NAME>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | 0 | Kotlin | 0 | 2 | 53129de6e9d293f5603f8e8a30824d4de2deb93e | 2,721 | legends-of-omterra | MIT License |
app/src/main/java/brandonhogan/com/liftscout/ui/main/MainViewModel.kt | BrandonMHogan | 148,831,992 | false | null | package brandonhogan.com.liftscout.ui.main
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class MainViewModel : ViewModel() {
object _data: MutableLiveData<String>()
fun data(): MutableLiveData<String> {
return _data
}
init {... | 0 | Kotlin | 0 | 0 | ffce19f8211bb358bb3c17f427834bfb0f90c8a0 | 494 | LiftScout-Android-older | Apache License 2.0 |
app/src/test/kotlin/jp/co/yumemi/android/code_check/viewModels/MockSearchViewModel.kt | takarabe-hamuyatti | 447,246,733 | false | {"Kotlin": 26566} | package jp.co.yumemi.android.code_check.viewModels
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import jp.co.yumemi.android.code_check.viewModels.SearchViewModel.Companion.SORT_NOT_UPDATED
import jp.co.yumemi.a... | 9 | Kotlin | 0 | 0 | e3b7694d4f679e41e8ed4f4060ed72a38f00816d | 949 | android-codcheck-takarabe | Apache License 2.0 |
app/src/main/java/dev/sebastiano/bundel/navigation/LicensesScreen.kt | code-with-the-italians | 362,199,267 | false | null | package dev.sebastiano.bundel.navigation
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.materi... | 4 | Kotlin | 22 | 243 | 01e0945be1787bc6ac7b9765f63599ab33d85e2d | 2,521 | bundel | Apache License 2.0 |
app/src/main/kotlin/io/github/bsfranca2/athena/dto/TesteDto.kt | bsfranca2 | 275,465,877 | false | null | package io.github.bsfranca2.athena.dto
import javax.validation.Valid
import javax.validation.constraints.Email
import javax.validation.constraints.NotBlank
import javax.validation.constraints.NotNull
data class TesteDto(@field:Valid val pessoas: List<PessoaDto>)
data class PessoaDto(@field:Email val email: String, @... | 11 | Kotlin | 0 | 0 | 8a048990c1a6ebf23a567490476fc7e41fdadc71 | 376 | Athena | MIT License |
src/main/kotlin/be/zvz/semy/utils/ClovaManager.kt | JellyBrick | 650,763,916 | false | null | package be.zvz.semy.utils
import be.zvz.clova.Clova
object ClovaManager {
private val clova = Clova()
val ocr = clova.ocr.getValue(Clova.OCR.PAPAGO)
val speech = clova.tts.getValue(Clova.TTS.CLOVA)
val translate = clova.translation.getValue(Clova.Translation.N2MT)
} | 2 | Kotlin | 0 | 0 | e200bb7aaefee96d7fc959bb4a7e8822529c82e0 | 284 | semy | Apache License 2.0 |
src/commonMain/kotlin/maryk/rocksdb/TransactionOptions.kt | webnah | 195,759,908 | true | {"Kotlin": 707302} | package maryk.rocksdb
expect class TransactionOptions() : RocksObject {
fun isSetSnapshot(): Boolean
fun setSetSnapshot(setSnapshot: Boolean): TransactionOptions
/**
* True means that before acquiring locks, this transaction will
* check if doing so will cause a deadlock. If so, it will return ... | 0 | Kotlin | 0 | 0 | 92ec1677df1646d817abfd434929d27d430ec319 | 3,962 | rocksdb | Apache License 2.0 |
app/src/main/java/ru/mobile/lukslol/di/module/RepositoryModule.kt | silverxcoins | 260,674,124 | false | {"Kotlin": 73778} | package ru.mobile.lukslol.di.module
import dagger.Module
import dagger.Provides
import ru.mobile.lukslol.domain.repository.FeedRepository
import ru.mobile.lukslol.domain.repository.SummonerRepository
import ru.mobile.lukslol.domain.repository.impl.FeedRepositoryImpl
import ru.mobile.lukslol.domain.repository.impl.Summ... | 0 | Kotlin | 0 | 1 | bdedaf16c62777f413e56d0d3a0b1336d1966d98 | 972 | LukS-LoL-Tracker | Apache License 2.0 |
transport/src/commonMain/kotlin/com/genesys/cloud/messenger/transport/shyrka/receive/PresignedUrlResponse.kt | MyPureCloud | 425,920,457 | false | {"Kotlin": 475567, "Swift": 107568, "Shell": 5872, "Ruby": 4062} | package com.genesys.cloud.messenger.transport.shyrka.receive
import kotlinx.serialization.Serializable
@Serializable
internal data class PresignedUrlResponse(
val attachmentId: String,
val headers: Map<String, String>,
val url: String,
val fileName: String? = null,
val fileSize: Int? = null,
v... | 1 | Kotlin | 6 | 9 | 2679aa5fe48c362bc95a6ef2629f6cc41a12a0f4 | 350 | genesys-messenger-transport-mobile-sdk | MIT License |
src/test/kotlin/dsl11.getter/LinkSpec.kt | C06A | 127,220,753 | false | null | package dsl11.getter
import io.kotlintest.matchers.*
import io.kotlintest.specs.StringSpec
import java.net.URI
import java.util.*
class LinkSpec: StringSpec() {
init {
val linkList = listOf<Link>(
"relation" link "address",
"relation" link {
HREF["addres... | 0 | Kotlin | 0 | 0 | afeb540b7060f7ddf01427158205b3a96b3a8fc0 | 4,275 | ExampleDSL | Apache License 2.0 |
android/app/src/main/kotlin/be/chiahpa/khiin/keyboard/components/IconKey.kt | OMAMA-Taioan | 634,144,761 | false | {"Rust": 354725, "Kotlin": 48490, "Swift": 45584, "Svelte": 12104, "Shell": 5204, "C": 4007, "PowerShell": 3819, "JavaScript": 1756, "TypeScript": 1623, "CSS": 721, "HTML": 371} | package be.chiahpa.khiin.keyboard.components
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Image
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.fill... | 4 | Rust | 3 | 8 | 9a7ad181c68470817a887ba92282e481f3c41c38 | 1,272 | khiin-rs | MIT License |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/BrandCucumber.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 4,541 | compose-icon-collections | MIT License |
kotlin_adapter/adapter_exension/stickyHeader/StickyAdapterInterface.kt | Jay-YaoJie | 164,579,725 | false | null | package kotlin_adapter.adapter_exension.stickyHeader
import android.view.ViewGroup
/**
* Created by liufei on 2017/12/4.
*/
interface StickyAdapterInterface<VH> {
fun getHeaderId(position: Int): Long
fun onCreateHeaderViewHolder(parent: ViewGroup, position: Int): VH?
fun onBindHeaderViewHolder(hold... | 0 | Kotlin | 0 | 2 | 0eba3da933e8db7a0738f36e9b26144afe249b0f | 344 | kotlin---RecyclerViewAdapter | Apache License 2.0 |
testing/src/main/kotlin/testing/ClassMapper.kt | Mr-Mappie | 808,724,827 | false | {"Kotlin": 71204, "CSS": 52879, "SCSS": 27835, "HTML": 19024, "JavaScript": 10402} | package testing
import tech.mappie.api.ObjectMappie
class Class(
private val field: String,
argument: Int,
)
class ClassDto(
field: String,
val argument: Int
) {
override fun equals(other: Any?): Boolean {
if (other != null && other is ClassDto) {
return argument == other.argu... | 8 | Kotlin | 0 | 0 | 0d2f9f2a3024100f8c65cd97c0254f0d2541116e | 574 | mappie | Apache License 2.0 |
src/Day12.kt | li-xin-yi | 573,617,763 | false | null | fun main() {
val directions = listOf((0 to 1), (1 to 0), (0 to -1), (-1 to 0))
fun solvePart1(input: List<String>): Int {
val n = input.size
val m = input[0].length
var (startX, startY) = (0 to 0)
for (i in 0 until n) {
for (j in 0 until m) {
if (inp... | 0 | Kotlin | 0 | 1 | fb18bb7e462b8b415875a82c5c69962d254c8255 | 2,827 | AoC-2022-kotlin | Apache License 2.0 |
src/Day12.kt | li-xin-yi | 573,617,763 | false | null | fun main() {
val directions = listOf((0 to 1), (1 to 0), (0 to -1), (-1 to 0))
fun solvePart1(input: List<String>): Int {
val n = input.size
val m = input[0].length
var (startX, startY) = (0 to 0)
for (i in 0 until n) {
for (j in 0 until m) {
if (inp... | 0 | Kotlin | 0 | 1 | fb18bb7e462b8b415875a82c5c69962d254c8255 | 2,827 | AoC-2022-kotlin | Apache License 2.0 |
src/main/kotlin/io/github/perracodex/ktor/config/IConfigCatalog.kt | perracodex | 864,818,115 | false | {"Kotlin": 20783} | /*
* Copyright (c) 2024-Present Perracodex. Use of this source code is governed by an MIT license.
*/
package io.github.perracodex.ktor.config
/**
* Interface for the configuration catalog holding each of the [IConfigCatalogSection] settings.
*
* @see IConfigCatalogSection
*/
public interface IConfigCatalog
/*... | 0 | Kotlin | 0 | 0 | 8e33f64f0222ffc98d6f043e91a77e74c0873870 | 488 | ktor-config | MIT License |
src/test/kotlin/ktPyString/PythonCompliantSliceTests.kt | ChanTsune | 200,603,776 | false | {"Kotlin": 190063} | package ktPyString
import kotlin.test.*
class PythonCompliantSliceTests {
@Test
fun test_cmp() {
val s1 = Slice(1, 2, 3)
val s2 = Slice(1, 2, 3)
val s3 = Slice(1, 2, 4)
assertEquals(s1, s2)
assertNotEquals(s1, s3)
}
@Test
fun test_members() {
var s ... | 3 | Kotlin | 0 | 0 | e3620ff0f88c80c7a358cb9c679798242035f276 | 2,239 | ktPyString | MIT License |
common/src/main/java/com/laposa/common/features/common/composables/selectDialog/SelectDialog.kt | laposa | 796,639,770 | false | {"Kotlin": 274304} | package com.laposa.common.features.common.composables.selectDialog
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxHeight
impo... | 4 | Kotlin | 0 | 2 | b0f5964f7e62f8070577465a5199a386f4cdfb19 | 5,073 | media-player | MIT License |
app/src/main/java/com/example/mysurfapp/MyScreen.kt | adatechschool | 793,549,577 | false | {"Kotlin": 12471} | package com.example.mysurfapp
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Button
import androidx.compose.material3.MaterialTheme
import an... | 0 | Kotlin | 0 | 0 | 2f1bb5951e30d97fc76aff484b131324535b8290 | 3,270 | projet-collectif-mobile-front-surfspots | MIT License |
shared/mvi/src/commonMain/kotlin/com/badoo/kmpmvi/shared/mvi/Store.kt | badoo | 256,260,923 | false | null | package com.badoo.kmpmvi.shared.mvi
import com.badoo.reaktive.base.Consumer
import com.badoo.reaktive.disposable.Disposable
import com.badoo.reaktive.observable.Observable
interface Store<in Intent : Any, out State : Any> : Consumer<Intent>, Observable<State>, Disposable {
val state: State
}
| 0 | Kotlin | 10 | 69 | d9b6a23d5a3aae001c455776f797d36d13dad7ac | 300 | KmpMvi | Apache License 2.0 |
plugin/project-plugin/src/main/kotlin/jpa/unit/Repository.kt | top-bettercode | 387,652,015 | false | null | package jpa.unit
import ProjectGenerator
import top.bettercode.generator.dom.java.JavaType
import top.bettercode.generator.dom.java.element.Interface
/**
* @author <NAME>
*/
val repository: ProjectGenerator.(Interface) -> Unit = { unit ->
unit.apply {
javadoc {
+"/**"
+" * $remar... | 0 | Kotlin | 0 | 1 | 352c0a288c47139b1bf4d286dc57b2b25c4e7938 | 560 | summer | Apache License 2.0 |
app/src/main/java/com/wreckingballsoftware/design/ui/compose/DeSignFab.kt | leewaggoner | 698,812,124 | false | {"Kotlin": 132764} | package com.wreckingballsoftware.design.ui.compose
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Add
import androidx.compose.material3.FloatingActionButton
import androidx.... | 0 | Kotlin | 0 | 0 | a939ead8c4bc7c8bb55e5e9e0eada400bc67ffd0 | 1,439 | design | Apache License 2.0 |
redwood-gradle-plugin/src/main/kotlin/app/cash/redwood/gradle/RedwoodComposeExtension.kt | cashapp | 305,409,146 | false | {"Kotlin": 1915304, "Swift": 13738, "Java": 1583, "Objective-C": 1499, "Shell": 253, "HTML": 235, "C": 43} | /*
* Copyright (C) 2023 Square, 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 agre... | 117 | Kotlin | 64 | 1,495 | 8e0d63f26fed367ba98c1e0123e4bc0a38cb854e | 2,955 | redwood | Apache License 2.0 |
telegramit-core/src/main/kotlin/org/botlaxy/telegramit/core/client/model/TelegramChatPermissions.kt | vitaxa | 258,866,097 | false | null | package org.botlaxy.telegramit.core.client.model
import com.fasterxml.jackson.annotation.JsonProperty
data class TelegramChatPermissions(
@get:JsonProperty("can_send_messages")
var canSendMesssage: Boolean,
@get:JsonProperty("can_send_media_messages")
var canSendMediaMessages: Boolean,
@get:JsonPr... | 0 | Kotlin | 2 | 9 | 2e7fdb9e1e3edf2638d7dbb0895b4f8a10fbaa43 | 779 | telegramit | Apache License 2.0 |
app/src/main/java/wrproject/com/sample_mvvm/util/NetworkUtil.kt | Wcisang | 120,296,422 | false | null | package wrproject.com.sample_mvvm.util
import android.content.Context
import android.net.ConnectivityManager
/**
* Created by WCisang on 04/02/2018.
*/
class NetworkUtil(private var applicationContext: Context) {
private var status: Boolean? = false
val isConnectedToInternet: Boolean?
get() {
... | 0 | Kotlin | 0 | 1 | 2010784c862fecad7c22c1fc63becb8bfc24b741 | 542 | Sample_MVVM_Kotlin_Retrofit | MIT License |
core/src/main/java/dev/varshakulkarni/core/repository/HangmanDataSource.kt | Varsha-Kulkarni | 614,714,293 | false | null | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 0 | 9 | 3ef034bcf0a605fc513df4abf8d6fef54906bdd7 | 830 | MovieHangman | Apache License 2.0 |
plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/intern/layer/stat/BoxplotOutlierStatParameters.kt | JetBrains | 172,682,391 | false | {"Kotlin": 1563280, "HTML": 24175, "Shell": 73} | /*
* Copyright (c) 2023. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package org.jetbrains.letsPlot.intern.layer.stat
import org.jetbrains.letsPlot.core.spec.Option
import org.jetbrains.letsPlot.intern.Options
import org.jetbrains.letsPlot.int... | 14 | Kotlin | 36 | 433 | f6edab1a67783d14e2378675f065ef7111bdc1a0 | 570 | lets-plot-kotlin | MIT License |
app/src/main/java/fr/smarquis/appstore/Utils.kt | menukaonline | 160,306,230 | true | {"Kotlin": 129107, "JavaScript": 73915, "HTML": 19525, "Java": 3310, "CSS": 2280} | package fr.smarquis.appstore
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Build.VERSION.SDK_INT
import android.os.Build.VERSION_CODES.*
import android.provider.Settings
import android.text.Html
import android.text.Spanned... | 0 | Kotlin | 2 | 2 | fa899a36047dae847f1fa57a05acba9425c3895d | 5,821 | InternalAppStore | Apache License 2.0 |
app/src/main/kotlin/games/onestar/speedclicking/receivers/SplashScreenReceiver.kt | 1stargames | 99,736,150 | false | null | package games.onestar.speedclicking.receivers
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import games.onestar.speedclicking.ui.activities.MainActivity
class SplashScreenReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Int... | 1 | Kotlin | 0 | 0 | 4bced9da3b192cc436ebbabb00a09e2ae8360b59 | 475 | speed_clicking | MIT License |
src/main/kotlin/jp/assasans/protanki/server/serialization/StoreCurrencyAdapter.kt | Assasans | 452,391,158 | false | {"Kotlin": 418747} | package jp.assasans.protanki.server.serialization
import com.squareup.moshi.FromJson
import com.squareup.moshi.ToJson
import jp.assasans.protanki.server.store.StoreCurrency
class StoreCurrencyAdapter {
@ToJson
fun toJson(type: StoreCurrency): String = type.key
@FromJson
fun fromJson(value: String) = StoreCur... | 5 | Kotlin | 18 | 32 | 5cfb1e2682c029e47a69cb2910e80d14015c5896 | 339 | protanki-server | MIT License |
library/src/main/kotlin/com/drakeet/multitype/MutableTypes.kt | mChenys | 373,845,036 | true | {"Kotlin": 57365} | /*
* Copyright (c) 2016-present. <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 agr... | 0 | Kotlin | 0 | 0 | f65f1e866ae9e40b88e930bc113dafb552415291 | 2,164 | MultiType | Apache License 2.0 |
app/src/main/java/com/lovoo/android/tvmaze/ui/base/BasePresenter.kt | boygaggoo | 122,779,787 | false | null | package com.lovoo.android.ui.base
import com.lovoo.android.tvmaze.data.AppManager
open class BasePresenter<V : MvpView> constructor(private val dm: AppManager) : MvpPresenter<V> {
private var mMvpView: V? = null
fun getDataManager(): AppManager? = dm
override fun onDetach() {
mMvpView = null
... | 0 | Kotlin | 0 | 1 | dcdeba092e9237268610bdaf9f215229f5520be1 | 531 | TVMAZEAPI | Apache License 2.0 |
api/src/main/kotlin/com/posts/api/web/sse/FeedSse.kt | jmavs21 | 293,675,225 | false | {"Kotlin": 64924, "TypeScript": 44377, "JavaScript": 17141, "HTML": 1677, "Dockerfile": 367} | package com.posts.api.web.sse
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter
interface FeedSse {
fun addEmitter(userId: Long, emitter: SseEmitter)
fun removeEmitter(userId: Long)
fun sendToEmitters(userName: String, toUserId: Long)
} | 0 | Kotlin | 0 | 0 | 1545bf9ff44e566f4ba7da3e5a0b3b7555b4da96 | 269 | posts | MIT License |
src/main/kotlin/ui/CustomFooter.kt | Xuezhiyang211 | 375,374,997 | true | {"Kotlin": 325387, "CSS": 1747, "HTML": 789, "JavaScript": 566} | package ui
import kotlinx.css.LinearDimension
import kotlinx.css.TextAlign
import kotlinx.css.color
import kotlinx.css.marginBottom
import kotlinx.css.marginTop
import kotlinx.css.textAlign
import kotlinx.css.width
import react.RBuilder
import react.RComponent
import react.RProps
import react.RState
import styled.css
... | 0 | null | 0 | 0 | c8716d8f86feeaef8883ea827b2043b360a4e170 | 1,920 | utaformatix3 | Apache License 2.0 |
app/src/main/java/com/roksanateimouri/sample/map/android/features/map/MapsFragment.kt | RoxanaTeymouri | 388,099,985 | false | {"Kotlin": 25674} | package com.roksanateimouri.sample.map.android.features.map
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.Observer
import com.google.android.gms.maps.CameraUpdateFactory
import com.google.android.gms.maps.GoogleMap
import co... | 0 | Kotlin | 0 | 0 | eeaf57bf9de261a4941b8c09b1275bc41f027a8e | 3,293 | MapSample | Apache License 2.0 |
src/test/kotlin/io/github/vfmunhoz/protectedtypes/extensions/StringExtensionsTest.kt | vfmunhoz | 379,449,312 | false | null | package io.github.vfmunhoz.protectedtypes.extensions
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
internal class StringExtensionsTest {
private val text = "Hello ProtectedTypes!"
@Test
fun `should throw an exception if start position is greater than end posi... | 1 | Kotlin | 0 | 7 | fe9e70fea1d9981dbfec1111dfb381610942b668 | 1,104 | kotlin-protected-types | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.