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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
core/src/main/java/com/cheise_proj/core/shared/ui/auth/login/LoginUser.kt | Bik-KrlvnOrg | 303,635,031 | false | null | package com.cheise_proj.core.shared.ui.auth.login
data class LoginUser(val username: String?, val password: String?, val type: String?) | 9 | Kotlin | 0 | 1 | 65c792e180437590bd6dcf2f4ef6b4703141bd9a | 136 | SMS_APP | Apache License 2.0 |
analyzer/src/main/kotlin/MavenSupport.kt | jeffmcaffer | 114,395,628 | false | null | /*
* Copyright (c) 2017-2018 HERE Europe B.V.
*
* 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... | 0 | null | 0 | 1 | c05c57e9eaff25249ff3c26c79aa140a5af1f0e8 | 16,491 | oss-review-toolkit | Apache License 2.0 |
android/features/login/login_domain/src/test/java/com/iprayforgod/login_domain/usecases/registration/RegisterUserUseCaseTest.kt | devrath | 507,511,543 | false | {"Kotlin": 219977, "Java": 712} | package com.iprayforgod.login_domain.usecases.registration
import com.droid.core_mock.core.domain.models.UserMocks
import com.droid.core_mock.core.domain.models.UserMocks.MockCredentials.InvalidCredentials.IN_VALID_CONFIRM_PASSWORD
import com.droid.core_mock.core.domain.models.UserMocks.MockCredentials.InvalidCredenti... | 0 | Kotlin | 4 | 18 | 060080c93dc97279603be3efe5a228eadc71f41a | 4,841 | droid-pure-kotlin-application | Apache License 2.0 |
client/src/test/java/org/phoenixframework/liveview/test/ui/view/SpacerShotTest.kt | liveview-native | 459,214,950 | false | {"Kotlin": 2229783, "Elixir": 104334, "ANTLR": 4846} | package org.phoenixframework.liveview.test.ui.view
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.size
import androidx.compose.material3.Text
import androidx.compose.ui.Alignment
i... | 110 | Kotlin | 3 | 99 | 966beddce2bbf216f85b908e9ec8a43bc572433c | 2,383 | liveview-client-jetpack | MIT License |
src/test/kotlin/nl/jackploeg/aoc/_2022/calendar/day16/Day16Test.kt | jackploeg | 736,755,380 | false | {"Kotlin": 318734} | package nl.jackploeg.aoc._2022.calendar.day16
import javax.inject.Inject
import nl.jackploeg.aoc._2022.DaggerTestDayComponent
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
internal class Day16Test {
@Inject
lateinit var day16: D... | 0 | Kotlin | 0 | 0 | f2b873b6cf24bf95a4ba3d0e4f6e007b96423b76 | 1,034 | advent-of-code | MIT License |
client/app/src/main/java/com/example/healthc/presentation/profile/model/ProfileUiModel.kt | Solution-Challenge-HealthC | 601,915,784 | false | null | package com.example.healthc.presentation.profile.model
data class ProfileUiModel(
val allergy : String,
val imageSrc : String
)
| 5 | Kotlin | 1 | 2 | d74bff575502c4360e9735e8d558b907240ed4fe | 137 | HealthC_Android | MIT License |
app-data/src/main/java/com/kotlin/android/app/data/entity/monopoly/MyPocket.kt | R-Gang-H | 538,443,254 | false | null | package com.kotlin.android.app.data.entity.monopoly
import com.kotlin.android.app.data.ProguardRule
/**
* 我的口袋信息
*
* Created on 2020/9/27.
*
* @author o.s
*/
data class MyPocket(
var userInfo: UserInfo? = null, // 当前用户信息
// var hitToolCard: HitToolCard? = null, // 命中道具卡信息
// var suitInfo: ... | 0 | Kotlin | 0 | 1 | e63b1f9a28c476c1ce4db8d2570d43a99c0cdb28 | 708 | Mtime | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/Bahai.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 5,610 | icons | MIT License |
MVVM-WanAndroid/app/src/main/java/com/wlm/mvvm_wanandroid/common/Constant.kt | wangliming123 | 189,384,638 | false | null | package com.wlm.mvvm_wanandroid.common
class Constant {
companion object {
const val IS_LOGIN = "is_login"
const val USER_STRING = "USER_STRING"
const val TODO_STATUS_TODO = 0//未完成
const val TODO_STATUS_FINISHED = 1//已完成
const val TODO_FINISH = 101
const val TODO_DE... | 0 | Kotlin | 0 | 0 | 08cc0303d1d9badbbe877f85278f409326511bef | 443 | kotlinDemos | Apache License 2.0 |
app/src/main/java/com/istu/schedule/ui/components/calendar/HorizontalCalendar.kt | imysko | 498,018,609 | false | {"Kotlin": 846714} | package com.istu.schedule.ui.components.calendar
import androidx.compose.foundation.gestures.detectHorizontalDragGestures
import androidx.compose.foundation.gestures.scrollBy
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Co... | 1 | Kotlin | 1 | 2 | 832c06b891f1c9088d6871e76c7eb3956d9cf762 | 5,537 | Schedule-ISTU | MIT License |
precompose/src/commonMain/kotlin/moe/tlaster/precompose/navigation/RouteBuilder.kt | cybernetics | 352,203,488 | true | {"Kotlin": 93077} | package moe.tlaster.precompose.navigation
import androidx.compose.runtime.Composable
import moe.tlaster.precompose.navigation.route.DialogRoute
import moe.tlaster.precompose.navigation.route.Route
import moe.tlaster.precompose.navigation.route.SceneRoute
import moe.tlaster.precompose.navigation.transition.NavTransitio... | 0 | null | 0 | 0 | 32b78d22d7d5e7d4ac2dfe81cd7c55aaa1a837f9 | 1,452 | PreCompose | MIT License |
app/src/main/kotlin/com/beyondtechnicallycorrect/visitordetector/ApplicationComponent.kt | jeffcharles | 48,834,757 | false | null | package com.beyondtechnicallycorrect.visitordetector
import com.beyondtechnicallycorrect.visitordetector.activities.MainActivity
import com.beyondtechnicallycorrect.visitordetector.broadcastreceivers.AlarmReceiver
import com.beyondtechnicallycorrect.visitordetector.broadcastreceivers.BootReceiver
import com.beyondtech... | 1 | null | 1 | 1 | 1333c320442d119bfb0056cad0d404aa215c3625 | 869 | visitor-detector | MIT License |
src/main/kotlin/io/github/cottonmc/enpassant/EnPassant.kt | CottonMC | 231,198,798 | false | null | package io.github.cottonmc.enpassant
import io.github.cottonmc.enpassant.task.EnPassantProguardTask
import io.github.cottonmc.enpassant.task.MergeJarWithDirectoryTask
import io.github.cottonmc.enpassant.task.RenameReferencesTask
import io.github.cottonmc.enpassant.util.JsonUtil
import net.fabricmc.loom.task.RemapJarTa... | 0 | Kotlin | 1 | 1 | 91a5b2f83699d6c482547b29048d9d0a4542aa51 | 7,287 | EnPassant | MIT License |
ktor/src/main/kotlin/io/github/learnyouahaskell/test/app/Application.kt | chrisdenman | 865,768,398 | false | {"Kotlin": 71373, "Shell": 23753} | package io.github.learnyouahaskell.test.app
import io.github.learnyouahaskell.test.configuration.loadFrom
import io.ktor.server.application.Application
import io.ktor.server.engine.applicationEngineEnvironment
import io.ktor.server.engine.connector
import io.ktor.server.engine.embeddedServer
import io.ktor.server.engi... | 5 | Kotlin | 0 | 1 | 96aa80e42d636d191bd18db1a499ec995f625a3e | 1,934 | test.learnyouahaskell.github.io | The Unlicense |
app/src/main/java/com/sgc/speedometer/ui/history/HistoryAdapter.kt | Mister-Casper | 314,770,401 | false | {"Java": 89978, "C++": 81159, "Kotlin": 80355, "C": 9247, "QMake": 1112, "AIDL": 235, "Shell": 142} | package com.sgc.speedometer.ui.history
import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.sgc.speedometer.R
import com.sgc.speedometer.data.DataManage... | 1 | null | 1 | 1 | 152b68a8699e811bd98af2d80ae2248b50f79afa | 3,072 | SpeedometerAndroidApplication | MIT License |
app/src/main/java/io/mangel/issuemanager/api/tasks/AbstractApiAsyncTask.kt | baupen | 198,594,527 | false | null | package io.mangel.issuemanager.api.tasks
import io.mangel.issuemanager.api.*
import org.greenrobot.eventbus.EventBus
abstract class AbstractApiAsyncTask<T, T2>(private val client: Client) :
AbstractProgressAsyncTask<T, ApiResponse<T2>?>() {
protected abstract fun callApi(request: T, client: Client): ApiResp... | 0 | Kotlin | 0 | 1 | bb8c9413db280c826c405e1efa7cd14ba66b238b | 1,106 | Android | MIT License |
boilerplate2020/src/main/java/pro/tlrs/boilerplate2020/lifecycle/ViewModel.kt | TheLongRunSmoke | 354,550,902 | false | null | package pro.tlrs.boilerplate2020.lifecycle
import androidx.lifecycle.LiveData
import pro.tlrs.boilerplate2020.lives.SingleLiveEvent
/**
* Viewmodel parametrized by state class or superclass.
*/
open class ViewModel<STATE> : androidx.lifecycle.ViewModel() {
/**
* Back field for state.
* Use _state.valu... | 0 | Kotlin | 0 | 1 | 93795d57fefb1a9da2efe171274092fd710aa306 | 564 | android-boilerplate-2020 | Apache License 2.0 |
src/main/kotlin/aoc2015/Day02.kt | w8mr | 572,700,604 | false | {"Kotlin": 140954} | package aoc2015
import aoc.parser.Parsers.eol
import aoc.parser.Parsers.number
import aoc.parser.and
import aoc.parser.oneOrMore
import aoc.parser.seq
class Day02() {
data class Box(val l: Int, val w: Int, val h: Int) {
fun wrappingPaper(): Int {
return 2 * (l * w + l * h + w * h) + Math.min(M... | 0 | Kotlin | 0 | 0 | e9bd07770ccf8949f718a02db8d09daf5804273d | 830 | aoc-kotlin | Apache License 2.0 |
src/main/kotlin/no/nav/brukerdialog/ytelse/omsorgspengerkronisksyktbarn/api/domene/SøkerBarnRelasjon.kt | navikt | 585,578,757 | false | {"Kotlin": 1386129, "Handlebars": 125407, "Dockerfile": 98} | package no.nav.brukerdialog.ytelse.omsorgspengerkronisksyktbarn.api.domene
import com.fasterxml.jackson.annotation.JsonAlias
enum class SøkerBarnRelasjon() {
@JsonAlias("mor") MOR,
@JsonAlias("far") FAR,
@JsonAlias("fosterforelder") FOSTERFORELDER,
@JsonAlias("adoptivforelder") ADOPTIVFORELDER
}
| 1 | Kotlin | 0 | 0 | d8c6cce3d5345340ad5fae38219b6eadf4c97b0f | 315 | k9-brukerdialog-prosessering | MIT License |
backend/src/main/kotlin/dev/dres/api/rest/types/template/team/ApiTeamGroup.kt | dres-dev | 248,713,193 | false | null | package dev.dres.api.rest.types.template.team
import dev.dres.data.model.template.team.DbTeamGroup
import dev.dres.data.model.template.team.TeamAggregatorImpl
import dev.dres.data.model.template.team.TeamGroupId
import kotlinx.serialization.Serializable
/**
* A RESTful API representation of a [DbTeamGroup]
*
* @au... | 37 | null | 3 | 14 | 7fbe29f3d77f105fc6e1ae31c76bac7fd39a6bae | 875 | DRES | MIT License |
backend/src/main/kotlin/dev/dres/api/rest/types/template/team/ApiTeamGroup.kt | dres-dev | 248,713,193 | false | null | package dev.dres.api.rest.types.template.team
import dev.dres.data.model.template.team.DbTeamGroup
import dev.dres.data.model.template.team.TeamAggregatorImpl
import dev.dres.data.model.template.team.TeamGroupId
import kotlinx.serialization.Serializable
/**
* A RESTful API representation of a [DbTeamGroup]
*
* @au... | 37 | null | 3 | 14 | 7fbe29f3d77f105fc6e1ae31c76bac7fd39a6bae | 875 | DRES | MIT License |
app/src/main/java/eu/kanade/data/manga/MangaMapper.kt | AntsyLich | 378,910,163 | true | {"Kotlin": 2124469} | package eu.kanade.data.manga
import eu.kanade.domain.manga.model.Manga
val mangaMapper: (Long, Long, String, String?, String?, String?, List<String>?, String, Long, String?, Boolean, Long?, Long?, Boolean, Long, Long, Long, Long) -> Manga =
{ id, source, url, artist, author, description, genre, title, status, thu... | 0 | Kotlin | 1 | 4 | 3c40010afffa807017f0b56634d8c5323154b4e4 | 1,023 | tachiyomi | Apache License 2.0 |
lib/src/main/kotlin/tsl/trees/AVLTree.kt | spbu-coding-2023 | 771,651,556 | false | {"Kotlin": 20989} | package tsl.trees
import tsl.nodes.AVLNode
import kotlin.math.max
class AVLTree<K : Comparable<K>, V> : AbstractBinaryTree<K, V, AVLNode<K, V>>() {
override fun insert(key: K, value: V): V? {
val replacedValue = search(key) // null if key isn't in the tree
insertAndBalanceRecursively(root,... | 1 | Kotlin | 0 | 3 | 2415fef533d3c11221f7ec5cac675bb0e90a6dc9 | 4,981 | trees-2 | MIT License |
sample-android/src/main/java/com/sample/analytics/MainActivity.kt | ppav | 512,496,537 | false | {"Kotlin": 41848, "Swift": 4548, "Ruby": 1809} | package com.sample.analytics
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.yandex.metrica.YandexMetrica
import com.yandex.metrica.YandexMetricaConfig
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanc... | 0 | Kotlin | 1 | 22 | e7192e0ebbf98284ef649ebcee1d2ead0e69572f | 520 | Analytics | MIT License |
defitrack-rest/defitrack-protocol-service/src/main/java/io/defitrack/protocol/beefy/staking/BeefyPolygonFarmingMarketProvider.kt | decentri-fi | 426,174,152 | false | {"Kotlin": 1038532, "Java": 1948, "Dockerfile": 909} | package io.defitrack.protocol.beefy.staking
import io.defitrack.common.network.Network
import io.defitrack.conditional.ConditionalOnCompany
import io.defitrack.protocol.Company
import io.defitrack.protocol.beefy.BeefyService
import io.defitrack.protocol.beefy.apy.BeefyAPYService
import org.springframework.stereotype.C... | 53 | Kotlin | 7 | 9 | e65843453e4c44f5c2626870ceb923eb7ab3c4d0 | 662 | defi-hub | MIT License |
ackpine-splits/src/main/kotlin/ru/solrudev/ackpine/splits/Abi.kt | solrudev | 641,599,463 | false | null | package ru.solrudev.ackpine
import android.os.Build
import ru.solrudev.ackpine.helpers.splitTypePart
public enum class Abi {
ARMEABI, ARMEABI_V7A, ARM64_V8A, X86, X86_64, MIPS, MIPS64;
public companion object {
private val abis = Abi.values().map { it.name.lowercase() }.toSet()
@JvmStatic
public val devic... | 0 | Kotlin | 0 | 0 | 99a814e62aed4e6614868878cf383014866180d1 | 690 | Ackpine | Apache License 2.0 |
hmpps-prisoner-search/src/main/kotlin/uk/gov/justice/digital/hmpps/prisonersearch/search/services/attributesearch/AttributeSearchService.kt | ministryofjustice | 636,804,116 | false | {"Kotlin": 1070116, "Shell": 6211, "Dockerfile": 2897, "Mustache": 1803} | package uk.gov.justice.digital.hmpps.prisonersearch.search.services.attributesearch
import com.microsoft.applicationinsights.TelemetryClient
import jakarta.validation.ValidationException
import org.slf4j.LoggerFactory
import org.springframework.data.domain.Page
import org.springframework.data.domain.Pageable
import or... | 1 | Kotlin | 1 | 1 | 9a17a3f9e269be009fefa65db47fff06b8942569 | 1,356 | hmpps-prisoner-search | MIT License |
app/src/main/java/com/example/knucseapp/data/repository/ReservationRepository.kt | KNU-CSE-APP | 382,007,598 | false | null | package com.example.knucseapp.data.repository
import com.example.knucseapp.data.model.ReservationDTO
import com.example.knucseapp.data.request.user.ApiRequestFactory
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
class ReservationRepository {
suspend fun classState(building: String, ... | 2 | Kotlin | 2 | 3 | 6d84ad36d6ea742cfc4e8cfb0d3dcb8df4e6c229 | 1,192 | Android | MIT License |
android/src/main/kotlin/com/foxsofter/flutter_thrio/navigator/PageObserverChannel.kt | foxsofter | 237,804,349 | false | null | /**
* The MIT License (MIT)
*
* Copyright (c) 2019 foxsofter
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, c... | 1 | null | 77 | 756 | 45f75896fd9cef3f615ccb8e3f9a0fa6415ef586 | 3,762 | flutter_thrio | MIT License |
androidApp/src/main/java/com/flepper/therapeutic/android/util/PlayerUtil.kt | develNerd | 526,878,724 | false | {"Kotlin": 296821, "Ruby": 1782, "Swift": 345} | package com.flepper.therapeutic.android.util
import android.content.Context
import android.media.MediaPlayer
import androidx.compose.ui.platform.LocalContext
import androidx.media3.common.MediaItem
import androidx.media3.exoplayer.ExoPlayer
object PlayerUtil {
var player: ExoPlayer? = null
private var playWh... | 0 | Kotlin | 0 | 1 | e2b1e12e9fef20a89c96b72b18cd6ab613c16af3 | 1,380 | Therapeutic | Apache License 2.0 |
mainScreenLib/src/main/java/com/yavin/mainscreenlib/di/MainModule.kt | khodorkin-dmitrii | 746,695,455 | false | {"Kotlin": 25554} | package com.yavin.mainscreenlib.di
import com.yavin.mainscreenlib.data.UserCatsRepository
import com.yavin.mainscreenlib.data.UserCatsRepositoryImpl
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton
@Module
@InstallI... | 0 | Kotlin | 0 | 0 | fdf2bfecc7aa04e1faa9faa126aa93b596cba157 | 503 | Only-Cats | MIT License |
app/src/main/java/me/xianglun/blinkblinkbeachadmin/data/repository/createEvent/CreateEventRepositoryImpl.kt | XiangLun0713 | 584,080,275 | false | null | package me.xianglun.blinkblinkbeachadmin.data.repository.createEvent
import android.net.Uri
import com.google.firebase.firestore.FirebaseFirestore
import com.google.firebase.storage.StorageReference
import kotlinx.coroutines.tasks.await
import me.xianglun.blinkblinkbeachadmin.data.model.Event
import me.xianglun.blinkb... | 0 | Kotlin | 0 | 0 | 06ba356622ae952aa47afe4c5bb5fb008bda168e | 1,982 | blink-blink-beach-admin | MIT License |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/inter/options/settings/all_settings_options.plugin.kts | AlterRSPS | 421,831,790 | false | null | import gg.rsmod.game.Server.Companion.logger
import gg.rsmod.game.model.attr.INTERACTING_SLOT_ATTR
import gg.rsmod.game.model.interf.DisplayMode
import gg.rsmod.plugins.api.ext.*
import gg.rsmod.plugins.content.inter.options.OptionsTab
import gg.rsmod.plugins.content.inter.options.Settings
import gg.rsmod.plugins.conte... | 8 | Kotlin | 29 | 20 | a46e00462ac1943cdf3460e03595e1f383c32b91 | 3,027 | Alter | Apache License 2.0 |
BookSharingServer/src/main/kotlin/com/example/firebase/FirebaseAdmin.kt | balalek | 699,989,072 | false | {"Kotlin": 491991} | /**
* File: FirebaseAdmin.kt
* Author: Akash Kamati
* Original code: https://github.com/akash251/Push-Notification-Ktor-Server/blob/master/src/main/kotlin/com/akash/firebase/FirebaseAdmin.kt
* Description: This file is used for initializing the Firebase app using the provided service account credentials
*/
packag... | 0 | Kotlin | 0 | 0 | c8a5ffa8ff03611bcd2f9460abc39bb2d1274064 | 1,422 | Bachelor-Thesis | MIT License |
src/test/kotlin/jdbc/DatabaseTest.kt | JavaDream | 382,886,127 | false | null | package jdbc
import config.DbType
import org.amshove.kluent.invoking
import org.amshove.kluent.shouldBeFalse
import org.amshove.kluent.shouldBeTrue
import org.amshove.kluent.shouldNotThrow
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
import java.sql... | 0 | Kotlin | 0 | 1 | e0664a210018e7b354e062db69f1ac67b8ab318a | 1,439 | migration | Apache License 2.0 |
gravifon/src/main/kotlin/org/gravidence/gravifon/orchestration/marker/EventAware.kt | gravidence | 448,136,601 | false | {"Kotlin": 469102} | package org.gravidence.gravifon.orchestration.marker
import mu.KotlinLogging
import org.gravidence.gravifon.event.Event
import org.gravidence.gravifon.event.EventBus
private val logger = KotlinLogging.logger {}
interface EventAware {
fun publish(event: Event) {
EventBus.publish(event)
}
fun rec... | 0 | Kotlin | 0 | 0 | 4092b8463956d382e03b7151016295bcd230a308 | 455 | gravifon | MIT License |
app/src/main/java/com/sunueric/prototype1/ui/composables/RippleLoadingAnimation.kt | ElikplimSunu | 667,566,887 | false | null | package com.sunueric.prototype1.ui.composables
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.tween
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compos... | 0 | Kotlin | 0 | 0 | f2d258d3e265cff9f127dfbf3f51e7d6891e4522 | 1,816 | Vizium | MIT License |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/events/CfnRuleRetryPolicyPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.events
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Number
import software.amazon.awscdk.... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 1,843 | awscdk-dsl-kotlin | Apache License 2.0 |
src/main/kotlin/abc/311-d.kt | kirimin | 197,707,422 | false | null | package abc
import java.util.*
fun main(args: Array<String>) {
Thread(null, Main311D(), "whatever", 1 shl 28).start()
}
class Main311D : Runnable {
override fun run() {
val sc = Scanner(System.`in`)
val n = sc.nextInt()
val m = sc.nextInt()
val s = (0 until n).map { sc.next() ... | 0 | Kotlin | 1 | 5 | 23c9b35da486d98ab80cc56fad9adf609c41a446 | 3,596 | AtCoderLog | The Unlicense |
src/main/kotlin/io/unthrottled/doki/integrations/IDEPluginInstallListener.kt | doki-theme | 126,478,304 | false | null | package io.unthrottled.doki.integrations
import com.intellij.ide.plugins.DynamicPluginListener
import com.intellij.ide.plugins.IdeaPluginDescriptor
import io.unthrottled.doki.icon.IconPathReplacementComponent
import io.unthrottled.doki.laf.LookAndFeelInstaller
import io.unthrottled.doki.service.DOKI_ICONS_PLUGIN_ID
im... | 26 | null | 38 | 642 | 53d2fa9458c0e29afec0f4a4c53a25f4449c0bf0 | 1,333 | doki-theme-jetbrains | MIT License |
switch-ktor/src/main/kotlin/no/javazone/SlideService.kt | javaBin | 701,782,475 | false | {"Kotlin": 11690, "JavaScript": 3847, "HTML": 1808, "CSS": 1039, "Shell": 425, "FreeMarker": 138, "Dockerfile": 113} | package no.javazone
object SlideService {
} | 0 | Kotlin | 0 | 0 | 22a444bb0844e5b00b72771fe2e58619b0eba80c | 45 | switchredux | Apache License 2.0 |
jetbrains-core/tst/software/aws/toolkits/jetbrains/utils/execution/steps/ConsoleMessageEmitter.kt | smooth80stech | 384,712,050 | false | {"Gradle Kotlin DSL": 21, "Markdown": 16, "Java Properties": 2, "Shell": 1, "Text": 11, "Ignore List": 3, "Batchfile": 1, "EditorConfig": 3, "YAML": 27, "Kotlin": 1002, "XML": 82, "Java": 9, "JSON": 52, "SVG": 64, "INI": 1, "CODEOWNERS": 1, "Maven POM": 4, "Dockerfile": 14, "JavaScript": 3, "Python": 4, "Go": 1, "Go Mo... | // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.utils.execution.steps
import com.intellij.build.BuildProgressListener
import com.intellij.util.ExceptionUtil
class ConsoleMessageEmitter(private val stepName: Stri... | 1 | null | 1 | 1 | 73a50130bf90b23069334db6e07bb2b968eeac75 | 1,070 | aws-toolkit-jetbrains | Apache License 2.0 |
src/main/kotlin/com/github/davenury/ucac/consensus/oldRaft/RaftRole.kt | Davenury | 487,023,571 | false | {"Kotlin": 718446, "Go": 61294, "Python": 33653, "Shell": 21544, "JavaScript": 3419, "Dockerfile": 1344, "Ruby": 888} | package com.github.davenury.ucac.consensus.oldRaft
enum class RaftRole {
Leader,
Follower,
Candidate,
}
| 9 | Kotlin | 2 | 4 | afff882b67ead65f58b8805e2763820aed4ff035 | 118 | Unifying-Consensus-And-Atomic-Commitment-PoC | Apache License 2.0 |
src/main/kotlin/com/github/pawelkowalski92/aoc/day07/camel/Result.kt | pawelkowalski92 | 726,175,728 | false | {"Kotlin": 77190} | package com.github.pawelkowalski92.aoc.day07.camel
enum class Result {
HIGH_CARD,
ONE_PAIR,
TWO_PAIR,
THREE_OF_A_KIND,
FULL_HOUSE,
FOUR_OF_A_KIND,
FIVE_OF_A_KIND
} | 0 | Kotlin | 0 | 0 | 96879809e9175073ac1d19a93db8d76d90686500 | 192 | advent-of-code-2023 | Apache License 2.0 |
src/main/kotlin/com/mapk/fastkfunction/InternalFunctions.kt | ProjectMapK | 315,221,443 | false | null | package com.mapk.fastkfunction
import java.lang.reflect.Method
import kotlin.reflect.KClass
import kotlin.reflect.KParameter
import kotlin.reflect.full.isSuperclassOf
/**
* Get object instance if receiver declared in object.
*
* @receiver JavaMethod.
* @return Method.declaringClass.kotlin.objectInstance
* @throw... | 1 | Kotlin | 1 | 3 | af125f2b1f08a63db49b1c0f9fc78fee7d94735e | 1,475 | FastKFunction | Apache License 2.0 |
sdk-hebe/src/main/kotlin/io/github/wulkanowy/sdk/hebe/models/SetMessageStatusRequest.kt | wezuwiusz | 827,506,416 | false | {"Kotlin": 780058, "HTML": 70768} | package io.github.wulkanowy.sdk.hebe.models
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class SetMessageStatusRequest(
@SerialName("PupilId")
val pupilId: Int? = null,
@SerialName("BoxKey")
val boxKey: String,
@SerialName("MessageKey")
v... | 2 | Kotlin | 4 | 2 | 8042e81592bf58135bed618c4541c2c96da1ae89 | 392 | neowulkanowy-sdk | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/MainState.kt | hoc081098 | 346,262,603 | false | null | /*
* Copyright 2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1 | Kotlin | 0 | 0 | 614842463af080fc530423a65c3a9f024ea40249 | 901 | android-dev-challenge-compose-clock | Apache License 2.0 |
app/src/test/kotlin/fuzzd/generator/symbol_table/FunctionSymbolTableTests.kt | fuzz-d | 561,844,971 | false | {"Kotlin": 547670, "Python": 12135, "Shell": 5056} | package fuzzd.generator.symbol_table
import fuzzd.generator.ast.ExpressionAST.BooleanLiteralAST
import fuzzd.generator.ast.ExpressionAST.IdentifierAST
import fuzzd.generator.ast.ExpressionAST.IntegerLiteralAST
import fuzzd.generator.ast.FunctionMethodAST
import fuzzd.generator.ast.MethodAST
import fuzzd.generator.ast.... | 0 | Kotlin | 0 | 2 | 7935ac8751d2719d7f0141eabcb6042a3de92155 | 5,373 | fuzz-d | MIT License |
src/test/kotlin/no/nav/hm/grunndata/importapi/transfer/series/SeriesTransferRepositoryTest.kt | navikt | 585,058,090 | false | {"Kotlin": 127637, "Dockerfile": 100, "Shell": 41} | package no.nav.hm.grunndata.importapi.transfer.series
import io.kotest.common.runBlocking
import io.kotest.matchers.longs.shouldBeGreaterThanOrEqual
import io.kotest.matchers.nulls.shouldNotBeNull
import io.micronaut.data.model.Pageable
import io.micronaut.test.extensions.junit5.annotation.MicronautTest
import org.jun... | 0 | Kotlin | 0 | 1 | eb4cfd13098908713255032dd6fdd8ab55b26911 | 1,365 | hm-grunndata-import | MIT License |
src/main/kotlin/udachin/dantesio/impl/updateHandlers/TrainUpdateHandler.kt | Dantesio | 437,720,815 | false | null | package udachin.dantesio.impl.updateHandlers
import org.telegram.telegrambots.meta.api.objects.Update
import udachin.dantesio.api.telegram.TelegramApi
import udachin.dantesio.api.telegram.UpdateHandler
import udachin.dantesio.bot.TelegramBot
import udachin.dantesio.impl.stateHandlers.FINISH_CORRECT_TRAIN_STATE
import ... | 0 | Kotlin | 0 | 0 | f6183d9d6958efdd39908ab4c6ac9c1fa49c2713 | 948 | ZoomerTranslator | MIT License |
src/main/kotlin/org/shardscript/semantics/prelude/ToStringMembers.kt | shardscript | 301,230,998 | false | {"Kotlin": 1186928, "ANTLR": 8647} | package org.shardscript.semantics.prelude
import org.shardscript.semantics.core.*
import org.shardscript.semantics.infer.SingleParentArgInstantiation
import org.shardscript.semantics.infer.Substitution
object ToStringMembers {
val integerToStringMember = insertIntegerToStringMember()
val unitToStringMember = ... | 10 | Kotlin | 0 | 6 | 7fd6d5854d1ba114ce218d87fb8bd1eba60ea14d | 4,461 | shardscript | MIT License |
src/main/kotlin/org/shardscript/semantics/prelude/ToStringMembers.kt | shardscript | 301,230,998 | false | {"Kotlin": 1186928, "ANTLR": 8647} | package org.shardscript.semantics.prelude
import org.shardscript.semantics.core.*
import org.shardscript.semantics.infer.SingleParentArgInstantiation
import org.shardscript.semantics.infer.Substitution
object ToStringMembers {
val integerToStringMember = insertIntegerToStringMember()
val unitToStringMember = ... | 10 | Kotlin | 0 | 6 | 7fd6d5854d1ba114ce218d87fb8bd1eba60ea14d | 4,461 | shardscript | MIT License |
spring-cloud-gateway/livk-gateway/src/test/kotlin/com/livk/gateway/factory/RequestHashingGatewayFilterFactoryTest.kt | livk-cloud | 441,105,335 | false | {"Kotlin": 91905} | package com.livk.gateway.factory
import com.github.tomakehurst.wiremock.WireMockServer
import com.github.tomakehurst.wiremock.client.WireMock
import com.github.tomakehurst.wiremock.core.WireMockConfiguration
import com.livk.factory.RequestHashingGatewayFilterFactory
import com.livk.gateway.LivkGateway
import com.livk.... | 1 | Kotlin | 7 | 26 | 24a5ed3d575787e65bd20860323e9e668c3bfaea | 4,232 | spring-cloud-kotlin | Apache License 2.0 |
src/test/kotlin/io/github/projectmapk/jackson/module/kogera/zIntegration/deser/valueClass/parameterSize/nullableObject/DeserializeByFactoryWithDefaultArgumentsTest.kt | ProjectMapK | 488,347,906 | false | {"Kotlin": 913997, "Java": 6932} | package io.github.projectmapk.jackson.module.kogera.zIntegration.deser.valueClass.parameterSize.nullableObject
import com.fasterxml.jackson.annotation.JsonCreator
import io.github.projectmapk.jackson.module.kogera.assertReflectEquals
import io.github.projectmapk.jackson.module.kogera.defaultMapper
import io.github.pro... | 8 | Kotlin | 3 | 130 | f572264d44e56e96645ba1278c613f67e9092784 | 54,705 | jackson-module-kogera | Apache License 2.0 |
Object-Oriented Programming/Objects/Exercise 1/src/Task.kt | marchdz | 633,862,396 | false | null | // Objects/ObjectEx1.kt
package objectsExercise1
import atomictest.*
private fun f() = trace("f() $p")
private val p = "p"
object Space {
/*TODO*/
}
private object Space2 {
/*TODO*/
}
fun main() {
f()
/* Space.f()
Space2.f() */
trace eq """
f() p
Space.f() Space.p
Space2.f() Space2.p
"""
} | 0 | Kotlin | 0 | 0 | 0246a342b54600ceb6ac38ecb4498d16a7e86e8e | 320 | atomic-kotlin-exercises | MIT License |
basick/src/main/java/com/mozhimen/basick/utilk/android/graphics/UtilKStateListDrawable.kt | mozhimen | 353,952,154 | false | {"Kotlin": 1504678, "Java": 3916, "AIDL": 964} | package com.mozhimen.basick.utilk.android.graphics
import android.graphics.drawable.Drawable
import android.graphics.drawable.StateListDrawable
import androidx.annotation.DrawableRes
import androidx.annotation.RequiresApi
import androidx.annotation.RequiresPermission
import com.mozhimen.basick.elemk.android.os.cons.CV... | 1 | Kotlin | 7 | 118 | e46732e4fc58f1ad66e3974a393e3af411de7b17 | 1,952 | SwiftKit | Apache License 2.0 |
android/src/com/android/tools/idea/editors/literals/actions/InternalDebugActions.kt | JetBrains | 60,701,247 | false | {"Kotlin": 47327090, "Java": 36711107, "HTML": 1217549, "Starlark": 856686, "C++": 321587, "Python": 100400, "C": 71515, "Lex": 66732, "NSIS": 58538, "AIDL": 35209, "Shell": 28699, "CMake": 26717, "JavaScript": 18437, "Batchfile": 7828, "Smali": 7580, "RenderScript": 4411, "Makefile": 2298, "IDL": 269, "QMake": 18} | /*
* Copyright (C) 2021 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... | 3 | Kotlin | 220 | 912 | d88742a5542b0852e7cb2dd6571e01576cb52841 | 5,055 | android | Apache License 2.0 |
src/main/kotlin/com/attson/smux4j/ext/net/netty/ChannelInboundHandler.kt | attson | 584,773,689 | false | null | package com.attson.smux4j.ext.net.netty
import com.attson.smux4j.mux.MuxServerHandler
import com.attson.smux4j.session.Session
import io.netty.buffer.ByteBuf
import io.netty.buffer.ByteBufInputStream
import io.netty.buffer.Unpooled
import io.netty.channel.ChannelHandlerContext
import io.netty.channel.ChannelInboundHan... | 0 | Kotlin | 0 | 0 | 1ad944b59c852c98a365522cbee0f9ab8a18918f | 3,205 | smux4j | MIT License |
core/src/test/kotlin/in/specmatic/core/HttpStubShouldRunOverTCP.kt | znsio | 247,710,440 | false | null | package run.qontract.core
import com.intuit.karate.junit5.Karate
import run.qontract.stub.HttpStub
import org.junit.jupiter.api.AfterAll
import org.junit.jupiter.api.BeforeAll
class HttpStubShouldRunOverTCP {
@Karate.Test
fun fakeShouldServeSingleFeatureContract(): Karate {
return Karate().relativeTo(... | 46 | null | 8 | 92 | b3eb9b6e0f7d42bde35d95b83ea187cd1d6aa3bc | 2,837 | specmatic | MIT License |
src/main/java/me/ddayo/simplegameapi/util/CloneUtil.kt | Iroom-gbs | 454,781,811 | false | {"Kotlin": 9072} | package me.ddayo.simplegameapi.util
class CloneUtil {
companion object {
fun <T> createInstance(clazz: Class<T>, vararg args: Any): T = try { clazz.getConstructor(*args.map{it::class.java}.toTypedArray()).newInstance(*args) }
catch(e: NoSuchMethodException) { clazz.getConstructor(*args.map{ it::cl... | 0 | Kotlin | 2 | 1 | b4157fa1f655d2c902455efc8fe395d583712cca | 406 | SimpleGameApi | MIT License |
src/main/kotlin/org/move/utils/tests/resolve/ResolveTestCase.kt | mkurnikov | 386,158,725 | true | {"Kotlin": 397792, "Lex": 7317} | package org.move.utils.tests.resolve
import com.intellij.openapi.vfs.VirtualFileManager
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiReference
import org.intellij.lang.annotations.Language
import org.move.lang.core.psi.MoveNamedElement
import org.move.lang.core.psi.MoveReferenceElement
import org.move... | 0 | Kotlin | 1 | 0 | eaf3fbfaf7183274cab9d88bb4dc25187eb534ad | 4,561 | intellij-move | MIT License |
app/src/main/java/com/ufpb/meuguia/view/FindOptionsView.kt | Israelpsilva8246 | 844,104,278 | false | {"Kotlin": 100850} | package com.ufpb.meuguia.view
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import andro... | 0 | Kotlin | 0 | 0 | 99251cef92b25281fdb09500b266c43d325d2035 | 3,328 | app-meu-guiaPB | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/HandBackPointDown.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,020 | icons | MIT License |
xkcd/src/main/java/xyz/jienan/xkcd/whatif/fragment/WhatIfMainFragment.kt | zjn0505 | 123,256,765 | false | {"Kotlin": 370779, "Java": 34504} | package xyz.jienan.xkcd.whatif.fragment
import android.app.SearchManager
import android.content.Intent
import android.database.MatrixCursor
import android.graphics.Color
import android.os.Bundle
import android.provider.BaseColumns
import android.view.HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING
import android.vi... | 4 | Kotlin | 1 | 31 | d088aee32a4995128aae69a9354ab3285bd668da | 5,844 | xkcd-Android | Apache License 2.0 |
app/src/main/java/com/lingga/themoviedb/ui/movie/MovieUpcomingAdapter.kt | linggakusuma | 290,236,219 | false | null | package com.lingga.themoviedb.ui.movie
import com.domain.model.Movie
import com.lingga.themoviedb.R
import com.lingga.themoviedb.ui.base.BaseAdapterHome
class MovieNowPlayingAdapter(onClick: (Movie) -> Unit) :
BaseAdapterHome<Movie>(onClick = onClick) {
override val getLayoutIdRes: Int
get() = R.layou... | 0 | Kotlin | 1 | 4 | 6f7691812d4f3eec582b444e970aa2b55f36aad1 | 344 | the-movie-db | The Unlicense |
src/main/kotlin/com/nmote/jwti/GravatarUtils.kt | vnesek | 92,741,847 | false | null | /*
* Copyright 2017. Vjekoslav Nesek
* 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... | 0 | Kotlin | 0 | 1 | 794592e2074918bb2c8a1c2d4c3154c29a7dba91 | 1,394 | nmote-jwt-issuer | Apache License 2.0 |
buildSrc/src/main/kotlin/DependenciesShortcuts.kt | surovtsev-alexander | 505,554,496 | false | {"Kotlin": 600945, "GLSL": 1058, "Batchfile": 48} | import org.gradle.api.artifacts.dsl.DependencyHandler
fun DependencyHandler.topLevelDependencies() {
classpath("com.android.tools.build:gradle:${Versions.gradle}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.Kotlin.kotlin}")
}
fun DependencyHandler.daggerDependencies() {
implementation... | 0 | Kotlin | 0 | 0 | 961cff3b6ee41784e9790f0fe9bd978be0f23d6e | 3,157 | cool_3d_minesweeper | MIT License |
common/src/main/java/co/app/common/common/PhotoRecord.kt | p-vincen-t | 238,182,140 | false | {"Kotlin": 475105, "Java": 46450, "HTML": 41642} | /*
* Copyright 2020, {{App}}
* Licensed under the Apache License, Version 2.0, "{{App}} Inc".
* 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,
* so... | 1 | Kotlin | 1 | 1 | 74d1af99f1a563b6aa5ace72eb303e055c6ace5a | 1,187 | android-template | Apache License 2.0 |
authlibrary/src/test/java/com/koma/authlibrary/login/LoginViewModelTest.kt | komamj | 244,861,092 | false | null | package com.koma.authlibrary.login
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.google.common.truth.Truth.assertThat
import com.koma.authlibrary.data.source.AuthRepository
import com.koma.testlibrary.LiveDataTestUtil
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.co... | 0 | Kotlin | 0 | 0 | 8b25061848bc7302877ccf25f964ad63ee15d185 | 1,232 | CAC | Apache License 2.0 |
shared/src/commonMain/kotlin/com.jettaskboard.multiplatform/ui/components/drawer/DrawerHeader.kt | pushpalroy | 633,443,908 | false | null | package com.jetapps.jettaskboard.drawer
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.found... | 5 | null | 4 | 7 | 8b01ee817b14cb78e6d4a1aeb208d93d5b9fade4 | 3,198 | JetTaskBoardKMP | Apache License 2.0 |
src/commonMain/kotlin/snd/komga/client/series/KomgaSeriesMetadataUpdateRequest.kt | Snd-R | 835,710,782 | false | {"Kotlin": 102939} | package snd.komga.client.series
import snd.komga.client.common.KomgaReadingDirection
import snd.komga.client.common.KomgaWebLink
import snd.komga.client.common.PatchValue
import kotlinx.serialization.Serializable
@Serializable
data class KomgaSeriesMetadataUpdateRequest(
val status: PatchValue<KomgaSeriesStatus> ... | 0 | Kotlin | 0 | 0 | d31668a61d8db7914cc520a6e74c5f440ec03cf9 | 2,039 | komga-client | MIT License |
YoutubeKotlin/app/src/main/java/com/example/rajatmonga/youtubekotlin/MainAdapter.kt | rajatm29 | 115,670,314 | false | null | package com.example.rajatmonga.kotlinyouttubelbta
import android.content.Intent
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.rajatmonga.youtubekotlin.CourseDetailActivity
import com.example.rajatmonga.youtubek... | 0 | Kotlin | 0 | 0 | d3a0fcb54d695b83716ce0028ab65bdb58d0af84 | 2,400 | YoutubeView | MIT License |
SERVER/src/main/kotlin/com/konix/data/repository/entity/Users.kt | singhtwenty2 | 809,094,089 | false | {"Kotlin": 369846, "Dockerfile": 414} | package com.konix.data.repository.entity
import com.konix.data.dto.request.enums.Gender
import org.jetbrains.exposed.sql.Table
object Users : Table() {
val userId = integer("user_id").autoIncrement()
val name = varchar("name", 100)
val email = varchar("email", 100).uniqueIndex()
val age = integer("age... | 0 | Kotlin | 0 | 1 | b744b0797548d2c1dbec21ba684b4691471dbfc4 | 594 | konix-TEP | MIT License |
src/main/kotlin/screen/MainView.kt | YuriZhuravlev | 355,557,691 | false | null | package screen
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import children
import screen.common.A... | 0 | Kotlin | 0 | 0 | f619915e7cd8880c6051f31ad97653a740becf68 | 1,166 | ParserPascalJC | Apache License 2.0 |
Chapter03/src/main/kotlin/com/rivuchk/packtpub/reactivekotlin/chapter03/SubjectExmpl2.kt | PacktPublishing | 111,785,750 | false | null | package com.rivuchk.packtpub.reactivekotlin.chapter03
import io.reactivex.Observable
import io.reactivex.subjects.PublishSubject
import kotlinx.coroutines.experimental.delay
import kotlinx.coroutines.experimental.runBlocking
import java.util.concurrent.TimeUnit
/**
* Created by rivuc on 22-07-2017.
*/
fun main(args:... | 0 | Kotlin | 36 | 71 | a2333e22fc1190dbacefba46cdf8c0339d509d75 | 731 | Reactive-Programming-in-Kotlin | MIT License |
buildSrc/src/main/kotlin/com/onlyf1/db/plugin/mapper/QualifyingResultMapper.kt | onlyf1com | 403,954,428 | false | {"Kotlin": 122927} | package com.onlyf1.db.plugin.mapper
import com.onlyf1.db.schema.single.QualifyingResult
import com.onlyf1.db.schema.single.Race
import org.mapstruct.AfterMapping
import org.mapstruct.Context
import org.mapstruct.Mapper
import org.mapstruct.Mapping
import org.mapstruct.MappingTarget
import org.mapstruct.factory.Mappers... | 4 | Kotlin | 8 | 50 | 25206de22da31009cecc9e624de885fefff9f9de | 1,328 | onlyf1-db | Creative Commons Attribution 4.0 International |
app/src/main/java/com/oldautumn/movie/ui/splash/SplashUiState.kt | penkzhou | 474,989,858 | false | {"Kotlin": 369315} | /*
* Copyright 2023 The Old Autumn 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 3 | Kotlin | 0 | 0 | e8d50a5bd19f399c436d3b82429d6e2734cf3df5 | 848 | Movie | MIT License |
app/src/main/java/com/hongbeomi/findtaek/view/util/IntroUtil.kt | hongbeomi | 224,968,074 | false | null | package com.hongbeomi.findtaek.view.util
import android.app.Activity
import android.view.View
import co.mobiwise.materialintro.shape.Focus
import co.mobiwise.materialintro.shape.FocusGravity
import co.mobiwise.materialintro.shape.ShapeType
import co.mobiwise.materialintro.view.MaterialIntroView
/**
* @author hongbeo... | 0 | Kotlin | 3 | 28 | 36512879e8e4183c5a9297fb7751457c75306efd | 1,022 | FindTaek | Apache License 2.0 |
analysis/analysis-api/testData/components/resolver/singleByPsi/kDoc/qualified/fromOtherFile/TopLevelClassFromOtherFileByShortName.kt | JetBrains | 3,432,266 | false | null | // FILE: a.kt
import b.*
/**
* [B<caret>B]
*/
fun x() {}
// FILE: b.kt
package b
class BB {
class XX
} | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 111 | kotlin | Apache License 2.0 |
sharedUI/src/commonMain/kotlin/com/prof18/feedflow/shared/ui/home/components/NoFeedsSourceView.kt | prof18 | 600,257,020 | false | null | package com.prof18.feedflow.shared.ui.home.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Button
import androidx.c... | 22 | null | 8 | 225 | f08b35998dfd56722b324da20f5df029d7c72816 | 1,363 | feed-flow | Apache License 2.0 |
app/src/main/kotlin/me/zhiyao/waterever/ui/widgets/GridSpacingItemDecoration.kt | WangZhiYao | 243,558,800 | false | null | package me.zhiyao.waterever.ui.widgets
import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.RecyclerView
/**
*
* @author WangZhiYao
* @date 2020/9/14
*/
class GridSpacingItemDecoration(
private val spacing: Int,
private val spanCount: Int
) : RecyclerView.ItemDecoratio... | 0 | Kotlin | 0 | 0 | 232f20d623209eb2b9fb889aeb05af6ec3fee535 | 819 | WaterEver | Apache License 2.0 |
src/jvmMain/kotlin/net/ntworld/hexagon/foundation/_multiPlatform.kt | nhat-phan | 181,276,252 | false | null | package net.ntworld.hexagon.foundation
import java.time.Clock
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
import java.util.*
internal actual fun generateUuid(): String {
return UUID.randomUUID().toString()
}
internal actual fun getCurrentDatetimeInUtc(): String {
return LocalDate... | 0 | Kotlin | 0 | 0 | d73df4a22a9df3a14601c3ba5d4ef3d75546fb39 | 389 | hexagon-foundation | MIT License |
web/src/main/java/top/xuqingquan/web/nokernel/WebUtils.kt | xuqingquan1995 | 280,608,139 | false | {"Kotlin": 220802, "Java": 192153} | package top.xuqingquan.web.nokernel
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Environment
import android.os.Handler
import android.os.Looper
import android.provider.Med... | 0 | Kotlin | 1 | 0 | 09b63dbae6060bec848062b085d34abcf268eacf | 7,818 | web | MIT License |
web/src/main/java/top/xuqingquan/web/nokernel/WebUtils.kt | xuqingquan1995 | 280,608,139 | false | {"Kotlin": 220802, "Java": 192153} | package top.xuqingquan.web.nokernel
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Environment
import android.os.Handler
import android.os.Looper
import android.provider.Med... | 0 | Kotlin | 1 | 0 | 09b63dbae6060bec848062b085d34abcf268eacf | 7,818 | web | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/visitscheduler/service/NonPrisonCodeType.kt | ministryofjustice | 409,259,375 | false | {"Kotlin": 1555306, "PLpgSQL": 154405, "FreeMarker": 14114, "Dockerfile": 1541, "Shell": 238} | package uk.gov.justice.digital.hmpps.visitscheduler.dto.enums
enum class NonPrisonCodeType {
OUT,
TRN,
CRT,
TAP,
ADM,
REL,
;
companion object {
fun isNonPrisonCodeType(prisonCode: String?): Boolean {
prisonCode?.let {
return NonPrisonCodeType.entries.firstOrNull { it.name.equals(pris... | 2 | Kotlin | 2 | 6 | 6616341623809d924832c1817a98dd40c397a1dc | 382 | visit-scheduler | MIT License |
app/src/main/java/com/example/taskmanagement/ui/fragments/onMainActivity/ShowAllTasksFragment.kt | ariya-darvishi | 442,359,560 | false | {"Kotlin": 78128} | package com.example.taskmanagement.ui.fragments.onMainActivity
import android.content.Context
import android.os.Bundle
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragm... | 0 | Kotlin | 0 | 1 | e203a89feb086a589d33eb33ad88243200f90fb0 | 5,830 | TaskManagement | Creative Commons Zero v1.0 Universal |
epoque-core/src/main/kotlin/io/github/uharaqo/epoque/api/Values.kt | uharaqo | 772,784,876 | false | {"Kotlin": 122180} | package io.github.uharaqo.epoque.api
import java.time.Instant
@JvmInline
value class JournalGroupId(val unwrap: String) {
override fun toString() = unwrap
companion object {
inline fun <reified E : Any> of(): JournalGroupId = JournalGroupId(E::class.qualifiedName!!)
}
}
@JvmInline
value class JournalId(va... | 0 | Kotlin | 0 | 0 | 1e7ca5d3a3e8c166090faefd47e2a04e21fcb8d9 | 2,668 | epoque-kt | Apache License 2.0 |
src/main/kotlin/io/openfuture/api/domain/scaffold/EthereumScaffoldDto.kt | OpenFuturePlatform | 134,381,311 | false | null | package io.openfuture.api.domain.scaffold
import io.openfuture.api.entity.scaffold.Currency
import io.openfuture.api.entity.scaffold.EthereumScaffold
import io.openfuture.api.entity.scaffold.ScaffoldVersion
data class EthereumScaffoldDto(
val address: String,
val abi: String,
val description: ... | 11 | null | 7 | 42 | 4cf6df0407c9a941bd1e0b6d01a9ab05f4db0ef6 | 1,119 | open-api | Apache License 2.0 |
aws-crt-kotlin/common/src/aws/sdk/kotlin/crt/http/HttpStream.kt | awslabs | 267,704,046 | false | {"Kotlin": 188140, "Shell": 465} | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.sdk.kotlin.crt.http
import aws.sdk.kotlin.crt.Closeable
/**
* An HttpStream represents a single Http Request/Response pair within a HttpClientConnection, and wraps the native resources
* ... | 5 | Kotlin | 2 | 6 | 37eff7a2e1f3551e83db992e620fc7fb700b1046 | 2,144 | aws-crt-kotlin | Apache License 2.0 |
src/main/kotlin/org/tinygears/tinydiff/util/Sequences.kt | TinyGearsOrg | 561,403,042 | false | {"Kotlin": 76143} | /*
* Copyright 2012 <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 w... | 0 | Kotlin | 0 | 0 | 6556f2868fcb879cc22cd5ae1557862377e1ef27 | 1,387 | tinydiff | Apache License 2.0 |
android/app/src/main/java/com/algorand/android/modules/asb/createbackup/fileready/ui/model/AsbFileReadyPreview.kt | perawallet | 364,359,642 | false | {"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596} | /*
* Copyright 2022 Pera Wallet, LDA
* 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,... | 22 | Swift | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 1,254 | pera-wallet | Apache License 2.0 |
src/main/kotlin/com/micudasoftware/api/userprofile/UpdateUserProfileRequest.kt | DusanMicuda | 728,069,932 | false | {"Kotlin": 52159} | package com.micudasoftware.api.userprofile
import com.micudasoftware.common.BaseRequest
import com.micudasoftware.common.Result
import io.ktor.http.*
import kotlinx.serialization.Serializable
/**
* A data class representing a request to update a user profile.
*
* @property userName The full name of the user.
* @p... | 0 | Kotlin | 0 | 0 | f72bf86b8bf94b3b5eaf65bc0d6462bf1c70410f | 1,320 | cookify-service | MIT License |
app/src/main/kotlin/no/nav/aap/statistikk/sak/SakRepositoryImpl.kt | navikt | 821,299,691 | false | {"Kotlin": 244302, "Dockerfile": 191} | package no.nav.aap.statistikk.sak
import no.nav.aap.komponenter.dbconnect.DBConnection
import no.nav.aap.komponenter.dbconnect.Row
import no.nav.aap.statistikk.person.Person
class SakRepositoryImpl(private val dbConnection: DBConnection) : SakRepository {
override fun hentSak(sakID: Long): Sak {
val query... | 0 | Kotlin | 0 | 0 | c42864b285c38c4578b67edb82bf6a56681af8f4 | 2,657 | aap-statistikk | MIT License |
kotlin/src/main/kotlin/AoC_Day6.kt | sviams | 115,921,582 | false | null |
object AoC_Day6 {
data class State(val steps: Int, val work: Array<Byte>, val mem: MutableList<Array<Byte>>) {
fun repeats() : Boolean = mem.count { it contentEquals work } > 1
}
fun solve2(input: Array<Byte>) : State {
val width = input.size
return generateSequence(State(0, input... | 0 | Kotlin | 0 | 0 | 19a665bb469279b1e7138032a183937993021e36 | 1,086 | aoc17 | MIT License |
bucketeer/src/main/kotlin/io/bucketeer/sdk/android/internal/IdGenerator.kt | bucketeer-io | 517,624,444 | false | {"Kotlin": 454747} | package io.bucketeer.sdk.android.internal
import java.util.UUID
internal interface IdGenerator {
fun newId(): String
}
internal class IdGeneratorImpl : IdGenerator {
override fun newId(): String = UUID.randomUUID().toString()
}
| 9 | Kotlin | 3 | 5 | 3ca2a61d62fbcd0e837ba12bc6186cdf340c575a | 235 | android-client-sdk | Apache License 2.0 |
src/main/kotlin/ChatTheSpire/console/MapConsoleCommand.kt | FylmTM | 246,153,979 | false | null | package ChatTheSpire.console
import ChatTheSpire.command.MapCommand
import ChatTheSpire.util.toSafeArrayList
import basemod.DevConsole
import basemod.devcommands.ConsoleCommand
import com.megacrit.cardcrawl.dungeons.AbstractDungeon
import java.util.ArrayList
class MapConsoleCommand : ConsoleCommand() {
init {
... | 0 | Kotlin | 0 | 0 | 898f415a1d9f2a20d8d91bd89ff7b3f1bf7cf53d | 1,122 | ChatTheSpire | MIT License |
src/main/kotlin/tech/michalik/flowriddles/Riddle14.kt | rozkminiacz | 221,536,359 | false | null | package tech.michalik.flowriddles
import kotlinx.coroutines.flow.Flow
object Riddle14 {
/**
* Create flow that will delay each element emitted by [source] by 10ms
*/
fun solve(source: Flow<Int>): Flow<Int> {
TODO()
}
} | 1 | Kotlin | 2 | 32 | f72675059b18872d6c1ec63d2d18cfe92497f2cb | 251 | FlowRiddles | Apache License 2.0 |
app/src/main/java/com/example/educonnect/data/FeaturedImage.kt | saurabhm13 | 697,653,223 | false | {"Kotlin": 86860} | package com.example.educonnect.data
data class FeaturedImage(
val image: String
) {
constructor(): this ("")
}
| 0 | Kotlin | 0 | 0 | ac6118dca70e7cd349599a41bdc85f66d84ef77c | 120 | EduConnect | MIT License |
src/main/kotlin/me/bytebeats/agp/secretary/action/NewGradlePluginModuleInGroupAction.kt | bytebeats | 393,359,152 | false | null | package me.bytebeats.agp.secretary.action
import com.intellij.icons.AllIcons
import com.intellij.ide.projectView.impl.ModuleGroup
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.LangDataKeys
import me.bytebeats.agp.secretary.*
import me.bytebeats.agp.secretary.Resources.... | 0 | Kotlin | 0 | 1 | 16576452ec64113db420a23fd41169c10a6570ae | 1,118 | gradle-plugin-secretary | MIT License |
kmm/service/content/people/implementation/src/commonMain/kotlin/com/barabasizsolt/mova/people/implementation/PeopleModule.kt | barabasizsolt | 524,965,150 | false | null | package com.barabasizsolt.mova.people.implementation
import com.barabasizsolt.mova.people.api.PeopleService
import org.koin.dsl.module
fun createPeopleModule() = module {
factory { PeopleRemoteSource(baseHttpClient = get()) }
single<PeopleService> { PeopleServiceImpl(remoteSource = get()) }
} | 0 | Kotlin | 0 | 0 | acf4e021200c670dbc7bc2a38240d019f2a4a3a2 | 303 | Mova | The Unlicense |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.