path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/net/ormr/userskripter/plugin/UserskripterPlugin.kt | Olivki | 567,437,327 | false | {"Kotlin": 42726} | /*
* Copyright 2022 Oliver Berg
*
* 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 | 2 | 0f13f366355d4233c38546d7b393ac886fb56cb2 | 10,558 | userskripter-gradle | Apache License 2.0 |
project/src/main/kotlin/cga/exercise/components/geometry/Mesh.kt | itsAltamas | 396,089,178 | true | {"Kotlin": 103779, "GLSL": 24426} | package cga.exercise.components.geometry
import cga.exercise.components.shader.ShaderProgram
import cga.framework.OBJLoader
import org.lwjgl.opengl.GL11
import org.lwjgl.opengl.GL15
import org.lwjgl.opengl.GL15.*
import org.lwjgl.opengl.GL20
import org.lwjgl.opengl.GL30
import org.lwjgl.opengl.GL30.*
/**
* Creates... | 0 | Kotlin | 0 | 0 | 4babb82a385fb502750e63a7cd4f0f6ae9b65619 | 3,008 | CGA_Project | MIT License |
src/main/kotlin/frc/chargers/controls/FeedbackController.kt | frc-5160-the-chargers | 497,722,545 | false | {"Kotlin": 438322, "Java": 56704} | package frc.chargers.controls
/**
* A [Controller] that uses feedback control to calculate its output.
*/
public interface FeedbackController<I, out T>: Controller<T>{
public var target: I
public val error: I
public fun calculateOutput(target: I): T{
this.target = target
return calculat... | 3 | Kotlin | 0 | 2 | ef0bca03f00901ffcc5508981089edced59f91aa | 337 | ChargerLib | MIT License |
androidApp/src/main/java/com/bupware/wedraw/android/ui/widget/WeDrawPreferences.kt | ricardogdz6 | 673,342,069 | false | {"Kotlin": 291056, "Swift": 342} | package com.bupware.wedraw.android.ui.widget
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.MutablePreferences
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences... | 0 | Kotlin | 0 | 0 | 438a26ff0502888858f797478786157e4213b1c6 | 1,277 | WeDraw | Creative Commons Zero v1.0 Universal |
src/main/kotlin/com/menuxx/miaosha/queue/lisenter/RequestObtainListener.kt | menuxx | 113,003,250 | false | null | package com.menuxx.miaosha.queue.lisenter
import com.menuxx.miaosha.disruptor.ChannelUserEventDisruptor
import com.menuxx.miaosha.queue.msg.ObtainUserMsg
import org.springframework.amqp.core.ExchangeTypes
import org.springframework.amqp.rabbit.annotation.Exchange
import org.springframework.amqp.rabbit.annotation.Queue... | 0 | Kotlin | 0 | 0 | f7b368e5cc8f6a005ae3174541e430e9fb106397 | 1,445 | shuxiang-api | Apache License 2.0 |
app/src/main/java/com/muhammednazeer/bestquotes/QuotesAdapter.kt | muhammednazeer | 267,317,412 | false | null | package com.muhammednazeer.bestquotes
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
class QuotesAdapter (val context : Context, val quotes : List<String>, val onIt... | 0 | Kotlin | 0 | 1 | a980e1c12a360c536cf5b83a2cd17609ab643b86 | 1,252 | BestQuotes | MIT License |
app/src/main/java/kh/farrukh/progee/db/framework/models/FrameworkRemoteKey.kt | KhusainovFarrukh | 504,784,895 | false | {"Kotlin": 122426} | package kh.farrukh.progee.db.framework.models
import androidx.room.Entity
import androidx.room.PrimaryKey
/**
*Created by farrukh_kh on 6/24/22 2:22 AM
*kh.farrukh.progee.db.framework.models
**/
@Entity(tableName = "framework_remote_keys")
data class FrameworkRemoteKey(
@PrimaryKey
val id: Int = 0,
val... | 0 | Kotlin | 0 | 0 | e52008d3442644e42be5187b6782ffd5350f23cd | 389 | Progee-Android | Apache License 2.0 |
build-logic/convention/src/main/kotlin/com/lukmadev/buildlogic/Detekt.kt | lukma | 702,989,427 | false | {"Kotlin": 133997} | package com.lukmadev.buildlogic
import io.gitlab.arturbosch.detekt.Detekt
import io.gitlab.arturbosch.detekt.extensions.DetektExtension
import org.gradle.api.Project
import org.gradle.kotlin.dsl.dependencies
internal fun Project.configureDetekt(block: DetektExtension.() -> Unit) {
tasks.withType(Detekt::class.jav... | 0 | Kotlin | 0 | 0 | 39f98c410e0fdf18de76e90403814dfe29403ee0 | 874 | kmm-weather | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/VerticalShading.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 142794926} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.cloudwatch
public enum class VerticalShading(
private val cdkObject: software.amazon.awscdk.service... | 0 | Kotlin | 0 | 4 | 77ca8a42760b4bc23bbd76535c06a8aa626fe944 | 1,190 | kotlin-cdk-wrapper | Apache License 2.0 |
TennisLabExposed/src/main/kotlin/models/Usuario.kt | idanirf | 578,303,195 | false | {"Kotlin": 247706} | package models
import models.enums.TipoUsuario
import java.util.*
/**
* Usuario
*
* @property id
* @property uuid
* @property nombre
* @property apellido
* @property correo
* @property password
* @property tipoUsuario
* @constructor Create empty Usuario
*/
data class Usuario(
val id:Int,
val uuid: ... | 0 | Kotlin | 2 | 2 | 618af3cdf691a44ba5ad4c0993b3aae0d0728f08 | 460 | AD-P2-jsanchez-drodriguez-amaldonado | MIT License |
core/src/main/java/com/rcosteira/core/di/modules/ViewModelFactoryModule.kt | rcosteira79 | 105,062,893 | false | null | package com.rcosteira.core.di.modules
import androidx.lifecycle.ViewModelProvider
import com.rcosteira.core.ui.ViewModelFactory
import dagger.Binds
import dagger.Module
import dagger.Reusable
@Module
abstract class ViewModelFactoryModule {
@Binds
@Reusable
abstract fun bindViewModelFactory(factory: ViewM... | 0 | Kotlin | 5 | 34 | fbc34905496044a950862aee4dea16abfdad98a0 | 361 | AndroidMultiModuleCleanArchTemplate | Apache License 2.0 |
src/main/kotlin/com/cognifide/gradle/aem/instance/Instance.kt | McAvity | 139,147,788 | true | {"Kotlin": 236312, "Shell": 5207, "Java": 1813, "Batchfile": 233} | package com.cognifide.gradle.aem.instance
import com.cognifide.gradle.aem.api.AemConfig
import com.cognifide.gradle.aem.api.AemException
import com.cognifide.gradle.aem.internal.Formats
import com.cognifide.gradle.aem.internal.Patterns
import com.cognifide.gradle.aem.pkg.deploy.ListResponse
import com.fasterxml.jackso... | 0 | Kotlin | 0 | 0 | 815df8117edd345b1e477eb3366d59b4379c64d9 | 8,541 | gradle-aem-plugin | Apache License 2.0 |
releases/glory-v0.1/view/src/main/kotlin/notes/view/NoteList.kt | Oliver-Fenton | 721,902,234 | false | {"Kotlin": 134039, "Java": 980, "Dockerfile": 164} | package notes.view
import javafx.collections.ListChangeListener
import javafx.collections.ObservableList
import javafx.event.EventHandler
import javafx.geometry.Insets
import javafx.scene.control.Label
import javafx.scene.layout.Background
import javafx.scene.layout.HBox
import javafx.scene.layout.Priority
import java... | 0 | Kotlin | 0 | 0 | 5d4a2c0cc5526c1c698854076b94aa79ff9bde14 | 2,422 | notes | MIT License |
common/src/main/java/io/github/jbarr21/runterval/ui/Screen.kt | jbarr21 | 110,423,257 | false | null | package io.github.jbarr21.runterval.ui
sealed class Screen(val route: String) {
object Launcher : Screen("launcher")
object Workouts : Screen("workouts")
object Timer : Screen("timer")
companion object {
val items = listOf(
Launcher,
Workouts,
Timer
)
}
}
| 0 | Kotlin | 0 | 5 | 1e6f39bb154f70ba821e7bcdcab052c5697c1a99 | 294 | runterval | Apache License 2.0 |
app/src/main/java/com/buglione/ui/components/appBar/TopAppBarExample.kt | StevenBuglione | 715,901,501 | false | {"Kotlin": 15479} | package com.buglione.ui.components.appBar
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Add
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.filled.Call
import androidx.compose.material.icons.filled.Check
import androidx.compose... | 0 | Kotlin | 0 | 0 | 5fa22b52de7b4452c7a8ff5952cb39b2258c69ee | 6,156 | Jetpack-Compose-Components | MIT License |
conductor-extra/src/main/java/com/esafirm/conductorextra/components/configs/ControllerConfigManager.kt | esafirm | 93,383,816 | false | {"Gradle": 9, "Shell": 2, "Java Properties": 2, "YAML": 1, "Text": 1, "Ignore List": 8, "Batchfile": 1, "Markdown": 1, "Proguard": 7, "XML": 24, "Kotlin": 48, "Java": 7} | package com.esafirm.conductorextra.components.configs
import com.bluelinelabs.conductor.Controller
typealias ConfigResolver<T> = (Class<T>) -> ControllerConfig
object ControllerConfigManager {
private val DEFAULT_CONFIG = ControllerConfig(true)
var configResolver: ConfigResolver<Controller> = { _ -> DEFAUL... | 1 | null | 1 | 1 | 304262c284ab117808afd7c68e45360d7c606b4f | 333 | conductor-extra | MIT License |
multi-functions/src/test/kotlin/io/multifunctions/models/QuadSpec.kt | sandeep1401 | 145,104,288 | true | {"Kotlin": 53565} | package io.multifunctions.models
import io.kotlintest.matchers.shouldBe
import io.kotlintest.specs.WordSpec
class QuadSpec : WordSpec() {
init {
"Quad" should {
"be initialized with Strings" {
Quad("one", "two", "three", "four").let { quad ->
quad.first ... | 0 | Kotlin | 0 | 0 | bdb4af98aea657452159436e1bf5db79cbedd269 | 1,629 | MultiFunctions | Apache License 2.0 |
src/main/kotlin/bik/thermostat/exceptions/ThermostatException.kt | inigodm | 456,147,379 | false | {"Kotlin": 21790, "Java": 510} | package bik.thermostat.exceptions
import java.lang.Exception
class ThermostatException : Exception {
constructor(message: String?, e: Exception?) : super(message, e) {}
constructor(message: String?) : super(message) {}
}
class ThermostatError : RuntimeException {
constructor(message: String?, e: Exceptio... | 0 | Kotlin | 0 | 1 | 9ce84e6cba8292791d9823a929b0158bec74bf2c | 403 | amaia-thermostat | Apache License 2.0 |
app/src/main/java/de/schalter/losungen/components/verseCard/VerseCardView.kt | schalterDev | 162,886,394 | false | {"Kotlin": 369098, "Java": 1100, "Shell": 645} | package de.schalter.losungen.components.verseCard
import android.content.Context
import android.text.Editable
import android.text.TextWatcher
import android.util.AttributeSet
import android.view.View
import android.widget.FrameLayout
import android.widget.ImageView
import android.widget.TextView
import android.widget.... | 7 | Kotlin | 1 | 2 | 1bc635ef9e5f4612cde4b38126ba1f74b8315259 | 6,906 | Losungen-Android-2 | MIT License |
app/src/main/java/io/zoemeow/dutschedule/ui/view/account/TrainingResult.kt | ZoeMeow1027 | 504,228,485 | false | {"Kotlin": 505302} | package io.zoemeow.dutschedule.ui.view.account
import android.content.Context
import android.content.Intent
import androidx.activity.ComponentActivity
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import an... | 1 | Kotlin | 0 | 1 | 4ef00cd06ecf3396a2eebba9b320516dbcf81587 | 14,668 | DutSchedule | MIT License |
domain/src/main/java/com/bankwithmit/domain/repositories/CardRepository.kt | IkemNwodo | 336,539,958 | false | null | package com.bankwithmit.domain.repositories
import com.bankwithmit.domain.models.CardInfo
import com.bankwithmit.domain.utils.Result
interface CardRepository {
suspend fun getCardInfo(cardNumber: Int): Result<CardInfo>
suspend fun getSavedCards(): Result<List<CardInfo>>
} | 0 | Kotlin | 0 | 0 | f9c8af46ba295253f5c800f0a54b0f8e5ddcdee8 | 282 | CardInfoFinder | The Unlicense |
urbanairship-preference-center/src/test/java/com/urbanairship/preferencecenter/ConditionStateMonitorTest.kt | jameshnsears | 592,661,904 | true | {"INI": 13, "Markdown": 20, "Gradle": 20, "Shell": 4, "Batchfile": 1, "Text": 1, "Ignore List": 7, "Proguard": 16, "XML": 389, "Java": 960, "Kotlin": 188, "JSON": 15, "CODEOWNERS": 1, "YAML": 33, "Gradle Kotlin DSL": 2, "Python": 2, "SVG": 2, "CSS": 2, "C#": 2, "Java Properties": 2} | package com.urbanairship.preferencecenter
import androidx.test.ext.junit.runners.AndroidJUnit4
import app.cash.turbine.test
import com.google.common.truth.Truth.assertThat
import com.urbanairship.channel.AirshipChannel
import com.urbanairship.channel.AirshipChannelListener
import com.urbanairship.preferencecenter.data... | 0 | null | 0 | 0 | 70ec0a5cba923c7d16d3186a8b794267bfb1b14a | 3,515 | android-library | Apache License 2.0 |
urbanairship-preference-center/src/test/java/com/urbanairship/preferencecenter/ConditionStateMonitorTest.kt | jameshnsears | 592,661,904 | true | {"INI": 13, "Markdown": 20, "Gradle": 20, "Shell": 4, "Batchfile": 1, "Text": 1, "Ignore List": 7, "Proguard": 16, "XML": 389, "Java": 960, "Kotlin": 188, "JSON": 15, "CODEOWNERS": 1, "YAML": 33, "Gradle Kotlin DSL": 2, "Python": 2, "SVG": 2, "CSS": 2, "C#": 2, "Java Properties": 2} | package com.urbanairship.preferencecenter
import androidx.test.ext.junit.runners.AndroidJUnit4
import app.cash.turbine.test
import com.google.common.truth.Truth.assertThat
import com.urbanairship.channel.AirshipChannel
import com.urbanairship.channel.AirshipChannelListener
import com.urbanairship.preferencecenter.data... | 0 | null | 0 | 0 | 70ec0a5cba923c7d16d3186a8b794267bfb1b14a | 3,515 | android-library | Apache License 2.0 |
core/src/main/java/com/example/core/mapper/route/RouteMapper.kt | rakhmukova | 716,540,491 | false | {"Kotlin": 364537} | package com.example.core.mapper.route
import com.example.core.logic.route.Route
import com.example.core.models.route.RouteDto
import dagger.Reusable
import javax.inject.Inject
@Reusable
class RouteMapper @Inject constructor(
private val routeSearchMapper: RouteSearchMapper,
private val segmentMapper: RouteSeg... | 0 | Kotlin | 0 | 0 | 7707ae1fac0dcbf98b79596cda5f5308f5e908ab | 798 | travel-app | Apache License 2.0 |
app/src/main/java/com/test/pocketaces/di/FeatureScope.kt | stAyushJain | 342,903,412 | false | null | package com.test.pocketaces.di
import javax.inject.Scope
@Scope
@Retention(AnnotationRetention.RUNTIME)
annotation class FeatureScope | 0 | Kotlin | 0 | 0 | 010a95a97cd75d665d41144abb6780d32075a7a4 | 135 | MovieApp | Apache License 2.0 |
client/slack-spring-api-client/src/main/kotlin/io/hndrs/slack/api/spring/group/users/SpringUsersGetPresenceMethod.kt | hndrs | 168,710,332 | false | null | package io.hndrs.slack.api.spring.group.users
import io.hndrs.slack.api.contract.jackson.group.users.ErrorGetPresenceResponse
import io.hndrs.slack.api.contract.jackson.group.users.GetPresenceResponse
import io.hndrs.slack.api.contract.jackson.group.users.SuccessfulGetPresenceResponse
import io.hndrs.slack.api.group.A... | 57 | Kotlin | 13 | 16 | 89c5a6ddd0cbac522dd9cd4324901bf2907369a8 | 1,974 | slack-spring-boot-starter | MIT License |
src/com/eventhorizonwebdesign/kgrabber/util/Data.kt | trenton-telge | 97,350,278 | false | {"Kotlin": 18138} | package com.eventhorizonwebdesign.kgrabber.util
import com.eventhorizonwebdesign.kgrabber.util.web.PageParserThread
import java.io.*
import java.util.*
import javax.swing.DefaultListModel
import javax.swing.JFrame
import javax.swing.JList
var accessedPages = Vector<String>()
var mainFrame: JFrame? = null
var rootsPan... | 0 | Kotlin | 0 | 0 | 4ee8222b9a1baf19359e0144075ad8d9e9e227e3 | 6,626 | KGrabber | The Unlicense |
Android/app/src/main/java/com/plantry/presentation/home/viewholder/notification/HomeNotificationViewHolder.kt | GDSC-SWU | 736,526,220 | false | {"Kotlin": 312709, "Java": 284329, "Python": 1946, "Dockerfile": 370} | package com.plantry.presentation.home.viewholder.notification
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.recyclerview.widget.RecyclerView
import com.plantry.R
import com.plantry.data.dto.response.notification.ResponseNortificationAllListDto
import com.plantry.data.dto.response.profi... | 0 | Kotlin | 0 | 3 | 7a8074ba1a76027fe09077dd490c8c7eb8a87c9f | 2,341 | 2024-Plantry-SolutionChallenge | MIT License |
app/src/main/java/org/p2p/wallet/common/ui/bottomsheet/BaseRecyclerDoneBottomSheet.kt | p2p-org | 306,035,988 | false | {"Kotlin": 4545395, "HTML": 3064848, "Java": 296567, "Groovy": 1601, "Shell": 1252} | package org.p2p.wallet.common.ui.bottomsheet
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import org.p2p.wallet.databinding.DialogBaseRecyclerPartBinding
/**
* Base BottomSheet extended from [BaseDoneBottomSheet] used to implement [RecyclerView] a... | 8 | Kotlin | 18 | 34 | d091e18b7d88c936b7c6c627f4fec96bcf4a0356 | 732 | key-app-android | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/Template.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,403 | icons | MIT License |
core/src/main/kotlin/dev/komu/kraken/model/creature/Monster.kt | komu | 83,556,775 | false | {"Kotlin": 225797} | package dev.komu.kraken.model.creature
import dev.komu.kraken.model.Game
import dev.komu.kraken.model.actions.Action
import dev.komu.kraken.model.region.Cell
class Monster(name: String, val race: Race): Creature(name) {
init {
letter = race.letter
}
var lastKnownPlayerPosition: Cell? = null
... | 0 | Kotlin | 0 | 0 | 680362d8e27c475b4ef1e2d13b67cb87f67249f6 | 1,201 | kraken | Apache License 2.0 |
app/src/main/java/com/mycompany/advioo/repo/InstallerRepository.kt | demirelarda | 609,874,629 | false | {"Kotlin": 330942} | package com.mycompany.advioo.repo
import com.google.firebase.firestore.FirebaseFirestore
import com.google.firebase.firestore.QuerySnapshot
import com.google.firebase.firestore.ktx.toObject
import com.mycompany.advioo.models.installer.Installer
import javax.inject.Inject
class InstallerRepository @Inject constructor... | 0 | Kotlin | 0 | 0 | b27390784a5903d4ba81249f7b3535ff49c08ab1 | 1,133 | AdTracker | FSF All Permissive License |
fontawesome/src/de/msrd0/fontawesome/icons/FA_CIRCLE_NOTCHED.kt | msrd0 | 363,665,023 | false | null | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 0 | Kotlin | 0 | 0 | 2fc4755051325e730e9d012c9dfe94f5ea800fdd | 1,679 | fontawesome-kt | Apache License 2.0 |
app/src/main/java/com/pokemon/jv/internal/dagger/module/NetworkModule.kt | jdvalladaresc | 355,704,988 | false | null | package com.pokemon.jv.internal.dagger.module
import android.content.Context
import com.pokemon.data.network.Endpoints
import com.pokemon.data.network.RestApi
import com.pokemon.data.network.RestApiImpl
import com.pokemon.data.network.RestService
import dagger.Module
import dagger.Provides
import okhttp3.OkHttpClient
... | 0 | Kotlin | 0 | 0 | 8ce0961f387ff53f92581ca842e56a2b3aa7cfd7 | 1,388 | pokemon | Apache License 2.0 |
jdroid-android-core/src/main/java/com/jdroid/android/google/GooglePlayUtils.kt | petsnarua | 258,267,623 | true | {"Kotlin": 742915, "Java": 383189, "HTML": 3936, "Shell": 2559, "JavaScript": 564} | package com.jdroid.android.google
import android.content.Intent
import android.net.Uri
import androidx.fragment.app.FragmentActivity
import com.jdroid.android.activity.ActivityLauncher
import com.jdroid.android.dialog.AlertDialogFragment
import com.jdroid.android.intent.IntentUtils
import com.jdroid.android.kotlin.get... | 0 | null | 0 | 0 | 8b4d1654fdabe6d2e13487f8045a83b2e6e0e5fe | 3,475 | jdroid-android | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppshdcapi/controllers/LicenceControllerTest.kt | ministryofjustice | 747,339,025 | false | {"Kotlin": 176607, "Shell": 4732, "Dockerfile": 1355} | package uk.gov.justice.digital.hmpps.hmppshdcapi.controllers
import com.fasterxml.jackson.databind.ObjectMapper
import org.assertj.core.api.AssertionsForClassTypes.assertThat
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.mockito.k... | 1 | Kotlin | 0 | 0 | c8daae81d760cf789004e4c45c72139657015c0a | 4,408 | hmpps-hdc-api | MIT License |
shared/src/commonMain/kotlin/nl/tiebe/otarium/logic/root/onboarding/OnboardingComponent.kt | Tiebe | 528,857,681 | false | {"Kotlin": 708697, "Ruby": 6904, "Swift": 2918, "Shell": 437} | package nl.tiebe.otarium.logic.root.onboarding
import nl.tiebe.otarium.logic.root.RootComponent
import nl.tiebe.otarium.setupNotifications
interface OnboardingComponent {
val navigateRootComponent: (RootComponent.ChildScreen) -> Unit
fun exitOnboarding()
fun notifications() {
setupNotifications(... | 14 | Kotlin | 0 | 3 | 0b0716d2255ca0c7ea238c97439c5fbffa27de7b | 330 | Otarium | MIT License |
app/src/main/java/com/mityushovn/miningquiz/main/presentation/searchlistfragment/recyclerview/QuestionsSearchFrAdapter.kt | NikitaMityushov | 431,692,189 | false | {"Kotlin": 281441} | package com.mityushovn.miningquiz.main.presentation.searchlistfragment.recyclerview
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.text.PrecomputedTextCompat
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.... | 10 | Kotlin | 0 | 0 | 9013e560b6d9434da4c263ccaa9f033bd0831855 | 2,947 | MiningQuiz | MIT License |
kotlin-electron/src/jsMain/generated/electron/core/ClientRequestConstructorOptionsRedirect.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
package electron.core
sealed external interface ClientRequestConstructorOptionsRedirect {
companion object {
@seskar.js.JsValue("follow")
val follow: ClientRequestConstructorOptionsRedirect
@seskar.js.JsValue("error")
val error:... | 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 467 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/nikitosii/studyrealtorapp/core/source/net/model/location/address/CoordinateApi.kt | meanswar | 702,052,508 | false | {"Kotlin": 730795, "HTML": 262565} | package com.nikitosii.studyrealtorapp.core.source.net.model.location.address
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class CoordinateApi(
val lat: Double? = null,
val lon: Double? = null
) | 2 | Kotlin | 0 | 0 | 20c281e8954fe900812e1923600ff0fd9b82d2b4 | 235 | StudyRealtorApp | MIT License |
kurrent-spring/src/main/kotlin/org/lodenstone/kurrent/spring/eventstore/EventType.kt | papaledoupe | 162,044,250 | false | null | package org.lodenstone.kurrent.spring.eventstore
annotation class EventType(val name: String)
| 0 | Kotlin | 0 | 0 | ff3310d44946aa00bd7091b2ce790c93492d6d52 | 95 | kurrent | MIT License |
watchlist/src/main/java/com/pyamsoft/tickertape/watchlist/WatchlistModule.kt | pyamsoft | 371,196,339 | false | null | package com.pyamsoft.tickertape.watchlist
import androidx.annotation.CheckResult
import com.pyamsoft.tickertape.watchlist.dig.WatchlistDigInteractor
import com.pyamsoft.tickertape.watchlist.dig.WatchlistDigInteractorImpl
import dagger.Binds
import dagger.Module
@Module
abstract class WatchlistModule {
@Binds
@Ch... | 5 | Kotlin | 0 | 2 | 79edd1bb2fbc7d462da55709c1c5879ca37510fd | 588 | tickertape | Apache License 2.0 |
app/src/main/java/com/hypertrack/android/interactors/app/InitActionEffect.kt | hypertrack | 241,723,736 | false | null | package com.hypertrack.android.interactors.app
import kotlinx.coroutines.flow.Flow
/**
* effect for cases when you need to perform certain effects before firing an action
* but it doesn't require state, so no need to send it through reducer
*/
sealed class InitActionEffect : AppEffect()
| 1 | Kotlin | 17 | 31 | 7a613e4b618043d95e101b819d903c3b1eda6773 | 294 | visits-android | MIT License |
deprecated/template-xml/data/src/main/java/co/nimblehq/template/xml/data/response/ErrorResponse.kt | nimblehq | 101,353,301 | false | {"Kotlin": 387666, "Ruby": 5344, "XSLT": 1824} | package co.nimblehq.template.xml.data.response
import co.nimblehq.template.xml.domain.model.Error
import com.squareup.moshi.Json
data class ErrorResponse(
@Json(name = "message")
val message: String
)
internal fun ErrorResponse.toModel() = Error(message = message)
| 31 | Kotlin | 23 | 94 | f07941499a70b6144f4280c233edba542ab3e516 | 276 | android-templates | MIT License |
meistercharts-commons/src/jvmMain/kotlin/it/neckar/open/time/TimeExt.jvm.kt | Neckar-IT | 599,079,962 | false | {"Kotlin": 5819931, "HTML": 87784, "JavaScript": 1378, "CSS": 1114} | package it.neckar.open.time
import java.time.Instant
import java.time.ZoneOffset
import java.time.format.DateTimeFormatter
import java.time.format.DateTimeFormatterBuilder
import java.util.Date
/**
* Formats a double value (in milliseconds) as UTC string.
* This method must only be used for debugging purposes.
*/... | 3 | Kotlin | 3 | 5 | ed849503e845b9d603598e8d379f6525a7a92ee2 | 1,243 | meistercharts | Apache License 2.0 |
android/measure/src/main/java/sh/measure/android/performance/ComponentCallbacksCollector.kt | measure-sh | 676,897,841 | false | {"Kotlin": 863856, "Go": 615450, "TypeScript": 345542, "Swift": 308530, "Shell": 26060, "Objective-C": 17998, "C": 9958, "Python": 7639, "Lua": 1206, "JavaScript": 1053, "CMake": 479, "CSS": 461, "C++": 445} | package sh.measure.android.performance
import android.app.Application
import android.content.ComponentCallbacks2
import android.content.ComponentCallbacks2.TRIM_MEMORY_BACKGROUND
import android.content.ComponentCallbacks2.TRIM_MEMORY_COMPLETE
import android.content.ComponentCallbacks2.TRIM_MEMORY_MODERATE
import andro... | 80 | Kotlin | 20 | 445 | f04f6d96c4119aa6009505e52abe9b5cad6a84c9 | 2,827 | measure | Apache License 2.0 |
src/main/kotlin/app/boboc/springframework/cloud/github/GitHubCloudProperties.kt | boboc-app | 848,216,217 | false | {"Kotlin": 29752} | package app.boboc.springframework.cloud.github
import org.springframework.boot.context.properties.ConfigurationProperties
@ConfigurationProperties(GitHubCloudProperties.PROPERTIES_PREFIX)
data class GitHubCloudProperties(
val token: String = System.getenv("GITHUB_CLOUD_TOKEN") ?: System.getProperty("GITHUB_CLOUD_... | 0 | Kotlin | 0 | 2 | d2a46f57776fd11108b490febd4fa3b098a9a44b | 520 | spring-cloud-github | MIT License |
dialog-core/src/main/java/com/akexorcist/instantdialog/core/option/NeutralButtonOption.kt | akexorcist | 271,466,252 | false | null | package com.akexorcist.instantdialog.core.option
import android.os.Bundle
import android.view.View
import android.widget.Button
import com.akexorcist.instantdialog.core.DialogComponent
import com.akexorcist.instantdialog.core.R
interface NeutralButtonOption : DialogComponent {
var neutralButton: Button
var n... | 0 | Kotlin | 0 | 4 | e3291f552e68ca27aba36bcdaa66cad45cbe0fdd | 1,521 | InstantDialog | Apache License 2.0 |
src/main/kotlin/no/nav/tiltaksarrangor/config/LogConfig.kt | navikt | 616,496,742 | false | null | package no.nav.tiltaksarrangor.config
import no.nav.common.audit_log.log.AuditLogger
import no.nav.common.audit_log.log.AuditLoggerImpl
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
@Configuration
class LogConfig {
@Bean
fun auditLogger(): AuditLogger... | 5 | Kotlin | 0 | 2 | c2c1c9501375018b40ef0ac94baf44570b1f37c9 | 355 | amt-tiltaksarrangor-bff | MIT License |
demo/multiround/src/main/java/com/alessandro/claymore/demo/multiround/allies/generated/AlliesActivity_AutoViewModelModule.kt | alecarnevale | 559,250,665 | false | {"Kotlin": 92000} | package com.alessandro.claymore.demo.multiround.allies.generated
// Not used, @AutoProvides annotation will generate this automatically ;)
// after a successful build take a look at :multiround/build/generated/ksp/debug/kotlin/com/alessandro/claymore/demo/multiround
/*
import androidx.lifecycle.SavedStateHandle
impor... | 0 | Kotlin | 0 | 5 | f0db25b5b0025ac1448755beb65e971e8f9d7394 | 1,349 | claymore | Apache License 2.0 |
DesignSystem/src/main/java/com/yourssu/design/system/rule/Rounding.kt | yourssu | 364,290,281 | false | null | package com.yourssu.design.system.rule
| 2 | Kotlin | 0 | 9 | 58364077175f882def5108e654f51667b9d3af36 | 40 | YDS-Android | MIT License |
app/src/main/java/org/obd/graphs/ui/graph/GraphVirtualScreen.kt | tzebrowski | 326,375,780 | false | null | package org.obd.graphs.ui.graph
import org.obd.graphs.preferences.*
private const val VIRTUAL_SCREEN_SELECTION = "pref.graph.virtual.selected"
const val PREF_GRAPH_DIALOG = "pref.graph.pids.selected"
class GraphVirtualScreen {
fun getCurrentVirtualScreen() = Prefs.getString(VIRTUAL_SCREEN_SELECTION, "1")!!
... | 1 | Kotlin | 2 | 8 | 1d11f7c13f95cacbd40f68596895615b6676f4c0 | 839 | ObdGraphs | Apache License 2.0 |
skellig-test-step-processing-jdbc/src/test/kotlin/org/skellig/teststep/processor/jdbc/JdbcSelectRequestExecutorTest.kt | skellig-framework | 263,021,995 | false | {"Kotlin": 1283314, "CSS": 525991, "Java": 270216, "FreeMarker": 66859, "HTML": 11313, "ANTLR": 6165} | package org.skellig.teststep.processor.jdbc
import org.junit.jupiter.api.*
import org.junit.jupiter.api.Assertions.assertEquals
import org.mockito.Mockito
import org.mockito.kotlin.*
import org.skellig.teststep.processing.exception.TestStepProcessingException
import org.skellig.teststep.processor.db.model.DatabaseReq... | 8 | Kotlin | 0 | 3 | ed375268b0e444f1928f22f4ac27603e9d1fb66b | 7,014 | skellig-core | Apache License 2.0 |
app/src/main/java/com/yt/graduation/repository/DetailProductRepository.kt | yusuf-teker | 455,260,775 | false | null | package com.yt.graduation.repository
import android.util.Log
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.database.*
import com.google.firebase.database.ktx.database
import com.google.firebase.ktx.Firebase
import com.yt.graduation.model.User
import com.yt.graduation.util.FirebaseResultListen... | 0 | Kotlin | 0 | 0 | 8bdc3a2015fcf2beac912509b598d1d72149cf37 | 5,970 | Graduation | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsworkload/service/NotificationServiceTests.kt | ministryofjustice | 378,843,394 | false | null | package uk.gov.justice.digital.hmpps.hmppsworkload.service
import io.mockk.every
import io.mockk.mockk
import io.mockk.slot
import io.mockk.verify
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.springframework.data.repository.findByIdOrNull
... | 4 | Kotlin | 0 | 0 | f92a7903fdfb943e82c070f87797ff55150bc2e2 | 30,875 | hmpps-workload | MIT License |
lib/src/test/kotlin/com/w2sv/kotlinutils/extensions/BooleanKtTest.kt | w2sv | 559,967,219 | false | {"Kotlin": 4239, "Makefile": 351} | package com.w2sv.kotlinutils.extensions
import org.junit.Assert.assertEquals
import org.junit.Test
class BooleanKtTest {
@Test
fun toInt() {
assertEquals(0, false.toInt())
assertEquals(1, true.toInt())
}
@Test
fun toNonZeroInt() {
assertEquals(-1, false.toNonZeroInt())
... | 1 | Kotlin | 0 | 0 | 30352388c6690e4d6440d498b99384bb24193229 | 370 | KotlinUtils | MIT License |
maestro-ai/src/main/java/maestro/ai/openai/Response.kt | mobile-dev-inc | 476,427,476 | false | {"Kotlin": 1025452, "TypeScript": 199278, "Swift": 61726, "JavaScript": 16304, "Shell": 14163, "CSS": 2349, "Smarty": 904, "HTML": 358} | package maestro.ai.openai
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class ChatCompletionResponse(
val id: String,
val `object`: String,
val created: Long,
val model: String,
@SerialName("system_fingerprint") val systemFingerprint: String? ... | 374 | Kotlin | 273 | 5,808 | e957c5ef248afe672c2ba0bda3c555880a3dc990 | 1,012 | maestro | Apache License 2.0 |
LibFileDownloader/src/main/java/android/qfh/libs/fileDownloader/Log.kt | ylqd | 658,024,878 | false | null | package android.qfh.libs.fileDownloader
import android.util.Log
// ============ debug ===================//
private const val TAG = "FileDownloadManager"
private const val DEBUG = false
internal fun logD(msg: String) {
if (DEBUG) {
Log.d(TAG, msg)
}
}
internal fun logW(msg: String) {
if (DEBUG)... | 0 | Kotlin | 0 | 0 | 47d80388c714614ce72b468e7ea8b47b578250f6 | 399 | QfhAndroidLibs | Apache License 2.0 |
src/main/kotlin/com/nofriends/gigachat/config/WebSocketConfiguration.kt | Nhrot22230 | 831,207,369 | false | {"Kotlin": 31285, "HTML": 11725, "JavaScript": 5252, "CSS": 3780, "Dockerfile": 483} | package com.nofriends.gigachat.config
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Configuration
import org.springframework.messaging.simp.config.ChannelRegistration
import org.springframework.messaging.simp.config.MessageBrokerRegistry
import org.springfr... | 0 | Kotlin | 0 | 1 | 0d5155e5453b0c201bb7da1df0a903133fd8d2c0 | 1,232 | GigaChatBackEnd | MIT License |
src/main/kotlin/de/sambalmueslie/openevent/storage/DataObjectRepository.kt | Black-Forrest-Development | 542,810,521 | false | {"Kotlin": 334759, "TypeScript": 179633, "HTML": 73007, "SCSS": 3950, "Batchfile": 202} | package de.sambalmueslie.openevent.storage
import io.micronaut.data.repository.PageableRepository
interface DataObjectRepository<T, O : DataObject> : PageableRepository<O, T> {
fun findByIdIn(ids: Set<T>): List<O>
}
| 6 | Kotlin | 0 | 1 | 43cf66668db937150ae8f14078437c1e5a7287e2 | 222 | open-event | Apache License 2.0 |
clevertap-core/src/test/java/com/clevertap/android/sdk/inapp/images/preload/FilePreloaderExecutorsTest.kt | CleverTap | 42,078,482 | false | {"Java": 1808395, "Kotlin": 1695745, "HTML": 10233} | package com.clevertap.android.sdk.inapp.images.preload
import android.graphics.Bitmap
import com.clevertap.android.sdk.TestLogger
import com.clevertap.android.sdk.inapp.data.CtCacheType
import com.clevertap.android.sdk.inapp.images.FileResourceProvider
import com.clevertap.android.sdk.task.MockCTExecutors
import io.mo... | 9 | Java | 74 | 80 | 2968228861fc6584424c28e30ddc570994465d79 | 6,602 | clevertap-android-sdk | MIT License |
features/hiring/ui/src/main/java/io/github/rysanekrivera/ui/viewmodels/HiringViewModel.kt | RysanekRivera | 864,401,973 | false | {"Kotlin": 59167} | package io.github.rysanekrivera.ui.viewmodels
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import io.github.rysanekrivera.common.uiEvents.UiEvent
import io.github.rysanekrivera.common.uistate.UiState
import io.github.rysanekrivera.commo... | 0 | Kotlin | 0 | 0 | c25dfa5774c750fa1d661f2849198a8f04ac3540 | 2,298 | Hiring | Apache License 2.0 |
app/src/test/java/org/wikipedia/descriptions/DescriptionEditClientTest.kt | wikimedia | 13,862,999 | false | {"Kotlin": 3495497, "Python": 24797, "Java": 4408, "Jinja": 533, "Shell": 521} | package org.wikipedia.descriptions
import kotlinx.coroutines.runBlocking
import org.hamcrest.MatcherAssert
import org.hamcrest.Matchers
import org.junit.Test
import org.mockito.Mockito
import org.wikipedia.dataclient.WikiSite
import org.wikipedia.dataclient.mwapi.MwException
import org.wikipedia.dataclient.wikidata.En... | 29 | Kotlin | 624 | 2,365 | 175db9fe3c28084af7290a934f38223eb14934ed | 7,306 | apps-android-wikipedia | Apache License 2.0 |
app/src/main/java/com/tanjiajun/jsonrecyclerview/utils/StringUtils.kt | TanJiaJunBeyond | 372,248,347 | false | null | package com.tanjiajun.jsonrecyclerview.utils
import java.util.regex.Pattern
/**
* Created by TanJiaJun on 5/29/21.
*/
private val urlPattern: Pattern = Pattern.compile(
// 验证是否是http://、https://、ftp://、rtsp://、mms://其中一个
"^((http|https|ftp|rtsp|mms)?://)?" +
// 判断字符是否为FTP地址(ftp://user:password@)
... | 1 | Kotlin | 1 | 29 | 57fb967b637f160e20fd618fbbd15d8323bccad2 | 4,211 | JSONRecyclerView | Apache License 2.0 |
ksp-xposed/src/main/java/mufanc/easyhook/api/IXposedEntry.kt | Mufanc | 460,466,174 | false | {"Kotlin": 26558} | package mufanc.easyhook.api
import de.robv.android.xposed.IXposedHookLoadPackage
import de.robv.android.xposed.IXposedHookZygoteInit
interface IXposedEntry : IXposedHookZygoteInit, IXposedHookLoadPackage
| 0 | Kotlin | 3 | 9 | e812a2808b0aab66e83ed3e5e646bdb7f1ffa3dc | 206 | EasyHook | MIT License |
app/src/main/kotlin/com/example/siuang_apps/MainActivity.kt | vernandaspw | 811,377,300 | false | {"Kotlin": 124} | package com.example.siuang_apps
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity()
| 0 | Kotlin | 0 | 0 | 4708b7304dc7d6b750f5ebd586b6428adc22e481 | 124 | siuang | Apache License 2.0 |
app/src/main/java/com/example/kernel/presentation/shared/MainTopAppBar.kt | BENJAHJP | 592,411,726 | false | null | package com.example.kernel.presentation.shared
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material3.Button
import androidx.compose.m... | 0 | Kotlin | 0 | 1 | 9930fb6d6873d82fc941605b642f77369cdd1b8c | 3,178 | Yum | MIT License |
src/test/kotlin/com/southsun/refapp/RefAppApplicationTests.kt | marcinziolo | 418,817,955 | false | {"Kotlin": 7133} | package com.southsun.refapp
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class RefAppApplicationTests {
@Test
fun contextLoads() {
}
}
| 0 | Kotlin | 0 | 0 | 5be4621e61a05c441e98a8e5877103cf835c1540 | 216 | active-mq-example | Enlightenment License (e16) |
fourthline/src/main/java/de/solarisbank/sdk/fourthline/feature/ui/intro/FourthlineIntroViewModel.kt | Solarisbank | 336,233,277 | false | {"Kotlin": 468986, "Java": 6478, "Shell": 1215} | package de.solarisbank.sdk.fourthline.feature.ui.intro
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import de.solarisbank.sdk.data.utils.IdenthubDispatchers
import de.solarisbank.sdk.data.utils.update
import de... | 0 | Kotlin | 0 | 6 | 1d3ffe547767d49c6a81c4198469c2b491648c83 | 2,335 | identhub-android | MIT License |
client/src/test/kotlin/CafetFilesTests.kt | defvs | 740,113,757 | false | {"Kotlin": 10761} | import dev.defvs.cafet.client.files.CafetFolder.Companion.findSuitableCafetFolders
import io.kotest.core.spec.style.FunSpec
import kotlin.io.path.Path
class CafetFilesTests : FunSpec({
test("Find compatible folders") {
val rootFolder = Path("""C:\Users\danie\Desktop\testmusic\""")
rootFolder.findSuitableCafetFold... | 0 | Kotlin | 0 | 1 | 21c51ef71ea95761f17cfcfbe9b2ba0a27cf1231 | 372 | cafet | MIT License |
app/src/main/java/com/paz/velocity_recorder/db/DataDao.kt | pandegaabyan | 721,376,869 | false | {"Kotlin": 86077} | package com.paz.velocity_recorder.db
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
@Dao
interface DataDao {
// rides table
@Insert(onConflict = OnConflictStrategy.IGNORE)
suspend fun addRide(ride:... | 0 | Kotlin | 0 | 1 | 9c41eb726896b2a6cb71d5569d2203ee88768acb | 2,281 | velocity-recorder-app | MIT License |
opensrp-unicef-tunisia/src/test/java/org/smartregister/uniceftunisia/reporting/register/ReportRegisterPresenterTest.kt | opensrp | 261,193,229 | false | {"Java": 364131, "Kotlin": 198622} | package org.smartregister.uniceftunisia.reporting.register
import android.app.Activity
import io.mockk.justRun
import io.mockk.mockkClass
import io.mockk.unmockkAll
import io.mockk.verify
import org.junit.After
import org.junit.Assert.assertNotNull
import org.junit.Before
import org.junit.Test
import org.smartregister... | 13 | Java | 1 | 0 | 09130dc7ddb457d1234d4da20da5234819cfde3c | 1,410 | opensrp-client-unicef-tunisia | Apache License 2.0 |
app/src/main/java/com/ijs/abminder/calculator/options/AmortizationFragment.kt | ijscreate | 785,375,972 | false | {"Kotlin": 868465, "Roff": 59377, "AIDL": 765, "CSS": 156} | package com.ijs.abminder.calculator.options
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.TableLayout
import android.widget.TableRow
import android.widget.TextView
import android.widget.Toast
import ... | 0 | Kotlin | 0 | 1 | 6f85983cdeac02532df43157d7ae570a057a77c9 | 10,176 | ABMinder | MIT License |
themes/new-ui/new-ui-standalone/src/main/kotlin/org/jetbrains/jewel/themes/expui/standalone/control/TextArea.kt | JetBrains | 440,164,967 | false | null | package org.jetbrains.jewel.themes.expui.standalone.control
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.interaction.collectIsFocusedAsState
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.... | 17 | Kotlin | 11 | 318 | 817adc042a029698983c9686d0f1497204bfdf14 | 8,459 | jewel | Apache License 2.0 |
src/main/kotlin/org/k9m/warehouse/WarehouseApp.kt | k9m | 382,888,625 | false | null | package org.k9m.warehouse
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.transaction.annotation.EnableTransactionManagement
@SpringBootApplication
@EnableTransactionManagement
class WarehouseApiApplication
fun main(args: A... | 0 | Kotlin | 0 | 0 | b153a8cd09077cab1c8b0864ebd6307a26b0b052 | 386 | warehouse-api | MIT License |
core/src/io/github/tozydev/patek/gui/GuiActions.kt | tozydev | 773,615,401 | false | {"Kotlin": 128971, "Java": 2674} | @file:Suppress("unused")
package io.github.tozydev.patek.gui
import io.github.tozydev.patek.event.cancel
import io.github.tozydev.patek.gui.slot.ClickInstance
import io.github.tozydev.patek.gui.slot.GuiSlot
import io.github.tozydev.patek.inventory.orEmpty
import org.bukkit.entity.Player
import org.bukkit.event.invent... | 0 | Kotlin | 0 | 1 | f5b0fd5ba40c51dd53934d3bb5b41052675fb205 | 4,133 | patek | MIT License |
server/src/main/kotlin/com/thoughtworks/archguard/change/controller/DiffChangeController.kt | archguard | 460,910,110 | false | {"Kotlin": 1763628, "Java": 611399, "TypeScript": 11395, "C#": 5593, "Dockerfile": 2549, "C": 1223, "Shell": 926, "JavaScript": 400, "Go": 291, "Scala": 97, "Python": 42, "Rust": 32} | package com.thoughtworks.archguard.change.controller
import com.thoughtworks.archguard.change.application.DiffChangeApplicationService
import com.thoughtworks.archguard.change.domain.model.DiffChange
import com.thoughtworks.archguard.systeminfo.domain.SystemInfoService
import org.springframework.web.bind.annotation.Ge... | 1 | Kotlin | 89 | 575 | 049f3cc8f2c0e2c34e65bb0049f645caa5be9bf8 | 1,602 | archguard | MIT License |
kool-editor/src/commonMain/kotlin/de/fabmax/kool/editor/actions/SetDrawGroupAction.kt | kool-engine | 81,503,047 | false | {"Kotlin": 5929566, "C++": 3256, "CMake": 1870, "HTML": 1464, "JavaScript": 597} | package de.fabmax.kool.editor.actions
import de.fabmax.kool.editor.api.GameEntity
class SetDrawGroupAction(
entities: List<GameEntity>,
val applyGroup: Int
) : GameEntityAction(entities) {
private val undoGroups = entities.associate { it.id to it.entityData.settings.drawGroupId }
override fun doActi... | 11 | Kotlin | 20 | 303 | 8d05acd3e72ff2fc115d0939bf021a5f421469a5 | 626 | kool | Apache License 2.0 |
shared-client/src/commonMain/kotlin/Dependencies.kt | russhwolf | 211,318,216 | false | null | package com.example.multiplatform.shared.client
import io.ktor.client.engine.HttpClientEngine
expect val httpClientEngine: HttpClientEngine
expect val host: String
| 0 | Kotlin | 4 | 98 | 5332ce22ac983c634865d371116b14130a4e71d5 | 166 | multiplatform-hello | Apache License 2.0 |
app/src/main/java/com/astrog/sheduleapp/internal/room/ScheduleDatabase.kt | blast-sky | 628,681,758 | false | null | package com.astrog.sheduleapp.internal.room
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.astrog.sheduleapp.internal.room.converter.DateTimeConverters
import com.astrog.sheduleapp.internal.room.converter.KindOfWorkConverter
import com.astrog.sheduleapp.i... | 0 | Kotlin | 0 | 1 | 9d05d05e54a304e199fb4dab24f18ec4a48c1d58 | 708 | unn-schedule-app | Apache License 2.0 |
app/src/main/java/com/example/moneypal/utils/UserCard.kt | hyacintheph | 508,769,624 | false | {"Kotlin": 181976} | package com.example.moneypal.utils
import android.net.Uri
import androidx.compose.foundation.Image
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.Icon
import androidx.compose.material.IconButton... | 0 | Kotlin | 0 | 0 | 0e057d7a14d82e39d01ef467d4ac443b0a471cb8 | 3,637 | MoneyPal | Apache License 2.0 |
app/src/main/java/com/cwb/androiddevbr/cidadaodebem/ui/main/MainViewModel.kt | brunoha-zz | 141,664,946 | true | {"Kotlin": 6553, "Java": 667} | package com.cwb.androiddevbr.cidadaodebem.ui.main
import androidx.lifecycle.MutableLiveData
import com.cwb.androiddevbr.cidadaodebem.ui.base.BaseViewModel
class MainViewModel :BaseViewModel(){
val mutableLiveData = MutableLiveData<String>().apply {
value = "uhull"
}
} | 0 | Kotlin | 0 | 0 | 59a7b49ad71a327b9d2b9713f9453e5af60919f2 | 289 | cidadaodebem | MIT License |
src/main/kotlin/com/github/strindberg/emacssearchandcase/movement/ExchangePointAndMarkHandler.kt | strindberg | 497,232,016 | false | {"Kotlin": 206743} | package com.github.strindberg.emacssearchandcase.movement
import com.intellij.openapi.actionSystem.DataContext
import com.intellij.openapi.editor.Caret
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.editor.actionSystem.EditorActionHandler
import com.intellij.openapi.editor.ex.EditorEx
class Exc... | 0 | Kotlin | 0 | 0 | 721c2f2603b26621f4d9dc70dbafa44ef22fc29d | 1,044 | emacs-search-and-case | Apache License 2.0 |
basic/src/main/java/com/mozhimen/taskk/provider/basic/annors/ATaskQueueName.kt | mozhimen | 737,202,327 | false | {"Kotlin": 421967, "Java": 6683} | package com.mozhimen.taskk.provider.basic.annors
import androidx.annotation.StringDef
/**
* @ClassName ATaskName
* @Description TODO
* @Author mozhimen
* @Date 2024/8/20
* @Version 1.0
*/
@StringDef(
ATaskName.TASK_DOWNLOAD,
ATaskName.TASK_VERIFY,
ATaskName.TASK_UNZIP,
ATaskName.TASK_INSTALL,
... | 0 | Kotlin | 0 | 3 | abfe3e40f0a301bb6e5253a9711f75b9266d3d8a | 702 | ATaskKit_Provider | Apache License 2.0 |
frontend-example/modules/material-design/src/jsMain/kotlin/io/github/andrewk2112/kjsbox/frontend/example/materialdesign/designtokens/reference/ReferenceSizes.kt | andrew-k-21-12 | 497,585,003 | false | {"Kotlin": 370134, "JavaScript": 7404, "HTML": 726} | package io.github.andrewk2112.kjsbox.frontend.example.materialdesign.designtokens.reference
import io.github.andrewk2112.kjsbox.frontend.core.designtokens.Sizes
import kotlinx.css.px
class ReferenceSizes : Sizes {
val absolute1 = 1.px
val absolute4 = 4.px
val absolute32 = 32.px
val absolute48 ... | 0 | Kotlin | 0 | 3 | ab6c0e4ee9b0f18fff8c1eb71a188e3d76fd2823 | 482 | kjs-box | MIT License |
src/main/kotlin/nucleus/common/impl/registrar/DeferredRegistrar.kt | NiChrosia | 430,499,404 | false | null | package nucleus.common.impl.registrar
import nucleus.common.api.registrar.Registrar
open class DeferredRegistrar<K, V>(val backend: () -> MutableMap<K, V>) : Registrar<K, V> {
override fun get(key: K): V {
val map = backend()
return map[key] ?: throw noElementFound(key)
}
override fun <T... | 0 | Kotlin | 1 | 0 | b73ee4690590ac5fc4657e2a75f48d429797b6b0 | 441 | Nucleus | MIT License |
app/src/main/java/org/coepi/android/domain/UnixTime.kt | yibter | 260,080,429 | true | {"Kotlin": 137981} | package org.coepi.android.domain
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
import java.util.Date
@Parcelize
class UnixTime private constructor(val value: Long) : Parcelable {
companion object {
fun fromValue(value: Long): UnixTime =
UnixTime(value)
fun minT... | 0 | null | 0 | 0 | e64a035f5b7a154733ef09db0d8d7c0d5cb5efa2 | 715 | app-android | MIT License |
mbway/src/test/java/com/adyen/checkout/mbway/DefaultMBWayDelegateTest.kt | leandromagnabosco | 533,836,687 | false | null | /*
* Copyright (c) 2022 Adyen N.V.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by josephj on 25/7/2022.
*/
package com.adyen.checkout.mbway
import app.cash.turbine.test
import com.adyen.checkout.components.model.paymentmethods.PaymentMethod
i... | 2 | Kotlin | 0 | 0 | c154e989a08f1dc76cf90f6949878621cbbfa644 | 4,812 | testsonarcloud | MIT License |
executor/invoker/src/commonMain/kotlin/io/github/charlietap/chasm/executor/invoker/instruction/aggregate/AggregateInstructionExecutor.kt | CharlieTap | 743,980,037 | false | {"Kotlin": 2026253, "WebAssembly": 45714} | @file:Suppress("NOTHING_TO_INLINE")
package io.github.charlietap.chasm.executor.invoker.instruction.aggregate
import com.github.michaelbull.result.Result
import com.github.michaelbull.result.binding
import io.github.charlietap.chasm.ast.instruction.AggregateInstruction
import io.github.charlietap.chasm.executor.invok... | 4 | Kotlin | 3 | 61 | 70772acc37462bb98dae7bcbf1a29f8ed6dbefa7 | 6,085 | chasm | Apache License 2.0 |
src/main/kotlin/uk/co/ben_gibson/git/link/ui/actions/annotation/CommitBrowserAction.kt | cdambo | 419,691,103 | true | {"Kotlin": 89867} | package uk.co.ben_gibson.git.link.ui.actions.annotation
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.project.Project
import git4idea.annotate.GitFileAnnotation
import uk.co.ben_gibson.git.link.ui.actions.Action
import com.intellij.openapi.vcs.annotate.UpToDateLineNumberListener;
i... | 0 | Kotlin | 0 | 0 | 2a82df9f0c0d3c83fc599c89745357af8e648dbd | 937 | GitLink | MIT License |
library/src/main/java/cloud/pace/sdk/api/pay/generated/request/paymentMethods/PaymentMethodModelAPI.kt | pace | 303,641,261 | false | null | /*
* PLEASE DO NOT EDIT!
*
* Generated by SwagGen with Kotlin template.
* https://github.com/pace/SwagGen
*/
package cloud.pace.sdk.api.pay.generated.request.paymentMethods
import cloud.pace.sdk.api.pay.PayAPI
import cloud.pace.sdk.api.pay.generated.model.*
import cloud.pace.sdk.api.request.BaseRequest
import re... | 0 | Kotlin | 1 | 5 | c459c30690f3c2c480986312a3d837698ce028bc | 2,088 | cloud-sdk-android | MIT License |
src/main/java/com/coinpaprika/apiclient/repository/tag/TagApi.kt | MDLlife | 191,176,372 | true | {"Kotlin": 86987, "Java": 725} | /*
* Created by <NAME> on 09.01.19 12:43
*/
package com.coinpaprika.apiclient.repository.tag
import android.content.Context
import com.coinpaprika.apiclient.api.BaseApi
import com.coinpaprika.apiclient.api.CoinpaprikaApiFactory
import com.coinpaprika.apiclient.entity.TagEntity
import com.coinpaprika.apiclient.excep... | 0 | Kotlin | 1 | 0 | 53f56558aaf29c5ab1f16c5f75eb4caa48b1fad2 | 1,754 | coinpaprika-api-kotlin-client | MIT License |
src/test/kotlin/no/nav/dagpenger/regel/api/models/SubsumsjonTest.kt | chriswk | 341,568,235 | true | {"Kotlin": 191164, "HTML": 511, "Dockerfile": 338, "C#": 282, "PHP": 193} | package no.nav.dagpenger.regel.api.models
import io.kotest.matchers.shouldBe
import io.kotest.matchers.shouldNotBe
import no.nav.dagpenger.events.Problem
import org.junit.jupiter.api.Test
import java.time.LocalDate
import java.time.YearMonth
internal class SubsumsjonTest {
@Test
fun `Map to JSON string`() {
... | 0 | null | 0 | 0 | b93c7efdac27fcdf0436284bed3b23df15dbacd7 | 2,507 | dp-regel-api | MIT License |
src/main/kotlin/nieldw/socially/domain/sagas/RelationshipSaga.kt | nieldw | 147,417,454 | false | null | package nieldw.socially.domain.sagas
import nieldw.socially.domain.InteractionScore
import nieldw.socially.domain.RelationshipLevel
import nieldw.socially.domain.commands.UpdateRelationshipLevelCommand
import nieldw.socially.domain.events.InteractionAddedEvent
import org.axonframework.commandhandling.gateway.CommandGa... | 0 | Kotlin | 2 | 9 | e3bf090c836d76766a13fab34c6105c0116fbf54 | 1,670 | ContactsAxonDemo | MIT License |
core-db/src/androidTest/java/io/novafoundation/nova/core_db/dao/TokenDaoTest.kt | novasamatech | 415,834,480 | false | null | package io.novafoundation.nova.core_db.dao
import androidx.test.ext.junit.runners.AndroidJUnit4
import io.novafoundation.nova.core_db.AppDatabase
import kotlinx.coroutines.runBlocking
import org.junit.Test
import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class)
class TokenDaoTest : DaoTest<TokenDao>(AppDatabas... | 9 | Kotlin | 1 | 5 | cf829fc7fe201b1051b850cb9cfe4ffbdc82f754 | 2,036 | nova-wallet-android | Apache License 2.0 |
composeApp/src/commonMain/kotlin/ru/sportivityteam/vucmirea/assistant/presentation/screens/lesson/LessonSM.kt | SportivityTeam | 753,183,017 | false | {"Kotlin": 104865, "Swift": 532} | package ru.sportivityteam.vucmirea.assistant.presentation.screens.lesson
import ru.sportivityteam.vucmirea.assistant.presentation.ui.mvi.BaseStateScreenModel
class LessonSM: BaseStateScreenModel<LessonViewState, LessonViewAction, LessonViewEvent>
(initialState = LessonViewState()) {
override fun obtainEvent(v... | 0 | Kotlin | 0 | 2 | 0b3d1ea9f7be4a5df754469230bfed0fdc3de5f2 | 392 | assistant-vuc-mirea | MIT License |
core/network/src/main/java/dev/sijanrijal/popularmovies/core/network/services/popular/Popular.kt | sijanr | 263,267,988 | false | {"Kotlin": 87745} | package dev.sijanrijal.popularmovies.core.network.services.popular
import com.google.gson.annotations.SerializedName
data class PopularMoviesResponse(
@SerializedName("pages") val pageNumber: Int = 1,
@SerializedName("results") val movies: List<PopularMovies>
)
data class PopularMovies(
@SerializedName("... | 4 | Kotlin | 0 | 0 | 85da1e7726ecef24868626b65025d1c9628e47a3 | 683 | popular-movies | Apache License 2.0 |
src/main/kotlin/me/damon/schoolbot/commands/main/dev/ExportErrorLog.kt | day-mon | 450,948,808 | false | {"Kotlin": 308718, "Dockerfile": 1374} | package me.damon.schoolbot.commands.main.dev
import me.damon.schoolbot.Constants
import me.damon.schoolbot.objects.command.Command
import me.damon.schoolbot.objects.command.CommandCategory
import me.damon.schoolbot.objects.command.CommandEvent
import net.dv8tion.jda.api.exceptions.ErrorHandler
import net.dv8tion.jda.a... | 0 | Kotlin | 0 | 2 | 7fc75f84a247060a53049ca04eb9c61fedf4b3b8 | 1,797 | Schoolbot-kt | Apache License 2.0 |
serve-app/common/src/main/java/org/evidyaloka/common/ui/boardgradefilter/BoardGradeView.kt | Sunbird-Serve | 607,662,046 | false | null | package org.evidyaloka.common.ui.boardgradefilter
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.ArrayAdapter
import androidx.constraintlayout.widget.ConstraintLayout
import org.evidyaloka.common.R
import org.evidyaloka.common.databinding.Layout... | 0 | Kotlin | 1 | 0 | 6d8d170333e2d32c808e608863e02e076dc06a73 | 1,756 | serve-beta-android-app | MIT License |
src/main/kotlin/dev/emortal/bs/event/Event.kt | emortalmc | 384,565,027 | false | null | package dev.emortal.bs.event
import dev.emortal.bs.game.BlockSumoGame
import net.kyori.adventure.text.Component
import net.kyori.adventure.text.format.NamedTextColor
import net.kyori.adventure.text.format.TextDecoration
import java.time.Duration
import kotlin.reflect.full.primaryConstructor
sealed class Event {
... | 8 | Kotlin | 0 | 1 | f5038c196f3eeed0dd56af0fb80c8b4776f6db59 | 1,007 | BlockSumo | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.