path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/martinchamarro/filmgoer/data/entity/RatingEntity.kt | xaman | 185,247,465 | false | null | package com.martinchamarro.filmgoer.data.entity
import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
@Keep
data class RatingEntity(
@SerializedName("Source") val source: String?,
@SerializedName("Value") val value: String?) | 0 | Kotlin | 0 | 0 | 1c4e69faa06d8dc2f46d5759df94996b5c506b56 | 270 | Filmgoer | Apache License 2.0 |
access-checkout/src/test/java/com/worldpay/access/checkout/validation/listeners/focus/PanFocusChangeListenerTest.kt | Worldpay | 186,591,910 | false | null | package com.worldpay.access.checkout.validation.listeners.focus
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.verify
import com.nhaarman.mockitokotlin2.verifyZeroInteractions
import com.worldpay.access.checkout.validation.result.handler.PanValidationResultHandler
import org.junit.Before
im... | 0 | Kotlin | 0 | 8 | 5d465cdc1803be9cc08e7fad3d55c6c9d95b920f | 1,033 | access-checkout-android | MIT License |
app/src/main/java/de/schwerin/stoppCoronaDE/screens/questionnaire/epoxy/QuestionnaireAnswerModel.kt | Mandarin-Medien | 269,321,452 | false | null | package de.schwerin.stoppCoronaDE.screens.questionnaire.epoxy
import android.widget.RadioButton
import de.schwerin.stoppCoronaDE.R
import de.schwerin.stoppCoronaDE.model.entities.configuration.Decision
import de.schwerin.stoppCoronaDE.skeleton.core.screens.base.view.BaseEpoxyHolder
import de.schwerin.stoppCoronaDE.ske... | 0 | Kotlin | 0 | 1 | a8a489c25b55cce8b14d60b9afa3fb44cfecab43 | 1,714 | stopp-corona-de-android | Apache License 2.0 |
app/src/main/java/com/example/matchmentor/repository/MentorProfileService.kt | RodrigoJrDev | 795,927,508 | false | {"Kotlin": 44434} | package com.example.matchmentor.repository
import com.example.matchmentor.model.MentorProfile
import retrofit2.Call
import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.PUT
import retrofit2.http.Multipart
import re... | 0 | Kotlin | 0 | 0 | 0e59a878805c88e9ea1c22846e4775c2f7a8cac7 | 958 | MatchMentor | MIT License |
io/retrofit2/src/test/kotlin/io/bluetape4k/retrofit2/client/vertx/VertxHttpClientTest.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.retrofit2.client.vertx
import io.bluetape4k.logging.KLogging
import io.bluetape4k.retrofit2.client.AbstractClientTest
import io.bluetape4k.retrofit2.clients.vertx.vertxCallFactoryOf
import okhttp3.Call
class VertxHttpClientTest: AbstractClientTest() {
companion object: KLogging()
overr... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 380 | bluetape4k | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsbookavideolinkapi/service/BookingFacadeTest.kt | ministryofjustice | 789,053,149 | false | {"Kotlin": 224702, "Dockerfile": 1486, "Shell": 1007} | package uk.gov.justice.digital.hmpps.hmppsbookavideolinkapi.service
import org.junit.jupiter.api.Test
import org.mockito.kotlin.doReturn
import org.mockito.kotlin.mock
import org.mockito.kotlin.verify
import org.mockito.kotlin.whenever
import uk.gov.justice.digital.hmpps.hmppsbookavideolinkapi.config.EmailService
impo... | 2 | Kotlin | 0 | 0 | 23225353e4706ceb3366109227a872db718996c4 | 1,983 | hmpps-book-a-video-link-api | MIT License |
talos/android/src/main/kotlin/network/chainmetric/talos/controllers/EventSocket.kt | nulltea | 332,248,270 | false | {"Dart": 335017, "Go": 10588, "Kotlin": 10305, "Makefile": 2718, "Ruby": 990, "Swift": 904, "Objective-C": 650} | package network.chainmetric.talos.controllers
import io.flutter.plugin.common.EventChannel
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import plugins.Plugins
class EventSocketHandler(private val sdk: fabric.SDK) ... | 0 | Dart | 4 | 11 | 8fcaae5030219b920d6578f9fd1703c05c52f63b | 2,340 | chainmetric-app | Apache License 2.0 |
app/src/main/java/com/apps/fullandroidcourseclassd/firebasefirestoreapp/model/ProfileDetails.kt | madahetooo | 559,866,425 | false | {"Kotlin": 78600} | package com.apps.fullandroidcourseclassd.firebasefirestoreapp.model
data class ProfileDetails(
var firstName: String = "",
var lastName: String = "",
var age: Int = 0,
) {
} | 0 | Kotlin | 0 | 1 | effdf4a3df84c0db50f4a844a3f7c84fab0f5e6d | 185 | AndroidClassD | Apache License 2.0 |
backend/common-web/src/main/kotlin/io/featurehub/health/MetricsHealthRegistration.kt | nashjain | 427,612,281 | true | {"Dart": 807678, "Java": 590572, "TypeScript": 405372, "Groovy": 245705, "Kotlin": 134946, "Gherkin": 76789, "Shell": 10214, "JavaScript": 4738, "TSQL": 4373, "Dockerfile": 3036, "C#": 1519, "HTML": 616} | package io.featurehub.health
import cd.connect.jersey.common.JerseyPrometheusResource
import io.featurehub.jersey.FeatureHubJerseyHost
import io.featurehub.utils.FallbackPropertyConfig
import io.prometheus.client.hotspot.DefaultExports
import org.glassfish.hk2.api.ServiceLocator
import org.glassfish.jersey.internal.in... | 5 | null | 0 | 0 | d0dd173a814bf1184a7aa671f49b669701e91314 | 2,727 | featurehub | Apache License 2.0 |
tests/fixtures/kotlin_project/example.kt | helixbass | 644,891,933 | false | {"Rust": 197298} | interface InterfaceB {
val barA: Int
}
| 15 | Rust | 0 | 1 | 851554e0c4d844d193c5099608d1d6e0258c77fe | 43 | tree-sitter-grep | The Unlicense |
domain/src/main/java/com/semicolon/domain/usecase/friend/FetchFriendsUseCase.kt | shake-it-shake | 473,043,498 | false | {"Kotlin": 158886} | package com.semicolon.domain.usecase.friend
import com.semicolon.domain.repository.FriendRepository
import javax.inject.Inject
class FetchFriendsUseCase @Inject constructor(
private val friendRepository: FriendRepository
) {
suspend fun execute() =
friendRepository.fetchFriends()
} | 0 | Kotlin | 0 | 4 | 6c8c7278bc7839514f414086eef7509c4fca8b8c | 300 | shake-it-android | MIT License |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/InputType.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 142794926} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.stepfunctions
public enum class InputType(
private val cdkObject: software.amazon.awscdk.services.s... | 0 | Kotlin | 0 | 4 | 03c839612cc64a7e205ffe2cf8c03927d0bafcdd | 971 | kotlin-cdk-wrapper | Apache License 2.0 |
shared/src/commonMain/kotlin/ru/akella/cryptocoin/ktor/DogApi.kt | booblemax | 626,108,800 | false | null | package ru.akella.cryptocoin.ktor
import ru.akella.cryptocoin.response.BreedResult
interface DogApi {
suspend fun getJsonFromApi(): BreedResult
}
| 0 | Kotlin | 0 | 0 | 44bbe5994c486ed7694e5879541f20dbe99109a3 | 152 | CryptoCoin | Apache License 2.0 |
kotest-framework/kotest-framework-engine/src/commonMain/kotlin/io/kotest/engine/spec/interceptor/interceptors.kt | comahe-de | 423,253,927 | true | {"Kotlin": 3297666, "CSS": 352, "Java": 145} | package io.kotest.engine.spec.interceptor
import io.kotest.core.spec.Spec
import io.kotest.core.spec.SpecRef
import io.kotest.core.test.TestCase
import io.kotest.core.test.TestResult
/**
* Interceptors that are executed before a spec is instantiated.
*/
internal interface SpecRefInterceptor {
suspend fun interce... | 0 | null | 0 | 0 | 3a03d74521d406ff8e3ebc82285e34511812f973 | 656 | kotest | Apache License 2.0 |
feature-weighbridge-create/src/test/java/android/template/feature/weighbridge/create/ui/UpdateWeighbridgeViewModelTest.kt | yoviekaputra | 814,553,696 | false | {"Kotlin": 128604, "Shell": 3210} | /*
* Copyright (C) 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 app... | 0 | Kotlin | 0 | 0 | 32e109b73a25a7a611ed9c2fac528f8e027eeded | 5,817 | truck_weighbridge_app | Apache License 2.0 |
selectable-dynamic-table/src/main/java/dev/fazelx/selectable_dynamic_table/listeners/TableSelectStatusChangeListener.kt | FazelX | 595,753,316 | false | null | /*
*Copyright 2023 <NAME>
*
*Licensed under the Apache License, Version 2.0 (the "License");
*you may not use this file except in compliance with the License.
*You may obtain a copy of the License at
*
*http://www.apache.org/licenses/LICENSE-2.0
*
*Unless required by applicable law or agreed to in writing, software
*di... | 0 | Kotlin | 0 | 2 | e0110447a5d36c9dfd92be0fe27996f4abfbe365 | 1,513 | selectable-dynamic-table | Apache License 2.0 |
app/src/main/java/com/iammert/readablebottombar/MainActivity.kt | qijaz221 | 204,246,315 | true | {"Kotlin": 18204} | package com.iammert.readablebottombar
import android.graphics.Color
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.iammert.library.readablebottombar.BottomBarItem
import com.iammert.library.readablebottombar.ReadableBottomBar
class MainActivity : AppCompatActivity() {
overrid... | 0 | Kotlin | 0 | 0 | 278083f2b4f7f43485772dde0ae38c6a73763ea5 | 892 | ReadableBottomBar | Apache License 2.0 |
app/src/main/kotlin/template/core/data/repository/NbaRepository.kt | spekus | 862,202,989 | false | {"Kotlin": 84881} | package template.core.data.repository
import kotlinx.coroutines.flow.Flow
import template.core.common.result.Result
import template.core.model.Game
import template.core.model.Player
import template.core.model.Team
interface NbaRepository {
fun getTeams(): Flow<Result<List<Team>>>
fun getGames(teamId: Int): Fl... | 0 | Kotlin | 0 | 0 | d2fd5e83441f54192dc059215486e38372f40506 | 408 | NBA | Apache License 2.0 |
src/com/ncorti/aoc2023/Day04.kt | cortinico | 723,409,155 | false | {"Kotlin": 76642} | package com.ncorti.aoc2023
data class ScratchCard(val winningNumbers: List<Int>, val playerNumbers: List<Int>, var count: Int = 1) {
companion object {
fun from(input: String) = ScratchCard(
winningNumbers = input.substringAfter(":").substringBefore("|").split(" ").filter(String::isNotBlank)
... | 3 | Kotlin | 0 | 2 | c187eec664e0cedd66c87c9af7f8df87fe97aa74 | 1,555 | adventofcode-2023 | MIT License |
src/test/kotlin/hu/advent/of/code/year2015/day6/Puzzle6ATest.kt | sztojkatamas | 568,512,275 | false | {"Kotlin": 143687} | package hu.advent.of.code.year2015.day6
import hu.advent.of.code.year2015.day6.Puzzle6A
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
import kotlin.test.assertTrue
import kotlin.test.assertFalse
class Puzzle6ATest {
@Test
fun `Some basic test`() {
val puzzle6A = Puzzle6A()
... | 0 | Kotlin | 0 | 0 | d9a3993378c8dcf5f5ae797fbd88fa6a5cdf4125 | 1,247 | advent-of-code-universe | MIT License |
math-helpers/src/test/kotlin/io/ducommun/collections/mathHelpers/IntMathTest.kt | MarkDucommun | 96,490,546 | false | null | package io.ducommun.collections.mathHelpers
import org.assertj.core.api.KotlinAssertions.assertThat
import org.junit.Test
class IntMathTest {
@Test
fun `can transform numbers - byte to byte`() {
val start: Byte = 1
val end: Byte = start.asType()
assertThat(end).isEqualTo(1.toByte())
... | 0 | Kotlin | 0 | 0 | 44315c214f7301e1a3e994059d1c708eb9d829c5 | 7,377 | collections | MIT License |
commons-ktx/src/main/java/com/paulrybitskyi/commons/ktx/WindowExtensions.kt | mars885 | 285,931,745 | false | null | /*
* Copyright 2020 <NAME>, <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 by applicable law or agreed... | 0 | Kotlin | 0 | 8 | 99ffc28fc0089beab09fcc7fa9a0c7dc2ec320a9 | 1,422 | android-commons | Apache License 2.0 |
osiris-core/src/main/java/com/trendyol/osiris/EventBuilder.kt | Trendyol | 363,866,880 | false | null | package com.trendyol.osiris
interface EventBuilder {
fun build(): List<Event<EventData>>
}
| 0 | Kotlin | 2 | 15 | e6d0995c05a7267bbbdd5162fc7acc516efeaf39 | 97 | Osiris | Apache License 2.0 |
libraries/database/src/androidTest/java/com/chesire/nekome/database/dao/SeriesDaoTests.kt | rmwthorne | 330,431,997 | true | {"Kotlin": 497025, "Ruby": 7928, "JavaScript": 64} | package com.chesire.nekome.database.dao
import androidx.room.Room
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import com.chesire.nekome.core.flags.SeriesStatus
import com.chesire.nekome.core.flags.SeriesType
import com.chesire.nekome.core.flags.Subtype... | 0 | null | 0 | 0 | 88a808b7ad4131f298cffbd9de21e2c9aa085093 | 4,943 | Nekome | Apache License 2.0 |
eip155/src/main/java/org/kethereum/eip155/EIP155.kt | jim-spa | 119,239,943 | true | {"Kotlin": 188352} | package org.kethereum.eip155
import org.kethereum.model.SignatureData
/*
*
* https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md
*
*/
/**
* extracts the ChainID from SignatureData v
*
* @return ChainID or null when not EIP155 signed
*
*/
fun SignatureData.extractChainID() = if (v < 37) { // not EIP 15... | 0 | Kotlin | 0 | 1 | 62c31ff39ee1211a06ab6dc17fba9974cde28797 | 366 | kethereum | MIT License |
app/src/main/java/com/renaro/iseeyou/home/HomeView.kt | renaro | 110,175,345 | false | null | package com.renaro.iseeyou.home
import com.renaro.iseeyou.model.Reimbursement
/**
* Created by renarosantos1 on 11/11/17.
*/
interface HomeView{
fun getSelectedMonth() : String
fun getSelectedQuota() : String
fun showReimbursements(reimbursements: Array<Reimbursement>)
fun showLoading()
fun hi... | 0 | Kotlin | 0 | 1 | e6c4c0d2d8cf4a14525591e0fc416ab66331206f | 396 | iseeyou | MIT License |
protocol/kotlin/src/solarxr_protocol/rpc/HeightRequest.kt | SlimeVR | 456,320,520 | false | {"Rust": 790111, "Java": 650829, "TypeScript": 507384, "C++": 434772, "Kotlin": 356034, "PowerShell": 959, "Shell": 910, "Nix": 587} | // automatically generated by the FlatBuffers compiler, do not modify
package solarxr_protocol.rpc
import java.nio.*
import kotlin.math.sign
import com.google.flatbuffers.*
@Suppress("unused")
class HeightRequest : Table() {
fun __init(_i: Int, _bb: ByteBuffer) {
__reset(_i, _bb)
}
fun __assign... | 11 | Rust | 20 | 19 | 60f3146f914e2a9e35d759a8146be213e715d6d2 | 1,168 | SolarXR-Protocol | Apache License 2.0 |
app/src/main/java/com/nuevo/gameness/data/model/users/ResetPasswordResponse.kt | arbabkh | 873,814,880 | false | {"Kotlin": 538078} | package com.nuevo.gameness.data.model.users
import com.google.gson.annotations.SerializedName
data class ResetPasswordResponse(
@SerializedName("Data")
val data: User? = null,
@SerializedName("Success")
val success: Boolean? = null,
@SerializedName("Message")
val message: String? = null
)
| 0 | Kotlin | 0 | 0 | 80d7b04385a2cd516b8157dbea19dd821c30fcc9 | 316 | gameness-android | MIT License |
src/main/kotlin/com/github/itasyurt/appsearch/client/api/impl/DefaultSuggestionsClient.kt | itasyurt | 322,884,602 | false | null | package com.github.itasyurt.appsearch.client.api.impl
import com.fasterxml.jackson.databind.JsonNode
import com.github.itasyurt.appsearch.client.api.SuggestionsClient
import com.github.itasyurt.appsearch.client.api.util.util.json.convertToMap
import com.github.itasyurt.appsearch.client.domain.SuggestionsRequest
import... | 0 | Kotlin | 1 | 3 | 8b6215f1b9333c05847a795a62a9b4e9f9e79947 | 2,069 | app-search-kotlin | Apache License 2.0 |
mui-kotlin/src/jsMain/kotlin/mui/material/CircularProgress.classes.kt | karakum-team | 387,062,541 | false | {"Kotlin": 2961484, "TypeScript": 2249, "JavaScript": 1167, "HTML": 724, "CSS": 86} | // Automatically generated - do not modify!
@file:JsModule("@mui/material/CircularProgress")
package mui.material
import web.cssom.ClassName
external interface CircularProgressClasses {
/** Styles applied to the root element. */
var root: ClassName
/** Styles applied to the root element if `variant="de... | 0 | Kotlin | 5 | 35 | d12f6b1ad1b215ad7d3d9f27e24d48ada9b7fe2d | 1,272 | mui-kotlin | Apache License 2.0 |
tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/bot/GetMyName.kt | InsanusMokrassar | 163,152,024 | false | {"Kotlin": 2960030, "Shell": 373} | package dev.inmo.tgbotapi.extensions.api.bot
import dev.inmo.micro_utils.language_codes.IetfLang
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.bot.GetMyName
suspend fun TelegramBot.getMyName(
languageCode: IetfLang? = null
) = execute(GetMyName(languageCode))
suspend fun TelegramBot.... | 18 | Kotlin | 23 | 333 | 5cfc350c13aec77495a24e666de2ee8214d1c8f7 | 403 | ktgbotapi | Apache License 2.0 |
app/src/main/java/com/zhufucdev/motion_emulator/ui/model/EmulationRef.kt | zhufucdev | 550,925,935 | false | {"Kotlin": 227362} | package com.zhufucdev.motion_emulator.ui.model
import com.zhufucdev.me.stub.Data
import com.zhufucdev.me.stub.Emulation
import com.zhufucdev.motion_emulator.data.Cells
import com.zhufucdev.motion_emulator.data.Motions
import com.zhufucdev.motion_emulator.data.Traces
import com.zhufucdev.motion_emulator.extension.Store... | 16 | Kotlin | 15 | 225 | 5fdea55b038868a486a352525013e4ded4fb1cb8 | 1,295 | MotionEmulator | Apache License 2.0 |
app/src/main/java/com/unitewikiapp/unitewiki/datas/RankRepository.kt | jhj0517 | 656,711,299 | false | null | package com.unitewikiapp.unitewiki.datas
import com.google.firebase.database.FirebaseDatabase
import com.unitewikiapp.unitewiki.di.RealTimeDataBase
import com.unitewikiapp.unitewiki.utils.Constants
import com.unitewikiapp.unitewiki.utils.LocaleStore
import com.unitewikiapp.unitewiki.utils.Response
import kotlinx.corou... | 0 | Kotlin | 0 | 0 | 985d51a0995fdddeb86e40438c51a16f3a1a488c | 1,112 | UniteWiki | Apache License 2.0 |
app/src/main/java/com/rohit/quizzon/ui/viewholder/InappPurchaseViewHolder.kt | rohitjakhar | 381,639,764 | false | {"Kotlin": 119852} | package com.rohit.quizzon.ui.viewholder
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.android.billingclient.api.SkuDetails
import com.rohit.quizzon.databinding.ItemInappPurchaseBinding
class InappPurchaseViewHolder(
private val binding... | 10 | Kotlin | 26 | 59 | 47363e1177f26bff263102cd1b16ca48ae9b8b0c | 1,033 | Quizzon | MIT License |
restdoc-rpc-client/restdoc-restweb-client/src/main/kotlin/restdoc/client/restweb/EnvConfiguration.kt | wangyi1989 | 322,489,158 | true | {"Kotlin": 3251411, "Java": 410514, "Dockerfile": 1079, "Shell": 1000, "Python": 714} | package restdoc.client.restweb
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import restdoc.client.api.AgentConfigurationProperties
import restdoc.client.api.AgentImpl
@Ena... | 0 | null | 0 | 0 | 9acc0445b1638633e6960700e2e1280fa735fa04 | 569 | REST-doc | Apache License 2.0 |
compose-action-menu/src/androidMain/kotlin/nl/jacobras/composeactionmenu/IconActionItemPreviews.kt | jacobras | 442,299,930 | false | {"Kotlin": 39373, "HTML": 396} | package nl.jacobras.composeactionmenu
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Search
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
@PreviewUiComponent
@Composable
private fun RegularIconActionPreview() {
IconActionItem... | 4 | Kotlin | 2 | 80 | de34c16f87ce48a2e086f1da251176f518734bad | 2,227 | ComposeActionMenu | MIT License |
lib/src/main/java/com/github/eklipse2k8/charting/components/LimitLine.kt | eklipse2k8 | 403,391,938 | true | {"Kotlin": 945921, "Java": 57298} | package com.github.eklipse2k8.charting.components
import android.graphics.Color
import android.graphics.DashPathEffect
import android.graphics.Paint
import com.github.eklipse2k8.charting.utils.Utils
/**
* The limit line is an additional feature for all Line-, Bar- and ScatterCharts. It allows the
* displaying of an... | 0 | Kotlin | 0 | 0 | 29d416f36d7fd1b6af13082c2ef6b7d6abe0cab8 | 4,196 | ComposeChart | Apache License 2.0 |
app/src/main/java/bruhcollective/itaysonlab/psapp/core/models/dashboard/DashboardGameMediaItems.kt | iTaysonLab | 653,867,198 | false | null | package bruhcollective.itaysonlab.psapp.core.models.dashboard
import android.os.Parcelable
import com.squareup.moshi.JsonClass
import kotlinx.parcelize.Parcelize
@JsonClass(generateAdapter = true)
@Parcelize
data class DashboardGameMediaItems (
val images: List<DashboardGameImage>
): Parcelable | 0 | Kotlin | 0 | 1 | 33328d7bd7bf000179d619d8369fa3909da7a278 | 301 | BruhStationApp | MIT License |
src/main/kotlin/cn/har01d/notebook/vo/SystemStats.kt | power721 | 455,496,984 | false | {"Vue": 164653, "Kotlin": 149601, "TypeScript": 45280, "HTML": 39446, "JavaScript": 21584, "CSS": 5882, "Shell": 1465} | package cn.har01d.notebook.vo
data class SystemStats(
val user: UserStats,
val note: NoteStats,
val notebooks: Long,
val categories: Long,
val comments: Long,
val tags: Long,
)
data class NoteStats(
val total: Long,
val deleted: Long,
val views: ... | 0 | Vue | 0 | 0 | e8abef8d38b3a98b7bb47988f5f97038878bfc97 | 511 | notebook | MIT License |
net.akehurst.kaf/service/configuration-map/src/commonMain/kotlin/ConfigurationMap.kt | dhakehurst | 166,023,488 | false | null | /**
* Copyright (C) 2019 Dr. <NAME> (http://dr.david.h.akehurst.net)
*
* 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... | 0 | Kotlin | 0 | 0 | f74c333396998ad2ead9e5cdd964f88ac4af44d4 | 984 | net.akehurst.kaf | Apache License 2.0 |
tripleklay/src/main/kotlin/tripleklay/ui/Box.kt | cdietze | 89,875,388 | false | null | package tripleklay.ui
import euklid.f.Dimension
import euklid.f.MathUtil
import klay.core.Clock
import klay.scene.GroupLayer
import klay.scene.LayerUtil
import react.Closeable
import react.Slot
import react.Value
import tripleklay.shaders.RotateYBatch
import tripleklay.util.Interpolator
import kotlin.reflect.KClass
/... | 0 | Kotlin | 0 | 4 | 72031aa267cd304a0612b31c871e2f5cf73d2c4c | 8,540 | klay | Apache License 2.0 |
python-multiplatform/src/commonMain/kotlin/python/multiplatform/Versions.kt | thisisthepy | 868,537,806 | false | {"Kotlin": 12892, "Swift": 621} | package python.multiplatform
/*
* Supported versions of Python
*/
enum class Versions(val versionString: String) {
PYTHON_3_13_0("3.13.0");
companion object {
val currentVersion = valueOf(BuildConfig.pythonVersion)
fun valueOf(versionString: String): Versions {
val found = entr... | 0 | Kotlin | 0 | 1 | 05638d20a9e32db40f2885a66a37b0cc2485cef0 | 960 | python-multiplatform-mobile | MIT License |
app/src/main/java/com/epita/pokimoni/room/PokemonData.kt | Dr-LYK | 160,687,383 | false | null | package com.epita.pokimoni.room
import android.arch.persistence.room.ColumnInfo
import android.arch.persistence.room.Entity
import android.arch.persistence.room.Ignore
import android.arch.persistence.room.PrimaryKey
import com.epita.pokimoni.model.TypeColor
@Entity(tableName = "pokemonData")
data class PokemonData(@P... | 0 | Kotlin | 2 | 4 | a7016bd9db2c339aaef00fad7c8c43b2723d6ae2 | 798 | Pokimoni | MIT License |
app/src/main/java/com/example/tmdbclient/presentation/di/core/CacheDataModule.kt | Suraj820 | 615,681,119 | false | {"Kotlin": 67882} | package com.example.tmdbclient.presentation.di.core
import com.example.tmdbclient.data.repository.artist.datasource.ArtistCacheDatasource
import com.example.tmdbclient.data.repository.artist.datasourceimpl.ArtistCacheDataSouceImpl
import com.example.tmdbclient.data.repository.movie.datasource.MovieCacheDataSource
impo... | 0 | Kotlin | 0 | 0 | d02e490b436894d04ef30d4f0de0208ab007b017 | 1,117 | TMDBMovies | MIT License |
app/src/main/java/com/example/nytimes/di/module/ApplicationModule.kt | Sushant-Hande | 393,662,779 | false | null | package com.example.nytimes.di.module
import com.example.nytimes.network.apiservice.ApiService
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.converter.moshi.MoshiConverte... | 0 | Kotlin | 0 | 0 | dd77217408655c6160fbfce5887ae913a9f75bc0 | 1,110 | nytimes | Apache License 2.0 |
airwallex/src/main/java/com/airwallex/android/model/parser/NextActionParser.kt | nieqiyuan | 390,658,464 | true | {"Kotlin": 562120} | package com.airwallex.android.model.parser
import com.airwallex.android.model.AirwallexJsonUtils
import com.airwallex.android.model.NextAction
import org.json.JSONObject
import java.math.BigDecimal
internal class NextActionParser : ModelJsonParser<NextAction> {
override fun parse(json: JSONObject): NextAction? {... | 0 | Kotlin | 0 | 1 | 72b5befb79147a2f012d66d1136e9d37bb77950f | 2,446 | airwallex-payment-android | MIT License |
src/vulkan/api/pipeline/graphics_pipeline.kt | pvmoore | 166,660,032 | false | null | package vulkan.api.pipeline
import org.lwjgl.system.MemoryStack
import org.lwjgl.vulkan.*
import org.lwjgl.vulkan.VK10.*
import vulkan.api.descriptor.VkDescriptorSetLayout
import vulkan.common.RenderContext
import vulkan.common.SpecConstants
import vulkan.common.Transferable
import vulkan.common.log
import vulkan.math... | 0 | Kotlin | 0 | 1 | eccc265d05f72d4dd1610cb8e47c753fafb8025d | 10,914 | vulkanlib | MIT License |
app/src/main/java/com/umaplasticsfsm/features/activities/api/ActivityRepoProvider.kt | DebashisINT | 740,356,583 | false | {"Kotlin": 13950763, "Java": 1000924} | package com.umaplasticsfsm.features.activities.api
import com.umaplasticsfsm.features.member.api.TeamApi
import com.umaplasticsfsm.features.member.api.TeamRepo
object ActivityRepoProvider {
fun activityRepoProvider(): ActivityRepo {
return ActivityRepo(ActivityApi.create())
}
fun activityImageRep... | 0 | Kotlin | 0 | 0 | 2ccc871bdcf7df2d08825d0b9ded73b11495519e | 410 | UmaPlastics | Apache License 2.0 |
protocol/src/main/kotlin/io/kaxis/dtls/DTLSMessage.kt | barudisshu | 806,368,620 | false | {"Kotlin": 1313792, "Java": 458139, "Shell": 28440, "Dockerfile": 956} | /*
* COPYRIGHT Cplier 2024
*
* The copyright to the computer program(s) herein is the property of
* Cplier Inc. The programs may be used and/or copied only with written
* permission from Cplier Inc. or in accordance with the terms and
* conditions stipulated in the agreement/contract under which the
* program(s)... | 0 | Kotlin | 0 | 0 | f18e39e826792f145468f33d8751decc79769c07 | 1,170 | kaxis | MIT License |
crowdproj-votes-repo-in-memory/src/commonMain/kotlin/VoteRepoInMemory.kt | crowdproj | 680,000,607 | false | {"Kotlin": 194373, "Shell": 439, "Dockerfile": 339} | package com.crowdproj.vote.repoinmemory
import com.benasher44.uuid.uuid4
import com.crowdproj.vote.common.helpers.errorRepoConcurrency
import com.crowdproj.vote.common.models.*
import com.crowdproj.vote.common.repo.DbVoteIdRequest
import com.crowdproj.vote.common.repo.DbVoteRequest
import com.crowdproj.vote.common.rep... | 0 | Kotlin | 1 | 0 | c88bab0307427fe9a8c0f9305fe9e63609e3c6ca | 5,314 | crowdproj-ratings-votes | Apache License 2.0 |
app/src/main/java/hiendao/moviefinder/data/network/movie/MovieApi.kt | HienDao14 | 826,173,311 | false | {"Kotlin": 438834} | package hiendao.moviefinder.data.network.movie
import hiendao.moviefinder.data.network.movie.model.collection.Collection
import hiendao.moviefinder.data.network.movie.model.credit.Credits
import hiendao.moviefinder.data.network.movie.model.credit.MovieCredits
import hiendao.moviefinder.data.network.movie.model.credit... | 0 | Kotlin | 0 | 0 | 7f3f66b7a169ece9b34c7488455654c08353ee2d | 2,683 | Movie-Discover | MIT License |
app/src/main/java/com/breezefieldsalesashavarifoods/features/dashboard/presentation/api/otpverifyapi/OtpVerificationRepo.kt | DebashisINT | 855,784,708 | false | {"Kotlin": 15929080, "Java": 1029428} | package com.breezefieldsalesashavarifoods.features.dashboard.presentation.api.otpverifyapi
import com.breezefieldsalesashavarifoods.app.Pref
import com.breezefieldsalesashavarifoods.base.BaseResponse
import io.reactivex.Observable
/**
* Created by Saikat on 22-11-2018.
*/
class OtpVerificationRepo(val apiService: O... | 0 | Kotlin | 0 | 0 | b765ac8aab9525cb78147d55d129b1b8df1b059c | 510 | AshavariFoods | Apache License 2.0 |
telegram-bot/src/main/kotlin/eu/vendeli/tgbot/types/media/VideoChatScheduled.kt | vendelieu | 496,567,172 | false | {"Kotlin": 460733, "CSS": 356} | package eu.vendeli.tgbot.types.media
data class VideoChatScheduled(
val startDate: Int,
)
| 1 | Kotlin | 2 | 98 | f466e59c663d7319d1bcb9fd526e52c666c5927f | 95 | telegram-bot | Apache License 2.0 |
core/src/main/kotlin/com/kemp/core/config/rendering/Dithering.kt | MovementSpeed | 296,457,126 | false | null | package com.kemp.core.config.rendering
enum class Dithering {
NONE, TEMPORAL
} | 0 | Kotlin | 0 | 1 | 9f2238b75989cfb877e20db263d962452b238424 | 83 | kemp | The Unlicense |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/Connectdevelop.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36756847} | package compose.icons.lineawesomeicons
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
... | 15 | Kotlin | 20 | 460 | 651badc4ace0137c5541f859f61ffa91e5242b83 | 5,674 | compose-icons | MIT License |
app/src/main/java/com/example/blank/ui/recipes/RecipesViewModel.kt | olahdome | 264,719,519 | false | null | package com.example.blank.ui.recipes
import co.zsmb.rainbowcake.base.JobViewModel
import javax.inject.Inject
class RecipesViewModel @Inject constructor(
private val recipesPresenter: RecipesPresenter
) : JobViewModel<RecipesViewState>(Loading) {
fun load() = execute {
viewState = RecipesReady(recipes... | 1 | Kotlin | 0 | 0 | cd6f5f95f8aa10a7b38acddc8ad47f381e94fb3e | 350 | SmartScaleRainbowCakeKotlin | Apache License 2.0 |
src/main/kotlin/com/sourcegraph/cody/edit/actions/EditDismissAction.kt | sourcegraph | 702,947,607 | false | null | package com.sourcegraph.cody.edit.actions
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.project.Project
import com.sourcegraph.cody.edit.FixupService
// This differs from Cancel (and Undo) in a couple ways:
//
// - It doesn't send a message back to the server
// - If the edits are... | 262 | null | 9 | 53 | cea789eef7522940c5d9e7322a65cda6f2097c2d | 632 | jetbrains | Apache License 2.0 |
src/main/kotlin/sinon/index.kt | diklimchuk | 127,769,288 | false | null | @file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION", "NESTED_CLASS_IN_EXTERNAL_INTERFACE")
//@file:JsModule("sinon")
package sinon
external interface Event
external interface Document
@JsModule("sinon")
external val... | 0 | Kotlin | 1 | 5 | 852586eae7c8ca7b7da137e71141348a7d6dbd76 | 360 | Kotlin-js-di | Apache License 2.0 |
src/main/kotlin/sinon/index.kt | diklimchuk | 127,769,288 | false | null | @file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION", "NESTED_CLASS_IN_EXTERNAL_INTERFACE")
//@file:JsModule("sinon")
package sinon
external interface Event
external interface Document
@JsModule("sinon")
external val... | 0 | Kotlin | 1 | 5 | 852586eae7c8ca7b7da137e71141348a7d6dbd76 | 360 | Kotlin-js-di | Apache License 2.0 |
fontawesome/src/de/msrd0/fontawesome/icons/FA_FILE_IMAGE.kt | msrd0 | 363,665,023 | false | null | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 1 | Kotlin | 0 | 0 | 35406669ca5592ee3480ccfba51a00d975ac07af | 2,627 | fontawesome-kt | Apache License 2.0 |
bot/orchestration/src/main/kotlin/ai/tock/bot/orchestration/bot/primary/RunOrchestrationStoryListener.kt | hlemorvan | 282,865,501 | true | {"Kotlin": 4585095, "TypeScript": 763534, "HTML": 294788, "CSS": 188613, "JavaScript": 4807, "Shell": 3702} | /*
* Copyright (C) 2017/2020 e-voyageurs technologies
*
* 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... | 0 | null | 0 | 0 | c179ba5a48a319375726feb4f2ff2a6113a51fa5 | 8,828 | tock | Apache License 2.0 |
mediapickerk/src/main/java/api/luisangeldd/mediapicker/k/MediaPicker.kt | luisangeldd | 697,934,501 | false | {"Kotlin": 89429} | package api.luisangeldd.mediapicker.h
import android.graphics.Bitmap
import android.net.Uri
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation... | 0 | Kotlin | 0 | 0 | 9268867fd03ded31cb3484fbd580add934118112 | 26,408 | MediaPicker | Apache License 2.0 |
src/main/kotlin/venus/riscv/formats/MULHUForm.kt | hiporox | 98,627,941 | true | {"Kotlin": 124095, "HTML": 9018, "JavaScript": 2502, "CSS": 840} | package venus.riscv.formats
import venus.riscv.InstructionFormat
import venus.riscv.FieldEqual
import venus.riscv.InstructionField
val MULHUForm = InstructionFormat(listOf(
FieldEqual(InstructionField.OPCODE, 0b0110011),
FieldEqual(InstructionField.FUNCT3, 0b011),
FieldEqual(InstructionField.FUNCT7, 0b000... | 0 | Kotlin | 0 | 0 | 606d6f8185b1646b5f5f9f512a1c702994e355b7 | 329 | venus | MIT License |
app/src/main/java/com/harvard/art/museums/data/pojo/Info.kt | pvulkov | 190,898,492 | false | null | package com.harvard.art.museums.data.pojo
data class Info(
val page: Int,
val pages: Int,
val totalrecords: Int,
val totalrecordsperquery: Int,
var cur: String? = null,
val prev: String? = null,
val next: String? = null
)
| 0 | Kotlin | 0 | 0 | 74d4d681fe8f276438c1a4cfdd332476f91b218d | 279 | Harvard-Art-Museums | Apache License 2.0 |
src/main/kotlin/tech/gdragon/listener/EventListener.kt | guacamoledragon | 96,600,559 | false | {"Kotlin": 185022, "Clojure": 16441, "Shell": 5769, "HTML": 4662, "Just": 2918, "Dockerfile": 1530, "Makefile": 785, "Batchfile": 629} | package tech.gdragon.listener
import dev.minn.jda.ktx.messages.send
import io.github.oshai.kotlinlogging.KotlinLogging
import io.github.oshai.kotlinlogging.withLoggingContext
import io.opentelemetry.api.trace.StatusCode
import io.opentelemetry.api.trace.Tracer
import net.dv8tion.jda.api.entities.channel.ChannelType
im... | 5 | Kotlin | 18 | 45 | b8c0377b5e00a4a9f850dec0727dc880b314d56a | 12,648 | throw-voice | Apache License 2.0 |
app/src/main/java/com/example/cadastro/data/PessoaRepository.kt | daniel6rufino | 862,129,124 | false | {"Kotlin": 17196} | package com.example.cadastro.data
import com.example.cadastro.data.Pessoa
import com.example.cadastro.data.PessoaDao
import kotlinx.coroutines.flow.Flow
class PessoaRepository(private val pessoaDao: PessoaDao) {
val todasAsPessoas: Flow<List<Pessoa>> = pessoaDao.getAllPessoas()
suspend fun inserir(pessoa: P... | 0 | Kotlin | 0 | 0 | 6b85e650472cc7e5ab4a48a5f32c42c395956121 | 536 | APP_Cadastro_Pessoa_Completo | Apache License 2.0 |
file/src/main/java/com/zj/file/util/ZToastUtils.kt | zhujiang521 | 441,401,448 | false | {"Kotlin": 241982, "Java": 1900} | package com.zj.file.util
import android.content.Context
import android.os.Handler
import android.os.Looper
import android.text.TextUtils
import android.view.View
import android.widget.Toast
private var mToast: Toast? = null
fun View.showToast(msg: String) {
context.showToast(msg)
}
fun View.showToast(resId: Int... | 0 | Kotlin | 1 | 3 | 39350e08ee757cd3d1b7fe00cf5adeb2262c6645 | 2,306 | ZFileManager | Apache License 2.0 |
app/src/main/java/cz/cvut/fukalhan/main/challenges/fragment/ChallengesFragment.kt | fukalhan | 339,833,283 | false | null | package cz.cvut.fukalhan.main.challenges.fragment
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
import com.google.android.material.tabs.TabLayoutMediator
imp... | 0 | Kotlin | 0 | 1 | 8fe031719fce121959249439e06565727d7ae14f | 1,636 | Runemies | Apache License 2.0 |
video-clip/app/src/main/java/work/wander/videoclip/ui/home/HomeViewModel.kt | awallace87 | 793,807,511 | false | {"Kotlin": 426138} | package work.wander.videoclip.ui.home
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.SharingStarted
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.flow.stateIn
import work.wander.videoclip.data... | 0 | Kotlin | 0 | 0 | 15c903724884cd6fb69588913eb6385387e9c056 | 2,924 | android-sample-apps | Apache License 2.0 |
src/jvmMain/kotlin/ru/tanexc/application/presentation/features/api/chatApi/chatApi.kt | Tanexc | 667,134,735 | false | null | package ru.tanexc.application.presentation.features.api.chatApi
import constants.Api.GET_CHAT
import constants.Api.GET_NEW_CHAT
import constants.Api.POST_MESSAGE_INTO_CHAT
import domain.model.Message
import io.ktor.server.application.*
import io.ktor.server.request.*
import io.ktor.server.response.*
import io.ktor.ser... | 0 | Kotlin | 0 | 2 | d8219c60de5c350c7b6b1d5031166deb0063e557 | 3,793 | ComposeWebCakes | Apache License 2.0 |
compose-multiplatform-common/legacy/src/commonMain/kotlin/com/huanshankeji/compose/ui/ModifierOrAttrsScope.kt | huanshankeji | 570,509,992 | false | {"Kotlin": 117843} | package com.huanshankeji.compose.ui
//import androidx.compose.ui.Modifier
import com.huanshankeji.compose.ui.color.Color
import com.huanshankeji.compose.ui.unit.HeightOrWidth
import com.huanshankeji.compose.ui.unit.Length
import com.huanshankeji.compose.ui.unit.LengthOrPercentage
typealias NotNullModifierOrAttrs<TEle... | 10 | Kotlin | 0 | 8 | eb1ada7d629f3aa8831df4588653d87530e2635b | 2,818 | compose-multiplatform-material | Apache License 2.0 |
app/src/main/java/dorin_roman/app/kongfujava/ui/components/topbar/components/MenuButton.kt | roma321m | 555,795,950 | false | {"Kotlin": 480911} | package dorin_roman.app.kongfujava.ui.components.topbar.components
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material.Icon
import androidx.compose.material.MaterialTheme
import androidx.compose.m... | 0 | Kotlin | 1 | 2 | 3c4f89aae10ca3f86e2cb6c1b0ecef3cb47729cd | 1,138 | Kong-Fu-Java | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/adjustments/api/model/prisonapi/Adjudication.kt | ministryofjustice | 607,762,818 | false | {"Kotlin": 236404, "Shell": 1421, "Dockerfile": 1382} | package uk.gov.justice.digital.hmpps.adjustments.api.model.prisonapi
import java.time.LocalDateTime
data class Adjudication(
val adjudicationNumber: Long,
val reportTime: LocalDateTime? = null,
val agencyIncidentId: Long,
val agencyId: String? = null,
val partySeq: Long,
)
| 1 | Kotlin | 0 | 0 | 06af2147354dee5c5985aa7a7bcfee9d3dce0cd7 | 286 | hmpps-adjustments-api | MIT License |
app/src/main/java/com/example/databinding/Favorite.kt | pswaminathan | 437,073,744 | false | null | package com.example.databinding
import com.squareup.moshi.JsonClass
import java.util.Date
data class Favorite(
val id: Int,
val userId: Int,
val updatedAt: Date,
val markedForRemoval: Boolean)
@JsonClass(generateAdapter = true)
class Updates(val additions: List<Int>?, val deletions: L... | 2 | Kotlin | 1 | 1 | 8400a3421f199e9a39006cfed2c5eea152d4572d | 352 | bazel-kt-databinding-crash | MIT License |
src/main/kotlin/edu/uiowa/domain/game/models/type/Type.kt | matthewdargan | 162,233,314 | false | null | package edu.uiowa.domain.game.models.type
import tornadofx.ViewModel
/**
* The class used to incorporate each GameType enum with
* its corresponding ViewModel object in the GUI.
*
* @param gameType
* the GameType enum
* @return the corresponding ViewModel for each GameType enum
*/
data class Type(... | 0 | Kotlin | 0 | 0 | 5f79540550132904a6b45a109c81ae4c40794b54 | 357 | TicTacToe-JavaFX | MIT License |
app/src/main/java/pk/sufiishq/app/feature/player/PlayerState.kt | sufiishq | 427,931,739 | false | {"Kotlin": 950135} | /*
* Copyright 2022-2023 SufiIshq
*
* 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... | 3 | Kotlin | 0 | 2 | 254eeb6c2b1cad21d2f971d8b49ba3327d446bb5 | 714 | sufiishq-mobile | Apache License 2.0 |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/V8.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.ui.graphics... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 3,853 | compose-icons | MIT License |
aws-globalaccelerator-endpointgroup/src/test/kotlin/software/amazon/globalaccelerator/arns/AcceleratorArnTest.kt | DJ-C | 271,874,034 | true | {"Kotlin": 174746} | package software.amazon.globalaccelerator.arns
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class AcceleratorArnTest {
@Test
fun validAcceleratorArn() {
val arn = "arn:aws:globalaccelerator::444607872184:accelerator/48e89142-d196-4918-8e71-63685e3fbff9"
val result... | 0 | Kotlin | 0 | 0 | 28e547deb0a9f246393bd91ee29ea010d9ef2800 | 1,474 | aws-cloudformation-resource-providers-globalaccelerator-1 | Apache License 2.0 |
src/main/kotlin/io/openfuture/api/controller/api/TransactionApiController.kt | cdeyoung | 138,206,144 | true | {"JavaScript": 89328, "Kotlin": 68707, "CSS": 46726, "FreeMarker": 9522, "HTML": 1762} | package io.openfuture.api.controller.api
import io.openfuture.api.annotation.CurrentUser
import io.openfuture.api.domain.PageRequest
import io.openfuture.api.domain.PageResponse
import io.openfuture.api.domain.scaffold.TransactionDto
import io.openfuture.api.entity.auth.User
import io.openfuture.api.service.ScaffoldSe... | 0 | JavaScript | 0 | 0 | 0859c6fc19d40dfff829f7417d79186b825d3c81 | 1,193 | open-api | Apache License 2.0 |
crashPilot/src/main/java/com/lzcalderaro/crashPilot/src/controller/CpLog.kt | lzcalderaro | 743,990,532 | false | {"Kotlin": 19606} | package com.lzcalderaro.crashpilot.src.controller
import android.util.Log
import com.lzcalderaro.crashpilot.api.Request
import com.lzcalderaro.crashpilot.dto.Application
import com.lzcalderaro.crashpilot.dto.Tag
import com.lzcalderaro.crashpilot.list.ErrorTypes
import com.lzcalderaro.crashpilot.src.utils.Payload
impor... | 0 | Kotlin | 0 | 0 | 6b17b6d786a7ff151bb3336df39ae2dafa78baf7 | 2,139 | crashPilot | MIT License |
app/src/test/java/com/omo/rememberme/domain/usecases/people/InsertNewPersonTest.kt | omer358 | 810,455,324 | false | {"Kotlin": 179513} | package com.omo.rememberme.domain.usecases.people
import com.omo.rememberme.domain.model.People
import com.omo.rememberme.domain.repository.PeopleRepository
import kotlinx.coroutines.runBlocking
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.Mock
import org.mockito.Moc... | 2 | Kotlin | 0 | 0 | bdb595b0c70eb5bdea6d080ad19bc75f8e597ba4 | 1,209 | Remember-Me | MIT License |
Mobilex/src/commonMain/kotlin/au/com/crazybean/mobilex/kurir/modules/creation/CreationScene.kt | crazybeanstudio | 205,679,708 | true | {"Kotlin": 151199, "Swift": 40340, "Ruby": 2160} | package au.com.crazybean.mobilex.kurir.modules.creation
import au.com.crazybean.mobilex.kurir.modules.base.Scene
interface CreationScene : Scene {
fun showCreation()
} | 0 | Kotlin | 0 | 0 | 7b4e96434246eb1ddae81a6e8688ffc182cf17ce | 173 | kurir-x | Apache License 2.0 |
app/src/main/java/edu/hm/cs/ma/todoguru/task/subTask/SubTaskAdapter.kt | theexiile1305 | 258,480,340 | false | {"Kotlin": 167794, "HTML": 6557} | package edu.hm.cs.ma.todoguru.task.subTask
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import edu.hm.cs.ma.todoguru.database.SubTask
import edu.hm.cs.ma.tod... | 27 | Kotlin | 1 | 2 | 09a2f27f21c9eaacb1fad0130480f4521837d36c | 1,956 | todo-guru | MIT License |
app/src/internal/java/com/duckduckgo/app/flipper/FlipperPluginPoint.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11626231, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} |
package com.duckduckgo.app.flipper
import com.duckduckgo.common.utils.plugins.PluginPoint
import com.duckduckgo.di.DaggerSet
import com.duckduckgo.di.scopes.AppScope
import com.facebook.flipper.core.FlipperPlugin
import com.squareup.anvil.annotations.ContributesTo
import dagger.Module
import dagger.Provides
import d... | 0 | Kotlin | 0 | 0 | b89591136b60933d6a03fac43a38ee183116b7f8 | 1,143 | DuckDuckGo | Apache License 2.0 |
app/src/main/java/com/patloew/oeffitracker/data/model/Ticket.kt | patloew | 424,648,383 | false | {"Kotlin": 218998} | package com.patloew.oeffitracker.data.model
import android.os.Parcelable
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.parcelize.Parcelize
import java.time.LocalDate
/* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file... | 0 | Kotlin | 0 | 5 | 188e508ce6db5a7515472a0f592f9b8f6855aabf | 1,048 | OeffiTracker | Apache License 2.0 |
app/src/main/java/com/patloew/oeffitracker/data/model/Ticket.kt | patloew | 424,648,383 | false | {"Kotlin": 218998} | package com.patloew.oeffitracker.data.model
import android.os.Parcelable
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.parcelize.Parcelize
import java.time.LocalDate
/* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file... | 0 | Kotlin | 0 | 5 | 188e508ce6db5a7515472a0f592f9b8f6855aabf | 1,048 | OeffiTracker | Apache License 2.0 |
1675.Minimize Deviation in Array.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | internal class Solution {
fun minimumDeviation(nums: IntArray): Int {
val q: PriorityQueue<Int> = PriorityQueue { a, b -> b - a }
var mi: Int = MAX_VALUE
for (v in nums) {
var v = v
if (v % 2 == 1) {
v = v shl 1
}
q.offer(v)
mi = min(mi, v)
}
var ans: Int = q.... | 0 | Kotlin | 0 | 0 | 71f5d03abd6ae1cd397ec4f1d5ba04f792dd1b48 | 504 | kotlin-leetcode | MIT License |
src/main/kotlin/bridge/CountDisplay.kt | xmmmmmovo | 318,367,991 | false | null | /*
* Copyright (c) xmmmmmovo 2021.
*/
package bridge
class CountDisplay(displayImpl: DisplayImpl) : Display(displayImpl) {
fun multiDisplay(times: Int) {
open()
for (i in 0 until times) {
print()
}
close()
}
} | 0 | Kotlin | 0 | 0 | b9007e601c749451bfb4d7b0e059cfd5ffb6ae02 | 265 | DesignPatterns | Apache License 2.0 |
src/main/kotlin/mbo/dev/springnative/domain/role/RoleService.kt | mbogner | 559,374,643 | false | null | package mbo.dev.springnative.domain.role
import mbo.dev.springnative.domain.CrudService
import mbo.dev.springnative.domain.EntityService
@EntityService
class RoleService(repo: RoleRepository) : CrudService<Role>(repo) {
}
| 0 | Kotlin | 0 | 0 | 8567b2b8ca725a3b6f190a30e4f358c785abf090 | 224 | spring-native-sample | Apache License 2.0 |
app/src/main/java/com/phelat/splash/di/scopes/ForApplication.kt | PHELAT | 135,176,443 | false | {"Kotlin": 83388} | package com.phelat.splash.di.scopes
import javax.inject.Scope
@Scope
@Retention(AnnotationRetention.RUNTIME)
annotation class ForApplication | 0 | Kotlin | 1 | 2 | 8493fdf5b67a9e425839427cf7f43c9565c34e0b | 142 | Splash | Apache License 2.0 |
src/main/kotlin/com/glancebar/apiboilerplate/actuator/WWWHealthIndicator.kt | yisen-cai | 321,651,755 | false | null | package com.glancebar.apiboilerplate.actuator
import org.springframework.boot.actuate.health.AbstractHealthIndicator
import org.springframework.boot.actuate.health.Health
import org.springframework.stereotype.Component
import java.io.IOException
import java.net.InetAddress
import java.net.UnknownHostException
/**
*... | 1 | Kotlin | 0 | 1 | beb48202163b6bd39001661969a2a640bc359734 | 1,122 | api-boilerplate | Apache License 2.0 |
app/src/main/java/com/hfut/schedule/ui/ComposeUI/Settings/MonetColorItem.kt | Chiu-xaH | 705,508,343 | false | {"Kotlin": 397747} | package com.hfut.schedule.ui.ComposeUI.Settings
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.co... | 0 | Kotlin | 0 | 1 | 47346f061697b8208d380c9059e5c64234571e2e | 1,673 | HFUT-Schedule | Apache License 2.0 |
waltid-crypto/src/jsMain/kotlin/crypto/crypto.kt | walt-id | 701,058,624 | false | {"Kotlin": 1678078, "Vue": 327142, "TypeScript": 92029, "JavaScript": 11176, "Dockerfile": 5028, "Shell": 1651, "CSS": 404} | @JsModule("crypto")
@JsNonModule
external object crypto{
fun sign(algorithm: String?, data: ByteArray, key: String): ByteArray
fun verify(algorithm: String?, data: ByteArray, key: String, signature: ByteArray): Boolean
} | 22 | Kotlin | 19 | 72 | c839d5e81c6e8798b812e890c95a376041641e56 | 228 | waltid-identity | Apache License 2.0 |
core/common/src/main/java/com/luan/teste/common/extensions/ResourceExtensions.kt | luangs7 | 475,285,813 | false | null | package com.luan.teste.common.extensions
import com.luan.teste.common.base.ApiResult
fun <T> ApiResult<T>.isSuccess():Boolean = this is ApiResult.Success
fun <T> ApiResult<T>.isError():Boolean = this is ApiResult.Error
| 0 | Kotlin | 0 | 0 | af40cb051d592fbaab59154a499ba98aab0c4a2f | 222 | GithubComposable | Apache License 2.0 |
lab3/src/main/kotlin/jpa/HibernateUtil.kt | band-of-four | 152,893,488 | false | null | package jpa
import org.hibernate.boot.registry.StandardServiceRegistryBuilder
import org.hibernate.SessionFactory
import org.hibernate.cfg.Configuration
import User
import Group
import RequestResult
object HibernateUtil {
private var sessionFactory: SessionFactory? = null
fun getSessionFactory(): SessionFactory? ... | 0 | Kotlin | 0 | 4 | f20d2c076d9281c4696ab1d33b649c721fb3b011 | 884 | pipchansky | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/tugcearas/customnavigationbar/MainActivity.kt | TugceAras | 593,292,147 | false | null | package com.tugcearas.customnavigationbar
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.tugcearas.customnavigationbar.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
private lateinit var binding: ActivityMainBinding
... | 0 | Kotlin | 0 | 6 | 7160099f98cc4052f589e2ad5659b1d40ad986e5 | 695 | CustomBottomNavigationBar | MIT License |
app/src/test/kotlin/com/thundermaps/apilib/android/api/responses/models/ResultTest.kt | SaferMe | 240,105,080 | false | null | package com.thundermaps.apilib.android.api.responses.models
import org.junit.Assert
import org.junit.Test
class ResultTest {
@Test
fun `test Initial state before and after converting`() {
val initialState = Result.Initial
initialState.verify()
val convertedState = initialState.conver... | 2 | Kotlin | 0 | 0 | e10d64c126cb13e56e5089e8bedd249534dc2ccf | 3,227 | saferme-api-client-android | MIT License |
server/src/main/kotlin/org/kryptonmc/krypton/entity/ai/memory/ExpirableMemory.kt | KryptonMC | 255,582,002 | false | null | /*
* This file is part of the Krypton project, licensed under the Apache License v2.0
*
* Copyright (C) 2021-2023 KryptonMC and the contributors of the Krypton 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 ... | 27 | Kotlin | 11 | 233 | a9eff5463328f34072cdaf37aae3e77b14fcac93 | 1,423 | Krypton | Apache License 2.0 |
app/src/main/java/com/paonesoni/overlaymap/MapsActivity.kt | paonesoni | 533,621,569 | false | {"Kotlin": 12853} | package com.paonesoni.overlaymap
import android.graphics.Color
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.core.content.ContextCompat
import com.paonesoni.overmap.datapath.PathData
import com.paonesoni.overmap.datapath.PathStyle
import com.paonesoni.overmap.view.OverMap
imp... | 0 | Kotlin | 0 | 0 | 9b82121a4e551e5a7aad952e66d654f966dfde7e | 2,455 | OverMap | Apache License 2.0 |
src/main/kotlin/com/willoutwest/kalahari/scene/camera/Uvw.kt | wbknez | 217,644,047 | false | null | package com.willoutwest.kalahari.scene.camera
import com.willoutwest.kalahari.math.Point3
import com.willoutwest.kalahari.math.Vector3
/**
* Represents an orthonormal viewing basis.
*
* @property u
* The u coordinate axis.
* @property v
* The v coordinate axis.
* @property w
* Th... | 0 | Kotlin | 0 | 0 | 46b1b3de9474dda22291a33b93a9b40b634c29c0 | 2,845 | kalahari | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.