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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-circuitbreaker-02.kt | arrow-kt | 86,057,409 | false | null | // This file was automatically generated from CircuitBreaker.kt by Knit tool. Do not edit.
package arrow.fx.coroutines.examples.exampleCircuitbreaker02
import arrow.core.Either
import arrow.fx.coroutines.CircuitBreaker
import arrow.fx.coroutines.Schedule
import arrow.fx.coroutines.retry
import kotlin.time.Duration.Com... | 38 | null | 436 | 5,958 | 5f0da6334b834bad481c7e3c906bee5a34c1237b | 1,650 | arrow | Apache License 2.0 |
kuksa-sdk/src/test/kotlin/org/eclipse/kuksa/connectivity/databroker/DataBrokerConnectorTest.kt | eclipse-kuksa | 687,949,615 | false | {"Kotlin": 339819, "Java": 9058, "Shell": 2409} | /*
* Copyright (c) 2023 Contributors to the Eclipse Foundation
*
* 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 ... | 8 | Kotlin | 1 | 2 | a03cf49b66d9f2116474cabdd5741f21a0511926 | 2,715 | kuksa-android-sdk | Apache License 2.0 |
library/lorcana-data/src/commonMain/kotlin/eu/codlab/lorcana/cards/Erratas.kt | great-illuminary | 710,799,476 | false | {"Kotlin": 35876, "TypeScript": 4085, "Shell": 438} | package eu.codlab.lorcana.cards
import kotlinx.serialization.Serializable
@Serializable
data class Erratas<C>(
val classifications: List<C>? = null
)
fun Erratas<String>.to(
mapOfClassifications: Map<String, ClassificationHolder>
): Erratas<ClassificationHolder> = Erratas(
classifications = classificatio... | 0 | Kotlin | 0 | 5 | a93d0d5c8dc5d0a7102928b4bd5fac24690429e4 | 580 | lorcana-data | MIT License |
lawnchair/src/app/lawnchair/search/LawnchairSearchAdapterProvider.kt | DariaRnD | 481,438,445 | true | {"Java Properties": 1, "YAML": 14, "Text": 9, "Markdown": 6, "XML": 880, "INI": 2, "Makefile": 3, "Gradle": 7, "Shell": 1, "EditorConfig": 1, "Git Attributes": 1, "Batchfile": 1, "Soong": 3, "Python": 5, "Proguard": 1, "Ignore List": 1, "Git Config": 1, "AIDL": 12, "Java": 899, "Kotlin": 319, "JSON": 6, "Protocol Buffe... | package app.lawnchair.search
import android.util.SparseIntArray
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.util.containsKey
import app.lawnchair.LawnchairLauncher
import app.lawnchair.allapps.SearchItemDecorator
import app.lawnchair.allapps.SearchResu... | 7 | Java | 1 | 5 | 1b13066090b80104c6524e93bd09856f76b2f814 | 3,722 | lawnchair | Apache License 2.0 |
petblocks-api/src/main/kotlin/com/github/shynixn/petblocks/api/business/service/CarryPetService.kt | Shynixn | 78,876,167 | false | null | package com.github.shynixn.petblocks.api.business.service
/**
* Created by Shynixn 2018.
* <p>
* Version 1.2
* <p>
* MIT License
* <p>
* Copyright (c) 2018 by Shynixn
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (th... | 22 | null | 12 | 71 | 730e19e9e70dea1dcdafa3a98f9356b9577565db | 2,615 | PetBlocks | Apache License 2.0 |
kotlin-mui/src/main/generated/mui/material/Container.classes.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
package mui.material
external interface ContainerClasses {
/** Styles applied to the root element. */
var root: String
/** Styles applied to the root element if `disableGutters={true}`. */
var disableGutters: String
/** Styles applied to the root eleme... | 10 | Kotlin | 145 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 839 | kotlin-wrappers | Apache License 2.0 |
app/src/main/kotlin/com/teixeira/gdx/App.kt | teixeira0x | 848,011,066 | false | {"Kotlin": 8306} | package com.teixeira.gdx
import com.teixeira.gdx.command.DEFAULT_LANGUAGE
import com.teixeira.gdx.command.DEFAULT_MIN_SDK
import com.teixeira.gdx.command.DEFAULT_TARGET_SDK
import com.teixeira.gdx.command.OPT_LANGUAGE
import com.teixeira.gdx.command.OPT_MIN_SDK
import com.teixeira.gdx.command.OPT_NAME
import com.teixe... | 0 | Kotlin | 0 | 6 | 26cb28c0c554aecc55ec4e36e183b44a5f8a685b | 3,237 | androidide-libgdx | Apache License 2.0 |
app/src/main/java/br/com/monteoliva/githubuserslist/ui/features/BaseFragment.kt | monteoliva | 630,295,904 | false | null | package br.com.monteoliva.githubuserslist.ui.features
import android.content.Context
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.annotation.Stri... | 0 | Kotlin | 0 | 0 | a545c0676a412f2fd6162a22e91f0753d94f2a57 | 2,100 | githubuserslist | Apache License 2.0 |
common/src/commonMain/kotlin/com/artemchep/keyguard/ui/shimmer/rememberShimmer.kt | AChep | 669,697,660 | false | null | package com.valentinilk.shimmer
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.geometry.Rect
import kotlinx.coroutines.flow.MutableStateFlow
@Composable
fun rememberShimmer(shimmerBounds: ShimmerBounds): Shimmer {
val theme = LocalShimmerTheme.curren... | 66 | null | 5 | 995 | 557bf42372ebb19007e3a8871e3f7cb8a7e50739 | 1,302 | keyguard-app | Linux Kernel Variant of OpenIB.org license |
statik-kotlin-psi/src/main/kotlin/com/rickbusarow/statik/element/kotlin/psi/compiler/StatikPsiFileFactoryImpl.kt | rickbusarow | 764,452,627 | false | {"Kotlin": 523926, "Shell": 4217} | /*
* Copyright (C) 2024 <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 ... | 6 | Kotlin | 0 | 9 | 850e77a03017d2c73452a5f005709dffdbd06de1 | 3,022 | statik | Apache License 2.0 |
DiceGame.kt | Cambrian-ITCAMD | 600,304,106 | false | null | /*
Jay Patel : A00254220
Viren Moliya : A00245404
Smith Parekh : A00241603
*/
fun main() {
println("Creating a default d6...")
var default = Dice()
print("\nCreating a d")
var userSide:Int = readln().toInt()
var d20 = Dice(userSide)
print("\nPlease enter name:")
var userName:String = ... | 0 | Kotlin | 0 | 0 | d73b7ec743ede7a78f881461fcedadfd54c3ca74 | 1,930 | MAPD-LAB1-JVS | The Unlicense |
src/main/kotlin/dev/mfazio/wc2022/types/db/MatchStatusDbModel.kt | MFazio23 | 519,368,317 | false | null | package dev.mfazio.wc2022.types.db
import dev.mfazio.wc2022.types.domain.MatchStatus
enum class MatchStatusDbModel {
Played,
ToBePlayed,
Live,
Abandoned,
Postponed,
Cancelled,
Forfeited,
LineUps,
Suspended,
Unknown;
fun toMatchStatus() = when(this) {
Played -> Matc... | 8 | Kotlin | 1 | 4 | cc6036580e2076bd65357a26486404e47c2fea25 | 1,260 | wc2022-api | MIT License |
app/src/main/java/com/lateinit/rightweight/ui/exercise/ExerciseFragment.kt | boostcampwm-2022 | 563,132,819 | false | {"Kotlin": 320392} | package com.lateinit.rightweight.ui.exercise
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget... | 8 | Kotlin | 0 | 27 | ff6116ee9e49bd8ed493d3c6928d0b9a7f892689 | 8,264 | android09-RightWeight | MIT License |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/neptune/CfnDBInstancePropsDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.neptune
import cloudshift.awscdk.common.CdkDslMarker
import cloudshift.awscdk.dsl.CfnTagDsl
import kotl... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 7,159 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/tool/xfy9326/milink/nfc/activity/XiaomiNfcReaderActivity.kt | XFY9326 | 724,531,401 | false | {"Kotlin": 275449} | package tool.xfy9326.milink.nfc.activity
import android.nfc.NfcAdapter
import android.nfc.tech.Ndef
import android.nfc.tech.NdefFormatable
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.activity.r... | 0 | Kotlin | 5 | 7 | 40e127ff5a078bd0b8a3697584f4f5fa90722d72 | 4,911 | MiLinkNFC | MIT License |
ocpp-2-0-json/src/main/kotlin/com/izivia/ocpp/json20/Ocpp20JsonObjectMapper.kt | IZIVIA | 501,708,979 | false | {"Kotlin": 1934096} | package com.izivia.ocpp.json20
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonValue
import com.fasterxml.jackson.databind.ObjectMapper
import com.izivia.ocpp.core20.model.common.enumeration.MeasurandEnumType
import com.izivia.ocpp.core20.model.common.enumeratio... | 7 | Kotlin | 7 | 32 | bd8e7334ae05ea75d02d96a508269acbe076bcd8 | 1,581 | ocpp-toolkit | MIT License |
src/main/kotlin/dev/moetz/buzzer/template/SiteTemplate.kt | FlowMo7 | 443,932,157 | false | {"Kotlin": 65212, "JavaScript": 23988, "CSS": 2229, "Dockerfile": 247} | package dev.moetz.buzzer.template
import io.ktor.html.*
import kotlinx.html.*
class SiteTemplate(
private val siteTitle: String,
private val description: String = "Online buzzing system for party games.",
private val formButtonColor: String,
private val buzzerButtonColorReady: String,
private val ... | 0 | Kotlin | 0 | 1 | bad81b716b64c1760227ed3a13ff74a8f635c9cc | 2,459 | kotlin-buzzer | Apache License 2.0 |
server/src/main/kotlin/net/horizonsend/ion/server/features/multiblock/misc/ShipFactoryMultiblock.kt | HorizonsEndMC | 461,042,096 | false | null | package net.horizonsend.ion.server.features.multiblock.type.misc
import net.horizonsend.ion.server.features.multiblock.Multiblock
import net.horizonsend.ion.server.features.multiblock.MultiblockShape
import net.horizonsend.ion.server.features.multiblock.type.InteractableMultiblock
import net.horizonsend.ion.server.fea... | 25 | null | 36 | 9 | 4c52c237f9ebd4a5bf67b8721a9eb10bb6ff3bdc | 1,995 | Ion | MIT License |
src/test/kotlin/no/nav/sokos/prosjektnavn/ApplicationTest.kt | navikt | 509,000,535 | false | null | package no.nav.sokos.prosjektnavn
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.shouldBe
class ApplicationTest : FunSpec ({
test("my first test") {
1 + 2 shouldBe 3
}
})
| 0 | Kotlin | 0 | 0 | 58a88c5c2cd19c98aebfdbac79d14afd02f780d4 | 212 | sokos-ktor-template | MIT License |
app/src/main/java/id/rllyhz/dicodingsubmissionbfaa/ui/activity/settings/SettingsActivity.kt | rllyhz | 355,088,778 | false | null | package id.rllyhz.dicodingsubmissionbfaa.ui.activity.settings
import android.content.Intent
import android.os.Bundle
import android.provider.Settings
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import id.rllyhz.dicodingsubmissionbfaa.R
import id.rllyhz.dicodingsubmissionbfaa.data.pref.... | 0 | Kotlin | 0 | 0 | ac3d77f3c885603c71f5ccc78b5739e957d6a0d9 | 3,839 | bfaa-final-submission | Apache License 2.0 |
sample/src/main/kotlin/app/futured/donutsample/tools/extensions/ViewExtensions.kt | futuredapp | 215,500,960 | false | {"Kotlin": 40474, "Ruby": 1068} | package com.softcross.onepiece.core.common.extension
import android.view.View
fun View.visible() {
visibility = View.VISIBLE
}
fun View.gone() {
visibility = View.GONE
}
| 7 | Kotlin | 46 | 546 | 2650b27972f6b819a0ac197094f49c0a6fc9470f | 181 | donut | MIT License |
src/main/kotlin/no/nav/tiltakspenger/fp/abakusclient/models/Person.kt | navikt | 571,962,480 | false | {"Kotlin": 40640, "Shell": 1093, "Dockerfile": 504} | package no.nav.tiltakspenger.fp.abakusclient.models
data class Person(
val identType: String = "FNR",
val ident: String
)
| 1 | Kotlin | 1 | 1 | 6d8265c22a013708aba80d534857545c4868963d | 131 | tiltakspenger-fp | MIT License |
src/main/kotlin/com/igorivkin/website/controller/api/MarkdownController.kt | IgorIvkin | 341,263,198 | false | null | package com.igorivkin.website.controller.api
import com.igorivkin.website.controller.dto.markdown.MarkdownRequest
import com.igorivkin.website.controller.dto.markdown.MarkdownResponse
import com.igorivkin.website.service.MarkdownParserService
import org.springframework.http.MediaType
import org.springframework.http.Re... | 0 | Kotlin | 0 | 1 | 71d78154621ac9c1ce4cddb86d385af898c89ae8 | 1,038 | igor-ivkin-website-kotlin | Apache License 2.0 |
kotest-framework/kotest-framework-engine/src/jvmTest/kotlin/com/sksamuel/kotest/engine/extensions/MountableExtensionTest.kt | kotest | 47,071,082 | false | null | package com.sksamuel.kotest.engine.extensions
import io.kotest.core.extensions.MountableExtension
import io.kotest.core.extensions.install
import io.kotest.core.listeners.BeforeSpecListener
import io.kotest.core.spec.Spec
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.shouldBe
import java.util.conc... | 160 | null | 648 | 4,435 | 2ce83d0f79e189c90e2d7bb3d16bd4f75dec9c2f | 1,185 | kotest | Apache License 2.0 |
AdventureXplore/app/src/main/java/com/example/adventerlife/Activity/AdaminActivity.kt | Puravish08 | 698,056,809 | false | {"Kotlin": 121016} | package com.example.adventerlife.Activity
import android.app.ProgressDialog
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.example.adventerlife.ModelClass.HomeModel
import com.... | 0 | Kotlin | 0 | 0 | 097ec8cf2f543d619b01a21e4cee36d82b6d4d45 | 5,114 | AdavantureLife | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsauditapi/services/AuditService.kt | ministryofjustice | 340,068,469 | false | {"Kotlin": 160437, "Mustache": 1803, "Dockerfile": 1319} | package uk.gov.justice.digital.hmpps.hmppsauditapi.services
import com.microsoft.applicationinsights.TelemetryClient
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Value
import org.springframework.data.domain.Page
import org.springframework.data.domain.Pageable
import org.springfram... | 0 | Kotlin | 2 | 0 | 3276f5855e598dd66790de6e6bdda9783e07ac55 | 2,700 | hmpps-audit-api | MIT License |
incubator.clients.kroviz/src/main/kotlin/org/apache/isis/client/kroviz/core/event/EventStore.kt | joerg-rade | 163,651,410 | false | null | package org.apache.isis.client.kroviz.core.event
import org.apache.isis.client.kroviz.core.aggregator.BaseAggregator
import org.apache.isis.client.kroviz.to.TObject
import org.apache.isis.client.kroviz.to.mb.Menubars
import org.apache.isis.client.kroviz.ui.kv.UiManager
import pl.treksoft.kvision.panel.SimplePanel
impo... | 20 | null | 1 | 10 | 07e7ed9aa6dabc7e8a9a0100451d89ae18e46950 | 4,270 | kroviz | Apache License 2.0 |
mulighetsrommet-api/src/main/kotlin/no/nav/mulighetsrommet/api/okonomi/models/RefusjonskravDto.kt | navikt | 435,813,834 | false | {"Kotlin": 1627414, "TypeScript": 1445375, "SCSS": 41073, "JavaScript": 27458, "PLpgSQL": 14591, "Handlebars": 3189, "HTML": 2263, "Dockerfile": 1423, "CSS": 1145, "Shell": 396} | package no.nav.mulighetsrommet.api.okonomi.models
import kotlinx.serialization.Serializable
import no.nav.mulighetsrommet.domain.serializers.UUIDSerializer
import java.util.*
@Serializable
data class RefusjonskravDto(
@Serializable(with = UUIDSerializer::class)
val id: UUID,
val tiltakstype: Tiltakstype,
... | 2 | Kotlin | 2 | 7 | ee39b300c4f1d01462fc37851fc039ba9d16531b | 888 | mulighetsrommet | MIT License |
app/src/main/java/com/whalescale/binit/utils/GameUtils.kt | Ninise | 605,546,083 | false | {"Kotlin": 257417} | package com.whalescale.binit.utils
import android.app.Activity
import android.content.Context
import com.whalescale.binit.R
import com.whalescale.binit.models.GameObject
import com.whalescale.binit.models.QuizObject
import com.whalescale.binit.models.RecycleType
import kotlin.random.Random
object GameUtils {
con... | 0 | Kotlin | 0 | 0 | de62fef294b81bb46164d8aa13e9587f9eadad93 | 13,180 | BinitAndroid | Apache License 2.0 |
intellij-plugin/educational-core/branches/232/src/com/jetbrains/edu/learning/feedback/compatibilityUtils.kt | JetBrains | 43,696,115 | false | {"Kotlin": 4929631, "HTML": 3417303, "Python": 18771, "Java": 13512, "CSS": 12216, "JavaScript": 302, "Shell": 71} | package com.jetbrains.edu.learning.feedback
import com.intellij.feedback.common.dialog.showFeedbackSystemInfoDialog
import com.intellij.openapi.project.Project
import com.intellij.ui.dsl.builder.Panel
// BACKCOMPAT: 2023.2
typealias SystemDataJsonSerializable = com.intellij.feedback.common.dialog.JsonSerializable
typ... | 6 | Kotlin | 44 | 135 | b00e7100e8658a07e79700a20ffe576872d494db | 1,172 | educational-plugin | Apache License 2.0 |
compose/src/main/java/de/jensklingenberg/jetpackcomposeplayground/ui/samples/mysamples/other/CounterModel.kt | ravishankarsingh1996 | 223,398,680 | false | null | package de.jensklingenberg.jetpackcomposeplayground.ui.samples.mysamples.other
import androidx.compose.Composable
import androidx.compose.state
import androidx.compose.unaryPlus
import androidx.ui.core.Text
import androidx.ui.layout.Center
import androidx.ui.layout.Column
import androidx.ui.material.Button
import and... | 0 | null | 0 | 4 | 2d87fa9dbdd7f89b0d0e3e97f143910e5a3a9e54 | 1,443 | Jetpack-Compose-Playground | MIT License |
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/brands/Npm.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.fontawesomeicons.brands
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... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 3,220 | compose-icons | MIT License |
editor/src/main/kotlin/CanvasWindow.kt | Pengiie | 411,461,323 | false | null | import dev.pengie.kotaro.Application
import dev.pengie.kotaro.events.Event
import dev.pengie.kotaro.events.EventManager
import dev.pengie.kotaro.events.input.*
import dev.pengie.kotaro.input.Key
import dev.pengie.kotaro.scene.components.Tag
import dev.pengie.kotaro.window.Window
import editor.EditorState
import editor.... | 0 | Kotlin | 0 | 0 | b9f75232ae7d2ad815478307d0c731d0f1ce9bbd | 6,100 | kotarOld | Apache License 2.0 |
fetch2core/src/main/java/com/tonyodev/fetch2core/server/FileResponse.kt | Kutikov | 731,088,336 | false | null | package com.tonyodev.fetch2core.server
import android.os.Parcel
import android.os.Parcelable
import java.io.Serializable
import java.lang.StringBuilder
import java.net.HttpURLConnection
import java.util.*
/**
* Response object sent to the client as JSON.
* **/
data class FileResponse(val status: Int = HttpURLConnec... | 122 | null | 342 | 6 | c450f681035ed47d2bd6e5e2b7cf4b921665e669 | 2,823 | fetch2-android | Apache License 2.0 |
core/src/com/maattss/intro/exercise/states/State.kt | maattss | 235,056,301 | false | null | package com.maattss.intro.exercise.states
import com.badlogic.gdx.graphics.g2d.SpriteBatch
abstract class State(protected var gsm: GameStateManager) {
protected abstract fun handleInput()
abstract fun update(dt: Float)
abstract fun render(sb: SpriteBatch)
abstract fun dispose()
} | 0 | Kotlin | 0 | 0 | 2348a560973d45d865aca5c895a4fb794fdb711b | 298 | tdt4240-intro-exercise | MIT License |
compose/ui/ui/src/test/kotlin/androidx/compose/ui/gesture/LongPressGestureFilterTest.kt | tikurahul | 334,969,342 | true | {"Java": 45895688, "Kotlin": 28840351, "Python": 297324, "Shell": 121288, "C++": 30502, "ANTLR": 19860, "HTML": 10802, "TypeScript": 6933, "CMake": 3330, "JavaScript": 1343} | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | null | 0 | 1 | ccac66729a5e461b3a05944014f42e2dc55337d6 | 19,205 | androidx | Apache License 2.0 |
src/main/kotlin/me/peckb/aoc/_2023/calendar/day22/Shape.kt | peckb1 | 433,943,215 | false | {"Kotlin": 956123} | package me.peckb.aoc._2023.calendar.day22
enum class Shape {
VERTICAL, HORIZONTAL_X, HORIZONTAL_Y, CUBE
}
| 0 | Kotlin | 1 | 3 | 732eaf95804825a542c1cbddbc55053383f9127b | 109 | advent-of-code | MIT License |
libnavui-voice/src/test/java/com/mapbox/navigation/ui/voice/api/MapboxSpeechProviderTest.kt | mapbox | 87,455,763 | false | null | package com.mapbox.navigation.ui.voice.api
import android.net.Uri
import com.mapbox.bindgen.Expected
import com.mapbox.bindgen.ExpectedFactory
import com.mapbox.common.NetworkRestriction
import com.mapbox.common.ResourceLoadError
import com.mapbox.common.ResourceLoadFlags
import com.mapbox.common.ResourceLoadResult
im... | 508 | null | 319 | 621 | ad73c6011348cb9b24b92a369024ca06f48845ab | 8,994 | mapbox-navigation-android | Apache License 2.0 |
app/src/main/java/net/shadowxcraft/smartlights/packets/DeleteColorSequencePacket.kt | jaredoconnell | 230,815,009 | false | {"Kotlin": 236452} | package net.shadowxcraft.smartlights.packets
import net.shadowxcraft.smartlights.ColorSequence
import net.shadowxcraft.smartlights.ESP32
class DeleteColorSequencePacket(controller: ESP32, private val sequence: ColorSequence)
: SendablePacket(controller, 25)
{
override fun send() {
val output = getHead... | 0 | Kotlin | 0 | 1 | a0325b0185e585c33d2a1b0ccfbb00d8a45374a5 | 459 | SmartLights_Android | Apache License 2.0 |
app/src/main/java/com/nlptech/function/theme/theme_manage/ThemeManageItemViewHolder.kt | ahkter-husin | 208,083,694 | true | {"Java": 878274, "Kotlin": 32366} | package com.nlptech.function.theme.theme_manage
import android.view.ViewGroup.LayoutParams.WRAP_CONTENT
import androidx.recyclerview.widget.RecyclerView
import com.android.inputmethod.TestApplication
import com.android.inputmethod.latin.databinding.ViewholderThemeBinding
import com.bumptech.glide.Glide
import com.nlpt... | 0 | null | 0 | 0 | 86cffbe6c16703b4e6c9c76f9bf157d4f38d9d1f | 2,995 | Android-Keyboard | Apache License 2.0 |
app/src/main/java/org/wikipedia/feed/news/NewsViewModel.kt | greatfire | 460,298,221 | true | {"Kotlin": 2932557, "Java": 68018, "C++": 37990, "Python": 23673, "CMake": 1104, "Jinja": 533, "Shell": 521} | package org.wikipedia.feed.news
import android.os.Bundle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import org.wikipedia.Constants
import org.wikipedia.dataclient.WikiSite
class NewsViewModel(bundle: Bundle) : ViewModel() {
val item = bundle.getParcelable<NewsItem>(NewsActivi... | 23 | Kotlin | 554 | 38 | 8c8de602274b0132fc5d22b394a2c47fcd0bf2eb | 662 | apps-android-wikipedia-envoy | Apache License 2.0 |
designernews/src/test/java/io/plaidapp/designernews/ui/story/StoryViewModelTest.kt | PatilShreyas | 191,734,900 | false | null | /*
* Copyright 2018 Google, Inc.
*
* 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... | 1 | null | 0 | 2 | 91f9cf247c1940a0323fd1f6cde84e63f4191687 | 9,737 | plaid | Apache License 2.0 |
shared/feature-y/src/main/java/com/wackaloon/feature_y/FeatureYActivity.kt | Wackaloon | 353,394,945 | false | null | package com.wackaloon.feature_y
import android.os.Bundle
import com.google.android.material.floatingactionbutton.FloatingActionButton
import com.google.android.material.snackbar.Snackbar
import androidx.appcompat.app.AppCompatActivity
import com.wackaloon.common_core.ErrorNavigator
import com.wackaloon.feature_y.dagge... | 0 | Kotlin | 0 | 1 | a65bdff30af9c34c843a0e77b8257beb1d5a57ef | 1,113 | megamonolith | MIT License |
maskinporten-client/src/main/kotlin/no/ks/fiks/maskinporten/observability/MaskinportenKlientObservability.kt | ks-no | 157,221,514 | false | {"Kotlin": 57762, "Java": 45417} | package no.ks.fiks.maskinporten.observability
import org.apache.hc.client5.http.impl.classic.HttpClientBuilder
import org.apache.hc.client5.http.io.HttpClientConnectionManager
/**
* Interface for observability of MaskinportenKlient
* Implementations of this interface can be used to add observability to Maskinporten... | 7 | Kotlin | 3 | 7 | 7d0d613f2afde7969bd26df9e4ab59edf1243105 | 680 | fiks-maskinporten | MIT License |
backend/bot-service-master/src/main/kotlin/ssilvalucas/botservice/mapper/RegisterExpenseMapper.kt | ertprs | 323,188,779 | false | {"CSS": 226007, "Kotlin": 21692, "JavaScript": 20109, "TypeScript": 18275, "Python": 14232, "HTML": 10278, "Shell": 344} | package ssilvalucas.botservice.mapper
import org.springframework.stereotype.Component
import ssilvalucas.botservice.model.entity.RegisterExpense
import ssilvalucas.botservice.web.dto.request.RegisterExpenseRequest
@Component
class RegisterExpenseMapper {
fun requestToEntity(driver: String, request: RegisterExpen... | 0 | null | 0 | 0 | cdfaa30c6737a4db14cab22816ad5778e3c0f2f0 | 518 | hackathon-ccr | Apache License 2.0 |
app/src/main/java/com/chrismagaa/simple_lector_rss/ui/feed/news/NewsFragment.kt | chrismagaa | 539,040,787 | false | {"Kotlin": 43230} | package com.chrismagaa.simple_lector_rss.ui.feed.news
import android.content.Intent
import android.os.Bundle
import android.view.*
import androidx.fragment.app.Fragment
import androidx.core.view.MenuProvider
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.Lifecycle
import androidx.recyclervie... | 0 | Kotlin | 0 | 0 | f7c3c80603ca8b44fa2e811b6a2e64e1babbc5ae | 4,012 | wYOBWdZelywKFXZWiupw | MIT License |
wallet-sdk/src/main/java/io/arcblock/walletkit/utils/ArcNumberUtils.kt | ArcBlock | 470,418,674 | false | null | package io.arcblock.walletkit.utils
import io.arcblock.walletkit.utils.ArcInputCheckUtils.getMinScale
import java.math.BigDecimal
import java.math.BigInteger
import java.math.RoundingMode.DOWN
import java.text.DecimalFormat
import java.text.DecimalFormatSymbols
import java.util.Locale
import kotlin.math.pow
/**
* Cr... | 3 | Kotlin | 0 | 0 | 032105bd4ed9bbe4b484a3458eca67a875139f6f | 5,901 | did-wallet-sdk-android | Apache License 2.0 |
src/org/jetbrains/r/roxygen/usage/RoxygenUsageTypeProvider.kt | JetBrains | 214,212,060 | false | {"Kotlin": 2657599, "Java": 558927, "R": 37082, "Lex": 14307, "HTML": 10063, "Rez": 70, "Rebol": 47} | /*
* Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package org.jetbrains.r.roxygen.usage
import com.intellij.psi.PsiElement
import com.intellij.usages.impl.rules.UsageType
import com.intellij.usages.impl.rules.UsageTypePro... | 2 | Kotlin | 13 | 62 | 8b4f3aac10693cbfb5841f0afff46338bffbc50e | 740 | Rplugin | Apache License 2.0 |
app/src/main/java/com/lee/leewanandroid/ui/knowledge/KnowledgeFragment.kt | Mr1ee | 186,852,345 | false | null | package com.lee.leewanandroid.ui.knowledge
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import com.lee.leewanandroid.R
import com.lee.leewanandroid.entities.article.KnowledgeTreeData
import com.lee.leewanandroid.ui.base.BaseMvpFragment
import kotlinx.android.synthetic.main.fragment_... | 1 | null | 1 | 1 | cd2f059083fcaf6b40f264b2a0ba88e545660b39 | 1,880 | LeeWanAndroid | Apache License 2.0 |
Forge/src/main/kotlin/hantonik/atomic/technology/util/ATTooltips.kt | Hantonik | 689,923,057 | false | {"Kotlin": 97427, "Batchfile": 40} | package hantonik.atomic.technology.util
import hantonik.atomic.technology.AtomicTechnology
import net.minecraft.network.chat.Component
import net.minecraft.network.chat.MutableComponent
object ATTooltips {
// MENU
val CRUSHER: Component = this.getMenuTooltip("crusher")
// BUTTON
val ALWAYS_ACTIVE: Co... | 0 | Kotlin | 0 | 0 | 53fbeed6938ebe0e630cae05491d97a59acb716a | 945 | AtomicTechnology | MIT License |
compiler/testData/diagnostics/tests/declarationChecks/multiDeclarations/DoubleDeclForLoop.kt | udalov | 10,645,710 | false | null | class A {
fun component1() = 1
fun component2() = 1
}
class C {
fun iterator(): Iterator<A> = null!!
}
fun test() {
for ((x, y) in C()) {
}
}
| 0 | null | 1 | 6 | 3958b4a71d8f9a366d8b516c4c698aae80ecfe57 | 165 | kotlin-objc-diploma | Apache License 2.0 |
admin/src/main/java/com/sampah/admin/ui/settingHarga/SettingHargaAdapter.kt | YofhiFauda | 761,065,041 | false | {"Kotlin": 164145} | package com.sampah.admin.ui.settingHarga
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import c... | 0 | Kotlin | 0 | 2 | 0b3f92ef3a082fbff56635e26d3bcdb8e6da0da6 | 2,848 | Bank-Sampah-Digital | MIT License |
app/src/main/java/com/example/firestore/di/ReferenceQualifiers.kt | alisoleimani-android | 293,226,022 | false | null | package com.example.firestore.di
import javax.inject.Qualifier
/**
* We should create a qualifier for each Collection because
* we need to make difference between them for injection.
*/
@Retention(AnnotationRetention.BINARY)
@Qualifier
annotation class PersonsReference | 0 | Kotlin | 0 | 0 | a84e1aeb9deaf4654625768086c94986188946ca | 275 | CleanFirestore | MIT License |
src/test/kotlin/com/ort/howlingwolf/infrastructure/datasource/village/VillageDataSourceTest.kt | h-orito | 176,481,255 | false | null | package com.ort.howlingwolf.infrastructure.datasource.village
import com.ort.dbflute.allcommon.CDef
import com.ort.dbflute.exbhv.*
import com.ort.dbflute.exentity.VillagePlayer
import com.ort.howlingwolf.HowlingWolfTest
import com.ort.howlingwolf.domain.model.camp.Camp
import com.ort.howlingwolf.domain.model.message.M... | 1 | null | 1 | 3 | d87c28e952287ccbc1634c1eee093a5f9f15e472 | 19,998 | wolf4busy-api | MIT License |
app/src/main/java/com/bogdan/codeforceswatcher/room/RoomController.kt | nishitkshah | 223,720,674 | true | {"Kotlin": 103352} | package com.bogdan.codeforceswatcher.room
import com.bogdan.codeforceswatcher.features.contests.redux.states.ContestsState
import com.bogdan.codeforceswatcher.features.problems.redux.states.ProblemsState
import com.bogdan.codeforceswatcher.features.users.redux.states.UsersState
import com.bogdan.codeforceswatcher.redu... | 0 | null | 0 | 0 | c0a20454eb4d958194fec2436966fb6877336a75 | 1,768 | codeforces_watcher | MIT License |
src/main/java/com/alcosi/lib/utils/PrepareHexService.kt | alcosi | 698,911,809 | false | {"Kotlin": 405550, "Java": 82765, "HTML": 3451, "JavaScript": 509, "CSS": 203} | /*
* Copyright (c) 2023 Alcosi Group Ltd. and affiliates.
*
* 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 ap... | 0 | Kotlin | 0 | 0 | 4c71ef407342eb8a9b8f7aad8fc2f28d6198366f | 4,742 | alcosi_commons_library | Apache License 2.0 |
ktorfit-lib-core/src/jvmTest/kotlin/de/jensklingenberg/ktorfit/internal/KtorfitClientTest.kt | Foso | 203,655,484 | false | {"Kotlin": 330650, "Ruby": 2354, "Java": 692, "Swift": 345} | package de.jensklingenberg.ktorfit.internal
import de.jensklingenberg.ktorfit.Ktorfit
import de.jensklingenberg.ktorfit.TestEngine
import de.jensklingenberg.ktorfit.http.GET
import io.ktor.client.HttpClient
import io.ktor.client.engine.mock.MockEngine
import io.ktor.client.engine.mock.respond
import io.ktor.client.req... | 32 | Kotlin | 40 | 1,558 | 16d3481c25b151e5abb37d7cb2ee4e86c5db9d49 | 4,267 | Ktorfit | Apache License 2.0 |
components/persistence/entity-processor-service-impl/src/main/kotlin/net/corda/entityprocessor/impl/internal/EntityMessageProcessor.kt | corda | 346,070,752 | false | null | package net.corda.entityprocessor.impl.internal
import net.corda.crypto.core.parseSecureHash
import net.corda.v5.application.flows.FlowContextPropertyKeys.CPK_FILE_CHECKSUM
import net.corda.data.flow.event.FlowEvent
import net.corda.data.persistence.DeleteEntities
import net.corda.data.persistence.DeleteEntitiesById
i... | 114 | Kotlin | 10 | 31 | 0fbac93cf5a216650d5228ba014951e34617d677 | 7,233 | corda-runtime-os | Apache License 2.0 |
door-compiler/src/main/kotlin/com/ustadmobile/lib/annotationprocessor/core/ext/KSTypeExt.kt | UstadMobile | 344,538,858 | false | null | package com.ustadmobile.lib.annotationprocessor.core.ext
import com.google.devtools.ksp.findActualType
import com.ustadmobile.door.lifecycle.LiveData
import com.ustadmobile.door.paging.DataSourceFactory
import com.google.devtools.ksp.processing.Resolver
import com.google.devtools.ksp.symbol.*
import com.squareup.kotli... | 0 | null | 0 | 89 | 58f93d9057ece78cc3f8be3d4d235c0204a15f11 | 7,604 | door | Apache License 2.0 |
app/src/main/java/com/breezefsmaddischemicocorporation/features/stockCompetetorStock/api/AddCompStockRepository.kt | DebashisINT | 641,390,752 | false | null | package com.breezefsmaddischemicocorporation.features.stockCompetetorStock.api
import com.breezefsmaddischemicocorporation.base.BaseResponse
import com.breezefsmaddischemicocorporation.features.orderList.model.NewOrderListResponseModel
import com.breezefsmaddischemicocorporation.features.stockCompetetorStock.ShopAddCo... | 0 | Kotlin | 0 | 0 | c08eaf8cb0a1f3ade4f1762526afe1fa3976690d | 927 | AddisChemicoCorporation | Apache License 2.0 |
rulebook-checkstyle/src/main/kotlin/com/hanggrian/rulebook/checkstyle/IfElseFlatteningCheck.kt | hanggrian | 556,969,715 | false | {"Kotlin": 270414, "Python": 71768, "Java": 18644, "CSS": 1653, "Groovy": 323} | package com.hanggrian.rulebook.checkstyle
import com.hanggrian.rulebook.checkstyle.internals.Messages
import com.hanggrian.rulebook.checkstyle.internals.children
import com.hanggrian.rulebook.checkstyle.internals.contains
import com.hanggrian.rulebook.checkstyle.internals.isMultiline
import com.puppycrawl.tools.checks... | 0 | Kotlin | 0 | 1 | a1283fc14004ac7c973c5312dede43035f10daa2 | 2,346 | rulebook | Apache License 2.0 |
build-extensions/src/main/kotlin/extensions.kt | CloudNetService | 187,873,041 | false | null | /*
* Copyright 2019-2024 CloudNetService team & contributors
*
* 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... | 78 | null | 120 | 378 | 7aaa1cba6d0b6936bb9a380925a732881df74438 | 5,670 | CloudNet | Apache License 2.0 |
app/src/main/java/com/jjosft/android/lottovillage/services/SmsBroadcastReceiver.kt | jung2929 | 99,984,015 | false | null | package com.jjosft.android.lottovillage.services
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.telephony.SmsMessage
import com.jjosft.android.lottovillage.activities.RegisterActivity
/**
* Created... | 0 | Kotlin | 1 | 1 | b1c176a59697b5858852408371519e3d82e7c412 | 1,995 | LottoVillageClient | MIT License |
gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/item/exchange/BuyResinReq.kt | Anime-Game-Servers | 642,871,918 | false | {"Kotlin": 612536} | package org.anime_game_servers.multi_proto.gi.data.item.exchange
import org.anime_game_servers.core.base.Version.GI_0_9_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCo... | 0 | Kotlin | 3 | 6 | 7639afe4f546aa5bbd9b4afc9c06c17f9547c588 | 404 | anime-game-multi-proto | MIT License |
app/src/commonMain/kotlin/com/example/kmp/ui/main/MainScreen.kt | hadion82 | 797,506,685 | false | {"Kotlin": 108361, "Swift": 1033} | package com.example.kmp.ui.main
import androidx.compose.animation.core.LinearOutSlowInEasing
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.WindowInsets
import androidx.comp... | 1 | Kotlin | 0 | 0 | 57f36ceffcf386462c338edb3f98d3233321ad09 | 8,438 | compose-multiplatform-architecture | Apache License 2.0 |
ClassWork/CW9Kotlin/src/main/kotlin/exc/Pencil.kt | haimadrian | 306,993,543 | false | null | package exc
/**
*
* @author <NAME>
* @since 30-May-21
*/
open class Pencil(length: Double, val company: String) {
var length: Double = length
set(value) {
field = when {
(value > field) -> throw IllegalArgumentException("Increasing pencil length is prohibited. Was: $value, C... | 1 | null | 14 | 10 | 2824c114d0194392e343733e744c82b5e87a4046 | 1,202 | Android-TexasHoldemPokerOnline | MIT License |
android/src/main/java/com/awsfaceliveness/AwsFaceLiveNessComposeManger.kt | nhatdotranminh | 764,408,474 | false | {"Kotlin": 5516, "Ruby": 1744, "Java": 1708, "TypeScript": 1473, "Swift": 906, "Objective-C": 189, "JavaScript": 72} | package com.awsfaceliveness;
import android.view.View
import android.view.ViewGroup
import com.facebook.react.uimanager.ThemedReactContext
import android.view.Choreographer
import android.widget.FrameLayout
import androidx.fragment.app.FragmentActivity
import com.facebook.react.bridge.ReactApplicationContext
import c... | 0 | Kotlin | 0 | 0 | 2118588f810c496f05d3c6f2d23496719dd89f88 | 2,715 | react-native-aws-face-live-ness | MIT License |
vector/src/main/java/im/vector/app/features/roomprofile/polls/ended/RoomEndedPollsFragment.kt | tchapgouv | 340,329,238 | false | null | /*
* Copyright (c) 2022 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 4 | null | 6 | 9 | 9bd50a49e0a5a2a17195507ef3fe96594ddd739e | 1,379 | tchap-android | Apache License 2.0 |
src/main/kotlin/belicfr/exercises/todolist/utilities/Redirect.kt | Sprint-Boot-Kotlin-learning | 784,185,732 | false | {"Kotlin": 11832, "HTML": 5504, "CSS": 4412} | package belicfr.exercises.todolist.utilities
import org.springframework.web.servlet.view.RedirectView
object Redirect {
fun to(map: String): RedirectView {
return RedirectView(map)
}
} | 0 | Kotlin | 0 | 0 | ab7a539ff3d43f7b077380cdae4e5e678a0f49df | 202 | todo-list | MIT License |
diktat-rules/src/test/kotlin/com/saveourtool/diktat/ruleset/chapter2/HeaderCommentRuleTest.kt | saveourtool | 275,879,956 | false | {"Kotlin": 2386437, "TeX": 190514, "Shell": 2900, "Batchfile": 541, "Makefile": 47} | package com.saveourtool.diktat.ruleset.chapter2
import com.saveourtool.diktat.common.config.rules.DIKTAT_RULE_SET_ID
import com.saveourtool.diktat.common.config.rules.RulesConfig
import com.saveourtool.diktat.ruleset.constants.Warnings
import com.saveourtool.diktat.ruleset.constants.Warnings.HEADER_MISSING_IN_NON_SING... | 149 | Kotlin | 39 | 535 | 9e73d811d9fd9900af5917ba82ddeed0177ac52e | 16,889 | diktat | MIT License |
enro/src/androidTest/java/dev/enro/core/fragment/FragmentDestinationPresentDialog.kt | isaac-udy | 256,179,010 | false | null | package dev.enro.core.fragment
import dev.enro.core.compose.ComposableDestination
import dev.enro.core.destinations.*
import org.junit.Test
class FragmentDestinationPresentDialog {
@Test
fun givenFragmentDestination_whenExecutingPresent_andTargetIsDialog_andTargetIsComposableDestination_thenCorrectDestinatio... | 13 | Kotlin | 13 | 217 | 84dbdbd4b6dda314629353b06db6491863431a91 | 2,532 | Enro | Apache License 2.0 |
main-js/src/Main.kt | abissell | 134,173,678 | false | {"JavaScript": 1535466, "Kotlin": 913, "HTML": 411} | fun main(args: Array<String>) {
val b = B()
b.printSomething()
val c = C(1234.5678)
println(c.toFloat())
}
| 0 | JavaScript | 0 | 0 | 77e95d60194f1f583e36b5dba60c45d368b49704 | 123 | kotlin-multiplatform-sandbox | Apache License 2.0 |
extension-style/src/main/java/com/mapbox/maps/extension/style/utils/ExpectedUtils.kt | mapbox | 330,365,289 | false | null | package com.mapbox.maps.extension.style.utils
import com.mapbox.bindgen.Expected
import com.mapbox.bindgen.None
import com.mapbox.maps.MapboxStyleException
/**
* Internal function to check if a method invoke on StyleDelegate succeeded, throws exception if not.
*/
internal fun Expected<String, None>?.check() {
thi... | 216 | null | 131 | 472 | 2700dcaf18e70d23a19fc35b479bff6a2d490475 | 853 | mapbox-maps-android | Apache License 2.0 |
src/main/kotlin/OctocatKDUDialogs.kt | N7ghtm4r3 | 737,529,238 | false | {"Kotlin": 13470, "Java": 12595} |
import KDUWorker.logError
import KDUWorker.logMessage
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.*
import andro... | 0 | Kotlin | 0 | 0 | 2908bc7f6b97aed209544757cf185db25ad5bc53 | 13,470 | OctocatKDU | MIT License |
app/src/main/java/online/taxcore/pos/ui/settings/SettingsActivity.kt | Data-Tech-International | 581,201,452 | false | {"Kotlin": 359911, "Java": 64900} | package online.taxcore.pos.ui.settings
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import kotlinx.android.synthetic.main.secundary_activity.*
import online.taxcore.pos.R
import online.taxcore.pos.extensions.addFragment
i... | 1 | Kotlin | 3 | 4 | 3b71009b206d1ffa579991076200fe1c9a955ed5 | 1,543 | Taxcore-MobilePOS-Android | MIT License |
src/commonMain/kotlin/data/items/VengefulGladiatorsSalvation.kt | marisa-ashkandi | 332,658,265 | false | null | package `data`.items
import `data`.Constants
import `data`.buffs.Buffs
import `data`.model.Item
import `data`.model.ItemSet
import `data`.model.Socket
import `data`.model.SocketBonus
import character.Buff
import character.Stats
import kotlin.Array
import kotlin.Boolean
import kotlin.Double
import kotlin.Int
import kot... | 21 | Kotlin | 11 | 25 | 9cb6a0e51a650b5d04c63883cb9bf3f64057ce73 | 1,660 | tbcsim | MIT License |
order/src/main/kotlin/kz/kasip/order/ui/offerservice/OfferAServiceViewModelFactory.kt | SherkhanAmandyk | 772,507,371 | false | {"Kotlin": 248568} | package kz.kasip.order.ui.offerservice
import dagger.assisted.AssistedFactory
import kz.kasip.order.OrderUi
@AssistedFactory
interface OfferAServiceViewModelFactory {
fun create(orderUi: OrderUi): OfferAServiceViewModel
} | 0 | Kotlin | 0 | 0 | cd2647641c6633a34174402387bdbbb59203b32b | 227 | kasip-kz | Apache License 2.0 |
app/src/main/java/com/example/nvblog/ui/browser/BrowserViewModel.kt | aucd29 | 201,148,243 | false | null | package com.example.nvblog.ui.browser
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import javax.inject.Inject
/**
* Created by <a href="mailto:<EMAIL>"><NAME></a> on 2019-08-09 <p/>
*/
class BrowserViewModel @Inject @JvmOverloads constructor(
application: Application
) : AndroidVie... | 1 | null | 1 | 1 | feb3fcc7d1cac80a7db0b6ce392bb0fce54710c7 | 344 | nvblog | Apache License 2.0 |
src/main/java/net/sharplab/epubtranslator/core/service/EPubTranslatorException.kt | sharplab | 273,607,985 | false | null | package net.sharplab.epubtranslator.core.service
class EPubTranslatorException(e: Exception?) : RuntimeException(e) | 8 | Kotlin | 7 | 88 | b7cf3c966b16906618e85ed750d2d515da7c079d | 116 | epub-translator | Apache License 2.0 |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/logs/MetricFilterOptionsDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.logs
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Number
import kotlin.String
import kotl... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 3,407 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/com/yubo/han/toe/Services/MetroStationsAdapter.kt | Yurockkk | 120,151,819 | false | null | package com.yubo.han.toe.Services
import android.content.Context
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.yubo.han.toe.R
import com.yubo.han.toe.model.MetroStations
import kotlinx.android.synthetic.main.row_metr... | 0 | Kotlin | 0 | 0 | a3fa47b55a86e1aab4286c0845c8b3471e992f28 | 3,127 | TOE-DCMetroExplorer | MIT License |
app/src/main/java/com/yubo/han/toe/Services/MetroStationsAdapter.kt | Yurockkk | 120,151,819 | false | null | package com.yubo.han.toe.Services
import android.content.Context
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.yubo.han.toe.R
import com.yubo.han.toe.model.MetroStations
import kotlinx.android.synthetic.main.row_metr... | 0 | Kotlin | 0 | 0 | a3fa47b55a86e1aab4286c0845c8b3471e992f28 | 3,127 | TOE-DCMetroExplorer | MIT License |
apps/server/src/main/kotlin/com/keygenqt/mb/routing/user/organizers.kt | keygenqt | 815,799,361 | false | {"JavaScript": 609467, "Kotlin": 438860, "SCSS": 15489, "PHP": 5404, "HTML": 3459, "CSS": 2509, "Dockerfile": 104} | /*
* Copyright 2024 <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 wr... | 0 | JavaScript | 1 | 11 | cac59e138d47d232a349613686af6bad727028bd | 1,737 | kmp-mb | Apache License 2.0 |
integ-tests/src/commonTest/kotlin/dev/evo/elasticmagic/qf/AttrSimpleFiltersTest.kt | anti-social | 344,848,222 | false | null | package dev.evo.elasticmagic.qf
import dev.evo.elasticmagic.ElasticsearchTestBase
import dev.evo.elasticmagic.SearchQuery
import io.kotest.matchers.shouldBe
import kotlin.test.Test
class AttrSimpleFiltersTest : ElasticsearchTestBase() {
override val indexName = "attr-simple-filter"
object ItemQueryFilters : ... | 9 | null | 5 | 45 | ab6e9ee73108c6a0520a06ae1855a35ec183ff8d | 3,601 | elasticmagic-kt | Apache License 2.0 |
core/model/src/commonMain/kotlin/club/nito/core/model/participant/ParticipantDeclaration.kt | 2rabs | 711,156,470 | false | {"Kotlin": 211834, "Swift": 20406, "Shell": 1287, "HTML": 269, "Makefile": 246} | package club.nito.core.model.participant
/**
* 参加表明
* @param scheduleId スケジュールID
* @param memberId メンバーID
* @param comment コメント
*/
data class ParticipantDeclaration(
val scheduleId: String,
val memberId: String,
val comment: String,
)
| 1 | Kotlin | 0 | 0 | d27bfca23e776be569ea217e7a98e19cc1832d0f | 253 | nito-app | MIT License |
src/main/kotlin/dev/storozhenko/familybot/services/routers/PaymentRouter.kt | AngryJKirk | 114,262,178 | false | null | package space.yaroslav.familybot.services.routers
import org.springframework.stereotype.Component
import org.telegram.telegrambots.meta.api.methods.AnswerPreCheckoutQuery
import org.telegram.telegrambots.meta.api.methods.send.SendMessage
import org.telegram.telegrambots.meta.api.objects.Update
import org.telegram.tele... | 0 | null | 4 | 97 | aff071c72503ffb9ad276fb9cc33d8408196795d | 5,486 | familybot | Apache License 2.0 |
winter/src/test/kotlin/io/jentz/winter/adapter/ApplicationGraphOnlyAdapterTest.kt | AlexWih | 156,714,313 | true | {"Kotlin": 306587, "HTML": 9144, "Java": 5620, "Ruby": 2097} | package io.jentz.winter.adapter
import io.jentz.winter.*
import io.kotlintest.matchers.boolean.shouldBeTrue
import io.kotlintest.matchers.types.shouldBeInstanceOf
import io.kotlintest.matchers.types.shouldBeSameInstanceAs
import io.kotlintest.shouldThrow
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter... | 0 | Kotlin | 0 | 0 | 3c0ea4336c87fcbe38143dd6787390756fbfc68f | 2,632 | winter | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/quicksight/CfnDashboardMappedDataSetParameterPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 63959868} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.quicksight
import cloudshift.awscdk.common.CdkDslMarker
import... | 4 | Kotlin | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 1,823 | awscdk-dsl-kotlin | Apache License 2.0 |
cinescout/recommended/data/remote/src/commonMain/kotlin/cinescout/recommended/data/remote/model/TraktScreenplayRecommendedMetadata.kt | fardavide | 280,630,732 | false | null | package cinescout.recommended.data.remote.model
import cinescout.screenplay.domain.model.id.ScreenplayIds
import cinescout.screenplay.domain.model.id.TmdbScreenplayId
import cinescout.screenplay.domain.model.id.TraktScreenplayId
import kotlinx.serialization.KSerializer
import kotlinx.serialization.SerialName
import ko... | 14 | Kotlin | 2 | 6 | f2e3993816452afaf6c3f1e7c7a384eb9a66c06e | 2,460 | CineScout | Apache License 2.0 |
app/src/main/java/com/nora/rickscrate/data/model/EpisodeResponse.kt | NoraHeithur | 508,081,858 | false | {"Kotlin": 75432} | package com.nora.rickscrate.data.model
import com.squareup.moshi.JsonClass
import com.squareup.moshi.Json
@JsonClass(generateAdapter = true)
data class EpisodeResponse(
@Json(name = "id")
val id: Int,
@Json(name = "name")
val name: String,
@Json(name = "air_date")
val airDate: String,
@Jso... | 0 | Kotlin | 0 | 0 | bc43b19f719ec19c08eead8f0371a83107d94101 | 537 | RicksCrate | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/jobsboard/api/jobs/application/GetMatchingCandidateJobsResponse.kt | ministryofjustice | 775,484,528 | false | {"Kotlin": 314546, "Dockerfile": 1362} | package uk.gov.justice.digital.hmpps.jobsboard.api.jobs.application
import java.time.Instant
import java.time.LocalDate
data class GetMatchingCandidateJobsResponse(
val id: String,
val jobTitle: String,
val employerName: String,
val sector: String,
val postcode: String,
val closingDate: LocalDate? = null,... | 1 | Kotlin | 0 | 1 | 95e47cf678870a867c50d53ab53f6b3f51a45350 | 430 | hmpps-jobs-board-api | MIT License |
components/messaging-support/src/test/kotlin/test/collective/messaging/TestCancelHandler.kt | lpriyasivakumar | 695,890,383 | false | {"Kotlin": 64097, "CSS": 9510, "FreeMarker": 3587, "Dockerfile": 338, "Shell": 267} | package test.collective.messaging
import com.rabbitmq.client.CancelCallback
class TestCancelHandler : CancelCallback {
override fun handle(consumerTag: String?) {
}
} | 0 | Kotlin | 0 | 0 | 2ca16a2fd7ddf343d32a0bc584f6d8db75ff7347 | 176 | daily-news-feed | Apache License 2.0 |
trimindent-compiler/testData/blankLine.kt | bennyhuo | 499,044,675 | false | {"Kotlin": 18621} | // SOURCE
// FILE: Main.kt [MainKt#main]
val s = """
hello
""".trimIndent()
val s1 = """
$s
""".trimIndent()
val s2 = """
hello
$s
world
""".trimIndent()
fun main() {
println(s)
println(s1)
println(s2)
}
// EXPECT
// FILE... | 0 | Kotlin | 2 | 40 | c4355d89309c90e23e93543123365896feef498e | 557 | Kotlin-Trim-Indent | MIT License |
auth/src/commonMain/kotlin/ResolveRelationsTo.kt | crowdproj | 518,714,370 | false | null | package com.crowdproj.rating.auth
import com.crowdproj.rating.common.model.CwpRating
import com.crowdproj.rating.common.model.CwpRatingId
import com.crowdproj.rating.common.model.CwpRatingVisibility
import com.crowdproj.rating.common.permission.CwpRatingPrincipalModel
import com.crowdproj.rating.common.permission.CwpR... | 0 | Kotlin | 2 | 0 | 680c52b3be9161b699c635fc032a0289ce71a239 | 881 | crowdproj-ratings | Apache License 2.0 |
app/src/main/java/com/zlucas2k/mytask/domain/model/Priority.kt | zLuCaS2K | 238,888,752 | false | null | package com.zlucas2k.mytask.domain.model
enum class Priority {
HIGH,
MEDIUM,
LOW,
NONE,
} | 0 | null | 3 | 8 | 4bdcca1f17f45971bdf63253046df63cc805a76c | 106 | MyTask | MIT License |
app/src/main/java/com/zlucas2k/mytask/domain/model/Priority.kt | zLuCaS2K | 238,888,752 | false | null | package com.zlucas2k.mytask.domain.model
enum class Priority {
HIGH,
MEDIUM,
LOW,
NONE,
} | 0 | null | 3 | 8 | 4bdcca1f17f45971bdf63253046df63cc805a76c | 106 | MyTask | MIT License |
AR-Android-Voice-Base/app/src/main/java/org/ar/ar_android_voice_base/InfoAdapter.kt | asdlei99 | 355,028,252 | true | {"Objective-C": 17114, "Kotlin": 9782, "Ruby": 285} | package org.ar.ar_android_voice_base
import android.view.View
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
class InfoAdapter: BaseQuickAdapter<InfoBean,BaseViewHolder>(R.layout.layout_info){
override fun convert(holder: BaseViewHolder, item:... | 0 | null | 0 | 0 | 8669630272cd945b48ada0518c888001b549195f | 725 | Basic-Audio-Example | MIT License |
samples/starter-mobile-app/src/main/kotlin/researchstack/presentation/screen/task/activity/ActivityInstructionScreen.kt | S-ResearchStack | 520,365,275 | false | {"Kotlin": 178868, "AIDL": 4785} | package researchstack.presentation.screen.task.activity
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose... | 5 | Kotlin | 20 | 26 | e31e8055f96fa226745750b5a653e341cf5f2e6c | 3,037 | app-sdk | Apache License 2.0 |
archetype/src/main/resources/archetype-resources/local-server/src/main/kotlin/localserver/Main.kt | cjkent | 93,342,396 | false | null | package ${package}.localserver
import com.beust.jcommander.JCommander
import ws.osiris.localserver.ServerArgs
import ws.osiris.localserver.runLocalServer
import ${package}.core.api
import ${package}.core.createComponents
/**
* Main function for running the application in an HTTP server (Jetty).
*
* The arguments ... | 26 | null | 3 | 39 | 30b1327c9808c015881ae5e33ac0d19a23f1e619 | 773 | osiris | Apache License 2.0 |
backend/data/src/main/kotlin/io/tolgee/repository/OrganizationRepository.kt | tolgee | 303,766,501 | false | {"TypeScript": 2960870, "Kotlin": 2463774, "JavaScript": 19327, "Shell": 12678, "Dockerfile": 9468, "PLpgSQL": 663, "HTML": 439} | package io.tolgee.repository
import io.tolgee.dtos.queryResults.organization.OrganizationView
import io.tolgee.model.Organization
import io.tolgee.model.UserAccount
import io.tolgee.model.enums.OrganizationRoleType
import org.springframework.context.annotation.Lazy
import org.springframework.data.domain.Page
import or... | 170 | TypeScript | 188 | 1,837 | 6e01eec3a19c151a6e0aca49e187e2d0deef3082 | 6,372 | tolgee-platform | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.