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/algorithms/Recursion.kt | kuya32 | 383,611,005 | false | null | package algorithms
class Recursion {
fun findFactorialRecursive(number: Int): Int {
return if (number < 2) {
1
} else {
return number * findFactorialRecursive(number - 1)
}
}
fun findFactorialIterative(number: Int): Int {
return if (number < 2) {
... | 0 | Kotlin | 0 | 0 | e28e15cb2b719920305bd6e1b211ee29ac0df329 | 490 | Data-Structures-and-Algorithms-Kotlin | MIT License |
search/core/src/main/java/io/em2m/search/core/parser/SimpleSchemaMapper.kt | em2m | 114,274,216 | false | {"Kotlin": 589728} | package io.em2m.search.core.parser
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import java.util.*
class SimpleSchemaMapper(private val defaultField: String, val objectMapper: ObjectMapper = jacksonObjectMapper()) : SchemaMapper {
private val a... | 3 | Kotlin | 16 | 3 | 35d6b94a9b77685f441b0b9bc272f9a51d550178 | 1,501 | em2m-java-sdk | Apache License 2.0 |
notifications-module/src/main/kotlin/com/build/stats/notification/manager/NtfTypesStartupManager.kt | SHvatov | 571,232,915 | false | {"Kotlin": 118267, "HTML": 50649, "Dockerfile": 1800, "Shell": 372, "CSS": 186} | package com.build.stats.notification.manager
interface NtfTypesStartupManager {
fun updateNtfTypes()
} | 0 | Kotlin | 0 | 0 | 49739408dbcabb0fc6e4b1d6bacbaa893b115068 | 108 | build-stats | Apache License 2.0 |
src/main/kotlin/org/goodmath/simplex/runtime/values/primitives/NoneValue.kt | MarkChuCarroll | 831,231,194 | false | {"Kotlin": 326391, "JavaScript": 5595, "ANTLR": 3455, "Emacs Lisp": 1296, "Scheme": 450} | /*
* Copyright 2024 Mark C. Chu-Carroll
*
* 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 ag... | 0 | Kotlin | 0 | 0 | 739843a9beea38240790979373bfd53860567e5f | 1,643 | simplex | Apache License 2.0 |
Kotlin/src/main/kotlin/reference/coroutines/cancel/Cancel08.kt | totemtec | 370,664,275 | false | {"Kotlin": 86166, "Java": 388} | package reference.coroutines.cancel
import kotlinx.coroutines.*
var acquired = 0
class Resource {
init { acquired++ }
fun close() { acquired-- }
}
fun main() = runBlocking<Unit> {
repeat(100_000) {
launch {
val resource = withTimeout(60) {
delay(50)
Re... | 0 | Kotlin | 0 | 0 | 5c8c40dcedfa949a2640c776feb110ae44e4ded4 | 412 | kotlin | Apache License 2.0 |
src/main/kotlin/Table.kt | evilthreads669966 | 716,315,772 | false | {"Kotlin": 18581} | /*
Copyright 2023 Chris Basinger
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, software
dist... | 0 | Kotlin | 0 | 0 | 1808c97b5841f88fa2e3c65e220d61fd6c6a9fe7 | 1,358 | heads_up_blackjack | Apache License 2.0 |
src/main/kotlin/com/between_freedom_and_space/mono_backend/posts/internal/reactions/service/model/UpdateCommentReactionModel.kt | Between-Freedom-and-Space | 453,797,438 | false | {"Kotlin": 614504, "HTML": 8733, "Dockerfile": 503, "Shell": 166} | package com.between_freedom_and_space.mono_backend.posts.internal.reactions.service.model
import com.between_freedom_and_space.mono_backend.posts.internal.reactions.entities.Reaction
data class UpdateCommentReactionModel(
val newReaction: Reaction?,
)
| 0 | Kotlin | 0 | 1 | 812d8257e455e7d5b1d0c703a66b55ed2e1dcd35 | 259 | Mono-Backend | Apache License 2.0 |
local/src/main/java/com/cheise_proj/local/db/LocalDb.kt | alvinmarshall | 249,792,945 | false | null | package com.cheise_proj.local.db
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.cheise_proj.local.db.converter.ListConverters
import com.cheise_proj.local.db.converter.PortfolioConverter
import com.cheise_proj.local.db.dao.MessageDao
import com.cheise_pro... | 3 | Kotlin | 1 | 9 | f64214c986ac8d228e5bc627ee847c0a74bd197f | 845 | Spiice-ui-challenge | MIT License |
src/main/kotlin/com/github/mrgaabriel/ayla/website/routes/controllers/callbacks/UpdateAvailableCallbackController.kt | MrGaabriel | 143,538,052 | false | null | package com.github.mrgaabriel.ayla.website.routes.controllers.callbacks
import com.github.kevinsawicki.http.HttpRequest
import com.github.mrgaabriel.ayla.utils.Constants
import com.github.mrgaabriel.ayla.utils.Static
import com.github.mrgaabriel.ayla.utils.extensions.await
import com.github.mrgaabriel.ayla.utils.exten... | 20 | Kotlin | 1 | 4 | 51768344e6b0b53fbbb5fb298cb88dea848a5faa | 2,197 | Ayla | MIT License |
src/test/kotlin/no/nav/syfo/testutil/assertion/PPersonOppfolgingstilfelleAssertion.kt | navikt | 189,998,720 | false | null | package no.nav.syfo.testutil.assertion
import no.nav.syfo.oversikthendelsetilfelle.domain.KOversikthendelsetilfelle
import no.nav.syfo.oversikthendelsetilfelle.domain.PPersonOppfolgingstilfelle
import org.amshove.kluent.shouldBeEqualTo
fun checkPPersonOppfolgingstilfelle(
pPersonOppfolgingstilfelle: PPersonOppfol... | 0 | Kotlin | 0 | 0 | e5bf6ed6f4efdfd3bb9f5ad94ae41490b03cf1c4 | 852 | syfooversiktsrv | MIT License |
game/core/src/com/lyeeedar/AI/BehaviourTree/Actions/WaitBehaviourAction.kt | Lyeeedar | 257,323,195 | false | null | package com.lyeeedar.AI.BehaviourTree.Actions
import com.badlogic.gdx.utils.ObjectMap
import com.lyeeedar.AI.BehaviourTree.BehaviourTreeState
import com.lyeeedar.AI.BehaviourTree.EvaluationState
import com.lyeeedar.AI.BehaviourTree.Nodes.AbstractBehaviourNode
import com.lyeeedar.AI.Tasks.TaskWait
import com.lyeeedar.C... | 0 | Kotlin | 0 | 0 | 5068af2489fa6ff52a99016bceafca5690864754 | 1,254 | PortalClosers | Apache License 2.0 |
src/test/kotlin/no/nav/omsorgspenger/routes/DokarkivproxyRouteTest.kt | navikt | 314,496,410 | false | null | package no.nav.omsorgspenger.routes
import io.ktor.http.HttpHeaders
import io.ktor.http.HttpMethod
import io.ktor.http.HttpStatusCode
import io.ktor.server.testing.TestApplicationEngine
import io.ktor.server.testing.handleRequest
import io.ktor.server.testing.setBody
import no.nav.omsorgspenger.testutils.Authorization... | 5 | Kotlin | 0 | 0 | 9d31fbb006adabefe190200b9881fafa98754bb4 | 2,613 | omsorgspenger-proxy | MIT License |
app/src/main/java/com/ouday/pokemon/details/ui/PokemonDetailsFragment.kt | oudaykhaled | 325,652,014 | false | null | package com.ouday.pokemon.details.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import com.google.android.material.snackbar.Snackbar
import com.ouday.pokemon.R
impor... | 0 | Kotlin | 0 | 0 | 7b5116f006766e795feb07b84b5ce1e14d0ab216 | 3,708 | Pokemonv2 | Apache License 2.0 |
pulsar-skeleton/src/main/kotlin/ai/platon/pulsar/experimental/transport/crawl/CrawlPipeline.kt | platonai | 124,882,400 | false | null | package ai.platon.pulsar.experimental.transport.crawl
import ai.platon.pulsar.common.urls.UrlAware
import ai.platon.pulsar.crawl.WebPageHandler
import ai.platon.pulsar.dom.FeaturedDocument
import ai.platon.pulsar.experimental.transport.*
import ai.platon.pulsar.persist.WebPage
import java.util.concurrent.ExecutorServi... | 1 | HTML | 32 | 110 | f93bccf5075009dc7766442d3a23b5268c721f54 | 2,879 | pulsar | Apache License 2.0 |
css-gg/src/commonMain/kotlin/compose/icons/cssggicons/Moon.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.cssggicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
import... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,649 | compose-icons | MIT License |
app/src/main/java/com/example/sceneformar/ScanFragment.kt | SaaHeal | 669,189,493 | false | {"Java": 978158, "Kotlin": 22086} | package com.example.sceneformar
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import com.budiyev.android.codescanner.AutoFo... | 1 | null | 1 | 1 | 379d61bbaa307a040a29a833206bb0f220831218 | 2,391 | WallARt | Apache License 2.0 |
AstroYoga/astroyoga/src/main/java/com/shushant/astroyoga/navigation/AstroYogaHomeNavigation.kt | ShushantTiwari-ashu | 667,410,698 | false | null | package com.shushant.astroyoga.navigation
import androidx.navigation.NavGraphBuilder
import androidx.navigation.navigation
import com.shushant.astroyoga.compatibility.navigation.compatibilityScreen
import com.shushant.astroyoga.compatibility.navigation.profileScreen
import com.shushant.astroyoga.data.datastore.PrefSto... | 0 | Kotlin | 0 | 0 | 9882d51d4a1d975249109c097da0c7b141e6ff69 | 1,645 | AstroYoga-Full-kotlin-stack-App | Apache License 2.0 |
buildSrc/src/main/kotlin/IosTarget.kt | stefanthaler | 595,257,790 | false | null | import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
// https://kotlinlang.org/docs/multiplatform-mobile-ios-dependencies.html#workaround-to-enable-ide-support-for-the-shared-ios-source-set
fun KotlinMultiplatformExtension.iosTarget(
c... | 0 | Kotlin | 0 | 0 | 55a517cb69166d4ac139200004c5fdfc57c5065e | 451 | kmp-template | Apache License 2.0 |
app/src/androidTest/java/com/gobinda/notepad/ui/screens/addEditNote/ContentInputViewTest.kt | gobinda1547 | 772,135,935 | false | {"Kotlin": 120416} | package com.gobinda.notepad.ui.screens.addEditNote
import androidx.compose.runtime.mutableStateOf
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.assertTextEquals
import androidx.compose.ui.test.hasTestTag
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compos... | 0 | Kotlin | 0 | 1 | 76baccd61cc71523cd5c64112559a53c174e0efa | 3,653 | Notepad-Android-App | MIT License |
catalogue/src/main/kotlin/com/tidal/sdk/catalogue/generated/models/ExternalLink.kt | tidal-music | 806,866,286 | false | {"Kotlin": 1644272, "Shell": 9249} | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package com.tidal.sdk.catalogue.generated.models... | 27 | Kotlin | 0 | 22 | 127085338619bab6d540bedf05f7d34a3cd1a9da | 834 | tidal-sdk-android | Apache License 2.0 |
calendarheatmaplib/src/main/java/com/eudycontreras/calendarheatmaplibrary/animations/MatrixRevealAnimation.kt | EudyContreras | 256,645,326 | false | null | package com.eudycontreras.calendarheatmaplibrary.animations
import android.view.animation.Interpolator
import androidx.core.math.MathUtils
import androidx.interpolator.view.animation.FastOutSlowInInterpolator
import com.eudycontreras.calendarheatmaplibrary.MAX_OFFSET
import com.eudycontreras.calendarheatmaplibrary.MIN... | 1 | Kotlin | 1 | 8 | 973203fb1e063ded41133b44925ce87a018ba6ec | 4,643 | Calendar-HeatMap | MIT License |
src/main/kotlin/br/com/zup/pix/remove/RemoveChaveService.kt | abner-ribeiro | 407,355,686 | true | {"Kotlin": 39027} | package br.com.zup.pix.remove
import br.com.zup.pix.client.bcb.BancoCentralClient
import br.com.zup.pix.client.bcb.deletaChave.DeletaChavePixBcbRequest
import br.com.zup.pix.client.itau.ClienteResponse
import br.com.zup.pix.client.itau.ErpItauClient
import br.com.zup.pix.dto.RemoveChaveDto
import br.com.zup.pix.regist... | 0 | Kotlin | 0 | 0 | 99f36d1d0f5f6a54b8b9c73516f8128bac5128a8 | 1,707 | orange-talents-07-template-pix-keymanager-grpc | Apache License 2.0 |
app/src/main/java/com/pr0gramm/app/services/SettingsTrackerService.kt | Egosar93 | 232,908,553 | true | {"Kotlin": 1230722, "Shell": 6886, "Python": 1124} | package com.pr0gramm.app.services
import com.pr0gramm.app.*
import okhttp3.OkHttpClient
import proguard.annotation.KeepPublicClassMemberNames
import retrofit2.Retrofit
import retrofit2.converter.moshi.MoshiConverterFactory
import retrofit2.http.Body
import retrofit2.http.POST
class SettingsTrackerService(httpClient:... | 0 | null | 0 | 0 | 0981f6a2b2f13824071001a3a02193a1b0eee998 | 1,269 | Pr0 | MIT License |
sdk/src/main/java/com/localehub/sdk/data/enums/Culture+EnglishDescription.kt | locale-hub | 383,744,946 | false | null | package com.localehub.sdk.data.enums
fun Culture.englishDescription(): String {
return when(this) {
Culture.af_ZA -> "Afrikaans (South Africa)"
Culture.ar_AE -> "Arabic (U.A.E.)"
Culture.ar_BH -> "Arabic (Bahrain)"
Culture.ar_DJ -> "Arabic (Djibouti)"
Culture.ar_DZ -> "Arabi... | 0 | Kotlin | 0 | 2 | f7adeac45da6d7b3e0a2ff9084fdb8cb9c787796 | 20,215 | sdk-android | MIT License |
generators/app/templates/conductor/app/src/main/kotlin/nolambda/androidstarter/screens/ApiExampleController.kt | nootanghimire | 107,947,255 | true | {"Kotlin": 18581, "JavaScript": 10041} | package <%= appPackage %>.screens
import android.os.Bundle
import android.view.View
import android.widget.TextView
import butterknife.BindView
import io.reactivex.android.schedulers.AndroidSchedulers
import <%= appPackage %>.R
import <%= appPackage %>.commons.AbsController
import <%= appPackage %>.network.ApiService
i... | 0 | Kotlin | 0 | 0 | 6f8ed53b3fbba9dbf96430d9cd92415eb5d7a93c | 1,008 | generator-android-conductor | Apache License 2.0 |
core-v4/core-v4-bus/src/test/java/com/github/teracy/odpt/core/v4/bus/response/OdptBusRoutePatternTest.kt | teracy | 193,032,147 | false | null | package com.github.teracy.odpt.core.v4.bus.response
import com.github.teracy.odpt.core.geojson.adapter.GeometryAdapter
import com.github.teracy.odpt.core.geojson.response.LineString
import com.github.teracy.odpt.model.adapter.ArrayOrObjectAdapter
import com.github.teracy.odpt.testutil.ApiResponseTest
import com.square... | 0 | Kotlin | 0 | 1 | 002554e4ca6e2f460207cfd1cb8265c2267f149d | 4,818 | odpt | Apache License 2.0 |
src/main/kotlin/utils/Utils.kt | liefswanson | 130,515,078 | false | null | package utils
import kotlin.reflect.KClass
import kotlin.reflect.full.isSubclassOf
fun <R> Throwable.multicatch(vararg classes: KClass<*>, block: () -> R): R {
if (classes.any { this::class.isSubclassOf(it) }) {
return block()
} else {
throw this
}
}
fun align(vararg lines: String): List<... | 2 | Kotlin | 0 | 0 | 9b293ad974775825d94f8189f1cad4c4adc689d4 | 452 | auto-sudoku | MIT License |
app/src/main/java/com/misit/faceidchecklogptabp/Response/ImageResponse.kt | borisreyson | 354,711,920 | false | null | package com.misit.faceidchecklogptabp.Response
import com.google.gson.annotations.SerializedName
data class ImageResponse(
@field:SerializedName("image")
val image: String? = null,
@field:SerializedName("res")
val res: String? = null,
@field:SerializedName("tidak_dikenal")
val tidak_dikenal: Boolean = true
) | 0 | Kotlin | 0 | 0 | 2a0b507559cfeddd3bff624f447ce088d334d85a | 320 | FaceIdChecklogPTABP | MIT License |
presentation/src/main/java/com/gauvain/seigneur/presentation/model/TrackData.kt | GauvainSeigneur | 267,048,711 | false | null | package com.gauvain.seigneur.presentation.model
import com.gauvain.seigneur.domain.model.TrackListModel
import com.gauvain.seigneur.domain.model.TrackModel
import com.gauvain.seigneur.presentation.R
import com.gauvain.seigneur.presentation.utils.QuantityStringPresenter
data class TrackData(
val tracks: List<Track... | 0 | Kotlin | 0 | 0 | 5cd5d9ec1a9aefe7150ec631032467210fd18d80 | 906 | ShinyAlbums | Apache License 2.0 |
app/src/main/java/com/sformica/hilt_app_test/di/EatDependency.kt | MisterAnt92 | 615,738,322 | false | null | package com.sformica.hilt_app_test.di
import javax.inject.Inject
/**
* Eat dependency
*
* @constructor Create empty Eat dependency
*/
class EatDependency @Inject constructor() {
/**
* Eat pizza dependency
*
*/
fun eatPizzaDependency() {}
/**
* Eat pasta dependency
*
*/
... | 0 | Kotlin | 0 | 0 | b8e420807cb33b8ae7c1ca66ce47d8723ae42703 | 354 | hilt-sample | Apache License 2.0 |
oldAndroidProjects/More Projects/PraticeProjects/Khaata/app/src/main/java/com/shivathapa/khaata/data/repository/expense/ExpenseRepository.kt | shivathapaa | 800,628,391 | false | {"Kotlin": 3413631, "Shell": 2341} | package com.shivathapa.khaata.data.repository.expense
import com.shivathapa.khaata.data.CategoryWithExpenses
import com.shivathapa.khaata.data.Expense
import kotlinx.coroutines.flow.Flow
interface ExpenseRepository {
// Expense
fun getAllExpenses(): Flow<List<Expense>>
fun getExpense(expenseId: Int): Fl... | 0 | Kotlin | 0 | 0 | 19185d178bb0ff390c9c2c43adbd9ddefc9a2288 | 574 | Android-Practice-Projects | The Unlicense |
src/test/kotlin/com/emberjs/gts/GtsFileTest.kt | patricklx | 412,986,421 | false | {"Kotlin": 680201, "JavaScript": 31431, "HTML": 8237, "Handlebars": 2507, "Java": 207, "Scala": 172, "CSS": 144, "SCSS": 96} | package com.emberjs.hbs
import com.emberjs.gts.GjsFileType
import com.emberjs.gts.GtsFileType
import com.intellij.codeInsight.daemon.impl.HighlightInfo
import com.intellij.lang.javascript.inspections.ES6UnusedImportsInspection
import com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection
import com.in... | 3 | Kotlin | 6 | 12 | b99019865227958bf1e84e34032b3cf8c15cc64a | 3,245 | intellij-emberjs-experimental | Apache License 2.0 |
app/src/main/java/com/snorlax/snorlax/utils/adapter/viewpager/AttendancePageAdapter.kt | OliverRhyme | 219,249,108 | false | null | /*
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 0 | Kotlin | 0 | 1 | a41eaddf9b2bfb3c7feb6aaac9050482186eb98c | 1,574 | Snorlax | Apache License 2.0 |
app/src/main/kotlin/space/reul/ticketmasterchallenge/app/ui/composables/AsyncImageCell.kt | reul | 764,954,876 | false | {"Kotlin": 53026} | package space.reul.ticketmasterchallenge.app.ui.composables
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.material3.Card
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Bru... | 0 | Kotlin | 0 | 0 | 7ca0c967da83b3704894b19c27dad666cf440936 | 1,286 | tiago-reul-ticketmaster-challenge | The Unlicense |
kaff4-core/kaff4-core-model/kaff4-core-model-api/src/main/kotlin/net/navatwo/kaff4/model/rdf/GraphQuerySafeExtensions.kt | Nava2 | 555,850,412 | false | null | package net.navatwo.kaff4.model.rdf
import org.eclipse.rdf4j.model.Statement
import org.eclipse.rdf4j.query.GraphQuery
fun GraphQuery.evaluateSequence(): Sequence<Statement> {
return sequence {
evaluate().use { yieldAll(it) }
}
}
| 7 | Kotlin | 0 | 1 | b0df931c9be6378bd9fc7f6d182d1a35b3034c2f | 240 | kaff4 | MIT License |
src/main/kotlin/com/vadeen/dns/constants/DynamicEnum.kt | FelixStridsberg | 210,037,588 | false | null | package com.vadeen.dns.constants
/**
* Since we must be able to handle operation and response codes that we have not implemented, we cannot use enums.
*
* Instead we can use sealed classes like so:
*
* sealed class ResponseCode(code: Byte) : DynamicEnum(code) {
* KnownCode : ResponseCode(1),
* ...
... | 0 | Kotlin | 0 | 3 | 4c66e4311cc108ad9485a392020a36588799138d | 1,013 | dns | MIT License |
app/src/main/java/com/wiliamks/temaqui/ui/detail/repository/DetailsRepositoryImpl.kt | wiliamks | 658,372,597 | false | null | package com.wiliamks.temaqui.ui.detail.repository
import com.wiliamks.temaqui.commons.Session
import com.wiliamks.temaqui.commons.model.CartItem
class DetailsRepositoryImpl : DetailsRepository {
override suspend fun addItemToCart(item: CartItem) {
Session.cartSelection.forEachIndexed { index, cartItem ->
... | 0 | Kotlin | 0 | 0 | dfdda9b0fff73ee6133e266574129fa1a52a31c9 | 796 | temaqui | MIT License |
data/src/main/java/com/example/data/features/rates/api/IRatesApi.kt | egorushkin | 583,336,377 | false | null | package com.example.data.features.rates.api
import com.example.data.features.rates.repository.remote.models.RatesResponse
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Query
interface IRatesApi {
companion object {
const val RATES = "api/android/latest"
const val BASE_... | 0 | Kotlin | 0 | 0 | 90e1a91b64ab3315e494de9750a3fc0f97c5ed3d | 475 | android-app-skeleton | Apache License 2.0 |
src/jvmTest/kotlin/examples/LexicalEquality.kt | adriantodt | 251,127,025 | false | null | package examples
import com.github.adriantodt.tartar.api.dsl.CharPredicate
import com.github.adriantodt.tartar.api.lexer.Lexer
import com.github.adriantodt.tartar.api.lexer.Source
import com.github.adriantodt.tartar.api.lexer.classpath
import com.github.adriantodt.tartar.api.parser.StringToken
import com.github.adrian... | 2 | Kotlin | 0 | 2 | 0f09816d34de09c2f061fad621de2c5b30bfdc99 | 2,236 | tartar | Apache License 2.0 |
plugins/com.flinty.docsflow.server.core/source/com/flinty/docsflow/server/core/workspace/storage/DocsFlowWorkspaceProvider.kt | flint80 | 413,383,841 | false | {"Kotlin": 291036, "HTML": 8515, "CSS": 317} | /*****************************************************************
* Gridnine AB http://www.gridnine.com
* Project: JTasks
*****************************************************************/
package com.flinty.docsflow.server.core.workspace.storage
import com.flinty.docsflow.common.core.model.domain.*
import com.gr... | 0 | Kotlin | 0 | 0 | d64d64bd2f539a6579ee80dc2c89b22b4c644ddc | 13,972 | coralina-docs-flow | MIT License |
api/src/main/kotlin/db/migration/client/v1/v0/V0001_0000_0020__create_table_centrocusto.kt | IvoSestren | 331,951,557 | false | null | package db.migration.client.v1.v0
import db.migration.base.postgresql.PostgreSQLMigration
@Suppress("ClassName", "unused")
class V0001_0000_0020__create_table_centrocusto: PostgreSQLMigration() {
override fun createSequences() {
createSequence("sq_centrocusto")
}
override fun createTables() {
... | 0 | Kotlin | 0 | 0 | a955b4a4b8b4e4f2b746bbe5bc4fe3674ab9caf1 | 1,085 | erp_001 | The Unlicense |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/BoxAlt.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 | 3,454 | icons | MIT License |
app/src/main/java/com/concordium/wallet/ui/cis2/retrofit/MetadataApi.kt | Concordium | 358,250,608 | false | null | package com.concordium.wallet.ui.cis2.retrofit
import com.concordium.wallet.data.model.TokenMetadata
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Url
interface MetadataApi {
@GET suspend fun metadata(@Url url: String?): Response<TokenMetadata>
}
| 6 | Kotlin | 2 | 9 | ff6970fca016387fc0ecaade085a6f2dabbaa18e | 281 | concordium-reference-wallet-android | Apache License 2.0 |
defitrack-protocols/hop/src/main/java/io/defitrack/protocol/contract/HopSwapContract.kt | decentri-fi | 426,174,152 | false | null | package io.defitrack.protocol.contract
import io.defitrack.evm.contract.BlockchainGateway
import io.defitrack.evm.contract.EvmContract
import java.math.BigInteger
class HopSwapContract(
blockchainGateway: BlockchainGateway,
abi: String,
address: String
) : EvmContract(blockchainGateway, abi, address) {
... | 17 | Kotlin | 6 | 9 | cba6769eaa7a2700ccf5658c3ea9e3db7bdfca36 | 440 | defi-hub | MIT License |
kmath-optimization/src/commonMain/tmp/minuit/MnUserFcn.kt | SciProgCentre | 129,486,382 | false | {"Kotlin": 1988014, "ANTLR": 887} | /*
* Copyright 2015 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 88 | Kotlin | 55 | 645 | 3e8f44166c4a4ed6e99e1676a7200ed044645224 | 972 | kmath | Apache License 2.0 |
src/test/kotlin/skillx/utils/MathTest.kt | Techest | 544,072,945 | false | null | package skillx.utils
import com.mojang.math.Vector3f
import org.junit.jupiter.api.Test
import kotlin.math.abs
class MathTest {
@Test
fun testRotateByAxisDegree() {
val toRotate = Vector3f(0F, 1F, 1F)
val axis = Vector3f(1F, 0F, 0F)
val degree = 180F.degree()
val rotated = rota... | 0 | Kotlin | 1 | 3 | 3d87c88b3f8e01743c413b17c526c4b665480bf5 | 998 | SkillX | MIT License |
app/src/main/java/com/example/sample/data/JSONProvider.kt | retlat | 293,239,056 | false | null | package com.example.sample.data
import org.chromium.net.UploadDataProvider
import org.chromium.net.UploadDataSink
import org.json.JSONObject
import java.io.IOException
import java.nio.ByteBuffer
import kotlin.math.min
class JSONProvider(json: JSONObject) : UploadDataProvider() {
private val data: ByteArray = jso... | 0 | Kotlin | 0 | 0 | 30ec24718474faf6ee180dd729ec2e59627cdbfd | 941 | Cronet-Sample | Apache License 2.0 |
sam-kotlin-core/src/test/kotlin/software/elborai/api/models/AccountUpdateParamsTest.kt | DefinitelyATestOrg | 787,029,213 | false | {"Kotlin": 12996764, "Shell": 3638, "Dockerfile": 366} | // File generated from our OpenAPI spec by Stainless.
package software.elborai.api.models
import java.time.LocalDate
import java.time.OffsetDateTime
import java.time.format.DateTimeFormatter
import java.util.UUID
import org.junit.jupiter.api.Test
import org.assertj.core.api.Assertions.assertThat
import org.apache.hc.... | 1 | Kotlin | 0 | 0 | 3a5229b8bc5cf400f07efbd41e00b9cf40663f97 | 1,802 | sam-kotlin | Apache License 2.0 |
feedbacktree/src/main/java/com/feedbacktree/flow/ui/core/modals/AlertModal.kt | eliomaroun | 254,332,538 | true | {"Kotlin": 114906} | /*
* Created by eliek on 9/26/2019
* Copyright (c) 2019 eliekarouz. All rights reserved.
*/
package com.feedbacktree.flow.ui.core.modals
data class AlertModal(
val buttons: Map<Button, String> = emptyMap(),
val message: String = "",
val title: String = "",
val cancelable: Boolean = true,
val on... | 0 | null | 0 | 0 | 67517c75c452629b2036686b743c942f4c35be62 | 1,178 | FeedbackTree | MIT License |
dataprotocol/src/main/java/com/corndog/dataprotocol/buffered/ProtocolBuffer.kt | binchoo | 285,145,554 | false | null | package dataprotocol.buffered
import dataprotocol.DataProtocol
import dataprotocol.Protocol
import java.lang.IllegalStateException
import java.nio.ByteBuffer
import java.nio.ByteOrder
class ProtocolBuffer(
private val byteBuffer: ByteBuffer,
private val protocol: Protocol
): Iterator<Any> {
private latei... | 0 | Kotlin | 0 | 1 | 00f10f5f79ac6567d22d234ad93056d5244b3a71 | 2,332 | kotlin-dataprotocol | MIT License |
vscode/src/jsMain/kotlin/vscode/Extension.kt | lppedd | 761,812,661 | false | {"Kotlin": 1887051} | package vscode
/**
* Represents an extension.
*
* To get an instance of an `Extension` use [vscode.extensions.getExtension].
*/
external interface Extension<T> {
/**
* The canonical extension identifier in the form of: `publisher.name`.
*/
val id: String
/**
* The uri of the directory containing th... | 0 | Kotlin | 0 | 3 | 0f493d3051afa3de2016e5425a708c7a9ed6699a | 1,547 | kotlin-externals | MIT License |
examples/chatgpt/site/src/jvmMain/kotlin/chatgpt/api/Chat.kt | varabyte | 397,003,009 | false | {"FreeMarker": 43473} | package chatgpt.api
import apis.openai.endpoints.chat.sendMessageToChatGpt
import chatgpt.init.ChatHistories
import chatgpt.model.MessageChunkResponse
import chatgpt.model.MessageRequest
import com.varabyte.kobweb.api.data.getValue
import com.varabyte.kobweb.api.stream.ApiStream
import kotlinx.serialization.encodeToSt... | 0 | FreeMarker | 4 | 12 | 7b676edb93160d789c1a88fa01142358739e95cc | 1,177 | kobweb-templates | Apache License 2.0 |
defitrack-rest/defitrack-protocol-service/src/main/java/io/defitrack/protocol/balancer/pooling/BalancerPolygonPoolingMarketProvider.kt | decentri-fi | 426,174,152 | false | {"Kotlin": 1038532, "Java": 1948, "Dockerfile": 909} | package io.defitrack.protocol.balancer.pooling
import io.defitrack.common.network.Network
import io.defitrack.conditional.ConditionalOnCompany
import io.defitrack.protocol.Company
import io.defitrack.protocol.balancer.contract.BalancerService
import org.springframework.boot.autoconfigure.condition.ConditionalOnPropert... | 53 | Kotlin | 7 | 9 | e65843453e4c44f5c2626870ceb923eb7ab3c4d0 | 731 | defi-hub | MIT License |
src/test/kotlin/solved/p2221/SolutionTest.kt | mr-nothing | 469,475,608 | false | null | package solved.p2221
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.DynamicTest
import org.junit.jupiter.api.TestFactory
internal class SolutionTest {
@TestFactory
fun `test solution`() = listOf(
arrayOf(1,2,3,4,5) to 8,
arrayOf(5) to 5
).map { (inputData, expected) -... | 0 | Kotlin | 0 | 0 | 0f7418ecc8675d8361ef31cbc1ee26ea51f7708a | 544 | leetcode | Apache License 2.0 |
cinescout/screenplay/domain/src/commonMain/kotlin/cinescout/screenplay/domain/model/SeasonNumber.kt | fardavide | 280,630,732 | false | null | package cinescout.screenplay.domain.model
import kotlinx.serialization.Serializable
@JvmInline
@Serializable
value class SeasonNumber(val value: Int)
| 10 | Kotlin | 2 | 6 | 7a875cd67a3df0ab98af520485122652bd5de560 | 152 | CineScout | Apache License 2.0 |
shared/src/commonMain/kotlin/com/presta/customer/ui/components/savingsTransactionHistory/SavingsTransactionHistoryComponent.kt | morgan4080 | 726,765,347 | false | {"Kotlin": 2170913, "Swift": 2162, "Ruby": 382, "Shell": 228} | package com.presta.customer.ui.components.savingsTransactionHistory
import com.arkivanov.decompose.value.Value
interface SavingsTransactionHistoryComponent {
val model: Value<Model>
fun onSelected(item: String)
data class Model(
val items: List<String>,
)
} | 0 | Kotlin | 0 | 0 | 0850928853c87390a97953cfec2d21751904d3a9 | 287 | kmp | Apache License 2.0 |
inspektifySample/composeApp/src/commonMain/kotlin/sp/bvantur/inspektify/sample/domain/usecase/CreateUserUseCase.kt | BVantur | 844,048,160 | false | {"Kotlin": 169455, "Swift": 1303} | package sp.bvantur.inspektify.sample.domain.usecase
import sp.bvantur.inspektify.sample.data.user.UserRepository
import sp.bvantur.inspektify.sample.domain.model.User
import sp.bvantur.inspektify.sample.domain.utils.toUser
interface CreateUserUseCase {
suspend operator fun invoke(): Result<User?>
}
class CreateU... | 2 | Kotlin | 4 | 88 | f824a3fe4eb81d35400dab76ce39e14dca84edf0 | 710 | inspektify | MIT License |
app/src/main/java/com/friendly_machines/frbpdoctor/watchprotocol/command/WatchChangeAlarmAction.kt | daym | 744,679,396 | false | {"Kotlin": 177161} | package com.friendly_machines.frbpdoctor.watchprotocol.command
enum class WatchChangeAlarmAction(val code: Byte) {
Edit(0),
Add(1);
}
| 0 | Kotlin | 1 | 1 | f6c5c0c8320ca29f976b8eb57c397e0db01bc13c | 143 | frbpdoctor | BSD 2-Clause FreeBSD License |
core/domain/src/main/java/com/kursatkumsuz/domain/model/coin/CoinItem.kt | kursatkumsuz | 554,661,928 | false | {"Kotlin": 166960} | package com.kursatkumsuz.domain.model.coin
data class CoinItem(
val id: Int,
val name: String,
val quote: Quote,
val symbol: String
) | 0 | Kotlin | 7 | 41 | 664e597b49a981867966dab9a292c02e28cc61cf | 151 | crypto-portfolio-jetpack-compose | Apache License 2.0 |
src/Day03/Day03.kt | hectdel | 573,376,349 | false | null | package Day03
import java.io.File
fun main() {
val chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
fun Char.toValue(): Int = chars.indexOf(this) + 1
check('p'.toValue() == 16)
check('L'.toValue() == 38)
fun part1(input: String): Int {
var commonChars = mutableListOf<Char... | 0 | Kotlin | 0 | 0 | cff5677a654a18ceb199cc52fdd1c865dea46e1e | 1,569 | aco-kotlin-2022 | Apache License 2.0 |
src/main/java/org/web25/http/HttpRegistry.kt | Web25 | 66,868,564 | true | {"Kotlin": 325176, "Shell": 369} | package org.web25.http
/**
* Created by felix on 3/18/17.
*/
interface HttpRegistry {
fun addSerializer(serializer: HttpSerializer<*, *>)
fun <T: Any> serialize(value: T): HttpEntity
fun deserialize(data: ByteArray, contentType: String): HttpEntity
}
| 6 | Kotlin | 0 | 0 | 363f9cdd3e3bfdcc3f5444d46fa044b53519b6d0 | 268 | http | MIT License |
app/src/main/java/com/breezedealmatrix/features/orderList/model/NewOrderListResponseModel.kt | DebashisINT | 865,411,090 | false | {"Kotlin": 15862964, "Java": 1029932} | package com.breezedealmatrix.features.orderList.model
import com.breezedealmatrix.base.BaseResponse
/**
* Created by Saikat on 03-12-2018.
*/
class NewOrderListResponseModel : BaseResponse() {
var order_list: ArrayList<NewOrderListDataModel>? = null
} | 0 | Kotlin | 0 | 0 | 032400c3fce3853a1488e2b580bee07a8e447c90 | 259 | DealMatrixPvtLtd | Apache License 2.0 |
example/server/src/main/kotlin/com/yt8492/commonjudgesystem/example/server/test/application/gettweet/GetTweetError.kt | yt8492 | 419,847,372 | false | {"Kotlin": 62662} | package com.yt8492.commonjudgesystem.example.server.test.application.gettweet
import com.yt8492.commonjudgesystem.library.Error
sealed interface GetTweetError : Error {
object TweetNotFound : GetTweetError
object UnexpectedJson : GetTweetError
object ConnectionRefused : GetTweetError
object Unknown : ... | 0 | Kotlin | 0 | 0 | e8bde9962b0883bc200cee88af2841731d14ed64 | 336 | CommonJudgeSystem | MIT License |
app/src/main/kotlin/com/dleibovich/todokotlin/calendar/CalendarActivity.kt | ariedov | 25,394,337 | false | null | package com.dleibovich.todokotlin.calendar
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.LinearLayoutManager
import android.view.MenuItem
import android.view.View
import com.dleibovich.todokotlin.R
import com.dleibovich.todokotlin.TodoApp
import kotlinx.andro... | 0 | Kotlin | 0 | 1 | 81515dc36145175b91562a63cd04eaf640c8dedb | 1,787 | TODOKotlin | Apache License 2.0 |
app/src/main/java/com/peteralexbizjak/europaopen/db/repositories/IRegionDBRepository.kt | sunderee | 375,731,952 | false | null | package com.peteralexbizjak.europaopen.db.repositories
import com.peteralexbizjak.europaopen.db.entities.RegionEntity
internal interface IRegionDBRepository {
suspend fun storeRegions(regions: List<RegionEntity>)
suspend fun retrieveRegionsByCountryCode(countryCode: String): List<RegionEntity>
} | 0 | Kotlin | 0 | 2 | 968705e28f1a5ae012338452d8100f364e886a20 | 306 | EuropaOpen | MIT License |
shared/src/commonMain/kotlin/ca/josuelubaki/countryapp/presentation/country/CountryViewModel.kt | josue-lubaki | 698,621,660 | false | {"Kotlin": 66805, "Ruby": 1975, "Swift": 971, "Shell": 228} | package ca.josuelubaki.countryapp.presentation.country
import ca.josuelubaki.countryapp.data.repository.CountryRepositoryImpl
import ca.josuelubaki.countryapp.domain.usecases.GetCountryDetailsByCodeUseCase
import ca.josuelubaki.countryapp.presentation.countries.CurrentBottomSheetContent
import ca.josuelubaki.countryap... | 0 | Kotlin | 0 | 1 | 86c35e1cca6610b3e96f482844bfa25d494ca388 | 2,634 | sample-graphql-kmp | MIT License |
app/src/main/java/dev/haenara/githubsearch/repo/github/GithubUserRepoImpl.kt | HaenaraShin | 254,657,864 | false | null | package dev.haenara.githubsearch.repo.github
import dev.haenara.githubsearch.api.GitHubSearchRetrofit
import dev.haenara.githubsearch.model.User
import dev.haenara.githubsearch.model.UserList
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
class GithubUserRepoImpl : GithubUserRepo {
priv... | 0 | Kotlin | 0 | 2 | 3d1c84cb0518814ee5752157cd3d941c894a310c | 2,070 | GithubUserSearch | MIT License |
src/backend/ci/core/common/common-api/src/main/kotlin/com/tencent/devops/common/api/util/Watcher.kt | necrohuang | 227,612,065 | true | {"Kotlin": 12321904, "Vue": 3575964, "Java": 1424480, "JavaScript": 914356, "CSS": 428463, "TSQL": 287717, "Lua": 204919, "Go": 136780, "HTML": 46195, "TypeScript": 33124, "Shell": 29974, "Python": 3714, "PLSQL": 2378, "Batchfile": 2174, "Makefile": 669} | package com.tencent.devops.common.api.util
import org.springframework.util.StopWatch
/**
* 非线程安全
* 针对running值导致抛出异常的位置主动做了stop,并增加了一个全部耗时统计
*/
class Watcher(id: String = "") : StopWatch(id) {
private var createTime: Long = System.currentTimeMillis()
fun elapsed() = System.currentTimeMillis() - createTime... | 0 | Kotlin | 0 | 0 | 237eeb686b2f443a16e1147ab26d88fe4897d2d7 | 905 | bk-ci | MIT License |
android/app/src/main/kotlin/com/example/timeline/MainActivity.kt | samKenpachi011 | 280,711,411 | false | {"Dart": 8167, "Swift": 404, "Kotlin": 125, "Objective-C": 38} | package com.example.timeline
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | d163ad08479bbac109d16cbfb9652e9bfba0385c | 125 | Flutter-Simple-TimeLine | MIT License |
app/src/main/java/org/stepic/droid/ui/custom/CustomFontURLSpan.kt | kartmatias | 276,363,514 | true | {"Kotlin": 2846749, "Java": 1006902, "CSS": 5370, "Shell": 618, "Prolog": 98} | package org.stepic.droid.ui.custom
import android.text.TextPaint
import android.text.style.URLSpan
class CustomFontURLSpan(url: String) : URLSpan(url) {
override fun updateDrawState(ds: TextPaint) {
super.updateDrawState(ds)
ds.isUnderlineText = false
}
} | 0 | null | 0 | 0 | ac7ff5e6ebac469578c27217e246f110a1f444c5 | 281 | stepik-android | Apache License 2.0 |
feature/tv/player/src/main/kotlin/com/flixclusive/feature/tv/player/controls/settings/common/ConfirmButton.kt | flixclusiveorg | 659,237,375 | false | {"Kotlin": 1904772, "Java": 18011} | package com.flixclusive.feature.tv.player.controls.settings.common
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.runtime.Composable
import andro... | 26 | Kotlin | 29 | 362 | f488f6d1b2de3ec0737a8437ce1c981bc2f55c31 | 2,798 | Flixclusive | MIT License |
app/src/sharedTest/java/org/oppia/app/profile/AdminAuthActivityTest.kt | sajalasati | 269,276,236 | true | {"Kotlin": 3567791, "Starlark": 86669, "Java": 27558, "Shell": 1855} | package org.oppia.app.profile
import android.app.Application
import android.content.Context
import android.os.Build
import android.view.View
import android.widget.EditText
import androidx.appcompat.app.AppCompatActivity
import androidx.test.core.app.ActivityScenario.launch
import androidx.test.core.app.ApplicationProv... | 0 | Kotlin | 0 | 0 | cb45e456caf79d5612ca4c28d8ef3bf1c25e5965 | 21,204 | oppia-android | Apache License 2.0 |
src/commonMain/kotlin/clipper2/engine/LocalMinima.kt | urbanistic | 617,653,496 | false | {"Kotlin": 1342096} | @file:Suppress("unused")
package clipper2.engine
import clipper2.core.PathType
class LocalMinima {
var vertex: ClipperBase.Vertex? = null
var polytype: PathType? = PathType.Subject
var isOpen = false
constructor()
constructor(vertex: ClipperBase.Vertex?, polytype: PathType?) : this(vertex, polyt... | 1 | Kotlin | 0 | 2 | b9186b0e42396f88ff6b01b73d58bcb68ffeeaf0 | 1,129 | clipper2-kotlin | Boost Software License 1.0 |
charset/src/com/fleeksoft/charset/cs/utf/UTF_32Coder.kt | fleeksoft | 874,918,183 | false | {"Kotlin": 8845941} | package com.fleeksoft.charset.cs.utf
import com.fleeksoft.charset.Charset
import com.fleeksoft.charset.CharsetDecoder
import com.fleeksoft.charset.CharsetEncoder
import com.fleeksoft.charset.CoderResult
import com.fleeksoft.charset.io.ByteBuffer
import com.fleeksoft.charset.io.CharBuffer
import com.fleeksoft.charset.l... | 1 | Kotlin | 0 | 2 | a16af685a558ad177749c12d7840a7b67aece66c | 5,859 | charset | MIT License |
base/src/main/kotlin/browser/webviewTag/PointerLockPermissionRequest.kt | DATL4G | 372,873,797 | false | null | @file:JsModule("webextension-polyfill")
@file:JsQualifier("webviewTag")
package browser.webviewTag
/**
* The type of <code>request</code> object which accompanies a <code>pointerLock</code> <a
* href="#event-permissionrequest">permissionrequest</a></code> DOM event.
*/
public external interface PointerLockPermissi... | 0 | Kotlin | 1 | 37 | ab2a825dd8dd8eb704278f52c603dbdd898d1875 | 917 | Kromex | Apache License 2.0 |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/ChannelObject.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/** \!RowBox[{"ChannelObject", "[", StyleBox[ ... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 16,244 | mathemagika | Apache License 2.0 |
BottomNavigationAndHttpRequest/app/src/main/java/com/example/basicapp/Constants.kt | BennyZhang-Canviz | 255,919,665 | false | null | package com.example.basicapp
const val DATABASE_NAME = "plant.db" | 0 | Kotlin | 0 | 0 | 55ae049d5c880b67251e40cf658c4535d52cd017 | 66 | Android | Apache License 2.0 |
app/src/main/java/avanger/co/id/MainActivity.kt | ridohendrawan | 356,727,545 | false | null | package avanger.co.id
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import avanger.co.id.databinding.ActivityMainBinding
import com.google.android.material.snackbar.Snackbar
import com.google.firebase.auth.FirebaseAuth
import com.google.... | 0 | Kotlin | 1 | 1 | 0d8f5851b34f2fc86a9e5a94b54691a3324438d1 | 2,624 | Kompleks | MIT License |
kotlin_spark/src/test/java/com/sleazyweasel/eboshi/ClientDataAccessTest.kt | botandrose | 43,263,644 | false | null | package com.sleazyweasel.eboshi
import org.junit.Assert.assertEquals
import org.junit.Test
import org.mockito.Mockito.`when`
import org.mockito.Mockito.verify
import org.springframework.jdbc.core.JdbcTemplate
import org.springframework.jdbc.core.simple.SimpleJdbcInsert
import java.util.*
class ClientDataAccessTest {
... | 15 | Kotlin | 5 | 1 | 43b6143487a461a2025de286e2b6d915b3d20f4e | 1,450 | eboshi_api_shootout | MIT License |
src/main/kotlin/dev/minn/jda/ktx/interactions/components/textinput.kt | MinnDevelopment | 259,655,475 | false | null | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 1 | Kotlin | 10 | 93 | 9370cb13cc64646862e6f885959d67eb4b157e4a | 5,384 | jda-ktx | Apache License 2.0 |
ui/src/main/kotlin/org/jetbrains/jewel/ui/component/IconActionButton.kt | JetBrains | 440,164,967 | false | {"Kotlin": 1615027, "Java": 22778, "Shell": 361} | /*
* Copyright (C) 2024 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... | 94 | Kotlin | 39 | 722 | e0e6f1b4a46ca1c27ce1c13524ff11f75a2bed54 | 9,950 | jewel | Apache License 2.0 |
airbyte-workload-launcher/src/test/kotlin/config/EnvVarConfigBeanFactoryTest.kt | lj-michale | 719,837,726 | true | {"Java Properties": 2, "Gradle Kotlin DSL": 49, "Shell": 54, "Markdown": 70, "Batchfile": 1, "Kotlin": 422, "Dockerfile": 25, "Java": 1531, "INI": 7, "JavaScript": 20, "TypeScript": 428, "HTML": 5, "CSS": 3, "Python": 7, "SQL": 14} | /*
* Copyright (c) 2023 Airbyte, Inc., all rights reserved.
*/
package config
import io.airbyte.workers.process.Metadata.AWS_ACCESS_KEY_ID
import io.airbyte.workers.process.Metadata.AWS_SECRET_ACCESS_KEY
import io.airbyte.workload.launcher.config.EnvVarConfigBeanFactory
import io.airbyte.workload.launcher.config.En... | 0 | Java | 0 | 1 | e554884ac0c8a22e423f470213de3d4cfa384938 | 5,265 | airbyte-platform | MIT License |
play-basic/src/main/kotlin/org/example/basic/demos/parents/AOPKotlinParentKotlinDemo.kt | dowenliu-xyz | 808,693,582 | false | {"Gradle Kotlin DSL": 13, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 2, "Java": 399, "YAML": 4, "INI": 6, "Kotlin": 354, "Java Properties": 1} | package org.example.basic.demos.parents
import org.example.basic.biz.Greeting
import org.example.basic.biz.Greeting.doFallback
import org.springframework.stereotype.Component
@Suppress("unused")
@Component
class AOPKotlinParentKotlinDemo : AOPKotlinParentForKotlin() {
override fun greeting(name: String?): String ... | 0 | Java | 0 | 1 | 8b6df6f693a0c7efa25c3a7d634823d7b8ec4915 | 476 | sentinel-plays | Apache License 2.0 |
src/main/kotlin/kilobyte/common/instruction/DecompiledInstruction.kt | leksak | 72,142,371 | false | {"Java": 116992, "Kotlin": 104979, "TeX": 66969, "Assembly": 23400, "Makefile": 915, "Shell": 686} | package kilobyte.common.instruction
import kilobyte.common.machinecode.MachineCode
import kilobyte.common.machinecode.opcode
import java.util.*
sealed class DecompiledInstruction {
class Valid(val instruction: Instruction) : DecompiledInstruction()
class PartiallyValid(val instruction: Instruction, val errors: Li... | 1 | null | 1 | 1 | ab25af00f96c0c4dc28e997385e1df436bd6ffb1 | 2,498 | kilobyte | MIT License |
app/src/main/java/deakin/gopher/guardian/model/RegistrationStatusMessage.kt | ShreyasNair067 | 714,569,652 | true | {"Java Properties": 2, "Gradle": 3, "Shell": 1, "Markdown": 8, "Batchfile": 1, "Text": 1, "Ignore List": 2, "XML": 129, "YAML": 1, "Proguard": 1, "JSON": 1, "Kotlin": 55, "Java": 33} | package deakin.gopher.guardian.model
import deakin.gopher.guardian.R
sealed class RegistrationStatusMessage(val message: Int) {
data object Success : RegistrationStatusMessage(R.string.registration_success)
data object Failure : RegistrationStatusMessage(R.string.registration_failure)
}
| 1 | Java | 0 | 0 | a381ece710e42cda48eec74929c2baea411e777e | 298 | Project-Guardian | MIT License |
sample-kotlin/src/main/java/com/your_company/ui_bindings_kotlin_sample/CouponsActivity.kt | nearit | 102,874,273 | false | {"Java": 673856, "Kotlin": 29259, "Shell": 4056} | package com.your_company.ui_bindings_kotlin_sample
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import com.nearit.ui_bindings.NearITUIBindings
import com.your_company.ui_bindings_kotlin_sample.factories.CouponFactory
/**
* @author <NAM... | 1 | null | 1 | 1 | 5267e8e63e186ee8fc71ba7eaed1e014ec1446a9 | 5,736 | Android-UI-Bindings | MIT License |
Sample/src/main/kotlin/com/heroslender/hmf/sample/menu/TestMenu.kt | heroslender | 341,310,824 | false | null | package com.heroslender.hmf.sample.menu
import com.heroslender.hmf.bukkit.BaseMenu
import com.heroslender.hmf.bukkit.MenuOptions
import com.heroslender.hmf.bukkit.manager.BukkitMenuManager
import com.heroslender.hmf.bukkit.map.Color
import com.heroslender.hmf.bukkit.modifiers.clickable
import com.heroslender.hmf.bukki... | 2 | Kotlin | 4 | 57 | f205b21bb7024899bd3ca14a44fb6f30493bce7f | 4,810 | menu-framework | MIT License |
plantor/app/src/main/java/com/mobapps/plantor/data/Plant.kt | btu-mobapps | 334,424,370 | false | null | package com.mobapps.plantor.data
import com.google.firebase.database.IgnoreExtraProperties
@IgnoreExtraProperties
data class Plant(
var name: String? = null,
var imgUri: String? = null,
var lastWaterDate: String? = null,
var waterHour: String? = null,
var waterDays: String? = null
) | 0 | Kotlin | 0 | 0 | 1ea0c224c68acb739ce154b4f1367a9c2d953706 | 305 | plantor | MIT License |
sample/src/release/kotlin/com/redmadrobot/debug_sample/debug_data/DebugServersProvider.kt | RedMadRobot | 516,407,635 | false | null | package com.redmadrobot.debug_sample.debug_data
import com.redmadrobot.debug_panel_core.data.DebugDataProvider
import com.redmadrobot.servers_plugin.data.model.DebugServer
class DebugServersProvider : DebugDataProvider<List<DebugServer>> {
override fun provideData(): List<DebugServer> {
return emptyList(... | 0 | Kotlin | 0 | 5 | 34d38784098552aed469b8accf0dd237cb9f77b7 | 330 | debug-panel-android | MIT License |
content/common/src/main/kotlin/br/com/mrocigno/bigbrother/common/utils/_booleanUtils.kt | mrocigno | 574,215,368 | false | {"Kotlin": 343969, "HTML": 7133} | package br.com.mrocigno.bigbrother.common.utils
fun Boolean.ifTrue(block: () -> Unit) =
if (this) block() else Unit
fun Boolean.ifFalse(block: () -> Unit) =
if (!this) block() else Unit | 0 | Kotlin | 0 | 4 | 8deac7d4cf1b1395e5c23dc3b788266beb1fa19b | 195 | big-brother | Apache License 2.0 |
adaptive-kotlin-plugin/test/hu/simplexion/adaptive/kotlin/runners/runtimeClassPath.kt | spxbhuhb | 788,711,010 | false | {"Kotlin": 1463989, "Java": 17672, "HTML": 2540, "JavaScript": 970} | /*
* Copyright © 2020-2024, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package hu.simplexion.adaptive.kotlin.runners
import java.io.File
import java.nio.file.Files
import java.nio.file.Paths
import kotlin.io.path.getLastModifiedTime
import kotlin.io.path.... | 13 | Kotlin | 0 | 0 | 2f97d34731f19163e62da8c578802c2915a48572 | 1,003 | adaptive | Apache License 2.0 |
nuget-tests/src/jetbrains/buildServer/nuget/tests/integration/feed/server/NuGetServiceFeedUploadMetadataHandlerTest.kt | JetBrains | 2,046,399 | false | {"Gradle": 9, "INI": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 2, "Text": 14, "Markdown": 1, "JSON": 4, "XML": 140, "Java": 427, "Kotlin": 122, "Microsoft Visual Studio Solution": 20, "C#": 113, "Java Server Pages": 18, "CSS": 1, "JavaScript": 1, "SVG": 1} | package jetbrains.buildServer.nuget.tests.integration.feed.server
import jetbrains.buildServer.nuget.feed.server.controllers.serviceFeed.upload.NuGetServiceFeedUploadHandlerContext
import jetbrains.buildServer.nuget.feed.server.controllers.serviceFeed.upload.NuGetServiceFeedUploadMetadataHandlerImpl
import jetbrains.b... | 13 | Java | 11 | 43 | a5d36942395a56bc6a124805b4f76c620aeddfb5 | 3,820 | teamcity-nuget-support | Apache License 2.0 |
app/src/main/java/com/bth/reciperadar/presentation/viewmodels/CuisineViewModel.kt | BryanAafjes | 718,555,578 | false | {"Kotlin": 52345} | package com.bth.reciperadar.presentation.viewmodels
import com.bth.reciperadar.domain.models.Cuisine
data class CuisineViewModel (
var id: String,
var name: String,
var description: String?,
)
fun CuisineViewModel.toDomain(): Cuisine {
return Cuisine(
id = this.id,
name = this.name,
... | 0 | Kotlin | 0 | 0 | 396474807f3d6499aceb1d55fbd7361f86d312f7 | 536 | RecipeRadar | MIT License |
src/test/kotlin/org/ktapi/db/MigrationTest.kt | ktapi | 561,554,216 | false | null | package org.ktapi.db
import io.kotlintest.shouldBe
import io.kotlintest.specs.StringSpec
import org.ktapi.db.Database.Type
import org.ktapi.db.Database.param
import org.ktapi.db.Database.result
import java.io.File
class MigrationTest : StringSpec({
"create sql migration" {
val root = File("src/test")
... | 0 | Kotlin | 0 | 0 | 9a035f1a340c3a2cfc5036e2e9c2e1e0af26a758 | 1,410 | ktapi | Apache License 2.0 |
src/domain/TransactionStatus.kt | jurabek | 241,881,120 | false | {"Kotlin": 54913} | package domain
enum class TransactionStatus(val value: Int) {
COMPLETED(1),
FAILED(2)
} | 0 | Kotlin | 0 | 2 | e930978815b49549015278b8d36f68481ade94f6 | 96 | money-transfer | MIT License |
persistance/src/main/java/com/linhtetko/persistance/databases/Schema.kt | lin-htet-ko | 726,358,254 | false | {"Kotlin": 95925, "CMake": 1249, "C++": 502} | package com.linhtetko.persistance.databases
object Schema {
const val DB_NAME = "efficient_app.db"
const val DB_VERSION = 1
object Table {
const val TB_WEATHER = "weathers"
}
} | 0 | Kotlin | 0 | 0 | dea33ddf60850d8e3ec8fc6d121cb161ea65bd1a | 205 | efficient_weather_app | Apache License 2.0 |
avro-kotlin/src/test/kotlin/model/FloatTypeTest.kt | toolisticon | 493,962,736 | false | {"Kotlin": 346114, "Java": 1511} | package io.toolisticon.kotlin.avro.model
import io.toolisticon.kotlin.avro.builder.AvroBuilder.primitiveSchema
import io.toolisticon.kotlin.avro.model.SchemaType.FLOAT
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
internal class FloatTypeTest {
@Test
fun `floatType with simp... | 11 | Kotlin | 0 | 4 | 6e0c6a42d02f2e4d6e89d3975fd80fd658f9bea0 | 505 | avro-kotlin | Apache License 2.0 |
app/src/test/java/com/saintmarina/alphatraining/ExampleUnitTest.kt | saintmarina | 421,152,743 | false | null | package com.saintmarina.alphatraining
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
... | 0 | Kotlin | 0 | 3 | 519ecc329aaba7c5deff5eb473e57c8c0ccfa2d1 | 381 | neurofit | MIT License |
src/main/kotlin/org/smart/home/simulator/entities/smartMeter/FlowDirection.kt | NLCProject | 494,882,867 | false | null | package org.smart.home.simulator.entities.smartMeter
import org.isc.utils.annotations.GenerateTsModel
import org.isc.utils.annotations.I18nKeys
/**
* Power flow direction
*/
@I18nKeys
@GenerateTsModel
enum class FlowDirection {
/**
* Power is imported and bought.
*/
Import,
/**
* Power ... | 0 | Kotlin | 0 | 0 | ea4e3c44fcca642ca8ade4c0498a1cdd6c9ba440 | 363 | SmartHomeSimulator | The Unlicense |
app/src/main/java/com/nikol412/artroom/ui/overview/OverviewViewModel.kt | nikol412 | 360,528,593 | false | null | package com.nikol412.artroom.ui.overview
import androidx.lifecycle.ViewModel
class OverviewViewModel : ViewModel() {
// TODO: Implement the ViewModel
} | 0 | Kotlin | 0 | 0 | 6578884cc4a81e6ca5912930625056583bc61b44 | 157 | ArtRoom | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.