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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ui-lib/src/androidTest/java/co/electriccoin/zcash/ui/screen/request/view/RequestViewTest.kt | Electric-Coin-Company | 390,808,594 | false | {"Kotlin": 1068342} | package co.electriccoin.zcash.ui.screen.request.view
import androidx.compose.ui.test.assertIsNotEnabled
import androidx.compose.ui.test.junit4.ComposeContentTestRule
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithContentDescription
import androidx.compose.ui.test.onN... | 173 | Kotlin | 9 | 20 | 8c027003cce4aa07a0881e514ff216febd3df146 | 9,533 | zashi-android | MIT License |
core/src/main/java/com/binbo/glvideo/core/media/config/MediaEncoderConfig.kt | bigbugbb | 590,505,224 | false | {"C++": 4393829, "Kotlin": 644517, "C": 353478, "Java": 240888, "GLSL": 23970, "Objective-C": 7449, "CMake": 304} | package com.binbo.glvideo.core.media.config
data class MediaEncoderConfig(
val width: Int = 1080,
val height: Int = 1920,
val frameRate: Int = 25,
val videoBitRate: Int = 800000,
val audioBitRate: Int = 64000,
val keyFrameInterval: Int = 12,
val sampleRate: Int = 44100,
val encoderName:... | 0 | C++ | 0 | 10 | 311deeca071adac842931f37b4f3d71248b5aae8 | 334 | glvideo | MIT License |
app/src/main/java/com/consistence/pinyin/domain/pinyin/db/CountPinyin.kt | memtrip | 137,037,911 | false | null | package com.consistence.pinyin.domain.pinyin.db
import com.consistence.pinyin.domain.SchedulerProvider
import io.reactivex.Single
import javax.inject.Inject
class CountPinyin @Inject internal constructor(
private val pinyinDao: PinyinDao,
private val schedulerProvider: SchedulerProvider
) {
fun count(): ... | 0 | Kotlin | 9 | 58 | 7df0b28a89a1bf778b118e4c35274d89b0600161 | 500 | android-mvi | Apache License 2.0 |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/VideoPlay.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
/**
*````
*
* Name: VideoPlay
*
* Full name: System`VideoPlay
*
* VideoPlay[video] returns a new VideoStrea... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,098 | mathemagika | Apache License 2.0 |
src/commonMain/kotlin/hmeadowSocket/HMeadowSocket.kt | Alpha-Kand | 583,475,560 | false | {"Kotlin": 81971, "Shell": 378, "Python": 236} | package hmeadowSocket
import java.net.InetAddress
import java.net.ServerSocket
import java.net.Socket
sealed class HMeadowSocket(open val socketInterface: HMeadowSocketInterface) {
enum class SocketErrorType {
CLIENT_SETUP,
SERVER_SETUP,
}
class HMeadowSocketError(
val errorType: ... | 0 | Kotlin | 0 | 0 | d5da4c8df7358b6a8a2db7b3477543bae1580c3d | 2,863 | Fittonia | MIT License |
app/src/main/java/com/non/sunnyweather/ui/place/PlaceAdapter.kt | PLBlebin | 304,840,939 | false | null | package com.non.sunnyweather.ui.place
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.non.sunnyweather.MainActivity
import com.non.sunnyweather.R
import com... | 0 | Kotlin | 0 | 0 | fbcfe6488d0c9f4b53e320db3fcbc70a03bfb2e7 | 2,938 | SunnyWeather | Apache License 2.0 |
common/src/commonMain/kotlin/com/yorick/sharednotes/SharedNotesApp.kt | Yorick-Ryu | 584,351,339 | false | null | package com.yorick.sharednotes
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.yorick.sharednotes.data.local.LocalA... | 0 | Kotlin | 0 | 26 | 587b80f62c17ab7827b13865dfdbaa5d70fee5db | 1,438 | SharedNotes | MIT License |
core/src/main/java/com/timilehinaregbesola/mathalarm/interactors/NotificationInteractor.kt | t-regbs | 223,649,248 | false | null | package com.timilehinaregbesola.mathalarm.interactors
import com.timilehinaregbesola.mathalarm.domain.model.Alarm
/**
* Interface to interact with the notification feature.
*/
interface NotificationInteractor {
/**
* Shows a notification.
*
* @param alarm alarm entity to be shown as notification... | 0 | Kotlin | 2 | 9 | 2c424ef572324dfa8b76bc21eaf2324d0c9d51b2 | 521 | MathAlarm | The Unlicense |
src/test/kotlin/org/javacs/kt/LintTest.kt | georgewfraser | 126,650,939 | false | {"Kotlin": 175368, "TypeScript": 6109, "Java": 6063, "Shell": 288} | package org.javacs.kt
import org.eclipse.lsp4j.Diagnostic
import org.hamcrest.Matchers.*
import org.junit.Assert.assertThat
import org.junit.Test
class LintTest : SingleFileTestFixture("lint", "LintErrors.kt") {
@Test fun `report error on open`() {
languageServer.textDocumentService.debounceLint.waitForPe... | 0 | Kotlin | 2 | 32 | 326af74acdf2de9d518314cfaeee65d4fc6d8a80 | 862 | kotlin-language-server | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsmanageawarrantfolderapi/relevantremand/service/RemandCalculationServiceTest.kt | ministryofjustice | 551,343,021 | false | null | package uk.gov.justice.digital.hmpps.hmppsmanageawarrantfolderapi.relevantremand.service
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import uk.gov.justice.digital.hmpps.hmppsmanageawarrantfolderapi.rel... | 0 | Kotlin | 0 | 0 | aea12a39f06663f1ba6cfb600e2fa00647456e82 | 7,147 | hmpps-manage-a-warrant-folder-api | MIT License |
alchemy-core/src/commonTest/kotlin/com/alchemy/sdk/core/model/NetworkTest.kt | tguerin | 534,856,094 | false | null | package com.alchemy.sdk.core.model
import com.alchemy.sdk.shouldBeEqualTo
import kotlin.test.Test
class NetworkTest {
@Test
fun `ensure network id`() {
Network.ETH_MAINNET.networkId shouldBeEqualTo "eth-mainnet"
Network.ETH_ROPSTEN.networkId shouldBeEqualTo "eth-ropsten"
Network.ETH_G... | 4 | Kotlin | 0 | 3 | 9768a7ab07d9955e3036c32b1f4497527f237b34 | 1,122 | alchemy-sdk-kotlin | MIT License |
app/src/main/java/tech/acruxsolutions/atomnote/viewholders/MakeListViewHolder.kt | manhnvacrux | 292,882,015 | false | null | package tech.acruxsolutions.atomnote.viewholders
import android.text.Editable
import android.text.InputType
import android.text.TextWatcher
import android.view.MotionEvent
import androidx.recyclerview.widget.RecyclerView
import tech.acruxsolutions.atomenote.databinding.ListItemBinding
import tech.acruxsolutions.atomno... | 0 | Kotlin | 0 | 0 | 812c2acae02157dfcf40f028b10bdd160f776496 | 2,006 | atom-note | MIT License |
app/src/main/java/vsec/com/slockandroid/Presenters/HomeActivity/HomeView.kt | Rick-Sanchez-C37 | 225,566,332 | false | null | package vsec.com.slockandroid.Presenters.HomeActivity
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_home.*
import vsec.com.slockandroid.Presenters.AccessibleLocksActivity.AccessibleLocksView
import vsec.com.slockandroid.Presenters.Owne... | 0 | Kotlin | 1 | 0 | 341b9c351bc14d74a28bd1d40fedbea6b3c38b46 | 1,731 | slock-android | MIT License |
app/src/main/java/com/capstone/urskripsi/ui/content/home/TaskFilterBottomSheetFragment.kt | Naufal0010 | 429,732,609 | false | null | package com.capstone.urskripsi.ui.content.home
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.capstone.urskripsi.R
import com.capstone.urskripsi.databinding.BottomSheetDialogSortTaskBinding
import com.capstone.urskripsi.ui.content.home.task... | 0 | Kotlin | 1 | 0 | 46c57498547218b1fda601b5f811511d999bd859 | 1,696 | UrSkripsi | MIT License |
compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/withGenericFun.kt | JetBrains | 3,432,266 | false | null | fun <T, R> apply(x: T, f: (T) -> R): R = f(x)
fun foo(i: Int) {}
fun foo(s: String) {}
val x1 = apply(1, ::foo)
val x2 = apply("hello", ::foo)
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 145 | kotlin | Apache License 2.0 |
payments-core-testing/src/main/java/com/stripe/android/testing/FakeErrorReporter.kt | stripe | 6,926,049 | false | {"Kotlin": 10852308, "Java": 69352, "Ruby": 22569, "Shell": 20293, "Python": 13907, "HTML": 7519} | package com.stripe.android.testing
import androidx.annotation.RestrictTo
import com.stripe.android.core.exception.StripeException
import com.stripe.android.payments.core.analytics.ErrorReporter
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
class FakeErrorReporter : ErrorReporter {
private val loggedErrors: Mutable... | 122 | Kotlin | 619 | 1,203 | 1d8ddfdc255c8cfd043bb36d13b71ea74ab35f62 | 645 | stripe-android | MIT License |
backend-spring-kotlin/src/main/kotlin/lunchbox/util/date/FeiertageApi.kt | rori-dev | 29,542,877 | false | {"JSON": 16, "Text": 49, "Ignore List": 4, "Markdown": 8, "YAML": 12, "JavaScript": 51, "EditorConfig": 3, "HTML": 119, "SCSS": 10, "Go": 1, "Go Checksums": 1, "Dockerfile": 3, "Makefile": 1, "Go Module": 1, "Dotenv": 1, "Shell": 11, "Gradle": 10, "Batchfile": 2, "INI": 5, "XML": 6, "Kotlin": 77, "JSON with Comments": ... | package lunchbox.util.date
import lunchbox.domain.models.Bundesland
import java.time.LocalDate
import java.time.Year
interface FeiertageApi {
fun queryFeiertage(
jahre: Set<Year>,
laender: Set<Bundesland>,
): Set<Feiertag>
}
data class Feiertag(
val land: Bundesland,
val datum: LocalDate,
val name:... | 2 | null | 2 | 1 | 91fa2d558d56ee2b05bb3058c842f3656fa7fab3 | 331 | lunchbox | MIT License |
app/src/main/java/com/diogocabral/giphyapp/view/viewHolder/GifViewHolder.kt | drcabral | 361,280,088 | false | null | package com.diogocabral.giphyapp.view.viewHolder
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.bumptech.glide.request.RequestOptions
import com.diogocabral.giphyapp.R
import com.diogocabral.giphyapp.data.Gif
... | 0 | Kotlin | 0 | 0 | 02c50e4077bfa5a4488ce2d5e2527963f98b8209 | 2,375 | GiphyApp | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/elasticache/CfnSecurityGroupPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.elasticache
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.elasticache.CfnSecurityGroupProps
@Generated
public fun buildCfnSecurityGroupProps(initializer: @AwsCdkDsl
CfnSecurityGrou... | 1 | Kotlin | 0 | 0 | e9a0ff020b0db2b99e176059efdb124bf822d754 | 435 | aws-cdk-kt | Apache License 2.0 |
fuckyou/src/cn/ckxily/ckxc/parser/test/parsertest3.kt | ckx-lang | 130,645,536 | false | null | package cn.ckxily.ckxc.parser.test
import cn.ckxily.ckxc.codegen.BetterASTPrinter
import cn.ckxily.ckxc.lex.Lexer
import cn.ckxily.ckxc.parser.Parser
fun Array<String>.main() {
val lexer = Lexer()
val parser = Parser()
parser.parse(lexer.lex("""
// TODO We cannot merge two declarations till now
// func test()... | 0 | Kotlin | 0 | 2 | bf32bd7dff6d749fa9f61954e97ce96acaaeeac1 | 616 | ckxc-v2-proto | MIT License |
Android/app/src/main/java/com/matthaigh27/chatgptwrapper/data/repository/RemoteRepository.kt | ttt246 | 651,148,907 | false | null | package com.matthaigh27.chatgptwrapper.data.repository
import com.matthaigh27.chatgptwrapper.data.remote.ApiClient
import com.matthaigh27.chatgptwrapper.data.remote.ApiResource
import com.matthaigh27.chatgptwrapper.data.remote.requests.ImageRelatednessApiRequest
import com.matthaigh27.chatgptwrapper.data.remote.reques... | 34 | Python | 1 | 15 | b0614ab8a61fb3ca15545d5d054d2fd96127f5ec | 5,118 | Brain | MIT License |
src/main/kotlin/Main.kt | goetz-markgraf | 752,949,198 | false | {"Kotlin": 4853} | enum class Player {
X, O
}
enum class State {
WIN_X, WIN_O, TIE, IN_PROGRESS
}
enum class Action {
MOVE, STOPP, NEU, INFO, HILFE
}
fun main() {
var playerField = listOf('1', '2', '3', '4', '5', '6', '7', '8', '9')
var player = Player.X
print("Enter your name, Player X: ")
val playerXName... | 0 | Kotlin | 0 | 0 | f36a0c450ddd59b00935f5be481bda9345e73054 | 4,705 | tictactoe_2024 | MIT License |
feature/reminder/src/main/java/com/example/reminder/list/ReminderListPageViewModel.kt | youmitsu | 720,366,325 | false | {"Kotlin": 97147} | package com.example.reminder.list
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.model.Rem... | 0 | Kotlin | 0 | 0 | e741b43ff425a01def67989f1dffca60f8165dab | 1,881 | JetpackComposeApp | MIT License |
analysis/symbol-light-classes/src/org/jetbrains/kotlin/analysis/providers/impl/KotlinStaticPsiDeclarationFromBinaryModuleProvider.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.providers.impl
import com.intellij.openapi.project.Project
import com.i... | 162 | null | 5729 | 46,436 | c902e5f56504e8572f9bc13f424de8bfb7f86d39 | 7,368 | kotlin | Apache License 2.0 |
src/main/kotlin/com/bka/ssi/generator/domain/objects/CredentialExchangeRecordDo.kt | hyperledger | 438,307,845 | false | {"Kotlin": 78717, "Shell": 12803, "Dockerfile": 444} | package com.bka.ssi.generator.domain.objects
class CredentialExchangeRecordDo(
val id: String,
val sessionId: String,
val connectionId: String,
val time: Long,
val state: String,
val issued: Boolean,
val revocationRegistryId: String?,
val revocationRegistryIndex: String?
) {
}
| 13 | Kotlin | 11 | 16 | 7eecfd5bbc31a5c98fbf5d81a979b59cc5519e50 | 311 | aries-cloudagent-loadgenerator | Apache License 2.0 |
src/main/java/com/phantom/originiumarts/common/arts/ArtScorchedEarth.kt | PhantomLGZ | 536,480,919 | false | {"Kotlin": 514935} | package com.phantom.originiumarts.common.arts
import com.phantom.originiumarts.client.ParticleRegister
import com.phantom.originiumarts.common.SoundRegister
import com.phantom.originiumarts.common.capability.OriginiumArtsCapability
import com.phantom.originiumarts.common.capability.getArtEffectFactor
import com.phanto... | 0 | Kotlin | 0 | 0 | 4d5567a983ebff04039e371a4f66679ee350cac9 | 3,410 | OriginiumArts | MIT License |
library/src/main/kotlin/cc/vileda/kalfor/kalfor.kt | derveloper | 62,494,637 | false | null | package cc.vileda.kalfor
import com.github.kittinunf.fuel.httpGet
import com.github.kittinunf.result.getAs
import com.github.salomonbrys.kotson.jsonObject
import org.apache.commons.lang3.StringUtils.isNotBlank
import org.funktionale.tries.Try
import org.funktionale.utils.identity
import java.nio.charset.Charset
import... | 0 | Kotlin | 0 | 11 | 9b1d6ffd7496231ec591621a887946e073ac472f | 3,474 | kalfor | Apache License 2.0 |
app/src/main/java/com/uoa/telmaticsapp/data/services/SensorService.kt | iniakponode | 686,547,847 | false | {"Kotlin": 245110} | package com.uoa.telmaticsapp.data.services
import android.annotation.SuppressLint
import android.app.*
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.location.LocationManager
import android.os.Build
import android.os.IBinder
import android.util.Log
... | 0 | Kotlin | 0 | 0 | ffed0033fb1cc0c7f2118de87912740d166db78c | 12,452 | TelmaticApp | MIT License |
app/src/main/java/com/team/dream/cantus/cross/model/DeezerAlbum.kt | Playdric | 193,500,615 | false | null | package com.team.dream.cantus.cross.model
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class DeezerAlbum(
val id: Int,
val title: String,
val cover_medium: String,
val nb_tracks: Int,
val tracklist: String,
val artistId: Int,
... | 0 | Kotlin | 0 | 3 | 918b20dc1431b32c6a1a6f229305eb9f682143b7 | 430 | cantus | MIT License |
library/src/androidTest/java/com/nextcloud/android/lib/resources/groupfolders/GetGroupfoldersRemoteOperationIT.kt | nextcloud | 60,562,363 | false | {"Java": 854724, "Kotlin": 516192, "Shell": 14608, "Python": 4123, "Ruby": 1839} | /*
* Nextcloud Android Library
*
* SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2023 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-License-Identifier: MIT
*/
package com.nextcloud.android.lib.resources.groupfolders
import com.owncloud.android.AbstractIT
impo... | 58 | Java | 92 | 91 | 0e78fb4035d85fec661d06ece2cdab99d8556547 | 988 | android-library | Apache License 2.0 |
app/src/main/kotlin/com/gcode/materialnotes/db/NoteDatabase.kt | SakurajimaMaii | 509,547,921 | false | null | /*
* Copyright 2022 VastGui
*
* 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 ... | 0 | Kotlin | 0 | 3 | 9560294ad0b622142c3534156f1ce8e631499c5b | 1,410 | MaterialNotes | Apache License 2.0 |
EcosystemSimulation/src/shmp/simulation/space/resource/transformer/ResourceTransformer.kt | ShMPMat | 212,499,539 | false | null | package shmp.simulation.space.resource.transformer
import shmp.simulation.space.resource.Resource
interface ResourceTransformer {
fun transform(resource: Resource): Resource
} | 0 | Kotlin | 0 | 0 | 9fc6faafa1dbd9737dac71dc8a77960accdae81f | 182 | CulturesSim | MIT License |
app/src/main/java/com/prosabdev/fluidmusic/viewmodels/models/playlist/PlaylistSongItemViewModel.kt | 4kpros | 555,755,264 | false | {"Kotlin": 948923, "Java": 1923} | package com.prosabdev.fluidmusic.viewmodels.models.playlist
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import com.prosabdev.common.models.playlist.PlaylistSongItem
import com.prosabdev.common.roomdatabase.repositories.playlist.PlaylistSongItemRepository... | 0 | Kotlin | 0 | 2 | c9363fa150d1cd34b0fac119c825bfe75e2f96e1 | 1,311 | FluidMusic | Apache License 2.0 |
sphinx/screens-detail/podcast-player/podcast-player/src/main/java/chat/sphinx/podcast_player/ui/PodcastPlayerSideEffect.kt | stakwork | 340,103,148 | false | null | package chat.sphinx.podcast_player.ui
import androidx.fragment.app.FragmentActivity
import chat.sphinx.resources.SphinxToastUtils
import io.matthewnelson.android_feature_toast_utils.show
import io.matthewnelson.concept_views.sideeffect.SideEffect
sealed class PodcastPlayerSideEffect: SideEffect<FragmentActivity>() {
... | 55 | Kotlin | 5 | 17 | 3c8d86fe0417a82fde5ecf4e37be5e894d3265cb | 635 | sphinx-kotlin | MIT License |
2021/kotlin/src/test/kotlin/Day15Test.kt | codelicia | 627,407,402 | false | {"Kotlin": 49578, "PHP": 554, "Makefile": 293} | package com.codelicia.advent2021
import Util.readInput
import kotlin.test.assertEquals
import org.junit.jupiter.api.Test as Theory
class Day15Test {
@Theory
fun part1() {
assertEquals(40, Day15(SAMPLE_INPUT).part1())
assertEquals(315, Day15(COMPLETE_MAP).part1())
assertEquals(602, Day... | 2 | Kotlin | 0 | 0 | 8444aa85796d7e1c9fbeb26de4dba9eeb81a3c74 | 4,166 | adventofcode | MIT License |
jvm/j2v8/src/main/kotlin/com/intuit/player/jvm/j2v8/extensions/Invoke.kt | player-ui | 513,673,239 | false | {"TypeScript": 1109550, "Kotlin": 795555, "Swift": 515754, "Starlark": 94150, "JavaScript": 19037, "Ruby": 17428, "Shell": 10073, "MDX": 2336, "Smarty": 2149, "C": 104, "Java": 103, "CSS": 31} | package com.intuit.player.jvm.j2v8.extensions
import com.eclipsesource.v8.V8Array
import com.eclipsesource.v8.V8Function
import com.intuit.player.jvm.j2v8.bridge.serialization.format.J2V8Format
internal operator fun V8Function.invoke(format: J2V8Format): Any? =
call(runtime, runtime.evaluateInJSThreadBlocking(for... | 71 | TypeScript | 30 | 65 | e759140acaf54b69465ffcc521d4ea2c6823dee8 | 478 | player | MIT License |
api-impl/api-impl-tokyochallenge/src/test/java/com/github/teracy/odpt/api/tokychallenge/TokyoChallengeBusApiClientDataVariationTest.kt | teracy | 193,032,147 | false | null | package com.github.teracy.odpt.api.tokychallenge
import com.github.teracy.odpt.api.tokychallenge.support.*
import com.github.teracy.odpt.core.v4.bus.request.*
import com.github.teracy.odpt.core.v4.common.request.OperatorArgument
import com.github.teracy.odpt.testutil.ApiClientTest
import kotlinx.coroutines.runBlocking... | 0 | Kotlin | 0 | 1 | 002554e4ca6e2f460207cfd1cb8265c2267f149d | 5,316 | odpt | Apache License 2.0 |
app/src/main/java/com/zeynelerdi/marvelheroes/view/ui/details/PosterDetailActivity.kt | ZeynelErdiKarabulut | 313,744,544 | false | null | /*
* Designed and developed by 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 agr... | 0 | Kotlin | 0 | 0 | 9ff60bf8b5e2fb975457a102530a32ab7220281c | 2,273 | TheMarvelHeroes | Apache License 2.0 |
library/src/test/java/io/constructor/data/builder/SearchRequestTest.kt | Constructor-io | 132,483,938 | false | null | package io.constructor.data.builder
import org.junit.Test
import kotlin.test.assertEquals
class SearchRequestTest {
private val query = "rose"
private val filtersToApply = mapOf(
"Brand" to listOf("XYZ", "123"),
"group_id" to listOf("123"),
)
private val page = 2
private val perPag... | 4 | Kotlin | 1 | 4 | b955ea2af853491d6c7f047a6769664c964d2718 | 4,037 | constructorio-client-android | MIT License |
great-wall-server/src/main/kotlin/cc/shacocloud/greatwall/utils/json/Json.kt | Lorwell | 830,322,172 | false | {"TypeScript": 447508, "Kotlin": 425986, "JavaScript": 3275, "CSS": 2340, "Shell": 1157, "Less": 726, "HTML": 344} | package cc.shacocloud.greatwall.utils.json
import cc.shacocloud.greatwall.config.serializer.DateDeserializer
import com.fasterxml.jackson.annotation.JsonAutoDetect
import com.fasterxml.jackson.annotation.PropertyAccessor
import com.fasterxml.jackson.core.JsonParser
import com.fasterxml.jackson.core.JsonToken
import co... | 0 | TypeScript | 0 | 11 | 0bb9f6b4d567a85289bd176a9bc4b2ae528b09f4 | 9,137 | great-wall | Apache License 2.0 |
app/src/main/java/br/com/sommelier/domain/model/UserInfo.kt | ronaldocoding | 665,333,427 | false | null | package br.com.sommelier.domain.model
data class UserInfo(val email: String, val password: String, val name: String)
| 0 | Kotlin | 0 | 1 | 5038ec2bd31c0e83247ff73788d20f8da1d509c7 | 118 | sommelier | MIT License |
backend/api/src/main/kotlin/io/tolgee/hateoas/pat/IPatModel.kt | tolgee | 303,766,501 | false | {"TypeScript": 2960870, "Kotlin": 2463774, "JavaScript": 19327, "Shell": 12678, "Dockerfile": 9468, "PLpgSQL": 663, "HTML": 439} | package io.tolgee.hateoas.pat
interface IPatModel {
val id: Long
val description: String
val expiresAt: Long?
val createdAt: Long
val updatedAt: Long
val lastUsedAt: Long?
}
| 170 | TypeScript | 188 | 1,837 | 6e01eec3a19c151a6e0aca49e187e2d0deef3082 | 187 | tolgee-platform | Apache License 2.0 |
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.kt | react-native-tvos | 177,633,560 | false | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.bridge
import android.annotation.SuppressLint
import com.facebook.infer.annotation.Assertions
import ... | 7 | null | 147 | 942 | 692bc66a98c8928c950bece9a22d04c13f0c579d | 6,187 | react-native-tvos | MIT License |
core-arch-mvvm-databinding-nav/src/main/kotlin/cz/kotox/core/arch/di/viewModel/ViewModelBindingModule.kt | kotoMJ | 170,925,605 | false | null | package cz.kotox.core.arch.di.viewModel
import androidx.lifecycle.ViewModel
import cz.kotox.core.arch.di.viewModel.AssistedSavedStateViewModelFactory
import dagger.Module
import dagger.multibindings.Multibinds
@Module
abstract class ViewModelBindingModule {
@Multibinds
abstract fun viewModels(): Map<Class<out ViewM... | 2 | Kotlin | 0 | 0 | 9a1346e49802fec162f4c64f7e17448c12a716f5 | 512 | kotox-android | MIT License |
arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-raise-04.kt | arrow-kt | 86,057,409 | false | null | // This file was automatically generated from Effect.kt by Knit tool. Do not edit.
package arrow.core.examples.exampleRaise04
import arrow.core.raise.Effect
import arrow.core.raise.effect
import arrow.core.raise.recover
import arrow.core.raise.catch
val failed: Effect<String, Int> =
effect { raise("failed") }
val ... | 38 | null | 436 | 5,958 | 5f0da6334b834bad481c7e3c906bee5a34c1237b | 1,444 | arrow | Apache License 2.0 |
app/src/main/java/com/example/sunnyweather/ui/weather/WeatherViewModel.kt | PeacefulGemini | 467,367,022 | false | null | package com.example.sunnyweather.ui.weather
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.example.sunnyweather.logic.Repository
import com.example.sunnyweather.logic.model.Location
class WeatherViewModel : ViewModel(){
private va... | 0 | Kotlin | 0 | 0 | ceddcb5d88ff45227b9cfe5aa0d3a46e58c69171 | 705 | SunnyWeather | Apache License 2.0 |
src/client/kotlin/io/github/thebroccolibob/shallowdark/ShallowDarkClient.kt | thebroccolibob | 757,060,700 | false | {"Kotlin": 38300, "Java": 3882} | package io.github.thebroccolibob.shallowdark
import io.github.thebroccolibob.shallowdark.block.ShallowDarkBlocks.SCULK_BONE_SPIKE
import io.github.thebroccolibob.shallowdark.block.ShallowDarkBlocks.SCULK_WART
import net.fabricmc.api.ClientModInitializer
import net.fabricmc.fabric.api.blockrenderlayer.v1.BlockRenderLay... | 5 | Kotlin | 0 | 0 | e501f4ef1f98cbe2873a3e7cf4371ba840e31358 | 767 | ShallowDark | MIT License |
web-api/src/main/java/com/github/aivanovski/testswithme/web/api/response/GroupsResponse.kt | aivanovski | 815,197,496 | false | {"Kotlin": 788421, "Clojure": 13655, "Shell": 1883, "Scala": 850, "Dockerfile": 375} | package com.github.aivanovski.testswithme.web.api.response
import com.github.aivanovski.testswithme.web.api.GroupItemDto
import kotlinx.serialization.Serializable
@Serializable
data class GroupsResponse(
val groups: List<GroupItemDto>
) | 0 | Kotlin | 0 | 0 | f55f0c12293df3be5ffa7d1ce069b3126b9dceb6 | 242 | tests-with-me | Apache License 2.0 |
app/src/main/java/com/anafthdev/musicompose2/foundation/uicomponent/SetTimerSlider.kt | kafri8889 | 509,012,286 | false | {"Kotlin": 356863} | package com.anafthdev.musicompose2.foundation.uicomponent
import androidx.annotation.FloatRange
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.LocalContentColor
import androidx.compose.material3.MaterialTheme
import androidx.compos... | 3 | Kotlin | 8 | 40 | fa8c356aa2967228b91dc68ef99c395be22b73fb | 1,785 | Musicompose-V2 | Do What The F*ck You Want To Public License |
src/main/kotlin/dev/emortal/lobby/occurrences/ChatOccurrence.kt | emortalmc | 396,165,548 | false | null | package dev.emortal.lobby.occurrences
import dev.emortal.immortal.util.armify
import dev.emortal.immortal.util.centerText
import dev.emortal.immortal.util.parsed
import dev.emortal.lobby.games.LobbyExtensionGame
import net.kyori.adventure.sound.Sound
import net.kyori.adventure.text.Component
import net.kyori.adventure... | 9 | Kotlin | 0 | 1 | f7c0d40c8b7a19d17e0b34c741e98373aa856a3b | 4,378 | LobbyExtension | MIT License |
src/main/kotlin/com/nofriends/gigachat/dto/UsuarioDTO.kt | Nhrot22230 | 831,207,369 | false | {"Kotlin": 31285, "HTML": 11725, "JavaScript": 5252, "CSS": 3780, "Dockerfile": 483} | package com.nofriends.gigachat.dto
import com.nofriends.gigachat.config.TimeSerializer
import com.nofriends.gigachat.model.Estado
import kotlinx.serialization.Serializable
@Serializable
data class UsuarioDTO(
val id: Int,
val username: String,
val password: String,
val email: String?=null,
@Serializable(with... | 0 | Kotlin | 0 | 1 | 0d5155e5453b0c201bb7da1df0a903133fd8d2c0 | 424 | GigaChatBackEnd | MIT License |
app/main/innsending/postgres/PostgresRepo.kt | navikt | 678,522,979 | false | {"Kotlin": 80936, "Dockerfile": 1009} | package innsending.postgres
import com.fasterxml.jackson.databind.ObjectMapper
import innsending.routes.Fil
import innsending.routes.Innsending
import innsending.routes.Logg
import innsending.routes.MineAapSoknad
import java.time.LocalDateTime
import java.util.*
import javax.sql.DataSource
enum class InnsendingType {... | 0 | Kotlin | 0 | 0 | 4617e324980113f3d2aa81350dfbc23d99c29f33 | 2,791 | aap-innsending | MIT License |
elytra-api/src/main/kotlin/io/elytra/api/world/generator/WorldGenerator.kt | Elytra-Server | 249,470,188 | false | null | package io.elytra.api.world.generator
import io.elytra.api.world.Chunk
import io.elytra.api.world.World
/**
* Generates and poplutes the world with custom chunk sections
*
* @see [Chunk]
*/
interface WorldGenerator {
fun generate(chunkX: Int, chunkY: Int, world: World): Chunk
}
| 15 | Kotlin | 5 | 56 | d998c0ee26c948ae1352f00158ac978145875e8e | 290 | Elytra | MIT License |
Conventions/Comparison/src/Task.kt | tigrannh | 394,054,588 | false | null | data class MyDate(val year: Int, val month: Int, val dayOfMonth: Int) : Comparable<MyDate> {
override fun compareTo(other: MyDate): Int {
if (year == other.year) {
if (month == other.month) {
return dayOfMonth - other.dayOfMonth
}
return month - other.mon... | 0 | Kotlin | 0 | 0 | ee2f96c386107245164bb5e05346c88d7e4b67b9 | 478 | Kotlin_Koans | MIT License |
app/src/main/java/software/ehsan/newsfeed/ui/common/MainActivity.kt | EhsanMashhadi | 587,488,394 | false | null | package software.ehsan.newsfeed.ui.common
import android.Manifest
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import androidx.activity.re... | 0 | Kotlin | 0 | 0 | 4eca40b718f31f58e63c3d5e0f5cce32ec41a372 | 6,960 | NewsFeed | Apache License 2.0 |
test/org/jetbrains/r/hints/parameterInfo/RInlayParameterHintsProviderTest.kt | JetBrains | 214,212,060 | false | {"Kotlin": 2849888, "Java": 814635, "R": 36890, "CSS": 23692, "Lex": 14307, "HTML": 10063, "Rez": 245, "Rebol": 64} | /*
* Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package org.jetbrains.r.hints.parameterInfo
import com.intellij.codeInsight.hints.getLanguageForSettingKey
import com.intellij.codeInsight.hints.settings.ParameterNameHin... | 2 | Kotlin | 8 | 62 | d8dedc6e9feb6f72f0545a10ed33aa6b597712de | 8,847 | Rplugin | Apache License 2.0 |
src/main/kotlin/com/sogoagain/relay/Application.kt | sogoagain | 741,693,658 | false | {"Kotlin": 18937} | package com.sogoagain.relay
import com.sogoagain.relay.dao.DatabaseConfig
import com.sogoagain.relay.dao.DatabaseSingleton
import com.sogoagain.relay.plugins.configureRouting
import com.sogoagain.relay.plugins.configureSockets
import io.ktor.server.application.*
import io.ktor.server.engine.*
import io.ktor.server.net... | 12 | Kotlin | 0 | 0 | ba7b948ba722c619ff5d9ed84590c07d6be11f06 | 848 | nostr-kt-relay | MIT License |
nanokt-android/src/main/java/com/conena/nanokt/android/util/LogUtils.kt | conena | 592,106,905 | false | {"Kotlin": 415799} | /*
* Copyright (C) 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 1 | Kotlin | 1 | 77 | 0f3315d5a2d9ba602f6a4ea9757d859bdb040a29 | 4,458 | nanokt | Apache License 2.0 |
app/src/main/java/com/example/cryptography/MainActivity.kt | emadabdalrahman | 476,863,370 | false | {"Kotlin": 39294} | package com.example.cryptography
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.crypto.Crypto
import com.example.crypto.EncryptedField
import com.example.crypto.PersonEncrypted
import com.example.crypto.wrapper.isCollectionOfPrimitive
class MainActivity : AppCompatActivity... | 0 | Kotlin | 0 | 0 | a87e46c20146106ad2a07c88f6ede038b758af45 | 483 | crypto | MIT License |
step3/backend/src/main/kotlin/br/com/zup/beagle/demo/widget/CustomText.kt | ayala-borba | 591,939,225 | false | null | package br.com.zup.beagle.demo.widget
import br.com.zup.beagle.annotation.RegisterWidget
import br.com.zup.beagle.widget.Widget
@RegisterWidget
class CustomText(name: String): Widget() {
val text = "Hello, $name!"
}
| 0 | Kotlin | 0 | 0 | 7805ef611cebc5035ea65740ec8c12c7ee0941fd | 222 | beagle-webinar | Apache License 2.0 |
app/src/main/java/com/example/fooddelivery/presentation/login/LoginViewModel.kt | spencer2k19 | 720,201,452 | false | {"Kotlin": 305089} | package com.example.fooddelivery.presentation.login
import android.util.Log
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.fooddelivery.common.PrefSingleton
import com.example.fooddeliv... | 0 | Kotlin | 0 | 2 | 7be246eba97aa90740952a8bd85dbeb3229c826b | 3,658 | Food-Delivery-Android | MIT License |
core/src/commonMain/kotlin/net/kigawa/mcsm/util/io/NotDirectoryException.kt | kigawa01 | 705,991,416 | false | {"Kotlin": 55629} | package net.kigawa.mcsm.util.io
class NotDirectoryException(message: String?) : IoException(message) {
} | 0 | Kotlin | 0 | 0 | be54e5bf71f456150d1952a3b98a93edc62456c6 | 105 | mcsm | MIT License |
core/common/src/main/java/com/teamwiney/core/common/di/AmplitudeProvider.kt | AdultOfNineteen | 639,481,288 | false | {"Kotlin": 870918} | package com.teamwiney.core.common.di
import android.content.Context
import com.amplitude.android.Amplitude
import com.amplitude.android.Configuration
import com.amplitude.android.DefaultTrackingOptions
import com.amplitude.android.utilities.AndroidLoggerProvider
import com.teamwiney.core.common.BuildConfig
object Amp... | 18 | Kotlin | 1 | 11 | d2f5ca4ea90bf4b2d72063cdeea7be012353a49f | 946 | WINEY-Android | MIT License |
deployer/src/main/kotlin/io/deepmedia/tools/deployer/DeployerExtension.kt | deepmedia | 248,277,150 | false | null | package io.deepmedia.tools.deployer
import io.deepmedia.tools.deployer.impl.DefaultDeploySpec
import io.deepmedia.tools.deployer.impl.GithubDeploySpec
import io.deepmedia.tools.deployer.impl.LocalDeploySpec
import io.deepmedia.tools.deployer.impl.SonatypeDeploySpec
import io.deepmedia.tools.deployer.model.*
import io.... | 0 | Kotlin | 5 | 50 | a4ce37a5fbc20aec36a9e3173f88a61901143a12 | 2,390 | MavenDeployer | Apache License 2.0 |
jvm/src/main/kotlin/io/prfxn/aoc2021/day03.kt | prfxn | 435,386,161 | false | {"Kotlin": 72820, "Python": 362} | // Binary Diagnostic (https://adventofcode.com/2021/day/3)
package io.prfxn.aoc2021
fun main() {
fun part1() {
val bitCounts = IntArray(12) { 0 }
var numLines = 0
textResourceReader("input/03.txt").useLines { lineSeq ->
for (line in lineSeq) {
for (i in line.... | 0 | Kotlin | 0 | 0 | 148938cab8656d3fbfdfe6c68256fa5ba3b47b90 | 2,955 | aoc2021 | MIT License |
src/main/kotlin/com/github/ricardoebbers/pricechecker/domain/enums/MoneyBill.kt | ricardoebbers | 280,894,379 | false | null | package com.github.ricardoebbers.pricechecker.domain.enums
enum class MoneyBill(val faceValue: Int, val localizedName: String) {
HUNDRED(100, "Cem"),
FIFTY(50, "Cinquenta"),
TWENTY(20, "Vinte"),
TEN(10, "Dez"),
FIVE(5, "Cinco"),
TWO(2, "Dois"),
ONE(1, "Um")
}
| 0 | Kotlin | 0 | 0 | 1ee43b647fc421f1dc5ccc1ed1f2dfa5b06aedf2 | 289 | fipe-price-checker | MIT License |
solar/src/main/java/com/chiksmedina/solar/boldduotone/arrows/RoundTransferVertical.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.boldduotone.arrows
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.Compan... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 3,683 | SolarIconSetAndroid | MIT License |
kotlin-react/src/main/kotlin/react/useImperativeHandle.kt | DevBeatDad | 430,038,785 | true | {"Kotlin": 1527853, "JavaScript": 528} | @file:JsModule("react")
@file:JsNonModule
package react
/**
* Available from 16.8
*
* Only works inside [fc]
* @see <a href="https://reactjs.org/docs/hooks-state.html#hooks-and-function-components">Hooks and Function Components</a>
*/
external fun useImperativeHandle(
ref: Ref<*>,
createInstance: () -> d... | 0 | null | 0 | 1 | 81e0e6bc20a59f63a12b433e5aa620c120ec649e | 362 | kotlin-wrappers | Apache License 2.0 |
data/RF03194/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF03194"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
1 to 4... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 2,997 | Rfam-for-RNArtist | MIT License |
weatherapp/app/src/main/kotlin/fr/ekito/myweatherapp/view/detail/DetailViewModel.kt | Ekito | 129,068,321 | false | null | package fr.ekito.myweatherapp.view.detail
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.MutableLiveData
import fr.ekito.myweatherapp.data.repository.WeatherRepository
import fr.ekito.myweatherapp.domain.DailyForecastModel
import fr.ekito.myweatherapp.util.mvvm.RxViewModel
import fr.ekito.myweath... | 0 | Kotlin | 6 | 60 | be37b060c9abe61717f26367e6957bd6e601dd64 | 1,188 | mvvm-coroutines | Creative Commons Attribution 4.0 International |
dbinspector/src/main/kotlin/com/infinum/dbinspector/domain/schema/trigger/usecases/DropTriggerUseCase.kt | brahmantya | 321,405,181 | false | null | package com.infinum.dbinspector.domain.schema.trigger.usecases
import com.infinum.dbinspector.domain.Repositories
import com.infinum.dbinspector.domain.UseCases
import com.infinum.dbinspector.domain.shared.models.Page
import com.infinum.dbinspector.domain.shared.models.Query
internal class DropTriggerUseCase(
pri... | 0 | Kotlin | 0 | 0 | 2faef15dacd9fb8d21e41cc5100b1a91c82b80d2 | 721 | P.MOBILE-TUGAS-MODUL10 | Apache License 2.0 |
core/src/jvmRxTest/kotlin/com/toxicbakery/kfinstatemachine/RxStateMachineTest.kt | morristech | 173,894,486 | true | {"Kotlin": 32683, "Java": 5946} | package com.toxicbakery.kfinstatemachine
import com.toxicbakery.kfinstatemachine.RxStateMachineTest.Energy.Kinetic
import com.toxicbakery.kfinstatemachine.RxStateMachineTest.Energy.Potential
import com.toxicbakery.kfinstatemachine.RxStateMachineTest.EnergyTransition.Release
import com.toxicbakery.kfinstatemachine.RxSt... | 0 | Kotlin | 0 | 0 | 9220112bcdf13f420c693f65dfa5df0c3e11cb63 | 1,462 | kfin-state-machine | Apache License 2.0 |
core/src/main/java/com/fightpandemics/data/model/login/LoginResponse.kt | KenMan79 | 323,451,363 | true | {"Kotlin": 93795} | package com.fightpandemics.data.model.login
data class LoginResponse(
val email: String,
val emailVerified: Boolean,
val token: String,
val user: Any
)
| 0 | null | 0 | 2 | c607c5f7d4c7d0bd156a72c9a67e8e278f179965 | 169 | FightPandemics-android | MIT License |
exposed-springboot-starter/src/test/kotlin/com/labijie/infra/orm/testing/tables/TestTable.kt | hongque-pro | 434,577,416 | false | {"Kotlin": 200561} | /**
* @author Anders Xiao
* @date 2024-10-01
*/
package com.labijie.infra.orm.testing.tables
import com.labijie.infra.orm.SimpleLongIdTable
object TestTable : SimpleLongIdTable("test") {
val name1 = varchar("name1", 32).index()
val name2 = varchar("name2", 32).index()
val delete = bool("deleted").index... | 0 | Kotlin | 1 | 3 | 703782ae426469a5e26b483319409fb41d93555b | 324 | infra-orm | Apache License 2.0 |
src/main/kotlin/org/megras/api/rest/handlers/KnnQueryHandler.kt | lucaro | 450,162,012 | false | {"Kotlin": 357029} | package org.megras.api.rest.handlers
import io.javalin.http.BadRequestResponse
import io.javalin.http.Context
import io.javalin.openapi.*
import org.megras.api.rest.PostRequestHandler
import org.megras.api.rest.RestErrorStatus
import org.megras.api.rest.data.ApiQuad
import org.megras.api.rest.data.ApiQueryResult
impor... | 2 | Kotlin | 4 | 0 | aa9bbc3704d56389ea159e5bca37ae1dfb628573 | 1,888 | MeGraS | MIT License |
platform/platform-tests/testSrc/com/intellij/ui/layout/UiDslTest.kt | requiem-projects | 128,367,227 | true | {"Java": 170098031, "Python": 25644239, "Kotlin": 6933124, "Groovy": 3572831, "HTML": 2125302, "C": 214523, "C++": 181437, "CSS": 172743, "Lex": 150801, "JavaScript": 148969, "XSLT": 113036, "Jupyter Notebook": 93222, "Shell": 60213, "NSIS": 58584, "Batchfile": 49961, "Objective-C": 47949, "Roff": 37497, "TeX": 25473, ... | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ui.layout
import com.intellij.openapi.application.invokeAndWaitIfNeed
import com.intellij.openapi.util.SystemInfoRt
import com.intellij.testFramework.Platfor... | 0 | Java | 0 | 0 | ba727d79f9e897ca2c9802834602abc4a70e4501 | 2,435 | intellij-community | Apache License 2.0 |
platform/platform-tests/testSrc/com/intellij/ui/layout/UiDslTest.kt | requiem-projects | 128,367,227 | true | {"Java": 170098031, "Python": 25644239, "Kotlin": 6933124, "Groovy": 3572831, "HTML": 2125302, "C": 214523, "C++": 181437, "CSS": 172743, "Lex": 150801, "JavaScript": 148969, "XSLT": 113036, "Jupyter Notebook": 93222, "Shell": 60213, "NSIS": 58584, "Batchfile": 49961, "Objective-C": 47949, "Roff": 37497, "TeX": 25473, ... | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ui.layout
import com.intellij.openapi.application.invokeAndWaitIfNeed
import com.intellij.openapi.util.SystemInfoRt
import com.intellij.testFramework.Platfor... | 0 | Java | 0 | 0 | ba727d79f9e897ca2c9802834602abc4a70e4501 | 2,435 | intellij-community | Apache License 2.0 |
src/main/kotlin/com/namics/oss/gradle/notification/tasks/NotifyTask.kt | merkle-open | 250,502,454 | false | null | package com.namics.oss.gradle.notification.tasks
import com.namics.oss.gradle.notification.Notification
import com.namics.oss.gradle.notification.collect.Collector
import com.namics.oss.gradle.notification.send.Sender
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.TaskA... | 0 | Kotlin | 1 | 1 | bd3c414ea83da61118adbe5341ca6bebc6414436 | 860 | gradle-notification-plugin | MIT License |
app/core/src/main/kotlin/net/averak/gsync/core/daterange/Dateline.kt | averak | 697,429,765 | false | {"Kotlin": 118988, "Groovy": 100615, "Java": 4456, "Makefile": 1201, "Dockerfile": 287} | package net.averak.gsync.core.daterange
import java.time.LocalDate
import java.time.LocalDateTime
import java.time.LocalTime
/**
* ゲーム内で日付が変更される境界線を表すオブジェクト (UTC)
* -12:00:00 から +12:00:00 までの値をとる
*
* 例) Dateline が 00:00:00 の場合
* UTC => 2000-01-01 00:00:00 ~ 2000-01-02 00:00:00
* JST => 2000-01-01 09:00:00 ~ 200... | 18 | Kotlin | 0 | 1 | 289aec33c894dc44f5c74b5b209ca024046ca4b7 | 2,282 | gsync | MIT License |
modules/feature/bars/impl/src/main/kotlin/kekmech/ru/feature_bars_impl/di/FeatureBarsModule.kt | tonykolomeytsev | 203,239,594 | false | {"Kotlin": 972736, "JavaScript": 9100, "Python": 2365, "Shell": 46} | package kekmech.ru.feature_bars_impl.di
import kekmech.ru.feature_bars_api.BarsFeatureLauncher
import kekmech.ru.feature_bars_api.presentation.navigation.BarsScreenApi
import kekmech.ru.feature_bars_impl.data.datasource.BarsConfigDataSource
import kekmech.ru.feature_bars_impl.data.datasource.BarsExtractJsDataSource
im... | 19 | Kotlin | 4 | 41 | 15c3c17e33d0ffffc0e269ad0cd6fe47b0bc971a | 1,625 | mpeiapp | MIT License |
src/year_2023/day_01/Day01Test.kt | scottschmitz | 572,656,097 | false | {"Kotlin": 195562} | package year_2023.day_01
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
internal class Day01Test {
private val sampleText1 = listOf(
"1abc2",
"pqr3stu8vwx",
"a1b2c3d4e5f",
"treb7uchet",
)
private val sampleText2 = listOf(
"two1nine",
... | 0 | Kotlin | 0 | 0 | 3b5f3a14273e540a5b35f3ab1bcadc7ce76ddc5a | 760 | advent_of_code | Apache License 2.0 |
demo/src/main/java/com/aliernfrog/toptoastdemo/enum/ToastMethod.kt | aliernfrog | 522,699,218 | false | {"Kotlin": 22272} | package com.aliernfrog.toptoastdemo.enum
import android.widget.Toast
import com.aliernfrog.toptoast.state.TopToastState
enum class ToastMethod(
val label: String,
val description: String,
val defaultDuration: Int,
val execute: (
topToastState: TopToastState,
text: Any,
icon: An... | 0 | Kotlin | 0 | 1 | 54c642bdf44fc7d6717f1d21052c969b01a1ffab | 1,806 | top-toast-compose | MIT License |
src/main/kotlin/no/liflig/example/LambdaHandler.kt | capralifecycle | 462,225,524 | false | {"Kotlin": 3671} | @file:Suppress("CanBeParameter")
package no.liflig.example
import com.amazonaws.services.lambda.runtime.events.SQSEvent
import mu.KotlinLogging
import net.logstash.logback.marker.Markers.append
private val log = KotlinLogging.logger {}
/**
* [LambdaHandler.handle] is the entrypoint for AWS Lambda.
*
* AWS calls ... | 3 | Kotlin | 0 | 0 | a509aa842e0f4b157026225d806eed981823b67e | 1,203 | liflig-lambda-template-kt | Apache License 2.0 |
src/main/kotlin/com/malinskiy/adam/request/emu/EmulatorCommandRequest.kt | Vacxe | 345,498,895 | true | {"Kotlin": 690853, "Shell": 1454} | /*
* Copyright (C) 2021 <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 ... | 0 | null | 0 | 0 | ea1c8dbec7fb8c6ef2722bf230937adc5d4aac66 | 4,590 | adam | Apache License 2.0 |
app/src/main/java/com/yogeshpaliyal/keypass/ui/backup/BackupActivity.kt | yogeshpaliyal | 334,702,754 | false | null | package com.yogeshpaliyal.keypass.ui.backup
import android.app.Activity
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompa... | 9 | null | 14 | 87 | 63a3e6e702b9cd28324cb6a8b06967ca3b456111 | 11,220 | KeyPass | MIT License |
app/src/main/java/org/researchstack/kotlinbackbonesampleapp/BackboneApplication.kt | CuriosityHealth | 140,972,964 | false | {"Kotlin": 39983} | package org.researchstack.kotlinbackbonesampleapp
import android.app.Application
import org.researchstack.backbone.StorageAccess
import org.researchstack.backbone.storage.database.AppDatabase
import org.researchstack.backbone.storage.database.sqlite.DatabaseHelper
import org.researchstack.backbone.storage.file.PinCode... | 0 | Kotlin | 0 | 0 | 3d41fce8abe852b5cb3bc3d0c937b8ae9f324341 | 1,016 | KotlinBackboneSampleApp | Apache License 2.0 |
src/main/kotlin/dev/nikomaru/lycoris_radiata/file/Config.kt | Nlkomaru | 698,647,879 | false | {"Kotlin": 6245} | package dev.nikomaru.lycoris_radiata.file
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import java.io.File
object Config {
lateinit var config: ConfigData
private val json = Json {
prettyPrint = true
encodeDefaults = true
}
fun load() {
... | 2 | Kotlin | 0 | 0 | 5566af637df0b2007bbaeb1cd8ccce593d77bdee | 765 | Lycoris_Radiata | Creative Commons Zero v1.0 Universal |
android/app/src/main/kotlin/com/example/expandable_listview_example/MainActivity.kt | femery10 | 385,488,447 | false | {"Dart": 58091, "HTML": 3734, "Ruby": 1352, "Swift": 1158, "Kotlin": 144, "Objective-C": 38} | package com.example.expandable_listview_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 8e3c3dfddd09b42f176c1676b8daf507c755de4d | 144 | Koena | MIT License |
buildSrc/src/main/kotlin/edu/cornell/cs/apl/nativetools/templates/GetMakefile.kt | apl-cornell | 292,114,999 | false | null | package edu.cornell.cs.apl.nativetools.templates
import java.nio.file.Path
import java.nio.file.Paths
/** Makefile for downloading library source code. */
internal val getMakefile = Makefile("get.mk") {
val submoduleCommands = run {
val commands = mutableListOf<String>()
val seenSubmodules = mutab... | 4 | Kotlin | 0 | 0 | cc631889a44a4802523f085727a1ac210c0dd667 | 1,331 | aby-java | MIT License |
dsl/testData/functional/design/ComplexListenerClassTest.kt | otomatik | 56,040,482 | true | {"Kotlin": 1006645, "Java": 31321, "HTML": 1646} | class __ViewGroup_OnHierarchyChangeListener : android.view.ViewGroup.OnHierarchyChangeListener {
private var _onChildViewAdded: ((android.view.View?, android.view.View?) -> Unit)? = null
private var _onChildViewRemoved: ((android.view.View?, android.view.View?) -> Unit)? = null
override fun onChildViewAdde... | 0 | Kotlin | 0 | 0 | c33e4dc0bfee9c289938002071d6c18ca055a696 | 2,048 | anko | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/Legal.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 5,367 | icons | MIT License |
kotlin-ring-ui/src/main/kotlin/ringui/ErrorBubble.kt | JetBrains | 93,250,841 | false | null | @file:JsModule("@jetbrains/ring-ui/components/error-bubble/error-bubble")
package ringui
import react.ComponentClass
import react.PropsWithChildren
import react.PropsWithClassName
external interface ErrorBubbleProps : PropsWithChildren, PropsWithClassName {
var error: String?
}
@JsName("default")
external val E... | 40 | Kotlin | 165 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 365 | kotlin-wrappers | Apache License 2.0 |
bot/src/main/java/com/dongtronic/diabot/data/redis/NightscoutUserDTO.kt | discord-diabetes | 151,116,011 | false | null | package com.dongtronic.diabot.data
import com.dongtronic.diabot.platforms.discord.commands.nightscout.NightscoutSetDisplayCommand
class NightscoutUserDTO {
var token: String? = null
var displayOptions: Array<String> = NightscoutSetDisplayCommand.enabledOptions
var avatarUrl: String? = null
set (va... | 18 | null | 14 | 19 | 8be95fd823503913f612978442c06ca8653afb5a | 415 | diabot | MIT License |
app/src/main/java/com/ziss/googlecalendarsyncapp/viewmodels/MainViewModel.kt | ziss11 | 726,768,461 | false | {"Kotlin": 7764} | package com.ziss.googlecalendarsyncapp.viewmodels
import androidx.lifecycle.ViewModel
class MainViewModel: ViewModel() {
} | 0 | Kotlin | 0 | 0 | 837d3fdad7e7491a333ab2c533260695c3f61fcd | 125 | calendar-event-app | MIT License |
app/src/main/java/com/application/archelon/repositories/SectorRepository.kt | danoc93 | 451,251,171 | false | {"Kotlin": 104143} | package com.application.archelon.repositories
import com.application.archelon.models.SimpleItem
/**
* SectorRepository
* This assumes they are all independent, this can alternatively be modeled per beach.
*/
object SectorRepository {
fun getAll(): List<SimpleItem> {
return listOf(
SimpleIt... | 0 | Kotlin | 0 | 0 | 682cacd8fa5280241e58cb68d8ad5c8df2f02ab8 | 410 | archelonpoc | MIT License |
app/src/main/java/org/p2p/wallet/send/ui/search/adapter/SearchErrorViewHolder.kt | p2p-org | 306,035,988 | false | null | package org.p2p.wallet.send.ui.search.adapter
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import org.p2p.wallet.R
import org.p2p.wallet.databinding.ItemSearchInvalidResultBinding
import org.p2p.wallet.send.model.SearchResult
import org.p2p.wallet.utils... | 9 | null | 18 | 34 | d091e18b7d88c936b7c6c627f4fec96bcf4a0356 | 3,025 | key-app-android | MIT License |
build-logic/convention/src/main/kotlin/io/github/shinhyo/brba/buildlogic/HiltAndroid.kt | shinhyo | 347,642,471 | false | {"Kotlin": 171169, "Shell": 587} | package io.github.shinhyo.brba.buildlogic
import org.gradle.api.Project
import org.gradle.kotlin.dsl.dependencies
internal fun Project.configureHiltAndroid() {
with(pluginManager) {
apply("com.google.devtools.ksp")
apply("dagger.hilt.android.plugin")
}
dependencies {
add("implemen... | 0 | Kotlin | 15 | 76 | 8f9c6abc813b778a16d2f93c0c3aa2e0666df1bd | 414 | Compose-BreakingBad | Apache License 2.0 |
app/src/main/java/com/yenaly/han1meviewer/UsingCautiously.kt | YenalyLiew | 524,046,895 | false | null | package com.yenaly.han1meviewer
/**
* 为什么有这个注解,因为有些地方我处理不好(比如某个变量只能在调用某函数之后使用),
* 我只能用这个注解提示大家不要随便用这个变量或者方法,
* 用在别处可能会引起空指针或者未初始化异常!
*
* 我肯定是希望没有任何变量或者方法加上这个注解,看自己以后的造化了。
*
* @project Han1meViewer
* @author <NAME>
* @time 2022/08/10 010 19:50
*/
annotation class UsingCautiously(
val message: String = EMP... | 0 | Kotlin | 3 | 71 | 7e84333d37871c1fee0ec262e697d65c1e68a409 | 332 | Han1meViewer | Apache License 2.0 |
app/src/main/java/net/uniquecomputer/lockqr/ColorAdapter.kt | sagardhadke | 658,268,045 | false | {"Kotlin": 57502, "HTML": 2244} | package net.uniquecomputer.lockqr
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import net.uniquecomputer.lockqr.databinding.ColorpaletteBinding
class ColorAdapter(val context: Context, private val colorsArrayList:Array... | 0 | Kotlin | 1 | 16 | 13cbeb2fab7ec09996dd034bcb61269f96a18bd0 | 1,007 | LockQR | Apache License 2.0 |
spring-boot/API cliente/src/main/kotlin/sptech/projetojpa1/dominio/Resposta.kt | kronos-agendamento | 758,290,087 | false | {"Kotlin": 63915, "HTML": 38487, "CSS": 23175, "JavaScript": 5155} | package sptech.projetojpa1.dominio
import jakarta.persistence.Entity
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import jakarta.persistence.Id
import jakarta.persistence.ManyToOne
@Entity
class Resposta(
// Código da resposta da ficha do usuário
@field:Id @field:Generat... | 0 | Kotlin | 0 | 2 | da76a7a92ffb706f2651c332ec98da9793cb8eca | 705 | projeto-teste | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.