path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/nl/jackploeg/aoc/_2022/calendar/day03/Day03.kt | jackploeg | 736,755,380 | false | {"Kotlin": 318734} | package nl.jackploeg.aoc._2022.calendar.day03
import javax.inject.Inject
import nl.jackploeg.aoc.generators.InputGenerator.InputGeneratorFactory
import nl.jackploeg.aoc.utilities.readStringFile
class Day03 @Inject constructor(
private val generatorFactory: InputGeneratorFactory,
) {
// get sum of priorities
... | 0 | Kotlin | 0 | 0 | f2b873b6cf24bf95a4ba3d0e4f6e007b96423b76 | 1,809 | advent-of-code | MIT License |
kotlin-spark-api/3.2/src/test/kotlin/org/jetbrains/kotlinx/spark/api/UDFRegisterTest.kt | JetBrains | 268,498,799 | false | null | /*-
* =LICENSE=
* Kotlin Spark API: API for Spark 2.4+ (Scala 2.12)
* ----------
* Copyright (C) 2019 - 2021 JetBrains
* ----------
* 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
*
... | 16 | null | 33 | 318 | e2d0f2058fb38551add9f2767325ba143dc646c3 | 6,460 | kotlin-spark-api | Apache License 2.0 |
app/src/main/java/com/softcross/insuranceapp/data/dto/health/HealthDto.kt | ErenMlg | 831,049,131 | false | {"Kotlin": 280324} | package com.softcross.insuranceapp.data.dto.health
import com.google.gson.annotations.SerializedName
data class HealthDto(
@SerializedName("policyNo")
val policyNo:String,
@SerializedName("smoke")
val smoke:Boolean,
@SerializedName("alcohol")
val alcohol:Boolean,
@SerializedName("drugs")
... | 0 | Kotlin | 0 | 0 | ed7119e6c4ee96a8db1efddb0fd2da438cf61c7c | 506 | InsuranceApp | Apache License 2.0 |
eva-persistence-jdbc/src/main/kotlin/com/razz/eva/persistence/jdbc/DataSourceConnectionProvider.kt | razz-team | 477,827,497 | false | {"Kotlin": 607724, "PLpgSQL": 6537, "Dockerfile": 178} | package com.razz.eva.persistence.jdbc
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.NonCancellable
import kotlinx.coroutines.ensureActive
import kotlinx.coroutines.withContext
import java.sql.Connection
import javax.sql.DataSource
import kotlin.coroutines... | 6 | Kotlin | 0 | 49 | 38bb888f963894a6ce636bc98c6ea92182e53775 | 1,428 | eva | Apache License 2.0 |
app/src/main/java/com/example/kotlincodingtest/programmers/Lv2/다리를_지나는_트럭/Solution.kt | ichanguk | 788,416,368 | false | {"Kotlin": 321279} | package com.example.kotlincodingtest.programmers.Lv2.다리를_지나는_트럭
class Solution {
fun solution(bridge_length: Int, weight: Int, truck_weights: IntArray): Int {
var answer = 1
val passing = ArrayDeque<Pair<Int, Int>>()
var curW = 0
truck_weights.forEachIndexed{ idx, w ->
... | 0 | Kotlin | 0 | 0 | 3ebb59ec0b78d8b0ad734600de6abde2b4080a88 | 899 | KotlinCodingTest | MIT License |
Kotlin/server.kts | grsahil20 | 144,703,310 | false | {"C": 837, "Ruby": 509, "PHP": 47, "Scala": 43, "Swift": 43, "Dart": 42, "Java": 42, "Erlang": 41, "Kotlin": 41, "C#": 40, "Go": 40, "Haskell": 40, "JavaScript": 40, "Clojure": 39, "Julia": 38, "Python": 38} | // server.kts
// Could you do me a favor? | 2 | C | 0 | 0 | 089b2c077d04211e79754824d69167a93572ae2e | 41 | hello-web | MIT License |
app/src/main/java/com/vdc/generativeai/screens/TextChatscreen.kt | Maruthi1225 | 779,249,431 | false | {"Kotlin": 46992} | package com.vdc.generativeai.screens
import android.annotation.SuppressLint
import com.vdc.generativeai.viewmodels.ChatViewModel
import androidx.activity.ComponentActivity
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import ... | 0 | Kotlin | 0 | 0 | aef39333cad3aa50456f5b15f69b599f8d2aa979 | 8,312 | GrootBotAIchatbot | MIT License |
rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/HedgeFlagEnum.kt | sun0x00 | 130,566,707 | false | null | package xyz.redtorch.common.trade.enumeration
// HedgeFlagEnum是一个投机套保标志类型
enum class HedgeFlagEnum(val value: Int) {
Unknown(0), // 未知
Speculation(1), // 投机
Arbitrage(2), // 套利
Hedge(3), // 套保
MarketMaker(4), // 做市商
SpecHedge(5), // 第一腿投机第二腿套保 大商所专用
HedgeSpec(6) // 第一腿套保第二腿投机 大商所专用
} | 0 | Java | 346 | 714 | c6a036adc262829e28d8e6cd2ea4bc3b7089b863 | 314 | redtorch | MIT License |
plugin/src/main/kotlin/dev/anatolii/gradle/cpp/android/compiler/CCompiler.kt | Anatolii | 207,176,940 | false | null | /*
* Copyright 2013 the original author or authors.
*
* 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... | 6 | Kotlin | 0 | 0 | c2af271e8221d28c2e28eea3a2c3fc6bee42fb5d | 2,181 | Android-CPP-ToolChain-for-Gradle | MIT License |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/submission/ui/homecards/RapidTestPositiveCard.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.submission.ui.homecards
import android.view.ViewGroup
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.coronatest.type.rapidantigen.SubmissionStateRAT
import de.rki.coronawarnapp.databinding.HomeSubmissionRapidStatusCardPositiveNotSharedBinding
import de.rki.coronawarnapp.submissi... | 6 | Kotlin | 514 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 1,787 | cwa-app-android | Apache License 2.0 |
app-backend/src/main/kotlin/usecases/signup/KotlinerDao.kt | Heapy | 40,936,978 | false | {"Kotlin": 3311624, "TypeScript": 19032, "Less": 5146, "HTML": 4493, "JavaScript": 2299, "CSS": 2174, "Dockerfile": 243} | package usecases.signup
import jooq.main.enums.KotlinerStatusEnum
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import jooq.main.keys.UNIQUE_KOTLINER_EMAIL
import jooq.main.keys.UNIQUE_KOTLINER_NICKNAME
import jooq.main.tables.references.KOTLINER
import ktor.plugins.ConstraintViolationExc... | 21 | Kotlin | 1220 | 11,018 | 2f4cfa75180e759d91fe238cc3f638beec9286e2 | 3,513 | awesome-kotlin | Apache License 2.0 |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/areas/lumbridge/melee_instructor.plugin.kts | 2011Scape | 578,880,245 | false | null | package gg.rsmod.plugins.content.areas.lumbridge
on_npc_option(npc = Npcs.MELEE_INSTRUCTOR, option = "talk-to") {
player.queue {
this.chatNpc("Greetings adventurer, I am the Melee combat tutor. Is", "there anything I can do for you?")
mainChat(this)
}
}
suspend fun mainChat(it: QueueTask) {
... | 5 | Kotlin | 8 | 13 | 11ae0b9d6f49e6580119f6f7803a01edc6673a5a | 4,726 | tek5-game | Apache License 2.0 |
app/src/main/kotlin/com/mgorski/discountasciiwarehouse/asciiitemlist/AsciiItemViewModel.kt | mgorski-zlatan | 62,167,867 | false | null | package com.mgorski.discountasciiwarehouse.asciiitemlist
import android.databinding.ObservableField
import android.view.View
import com.mgorski.discountasciiwarehouse.R
import com.mgorski.discountasciiwarehouse.asciiitemlist.di.ItemListComponent
import com.mgorski.discountasciiwarehouse.model.AsciiItem
import com.mgor... | 1 | null | 1 | 1 | 7544fde8e210928deebddc58d2e00a7eca9a1d2d | 731 | discount-ascii-warehouse | Apache License 2.0 |
backend/data/src/main/kotlin/io/tolgee/repository/TagRepository.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.model.Project
import io.tolgee.model.dataImport.ImportKey
import io.tolgee.model.key.Key
import io.tolgee.model.key.Tag
import org.springframework.context.annotation.Lazy
import org.springframework.data.domain.Page
import org.springframework.data.domain.Pageable
import org... | 170 | TypeScript | 188 | 1,837 | 6e01eec3a19c151a6e0aca49e187e2d0deef3082 | 3,065 | tolgee-platform | Apache License 2.0 |
5_OTHER_concepts/2_generics.kt | hariomop12 | 743,116,300 | false | {"Kotlin": 130741, "Nix": 98} | // generics is a genral class that does not depend on class they have genral class pass the type of classs and use it .file
// Generics in Kotlin allow you to define classes, interfaces, and functions with type parameters. This enables you to create reusable components that can work with any type. Generics provide ty... | 0 | Kotlin | 1 | 5 | 8612da37179639ff8be8233b2647c4061c76b1dc | 2,223 | Kotlin-Vibe | MIT License |
mmkunyi/src/main/java/com/zawhtetnaing/mmkunyi_app_assignment_zhn/mvp/presenters/JobListPresenter.kt | zawhtetnaing10 | 142,637,994 | false | null | package com.zawhtetnaing.mmkunyi_app_assignment_zhn.mvp.presenters
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.MutableLiveData
import com.zawhtetnaing.mmkunyi_app_assignment_zhn.data.models.JobsModel
import com.zawhtetnaing.mmkunyi_app_assignment_zhn.data.vos.JobVO
import com.zawhtetnaing.mmku... | 0 | Kotlin | 0 | 0 | 4617a1baa5887a48bf9f648cec6988ff42066244 | 2,218 | MMKuNyi-App-Assignment-ZHN | MIT License |
app/src/main/java/com/mafqud/android/auth/register/RegisterScreen.kt | MafQud | 483,257,198 | false | null | package com.mafqud.android.auth.register
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.ScaffoldState
import androidx.compose.mate... | 0 | Kotlin | 6 | 35 | 309e82d51d6c1c776365643ef48ecb78fd243c23 | 18,221 | MafQud-Android | MIT License |
library/src/commonMain/kotlin/io/github/gaaabliz/kliz/common/model/DayMoment.kt | GaaabLiz | 769,193,666 | false | {"Kotlin": 306682} | package io.github.gaaabliz.kliz.common.model
enum class DayMoment {
MORNING, AFTERNOON, PAUSE, UNKNOWN
} | 0 | Kotlin | 0 | 0 | f9cbc327b9784eb3f093f6a9161e390b81db22d1 | 109 | ktliz | Apache License 2.0 |
sketch-svg/src/commonTest/kotlin/com/github/panpf/sketch/svg/common/test/decode/SvgDecoderTest.kt | panpf | 14,798,941 | false | null | /*
* Copyright (C) 2024 panpf <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 8 | null | 309 | 2,057 | 89784530da0de6085a5b08f810415147cb3165cf | 11,146 | sketch | Apache License 2.0 |
src/jsMain/kotlin/components/seeds/RegisterComponent.kt | leonhardbrenner | 406,156,603 | false | null | package components.seeds
import SeedsApi
import components.seeds.DisplayComponent.ComponentStyles.inline
import components.seeds.DisplayComponent.ComponentStyles.listDiv
import com.ccfraser.muirwik.components.*
import com.ccfraser.muirwik.components.list.*
import com.ccfraser.muirwik.components.menu.mMenuItem
import g... | 0 | Kotlin | 0 | 0 | bb33041aee0ec78c6dc3a9615879c04ad589e131 | 4,259 | grow | MIT License |
app/src/main/java/com/ubuntuyouiwe/nexus/data/util/dto_type/AIRequestBodyFields.kt | ubuntuyiw | 670,182,275 | false | null | package com.ubuntuyouiwe.nexus.data.util.dto_type
enum class AIRequestBodyFields(val key: String) {
MODEL("model"),
MESSAGES("messages"),
MAX_TOKENS("max_tokens"),
TEMPERATURE("temperature")
}
| 0 | null | 0 | 9 | 4edd0040e8983f79eca4cce71ca3e60cc4ee31b7 | 210 | Nexus | Apache License 2.0 |
src/main/Kotlin/highlevelcodes/Predicate.kt | Jianwei-Wu-1 | 467,248,073 | false | null | package edu.udel.highlevelcodes
import com.intellij.execution.junit.JUnitUtil
import com.intellij.psi.PsiMethod
import com.intellij.psi.PsiMethodCallExpression
import com.siyeh.ig.testFrameworks.AssertHint
import edu.udel.util.find
import edu.udel.util.isJUnitAssertions
import edu.udel.util.isOtherAssertion
import edu... | 0 | Kotlin | 0 | 0 | fc9d1658fcbd03f33a66ee279efe2f057c69b6dc | 1,251 | NameGenerationPlugin | The Unlicense |
editor-shape/src/main/kotlin/ru/ilyasshafigin/openrndr/editor/shape/SplineBuilder.kt | ilyasshafigin | 258,325,328 | false | null | package ru.ilyasshafigin.openrndr.editor.shape
import org.openrndr.math.Matrix44
import org.openrndr.math.Vector2
import org.openrndr.shape.Segment
import org.openrndr.shape.ShapeContour
class SplineBuilder(
private val multipleContours: Boolean,
private var curveDetail: Int = DEFAULT_DETAIL,
private var ... | 0 | Kotlin | 0 | 1 | 7166d40e19687da68b2cf7d9c40b322daa17864e | 7,219 | openrndr-editor | MIT License |
kuberig-dsl-base/src/main/kotlin/io/kuberig/dsl/model/FullMetadata.kt | kuberig-io | 172,784,898 | false | null | package io.kuberig.dsl.model
/**
* Metadata object that includes annotations and labels.
*
* Based on the following documentation.
* https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata.
*
* According to the documentation there can be objects that ha... | 5 | null | 1 | 7 | 85e1dcd7ed4c25f00d33911d39fee84cb67ca972 | 1,551 | kuberig-dsl | Apache License 2.0 |
milkyway-core/src/main/kotlin/com/milkcocoa/info/milkyway/atproto/method/AtProtocolPost.kt | milkcocoa0902 | 777,786,753 | false | {"Kotlin": 269361} | package com.milkcocoa.info.milkyway.atproto.method
import com.milkcocoa.info.milkyway.atproto.action.Action
import com.milkcocoa.info.milkyway.domain.Domain
import com.milkcocoa.info.milkyway.models.AtProtocolBlobPostRequestModel
import com.milkcocoa.info.milkyway.models.AtProtocolModel
import com.milkcocoa.info.milky... | 0 | Kotlin | 0 | 0 | 262fc3f72240024a6a6b69d5522aaae06591d2f0 | 6,432 | Milkyway | MIT License |
androidApp/src/main/java/com/mdgroup/nasawallpapers/presentation/views/RatingBarView.kt | mobile-development-group | 602,687,551 | false | null | package com.mdgroup.nasawallpapers.presentation.views
import android.content.res.Configuration
import android.view.ContextThemeWrapper
import android.widget.RatingBar
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.runtime.Compo... | 0 | Kotlin | 0 | 8 | f8a7883ebc775f1b9ac55b78fd116b5e4258e5e0 | 1,458 | NASAWallpaper | Apache License 2.0 |
buildSrc/src/test/kotlin/ch/acanda/gradle/fabrikt/build/generator/DirectoryPropertyGeneratorTest.kt | acanda | 687,155,869 | false | {"Kotlin": 104098} | package ch.acanda.gradle.fabrikt.build.generator
import ch.acanda.gradle.fabrikt.build.ExtensionGeneratorTest.Companion.writeToString
import com.squareup.kotlinpoet.TypeSpec
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
class DirectoryPropertyGeneratorTest : StringSpec({
"directo... | 1 | Kotlin | 0 | 2 | e2f419102f0c7149fb6566ae6886c9491b447a3b | 2,674 | fabrikt-gradle-plugin | Apache License 2.0 |
common/src/test/kotlin/org/amshove/kluent/tests/numerical/ShouldBeGreaterThanShould.kt | MarkusAmshove | 51,317,191 | false | null | package org.amshove.kluent.numerical
import org.amshove.kluent.shouldBeGreaterThan
import kotlin.test.assertFails
import kotlin.test.Test
class ShouldBeGreaterThanShould {
@Test
fun passWhenTestingAnIntegerWhichIsGreater() {
5.shouldBeGreaterThan(2)
}
@Test
fun failWhenTestingAnIntegerWhi... | 12 | null | 66 | 843 | 2826b263e5e2b5a74d8eb0394a4354848052e786 | 1,209 | Kluent | MIT License |
lib/src/jvmMain/kotlin/xyz/mcxross/ksui/client/Platform.kt | mcxross | 611,172,630 | false | null | package xyz.mcxross.ksui.client
import io.ktor.client.*
import io.ktor.client.engine.cio.*
actual fun httpClient(config: HttpClientConfig<*>.() -> Unit): HttpClient = HttpClient(CIO)
| 0 | Kotlin | 0 | 0 | 163a0be41d3841e2be7770eff20afb6d7aeb57a8 | 185 | ksui | Apache License 2.0 |
code/data_structures/SparseMinTable.kt | hakiobo | 397,069,173 | false | null | private class SparseMinTable(val nums: IntArray) {
val n = nums.size
val table = Array(
((n shl 2) - 1).takeHighestOneBit().countTrailingZeroBits()
) { IntArray(n) }
init {
for (x in 0 until n) {
table[0][x] = x
}
for (bit in 1 until table.size) {
... | 0 | Kotlin | 1 | 2 | ec710f92660b78053a879db6dc89182b21b6526b | 1,179 | Kotlinaughts | MIT License |
src/jvmTest/kotlin/animations/DistanceTest.kt | AnimatedLEDStrip | 168,790,414 | false | {"Kotlin": 844872, "Python": 9025, "Shell": 8325} | /*
* Copyright (c) 2018-2021 AnimatedLEDStrip
*
* 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, copy, modify, merg... | 10 | Kotlin | 3 | 9 | 77a61846dbf723686633827a5690d57c4a451723 | 2,366 | AnimatedLEDStrip | MIT License |
sdk/src/main/java/com/exponea/sdk/manager/FileManagerImpl.kt | VivekShekhawatPunchh | 258,484,096 | true | {"Kotlin": 601157} | package com.exponea.sdk.manager
import java.io.File
internal class FileManagerImpl : FileManager {
override fun createFile(filename: String, type: String) {
createTempFile(
prefix = filename,
suffix = type
)
}
override fun writeToFile(filename: String, tex... | 0 | null | 0 | 0 | f7ac1275fb28bca428d31b7d5a38415379d04bb6 | 505 | exponea-android-sdk | Apache License 2.0 |
core/src/test/kotlin/dev/minutest/examples/experimental/FlatteningExampleTests.kt | dmcg | 148,457,652 | false | null | package dev.minutest.examples.experimental
import dev.minutest.*
import dev.minutest.experimental.flatten
import dev.minutest.junit.JUnit5Minutests
import org.junit.jupiter.api.Assertions.assertTrue
@Suppress("USELESS_IS_CHECK")
class FlatteningExampleTests : JUnit5Minutests {
fun tests() = rootContext<Sequence... | 4 | Kotlin | 10 | 99 | 75a969ff708d1b17bdb8778e7c68c07d3386629f | 1,185 | minutest | Apache License 2.0 |
map/src/main/kotlin/de/darkatra/bfme2/map/serialization/FourByteStringSerde.kt | DarkAtra | 325,887,805 | false | null | package de.darkatra.bfme2.map.serialization
import de.darkatra.bfme2.InvalidDataException
import de.darkatra.bfme2.map.serialization.postprocessing.PostProcessor
import de.darkatra.bfme2.map.serialization.preprocessing.PreProcessor
import org.apache.commons.io.input.CountingInputStream
import java.io.OutputStream
impo... | 3 | Kotlin | 0 | 2 | b8c0b7dd8228753d6fcbf967a2258459a955f9c3 | 1,217 | bfme2-modding-utils | MIT License |
lib/src/integrationTest/kotlin/com/lemonappdev/konsist/core/declaration/koparent/KoParentDeclarationForKoSourceSetProviderTest.kt | LemonAppDev | 621,181,534 | false | {"Kotlin": 2941189, "Python": 25669} | package com.lemonappdev.konsist.core.declaration.koparent
class KoParentDeclarationForKoSourceSetProviderTest {
// Konsist koParent.sourceSetName and koParent.resideInSourceSet() tests
// are implemented in the test\konsist-path-tester project.
}
| 16 | Kotlin | 19 | 768 | 22f45504ab1c88fca8314bd86f91af7dd8a3672b | 256 | konsist | Apache License 2.0 |
kotlin-inject-compiler-ksp/src/main/kotlin/me/tatarka/inject/compiler/ksp/Util.kt | NYK1024212458 | 284,228,154 | true | {"Kotlin": 110549} | package me.tatarka.inject.compiler.ksp
import com.squareup.kotlinpoet.ClassName
import com.squareup.kotlinpoet.KModifier
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import com.squareup.kotlinpoet.TypeName
import com.squareup.kotlinpoet.TypeVariableName
import org.jetbrains.kotlin.ksp... | 0 | null | 0 | 0 | ff77ed7fafcd271536ef636d00bd2795a2369974 | 3,610 | kotlin-inject | Apache License 2.0 |
data/repository/weather/weatherrepo-api/src/main/kotlin/com/francescsoftware/weathersample/data/repository/weather/api/model/forecast/Day.kt | fvilarino | 355,724,548 | false | {"Kotlin": 622612, "Shell": 60} | package com.francescsoftware.weathersample.data.repository.weather.api.model.forecast
import com.francescsoftware.weathersample.data.repository.weather.api.model.Condition
/**
* Day weather info
*
* @property condition weather condition
* @property averageTempCelsius average temperature in Celsius
* @property av... | 1 | Kotlin | 5 | 57 | 3a3795e83c579a4dc4d0e6507e96aa68b96fe645 | 1,887 | Weather-Sample | Apache License 2.0 |
src/test/java/tech/aroma/client/ThriftClientProviderTest.kt | RedRoma | 47,442,992 | false | null | /*
* Copyright 2018 RedRoma, 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 t... | 1 | Kotlin | 0 | 2 | 57e9ad7785749602aac0d474ee152cd84a9e9765 | 4,603 | banana-java-client | Apache License 2.0 |
dclassmacro/src/main/kotlin/org/astronkt/dclassmacro/DClassFileParser.kt | rand0m-cloud | 860,244,492 | false | {"Kotlin": 180170, "Shell": 205} | @file:Suppress("ktlint:standard:no-wildcard-imports")
package org.astronkt.dclassmacro
import com.github.h0tk3y.betterParse.combinators.*
import com.github.h0tk3y.betterParse.grammar.Grammar
import com.github.h0tk3y.betterParse.grammar.parser
import com.github.h0tk3y.betterParse.lexer.literalToken
import com.github.h... | 0 | Kotlin | 0 | 3 | 4810a336c5eae76c20facae796cff7435d21c1e6 | 19,322 | astronkt | Apache License 2.0 |
polywit/kotlin/resources/Test.kt | polywit | 520,802,352 | false | {"Python": 56578, "Java": 1874, "Kotlin": 1761} | fun main(args: Array<String>) {
try {
polywit_main(emptyArray<String>())
println("polywit: Witness Spurious")
} catch (e: AssertionError) {
println(e)
e.printStackTrace()
}
} | 8 | Python | 0 | 4 | 0d65b0c4d82dbee0f0d3a9c9e24898f50e7b0910 | 218 | polywit | MIT License |
polywit/kotlin/resources/Test.kt | polywit | 520,802,352 | false | {"Python": 56578, "Java": 1874, "Kotlin": 1761} | fun main(args: Array<String>) {
try {
polywit_main(emptyArray<String>())
println("polywit: Witness Spurious")
} catch (e: AssertionError) {
println(e)
e.printStackTrace()
}
} | 8 | Python | 0 | 4 | 0d65b0c4d82dbee0f0d3a9c9e24898f50e7b0910 | 218 | polywit | MIT License |
controllers/src/main/kotlin/com/velkonost/getbetter/controllers/abilities/AbilitiesController.kt | GetBetterApps | 705,159,374 | false | {"Kotlin": 247796} | package com.velkonost.getbetter.controllers.abilities
import com.velkonost.getbetter.api.abilities.AbilitiesRepository
import com.velkonost.getbetter.api.abilities.model.response.AbilityDetailResponse
import com.velkonost.getbetter.api.abilities.model.response.AbilityResponse
import com.velkonost.getbetter.api.userinf... | 0 | Kotlin | 0 | 0 | faee8b5310d4cf6387acdd0c2daabae4828b0bd3 | 1,671 | backend | MIT License |
order/core/src/main/kotlin/com/rarible/protocol/order/core/configuration/RepositoryConfiguration.kt | NFTDroppr | 418,665,809 | true | {"Kotlin": 2329156, "Scala": 37343, "Shell": 6001, "HTML": 547} | package com.rarible.protocol.order.core.configuration
import com.rarible.core.mongo.configuration.EnableRaribleMongo
import com.rarible.ethereum.converters.EnableScaletherMongoConversions
import com.rarible.protocol.order.core.repository.Package
import com.rarible.protocol.order.core.repository.currency.CurrencyReposi... | 0 | Kotlin | 0 | 1 | b1efdaceab8be95429befe80ce1092fab3004d18 | 1,676 | ethereum-indexer | MIT License |
lib/src/main/java/com/irurueta/android/navigation/inertial/collectors/interpolators/AttitudeLinearSensorMeasurementInterpolator.kt | albertoirurueta | 440,663,799 | false | null | /*
* Copyright (C) 2023 Alberto Irurueta Carro (alberto@irurueta.com)
*
* 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
*
* Unles... | 0 | Kotlin | 0 | 0 | 02ee04164a36bc0238fa3b78e8842a799475fcf5 | 5,603 | irurueta-android-navigation-inertial | Apache License 2.0 |
app/src/main/java/com/cerminnovations/moviesboard/ui/adapter/ArtistMoviesAdapter.kt | mbobiosio | 324,425,383 | false | null | package com.cerminnovations.moviesboard.ui.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.cerminnovations.moviesboard.data.remote.model.cast... | 0 | Kotlin | 3 | 7 | 07270aa17f45edabfb6792fd529c212e1c585ce4 | 1,803 | MoviesBoard | MIT License |
plugins/kotlin/idea/tests/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressOnFileWithSuppress.kt | ingokegel | 72,937,917 | true | null | // "Suppress 'DIVISION_BY_ZERO' for file ${file}" "true"
@file:Suppress("unused")
public fun foo() = 2 / <caret>0
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.inspections.suppress.KotlinSuppressIntentionAction
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.inspections.suppress.KotlinSuppressIntentionAction | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 316 | intellij-community | Apache License 2.0 |
test/src/me/anno/tests/Quat.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.tests
import me.anno.io.files.FileReference.Companion.getReference
import org.joml.Quaternionf
import org.joml.Vector2f
import org.joml.Vector3f
// a small HLSL functionality test for my master thesis
typealias float3 = Vector3f
typealias float4 = Quaternionf
fun normalize(v: Vector3f) = Vector3f(v)... | 0 | Kotlin | 0 | 7 | bacd7c79b8b34765d157012a08d728008c4b2d9a | 2,769 | RemsEngine | Apache License 2.0 |
kora-app-symbol-processor/src/test/kotlin/ru/tinkoff/kora/kora/app/ksp/app/AppWithCircularDependency.kt | kora-projects | 743,624,836 | false | null | package ru.tinkoff.kora.kora.app.ksp.app
import ru.tinkoff.kora.common.KoraApp
import ru.tinkoff.kora.common.annotation.Root
@KoraApp
interface AppWithCircularDependency {
@Root
fun class1(class2: Class2) = Class1()
fun class2(class3: Class3): Class2
fun class3(class1: Class1): Class3
class Class... | 8 | null | 9 | 63 | bb7d906d3af0ae6f8c68f87327f010b66110f34f | 360 | kora | Apache License 2.0 |
web/widgets/src/jsMain/kotlin/modifiers/width.kt | bvc3at | 390,572,166 | true | {"Kotlin": 928979, "Shell": 10292, "Dockerfile": 5716, "HTML": 2892, "PowerShell": 1708, "Groovy": 1415, "CSS": 1022, "JavaScript": 203} | package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.unit.Dp
import org.jetbrains.compose.common.ui.Modifier
import org.jetbrains.compose.common.internal.castOrCreate
import org.jetbrains.compose.web.css.px
import org.jetbrains.compose.web.css.width
actual fun Modifier.width(s... | 0 | null | 0 | 1 | 2e571c8734c31426cc7cd6be3076ec39d638b4fc | 411 | compose-jb | Apache License 2.0 |
src/main/kotlin/br/com/thiagoodev/criptoio/infrastructure/api/CryptocurrencyPriceApiClient.kt | cthiagoodev | 809,977,009 | false | {"Kotlin": 22944, "Dockerfile": 99} | package br.com.thiagoodev.criptoio.infrastructure.api
import br.com.thiagoodev.criptoio.domain.value_objects.CryptocurrencyPrice
interface CryptocurrencyPriceApiClient {
fun list(page: Int, limit: Int, base: String): List<CryptocurrencyPrice>
} | 0 | Kotlin | 0 | 0 | 274cfa2d6ed73eeffaa2adebeef5fcae618006b2 | 250 | criptoio | MIT License |
android-sample/src/main/kotlin/net/aquadc/properties/android/sample/app.kt | b3nnee | 141,005,633 | true | {"Kotlin": 197353, "Java": 1022} | package net.aquadc.properties.android.sample
import android.app.Activity
inline val Activity.app get() = application as App
| 0 | Kotlin | 0 | 0 | 425916a3a318c07f1b80eb80a7a36bc355acd847 | 126 | reactive-properties | Apache License 2.0 |
modules/bson/sources-jvm/extensions/Duration.kt | fluidsonic | 246,018,343 | false | null | package io.fluidsonic.raptor
import io.fluidsonic.time.*
import kotlin.time.*
import kotlin.time.Duration.*
@OptIn(ExperimentalTime::class)
public fun Companion.bsonDefinition(): RaptorBsonDefinition = raptor.bson.definition<Duration> {
decode<String>(::parse)
encode(Duration::toIsoString)
}
| 0 | Kotlin | 1 | 2 | d0e65f7b98c126f6105d712fa76cdb51f253c44b | 298 | raptor | Apache License 2.0 |
rpp-gradle-plugin/src/main/kotlin/net/bladehunt/rpp/util/LanguageUtil.kt | bladehuntmc | 863,527,238 | false | {"Kotlin": 40831, "Java": 9636} | package net.bladehunt.rpp.util
import org.intellij.lang.annotations.Language
@Suppress("NOTHING_TO_INLINE")
internal inline fun java(@Language("java") value: String) = value | 0 | Kotlin | 0 | 1 | da1060b19cfc7e59c2bb33a61952d825789b24d1 | 175 | rpp | MIT License |
library/src/main/kotlin/io/github/tomplum/libs/input/InputReader.kt | TomPlum | 317,517,927 | false | null | package io.github.tomplum.libs.input
import io.github.tomplum.libs.input.types.Input
import io.github.tomplum.libs.input.types.IntegerInput
import io.github.tomplum.libs.input.types.LongInput
import io.github.tomplum.libs.input.types.StringInput
import java.io.File
/**
* A companion utility class for de-serialising ... | 0 | Kotlin | 0 | 0 | 73210157dadf8d13b7c0f405a4548a0c34542794 | 1,589 | advent-of-code-libs | Apache License 2.0 |
src/test/kotlin/com/playcoin/playwalletservicefees/api/controller/FeeControllerTest.kt | yuzamong | 240,801,676 | true | {"Kotlin": 23158} | package com.playcoin.playwalletservicefees.api.controller
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import com.google.gson.reflect.TypeToken
import com.playcoin.playwalletservicefees.api.domain.ApiResponse
import com.playcoin.playwalletservicefees.api.domain.Fee
import com.playcoin.playwalletservi... | 0 | Kotlin | 0 | 0 | a5c17bc93ac24ca29b6c0b4009d1aedd93f000b7 | 3,922 | SpringBootCryptocurrencyFees | MIT License |
code/1573. Challenge Generics Prog Kotlin P5V6 Challenge Generics/challenge-generics-finished/src/main.kt | iOSDevLog | 186,328,282 | false | null | /**
*
*/
fun main(args: Array<String>) {
/**
* Create a function named printItem that prints out a generic parameter.
* Call the parameter "item"
*/
fun <T> printItem(item : T) {
println("My Item $item")
}
printItem(1)
printItem("Hello")
/**
* Create a func... | 0 | null | 1 | 4 | 8b81fbeb046abfeda95f9870c3c29b4998dbb12d | 588 | raywenderlich | MIT License |
src/filesystem/Navigator.kt | bartee | 575,357,037 | false | {"Kotlin": 26727} | package filesystem
class Navigator {
private var activeDirectory: Directory
var currentPath: String = ""
var rootdir = Directory("ROOT")
init {
this.activeDirectory = rootdir
}
fun navigateToParent(){
println("Navigating to parent")
var pathList = currentPath.split("/").toMutableList()
pa... | 0 | Kotlin | 0 | 0 | c7141d10deffe35675a8ca43297460a4cc16abba | 1,389 | adventofcode2022 | Apache License 2.0 |
src/main/kotlin/com/thesortinghat/staticcollector/application/utils/HttpHandler.kt | the-sortinghat | 529,660,037 | false | null | package com.thesortinghat.staticcollector.application.utils
import org.springframework.stereotype.Component
import java.net.URI
import java.net.http.HttpClient
import java.net.http.HttpRequest
import java.net.http.HttpResponse
@Component
class HttpHandler: HttpAbstraction<String> {
override fun get(url: String):... | 0 | Kotlin | 0 | 0 | 95695a1808e477ce67d8257891f4fa9be21f8cce | 661 | static-collector | MIT License |
src/main/kotlin/no/nav/syfo/arbeidsgivere/client/organisasjon/client/OrganisasjonsinfoClient.kt | navikt | 238,714,111 | false | null | package no.nav.syfo.arbeidsgivere.client.organisasjon.client
import io.ktor.client.HttpClient
import io.ktor.client.request.get
import no.nav.syfo.arbeidsgivere.client.organisasjon.model.Organisasjonsinfo
import no.nav.syfo.log
class OrganisasjonsinfoClient(private val httpClient: HttpClient, private val basePath: St... | 1 | Kotlin | 0 | 0 | 4b58cde96a326b10cf407e385e0d15988414a6d9 | 662 | sykmeldinger-backend | MIT License |
app/src/main/java/com/sagarsahu27/matchme/models/BoardSize.kt | sagarsahu27 | 329,455,632 | false | null | package com.sagarsahu27.matchme.models
enum class BoardSize(val numCards: Int) {
EASY (8),
MEDIUM (12),
HARD (24);
fun getWidth(): Int {
return when (this) {
EASY -> 2
MEDIUM -> 3
HARD -> 4
}
}
fun getHeight(): Int {
return numCards ... | 0 | Kotlin | 0 | 0 | 72a16bf6fb07ff6e6973f0a42b6ed733a8766327 | 402 | MatchMe | MIT License |
src/jvmMain/kotlin/BookNotFoundExeption.kt | eliorodr2104 | 620,778,400 | false | {"Kotlin": 60886} | /**
* @author C4V4H.exe
*
* BookNotFoundException
*/
class BookNotFoundException(message: String) : Exception(message) | 0 | Kotlin | 0 | 0 | e4aa781487ddb9d03e53483491a2bd6e0c027121 | 122 | BibliotecaVolta | MIT License |
app/src/main/java/com/ruthvikbr/starbucksindiacompose/ui/screens/profile/components/ProfileDetails.kt | Ruthvikbr | 519,740,797 | false | {"Kotlin": 261703} | package com.ruthvikbr.starbucksindiacompose.ui.screens.profile.components
import ProfilePicture
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.MaterialTheme
import androidx.co... | 2 | Kotlin | 1 | 11 | 0147c79cfc70c3fe1b95443baedb49d2ebd6f05c | 1,329 | Starbucks-India-Compose | Apache License 2.0 |
app/src/main/java/com/battlelancer/seriesguide/shows/ShowMenuItemClickListener.kt | UweTrottmann | 1,990,682 | false | {"Kotlin": 2280980, "Java": 880919, "PowerShell": 1268} | // SPDX-License-Identifier: Apache-2.0
// Copyright 2015-2019, 2021-2024 Uwe Trottmann
package com.battlelancer.seriesguide.shows
import android.content.Context
import android.view.MenuItem
import android.widget.PopupMenu
import androidx.fragment.app.FragmentManager
import com.battlelancer.seriesguide.R
import com.ba... | 56 | Kotlin | 401 | 1,966 | c7bc6445ecc58b841c1887a56146dc2d2f817007 | 2,286 | SeriesGuide | Apache License 2.0 |
sdk/backend/src/test/kotlin/com/supertokens/sdk/recipes/EmailVerificationTest.kt | Appstractive | 656,572,792 | false | null | package com.supertokens.sdk.recipes
import com.supertokens.sdk.SuperTokensConfig
import com.supertokens.sdk.common.SuperTokensStatus
import com.supertokens.sdk.core.getUsersByEMail
import com.supertokens.sdk.recipe
import com.supertokens.sdk.recipes.emailpassword.EmailPassword
import com.supertokens.sdk.recipes.emailv... | 5 | null | 1 | 3 | e4d0ff3664034d1c4981a0a2cdf58c3a053da2a7 | 2,844 | supertokens-kt | Apache License 2.0 |
samples/table/src/nativeMain/resources/andlabs_16x16test_24june2016.png.kt | msink | 133,135,153 | false | {"Kotlin": 171909, "Java": 782} | import kotlinx.cinterop.cValuesOf
import libui.ktx.draw.ImageData
val `andlabs_16x16test_24june2016.png` = ImageData(width=16, height=16, stride=64, pixels=cValuesOf(
0xFF7CC589u,0xFF7CC589u,0xFF7CC589u,0xFF7CC589u,0xFF7CC589u,0xFF7CC589u,0xFF7CC589u,0xFF7CC589u,
0xFF7CC589u,0xFF7CC589u,0xFF7CC589u,0xFF7CC589u... | 21 | Kotlin | 46 | 638 | d3edda04b6c9a4f4291d379827aeb2e7c55ed400 | 3,402 | kotlin-libui | MIT License |
src/test/kotlin/de/larmic/kotlindsl/example/tools/WebTestTooling.kt | larmic | 644,321,374 | false | null | package de.larmic.kotlindsl.example.tools
import org.springframework.http.MediaType
import org.springframework.test.web.servlet.MockMvc
import org.springframework.test.web.servlet.MockMvcResultMatchersDsl
import org.springframework.test.web.servlet.ResultActionsDsl
import org.springframework.test.web.servlet.post
cla... | 3 | Kotlin | 0 | 0 | b0b99bdb7756e4f7a1633658b4d2288348f447ff | 1,632 | kotlin-dsl-example | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/ModeStandbyOutlined.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/ModeStandbyOutlined")
package mui.icons.material
@JsName("default")
external val ModeStandbyOutlined: SvgIconComponent
| 12 | Kotlin | 5 | 983 | 372c0e4bdf95ba2341eda473d2e9260a5dd47d3b | 202 | kotlin-wrappers | Apache License 2.0 |
src/main/kotlin/server.kt | kwebio | 258,643,359 | false | null | package kweb.template
import kweb.*
fun main(args: Array<String>) {
Kweb(port = 16097, buildPage = {
doc.body.new {
h1().text("Replace Me!")
}
})
}
| 0 | Kotlin | 1 | 7 | f0ea6944e679b6a9e94108fc3e3195e4cd5695c9 | 187 | kweb-template | The Unlicense |
app/src/main/java/ru/tinkoff/news/storage/BaseRepository.kt | nikitosbobin | 185,379,960 | false | null | package ru.tinkoff.news.storage
import io.reactivex.Single
import org.joda.time.Duration
import ru.tinkoff.news.model.CacheMarker
import ru.tinkoff.news.orm.NewsDatabase
abstract class BaseRepository<Dao>(private val database: NewsDatabase) {
protected val dao: Dao by lazy { getDatabaseAccessObject(database) }
... | 0 | Kotlin | 0 | 0 | aff0d4858776d4363a44f5fbdc1fd1b51200cf52 | 1,344 | tinkoff-news | Apache License 2.0 |
sample/app/src/main/java/com/vk/id/sample/app/screen/bottomnav/BottomNavigation.kt | VKCOM | 696,297,549 | false | {"Kotlin": 929849, "Shell": 17068, "AIDL": 3429, "JavaScript": 1182} | package com.vk.id.sample.app.screen.bottomnav
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.NavigationBar
import androidx.compose.material3.NavigationBarItem
import androidx.compose.materi... | 2 | Kotlin | 3 | 28 | b5fae72f77a8edd0211c873346c6f8a4579b99c2 | 2,389 | vkid-android-sdk | MIT License |
src/main/kotlin/gln/framebuffer/dsl.kt | kotlin-graphics | 105,462,120 | false | null | @file:Suppress("NOTHING_TO_INLINE")
package gln.framebuffer
import gln.Attachment
import gln.ColorEncoding
import gln.FramebufferTarget
import gln.identifiers.GlTexture
import gln.identifiers.GlRenderbuffer
import org.lwjgl.opengl.GL11
import org.lwjgl.opengl.GL30
import org.lwjgl.opengl.GL30C
import org.lwjgl.opengl... | 9 | null | 7 | 84 | 56d89fcb4c778fbdf2b2595792e0c1ca1110ef3d | 5,890 | gln | Apache License 2.0 |
trixnity-clientserverapi/trixnity-clientserverapi-model/src/commonMain/kotlin/net/folivo/trixnity/clientserverapi/model/keys/GetRoomKeysBackupVersionResponse.kt | benkuly | 330,904,570 | false | {"Kotlin": 4172000, "JavaScript": 5352, "TypeScript": 2906, "CSS": 1454, "Dockerfile": 1328} | package net.folivo.trixnity.clientserverapi.model.keys
import kotlinx.serialization.KSerializer
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.descriptors.buildClassSerialDescriptor
import kotlinx.... | 0 | Kotlin | 3 | 30 | 756e7ecb214c0a167d2c898f6bb6c3bee3246442 | 2,622 | trixnity | Apache License 2.0 |
app/src/main/java/com/morse/movie/data/repository/MoviesRepository.kt | Devil2020 | 540,836,789 | false | {"Kotlin": 123671} | package com.morse.movie.data.repository
import com.morse.movie.data.entities.ui.State
import com.morse.movie.remote.MaoApis
import com.morse.movie.remote.RetrofitBuilder
import com.morse.movie.utils.executeState
import kotlinx.coroutines.flow.Flow
interface BaseRepository
interface IMoviesRepository : BaseRepository ... | 0 | Kotlin | 0 | 0 | 42a4fb3edebf71edf1bff71297a4ef7099e5a07a | 831 | Mao | Apache License 2.0 |
core/src/commonMain/kotlin/maryk/core/query/DefinitionsContext.kt | marykdb | 290,454,412 | false | {"Kotlin": 3317879, "JavaScript": 1004} | package maryk.core.query
import maryk.core.properties.IsPropertyContext
import maryk.core.properties.definitions.contextual.IsDataModelReference
import maryk.core.properties.enum.IndexedEnum
import maryk.core.properties.enum.IndexedEnumDefinition
import maryk.core.properties.enum.MultiTypeEnum
import maryk.core.proper... | 1 | Kotlin | 1 | 8 | 4c58b04a0189e13e5621a505a5bb82ce5e655ae0 | 847 | maryk | Apache License 2.0 |
app/src/main/java/com/f2h/f2h_admin/screens/group/assign_delivery/AssignDeliveryFragment.kt | Farm2Home | 245,578,424 | false | {"Kotlin": 528123} | package com.f2h.f2h_admin.screens.group.assign_delivery
import android.Manifest
import android.app.Application
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.v... | 0 | Kotlin | 0 | 0 | a60352840b9dd591e30f4bbeb571d1c0ad8b8319 | 5,350 | f2h_admin | MIT License |
app/src/main/java/chill/me/kotlintodo/models/Note.kt | woojiahao | 147,060,016 | false | null | package chill.me.kotlintodo.models
import android.os.Parcelable
import chill.me.kotlintodo.states.Priority
import chill.me.kotlintodo.states.Priority.Lowest
import chill.me.kotlintodo.utility.getCurrentDateTimeFormatted
import kotlinx.android.parcel.Parcelize
@Parcelize
data class Note(
val title: String,
val conte... | 0 | Kotlin | 1 | 4 | 531b28ba796985cdd85c0df9d13dd2437d4b3493 | 534 | KotlinToDo | MIT License |
src/main/kotlin/tryout/bigIntegerFromByteArray.kt | pvillela | 203,650,914 | false | null | package tryout
import java.math.BigInteger
// See http://herongyang.com/Cryptography/RSA-BigInteger-Convert-Byte-Sequences-to-Positive-Integers.html
fun main() {
val bytesA = ByteArray(1)
bytesA[0] = 0x7f // 127
val bytesB = ByteArray(1)
bytesB[0] = 0x80.toByte() // -128
val bytesC = ByteArray(... | 0 | Kotlin | 0 | 0 | e6593d6e877dfb41a3163421d059fa1bcda1fa61 | 1,375 | kotlin-tryout | Apache License 2.0 |
ion-schema/src/test/kotlin/com/amazon/ionschema/internal/SchemaContentCacheTest.kt | amazon-ion | 148,685,964 | false | {"Kotlin": 804755, "Inno Setup": 15625, "Java": 795, "Shell": 631} | /*
* Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in ... | 40 | Kotlin | 14 | 27 | 7a9ee6d06e9cfdaa530310f5d9be9f5a52680d3b | 6,523 | ion-schema-kotlin | Apache License 2.0 |
src/main/kotlin/com/github/rochedo/advrec/config/Configs.kt | Rochedo098 | 396,995,876 | false | null | package com.github.rochedo.advrec.config
data class Config (
val radiation: Boolean,
val pollution: Boolean,
val reactors: ReactorConfig
)
data class ReactorConfig (
val size3: ReactorConfigSize,
val size5: ReactorConfigSize,
val size7: ReactorConfigSize,
val generationMultiplayer: Int,
... | 0 | Kotlin | 0 | 1 | b2f1d185f7620f9eb715933413c6203f48342051 | 525 | Advanced-Reactors | Apache License 2.0 |
app/src/main/java/com/example/virtustacktestapp/ui/main/WordAdapter.kt | nissimr | 404,407,827 | false | null | package com.example.virtustacktestapp.ui.main
/*
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ListAdapter
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.example.virtustacktestapp.R
import com.example.virtustac... | 0 | Kotlin | 0 | 0 | a42f975c552ac4c50d87fc6d5e0056a1a4d5a33b | 1,280 | VirtuostackTestApp | MIT License |
raspikiln-core/src/main/kotlin/org/raspikiln/kiln/config/ProtocolConfig.kt | wakawaka54 | 463,005,224 | false | {"Kotlin": 115341, "TypeScript": 40081, "HTML": 3861, "SCSS": 2696, "JavaScript": 1423} | package org.raspikiln.kiln.config
sealed interface ProtocolConfig {
data class Spi(
val address: Int?,
val baud: Int?
) : ProtocolConfig
data class DigitalOutput(
val pin: Int?
)
} | 0 | Kotlin | 0 | 0 | 4399b09d81c8cf0e7efd540d9acfdf9a4fb981bb | 222 | raspikiln | MIT License |
lib/src/main/kotlin/online/ecm/youtrack/model/BuildBundleCustomFieldDefaultsAllOf.kt | ecmonline | 429,371,464 | false | null | /**
* YouTrack REST API
*
* YouTrack issue tracking and project management system
*
* The version of the OpenAPI document: 2021.3
*
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*/
@file:Suppress(
"ArrayInDataCla... | 0 | Kotlin | 2 | 3 | ccbbeea848cddc13beecfb9c3a91195735c0f19b | 892 | youtrack-rest-api | Apache License 2.0 |
src/test/kotlin/TestTransaction.kt | o-korpi | 671,661,841 | false | null | import arrow.core.Either
import com.zaxxer.hikari.HikariConfig
import com.zaxxer.hikari.HikariDataSource
import io.kotest.assertions.arrow.core.shouldBeLeft
import io.kotest.assertions.arrow.core.shouldBeRight
import io.kotest.assertions.throwables.shouldThrowAny
import io.kotest.assertions.throwables.shouldThrowWithMe... | 0 | Kotlin | 0 | 0 | 627c72aa3f3ec06bc754d49cc8145667f84a1757 | 6,652 | query4k | MIT License |
common/sdk/recipe/core/impl/src/commonMain/kotlin/io/chefbook/sdk/recipe/core/impl/data/cache/RecipesCacheImpl.kt | mephistolie | 379,951,682 | false | {"Kotlin": 1334117, "Ruby": 16819, "Swift": 352} | package io.chefbook.sdk.recipe.core.impl.data.cache
import io.chefbook.libs.coroutines.CoroutineScopes
import io.chefbook.libs.logger.Logger
import io.chefbook.sdk.category.api.internal.data.cache.CategoriesCacheReader
import io.chefbook.sdk.recipe.book.api.external.domain.entities.RecipeBook
import io.chefbook.sdk.re... | 0 | Kotlin | 0 | 12 | ddaf82ee3142f30aee8920d226a8f07873cdcffe | 5,529 | chefbook-mobile | Apache License 2.0 |
library/src/main/java/com/zorro/swipe/adapter/RecyclerSwipeAdapter.kt | pangli | 428,983,073 | false | null | package com.zorro.swipe.adapter
import android.annotation.SuppressLint
import com.zorro.swipe.interfaces.SwipeItemMangerInterface
import com.zorro.swipe.interfaces.SwipeAdapterInterface
import com.zorro.swipe.impl.SwipeItemMangerImpl
import androidx.recyclerview.widget.RecyclerView
import com.zorro.swipe.SwipeLayout
... | 0 | Kotlin | 0 | 1 | d7a7f5d96fd2cbbd41282b591b734d64b081a68e | 1,568 | AndroidSwipeLayout | Apache License 2.0 |
app/src/main/java/com/imnstudios/enefte/ui/screens/setupprofile/WelcomeScreen.kt | imnithish | 475,069,026 | false | {"Kotlin": 64768} | package com.imnstudios.enefte.ui.screens.setupprofile
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import... | 0 | Kotlin | 1 | 1 | a940dd4d3236e8cdc2084175ae60872c7aa972de | 1,615 | enefte-compose | MIT License |
app/src/main/java/com/example/diagnosetuberculosis/View/Results/RecommandationActivity.kt | mas-diq | 575,235,557 | false | {"Kotlin": 73005} | package com.example.diagnosetuberculosis.View.Results
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.diagnosetuberculosis.databinding.ActivityRecommandationBinding
class RecommandationActivity : AppCompatActivity() {
private lateinit var binding: ActivityRecommandatio... | 0 | Kotlin | 0 | 1 | e5751be8121f3557c104bf9debcea26915a81015 | 546 | CheckTB | MIT License |
app/src/b2b/java/eu/ginlo_apps/ginlo/dagger/modules/ApplicationModule.kt | cdskev | 358,279,979 | false | {"Java": 4918351, "Kotlin": 717287, "HTML": 2200} | // Copyright (c) 2020-2024 ginlo.net GmbH
package eu.ginlo_apps.ginlo.dagger.modules
import dagger.Module
@Suppress("unused")
@Module
internal abstract class ApplicationModule : ApplicationModuleBase()
| 1 | Java | 0 | 5 | 5609a68a539fc5fd9666d3d5f93be750fa5a2b77 | 205 | ginlo-android | Apache License 2.0 |
Fragment/ViewPager/src/main/java/fragment/develop/android/viewpager/ViewPagerMainFragment.kt | jldaii | 215,942,794 | true | {"Markdown": 85, "Text": 4, "Ignore List": 74, "HTML": 101, "Java Properties": 43, "Gradle": 114, "Shell": 25, "Batchfile": 25, "Proguard": 44, "Java": 646, "XML": 544, "Kotlin": 197, "CSS": 1, "INI": 8, "JSON": 9, "JavaScript": 7, "CMake": 1, "C++": 1, "JSON with Comments": 1, "Git Attributes": 1, "Starlark": 2, "Obje... | package fragment.develop.android.viewpager
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import kotlinx.android.synthetic.main.fragment_view_pager.*
class ViewPagerMainFragment : Fragment() {
companion obj... | 0 | null | 0 | 0 | f8e5e02467b2ff6dd1e9d2cdfdf766320c5dedd2 | 1,234 | AndroidDevelop | Apache License 2.0 |
clients/ktorm-schema/generated/src/main/kotlin/org/openapitools/database/models/TrendsSupportedRegion.kt | oapicf | 489,369,143 | false | {"Markdown": 13009, "YAML": 64, "Text": 6, "Ignore List": 43, "JSON": 688, "Makefile": 2, "JavaScript": 2261, "F#": 1305, "XML": 1120, "Shell": 44, "Batchfile": 10, "Scala": 4677, "INI": 23, "Dockerfile": 14, "Maven POM": 22, "Java": 13384, "Emacs Lisp": 1, "Haskell": 75, "Swift": 551, "Ruby": 1149, "Cabal Config": 2, ... | /**
* Pinterest REST API
* Pinterest's REST API
*
* The version of the OpenAPI document: 5.12.0
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.openapitools.database.models
... | 0 | Java | 0 | 2 | dcd328f1e62119774fd8ddbb6e4bad6d7878e898 | 1,429 | pinterest-sdk | MIT License |
fitcoachapp-feature-auth-ui/src/commonMain/kotlin/com/fitcoachapp/feature/auth/ui/SignupScreen.kt | bytecode0 | 665,236,760 | false | null | package com.fitcoachapp.feature.auth.ui
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.Button
import androidx.compose.material.MaterialTheme
import androidx.compose.material.OutlinedTextF... | 0 | Kotlin | 0 | 0 | 44bb7e49985600f1743fbe59ab6022009d35b41b | 2,430 | fitcoachapp-kotlin | MIT License |
android/src/main/java/com/mjstudio/reactnativenavermap/RNCNaverMapPackage.kt | mym0404 | 780,420,345 | false | null | package com.mjstudio.reactnativenavermap
import com.facebook.react.ReactPackage
import com.facebook.react.bridge.NativeModule
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.uimanager.ViewManager
import com.mjstudio.reactnativenavermap.mapview.RNCNaverMapViewManager
import com.mjstud... | 6 | null | 7 | 87 | f2c49fd40659fe475a1a41a11f71d8fe470329c1 | 1,522 | react-native-naver-map | MIT License |
connectors/jms/src/jvmMain/kotlin/com/river/connector/jms/model/JmsPrimitive.kt | River-Kt | 539,201,163 | false | null | package com.river.connector.jms.model
sealed class JmsPrimitive<T>(val value: T) {
class Text(value: String) : JmsPrimitive<String>(value)
class Long(value: kotlin.Long) : JmsPrimitive<kotlin.Long>(value)
class Int(value: kotlin.Int) : JmsPrimitive<kotlin.Int>(value)
class Boolean(value: kotlin.Boolean... | 30 | null | 3 | 79 | 9841047b27268172a42e0e1ec74b095c0202a2cc | 578 | river | MIT License |
app/src/main/java/org/xtimms/ridebus/data/repository/StopRepository.kt | ridebus-by | 379,109,231 | false | {"Kotlin": 391055} | package org.xtimms.ridebus.data.repository
import kotlinx.coroutines.flow.Flow
import org.xtimms.ridebus.data.model.Stop
typealias Stops = List<Stop>
interface StopRepository {
fun getStops(cityId: Int): Flow<Stops>
suspend fun getStop(stopId: Int): Stop?
}
| 0 | Kotlin | 1 | 12 | 0c3061d980ea44b425df7d9d10f927a04c2496bd | 270 | ridebus | Apache License 2.0 |
library/src/main/java/com/nextcloud/common/User.kt | nextcloud | 60,562,363 | false | {"Java": 853082, "Kotlin": 513804, "Shell": 14608, "Python": 4123, "Ruby": 1856} | /*
* Nextcloud Android Library
*
* SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2022 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-License-Identifier: MIT
*/
package com.nextcloud.common
import android.accounts.Account
interface User {
val accountName... | 63 | Java | 95 | 91 | 2c62a70fc8dda04965700be481f75fb1e1d3c1f5 | 409 | android-library | Apache License 2.0 |
app/src/main/java/com/itmoldova/bookmarks/BookmarksContract.kt | vgrec | 141,891,134 | false | null | package com.itmoldova.bookmarks
import com.itmoldova.model.Article
class BookmarksContract {
interface View {
fun showBookmarks(articles: List<Article>)
}
interface Presenter {
fun loadBookmarks()
}
} | 1 | Kotlin | 1 | 2 | ef2b4d3e9ca923b572c1959f512162d11b18bbc1 | 237 | ITMoldova | Apache License 2.0 |
Lab_7/app/src/main/java/edu/msoe/andrewiliescu/CoordClass.kt | iliescua | 368,050,060 | false | null | /*
* CoordClass
* Author: <NAME>
* Date: 4/27/21
* This class is used to create a Coord object that has the latitude and longitude stored.
* This class was written in Kotlin because it made all of the getters and setters auto generate
*
*/
package edu.msoe.andrewiliescu
data class CoordClass(var latData:String,... | 1 | null | 1 | 1 | 91f626d402535340cf5377860c4613ba5fd3b555 | 405 | app_dev_labs | MIT License |
test-shared/src/main/java/com/foobarust/testshared/repositories/FakeSellerRepositoryImpl.kt | foobar-UST | 285,792,732 | false | null | package com.foobarust.testshared.repositories
import androidx.paging.PagingData
import com.foobarust.domain.models.explore.ItemCategory
import com.foobarust.domain.models.seller.*
import com.foobarust.domain.repositories.SellerRepository
import com.foobarust.testshared.serialize.*
import kotlinx.coroutines.flow.Flow
i... | 0 | Kotlin | 2 | 2 | b4358ef0323a0b7a95483223496164e616a01da5 | 5,761 | foobar-android | MIT License |
android/src/com/android/tools/idea/run/deployment/liveedit/LiveEditOutputBuilder.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 12,270 | android | Apache License 2.0 |
app/src/main/java/com/artbird/onsite/ui/components/Input.kt | zlkca | 563,099,648 | false | null | package com.artbird.onsite.ui.components
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.Keybo... | 0 | Kotlin | 0 | 0 | 514e5dc00fd80d85faada2a729ffff7204878dbd | 4,497 | partner-android | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.