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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
android/app/src/main/kotlin/org/frknkrc44/nekox_updater/MainActivity.kt | frknkrc44 | 333,892,591 | false | {"Dart": 16823, "Kotlin": 132} | package org.frknkrc44.nekox_updater
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 4 | 56624939c177271a74a90577680323699fe72d00 | 132 | nekox_updater | The Unlicense |
client/android/div/src/main/java/com/yandex/div/core/animation/EaseInterpolator.kt | divkit | 523,491,444 | false | {"Kotlin": 7327303, "Swift": 5164616, "Svelte": 1148832, "TypeScript": 912803, "Dart": 630920, "Python": 536031, "Java": 507940, "JavaScript": 152546, "CSS": 37870, "HTML": 23434, "C++": 20911, "CMake": 18677, "Shell": 8895, "PEG.js": 7210, "Ruby": 3723, "C": 1425, "Objective-C": 38} | package com.yandex.div.core.animation
/**
* Uses a lookup table for the Bezier curve from (0,0) to (1,1) with control points:
* P0 (0.0, 0.0)
* P1 (0.25, 0.1)
* P2 (0.25, 1.0)
* P3 (1.0, 1.0)
*/
internal class EaseInterpolator : LookupTableInterpolator(VALUES) {
private companion object {
private va... | 5 | Kotlin | 128 | 2,240 | dd102394ed7b240ace9eaef9228567f98e54d9cf | 2,519 | divkit | Apache License 2.0 |
app/network/src/main/java/com/pubnub/demo/telemedicine/initialization/data/ChannelGroup.kt | pubnub | 340,153,384 | false | null | package com.pubnub.demo.telemedicine.initialization.data
import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
@Keep
data class ChannelGroup(
@SerializedName("group")
val group: String,
@SerializedName("channels")
val channels: List<String> = listOf(),
)
| 0 | Kotlin | 3 | 9 | 0f8ebf2bd9e01507b0662f5ae9230fb3deb2d832 | 301 | kotlin-telemedicine-demo | MIT License |
android/src/main/java/com/rnmapbox/rnmbx/utils/LatLngBounds.kt | rnmapbox | 180,028,389 | false | {"Kotlin": 752850, "Swift": 462623, "TypeScript": 454914, "JavaScript": 335927, "Java": 131768, "Objective-C++": 120743, "Objective-C": 37244, "EJS": 24288, "Ruby": 13289, "C": 3203, "Starlark": 1328, "Shell": 446} | package com.mapbox.rctmgl.utils
import com.mapbox.geojson.Point
import com.mapbox.maps.CoordinateBounds
import com.mapbox.rctmgl.utils.LatLngBounds
class LatLngBounds internal constructor(
var latNorth: Double,
var lonEast: Double,
var latSouth: Double,
var lonWest: Double
) {
val southWest: LatLn... | 95 | Kotlin | 844 | 2,244 | f87653dc694e9478a4fda1d2e7585f22bc1b95cb | 918 | maps | MIT License |
config/spotless/copyright.kt | sarollahi | 327,908,585 | false | {"Kotlin": 450483} | /*
* Copyright (C) $YEAR <NAME>
* All rights reserved.
*/
| 0 | Kotlin | 0 | 0 | 17acb53f4ab51e40126fa3136f851eb8895074c2 | 62 | MovieBox-Kotlin | Apache License 2.0 |
core/core/src/jsMain/kotlin/zakadabar/core/browser/layout/zkScrollBarStyles.kt | spxbhuhb | 290,390,793 | false | {"Kotlin": 2390839, "HTML": 2835, "JavaScript": 1021, "Dockerfile": 269, "Shell": 253} | /*
* Copyright © 2020-2021, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package zakadabar.core.browser.layout
import zakadabar.core.resource.css.Display
import zakadabar.core.resource.css.ZkCssStyleSheet
import zakadabar.core.resource.css.cssStyleSheet
impo... | 12 | Kotlin | 3 | 24 | 00859b62570bf455addc9723015ba2c48b77028b | 1,402 | zakadabar-stack | Apache License 2.0 |
app/src/main/java/com/appsolute/pokedex/data/remote/dto/Type.kt | braveheart3208 | 638,147,646 | false | null | package com.appsolute.pokedex.data.remote.dto
data class Type(
val slot: Int,
val type: TypeX
) | 2 | Kotlin | 0 | 0 | d0e6e9ef6bda7570b4f745b155c89f5e5a80f970 | 104 | Pokedex | MIT License |
src/test/kotlin/com/github/marcospereira/Day5Specs.kt | francoiscampbell | 51,153,472 | true | {"Kotlin": 24344} | package com.github.marcospereira
import org.jetbrains.spek.api.*
import kotlin.test.assertTrue
import kotlin.test.assertFalse
class Day5Specs : Spek() {
init {
given("Word") {
listOf("aei", "xazegov", "aeiouaeiouaeiou").forEach { input ->
on("check vowels for $input") {
... | 0 | Kotlin | 1 | 0 | b075122ce138a477ed1a6ede9a9dc3aaa78fa7b6 | 1,695 | AdventOfCodeKotlin | MIT License |
benchmark/integration-tests/baselineprofile-library-consumer/src/main/java/androidx/benchmark/integration/baselineprofile/library/consumer/exclude/ExcludeClass.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2022 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 applica... | 29 | Kotlin | 1011 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 882 | androidx | Apache License 2.0 |
gui-app/src/main/kotlin/dev/robocode/tankroyale/gui/util/InetAddressUtil.kt | robocode-dev | 457,523,927 | false | {"Kotlin": 529081, "Java": 419155, "C#": 407446, "SCSS": 1367, "TypeScript": 1071, "Shell": 83} | package dev.robocode.tankroyale.gui.util
import java.net.InetAddress
import java.net.UnknownHostException
object InetAddressUtil {
fun isLocalAddress(nameOrIpAddr: String): Boolean {
return try {
val inetAddr = InetAddress.getByName(nameOrIpAddr)
inetAddr.isLoopbackAddress || inet... | 4 | Kotlin | 17 | 97 | a5e74e40b3d7eab271f77202754a133b2af48f25 | 456 | tank-royale | Apache License 2.0 |
core/persist/src/main/java/ru/redmadrobot/persist/di/RoomModule.kt | bigman212 | 270,478,713 | false | null | package ru.redmadrobot.persist.di
import android.content.Context
import androidx.room.Room
import dagger.Module
import dagger.Provides
import ru.redmadrobot.persist.AppDatabase
import ru.redmadrobot.persist.dao.FavoriteMovieDao
import ru.redmadrobot.persist.dao.FavoriteMovieWithGenreDao
import ru.redmadrobot.persist.d... | 0 | Kotlin | 0 | 2 | c747d8cc8af6e508628e2bed268715483d451ad3 | 1,145 | movie-app-android | Apache License 2.0 |
kotlin.web.demo.test/testData/execution/FooErr.kt | arrow-kt | 117,599,238 | true | {"Kotlin": 759728, "Java": 468940, "JavaScript": 379303, "CSS": 79321, "HTML": 14587, "Shell": 1029, "Dockerfile": 355} | fun main(args : Array<String>) {
System.err?.println("ERROR");
} | 2 | Kotlin | 2 | 7 | 7165d9568d725c9784a1e7525f35bab93241f292 | 68 | try.arrow-kt.io | Apache License 2.0 |
app/src/main/java/soup/nolan/ui/utils/Navigation.kt | NolanApp | 197,888,252 | false | null | package soup.nolan.ui.utils
import androidx.annotation.IdRes
import androidx.fragment.app.FragmentActivity
import androidx.navigation.fragment.NavHostFragment
fun FragmentActivity.findNavHostFragment(@IdRes viewId: Int): NavHostFragment {
return supportFragmentManager.findFragmentById(viewId) as NavHostFragment
}... | 1 | Kotlin | 2 | 9 | 1c7d166034e19ca5774cab43d14a425fdc6fe03e | 321 | Nolan-Android | Apache License 2.0 |
fluxo-io-rad/src/nonJvmMain/kotlin/fluxo/io/Closeable.nonJvm.kt | fluxo-kt | 817,028,889 | false | {"Kotlin": 182952, "Shell": 1015} | package fluxo.io
public actual typealias Closeable = AutoCloseable
| 8 | Kotlin | 0 | 4 | 716125c2e27be18be64a2ac05a501c4f91dc1fe1 | 68 | fluxo-io | Apache License 2.0 |
client/slack-api-client/src/main/kotlin/io/hndrs/slack/api/group/users/UsersInfoMethod.kt | hndrs | 168,710,332 | false | null | package io.hndrs.slack.api.group.users
import io.hndrs.slack.api.contract.jackson.group.users.ErrorInfoResponse
import io.hndrs.slack.api.contract.jackson.group.users.InfoRequest
import io.hndrs.slack.api.contract.jackson.group.users.SuccessfulInfoResponse
import io.hndrs.slack.api.group.ApiCallMethod
/**
* Abstract... | 57 | Kotlin | 13 | 16 | 89c5a6ddd0cbac522dd9cd4324901bf2907369a8 | 621 | slack-spring-boot-starter | MIT License |
Framework/src/main/kotlin/net/milosvasic/factory/application/server_factory/common/CommonServerFactoryConfiguration.kt | Server-Factory | 326,063,014 | true | {"Kotlin": 470923, "Shell": 188} | package net.milosvasic.factory.application.server_factory.common
import net.milosvasic.factory.EMPTY
import net.milosvasic.factory.configuration.Configuration
import net.milosvasic.factory.configuration.SoftwareConfiguration
import net.milosvasic.factory.configuration.definition.Definition
import net.milosvasic.factor... | 0 | Kotlin | 0 | 1 | 7c9a48ac22541c01d56cb7ed404348f9dbcf6d6d | 1,103 | Core-Framework | Apache License 2.0 |
core/usecases/src/test/kotlin/scene/character/ChangeCharacterArcSectionValueAndCoverInSceneTest.kt | Soyle-Productions | 239,407,827 | false | null | package com.soyle.stories.usecase.scene.character
import com.soyle.stories.domain.character.CharacterArc
import com.soyle.stories.domain.character.makeCharacter
import com.soyle.stories.domain.location.Location
import com.soyle.stories.domain.scene.Scene
import com.soyle.stories.domain.scene.makeScene
import com.soyle... | 45 | Kotlin | 0 | 9 | 1a110536865250dcd8d29270d003315062f2b032 | 8,417 | soyle-stories | Apache License 2.0 |
file-kache/src/jsMain/kotlin/com/mayakapps/kache/PlatformVariables.kt | MayakaApps | 409,369,586 | false | {"Kotlin": 193048, "Java": 155552} | package com.mayakapps.kache
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
internal actual fun getIODispatcher(): CoroutineDispatcher = Dispatchers.Default | 17 | Kotlin | 2 | 53 | 60bbb35d5cf034b6ffec4d794c69dd96ba46f220 | 194 | Kache | MIT License |
app/src/main/java/org/scottishtecharmy/soundscape/geojsonparser/geojson/Geometry.kt | Scottish-Tech-Army | 833,170,999 | false | {"Kotlin": 3492292, "C": 153623, "C++": 76956, "CMake": 2216, "Shell": 87} | package org.scottishtecharmy.soundscape.geojsonparser.geojson
import com.squareup.moshi.Json
import java.util.*
/**
* A Geometry object represents points, curves, and surfaces in
* coordinate space. Every Geometry object is a GeoJSON object no
* matter where it occurs in a GeoJSON text.
*
* o The valu... | 36 | Kotlin | 2 | 3 | 4a6b1edd4c680b22781c43f5194758544fd410d9 | 1,176 | Soundscape-Android | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/mediapackage/DashManifestPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.mediapackage
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration
@Generated
public fun buildDashManifestProperty(initializer: @AwsCdkDsl
CfnPackagi... | 1 | Kotlin | 0 | 0 | b22e397ff37c5fce365a5430790e5d83f0dd5a64 | 519 | aws-cdk-kt | Apache License 2.0 |
app/src/main/java/com/personal/weathering/weather/presenation/weather_details/components/PressureDetails.kt | Avvami | 702,061,643 | false | {"Kotlin": 473583} | package com.personal.weathering.weather.presenation.weather_details.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row... | 0 | Kotlin | 0 | 0 | fabd0313b1d8c20dec02b498a61886fa69bf9d5f | 4,088 | Weathering | MIT License |
app/src/main/java/com/personal/weathering/weather/presenation/weather_details/components/PressureDetails.kt | Avvami | 702,061,643 | false | {"Kotlin": 473583} | package com.personal.weathering.weather.presenation.weather_details.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row... | 0 | Kotlin | 0 | 0 | fabd0313b1d8c20dec02b498a61886fa69bf9d5f | 4,088 | Weathering | MIT License |
web/core/src/jsMain/kotlin/androidx/compose/web/elements/Elements.kt | LipeApp | 368,834,424 | true | {"Kotlin": 500760, "Dockerfile": 5716, "Shell": 4245, "PowerShell": 1708, "Groovy": 1415, "HTML": 434} | package androidx.compose.web.elements
import androidx.compose.runtime.Composable
import androidx.compose.runtime.ComposeNode
import androidx.compose.web.DomApplier
import androidx.compose.web.DomNodeWrapper
import androidx.compose.web.attributes.AttrsBuilder
import androidx.compose.web.attributes.InputType
import andr... | 0 | null | 0 | 0 | 6b9a7c49893b7bec02b53ca0fb93116c747edd11 | 17,146 | compose-jb | Apache License 2.0 |
ksmt-core/src/main/kotlin/io/ksmt/expr/rewrite/KExprSubstitutor.kt | UnitTestBot | 501,947,851 | false | {"Kotlin": 2667398, "C++": 97881, "Shell": 3660, "C": 3122, "CMake": 962} | package io.ksmt.expr.rewrite
import io.ksmt.KContext
import io.ksmt.decl.KDecl
import io.ksmt.decl.KFuncDecl
import io.ksmt.expr.KApp
import io.ksmt.expr.KArray2Lambda
import io.ksmt.expr.KArray3Lambda
import io.ksmt.expr.KArrayLambda
import io.ksmt.expr.KArrayNLambda
import io.ksmt.expr.KExistentialQuantifier
import ... | 10 | Kotlin | 12 | 29 | fdd016da62d0a543148f9ec7a4d5fd002c5cc317 | 7,130 | ksmt | Apache License 2.0 |
app/src/main/java/com/anioncode/gamevideodagger/main/mainActivity/viewModel/VideoViewModel.kt | Lukieoo | 271,757,832 | false | null | package com.anioncode.gamevideodagger.main.mainActivity.viewModel
import androidx.lifecycle.*
import com.anioncode.gamevideodagger.model.dataState.DataWithStates
import com.anioncode.gamevideodagger.model.popularModel.TopGames
import com.anioncode.gamevideodagger.network.AuthApi
import io.reactivex.schedulers.Schedule... | 0 | Kotlin | 0 | 0 | 80647926a0a7259094867f814544f1c1fc9263c2 | 1,981 | GameVideoDagger | MIT License |
data/src/main/kotlin/com/myapp/data/usecase/LoadSingleCalculation.kt | commandiron | 469,654,453 | false | {"Kotlin": 313466} | package com.myapp.data.usecase
import com.myapp.data.repo.MyRepo
import javax.inject.Inject
class LoadSingleCalculation @Inject constructor(
private val myRepo: MyRepo
) {
suspend operator fun invoke(id:String) = myRepo.loadSingleCalculation(id)
} | 0 | Kotlin | 1 | 3 | 25af3bea781c60aa6a11bda0e9b48fac4ae1230f | 258 | EstateFeasibilityDesktopApplication | Apache License 2.0 |
ActiveRecord/src/main/kotlin/com/severett/archunitdemo/activerecord/service/AccountService.kt | severn-everett | 619,418,662 | false | {"Kotlin": 62273} | package com.severett.archunitdemo.activerecord.service
import com.severett.archunitdemo.activerecord.model.domain.Account
import com.severett.archunitdemo.activerecord.model.domain.AccountType
import com.severett.archunitdemo.activerecord.model.dto.AccountDTO
import com.severett.archunitdemo.activerecord.model.dto.Cre... | 0 | Kotlin | 0 | 0 | e6cda75dd905ed880b07e4c0f8a9fee00a19fde3 | 2,019 | ArchUnitDemo | Apache License 2.0 |
backend/src/test/kotlin/fr/gouv/cacem/monitorenv/domain/use_cases/controlUnit/GetControlUnitContactByIdUTests.kt | MTES-MCT | 462,794,012 | false | {"TypeScript": 1358478, "Kotlin": 815514, "Python": 209694, "Shell": 21375, "CSS": 19997, "JavaScript": 8409, "Makefile": 8169, "Dockerfile": 6554, "PLpgSQL": 4966, "HTML": 864} | package fr.gouv.cacem.monitorenv.domain.use_cases.controlUnit
import com.nhaarman.mockitokotlin2.given
import fr.gouv.cacem.monitorenv.domain.entities.controlUnit.ControlUnitContactEntity
import fr.gouv.cacem.monitorenv.domain.entities.controlUnit.ControlUnitEntity
import fr.gouv.cacem.monitorenv.domain.repositories.I... | 190 | TypeScript | 1 | 3 | f755ce65909e473e564ff5e273b9b4930e82ad4d | 1,922 | monitorenv | MIT License |
doujin/src/main/java/com/kyawhut/atsycast/doujin/ui/card/CardPresenter.kt | kyawhtut-cu | 406,324,527 | false | null | package com.kyawhut.atsycast.doujin.ui.card
import android.content.Context
import com.google.gson.Gson
import com.kyawhut.atsycast.doujin.data.network.response.DoujinVideoResponse
import com.kyawhut.atsycast.share.base.BaseCardPresenter
import com.kyawhut.atsycast.share.base.BaseCardPresenterSelector
/**
* @author k... | 0 | Kotlin | 4 | 3 | 72d56fa28f5be7526f0a9848491ddd87cca3804d | 878 | atsy-cast | Apache License 2.0 |
auth/src/androidTest/kotlin/com/petersamokhin/vksdk/android/auth/VkAuthParamsInstrumentationTest.kt | vksdk | 259,439,063 | false | null | package com.petersamokhin.vksdk.android.auth
import org.junit.Assert.*
import org.junit.Test
class VkAuthParamsInstrumentationTest {
@Test
fun shouldCorrectlyBuildBundle() {
val params = VkAuth.AuthParams(
1, VkAuth.ResponseType.AccessToken, "offline", "https://oauth.vk.com/blank.html"
... | 0 | Kotlin | 1 | 8 | fa4b3f2998d1991050e5180d2a3edb5bb3ae286b | 1,398 | vk-sdk-android | MIT License |
app/src/main/java/workshop/akbolatss/tagsnews/screen/details/DetailsView.kt | iRYO400 | 101,170,143 | false | null | package workshop.akbolatss.tagsnews.screen.details
import workshop.akbolatss.tagsnews.base.BaseView
import workshop.akbolatss.tagsnews.model.dao.RssSource
/**
* MVP View for #DetailsView
* @see DetailsView
*/
interface DetailsView : BaseView {
fun onShare()
fun onShareVk()
fun onShareFb()
fun o... | 1 | Kotlin | 1 | 5 | 629a9c97f4870c9b4e5d2ec15336d8bf060f2b9b | 505 | TagsNews | Apache License 2.0 |
fsc/src/main/java/com/angcyo/bluetooth/fsc/laserpacker/command/FileModeCmd.kt | angcyo | 229,037,684 | false | null | package com.angcyo.bluetooth.fsc.laserpacker.command
import com.angcyo.bluetooth.fsc.laserpacker.LaserPeckerHelper
import com.angcyo.bluetooth.fsc.laserpacker.LaserPeckerHelper.PACKET_FILE_HEAD_SIZE
import com.angcyo.bluetooth.fsc.laserpacker.LaserPeckerHelper.checksum
import com.angcyo.library.ex.padHexString
import ... | 0 | Kotlin | 4 | 2 | 96a6ea873c8486a06525e752038ab2630b3c86ca | 1,818 | UICoreEx | MIT License |
src/main/kotlin/io/github/dockyardmc/runnables/AsyncTimedSequence.kt | DockyardMC | 650,731,309 | false | {"Kotlin": 655154, "Java": 112198} | package io.github.dockyardmc.runnables
import kotlin.time.Duration
import kotlin.time.DurationUnit
import kotlin.time.toDuration
fun timedSequenceAsync(unit: (AsyncTimedSequence) -> Unit) {
val runnable = AsyncRunnable {
unit.invoke(AsyncTimedSequence())
}
runnable.run()
}
class AsyncTimedSequ... | 4 | Kotlin | 3 | 39 | 21d2303ce96a2babed9ca0091c5372142dfb48d1 | 569 | Dockyard | MIT License |
orchestrator/rdfc-processor/src/main/kotlin/Arguments.kt | rdf-connect | 782,188,424 | false | {"Kotlin": 119278, "TypeScript": 35127, "Python": 21679, "Shell": 1021, "Ruby": 601, "Dockerfile": 423} | package technology.idlab.rdfc.processor
import kotlin.reflect.KProperty
import kotlin.reflect.full.isSubclassOf
import kotlin.reflect.full.isSuperclassOf
import kotlin.reflect.typeOf
data class Arguments(
val args: Map<String, List<Any>>,
) {
/**
* Get an argument in a type safe way. The type parameter, eith... | 13 | Kotlin | 0 | 1 | 5bd027413f54984938742c44aed6c3b09dfce403 | 2,232 | orchestrator | MIT License |
fatman/app/src/main/java/com/project/fat/fragment/bottomNavigationActivity/CalendarFragment.kt | UMC-Fat-Man | 665,170,583 | false | null | package com.project.fat.fragment.bottomNavigationActivity
import com.project.fat.databinding.FragmentCalendarBinding
import android.content.Context
import android.graphics.Color
import android.graphics.Typeface
import android.graphics.drawable.Drawable
import android.os.Build
import android.os.Bundle
import android.te... | 3 | Kotlin | 0 | 0 | d285ffbf9ff3e913e386157b2eaa4e916616ca96 | 6,954 | FatMan-Android | Apache License 2.0 |
ui/ui-api/src/main/kotlin/me/ddevil/shiroi/ui/api/event/UIClickEvent.kt | BrunoSilvaFreire | 88,535,533 | false | {"Gradle": 15, "Markdown": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Kotlin": 187, "INI": 1, "Java": 1, "YAML": 3} | package me.ddevil.shiroi.ui.api.event
import me.ddevil.shiroi.ui.api.UIPosition
import me.ddevil.shiroi.ui.api.component.Clickable
import org.bukkit.Bukkit
import org.bukkit.block.Block
import org.bukkit.entity.Player
import org.bukkit.event.Event
import org.bukkit.event.HandlerList
/**
*
*/
class UIClickEvent(val... | 2 | null | 1 | 1 | 5060ef1b811a3fe5d86e2b3498f6814239dce6d2 | 891 | ShiroiFramework | Do What The F*ck You Want To Public License |
src/main/kotlin/org/rust/ide/wordSelection/RsBlockSelectionHandler.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.wordSelection
import com.intellij.codeInsight.editorActions.ExtendWordSelectionHandlerBase
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.util.TextRange
import com.int... | 1,841 | null | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 1,553 | intellij-rust | MIT License |
src/main/kotlin/frc/team449/robot2023/auto/AutoConstants.kt | blair-robot-project | 589,121,499 | false | null | package frc.team449.robot2023.auto
import edu.wpi.first.math.geometry.Translation2d
import kotlin.math.PI
object AutoConstants {
/** PID gains */
const val DEFAULT_X_KP = 1.9
const val DEFAULT_Y_KP = 1.9
const val DEFAULT_ROTATION_KP = 1.4
const val ORBIT_KP = 2 * PI
val RED_WALL_DOUBLE = Translation2d(0... | 0 | Kotlin | 1 | 2 | e7b9a8acd742ddea80e0c440292c442ddb3719ba | 852 | robot2023 | MIT License |
modules/kgpu/src/jvmMain/kotlin/io/github/kgpu/JvmWindow.kt | sh54 | 337,487,892 | true | {"Java": 197990, "Kotlin": 146205, "C": 79922} | package io.github.kgpu
import io.github.kgpu.wgpuj.WgpuJava
import io.github.kgpu.wgpuj.jni.WgpuPresentMode
import io.github.kgpu.wgpuj.jni.WgpuSwapChainDescriptor
import io.github.kgpu.wgpuj.util.Platform
import java.nio.IntBuffer
import org.lwjgl.glfw.*
import org.lwjgl.system.MemoryStack
import org.lwjgl.system.Mem... | 0 | null | 0 | 0 | e73635f0987ea5f31dc0818400a7a17aa91066d9 | 9,062 | kgpu | MIT License |
core/database/internal/src/test/java/com/wakeupgetapp/database/internal/currencycalculator/testdoubles/TestDoubleCustomExchangeDao.kt | wakeupgetapp | 805,482,568 | false | {"Kotlin": 197375} | package com.wakeupgetapp.database.internal.currencycalculator.testdoubles
import com.wakeupgetapp.core.database.internal.dao.CustomExchangeDao
import com.wakeupgetapp.core.database.internal.model.CustomExchangeEntity
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.cor... | 0 | Kotlin | 0 | 0 | a4e6dfe2f106b54faf62e06b6dc655e4575e9eb2 | 1,385 | CurrencyCalculator | Apache License 2.0 |
airback-web/src/main/java/com/airback/module/project/view/ticket/ITicketKanbanPresenter.kt | mng222n | 246,276,311 | false | null | package com.airback.module.project.view.ticket
import com.airback.vaadin.mvp.IPresenter
/**
* @author airback Ltd
* @since 6.0.0
*/
interface ITicketKanbanPresenter: IPresenter<TicketKanbanBoardView> | 9 | null | 1 | 1 | 782b1ac49b343d8c497d3dae5be3eb812d151772 | 204 | airback | MIT License |
src/main/kotlin/dev/minn/jda/ktx/interactions/buttons.kt | CyberFlameGO | 427,340,696 | true | {"Kotlin": 65197} | /*
* Copyright 2020 Florian Spieß
*
* 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 | 1223d5cbb8a8caac6d28799a36001f1844d7aa7d | 3,309 | jda-ktx | Apache License 2.0 |
app/src/main/java/tech/salroid/filmy/data/local/db/entity/MovieDetails.kt | salRoid | 64,316,425 | false | null | package tech.salroid.filmy.data.local.db.entity
import androidx.room.Entity
import com.google.gson.annotations.SerializedName
import tech.salroid.filmy.data.local.model.*
import tech.salroid.filmy.data.local.model.Collection
@Entity(tableName = "movie_details", primaryKeys = ["id", "type"])
data class MovieDetails(
... | 1 | Kotlin | 180 | 733 | c6ac0c3b47964e552b8d44a0b586e1ce3b418a9a | 2,357 | Filmy | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/quicksight/FilterOperationPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.quicksight
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.quicksight.CfnDataSet
@Generated
public fun buildFilterOperationProperty(initializer: @AwsCdkDsl
CfnDataSet.FilterOperation... | 1 | Kotlin | 0 | 0 | e9a0ff020b0db2b99e176059efdb124bf822d754 | 463 | aws-cdk-kt | Apache License 2.0 |
.legacy/app/src/main/java/com/makentoshe/booruchan/screen/posts/view/PostPageUiMessage.kt | Makentoshe | 147,361,920 | false | null | package com.makentoshe.booruchan.screen.posts.view
import android.view.Gravity
import com.makentoshe.booruchan.R
import org.jetbrains.anko.*
class PostPageUiMessage : AnkoComponent<_RelativeLayout> {
override fun createView(ui: AnkoContext<_RelativeLayout>) = with(ui.owner) {
textView {
id = R... | 0 | Kotlin | 1 | 6 | d0f40fb8011967e212df1f21beb43e4c4ec03356 | 447 | Booruchan | Apache License 2.0 |
common/src/test/kotlin/io/mockk/impl/recording/states/RecordingStateTest.kt | hendisantika | 115,266,439 | true | {"Gradle": 18, "YAML": 2, "INI": 1, "Text": 2, "Ignore List": 1, "Markdown": 2, "Shell": 1, "HTML": 3, "SVG": 4, "Kotlin": 123, "Maven POM": 3, "XML": 1, "Java": 22, "SCSS": 1} | package io.mockk.impl.recording.states
import io.mockk.Runs
import io.mockk.impl.every
import io.mockk.impl.mockk
import io.mockk.impl.recording.CommonCallRecorder
import io.mockk.impl.verify
import kotlin.test.BeforeTest
import kotlin.test.Test
class RecordingStateTest {
lateinit var recorder: CommonCallRecorder... | 0 | Kotlin | 1 | 0 | c611ccf87f78708ba439bacf1111525a58d9647e | 1,495 | mockk | Apache License 2.0 |
jps-plugin/testData/incremental/classHierarchyAffected/propertyNullabilityChanged/useAChild.kt | JakeWharton | 99,388,807 | true | null | package foo
fun useAChild(a: AChild) {
val o: Any = a.x
} | 179 | Kotlin | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 62 | kotlin | Apache License 2.0 |
lib-kotlinmvvm/src/main/java/com/mtjsoft/www/kotlinmvputils/utils/AndShowTimerUtils.kt | mtjsoft | 291,952,943 | false | null | package com.mtjsoft.www.kotlinmvputils.utils
import android.os.CountDownTimer
import android.widget.TextView
import com.mtjsoft.www.kotlinmvputils.R
class AndShowTimerUtils {
/**
* @param view 显示倒计时textView
*/
fun showTimer(view: TextView, time: Int) {
object : CountDownTimer((time * 10... | 1 | Kotlin | 1 | 4 | 9d0e8e70bbcad1f506fb848e3faf684ebe8b0a19 | 1,074 | LibKM | Apache License 2.0 |
ultimate/testData/inspections/spring/finalSpringAnnotatedDeclaration/test.kt | gigliovale | 89,726,097 | false | {"Java": 23302590, "Kotlin": 21941511, "JavaScript": 137521, "Protocol Buffer": 56992, "HTML": 49980, "Lex": 18051, "Groovy": 14093, "ANTLR": 9797, "IDL": 7706, "Shell": 5152, "CSS": 4679, "Batchfile": 3721} |
// WITH_RUNTIME
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.Configuration
import org.springframework.stereotype.Component
import org.springframework.transaction.annotation.Transactional
@Configuration
ann... | 0 | Java | 4 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 1,601 | kotlin | Apache License 2.0 |
data/src/test/java/com/nicoqueijo/android/data/DataStoreManagerTest.kt | nicoqueijo | 794,591,762 | false | {"Kotlin": 267182} | package com.nicoqueijo.android.data
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import com.nicoqueijo.android.core.TimeProvider
import io.kotest.matchers.booleans.shouldBeFalse
import io.kotest.matchers.booleans.shouldBeTrue
import io.kotest.matchers.shouldBe
import ... | 1 | Kotlin | 1 | 13 | f1755a0e0d3d80525b35bfa40cc4e6f4bb8de935 | 8,357 | Android-Currency-Converter | Apache License 2.0 |
code/testutils/src/main/java/com/adobe/marketing/mobile/util/JSONAsserts.kt | adobe | 706,036,703 | false | {"Kotlin": 223681, "Java": 59296, "Shell": 3706, "Makefile": 2043} | /*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you 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 la... | 0 | Kotlin | 2 | 0 | a4991045da7a15ecb5ce7dad5f728a817584b028 | 44,016 | aepsdk-testutils-android | Apache License 2.0 |
dynmap/src/main/kotlin/com/demonwav/dynmapsponge/util/SpongeHelper.kt | DenWav | 69,329,407 | false | null | /*
* DynmapSponge
*
* Copyright 2016 <NAME> (DemonWav)
*
* 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 appl... | 1 | null | 1 | 3 | 358f122f237b52949a77f63116c95d9f0953c3fe | 2,164 | DynmapSponge | Apache License 2.0 |
common/src/test/kotlin/io/konform/validation/ValidationResultTest.kt | oripwk | 132,151,349 | true | {"Kotlin": 49800} | package io.konform.validation
import io.konform.validation.jsonschema.maxLength
import io.konform.validation.jsonschema.maximum
import io.konform.validation.jsonschema.minLength
import io.konform.validation.jsonschema.minimum
import kotlin.test.Test
import kotlin.test.assertTrue
class ValidationResultTest {
@Tes... | 0 | Kotlin | 0 | 0 | f95a89a4eb125f61516665f28a0f22f5e22e6f18 | 997 | konform | MIT License |
src/main/kotlin/de/jensklingenberg/folders2kt/ast/Expression.kt | Foso | 437,616,631 | false | {"Kotlin": 16644} | package de.jensklingenberg.folders2kt.ast
open class CompareExpr(
private val leftExpr: Expression,
private val rightExpr: Expression,
private val keyword: String
) : Expression() {
override fun toString(): String = "$leftExpr$keyword$rightExpr"
}
class GtExpr(leftExpr: Expression, rightExpr: Express... | 2 | Kotlin | 0 | 31 | fa66e25980d3784806b81157b795692344af5213 | 1,666 | Folders2kt | Apache License 2.0 |
compose/src/main/kotlin/com/yourssu/handy/compose/icons/line/ShoppingCart.kt | yourssu | 829,346,569 | false | {"Kotlin": 368030} | package com.yourssu.handy.compose.icons.line
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.vector.ImageVector
import com.yourssu.handy.compose.icons.HandyIcons
import com.yourssu.handy.compose.icons.handyIcon
import com.yourssu.handy.compose.icons.handyPath
private var _shopping... | 4 | Kotlin | 0 | 5 | d769cab58b4cf63cd0b901d20a3ea8e65ec99bdc | 2,997 | Handy-Android | MIT License |
src/test/kotlin/com/dotori/v2/util/AuthDataUtil.kt | Team-Ampersand | 569,110,809 | false | {"Kotlin": 421826, "Shell": 827} | package com.dotori.v2.util
import com.dotori.v2.domain.auth.domain.entity.RefreshToken
import com.dotori.v2.domain.auth.presentation.data.dto.SignInGAuthDto
import com.dotori.v2.domain.auth.presentation.data.req.SignInGAuthReqDto
import com.dotori.v2.domain.auth.presentation.data.res.SignInResDto
import com.dotori.v2.... | 6 | Kotlin | 3 | 15 | 6647b1f03ae7424af188d0003ad7025f992dca11 | 1,137 | Dotori-server-V2 | Apache License 2.0 |
lib/comparison-tests/src/test/kotlin/bankaccount/event/ManualClassesLookLikeGenerated.kt | holixon | 713,986,002 | false | {"Kotlin": 168650, "Shell": 2466} | package bankaccount.event
import bankaccount.command.CreateBankAccount
import bankaccount.command.DepositMoney
import bankaccount.command.WithdrawMoney
import io.toolisticon.kotlin.avro.serialization.AvroKotlinSerialization
import org.assertj.core.api.Assertions.assertThat
import org.javamoney.moneta.Money
import org.... | 17 | Kotlin | 0 | 6 | fcdf7663d2149bd50470f0289df5970c55f2c29f | 1,171 | axon-avro | Apache License 2.0 |
solar/src/main/java/com/chiksmedina/solar/outline/messagesconversation/PaperclipRounded.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.outline.messagesconversation
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.StrokeJ... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 5,007 | SolarIconSetAndroid | MIT License |
aoc-2015/src/test/kotlin/nl/jstege/adventofcode/aoc2015/days/Day19Test.kt | JStege1206 | 92,714,900 | false | null | package nl.jstege.adventofcode.aoc2015.days
import nl.jstege.adventofcode.aoccommon.utils.DayTester
/**
* Test for Day19
* @author <NAME>
*/
class Day19Test : DayTester(Day19()) | 0 | Kotlin | 0 | 0 | d48f7f98c4c5c59e2a2dfff42a68ac2a78b1e025 | 182 | AdventOfCode | MIT License |
android-app/app/src/main/java/arun/com/chromer/settings/RxPreferences.kt | Efreak | 435,082,649 | false | null | package arun.com.chromer.settings
import arun.com.chromer.search.provider.SearchProviders
import arun.com.chromer.settings.Preferences.*
import com.afollestad.rxkprefs.RxkPrefs
import javax.inject.Inject
const val SEARCH_ENGINE_PREFERENCE = "search_engine_preference"
const val NATIVE_BUBBLES_PREFERENCE = "native_bubb... | 0 | null | 0 | 1 | 8ae744e51849a961059517fa50f6c5fd5e580fd9 | 810 | lynket-browser | Condor Public License v1.1 |
app/src/main/java/eu/kanade/domain/category/interactor/SetDisplayModeForCategory.kt | datreesezcup | 355,654,262 | true | {"Kotlin": 2359406} | package eu.kanade.domain.category.interactor
import eu.kanade.domain.category.model.Category
import eu.kanade.domain.category.model.CategoryUpdate
import eu.kanade.domain.category.repository.CategoryRepository
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
import eu.kanade.tachiyomi.ui.library.setting.Li... | 0 | Kotlin | 2 | 0 | ddd180e56aef69380b1da3137dca8aed590b68e1 | 1,223 | tachiyomi | Apache License 2.0 |
core/src/main/kotlin/com/krake/core/fetcher/manager/PoolPreFetchManager.kt | LaserSrl | 165,023,586 | false | {"Gradle": 23, "Text": 3, "INI": 20, "Java Properties": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "XML": 512, "JSON": 4, "Java": 163, "Kotlin": 393, "Proguard": 2, "Groovy": 2} | package com.krake.core.fetcher.manager
import android.util.ArrayMap
import com.krake.core.fetcher.content.FetchableContent
import com.krake.core.fetcher.observer.PreFetchObserver
import com.krake.core.thread.AsyncTask
import com.krake.core.thread.async
/**
* Implementation of [PreFetchManager] used to launch the pre... | 1 | null | 1 | 1 | 51b97524ff72273227d029faf06acbef0f2699f8 | 2,926 | KrakeAndroid | Apache License 2.0 |
src/main/java/info/movito/themoviedbapi/model/people/Person.kt | afterroot | 515,607,935 | true | {"INI": 2, "Proguard": 1, "Shell": 1, "EditorConfig": 1, "Markdown": 3, "JSON": 3, "Git Attributes": 1, "Batchfile": 1, "Text": 1, "Gradle": 1, "Ignore List": 1, "Java": 72, "Kotlin": 67, "XML": 1, "YAML": 2} | /*
* Copyright (c) 2014, Holger Brandl
* All rights reserved.
*/
package info.movito.themoviedbapi.model.people
import com.fasterxml.jackson.annotation.JsonProperty
import info.movito.themoviedbapi.model.core.NamedIdElement
open class Person : NamedIdElement() {
@JsonProperty("cast_id")
var castId = 0
... | 10 | Java | 0 | 0 | acd954ac3cc211193bda4d90addd22deb672cc4c | 780 | themoviedbapi | BSD 2-Clause with views sentence |
app/src/main/java/com/openwallet/playerframe/impl/AndroidPlayer.kt | hsbc | 742,467,592 | false | {"Kotlin": 502702, "Java": 40426} | package com.openwallet.playerframe.impl
import android.media.MediaPlayer
import android.net.Uri
import android.view.Surface
import com.openwallet.app.OpenWalletApplication
import com.openwallet.constants.HEADER_TOKEN_START
import com.openwallet.manager.CacheManager
import com.openwallet.playerframe.bean.PlayerParams
i... | 0 | Kotlin | 0 | 1 | b72ac403ce1e38139ab42548967e08e6db347ddd | 2,519 | OpenWallet-aOS | Apache License 2.0 |
src/main/kotlin/org/yinwang/pysonar/ast/Block.kt | lice-lang | 110,064,855 | false | {"Gradle": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Java Properties": 1, "Java": 57, "Python": 24, "CSS": 1, "JavaScript": 2, "Kotlin": 55, "JSON": 10} | package org.yinwang.pysonar.ast
class Block(var seq: List<Node>, file: String, start: Int, end: Int) : Node(NodeType.BLOCK, file, start, end) {
init {
addChildren(seq)
}
override fun toString() = "(block:$seq)"
}
| 1 | null | 1 | 1 | 1f8fd89c13d96919391887fbb5399ed6aba51f72 | 220 | pysonar2 | BSD Zero Clause License |
MainActivity.kt | RuthvikSaiKumar | 418,080,137 | false | null | package com.example.diceroller
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(sav... | 0 | Kotlin | 0 | 0 | 34fbd07383731af3de474ba50a1526a16f7beecf | 697 | Dice-Roller-android-app | MIT License |
samples/app/unsplash-client/src/main/java/com/badoo/ribs/example/logged_in_container/routing/LoggedInContainerChildBuilders.kt | badoo | 170,855,556 | false | null | package com.badoo.ribs.example.logged_in_container.routing
import com.badoo.ribs.example.feed_container.FeedContainer
import com.badoo.ribs.example.feed_container.FeedContainerBuilder
import com.badoo.ribs.example.logged_in_container.LoggedInContainer
import com.badoo.ribs.example.photo_details.PhotoDetails
import com... | 34 | null | 50 | 162 | cec2ca936ed17ddd7720b4b7f8fca4ce12033a89 | 1,149 | RIBs | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/quickfix/typeImports/noImportFromTheSameFile.kt | JetBrains | 2,489,216 | false | null | // "Specify type explicitly" "true"
class A() {}
class B() {
public val <caret>a = A()
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.SpecifyTypeExplicitlyIntention
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.intentions.SpecifyTypeExplicitlyIntention | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 292 | intellij-community | Apache License 2.0 |
wanandroid/src/main/java/com/lyl/wanandroid/ui/fragment/first/main/MainArticleItemDataSouce.kt | laiyuling424 | 145,495,250 | false | null | package com.lyl.wanandroid.ui.fragment.first.main
import androidx.paging.ItemKeyedDataSource
import com.lyl.wanandroid.http.ApiServer
import com.lyl.wanandroid.ui.base.ExecuteOnceObserver
import com.lyl.wanandroid.util.MyLog
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedu... | 1 | null | 2 | 5 | 8c8d10aa48546f0a66f0a466990e3b2f886b011c | 1,959 | lylproject | MIT License |
webserver/src/main/kotlin/cz/vutbr/fit/knot/enticing/webserver/service/IndexServerConnector.kt | d-kozak | 180,137,313 | false | {"Kotlin": 1104829, "TypeScript": 477922, "Python": 23617, "Shell": 19609, "HTML": 8510, "ANTLR": 2005, "CSS": 1432} | package cz.vutbr.fit.knot.enticing.webserver.service
import cz.vutbr.fit.knot.enticing.api.ComponentNotAccessibleException
import cz.vutbr.fit.knot.enticing.dto.CorpusFormat
import cz.vutbr.fit.knot.enticing.dto.IndexServer
import cz.vutbr.fit.knot.enticing.dto.SnippetExtension
import cz.vutbr.fit.knot.enticing.dto.W... | 0 | Kotlin | 0 | 0 | 1ea9f874c6d2e4ea158e20bbf672fc45bcb4a561 | 3,790 | enticing | MIT License |
composeApp/src/desktopMain/kotlin/main.kt | alexey-odintsov | 750,521,193 | false | {"Kotlin": 425172} | import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.MenuBar
import androidx.compose.ui.window.Window
import androidx.compose.ui.windo... | 5 | Kotlin | 0 | 2 | d0fb70262ce67689c3950b3e21a59123331061ed | 8,672 | DLTStudio | MIT License |
ktor-client/ktor-client-cio/jvm/src/io/ktor/client/engine/cio/Endpoint.kt | RuiDTLima | 181,769,977 | true | {"Kotlin": 2537833, "Lua": 280, "HTML": 112} | package io.ktor.client.engine.cio
import io.ktor.client.features.websocket.*
import io.ktor.client.request.*
import io.ktor.client.response.*
import io.ktor.http.*
import io.ktor.http.cio.*
import io.ktor.http.cio.websocket.*
import io.ktor.network.sockets.*
import io.ktor.network.sockets.Socket
import io.ktor.network... | 0 | Kotlin | 0 | 1 | 95b5b3b15c7b3b7a59f57aaf3baaa8076d05f195 | 7,596 | ktor | Apache License 2.0 |
kzen-auto-common/src/commonMain/kotlin/tech/kzen/auto/common/paradigm/task/model/TaskState.kt | alexoooo | 131,353,826 | false | null | package tech.kzen.auto.common.paradigm.task.model
enum class TaskState {
Running,
FinishedOrFailed,
Cancelled
} | 1 | Kotlin | 1 | 1 | a80d76d9f562180911e1034cd56ef2683e8c3de0 | 125 | kzen-auto | MIT License |
src/jsMain/kotlin/com/renegademaster/content/ProjectList.kt | Renegade-Master | 450,948,358 | false | {"Kotlin": 56351, "HTML": 846} | /*
* Copyright 2023 Renegade-Master [<EMAIL>]
*
* 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... | 3 | Kotlin | 0 | 1 | d43cff7e1e4c8a1c7da3226c8630a96f10765a32 | 5,922 | renegade-master.github.io | Apache License 2.0 |
apollo-compiler/src/main/kotlin/com/apollographql/android/compiler/ResponseFieldMapperBuilder.kt | TicketSwap | 78,544,987 | false | null | package com.apollostack.compiler
import com.apollostack.api.graphql.ResponseFieldMapper
import com.apollostack.api.graphql.ResponseReader
import com.apollostack.compiler.ir.Field
import com.apollostack.compiler.ir.InlineFragment
import com.apollostack.compiler.ir.TypeDeclaration
import com.squareup.javapoet.*
import j... | 1 | null | 1 | 1 | 08e2556d0b6843d657e1754eb2428846326e464e | 11,956 | apollo-android | MIT License |
serve-app/student/src/main/java/org/evidyaloka/student/worker/ContentWorkerBuilder.kt | Sunbird-Serve | 607,662,046 | false | null | package org.evidyaloka.student.worker
import android.content.Context
import androidx.work.*
import org.evidyaloka.core.Constants.StudentConst
object ContentWorkerBuilder {
fun createOneTimeWorkRequest(appContext: Context, inputData: Data) {
val constraints = Constraints.Builder()
.setRequired... | 0 | Kotlin | 1 | 0 | 6d8d170333e2d32c808e608863e02e076dc06a73 | 1,080 | serve-beta-android-app | MIT License |
app/src/main/java/com/example/jetpackcompose/di/ReposSourceModule.kt | aamir046 | 870,063,012 | false | {"Kotlin": 66894} | package com.example.jetpackcompose.di
import com.example.jetpackcompose.data.repository.addnote.AddNotesIRepoSource
import com.example.jetpackcompose.data.repository.addnote.AddNotesIRepoSourceImpl
import com.example.jetpackcompose.data.repository.noteshome.NotesHomeIRepoSource
import com.example.jetpackcompose.data.r... | 0 | Kotlin | 0 | 0 | 2007034894fdce4fe8e23ba2e9880e37e01ae228 | 1,041 | JetapckCompose-sample-notes-app | MIT License |
client/src/main/java/nl/altindag/client/service/Http4kApache5AsyncHttpClientService.kt | Hakky54 | 157,111,668 | false | null | package nl.altindag.client.service
import nl.altindag.client.ClientType
import nl.altindag.client.ClientType.HTTP4K_APACHE5_ASYNC_HTTP_CLIENT
import nl.altindag.ssl.SSLFactory
import nl.altindag.ssl.util.Apache5SslUtils
import org.apache.hc.client5.http.impl.async.HttpAsyncClients
import org.apache.hc.client5.http.imp... | 0 | null | 88 | 259 | ca34a84fc4d6cd62fc675ec148e52d1fedd800ff | 1,192 | mutual-tls-ssl | Apache License 2.0 |
app/src/main/java/app/newproj/lbrytv/data/dto/ClaimResolveRequest.kt | bgshacklett | 448,629,512 | false | {"Kotlin": 220861, "Java": 4984} | package app.newproj.lbrytv.data.dto
import com.google.gson.annotations.SerializedName
/**
* Represents a request to resolve claims.
*/
data class ClaimResolveRequest(
/**
* One or more urls to resolve.
*/
@SerializedName("urls")
val urls: List<String>,
/**
* Wallet to check for claim... | 0 | null | 3 | 0 | 2f01cb775b821e3541e48db09cafafc4d8e5feea | 1,578 | lbry-androidtv | MIT License |
app/src/main/java/com/argon/launcher/util/slidingpanel/SlidingPanelLayout.kt | amkrys | 810,272,675 | false | {"Kotlin": 131433, "Java": 33506} | package com.argon.launcher.util.slidingpanel
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.PixelFormat
import android.graphics.Rect
import android.graphics.drawable.Drawable
import android.os.Bundle
import andr... | 0 | Kotlin | 0 | 0 | e99587dea79d1bbc848a406a1543d15114ee7533 | 49,475 | Argon-Launcher | MIT License |
transcriber/transcriber-224/transcriber-224-base/src/main/kotlin/net/rsprox/transcriber/base/BaseTranscriber.kt | blurite | 822,339,098 | false | {"Kotlin": 3146983} | package net.rsprox.transcriber.base
import net.rsprot.protocol.Prot
import net.rsprox.cache.api.Cache
import net.rsprox.cache.api.CacheProvider
import net.rsprox.protocol.game.outgoing.decoder.prot.GameServerProt
import net.rsprox.shared.SessionMonitor
import net.rsprox.shared.filters.PropertyFilterSetStore
import net... | 8 | Kotlin | 8 | 22 | 2d2abf0ee0cd9e9e985cececead2235d88655c26 | 2,939 | rsprox | MIT License |
src/main/kotlin/datastructures/ArrayListImpl.kt | AgentKnopf | 240,955,745 | false | null | package datastructures
import java.lang.IndexOutOfBoundsException
/**
* Implementation of an array list using a resizable array.
*
* Lookup time: O(1)
*
* Note: resizing happens so rarely that the O(n) resize operation can be ignored.
*/
internal class ArrayListImpl<T> {
var array = arrayOfNulls<Any>(16)
... | 0 | Kotlin | 1 | 0 | 2d483c4239ae8128106ab41ed2f12a5a8c91865f | 2,431 | technical-interview | MIT License |
Ponto-Inteligente/src/main/kotlin/com/smart/point/repositories/FuncionarioRepository.kt | carloshenriquefs | 454,995,899 | false | null | package com.smart.point.repositories
import com.smart.point.documents.Funcionario
import org.springframework.data.mongodb.repository.MongoRepository
interface FuncionarioRepository : MongoRepository<Funcionario, String> {
fun findByEmail(email: String): Funcionario?
fun findByCpf(cpf: String): Funcionario?
... | 0 | Kotlin | 0 | 0 | 601a4f4b6a7b09ed8845fadafce347ab9d991b88 | 321 | API-Restful-com-Spring-Boot-Kotlin-e-MongoDb | MIT License |
app/src/main/java/com/barkote/travel/MainActivity.kt | barkotenicholas | 504,913,596 | false | {"Kotlin": 14911} | package com.barkote.travel
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.navigation.NavController
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.setupWithNavController
import com.barkote.trav... | 0 | Kotlin | 0 | 0 | 5bb1e9256c3d034be4e31172d1c47d943f54ca92 | 1,198 | travel | MIT License |
src/main/kotlin/com/kylelaker/jmuparking/implexample/gui/Gui.kt | kylelaker | 70,152,730 | false | null | package com.kylelaker.jmuparking.implexample.gui
import com.kylelaker.jmuparking.ParsingService
import com.kylelaker.jmuparking.implexample.PARKING_DECK.*
import com.kylelaker.jmuparking.implexample.outputString
import javafx.application.Application
import javafx.application.Platform
import javafx.scene.Scene
import j... | 0 | Kotlin | 0 | 0 | ee7b7763d79a6f0a0bb7be0aa59d31a4a5962ee2 | 2,187 | JMU_Parking_Parser | MIT License |
core/model/src/main/java/com/tmdb/core/model/fakeData/MovieDetailFakeData.kt | ductam1987 | 670,563,569 | false | null | package com.tmdb.core.model.fakeData
import com.tmdb.core.model.db.DbMovieDetail
import com.tmdb.core.model.network.Genre
import com.tmdb.core.model.network.MovieDetail
import com.tmdb.core.model.network.ProductCountries
import com.tmdb.core.model.network.SpokenLanguages
/**
* Created by <NAME> on 24/07/2023.
*/
va... | 0 | Kotlin | 0 | 7 | 4f1e0f9fcd2afe18e3e9415c04c0b20b0daf13f1 | 4,110 | TMDB-Compose-Koin-UDF | Apache License 2.0 |
src/main/kotlin/no/stunor/origo/eventorapi/model/calendar/CalendarTeamStart.kt | stunor92 | 763,985,971 | false | {"Kotlin": 202336, "Dockerfile": 595} | package no.stunor.origo.eventorapi.model.calendar
import com.google.cloud.Timestamp
import no.stunor.origo.eventorapi.model.event.EventClass
import java.io.Serializable
data class CalendarTeamStart(
var teamName: String = "",
var startTime: Timestamp? = null,
var bib: String? = null,
v... | 0 | Kotlin | 0 | 0 | 316f69c3489f6e59c505ee10bc1ef0eb539358b8 | 404 | OriGo-EventorApi | MIT License |
src/main/kotlin/org/vlang/vmod/hints/VmodCodeVisionLanguageContext.kt | vlang | 754,996,747 | false | {"Kotlin": 1615945, "V": 249868, "Lex": 20355, "HTML": 6211} | package org.vlang.vmod.hints
import com.intellij.codeInsight.hints.VcsCodeVisionLanguageContext
import com.intellij.openapi.editor.Editor
import com.intellij.psi.PsiElement
import org.vlang.lang.vmod.psi.VmodModuleDeclaration
import java.awt.event.MouseEvent
@Suppress("UnstableApiUsage")
class VmodCodeVisionLanguageC... | 3 | Kotlin | 5 | 20 | 06919856e6518102b03e7e985c2a63fa59ef4181 | 540 | intellij-v | MIT License |
ackpine-core/src/main/kotlin/ru/solrudev/ackpine/session/ProgressSession.kt | solrudev | 641,599,463 | false | null | /*
* 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... | 0 | null | 2 | 9 | 1b89e923c075ca086829b23f6e60c32a61db849b | 1,584 | Ackpine | Apache License 2.0 |
TopsortAnalytics/src/main/java/com/topsort/analytics/core/RandomGenerator.kt | Topsort | 653,343,101 | false | {"Kotlin": 92137, "Java": 3855} | package com.topsort.analytics.core
fun randomId(prefix : String = "", size : Int = 32): String {
val allowedCharacters = ('a'..'z') + ('A'..'Z') + ('0'..'9')
val rand = List(size) { allowedCharacters.random() }.joinToString("")
return "${prefix}${rand}"
}
| 1 | Kotlin | 0 | 1 | 708a0eec31b8ec523d218d17392a5d9483b022e6 | 271 | topsort.kt | MIT License |
app/src/main/java/com/example/test/logic/network/Receive.kt | jlp-sudo | 289,405,204 | false | null | package com.example.test.logic.network
import java.net.DatagramPacket
import java.net.DatagramSocket
object Receive {
fun receive():String {
val ds= DatagramSocket()
val bytes = ByteArray(1024)
val dp=DatagramPacket(bytes,bytes.size)
ds.receive(dp)
val address=dp.address
... | 0 | Kotlin | 0 | 0 | 4747cb6a80dc357f779a13ad0261a9d638884e50 | 441 | Test | Apache License 2.0 |
linecorp-core/src/main/java/com/linecorp/android/di/module/SharedModule.kt | nphausg | 305,101,466 | false | {"Kotlin": 81513, "Java": 287, "Shell": 50} | package com.linecorp.android.di.module
import androidx.lifecycle.ViewModelProvider
import com.linecorp.android.di.ViewModelFactory
import dagger.Binds
import dagger.Module
@Module(includes = [SchedulerModule::class])
interface SharedModule {
@Binds
fun bindViewModelFactory(factory: ViewModelFactory): ViewMode... | 0 | Kotlin | 0 | 0 | 01d41352342320fbded85d25bc3ecdfb90cbdad4 | 340 | android.interview.line | Apache License 2.0 |
parser/src/main/kotlin/org/ksharp/parser/Lexer.kt | ksharp-lang | 573,931,056 | false | {"Kotlin": 1401679, "Java": 47060, "TypeScript": 3203} | package org.ksharp.parser
import org.ksharp.common.Line
import org.ksharp.common.Offset
import org.ksharp.common.Position
import org.ksharp.common.annotation.Mutable
import org.ksharp.common.cast
import java.io.Reader
typealias TokenFactory<V> = Lexer<V>.(c: Char) -> LexerToken?
typealias TokenLexerIterator<S> = Lexe... | 4 | Kotlin | 0 | 0 | 9358cc100b4b29af81888f2668f0e8304614dc9f | 4,476 | ksharp-kt | Apache License 2.0 |
services/shellexecutor/java/androidx/test/services/shellexecutor/Messages.kt | android | 41,148,494 | false | null | /*
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 316 | null | 309 | 1,152 | 67fa7cb12b9a14dc790b75947f4241c3063e80dc | 5,047 | android-test | Apache License 2.0 |
app/src/main/java/com/example/firstapp/UpdateNoteActivity.kt | FHacKKer | 803,162,787 | false | {"Kotlin": 14033} | package com.example.firstapp
import android.os.Bundle
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import com.example.firstapp.databinding.ActivityUpdateNoteBinding
class UpdateNoteActivity : AppCompatActivity() {
private lateinit var bindi... | 0 | Kotlin | 0 | 0 | b5e92268bdb6e4a559893510f625ac1ff6370b13 | 1,834 | Note-App-Android | MIT License |
src/main/kotlin/hi/dottt/epicbingothing/EpicBingoThing.kt | dotPast | 875,361,070 | false | {"Kotlin": 23055} | package hi.dottt.epicbingothing
import com.noxcrew.interfaces.InterfacesListeners
import dev.asodesu.origami.engine.Origami
import org.bukkit.plugin.java.JavaPlugin
class EpicBingoThing : JavaPlugin() {
override fun onEnable() {
Origami.init(this)
InterfacesListeners.install(this)
}
} | 0 | Kotlin | 0 | 1 | aa3341f0e833bd946dd53be5c1bf3684e27fad50 | 293 | epicbingothing | MIT License |
scripts/src/main/kotlin/scripts/release/util.kt | JetBrains | 1,459,486 | false | null | /*
* Copyright 2003-2023 The IdeaVim authors
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE.txt file or at
* https://opensource.org/licenses/MIT.
*/
package scripts.release
import com.vdurmont.semver4j.Semver
import org.eclipse.jgit.api.Git
import org.eclipse.... | 9 | null | 717 | 8,239 | 1faae92f3363027337c2d520b234d8a825dbc1de | 2,811 | ideavim | MIT License |
feature/estimate/src/main/java/earth/darkwhite/feature/estimate/EstimateViewModel.kt | darkwhite220 | 733,589,658 | false | {"Kotlin": 422473} | package earth.darkwhite.feature.estimate
import android.util.Log
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.core.text.isDigitsOnly
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import da... | 0 | Kotlin | 0 | 1 | 67d33911c9681f99d6a74bff18b0d4b595d5d610 | 4,650 | AlgeriaBillsOnline | The Unlicense |
source-code/starter-project/app/src/main/java/com/droidcon/easyinvoice/data/utils/DecimalNumberUtils.kt | droidcon-academy | 731,477,787 | false | {"Kotlin": 413294} | package com.droidcon.easyinvoice.data.utils
import java.math.RoundingMode
import java.text.DecimalFormat
fun roundDouble(number: Double): Double {
val decimalNumber = DecimalFormat("#.##")
decimalNumber.roundingMode = RoundingMode.CEILING
return decimalNumber.format(number).toDouble()
} | 0 | Kotlin | 0 | 0 | ce943998fb00f7df6e83465c75abde4e6c7e542f | 301 | android-cbc-db-inspector-debugging | Apache License 2.0 |
app/src/main/java/id/slava/nt/cabifymobilechallengeapp/data/remote/dt_object/ProductsDto.kt | Stan-Balabushevich | 797,407,345 | false | {"Kotlin": 76378, "Java": 11100} | package id.slava.nt.cabifymobilechallengeapp.data.remote.dt_object
import com.google.gson.annotations.SerializedName
import id.slava.nt.cabifymobilechallengeapp.data.local.database.db_object.ProductEntity
data class ProductsDto(
@SerializedName("products")
val products: List<ProductDto>
)
data class ProductD... | 0 | Kotlin | 0 | 0 | 5d86b0860893da90789cbc3311458be43c43baad | 625 | Cabify_Mobile_Challenge_App | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.