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/lmr/rcd/models/entity/Entity.kt | halgorithm | 256,116,377 | false | null | package lmr.rcd.models.entity
abstract class Entity
constructor(override var data: RcdObjectData)
: EntityInterface {
override val _id = generateId() // REVIEW: does this id get cached?
override var parent: Any? = null
override val typeId get() = data.typeId
override val params get() = data.params... | 0 | Kotlin | 0 | 0 | 195af71e8794a0867598675dbacb39eae7f20bc5 | 621 | lmr-rcd-kt | Boost Software License 1.0 |
buildSrc/src/main/java/Accompanist.kt | VictorHVS | 463,924,761 | false | {"Kotlin": 76744} | object Accompanist {
private const val accompanistVersion = "0.23.0"
const val animations = "com.google.accompanist:accompanist-navigation-animation:$accompanistVersion"
const val pager = "com.google.accompanist:accompanist-pager:$accompanistVersion"
const val pagerIndicators = "com.google.accompanist:... | 0 | Kotlin | 0 | 4 | 813760b9186a59431ba757a0d20f572a9892c0ae | 581 | rat-cinema | Apache License 2.0 |
haze/src/androidMain/kotlin/dev/chrisbanes/haze/Platform.kt | chrisbanes | 710,434,447 | false | {"Kotlin": 74749, "Shell": 1077} | // Copyright 2023, Christopher Banes and the Haze project contributors
// SPDX-License-Identifier: Apache-2.0
package dev.chrisbanes.haze
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.node.CompositionLocalConsumerModifierNode
import androidx.compose.ui.node.currentValueOf
import androidx.compo... | 6 | Kotlin | 23 | 842 | bf015a42d3572d47391af819aac07894ffc4b63f | 811 | haze | Apache License 2.0 |
domain/src/main/java/app/cookery/domain/observers/ObserveAreas.kt | skorudzhiev | 356,818,469 | false | null | package app.cookery.domain.observers
import app.cookery.data.entities.categories.Area
import app.cookery.domain.SubjectInteractor
import app.cookery.repositories.categories.CategoriesRepository
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class ObserveAreas @Inject constructor(
private val repos... | 3 | Kotlin | 0 | 2 | 1c8b3bdf78be34fab2b2e79d293e8993c98b898c | 580 | Cookery | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/EyeDropperHalf.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,426 | icons | MIT License |
app/src/main/java/com/tec/mvvm_notesapp/models/Notes.kt | aniketsen123 | 598,490,439 | false | null | package com.tec.mvvm_notesapp.models
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.io.Serializable
@Entity(tableName = "notes_table")
data class Notes(
@PrimaryKey(autoGenerate = true) val id: Int?,
@ColumnInfo(name = "title") val title: String?,
@... | 9 | Kotlin | 16 | 0 | b8bab2ed163788a426fcccc154f6971c7c29973e | 493 | MVVM_notesapp | MIT License |
sharedUi/src/main/java/com/example/sharedui/x/Shared.kt | Bit-Camp-IO | 643,303,285 | false | null | package com.example.sharedui.x
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import... | 0 | Kotlin | 1 | 2 | 82141ba5d053fe9c3112d1150b226aceb6125a48 | 4,500 | TMDA-Android | Apache License 2.0 |
src/main/kotlin/dataModels/UnknownEntity.kt | kirilenkobm | 668,817,148 | false | null | package dataModels
class UnknownEntity(override val path: String): FileSystemEntity
| 0 | Kotlin | 0 | 0 | f12dc4ad0a0f3783b86b3e5b27020eb9abc2206b | 85 | DirExplorer | Apache License 2.0 |
src/test/kotlin/com/github/hanseter/json/editor/base/TestUtils.kt | Hanseter | 265,563,400 | false | null | package com.github.hanseter.json.editor.base
import com.sun.javafx.robot.FXRobot
import javafx.scene.input.KeyCode
import org.controlsfx.control.SearchableComboBox
import org.json.JSONObject
import org.json.JSONTokener
import java.nio.file.Files
import java.nio.file.Paths
import java.util.stream.Collectors
object Test... | 1 | Kotlin | 2 | 2 | 7b17ae30c87fbf03d8a6b3e28eb5a504299df8da | 953 | JSONPropertyEditorFx | MIT License |
feature-staking-impl/src/main/java/jp/co/soramitsu/staking/impl/presentation/staking/rebond/confirm/ConfirmRebondPayload.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.staking.impl.presentation.staking.rebond.confirm
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
import java.math.BigDecimal
@Parcelize
class ConfirmRebondPayload(
val amount: BigDecimal,
val collatorAddress: String?
) : Parcelable
| 15 | null | 30 | 89 | 812c6ed5465d19a0616865cbba3e946d046720a1 | 282 | fearless-Android | Apache License 2.0 |
kotlin/app/src/main/java/com/huawei/iap/adapters/ProductsListAdapter.kt | huaweicodelabs | 276,520,763 | false | null | /**
* Copyright 2020. Huawei Technologies Co., Ltd. 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 2 | null | 5 | 7 | a9cd7994c1ec51f0788e5f4b335ce797e9815861 | 2,542 | IAP | Apache License 2.0 |
src/main/kotlin/io/testaxis/backend/models/Build.kt | testaxis | 301,692,798 | false | null | package io.testaxis.backend.models
import com.fasterxml.jackson.annotation.JsonIgnore
import org.springframework.data.annotation.CreatedDate
import org.springframework.data.annotation.LastModifiedDate
import java.util.Date
import javax.persistence.CascadeType
import javax.persistence.Entity
import javax.persistence.Fe... | 0 | Kotlin | 0 | 0 | 17494eee5c2c39bea5b32d7adc8567fddb2036be | 1,409 | testaxis-backend | MIT License |
projects/core/src/main/kotlin/site/siredvin/peripheralworks/data/ModLootTableProvider.kt | SirEdvin | 489,471,520 | false | null | package site.siredvin.peripheralworks.data
import net.minecraft.data.loot.LootTableProvider
import net.minecraft.data.loot.LootTableSubProvider
import net.minecraft.resources.ResourceLocation
import net.minecraft.world.level.storage.loot.LootTable
import net.minecraft.world.level.storage.loot.parameters.LootContextPar... | 3 | Kotlin | 2 | 6 | 68c7053de2f755e24c207c6357aef4a58426d690 | 1,302 | UnlimitedPeripheralWorks | MIT License |
app/src/main/java/com/oguzdogdu/wallieshd/presentation/favorites/FavoritesListAdapter.kt | oguzsout | 616,912,430 | false | {"Kotlin": 381609} | package com.oguzdogdu.wallieshd.presentation.favorites
import android.annotation.SuppressLint
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.oguzdog... | 0 | Kotlin | 0 | 8 | f4dfeea21aabb253dd4aff4001c91138d5af88e4 | 2,540 | Wallies | MIT License |
app/src/main/java/cn/settile/fanboxviewer/Adapters/RecyclerView/Supporting/SupportingRecycleViewAdapter.kt | 709924470 | 190,781,467 | false | null | package cn.settile.fanboxviewer.Adapters.RecyclerView.Supporting
import android.content.res.ColorStateList
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import cn.... | 2 | null | 5 | 56 | b5e38903497947ca1b199edab3aeb73b1ebf10d0 | 2,002 | FanboxViewer | MIT License |
3_semester/coursework/mobile_app/app/src/main/java/coursework/mobile_app/App.kt | danilbushkov | 315,379,979 | false | {"Pascal": 301812, "C++": 237500, "Rust": 155300, "Kotlin": 86563, "Python": 52552, "Java": 36617, "Go": 18404, "Assembly": 9374, "PLpgSQL": 8293, "Makefile": 7264, "C": 6011, "QMake": 1043, "CMake": 468, "Shell": 305, "Dockerfile": 172, "Batchfile": 92} | package coursework.mobile_app
import android.app.Application
import android.content.Intent
import android.content.SharedPreferences
import coursework.mobile_app.model.HttpClientService
import coursework.mobile_app.model.HttpSettings
import coursework.mobile_app.model.TasksService
class App:Application() {
val htt... | 0 | Pascal | 0 | 0 | f2b3f8898300697f59afe2e1ba3eb1489cff76d4 | 1,236 | vyatsu | MIT License |
app/src/main/java/com/draw2form/ai/presentation/screens/LoginScreen.kt | laurenthat-metropolia | 711,905,629 | false | {"Kotlin": 359447} | package com.draw2form.ai.presentation.screens
import android.content.Intent
import android.net.Uri
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compos... | 0 | Kotlin | 1 | 2 | 4146ad646571093e459a726c8f7456c495951410 | 4,726 | AI-Form-Builder | MIT License |
JOOX_SDK_Demo_Android/app/src/main/java/com/tencent/joox/sdk/utils/ui/ResourceUtil.kt | TencentCloud | 386,706,230 | false | {"Kotlin": 243250, "Java": 61143, "Shell": 454} | package com.tencent.joox.sdk.utils.ui
import android.content.ContentResolver
import android.content.Context
import android.content.res.Resources
import android.net.Uri
object ResourceUtil {
fun resIdToUrl(context: Context, resId: Int): String {
val resources = context.resources
return try {
... | 0 | Kotlin | 1 | 9 | 530745eeb83c331c549994b60ee223b464ece8be | 715 | joox-sdk-android | Apache License 2.0 |
infra/nats/src/main/kotlin/io/bluetape4k/nats/service/Service.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.nats.service
import io.nats.client.Connection
import io.nats.service.Service
import io.nats.service.ServiceBuilder
import io.nats.service.ServiceEndpoint
inline fun natsService(initializer: ServiceBuilder.() -> Unit): Service {
return ServiceBuilder().apply(initializer).build()
}
fun natsSe... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 618 | bluetape4k | MIT License |
app/src/main/java/app/eluvio/wallet/network/converters/RedeemedOfferConverter.kt | eluv-io | 719,801,077 | false | {"Kotlin": 842368, "Java": 29738} | package app.eluvio.wallet.network.converters
import app.eluvio.wallet.data.entities.RedeemStateEntity
import app.eluvio.wallet.network.api.authd.RedeemableOffersApi
import app.eluvio.wallet.network.dto.NftInfoDto
import app.eluvio.wallet.network.dto.NftRedeemableOfferDto
import app.eluvio.wallet.network.dto.Redemption... | 8 | Kotlin | 1 | 0 | d8493e512ff9e20239e387ae7449e3a857813eb1 | 3,530 | elv-wallet-android | MIT License |
js/js.translator/testData/box/expression/cast/safeCastToGenericTypeWithUpperBound.kt | JakeWharton | 99,388,807 | false | null | package foo
open class A
class B : A()
class C
fun <T : A> notNullToNullableT(a: Any): T? = a as? T?
fun <T : A> nullableToNullableT(a: Any?): T? = a as? T?
fun box(): String {
val a = A()
val b = B()
val c = C()
success("notNullToNullableT<A>(a)") { assertEquals(a, notNullToNullableT<A>(a)) }
... | 184 | null | 5691 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 875 | kotlin | Apache License 2.0 |
uvmprimer/00-common/src/main/kotlin/dut/three_cycle.kt | frwang96 | 416,809,961 | false | null | /*
* SPDX-License-Identifier: Apache-2.0
*/
@file:Verik
@file:Suppress("ClassName")
package dut
import io.verik.core.*
class three_cycle(
@In var A: Ubit<`8`>,
@In var B: Ubit<`8`>,
@In var clk: Boolean,
@In var reset_n: Boolean,
@In var start: Boolean,
@Out var done_mult: Boolean,
@Ou... | 0 | Kotlin | 1 | 5 | 9a0f5f79b824e69a33dc4f9717d3b9e3ed103180 | 1,491 | verik-examples | Apache License 2.0 |
app/src/main/java/org/redbyte/animatron/pascal/PascalActivity.kt | i-redbyte | 229,621,861 | false | {"Kotlin": 94268} | package org.redbyte.animatron.pascal
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import org.redbyte.animatron.R
class PascalActivity : AppCompatActivity() {
override fun onCreate(savedInstanceStat... | 0 | Kotlin | 0 | 8 | d3749bcbf9579280b4c61b877a1675645431b32f | 786 | Animatron | MIT License |
composeApp/src/desktopMain/kotlin/io/github/snd_r/komelia/settings/FilesystemSettingsRepository.kt | Snd-R | 775,064,249 | false | {"Kotlin": 1370443, "C": 37132, "CMake": 17841, "Shell": 2152, "Dockerfile": 1673, "JavaScript": 695, "HTML": 447} | package io.github.snd_r.komelia.settings
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import io.github.snd_r.komelia.platform.DownscaleOption
import io.github.snd_r.komelia.platform.PlatformDecoderSettings
import io.github.snd_r.komelia.platform.UpscaleOption
import io.github.snd_r.komelia.ui.... | 1 | Kotlin | 0 | 9 | 5a16d84ed86321e4c7efa96daea9dd7dbfc2308b | 4,951 | Komelia | Apache License 2.0 |
composeApp/src/desktopMain/kotlin/io/github/snd_r/komelia/settings/FilesystemSettingsRepository.kt | Snd-R | 775,064,249 | false | {"Kotlin": 1370443, "C": 37132, "CMake": 17841, "Shell": 2152, "Dockerfile": 1673, "JavaScript": 695, "HTML": 447} | package io.github.snd_r.komelia.settings
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import io.github.snd_r.komelia.platform.DownscaleOption
import io.github.snd_r.komelia.platform.PlatformDecoderSettings
import io.github.snd_r.komelia.platform.UpscaleOption
import io.github.snd_r.komelia.ui.... | 1 | Kotlin | 0 | 9 | 5a16d84ed86321e4c7efa96daea9dd7dbfc2308b | 4,951 | Komelia | Apache License 2.0 |
performance-tests/test/org/jetbrains/kotlin/idea/perf/whole/HighlightWholeProjectPerformanceTest.kt | JetBrains | 278,369,660 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.perf
import com.intellij.codeInsight.daemon.impl.HighlightInfo
import com.i... | 1 | null | 37 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 5,411 | intellij-kotlin | Apache License 2.0 |
src/plugin-saxon/main/uk/co/reecedunn/intellij/plugin/saxon/query/s9api/binding/trans/XPathException.kt | rhdunn | 62,201,764 | false | {"Kotlin": 8262637, "XQuery": 996770, "HTML": 39377, "XSLT": 6853} | /*
* Copyright (C) 2019, 2021 Reece H. Dunn
*
* 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 ag... | 49 | Kotlin | 9 | 25 | d8d460d31334e8b2376a22f3832a20b2845bacab | 1,958 | xquery-intellij-plugin | Apache License 2.0 |
app/src/main/java/com/mikhailgrigorev/quickpass/NewPasswordActivity.kt | grigorevmp | 268,231,866 | false | null | package com.mikhailgrigorev.quickpass
import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.content.*
import android.content.pm.PackageManager
import android.content.res.Configuration
import android.database.Cursor
import android.graphics.Point
import android.net.Uri... | 1 | Kotlin | 0 | 5 | d02277bd3b294cd8d40678d12a7ca5e81d931ec2 | 35,166 | QuickPass-Mobile-Password-manager | MIT License |
javatests/com/google/android/libraries/pcc/chronicle/codegen/processor/testdata/annotatedtypes/ExampleKotlinTypeReader.kt | google | 564,990,777 | false | {"Kotlin": 1440403, "Starlark": 163311, "Java": 10061, "AIDL": 5852, "Python": 4367, "Dockerfile": 2035, "Shell": 1301} | /*
* Copyright 2022 Google LLC
*
* 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 ... | 0 | Kotlin | 7 | 29 | aa89a5c470f5fbb5d00496f8d4da488d9f771f67 | 1,003 | private-compute-libraries | Apache License 2.0 |
src/main/kotlin/io/unthrottled/amii/core/personality/emotions/EmotionEvents.kt | ani-memes | 303,354,188 | false | null | package io.unthrottled.amii.core.personality.emotions
import com.intellij.openapi.project.Project
import com.intellij.util.messages.Topic
interface MoodListener {
fun onDerivedMood(currentMood: Mood) {}
fun onRequestMood() {}
}
val EMOTION_TOPIC = Topic(
"Current Mood",
MoodListener::class.java
)
enum clas... | 7 | null | 14 | 257 | c9a4ef10f6e1a5ce68dc3a007b45cadbc33deed0 | 779 | AMII | Apache License 2.0 |
app/src/main/java/com/boosters/promise/data/user/source/remote/UserRemoteDataSourceImpl.kt | boostcampwm-2022 | 562,936,971 | false | {"Kotlin": 196544} | package com.boosters.promise.data.user.source.remote
import com.boosters.promise.util.NetworkConnectionUtil
import com.boosters.promise.data.user.di.UserModule
import com.google.firebase.firestore.CollectionReference
import com.google.firebase.firestore.ktx.snapshots
import com.google.firebase.messaging.FirebaseMessag... | 3 | Kotlin | 5 | 23 | 126598bc7a703001ce699d8e3772386d9ffab86a | 2,173 | android03-Promise | MIT License |
app/src/main/java/com/example/compasswithangelinkotlin/MainActivity.kt | Scorpionorange | 248,510,801 | false | null | package com.example.compasswithangelinkotlin
import android.animation.ObjectAnimator
import android.content.Context
import android.hardware.*
import android.os.Build
import android.os.Bundle
import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.act... | 0 | Kotlin | 0 | 0 | 51e2e679ad44b80d03c129e0bb537e4185a367cb | 4,004 | CompassWithAngelInKotlin | Apache License 2.0 |
AOS/app/src/main/java/com/example/eeos/consts/Consts.kt | JNU-econovation | 696,705,501 | false | null | package com.example.eeos.consts
val programCategory = listOf("all", "weekly", "presidentTeam", "eventTeam", "etc")
val programStatus = listOf("active", "end")
val categoryChips: List<String> = listOf(
"전체",
"주간 발표",
"회장단",
"행사부",
"기타 행사"
)
val programStatusChips: List<String> = listOf(
"진행 중",... | 3 | null | 7 | 6 | 4d58bddd313e94e38586ff3dcd23784e167274e6 | 1,249 | EEOS | MIT License |
Corona-Warn-App/src/test/java/testhelpers/extensions/TimeExtensions.kt | corona-warn-app | 268,027,139 | false | null | package testhelpers.extensions
import java.time.Instant
import java.time.ZonedDateTime
fun String.toInstant(): Instant = ZonedDateTime.parse(this).toInstant()
| 6 | Kotlin | 504 | 2,486 | 7b0eee8d53a090ee0ca585c6a90c4cec570e51d6 | 161 | cwa-app-android | Apache License 2.0 |
tilbakekreving/infrastructure/src/test/kotlin/infrastructure/repo/OpprettTilbakekrevingsbehandlingRepoTest.kt | navikt | 227,366,088 | false | {"Kotlin": 8994200, "Shell": 4369, "TSQL": 1233, "Dockerfile": 800} | package infrastructure.repo
import io.kotest.matchers.shouldBe
import no.nav.su.se.bakover.common.extensions.februar
import no.nav.su.se.bakover.test.TikkendeKlokke
import no.nav.su.se.bakover.test.fixedClock
import no.nav.su.se.bakover.test.fixedClockAt
import no.nav.su.se.bakover.test.persistence.TestDataHelper
impo... | 1 | Kotlin | 1 | 1 | 82897d6bc412e9a086063aece4d1a54822ad2c82 | 1,752 | su-se-bakover | MIT License |
intellij.tools.ide.starter/src/com/intellij/ide/starter/utils/utils.kt | JetBrains | 499,194,001 | false | null | package com.intellij.ide.starter.utils
import com.intellij.ide.starter.di.di
import com.intellij.ide.starter.ide.IDETestContext
import com.intellij.ide.starter.path.GlobalPaths
import com.intellij.ide.starter.process.exec.ExecOutputRedirect
import com.intellij.ide.starter.process.exec.ProcessExecutor
import com.intell... | 1 | null | 2 | 8 | ffff397bd7f4cbfbaf135eeaadc6f5e4ed85a84b | 10,372 | intellij-ide-starter | Apache License 2.0 |
plugin-unity-agent/src/main/kotlin/jetbrains/buildServer/unity/messages/BuildProblem.kt | JetBrains | 159,985,216 | false | {"Kotlin": 258801, "ANTLR": 53548, "Java": 30081, "C#": 4690, "Shell": 3230, "Batchfile": 1180} | /*
* Copyright 2000-2023 JetBrains s.r.o.
*
* 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... | 41 | Kotlin | 40 | 73 | 9f7fbb31a25be1abafcd8d77fd62d369598cd47b | 1,039 | teamcity-unity-plugin | Apache License 2.0 |
src/main/kotlin/character/ActiveClassJob.kt | drakon64 | 622,012,311 | false | {"Kotlin": 174367} | package cloud.drakon.ktlodestone.character
/** A Character's active [ClassJob]. */
data class ActiveClassJob(
val classJob: ClassJob,
val level: Byte,
val discipline: Discipline,
)
| 1 | Kotlin | 0 | 1 | deed0581e6f8485769afb622fd4d18571edab287 | 194 | KtLodestone | MIT License |
src/test/kotlin/lambdada/parsec/parser/T08_JSonParser.kt | d-plaindoux | 117,681,573 | false | null | package lambdada.parsec.parser
import lambdada.parsec.examples.json.*
import lambdada.parsec.io.Reader
import org.junit.Assert.assertEquals
import org.junit.Test
class T08_JSonParser {
@Test
fun shouldJSonParserReturnInteger() {
val parser = JSonParser.JSON
assertEquals(parser.invoke(Reader.... | 0 | Kotlin | 5 | 12 | 24146ec4e28304bc9234e970ab571a3af9ddf23a | 2,690 | parsec.kotlin | Apache License 2.0 |
data/src/main/java/com/semicolon/data/remote/request/exercise/FinishMeasureExerciseRequest.kt | Walkhub | 443,006,389 | false | null | package com.semicolon.data.remote.request.exercise
import com.google.gson.annotations.SerializedName
data class FinishMeasureExerciseRequest(
@SerializedName("walk_count") val walkCount: Int,
@SerializedName("distance") val distanceAsCentimeter: Int,
@SerializedName("calorie") val kilocalorie: Int,
@S... | 5 | Kotlin | 1 | 29 | 5070c2c33365f2db6f57975078e1ecd7594f66fa | 426 | walkhub_android | MIT License |
app/src/main/kotlin/ru/subtlefox/mvi/cookbook/screens/sample2/mvi/entitiy/DynamicCurrencyAction.kt | Subtle-fox | 518,114,574 | false | {"Kotlin": 96952, "Java": 47} | package ru.subtlefox.mvi.cookbook.screens.sample2.mvi.entitiy
sealed class DynamicCurrencyAction {
object ChangeCurrency : DynamicCurrencyAction() {
override fun toString() = "ChangeCurrency"
}
} | 0 | Kotlin | 0 | 4 | cbd0d60a002b72688647345c3415b06c5bb39fac | 213 | MVI-on-Flow | Apache License 2.0 |
build-logic/src/main/kotlin/plugin/compose/ComposeMultiplatformPlugin.kt | taetae98coding | 704,079,988 | false | {"Kotlin": 118985, "Swift": 451, "Ruby": 107} | package plugin.compose
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.PluginManager
internal class ComposeMultiplatformPlugin : Plugin<Project> {
private val composeAndroidPlugin = ComposeAndroidPlugin()
override fun apply(target: Project) {
applyPlugin(targe... | 0 | Kotlin | 0 | 0 | f6c9c29c09072f173845ccbd96161676e85e8ebb | 503 | CodeLab | Apache License 2.0 |
kotlin-project/rekindle-book-store-aqa/domain/core/src/main/kotlin/com/rekindle/book/store/domain/configuration/endpoint/CustomersEndpoint.kt | amfibolos | 845,646,691 | false | {"Kotlin": 69165, "C#": 51552, "TypeScript": 47535, "JavaScript": 574} | package com.rekindle.book.store.domain.configuration.endpoint
import org.aeonbits.owner.Config
import org.aeonbits.owner.Config.Key
import org.aeonbits.owner.Config.Sources
@Sources(value = ["classpath:endpoints/customers-endpoints.properties"])
interface CustomersEndpoint : Config {
@Key("customers")
fun cu... | 0 | Kotlin | 0 | 0 | d33eada0e214304ae083bb840b3877ca41a171c9 | 399 | rekindle-aqa | Apache License 2.0 |
app/src/main/java/com/example/myapplication/data/repository/TopHeadlinesRepository.kt | DeMoss15 | 222,141,463 | false | null | package com.example.myapplication.data.repository
import com.example.myapplication.domain.model.Article
import io.reactivex.Single
interface TopHeadlinesRepository {
fun getTopHeadlines(
page: Int,
query: String? = null,
sources: String? = null,
category: String? = null,
co... | 0 | Kotlin | 0 | 0 | bc9dd558000f8fbe996cca82477bea98dd2a5c31 | 372 | PaginatorRenderKit | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnNetworkSettingsProps.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 142794926} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.workspacesweb
import io.cloudshiftdev.awscdk.CfnTag
import io.cloudshiftdev.awscdk.common.CdkDslMarke... | 1 | Kotlin | 0 | 4 | a18731816a3ec710bc89fb8767d2ab71cec558a6 | 9,523 | kotlin-cdk-wrapper | Apache License 2.0 |
app/src/main/java/com/suihan74/satena/scenes/authentication/MastodonAuthenticationActivity.kt | suihan74 | 207,459,108 | false | {"Kotlin": 1729040, "Java": 10330} | package com.suihan74.satena.scenes.authentication
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.browser.customtabs.CustomTabColorSchemeParams
import androidx.browser.customta... | 34 | Kotlin | 1 | 7 | ee29a0ed1d60c9ee35bb03f128d0e39c58e3a4c4 | 6,857 | Satena | MIT License |
app/src/main/java/com/simbiri/equityjamii/ui/main_activity/my_profile/NetworkFragment.kt | SimbaSimbiri | 706,250,529 | false | {"Kotlin": 196968} | package com.simbiri.equityjamii.ui.main_activity.my_profile
import android.app.Dialog
import android.content.Context
import androidx.fragment.app.viewModels
import android.os.Bundle
import android.util.DisplayMetrics
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
impo... | 0 | Kotlin | 0 | 0 | afe8f3958915c21d6db20701addaa3c2e63f68fc | 3,980 | EquiJamii | Apache License 2.0 |
app/src/main/java/ru/awawa/clockutils/MainActivity.kt | 0awawa0 | 361,454,558 | false | null | package ru.awawa.clockutils
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx... | 0 | Kotlin | 0 | 0 | fa93828a240efd6b7044792da4b00c6b45a9ffb6 | 6,230 | ClockUtils | MIT License |
src/main/kotlin/club/anifox/backend/domain/mappers/anime/detail/AnimeDetail.kt | DeNyWho | 649,026,698 | false | {"Kotlin": 264633} | package club.anifox.backend.domain.mappers.anime.detail
import club.anifox.backend.domain.mappers.anime.toAnimeTranslation
import club.anifox.backend.domain.mappers.anime.toGenre
import club.anifox.backend.domain.mappers.anime.toStudio
import club.anifox.backend.domain.model.anime.AnimeImagesTypes
import club.anifox.b... | 0 | Kotlin | 0 | 0 | 146c70e8b2aa22911e66ff6459b90960be8ea851 | 1,443 | Anifox_Backend | Apache License 2.0 |
src/main/kotlin/club/anifox/backend/domain/mappers/anime/detail/AnimeDetail.kt | DeNyWho | 649,026,698 | false | {"Kotlin": 264633} | package club.anifox.backend.domain.mappers.anime.detail
import club.anifox.backend.domain.mappers.anime.toAnimeTranslation
import club.anifox.backend.domain.mappers.anime.toGenre
import club.anifox.backend.domain.mappers.anime.toStudio
import club.anifox.backend.domain.model.anime.AnimeImagesTypes
import club.anifox.b... | 0 | Kotlin | 0 | 0 | 146c70e8b2aa22911e66ff6459b90960be8ea851 | 1,443 | Anifox_Backend | Apache License 2.0 |
auth-center/auth-center-infra/src/main/kotlin/com/jmsoftware/maf/authcenter/role/persistence/Role.kt | johnnymillergh | 240,563,247 | false | null | package com.jmsoftware.maf.authcenter.role.persistence
import com.baomidou.mybatisplus.annotation.TableField
import com.baomidou.mybatisplus.annotation.TableName
import com.jmsoftware.maf.springcloudstarter.database.BasePersistenceEntity
/**
* # Role
*
* Role Persistence object class
*
* @author <NAME> (锺俊), e-m... | 1 | null | 4 | 11 | 67917520e69c3f2a47fdd06817e9421cd4d82159 | 921 | muscle-and-fitness-server | Apache License 2.0 |
app/src/main/java/com/vicent/composeapplication/math/LevelMath.kt | Vicent9920 | 438,942,802 | false | null | package com.vicent.composeapplication.math
import com.vicent.composeapplication.model.GridUnit
import kotlin.random.Random
/**
* <pre>
* author: Vincent
* date : 2021/11/30 19:03
* desc : 级别算法
* </pre>
*/
object LevelMath {
private val levelList = mutableListOf(16,16,17,17,18,18,19,19,20,20... | 0 | Kotlin | 0 | 1 | 7a05c18cb4ed8fae33402e127c6d64a4098b3e4a | 1,294 | ComposeApplication | Apache License 2.0 |
scoping/src/main/java/com/dropbox/kaiken/scoping/AuthAwareScopeOwnerActivity.kt | dropbox | 299,992,268 | false | null | package com.dropbox.kaiken.scoping
import androidx.activity.ComponentActivity
import androidx.lifecycle.ViewModelStoreOwner
import com.dropbox.kaiken.scoping.internal.AuthHelper
import com.dropbox.kaiken.scoping.internal.locateAuthHelperStore
/**
* An activity that is authentication aware (i.e. the activity is runni... | 8 | Kotlin | 10 | 75 | cb68ee0f54588f8f8150ac357fb74df29bb3a5bd | 1,912 | kaiken | Apache License 2.0 |
howto-dapp/src/main/java/de/timolia/howto/database/SQLApi.kt | TimoliaDE | 579,343,701 | false | {"Kotlin": 45480, "Dockerfile": 956} | package de.timolia.howto.conversion
import java.sql.SQLException
import java.util.*
import kotlin.jvm.Volatile
object SQLApi {
@Volatile
private var connection: SqlUserConnection? = null
@Volatile
private var triedConnect = false
private fun establishConnection(): SqlUserConnection {
if ... | 9 | Kotlin | 7 | 0 | c070fadf97c85b5fa496cda556dea5ecd8ccc710 | 1,839 | HowTo | MIT License |
src/main/kotlin/br/com/zupacademy/giovanna/conta/ContaEntity.kt | giovanna-bernardi | 383,793,280 | true | {"Kotlin": 112775, "Smarty": 1902, "Dockerfile": 154} | package br.com.zupacademy.giovanna.conta
import br.com.zupacademy.giovanna.compartilhado.SensitiveDataCPFConverter
import javax.persistence.Column
import javax.persistence.Convert
import javax.persistence.Embeddable
import javax.validation.constraints.NotBlank
import javax.validation.constraints.Size
@Embeddable
clas... | 0 | Kotlin | 0 | 0 | 646992b7e3bf4c27fd8989ce5d9e85909511a167 | 1,083 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
src/main/kotlin/org/snd/metadata/MetadataProvider.kt | Snd-R | 463,859,568 | false | null | package org.snd.metadata
import org.snd.metadata.model.MatchQuery
import org.snd.metadata.model.Provider
import org.snd.metadata.model.SeriesSearchResult
import org.snd.metadata.model.metadata.ProviderBookId
import org.snd.metadata.model.metadata.ProviderBookMetadata
import org.snd.metadata.model.metadata.ProviderSeri... | 11 | Kotlin | 9 | 99 | 0584078f460c5d8c7b740bbe77905fab1c0ad105 | 799 | komf | MIT License |
libs/etterlatte-database/src/main/kotlin/JdbcUtils.kt | navikt | 417,041,535 | false | null | package no.nav.etterlatte.libs.database
import no.nav.etterlatte.libs.common.objectMapper
import org.postgresql.util.PGobject
import java.sql.PreparedStatement
import java.sql.ResultSet
fun <T> ResultSet.singleOrNull(block: ResultSet.() -> T): T? {
return if (next()) {
block().also {
require(!... | 19 | null | 0 | 6 | abd4600c70b4188d7d6272ea2d650421ffdfcfb6 | 1,285 | pensjon-etterlatte-saksbehandling | MIT License |
src/test/kotlin/com/funivan/idea/phpClean/inspections/toStringCall/ToStringCallInspectionTest.kt | funivan | 144,475,458 | false | null | package com.funivan.idea.phpClean.inspections.toStringCall
import com.funivan.idea.phpClean.BaseInspectionTest
class ToStringCallInspectionTest : BaseInspectionTest() {
fun testMethodCall() {
assert(
ToStringCallInspection(),
"""
<?php
... | 6 | null | 6 | 86 | 103124c4a270989bd24e59151358acbb80407ffd | 5,136 | PhpClean | MIT License |
Widget/app/src/main/java/com/microsoft/device/display/samples/widget/feed/RssSimpleApi.kt | mattaeus-isenberg | 293,419,966 | true | {"Kotlin": 203418, "HTML": 1541} | /*
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*
*/
package com.microsoft.device.display.samples.widget.feed
import retrofit2.Call
import retrofit2.http.GET
interface RssSimpleApi {
@get:GET(".")
val rssFeed: Call<String>
} | 0 | null | 0 | 0 | 1912950691e1b6187cfb2b41aeee22b0251a1f3b | 292 | surface-duo-app-samples | MIT License |
app/src/main/java/com/rifqimfahmi/foorballapps/util/Ext.kt | rifqimfahmi | 161,456,967 | false | null | package com.rifqimfahmi.foorballapps.util
import android.content.Context
import com.rifqimfahmi.foorballapps.R
/*
* Created by Rifqi Mulya Fahmi on 29/11/18.
*/
fun Context.getLeaguesName(position: Int) : String {
return resources.getStringArray(R.array.leagues)[position]
}
fun Context.getLeaguesId(position:... | 4 | Kotlin | 39 | 138 | 96aa72a2dbda49a5653ccf27088fa66b898500dd | 404 | android-mvvm-coroutine | MIT License |
codebase/android/feature/home/src/test/java/com/makeappssimple/abhimanyu/financemanager/android/feature/home/viewmodel/HomeScreenViewModelTest.kt | Abhimanyu14 | 429,663,688 | false | {"Kotlin": 1908017} | package com.makeappssimple.abhimanyu.financemanager.android.feature.home.viewmodel
import org.junit.Assert
import org.junit.Test
internal class HomeScreenViewModelTest {
@Test
fun sampleText() {
Assert.assertEquals(4, 2 + 2)
}
}
| 11 | Kotlin | 0 | 3 | a9e7570d854c7738d0ad5bcf139fa9874fa83b21 | 252 | finance-manager | Apache License 2.0 |
projects/core/src/main/kotlin/site/siredvin/peripheralworks/data/ModLanguageProvider.kt | SirEdvin | 489,471,520 | false | null | package site.siredvin.peripheralworks.data
import net.minecraft.data.PackOutput
import site.siredvin.peripheralium.data.language.LanguageProvider
import site.siredvin.peripheralworks.PeripheralWorksCore
import site.siredvin.peripheralworks.xplat.PeripheralWorksPlatform
import java.util.stream.Stream
abstract class Mo... | 3 | Kotlin | 2 | 6 | 4261ad04499375f16704c8df3f3faeb0e314ac54 | 882 | UnlimitedPeripheralWorks | MIT License |
app/src/main/java/com/example/zmci/SplashFragment.kt | cpe-pd | 543,865,380 | false | null | package com.example.zmci
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import androidx.appcompat.app.AppCompatActivity
class SplashFragment : AppCompatActivity() {
/*
SplashFragment Methods:
- onCreate (savedInstanceState: Bundle?)
*/
override ... | 0 | Kotlin | 0 | 4 | d234920683722f9e0c71c9a2c48565400f8761c0 | 681 | ppe-for-construction-android-app | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/pollpush/HouseKeepingIntegrationTest.kt | ministryofjustice | 86,676,196 | false | null | package uk.gov.justice.digital.hmpps.pollpush
import com.github.tomakehurst.wiremock.client.WireMock
import com.github.tomakehurst.wiremock.client.WireMock.get
import com.github.tomakehurst.wiremock.client.WireMock.getRequestedFor
import com.github.tomakehurst.wiremock.client.WireMock.put
import com.github.tomakehurst... | 9 | Kotlin | 4 | 3 | 4b870f70d360dc67c73ba09b14fc6255bab0d0f8 | 5,199 | case-notes-to-probation | MIT License |
app/src/main/java/cz/nestresuju/model/repositories/ProgramRepository.kt | johnondrej | 371,166,772 | false | null | package cz.nestresuju.model.repositories
import kotlinx.coroutines.flow.Flow
import org.threeten.bp.ZonedDateTime
/**
* Common interface for all program repositories.
*/
interface ProgramRepository<T> {
suspend fun fetchProgramResults()
suspend fun getProgramResults(): T
suspend fun observeProgramRes... | 0 | Kotlin | 0 | 0 | 8d7c54c00c865a370ed24a356abd2bfeeef4ed4b | 462 | nestresuju-android | Apache License 2.0 |
app/src/main/java/com/gals/prayertimes/utils/Helpers.kt | AbdullahAlSamman | 796,622,066 | false | {"Kotlin": 111719, "HTML": 7648} | package com.gals.prayertimes.utils
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.res.colorResource
import androidx.compose.ui.res.stringResource
impo... | 0 | Kotlin | 0 | 0 | 0004b0b814acac11c856d2eaeec5c33eb9974082 | 2,819 | PrayerTimes | Apache License 2.0 |
content-types/content-types-core-model/src/main/kotlin/org/orkg/contenttypes/domain/RosettaStoneTemplate.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 5888031, "Cypher": 219508, "Python": 4881, "Shell": 2767, "Groovy": 1936, "HTML": 240, "Batchfile": 82} | package org.orkg.contenttypes.domain
import java.time.OffsetDateTime
import org.orkg.common.ContributorId
import org.orkg.common.ObservatoryId
import org.orkg.common.OrganizationId
import org.orkg.common.ThingId
import org.orkg.graph.domain.Classes
import org.orkg.graph.domain.FormattedLabel
import org.orkg.graph.doma... | 0 | Kotlin | 0 | 4 | ee884fb0b87c20e18b6e1ee81379f9d2ab17c8f3 | 2,873 | orkg-backend | MIT License |
lib/src/test/kotlin/io/wavebeans/lib/io/ByteArrayLittleEndianInputOutputSpec.kt | WaveBeans | 174,378,458 | false | {"Kotlin": 1263856, "Shell": 6924, "Dockerfile": 408} | package io.wavebeans.lib.io
import assertk.assertThat
import assertk.assertions.isEqualTo
import io.wavebeans.lib.*
import io.wavebeans.lib.stream.FiniteStream
import io.wavebeans.lib.stream.rangeProjection
import io.wavebeans.lib.stream.trim
import org.spekframework.spek2.Spek
import org.spekframework.spek2.style.spe... | 26 | Kotlin | 0 | 21 | 2a0eb6b481f0f848a7e66f7cb4c395ddb47952d1 | 10,785 | wavebeans | Apache License 2.0 |
app/src/main/java/com/example/movie_world_kotlin_best_practices/ui/component/SearchUI.kt | mudasir3 | 639,374,641 | false | null | package com.example.movie_world_kotlin_best_practices.ui.component
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.comp... | 0 | Kotlin | 0 | 0 | 83158eb30072d6ca2cbc0009eea0ef47bd3e625d | 4,911 | Movie-World-Kotln-Best-Practices | Apache License 2.0 |
viewlegacy/src/androidMain/kotlin/tech/skot/core/components/presented/SKAlertView.kt | skot-framework | 235,318,194 | false | null | package tech.skot.core.components.presented
import android.content.DialogInterface
import android.text.Editable
import android.text.TextWatcher
import android.widget.EditText
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.Fragment
import tech.skot.core.components.SKActivity
import tech.skot.cor... | 1 | null | 4 | 6 | 8fcff82c719c9775e63da9c3808817704068cbba | 4,791 | skot | Apache License 2.0 |
app/src/main/java/com/lambdaschool/hackathon_portal/ui/fragments/detail/DescriptionFragment.kt | BloomTech-Labs | 227,462,757 | false | {"Kotlin": 158652} | package com.lambdaschool.hackathon_portal.ui.fragments.detail
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import com.lambdaschool.hackathon_portal.R
import com.lambdas... | 4 | Kotlin | 0 | 0 | d8bca01bfd6453f623b807c58f57b89c8bc9ca86 | 1,292 | hackathon-portal-android | MIT License |
app/src/main/java/cash/z/ecc/android/ui/setup/BackupFragment.kt | zcash-hackworks | 272,508,715 | true | {"Kotlin": 249480} | package cash.z.ecc.android.ui.setup
import android.content.Context
import android.os.Bundle
import android.text.SpannableString
import android.text.Spanned
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import android.widget.Toast
import androidx.activity.addCallback
import ... | 0 | Kotlin | 1 | 2 | baf3522e8905d541e6539f1278a082abd5cc28fd | 4,783 | zircles-android | Apache License 2.0 |
app-tracking-protection/vpn-impl/src/main/java/com/duckduckgo/mobile/android/vpn/ui/newtab/AppTrackingProtectionNewTabSettingView.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11626231, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} | package com.duckduckgo.mobile.android.vpn.ui.newtab
import android.annotation.SuppressLint
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.LinearLayout
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.findViewTreeLifecycleOwner
import ... | 0 | Kotlin | 0 | 0 | b89591136b60933d6a03fac43a38ee183116b7f8 | 3,924 | DuckDuckGo | Apache License 2.0 |
app/src/main/java/br/com/montecardo/finanseer/persistence/VolatileMemoryDao.kt | MonteCardo | 55,604,939 | false | {"Kotlin": 32126, "Java": 19966} | package br.com.montecardo.finanseer.persistence
import br.com.montecardo.finanseer.investment.data.Investment
import br.com.montecardo.finanseer.investment.data.Movement
/**
* DAO implementation in memory.
*
* Created by gabryel on 20/09/17.
*/
class VolatileMemoryDao : FinanceDAO {
private val investments: ... | 0 | Kotlin | 0 | 2 | e9e2add4f59067fd0992358d30111786e0db3e38 | 864 | FinanceApp | MIT License |
src/shmp/lang/language/syntax/clause/realization/SyntaxClause.kt | ShMPMat | 240,860,070 | false | null | package shmp.lang.language.syntax.clause.realization
import shmp.lang.language.category.value.CategoryValues
import shmp.lang.language.Language
import shmp.lang.language.lexis.Word
import shmp.lang.language.syntax.SyntaxRelation
import shmp.lang.language.syntax.clause.translation.SentenceNode
import shmp.lang.language... | 0 | Kotlin | 0 | 1 | 1096dfa274f72282ff7286e2421ab5f43ac99147 | 958 | LanguageGenerator | MIT License |
test-models/src/main/kotlin/com/github/dimsuz/modelgenerator/LceState.kt | dimsuz | 173,502,815 | false | null | package com.github.dimsuz.modelgenerator
data class LceState<C>(
val isLoading: Boolean,
val content: C?,
val error: Throwable?
) {
companion object {
@Suppress("FunctionName", "FunctionNaming") // constructor function, caps ok
fun <C> Loading(content: C? = null): LceState<C> {
return LceState(is... | 1 | Kotlin | 0 | 4 | c1f28e476b330773880396f82f0c6790ad590a51 | 824 | etg-model-generator | Apache License 2.0 |
base/src/main/java/cn/neday/base/config/LogConfig.kt | nEdAy | 199,621,863 | false | null | package cn.neday.base.config
import com.blankj.utilcode.util.AppUtils
import com.blankj.utilcode.util.LogUtils
object LogConfig {
fun init() {
LogUtils.getConfig().isLogSwitch = AppUtils.isAppDebug()
}
} | 1 | null | 3 | 11 | 584bc01304ba9faf03b341fb0d6590830118f572 | 222 | Sheep | MIT License |
core/src/main/kotlin/assignment/AssignmentFilter.kt | amplitude | 519,022,661 | false | null | package com.amplitude.assignment
import com.amplitude.util.Cache
interface AssignmentFilter {
suspend fun shouldTrack(assignment: Assignment): Boolean
}
class InMemoryAssignmentFilter(size: Int) : AssignmentFilter {
// Cache of canonical assignment to the last sent timestamp.
private val cache = Cache<S... | 0 | Kotlin | 1 | 0 | 5fc1b86922ad2f381b39ce89d094bd25051db62a | 652 | evaluation-proxy | MIT License |
app/src/main/kotlin/com/blacksquircle/ui/application/viewmodel/MainViewModel.kt | massivemadness | 100,590,072 | false | null | /*
* Copyright 2021 Squircle IDE 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 applicable la... | 45 | null | 5 | 358 | f02741bc1dd92a9f44f23f55a4dac0a00c237eac | 3,059 | ModPE-IDE | Apache License 2.0 |
module/src/main/java/com/ke/hs_tracker/module/entity/FormatType.kt | keluokeda | 469,693,055 | false | {"Kotlin": 372770} | package com.ke.hs_tracker.module.entity
import androidx.annotation.StringRes
import com.ke.hs_tracker.module.R
enum class FormatType(@StringRes val title: Int) {
Unknown(R.string.module_unknown),
/**
* 标准
*/
Standard(R.string.module_standard),
/**
* 狂野
*/
Wild(R.string.module... | 8 | Kotlin | 31 | 216 | b4c42c2ecf385f0f9b18bf5656f1ede42795ef20 | 534 | hs_tracker | MIT License |
src/main/kotlin/org/swineproject/warthog/Menu.kt | SwineEngine | 147,653,583 | false | null | package org.swineproject.warthog
import jep.Jep
import jep.JepConfig
import jep.python.PyObject
import org.eclipse.swt.SWT
import org.eclipse.swt.widgets.*
import org.eclipse.swt.widgets.Menu
import org.swineproject.warthog.filetypes.ProjectFile
import java.io.File
class Menu(decorations: Decorations) {
val menuB... | 0 | Kotlin | 0 | 0 | 2a7648773e6ce13f1f4df72227f8fd1cb9d1e11b | 2,766 | Warthog | MIT License |
src/main/kotlin/mara/server/domain/board/BoardController.kt | DDD-Community | 728,030,267 | false | {"Kotlin": 75860, "Shell": 1330} | package mara.server.domain.board
import mara.server.common.CommonResponse
import mara.server.common.success
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bin... | 2 | Kotlin | 3 | 6 | 4e84ea9b88593549efaf9141d7144f1329f00554 | 921 | fridge-link-server | MIT License |
src/main/kotlin/space/kscience/gradle/KScienceJSPlugin.kt | SciProgCentre | 194,256,204 | false | null | package space.kscience.gradle
import org.gradle.api.Plugin
import org.gradle.api.Project
public open class KScienceJSPlugin : Plugin<Project> {
override fun apply(project: Project): Unit = project.run {
if (!plugins.hasPlugin("org.jetbrains.kotlin.js")) {
plugins.apply("org.jetbrains.kotlin.js... | 0 | null | 3 | 8 | c9440e7fc939f2bad609a59326410402e78c3668 | 457 | gradle-tools | Apache License 2.0 |
sdk/sdk-metrics/src/commonMain/kotlin/io/opentelemetry/kotlin/sdk/metrics/data/DoubleSumData.kt | dcxp | 450,518,130 | false | {"Kotlin": 1483649} | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.kotlin.sdk.metrics.data
/** [SumData] recorded uses `double`s. */
interface DoubleSumData : SumData<DoublePointData> {
companion object {
val EMPTY = create(false, AggregationTemporality.CUMULATIVE... | 10 | Kotlin | 2 | 29 | 9c3186e26bd3ac78b650163be2c8f569096aaeec | 843 | opentelemetry-kotlin | Apache License 2.0 |
platform/src/main/kotlin/researchstack/backend/adapter/outgoing/mongo/entity/education/EducationalContentEntity.kt | S-ResearchStack | 520,365,362 | false | {"Kotlin": 1297740, "Dockerfile": 202, "Shell": 59} | package researchstack.backend.adapter.outgoing.mongo.entity.education
import org.springframework.data.annotation.Id
import org.springframework.data.mongodb.core.mapping.Document
import researchstack.backend.enums.EducationalContentStatus
import researchstack.backend.enums.EducationalContentType
import researchstack.ba... | 1 | Kotlin | 9 | 29 | edd76f219cdb10c8151b8ac14175b1e818a6036a | 2,162 | backend-system | Apache License 2.0 |
services/blueprint-service/src/main/kotlin/org/katan/service/blueprint/http/dto/BlueprintResponse.kt | KatanPanel | 182,468,654 | false | null | package org.katan.service.blueprint.http.dto
import kotlinx.datetime.Instant
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import org.katan.model.blueprint.Blueprint
@Serializable
internal data class BlueprintResponse(
val id: String,
val name: String,
val version: Stri... | 0 | null | 5 | 55 | 8e2f39310ec87bf19eed5a8a73b105518cabe7d9 | 770 | Katan | Apache License 2.0 |
spring-boot-kotlin/src/test/kotlin/com/example/api/integration/EmployeeWebApplicationTest.kt | anirban99 | 302,595,489 | false | null | package com.example.api.integration
import com.example.api.service.EmployeeService
import com.example.api.utils.faker.EmployeeFaker
import com.fasterxml.jackson.databind.ObjectMapper
import com.nhaarman.mockitokotlin2.doReturn
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import org.mocki... | 0 | Kotlin | 7 | 9 | f55de288208ac061559b79062bf8f2d8dacf69b3 | 4,761 | spring-boot-examples | Apache License 2.0 |
step5skie/shared/src/commonMain/kotlin/RocketLaunch.kt | kotlin-hands-on | 665,019,040 | false | null | package com.muheng.kotlinmultiplatformsandbox
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class RocketLaunch(
@SerialName("flight_number")
val flightNumber: Int,
@SerialName("name")
val missionName: String,
@SerialName("date_utc")
val la... | 1 | null | 7 | 6 | 316d97f250f288acd7b9f709463f64e207e4c42f | 402 | get-started-with-kmp | Apache License 2.0 |
flutterapp/android/app/src/main/kotlin/de/kneke/flutterapp/MainActivity.kt | Kneke | 175,188,803 | false | {"Kotlin": 89367, "Swift": 13981, "Dart": 10584, "JavaScript": 7751, "HTML": 3824, "Ruby": 3260, "Dockerfile": 511, "SCSS": 466, "Shell": 224, "Objective-C": 38} | package de.kneke.flutterapp
import android.util.Log
import androidx.annotation.NonNull
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugins.GeneratedPluginRegistrant
import de.kneke.flutterapp.channel.config.QuoteViewModelChannel
import de.kneke... | 22 | Kotlin | 0 | 2 | 35b0d4447ab42dedaed54509e73a1ae794199d3c | 684 | kotlin_multiplatform_quotes | Apache License 2.0 |
humingbirdgraphlib/src/main/java/com/humingbirdgraphlib/bargraph/VerticalValueIndicatorAdapter.kt | sujeet-kumar-mehta | 166,382,339 | false | {"Gradle": 4, "XML": 50, "Java Properties": 3, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Java": 2, "Kotlin": 12, "INI": 2} | package com.butterflybarchart
import android.app.Activity
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.humingbirdgraphlib.R
/**
* Created by aurigait on 17/1/17.
*/
class VerticalVa... | 0 | Kotlin | 0 | 6 | c218a5af78a30be1b6cdc6584a8c299d5072ee28 | 1,866 | HummingbirdGraphLibrary | MIT License |
src/test/kotlin/com/fwdekker/randomness/PersistentSettingsTest.kt | FWDekker | 96,791,256 | false | {"Kotlin": 577836, "HTML": 2713, "Java": 1024} | package com.fwdekker.randomness
import com.fwdekker.randomness.testhelpers.beforeNonContainer
import com.intellij.openapi.util.JDOMUtil
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.nulls.beNull
import io.kotest.matchers.should
import io.kotest.ma... | 8 | Kotlin | 7 | 45 | f5c0e51db2fec993d0dcf274ad32f732a8bb152c | 1,581 | intellij-randomness | MIT License |
app/src/main/java/org/p2p/wallet/common/feature_toggles/toggles/remote/NetworkObservationFeatureToggle.kt | p2p-org | 306,035,988 | false | {"Kotlin": 4545395, "HTML": 3064848, "Java": 296567, "Groovy": 1601, "Shell": 1252} | package org.p2p.wallet.common.feature_toggles.toggles.remote
import org.p2p.wallet.common.feature_toggles.remote_config.RemoteConfigValuesProvider
class NetworkObservationFeatureToggle(
valuesProvider: RemoteConfigValuesProvider
) : BooleanFeatureToggle(valuesProvider) {
override val featureKey: String = "sol... | 8 | Kotlin | 18 | 34 | d091e18b7d88c936b7c6c627f4fec96bcf4a0356 | 504 | key-app-android | MIT License |
src/fundamentos/pacoteB/Matematica.kt | ravi2612 | 327,423,746 | false | null | package fundamentos.pacoteB
fun soma(a: Int, b:Int): Int{
return a + b
}
fun subtracao(a: Int, b:Int): Int {
return a - b
} | 0 | Kotlin | 0 | 0 | 10bcb2e03dc1074a92b7914c9d157f2246dd8f78 | 131 | Kotlin | MIT License |
domain/domain-usecase/src/main/java/com/odogwudev/example/domain_usecase/helper/tvSeries/discover/DiscoverTvSeriesUseCase.kt | odogwudev | 592,877,753 | false | null | package com.odogwudev.example.domain_usecase.helper.tvSeries.discover
import com.odogwudev.example.domain_util.FilterType
import com.odogwudev.example.domain_util.result.wrapToResult
import com.odogwudev.example.explore_api.ExploreService
import com.odogwudev.example.pagination_api.RefreshType
class DiscoverTvSeriesU... | 0 | Kotlin | 0 | 4 | 82791abdcf1554d2a2cd498a19cd93952f90e53e | 803 | CinephilesCompanion | MIT License |
PagingArchitectureRetrofit/data/src/main/java/dev/seabat/android/pagingarchitectureretrofit/data/datasource/github/model/Owner.kt | seabat | 636,759,391 | false | {"Kotlin": 83756} | package dev.seabat.android.pagingarchitectureretrofit.data.datasource.github.model
import com.squareup.moshi.Json
data class Owner(
@Json(name = "avatar_url") val avatarUrl: String?
) | 0 | Kotlin | 0 | 0 | f8b7521282ed6a54415ecfef5a79dc41a350d047 | 189 | hello-architecture-retrofit | Apache License 2.0 |
src/main/java/dev/blachut/svelte/lang/SvelteFileViewProvider.kt | convincely | 248,160,749 | false | {"Gradle": 2, "Markdown": 2, "Shell": 1, "Text": 10, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "Java Properties": 1, "Kotlin": 66, "Svelte": 22, "Java": 70, "JFlex": 2, "SVG": 2, "XML": 1, "HTML": 1, "YAML": 2} | package dev.blachut.svelte.lang
import com.intellij.lang.Language
import com.intellij.lang.LanguageParserDefinitions
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.psi.MultiplePsiFilesPerDocumentFileViewProvider
import com.intellij.psi.PsiFile
import com.intellij.psi.PsiManager
import com.intellij.psi... | 1 | null | 1 | 1 | f8906d30b8c175d578b40b81f65d53e4eeaad310 | 1,772 | svelte-intellij | MIT License |
android/app/src/main/java/app/covidshield/receiver/worker/NotificationWorker.kt | cds-snc | 268,543,048 | false | null | package app.covidshield.receiver.worker
import android.annotation.TargetApi
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.os.Build
import android.text.Html
import android.text.Ht... | 15 | TypeScript | 111 | 898 | 3f79e220cc4235365207d5146d2784f4622503ab | 3,062 | covid-alert-app | Apache License 2.0 |
src/main/kotlin/de/larmic/unittesting/database/BookJpaRepository.kt | larmic | 452,640,797 | false | null | package de.larmic.unittesting.database
import jakarta.persistence.Column
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Query
import org.springframework.stereotype.Repository
import java.time.LocalDate
import java.util.*
import jakarta.persistence.Entity
imp... | 5 | null | 0 | 6 | 695b533772c278439648a57881e0081080af548e | 1,013 | unit-testing-best-bad-practices | Apache License 2.0 |
vk-sdk-api/src/main/java/com/vk/sdk/api/auth/methods/AuthCheckPhone.kt | hackumono | 359,598,859 | true | {"Kotlin": 5863360, "Java": 37555} | /**
* The MIT License (MIT)
*
* Copyright (c) 2019 vk.com
*
* 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... | 0 | null | 0 | 0 | 9417300f321cae4f231d6cb0ee44002a140a2124 | 2,585 | vk-android-sdk | MIT License |
app/src/main/java/com/kgurgul/cpuinfo/features/information/gpu/GpuInfoViewModel.kt | kamgurgul | 105,620,694 | false | null | /*
* Copyright 2017 KG Soft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 27 | Kotlin | 88 | 468 | c14870ef298bc6be2c1355d36698c355c1f5fc51 | 1,684 | cpu-info | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.