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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
components/bridge/synchronization/ui/src/commonMain/kotlin/com/flipperdevices/bridge/synchronization/ui/composable/ComposableItemSynchronizationState.kt | flipperdevices | 288,258,832 | false | {"Kotlin": 4167715, "FreeMarker": 10352, "CMake": 1780, "C++": 1152, "Fluent": 21} | package com.flipperdevices.bridge.synchronization.ui.composable
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.rememberInfiniteTransition
import androidx.compose.ani... | 21 | Kotlin | 174 | 1,528 | 8f293e596741a6c97409acbc8de10c7ae6e8d8b0 | 3,856 | Flipper-Android-App | MIT License |
app/src/main/java/org/rfcx/incidents/data/remote/common/Result.kt | rfcx | 104,899,135 | false | {"Kotlin": 1176262, "Java": 1049} | /*
* Copyright 2018 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 29 | Kotlin | 0 | 0 | 804d56b8c7475e51299db5fde9207ae783820bf9 | 1,555 | guardian-app-android | Apache License 2.0 |
tracker/src/main/java/com/ericafenyo/tracker/datastore/DataStore.kt | ericafenyo | 309,510,894 | false | null | /*
* The MIT License (MIT)
*
* Copyright (C) 2021 <NAME>
*
* 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,... | 10 | Kotlin | 0 | 0 | 3b9b5b9440270d102c04893d3903fb1d198c0883 | 2,081 | bike-diary | MIT License |
src/main/kotlin/kossh/util/Expect.kt | jkelly467 | 142,593,902 | false | {"Kotlin": 102111} | package kossh.util
data class Expect(val expectWhen: (String)->Boolean, val send: String) | 4 | Kotlin | 12 | 29 | fc4ab7654cd980672535dee028c623bdf4bd767a | 90 | kossh | MIT License |
droid-app/CoffeeDose/app/src/main/java/com/office14/coffeedose/extensions/LiveData.kt | office-14 | 241,098,657 | false | null | package com.office14.coffeedose.extensions
import androidx.lifecycle.MutableLiveData
fun <T> mutableLiveData(default: T? = null): MutableLiveData<T> {
val data = MutableLiveData<T>()
if (default != null)
data.value = default
return data
}
fun <T> mutableLiveDataNotNull(default: T): MutableLiveD... | 14 | null | 2 | 1 | 621e2cb2dc378b5cb447c3369abeb34a36d28572 | 408 | Drinks | MIT License |
playground/src/main/java/androidx/essentials/playground/textfield/TextFieldActivity.kt | kunal26das | 282,238,393 | false | null | package androidx.essentials.playground.textfield
import androidx.activity.viewModels
import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.found... | 5 | Kotlin | 0 | 3 | 4968a43c341f728c905d3db7a124fd8b6e05041a | 3,886 | androidx-essentials | Apache License 2.0 |
domain/src/main/java/com/krykun/domain/model/remote/moviedetails/SpokenLanguage.kt | JekaK | 508,341,591 | false | {"Kotlin": 470505} | package com.krykun.domain.model.remote.moviedetails
data class SpokenLanguage(
val englishName: String? = null,
val iso6391: String? = null,
val name: String? = null
) | 0 | Kotlin | 0 | 7 | b46b296c16e23a6394e382a7d30b34176d443d90 | 180 | MoviesApp | Apache License 2.0 |
src/main/kotlin/io/kanro/idea/plugin/protobuf/lang/completion/FieldNameProvider.kt | devkanro | 351,091,577 | false | null | package io.kanro.idea.plugin.protobuf.lang.completion
import com.intellij.codeInsight.completion.CompletionParameters
import com.intellij.codeInsight.completion.CompletionProvider
import com.intellij.codeInsight.completion.CompletionResultSet
import com.intellij.codeInsight.completion.InsertHandler
import com.intellij... | 4 | null | 8 | 84 | 23624949890c127becf0b789737c7681481f975b | 4,234 | intellij-protobuf-plugin | Apache License 2.0 |
app/src/main/java/view/CharacterViewModel.kt | garghimanshu0786 | 419,904,856 | false | {"Kotlin": 18788} | package view
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.switchMap
import androidx.lifecycle.viewModelScope
import androidx.paging.cachedIn
import repo.CharacterRepo
class CharacterViewModel : ViewModel() {
pri... | 1 | Kotlin | 0 | 0 | 405bfb2369966327a68317b746ff09cc67b068f7 | 1,603 | Rick-Morty | Apache License 2.0 |
app/src/main/java/com/erzhan/mynote/feature_note/domain/use_case/DeleteNoteUseCase.kt | anarkulov | 504,597,988 | false | null | package com.erzhan.mynote.feature_note.domain.use_case
import com.erzhan.mynote.feature_note.domain.model.Note
import com.erzhan.mynote.feature_note.domain.repository.NoteRepository
class DeleteNoteUseCase(
private val repository: NoteRepository
) {
suspend operator fun invoke(note: Note) {
repositor... | 0 | Kotlin | 0 | 0 | 10d40194a7e4df2c2e545a93487e79a6dc1bdda5 | 346 | MyNote | MIT License |
time/src/test/kotlin/xyz/tynn/hoppa/time/MonthDayTest.kt | tynn-xyz | 280,739,124 | false | null | // Copyright 2021 <NAME>
// SPDX-License-Identifier: Apache-2.0
package xyz.tynn.hoppa.time
import java.time.MonthDay
import kotlin.test.Test
import kotlin.test.assertEquals
import org.threeten.bp.MonthDay as MonthDayBp
internal class MonthDayTest {
@Test
fun `toJavaTime should convert MonthDayBp to Month... | 0 | Kotlin | 0 | 4 | cf9433e5af1582473b1101aeebca65cfc4dda16f | 675 | Hoppa | Apache License 2.0 |
pipelines/pipeline-jet/src/test/java/com/orbitalhq/pipelines/jet/pipelines/ValidationTest.kt | orbitalapi | 541,496,668 | false | {"TypeScript": 9344934, "Kotlin": 5669840, "HTML": 201985, "SCSS": 170620, "HCL": 55741, "Java": 29373, "JavaScript": 24697, "Shell": 8800, "Dockerfile": 7001, "Smarty": 4741, "CSS": 2966, "Mustache": 1392, "Batchfile": 983, "MDX": 884, "PLpgSQL": 337} | package com.orbitalhq.pipelines.jet.pipelines
import com.winterbe.expekt.should
import com.orbitalhq.pipelines.jet.BaseJetIntegrationTest
import com.orbitalhq.pipelines.jet.api.transport.PipelineSpec
import com.orbitalhq.pipelines.jet.api.transport.StringContentProvider
import com.orbitalhq.pipelines.jet.source.fixed.... | 9 | TypeScript | 10 | 292 | 2be59abde0bd93578f12fc1e2ecf1f458a0212ec | 2,114 | orbital | Apache License 2.0 |
tests/compile/src/test/kotlin/software/amazon/smithy/kotlin/codegen/util/CodegenTestIntegration.kt | awslabs | 294,823,838 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package software.amazon.smithy.kotlin.codegen.util
import software.amazon.smithy.aws.traits.protocols.RestJson1Trait
import software.amazon.smithy.codegen.core.Symbol
import software.amazon.smithy.kotlin... | 29 | null | 17 | 29 | c1d88cb66ea4960bf12e97d4d590ec0c00255d62 | 3,232 | smithy-kotlin | Apache License 2.0 |
openapi/checking/checker/src/main/kotlin/org/sollecitom/chassis/openapi/checking/checker/rule/field/FieldRulesViolation.kt | sollecitom | 669,483,842 | false | {"Kotlin": 847921, "Java": 30834} | package org.sollecitom.chassis.openapi.checking.checker.rule.field
import io.swagger.v3.oas.models.Operation
import org.sollecitom.chassis.openapi.checking.checker.model.OpenApiField
import org.sollecitom.chassis.openapi.checking.checker.model.OperationWithContext
import org.sollecitom.chassis.openapi.checking.checker... | 0 | Kotlin | 0 | 2 | 0b727b58283493f6fa7ea3fc46fd9d86225e7ba2 | 833 | chassis | MIT License |
appvox-appstore/src/main/kotlin/io/appvox/appstore/review/AppStoreReviewRepository.kt | fabiouu | 277,291,845 | false | null | package io.appvox.appstore.review
import io.appvox.core.configuration.RequestConfiguration
import io.appvox.core.exception.AppVoxException
import io.appvox.core.review.ReviewRequest
import io.appvox.core.review.ReviewResult
import io.appvox.appstore.review.domain.AppStoreReviewRequestParameters
import io.appvox.appsto... | 0 | Kotlin | 1 | 4 | d68fd603408dcfa31ff2c963aabac424c9857630 | 2,002 | appvox | Apache License 2.0 |
kmath-core/src/commonTest/kotlin/scientifik/kmath/operations/BigIntAlgebraTest.kt | knok16 | 281,485,518 | true | {"Kotlin": 294164} | package scientifik.kmath.operations
import kotlin.test.Test
import kotlin.test.assertEquals
class BigIntAlgebraTest {
@Test
fun testKBigIntegerRingSum() {
val res = BigIntField {
1_000L.toBigInt() * 1_000L.toBigInt()
}
assertEquals(res, 1_000_000.toBigInt())
}
@Tes... | 0 | null | 0 | 0 | 7954353e3011ad36d2cd732c9b92ea1a6a53bc46 | 1,449 | kmath | Apache License 2.0 |
shared/src/commonMain/kotlin/domain/model/CountryModel.kt | marazmone | 632,133,133 | false | null | package domain.model
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
data class CountryModel(
val name: String,
val imageUrl: String,
val capitals: List<String>,
val flag: String,
private val _population: Int,
pri... | 2 | Kotlin | 0 | 22 | dbf3d03961992b8ea1fca3c174823082757a4132 | 886 | ios-compose-showcase | Apache License 2.0 |
src/main/kotlin/com/gmail/fantasticskythrow/messages/MessageEventProcessor.kt | RoAnBu | 244,469,861 | false | null | package com.gmail.fantasticskythrow.messages
import com.gmail.fantasticskythrow.PLM
import com.gmail.fantasticskythrow.configuration.IAppConfiguration
import com.gmail.fantasticskythrow.configuration.IPlayerLogins
import com.gmail.fantasticskythrow.messages.generator.IAdditionalMessagesGenerator
import com.gmail.fanta... | 0 | Kotlin | 0 | 0 | 3f39087c6ae3d94f3698b7d28b2609edc34f42b6 | 5,483 | personal-login-message | MIT License |
bewegt-und-bunt/src/main/kotlin/io/github/ocirne/ray/bewegt/canvas/PPM.kt | ocirne | 379,563,605 | false | null | package io.github.ocirne.ray.bewegt.canvas
import java.io.File
class PPM(private val filename: String) {
fun writeToFile(frame: RGBDataFrame) {
File(filename).printWriter().use { out ->
out.println("P3")
out.println("${frame.width} ${frame.height}")
out.println("255")
... | 0 | Kotlin | 0 | 0 | 5075b417be18fd07f61f5182e0381fd283319c66 | 526 | ray | The Unlicense |
feature-assets/src/main/java/com/edgeverse/wallet/feature_assets/presentation/transaction/filter/di/TransactionHistoryFilterComponent.kt | finn-exchange | 512,140,809 | false | null | package com.dfinn.wallet.feature_assets.presentation.transaction.filter.di
import androidx.fragment.app.Fragment
import dagger.BindsInstance
import dagger.Subcomponent
import com.dfinn.wallet.common.di.scope.ScreenScope
import com.dfinn.wallet.feature_assets.presentation.transaction.filter.TransactionHistoryFilterFrag... | 0 | Kotlin | 1 | 0 | 6cc7a0a4abb773daf3da781b7bd1dda5dbf9b01d | 700 | edgeverse-wallet | Apache License 2.0 |
src/main/kotlin/me/stroiker/flexibleloadgenerator/mvc/model/LoadGeneratorBasicResponse.kt | stroiker | 354,307,245 | false | null | package me.stroiker.flexibleloadgenerator.mvc.model
internal class LoadGeneratorBasicResponse<T>(
val result: T? = null,
val responseStatus: LoadGeneratorResponseStatus,
val errorMessage: String? = null
) | 0 | Kotlin | 0 | 1 | 8531fc0d812dd971a7a3d94147f2c84e09411d64 | 217 | flexible-load-generator | Apache License 2.0 |
onboarding/src/main/java/com/android/onboarding/vm/PersonalInfoVM.kt | yash786agg | 759,532,917 | false | {"Kotlin": 87518} | package com.android.onboarding.vm
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
class PersonalInfoVM: ViewModel() {
val firstNameTextFieldState = mutableStateOf("")
val lastNameTextFieldState = mutableStateOf("")
val telephoneNumberTextFieldState = mutableStateOf("")
... | 0 | Kotlin | 0 | 0 | ab39740855e3bb356a06694301de6461d6b4ff36 | 1,522 | JetPack-Compose-Navigation-App | Apache License 2.0 |
core-kotlin-modules/core-kotlin-collections-2/src/test/kotlin/com/baeldung/lists/ListCopyUnitTest.kt | Baeldung | 260,481,121 | false | null | package com.baeldung.lists
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
class ListCopyUnitTest {
private val cities = listOf("Berlin", "Munich", "Hamburg")
@Test
fun `should be able to shallow copy a list using toList extension functions`() {
val copied = c... | 14 | null | 6 | 465 | f1ef5d5ded3f7ddc647f1b6119f211068f704577 | 590 | kotlin-tutorials | MIT License |
buildSrc/src/test/kotlin/FileRangeTest.kt | hexagonkt | 56,139,239 | false | null |
import org.junit.jupiter.api.Test
import java.io.File
class FileRangeTest {
private val testFile: File = File("src/test/resources/test.md")
private val fileRangeWithTagPresentInFile: FileRange = testFileRange("hello")
private val fileRangeWithNoTagPresentInFile: FileRange = testFileRange("world")
pr... | 23 | null | 81 | 373 | dbc0d602aa48cfc58644f15329a8308b65ca6cc1 | 3,278 | hexagon | MIT License |
canvas_lp/src/main/java/com/angcyo/canvas/laser/pecker/dslitem/CanvasLayerItem.kt | angcyo | 229,037,684 | false | null | package com.angcyo.canvas.laser.pecker.dslitem
import android.graphics.drawable.Drawable
import com.angcyo.canvas.CanvasDelegate
import com.angcyo.canvas.Strategy
import com.angcyo.canvas.core.renderer.SelectGroupRenderer
import com.angcyo.canvas.items.renderer.BaseItemRenderer
import com.angcyo.dsladapter.DslAdapterI... | 0 | Kotlin | 4 | 2 | 96a6ea873c8486a06525e752038ab2630b3c86ca | 4,018 | UICoreEx | MIT License |
interpreter/src/test/kotlin/org/actorlang/interpreter/objects/ActorLangActorStateClassTest.kt | 422404 | 371,440,848 | false | null | package org.actorlang.interpreter.objects
import org.actorlang.interpreter.exception.WrongActorStateArityException
import org.mockito.kotlin.mock
import kotlin.test.Test
import kotlin.test.assertFailsWith
class ActorLangActorStateClassTest {
@Test
fun `An actor state cannot be instantiated if there is a mism... | 23 | null | 1 | 3 | bccf9c554e2dc2ad9c946cf8f38cacdd7002b555 | 769 | ActorLang | MIT License |
app/src/main/java/com/zipdabang/zipdabang_android/module/my/data/remote/signout/SignOutResult.kt | zipdabang | 666,457,004 | false | {"Kotlin": 2288114} | package com.zipdabang.zipdabang_android.module.my.data.remote.signout
import kotlinx.serialization.Serializable
@Serializable
data class SignOutResult(
val calledAt: String,
val memberId: Int,
val status: String
) | 1 | Kotlin | 1 | 2 | 9e1fea5413a52a662dd1ee6ff5c19a07231b287f | 227 | android | MIT License |
HomeApp/app/src/main/java/com/HomeApp/ui/composables/AppFooter.kt | DA330A-Software-Engineering | 592,251,653 | false | null | package com.HomeApp.ui.composables
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.BottomAppBar
import androidx.compose.material.Icon
import androidx.compose.material.IconButton
import androidx.compose.material.MaterialTheme
import andro... | 21 | Kotlin | 0 | 0 | cab1a797e588a84a9743be0e2901ec12d7ed7563 | 3,325 | mobile | Apache License 2.0 |
app/src/main/java/com/avelycure/spotifyclone/exoplayer/FirebaseMusicSource.kt | avelycure | 449,867,899 | false | {"Kotlin": 19735} | package com.avelycure.spotifyclone.exoplayer
import android.support.v4.media.MediaBrowserCompat
import android.support.v4.media.MediaBrowserCompat.MediaItem.FLAG_PLAYABLE
import android.support.v4.media.MediaDescriptionCompat
import android.support.v4.media.MediaMetadataCompat
import android.support.v4.media.MediaMeta... | 0 | Kotlin | 0 | 0 | 9d6d3f3ca4266f5bf97c4264dc6201352f3348ed | 4,201 | SpotifyClone | MIT License |
application/core/src/main/kotlin/com/movie/info/core/CoreModule.kt | Study-Cases-Domain-Driven-Design | 405,723,880 | false | {"Kotlin": 3480} | package com.movie.info.core
| 0 | Kotlin | 0 | 0 | 624b82607ac8d845e4278e62aa91544e08d0fc59 | 29 | movieinfobff | MIT License |
kodando-jest/src/main/kotlin/kodando/jest/Expect.kt | kodando | 81,663,289 | false | null | @file:Suppress("unused")
package kodando.jest
import kotlin.js.RegExp
external interface Expect<in T> {
val not: Expect<T>
/**
* Uses === to test exact equality. If you want to check the value of an object, use toEqual instead.
*/
fun toBe(value: T)
/**
* Recursively checks every fie... | 12 | null | 5 | 76 | f1428066ca01b395c1611717fde5463ba0042b19 | 2,030 | kodando | MIT License |
core-kotlin-modules/core-kotlin-2/src/test/kotlin/com/baeldung/varargs/Vararg.kt | Baeldung | 260,481,121 | false | null | package cn.tuyucheng.taketoday.varargs
fun sum(vararg xs: Int): Int = xs.sum()
fun <T> printAll(vararg ts: T) {
ts.forEach { println(it) } // Array<T>
}
fun printStrings(vararg vs: String) {
vs.forEach { println(it) } // Array<String>
}
fun createUser(vararg roles: String, username: String, age: Int) {}
fun ... | 8 | null | 6 | 411 | 78b18d9efe038a1da6db5d090b74445507a56d40 | 440 | kotlin-tutorials | MIT License |
library/src/main/java/com/angcyo/library/unit/MmValueUnit.kt | angcyo | 229,037,615 | false | {"Kotlin": 6707906, "JavaScript": 5194} | package com.angcyo.library.unit
import android.util.DisplayMetrics
import android.util.TypedValue
import com.angcyo.library.app
import com.angcyo.library.isPlaceholderApplication
/**
* 英制单位, 英寸
* Email:angcyo@126.com
* @author angcyo
* @date 2022/04/04
* Copyright (c) 2020 angcyo. All rights reserved.
*/
class ... | 0 | Kotlin | 6 | 5 | 7522055008873ab84ff13fb0077b89be00f3f880 | 1,479 | UICore | MIT License |
FrontEnd/app/src/main/java/cs309/selectunes/adapter/SongAdapter.kt | SelecTunes | 259,414,351 | false | {"C#": 213708, "Kotlin": 94692, "HTML": 16883, "Python": 14495, "JavaScript": 11286, "Ruby": 3898, "CSS": 1346, "Dockerfile": 642, "Makefile": 184} | package cs309.selectunes.adapter
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.BitmapFactory
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import android.widget.ImageView
import android.widget... | 17 | C# | 0 | 3 | fa0160d26d7ee9c78074dc86e13d7f9fd835e8c5 | 1,806 | SelecTunes | Apache License 2.0 |
jda/src/test/kotlin/interactions/selectMenus/JeffSelectMenu.kt | Azuyamat | 702,722,975 | false | {"Kotlin": 57883} | package interactions.selectMenus
import com.azuyamat.InteractionClass
import com.azuyamat.interactions.SelectMenu
import net.dv8tion.jda.api.events.interaction.component.GenericSelectMenuInteractionEvent
@InteractionClass
object JeffSelectMenu : SelectMenu {
override suspend fun execute(event: GenericSelectMenuIn... | 0 | Kotlin | 0 | 4 | c032e91c44ec9a1f5322cba8199dbdada148b683 | 387 | Kormmand | MIT License |
app/src/main/java/icu/nullptr/twifucker/hook/DownloadHook.kt | soralis0912 | 753,441,642 | false | {"Kotlin": 167398, "Java": 19707, "C++": 4650, "C": 2507, "Makefile": 1181} | package icu.nullptr.twifucker.hook
import android.os.Bundle
import android.view.View
import android.widget.TextView
import com.github.kyuubiran.ezxhelper.ClassUtils.loadClass
import com.github.kyuubiran.ezxhelper.EzXHelper
import com.github.kyuubiran.ezxhelper.EzXHelper.addModuleAssetPath
import com.github.kyuubiran.e... | 1 | Kotlin | 1 | 7 | 7d30702c255ae23a6fa761b6dc622449123d498a | 30,713 | TwiFucker2 | MIT License |
tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/ProximityAlertTriggered.kt | InsanusMokrassar | 163,152,024 | false | null | package dev.inmo.tgbotapi.types.message.ChatEvents
import dev.inmo.tgbotapi.types.Meters
import dev.inmo.tgbotapi.types.chat.User
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.PublicChatEvent
import kotlinx.serialization.Serializable
/**
* This object represents the content of a service message, sent w... | 9 | null | 29 | 99 | 8206aefbb661db936d4078a8ef7cc9cecb5384e4 | 544 | TelegramBotAPI | Apache License 2.0 |
skiko/src/jvmMain/kotlin/org/jetbrains/skia/skottie/Logger.kt | pa-dieter | 403,520,837 | true | {"Kotlin": 949848, "C++": 483039, "Objective-C++": 20299, "Dockerfile": 2368, "JavaScript": 1202, "Shell": 555} | package org.jetbrains.skia.skottie
import org.jetbrains.skia.impl.Library.Companion.staticLoad
import org.jetbrains.skia.impl.RefCnt
import org.jetbrains.skia.impl.Stats
/**
*
* A Logger subclass can be used to receive
* [org.jetbrains.skia.skottie.AnimationBuilder] parsing errors and warnings.
*/
abstract class ... | 0 | null | 0 | 0 | 2d070a54804c16497d00918d969e4cf3c4942018 | 681 | skiko | Apache License 2.0 |
libs/sandbox-internal/src/integrationTest/kotlin/net/corda/sandboxtests/SandboxBundleIsolationTest.kt | corda | 346,070,752 | false | {"Kotlin": 20585393, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.sandboxtests
import java.nio.file.Path
import net.corda.testing.sandboxes.SandboxSetup
import net.corda.testing.sandboxes.fetchService
import net.corda.testing.sandboxes.lifecycle.AllTestsLifecycle
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertNotE... | 14 | Kotlin | 27 | 69 | 0766222eb6284c01ba321633e12b70f1a93ca04e | 3,781 | corda-runtime-os | Apache License 2.0 |
app/src/test/java/br/com/jxr/cstv/data/Fixtures.kt | joaoreis | 516,848,448 | false | {"Kotlin": 41799} | package br.com.jxr.cstv.data
import br.com.jxr.cstv.data.remote.MatchPagingSource
import br.com.jxr.cstv.data.remote.PandaScoreApi
import br.com.jxr.cstv.data.remote.repository.MatchRepositoryImpl
import br.com.jxr.cstv.di.AppModule
import io.mockk.coEvery
import io.mockk.mockk
val api = AppModule.providePandaScoreAp... | 0 | Kotlin | 0 | 0 | 79d3d78d98327a59c995c1d2b8214e7e1f066d45 | 780 | cstv | MIT License |
buildSrc/src/main/kotlin/ru/surfstudio/android/build/tasks/CreateProjectConfigurationTask.kt | surfstudio | 175,407,898 | false | null | package ru.surfstudio.android.build.tasks
import org.gradle.api.DefaultTask
import org.gradle.api.GradleException
import org.gradle.api.tasks.TaskAction
import ru.surfstudio.android.build.GradleProperties.CREATE_PROJECT_CONFIGURATION_PATH_TO_PROJECT
import ru.surfstudio.android.build.GradleProperties.CREATE_PROJECT_CO... | 1 | Kotlin | 2 | 27 | 5f68262ac148bc090c600121295f81c7ce3486c0 | 1,440 | EasyAdapter | Apache License 2.0 |
src/main/kotlin/com/cpsc471/tms/data/repository/IDBValue.kt | Sonicskater | 227,043,523 | false | {"Markdown": 2, "Maven POM": 1, "Ignore List": 1, "XML": 1, "Java": 3, "Text": 1, "Java Properties": 1, "Kotlin": 90} | package com.cpsc471.tms.data.repository
interface IDBValue {
override fun hashCode(): Int
override fun equals(other: Any?): Boolean
fun iDforDb() : List<Any?>
} | 3 | Kotlin | 0 | 1 | c9926be8054eb597178d62ab4a2442baca1a33fd | 174 | vaadin-kotlin-CRUD | The Unlicense |
module_feed/src/main/java/app/melon/feed/ui/controller/FeedPageController.kt | biubiubiiu | 344,728,768 | false | null | package app.melon.feed.ui.controller
import android.content.Context
import app.melon.base.framework.BasePagingController
import app.melon.base.ui.list.EmptyView
import app.melon.base.ui.list.EmptyView_
import app.melon.data.resultentities.FeedAndAuthor
import app.melon.feed.FeedPageConfig
import app.melon.feed.R
impor... | 1 | null | 1 | 2 | 6bb52f962084674ed50ffb3f8399c1b413a5a234 | 1,645 | Melon | Apache License 2.0 |
project-system-gradle-models/src/com/android/tools/idea/gradle/model/impl/IdeBuildTasksAndOutputInformationImpl.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | Kotlin | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,173 | android | Apache License 2.0 |
src/test/kotlin/com/dvdmunckhof/aoc/event2023/Day08Test.kt | dvdmunckhof | 318,829,531 | false | {"Kotlin": 203602, "PowerShell": 1266} | package com.dvdmunckhof.aoc.event2023
import com.dvdmunckhof.aoc.Resources
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
@DisplayName("2023 - Day 08")
class Day08Test {
@Test
fun `Part 1 - Example 1`() {
val input = Resources.readAs... | 0 | Kotlin | 0 | 0 | 0db2a8b9d39dd887a6c4b8872b41f26bd416f193 | 1,297 | advent-of-code | Apache License 2.0 |
plugin/src/main/kotlin/com/github/gmazzo/gradle/plugins/generators/BuildConfigJavaGenerator.kt | Doomsdayrs | 249,324,350 | false | {"Gradle Kotlin DSL": 9, "Java Properties": 3, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 1, "Markdown": 1, "Kotlin": 31, "Gradle": 1, "Java": 2, "JSON": 4, "INI": 4} | package com.github.gmazzo.gradle.plugins.generators
import com.github.gmazzo.gradle.plugins.BuildConfigTaskSpec
import com.squareup.javapoet.*
import org.apache.commons.lang3.ClassUtils
import org.gradle.api.logging.Logging
import javax.lang.model.element.Modifier
object BuildConfigJavaGenerator : BuildConfigGenerato... | 1 | null | 1 | 1 | 54f90af5aca16330ed00aeec50a99f6f031741e9 | 1,652 | gradle-buildconfig-plugin | MIT License |
sample/src/main/kotlin/com/chuckerteam/chucker/sample/OkHttpUtils.kt | ChuckerTeam | 156,025,139 | false | null | package com.chuckerteam.chucker.sample
import android.content.Context
import com.chuckerteam.chucker.api.ChuckerCollector
import com.chuckerteam.chucker.api.ChuckerInterceptor
import com.chuckerteam.chucker.api.RetentionManager
import okhttp3.Call
import okhttp3.Callback
import okhttp3.OkHttpClient
import okhttp3.Resp... | 65 | null | 346 | 3,944 | 23918344a94899faeba68cf325646768533b3a21 | 2,645 | chucker | Apache License 2.0 |
src/fr/cph/stock/android/listener/ErrorButtonOnClickListener.kt | carlphilipp | 60,913,205 | false | null | /**
* Copyright 2017 <NAME>
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to... | 0 | Kotlin | 0 | 0 | 7484c1b17928fcbf639cd03263a08d49c5753b39 | 1,209 | stock-tracker-android | Apache License 2.0 |
PurposefulCommunity/app/src/main/java/com/bounswe/purposefulcommunity/Models/SignInBody.kt | yilmazvolkan | 215,142,781 | false | null | package com.bounswe.purposefulcommunity.Models
data class SignInBody(
val email: String,
val password: String) | 1 | Kotlin | 1 | 3 | cce8b454712517799e9823bc75dc396495cf38a7 | 120 | purposefulCommunityPlatform | MIT License |
app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/horizontal/RightToLeftReader.kt | TachiWeb | 66,624,691 | true | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 1, "Markdown": 4, "Proguard": 1, "Kotlin": 253, "XML": 171, "Java": 9} | package eu.kanade.tachiyomi.ui.reader.viewer.pager.horizontal
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import eu.kanade.tachiyomi.ui.reader.viewer.pager.PagerReader
/**
* Right to Left reader.
*/
class RightToLeftReader : PagerReader() {
... | 0 | Kotlin | 0 | 5 | 9dac958ed1414338dfff825c8d7dbe78fb98209a | 688 | tachiyomi | Apache License 2.0 |
http4k-core/src/test/kotlin/org/http4k/core/ParametersTest.kt | opencollective | 102,504,841 | false | null | package org.http4k.core
import com.natpryce.hamkrest.assertion.assertThat
import com.natpryce.hamkrest.equalTo
import junit.framework.TestCase
import org.junit.Test
class ParametersTest {
@Test
fun extract_query_parameters() {
assertThat("foo=one&bar=two".toParameters().findSingle("foo")!!, equalTo("o... | 0 | null | 0 | 1 | 6a8ce15e4f40f10920a9b79f2d0a6d9296d7b195 | 988 | http4k | Apache License 2.0 |
sketch/src/androidTest/java/com/github/panpf/sketch/test/stateimage/ResDrawableTest.kt | fltwlulu | 188,455,050 | false | null | package com.github.panpf.sketch.test.stateimage
import android.graphics.drawable.BitmapDrawable
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.github.panpf.sketch.stateimage.ResDrawable
import com.github.panpf.sketch.test.utils.getTestContext
import com.github.panpf.sketch.util.asOrThrow
import com.gi... | 1 | null | 1 | 1 | c9ff98d80c36d7c4ba5c28bbf358dc8ee53278b1 | 3,111 | sketch | MIT License |
shieldCore/src/main/java/com/dianping/shield/node/processor/impl/row/RowTopInfoProcessor.kt | Meituan-Dianping | 113,555,063 | false | null | package com.dianping.shield.node.processor.impl.row
import com.dianping.shield.node.cellnode.ShieldRow
import com.dianping.shield.node.useritem.RowItem
/**
* Created by runqi.wei at 2018/8/17
*/
class RowTopInfoProcessor : RowNodeProcessor() {
override fun handleRowItem(rowItem: RowItem, shieldRow: ShieldRow): ... | 8 | null | 117 | 936 | 7618a1845d896f358b6edf8fde95622d315eda52 | 402 | Shield | MIT License |
src/main/java/net/eduard/essentials/command/LobbyCommand.kt | EduardMaster | 172,132,752 | false | null | package net.eduard.essentials.command
import net.eduard.api.lib.manager.CommandManager
import net.eduard.api.lib.modules.BukkitBungeeAPI
import net.eduard.api.lib.modules.Mine
import org.bukkit.command.Command
import org.bukkit.command.CommandSender
import org.bukkit.entity.Player
class LobbyCommand : CommandManager(... | 1 | null | 1 | 1 | 54e0d8c6b72d8d68510ff524f7f56fa66a033b97 | 560 | EduEssentials | MIT License |
app/src/main/java/org/wikipedia/views/ViewAnimations.kt | greatfire | 460,298,221 | false | null | package org.wikipedia.views
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.view.View
import org.wikipedia.WikipediaApp
object ViewAnimations {
private val SHORT_ANIMATION_DURATION = WikipediaApp.instance.resources.getInteger(android.R.integer.config_shortAnimTime... | 2 | null | 480 | 38 | 8c8de602274b0132fc5d22b394a2c47fcd0bf2eb | 2,561 | apps-android-wikipedia-envoy | Apache License 2.0 |
mobile_app1/module224/src/main/java/module224packageKt0/Foo160.kt | uber-common | 294,831,672 | false | null | package module224packageKt0;
annotation class Foo160Fancy
@Foo160Fancy
class Foo160 {
fun foo0(){
module224packageKt0.Foo159().foo3()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
} | 6 | Java | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 237 | android-build-eval | Apache License 2.0 |
idea/tests/testData/intentions/convertToStringTemplate/this2.kt | JetBrains | 278,369,660 | false | null | class A {
val i = 1
val s = ""<caret> + this.i
} | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 56 | intellij-kotlin | Apache License 2.0 |
applications/geotabgroup-tracking-mqtt-source/src/main/kotlin/com/vmware/tanzu/data/IoT/vehicles/geotab/GeotabSourceApp.kt | Tanzu-Solutions-Engineering | 353,470,254 | false | {"Kotlin": 164241, "C#": 61393, "HTML": 25553, "Java": 15373, "Shell": 8218, "Smarty": 216} | package com.vmware.tanzu.data.IoT.vehicles.geotab
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class GeotabSourceApp
fun main(args: Array<String>) {
runApplication<GeotabSourceApp>(*args)
}
| 1 | Kotlin | 1 | 4 | 9b361f369b06ffe41b4617edb124f79d173944b2 | 287 | IoT-connected-vehicles-showcase | Apache License 2.0 |
app/src/main/java/com/obaied/sohan/data/local/Db.kt | afjoseph | 87,417,625 | false | null | package com.joseph.sohan.data.local
import android.content.ContentValues
import android.database.Cursor
import com.joseph.sohan.data.model.Quote
/**
* Created by ab on 06.08.17.
*/
object Db {
object DbQuotesTable {
val TABLE_NAME = "db_quotes"
val COLUMN_AUTHOR = "author"
val COLUMN_T... | 1 | null | 1 | 3 | 0626f8478d588b5ec74649c04beae8d057256803 | 1,365 | Sohan | MIT License |
projects/android/koin-android/src/main/java/org/koin/androidx/viewmodel/ext/android/FragmentSharedVM.kt | InsertKoinIO | 93,515,203 | false | null | /*
* Copyright 2017-2023 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 ap... | 79 | null | 711 | 8,934 | f870a02fd32a2cf1ff8b69406ebf555c26ffe39f | 2,379 | koin | Apache License 2.0 |
jvm-debugger/test/testData/evaluation/singleBreakpoint/coroutines/stringUpdatePutField.kt | JetBrains | 278,369,660 | false | null | package anyUpdateInvokeStatic
import kotlin.sequences.*
import kotlin.coroutines.*
fun builder(c: suspend () -> Unit) {
c.startCoroutine(object : Continuation<Unit>{
override val context: CoroutineContext
get() = EmptyCoroutineContext
override fun resumeWith(result: Result<Unit>) {
... | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 690 | intellij-kotlin | Apache License 2.0 |
idea/tests/testData/multiModuleQuickFix/changeSignature/override6/jvm/Some.kt | JetBrains | 278,369,660 | false | null | // "Convert parameter to receiver" "true"
// IGNORE_K2
actual open class A {
actual open fun c(a: Int, b: String) {}
}
open class B : A() {
override fun c(a: Int, <caret>b: String) {}
}
open class D : B() {
override fun c(a: Int, b: String) {}
}
fun test(a: Int, b: String) {
with(A()) {
c(a, ... | 284 | null | 5162 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 330 | intellij-kotlin | Apache License 2.0 |
app/src/main/java/cn/nicolite/huthelper/db/DaoUpgradeHelper.kt | nicolite | 106,815,276 | false | null | package cn.nicolite.huthelper.db
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import cn.nicolite.huthelper.BuildConfig
import cn.nicolite.huthelper.db.dao.*
import com.github.yuweiguocn.library.greendao.MigrationHelper
import org.greenrobot.greendao.database.Database
/**
* Created by ... | 1 | null | 6 | 28 | bbcb222b96316208d479c75544b4bc910b09a778 | 1,566 | HutHelper | Apache License 2.0 |
libraries/stdlib/src/kotlin/StandardJVM.kt | udalov | 10,645,710 | false | null | package kotlin
import java.util.Collection
import java.util.ArrayList
import java.util.LinkedList
import java.util.HashSet
import java.util.LinkedHashSet
import java.util.TreeSet
import java.util.SortedSet
import java.util.Comparator
import java.io.PrintWriter
import java.io.PrintStream
import java.util.concurrent.Cal... | 1 | null | 1 | 6 | 3958b4a71d8f9a366d8b516c4c698aae80ecfe57 | 1,450 | kotlin-objc-diploma | Apache License 2.0 |
app/src/main/java/net/blakelee/coinprofits/di/ViewModelKey.kt | blakelee | 96,650,297 | false | null | package net.blakelee.coinprofits.di
import dagger.MapKey
import android.arch.lifecycle.ViewModel
import kotlin.reflect.KClass
@MustBeDocumented
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.RUNTIME)
@MapKey
internal annotation class ViewModelKey(val value: KClass<out ViewModel>) | 2 | Kotlin | 1 | 4 | 152bf37a11f0da2da7ff91d9493fb2334da5ba59 | 301 | CoinProfits | MIT License |
src/main/kotlin/com/imma/model/core/compute/ConstantParameterKits.kt | Indexical-Metrics-Measure-Advisory | 344,732,013 | false | null | package com.imma.model.core.compute
import com.imma.model.ConstantPredefines
import com.imma.model.core.compute.ValueKits.Companion.computeToNumeric
import com.imma.model.snowflake.SnowflakeHelper
typealias GetFirstValue = (propertyName: String) -> Any?
class ConstantParameterKits {
companion object {
pr... | 0 | Kotlin | 0 | 1 | c42a959826e72ac8cea7a8390ccc7825f047a591 | 5,848 | watchmen-ktor | MIT License |
mbcarkit/src/test/java/com/daimler/mbcarkit/network/model/ApiAssignmentTypeTest.kt | Daimler | 199,815,262 | false | null | package com.daimler.mbcarkit.network.model
import com.daimler.mbcarkit.business.model.assignment.AssignmentType
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.EnumSource
internal class ApiAssignmentTy... | 1 | null | 8 | 15 | 3721af583408721b9cd5cf89dd7b99256e9d7dda | 777 | MBSDK-Mobile-Android | MIT License |
testprojects/azurite/src/main/kotlin/io/cloudflight/testresources/springboot/azurite/Application.kt | cloudflightio | 585,586,074 | false | null | package io.cloudflight.testresources.springboot.azurite
import org.springframework.boot.autoconfigure.SpringBootApplication
@SpringBootApplication
class Application
| 1 | Java | 3 | 22 | d6a88a0a3699d852162bc7ea5f3091e673b1152d | 168 | springboot-testresources | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/findUsages/libraryUsages/_library/library/library.kt | ingokegel | 72,937,917 | true | null | package library;
open class A(n: Int) {
constructor() : this(1)
open class T(n: Int) {
constructor() : this(1)
fun bar(b: Int): Int = b
}
fun foo(a: Int): Int = a
companion object {
}
}
class B : A {
constructor(n: Int) : super(n)
class U : A.T {
construct... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,412 | intellij-community | Apache License 2.0 |
platform/external-system-api/src/com/intellij/openapi/externalSystem/autoimport/ExternalSystemProjectRefreshListener.kt | hieuprogrammer | 284,920,751 | false | null | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.externalSystem.autoimport
import org.jetbrains.annotations.ApiStatus
/**
* Project refresh listener of specific external system (gradle, maven, sbt... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 618 | intellij-community | Apache License 2.0 |
base/src/jvmMain/kotlin/org/anime_game_servers/lua/models/BooleanLuaValueJvm.kt | Anime-Game-Servers | 701,819,250 | false | null | package org.anime_game_servers.lua.models
class BooleanLuaValueJvm(private val value: Boolean) : BooleanLuaValue(value) {
override fun <T> asObject(type: Class<T>): T? {
return if (type == Boolean::class.java) type.cast(value) as T else null
}
companion object {
@JvmField
val TRUE... | 29 | null | 4 | 8 | 457378f83cb5c9593c12e65de5b58d4de3348164 | 420 | AnimeGamesLua | MIT License |
app/src/main/java/ir/ahfz/rentcar/ui/home/SearchFragment.kt | AHFZ | 204,262,454 | false | null | package ir.ahfz.rentcar.ui.home
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import ir.ahfz.rentcar.R
import kotlinx.android.synthetic.main.fragment_search.*
/**
* A simple [Fragment] subclass.
*/
class Sear... | 1 | null | 1 | 1 | a37db2f69b31eb4def8338f375015508d274a8b4 | 716 | RentCarAndroidClient | MIT License |
modules/mpesa/src/commonMain/kotlin/com/github/jeffnyauke/mpesa/request/B2cRequest.kt | jeffnyauke | 803,735,331 | false | {"Kotlin": 153700, "Shell": 2903} | /*
* Copyright (c) 2024 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 0 | 5f89cd5082f2425a2e5c78927b524429b9229f47 | 4,978 | mpesa-sdk-kotlin | Apache License 2.0 |
app/src/main/java/com/merge/awadh/activity/scan/fragment/AdvertisingDataViewModel.kt | Nishant-8009 | 839,665,133 | false | {"Kotlin": 94303} | package com.merge.awadh.activity.scan.fragment
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class AdvertisingDataViewModel : ViewModel() {
private val _tempData = MutableLiveData<List<Float>>()
val tempData: LiveData<List<Float>> get() = _tem... | 0 | Kotlin | 0 | 0 | dfdb4ece26f056769a2dcf1e7b23db6cbbe92f09 | 1,574 | BLE-Merge | MIT License |
codebase/android/core/data/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/core/data/account/di/AccountModule.kt | Abhimanyu14 | 429,663,688 | false | null | package com.makeappssimple.abhimanyu.financemanager.android.core.data.account.di
import com.makeappssimple.abhimanyu.financemanager.android.core.data.account.repository.AccountRepository
import com.makeappssimple.abhimanyu.financemanager.android.core.data.account.repository.AccountRepositoryImpl
import com.makeappssim... | 0 | Kotlin | 0 | 0 | dd699c97a81c292cd94422e78ed294e8b625dca9 | 6,857 | finance-manager | Apache License 2.0 |
app/src/main/java/com/littleye233/days/compose/day/DayScreen.kt | LittleYe233 | 709,684,462 | false | {"Kotlin": 36027} | package com.littleye233.days.compose.day
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compos... | 0 | Kotlin | 0 | 0 | 01fa76411693bdd68bac9ee56b7cce0702121e52 | 3,631 | Days | MIT License |
app/src/main/java/com/replica/replicaisland/ScrollerComponent.kt | jimandreas | 290,957,495 | false | null | /*
* Copyright (C) 2010 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... | 0 | Kotlin | 0 | 3 | 387aa71c94b87be4d8cab704241e49f6018a7821 | 3,884 | ReplicaIslandKotlin | Apache License 2.0 |
buildSrc/src/main/kotlin/net/skyscanner/backpack/tokens/BpkDimensions.kt | Skyscanner | 117,813,847 | false | null | /**
* Backpack for Android - Skyscanner's Design System
*
* Copyright 2018-2021 Skyscanner Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... | 8 | null | 31 | 94 | 9b5448b446c7bc46560e430595829e5f4f090e6b | 3,236 | backpack-android | Apache License 2.0 |
app/src/main/java/com/vandenbreemen/trainingcardsapp/viewmodel/CardStackViewModel.kt | msgpo | 276,439,836 | true | {"Kotlin": 18218} | package com.vandenbreemen.trainingcardsapp.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.vandenbreemen.trainingcardsapp.entity.Card
import com.vandenbreemen.trainingcardsapp.interactor.CardsInteractor
import com.vandenbreemen.trainingcardsapp.interactor.CardsOutputI... | 0 | null | 0 | 0 | 67792aff6e61fd75c63c5e56cc2b93e3a07771d8 | 1,538 | CardDeckTraining | MIT License |
Android/app/src/main/java/dev/gregwhatley/cse3310/team3animal/Classifier.kt | devgregw | 245,674,698 | false | null | package dev.gregwhatley.cse3310.team3animal
import android.content.Context
import android.content.Intent
import android.content.res.Resources
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Environment
import android.provider.MediaStore
import android.util.... | 0 | Kotlin | 0 | 1 | 5318a5194d32dbb3b53827b6ad6f045f3c27cfc8 | 5,975 | Team3aniMaL | MIT License |
_training_and_learning_material/Flashcards/Flashcards/task/src/flashcards/domain/ports/DeckDeSerializer.kt | marc-bouvier | 73,564,924 | false | null | package flashcards.domain.ports
// Only dependencies from domain
import flashcards.domain.core.Deck
interface DeckDeSerializer {
fun deserialize(rawDeck: ByteArray): Deck
} | 1 | null | 1 | 1 | 84993257edcfd39e88a3e28378d8dbed965576dc | 178 | sandbox | The Unlicense |
app/src/main/java/com/example/pokedek/presentasion/fragment/berry/BerryFragment.kt | Alstonargodi | 442,473,206 | false | null | package com.example.pokedek.presentasion.fragment.berry
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import androidx.recyclerview.widget.LinearLayoutManager
import com.exa... | 0 | Kotlin | 0 | 0 | a548138a792ff8d4954328553f3100f28fec6525 | 3,603 | Pokedex | Apache License 2.0 |
web/Unused/AppsModal.kt | Foso | 129,130,317 | false | null | package ui.apps
import components.reactstrap.*
import data.StringResource
import kotlinx.html.js.onClickFunction
import kotlinx.html.style
import react.*
import react.dom.div
interface AppsProps : RProps {
var startFrom: Boolean
}
interface AppsState : RState {
var modalIsOpen: Boolean
}
class Apps(props: A... | 1 | null | 4 | 36 | 069989f8c92924b7db3b7744fe54f73e2e138463 | 2,228 | Sheasy | Apache License 2.0 |
plugin-bsp/src/main/kotlin/org/jetbrains/plugins/bsp/magicmetamodel/impl/workspacemodel/impl/updaters/SourceEntityUpdater.kt | JetBrains | 826,262,028 | false | null | package org.jetbrains.plugins.bsp.magicmetamodel.impl.workspacemodel.impl.updaters
import com.intellij.platform.workspace.jps.entities.ContentRootEntity
import com.intellij.platform.workspace.jps.entities.ModuleEntity
import com.intellij.platform.workspace.jps.entities.SourceRootEntity
import com.intellij.platform.wor... | 2 | null | 8 | 45 | 1d79484cfdf8fc31d3a4b214655e857214071723 | 3,832 | hirschgarten | Apache License 2.0 |
app/src/main/java/com/dyor/scoop/JobScreen.kt | dyor | 612,497,379 | false | null | package com.dyor.scoop
import androidx.compose.runtime.Composable
@Composable
fun JobScreen(
state: JobState,
onNextClick: () -> Unit
) {
} | 14 | Kotlin | 0 | 0 | f1610b8ba063714817c9f72edaa50ac3c8de87d6 | 148 | scoop | MIT License |
android/src/main/java/co/touchlab/droidcon/android/service/DateTimeFormatterViewService.kt | xsahil03x | 223,548,868 | true | {"Kotlin": 265949, "Swift": 65866, "HTML": 7463, "Python": 3852, "Ruby": 2146} | package co.touchlab.droidcon.android.service
import kotlinx.datetime.LocalDate
import kotlinx.datetime.LocalDateTime
interface DateTimeFormatterViewService {
fun time(time: LocalDateTime): String
fun timeRange(start: LocalDateTime, end: LocalDateTime): String
fun shortDate(date: LocalDate): String
} | 1 | Kotlin | 0 | 0 | e7107a11121921a85ddb7ac5a51bc04319c853b0 | 317 | DroidconKotlin | Apache License 2.0 |
crouter-api/src/main/java/me/wcy/router/ResultListener.kt | wangchenyan | 207,708,657 | false | null | package me.wcy.router
import android.content.Intent
/**
* Activity 结果监听器
*/
@Deprecated("已过时", replaceWith = ReplaceWith("Kotlin 中使用更方便的 Lambda 表达式"))
interface ResultListener {
fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?)
}
| 0 | Kotlin | 0 | 3 | c73681876f2012d38ebf34a172c8fd55cdb9c711 | 259 | crouter | Apache License 2.0 |
analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/api/LowLevelFirApiFacadeForResolveOnAir.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 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.analysis.low.level.api.fir.api
import com.intellij.psi.PsiElement
import com.int... | 154 | null | 5566 | 45,025 | 8a69904d02dd3e40fae5f2a1be4093d44a227788 | 16,294 | kotlin | Apache License 2.0 |
infrastructure/src/main/kotlin/dev/notypie/impl/command/SlackInteractionRequestParser.kt | TrulyNotMalware | 810,739,918 | false | {"Kotlin": 74934} | package dev.notypie.impl.command
import com.fasterxml.jackson.databind.ObjectMapper
import com.slack.api.app_backend.interactive_components.payload.BlockActionPayload
class SlackInteractionRequestParser(
private val objectMapper: ObjectMapper,
) : InteractionPayloadParser {
override fun parseStringConten... | 0 | Kotlin | 0 | 0 | 589f5f6ce66c07fc08c4a5dec27c42bf8339984e | 383 | CodeCompanion | MIT License |
app/src/main/java/com/smtm/mvvm/presentation/common/databinding/RecyclerViewBinding.kt | asus4862 | 293,993,826 | false | null | package com.smtm.mvvm.presentation.common.databinding
import androidx.databinding.BindingAdapter
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
/**
*/
@Suppress("UNCHECKED_CAST")
@BindingAdapter("itemsWithListAdapte... | 0 | Kotlin | 0 | 0 | c535bd319d7a77fb9d5df8524313026d1b3ce2da | 886 | MVVMArchitecture | Apache License 2.0 |
src/test/kotlin/com/epam/brn/service/load/AudiometryLoaderTest.kt | Brain-up | 216,092,521 | false | {"Kotlin": 1057933, "Handlebars": 512629, "TypeScript": 401203, "JavaScript": 168755, "HTML": 45401, "CSS": 30742, "SCSS": 27412, "RAML": 22982, "Makefile": 545, "Shell": 405, "Dockerfile": 185} | package com.epam.brn.service.load
import com.epam.brn.enums.AudiometryType
import com.epam.brn.model.Audiometry
import com.epam.brn.model.AudiometryTask
import com.epam.brn.repo.AudiometryRepository
import com.epam.brn.repo.AudiometryTaskRepository
import io.mockk.every
import io.mockk.impl.annotations.InjectMockKs
im... | 114 | Kotlin | 26 | 61 | 310cfcae2b9780740554396271444388258ce8da | 6,541 | brn | Creative Commons Zero v1.0 Universal |
app/src/main/java/top/abr/myaccount/JSONProcessor.kt | AndyBRoswell | 428,968,773 | false | {"Kotlin": 60548} | package top.abr.myaccount
import com.dslplatform.json.DslJson
import com.dslplatform.json.runtime.Settings
import java.io.ByteArrayInputStream
import java.io.ByteArrayOutputStream
open class JSONProcessor {
companion object {
private val Core: DslJson<Any> = DslJson(Settings.withRuntime<Any>().includeServ... | 0 | Kotlin | 0 | 0 | 3e809f00a0ae58cf7ac847d87c474761ea36d3f0 | 748 | MyAccount | MIT License |
domain/src/main/java/com/mobile/pablo/domain/data/note/Note.kt | mobile-pablo | 618,046,628 | false | null | package com.mobile.pablo.domain.data.note
import android.os.Parcelable
import com.mobile.pablo.core.utils.StringConst.EMPTY_STRING
import java.util.Date
import kotlinx.parcelize.Parcelize
@Parcelize
data class Note(
val id: Int = 0,
val title: String = EMPTY_STRING,
val date: Date = Date(),
val descri... | 0 | Kotlin | 0 | 1 | 490169886eee41d388824fb340d1fb4dcb27b956 | 368 | Noteworthy | MIT License |
src/main/kotlin/com/coco/application/middleware/auth/Logged.kt | coco40725 | 845,567,576 | false | {"Kotlin": 44539, "Shell": 706} | package com.coco.application.middleware.auth
import jakarta.ws.rs.NameBinding
import jakarta.ws.rs.ext.Provider
/**
@author Yu-Jing
@create 2024-08-21-上午 10:00
*/
@NameBinding
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
@Retention(value = AnnotationRetention.RUNTIME)
annotation class Logged {
} | 0 | Kotlin | 0 | 0 | f541297a87174b1ae636fc05279a5108f00a262c | 315 | coco-user-bg | Freetype Project License |
android/src/main/kotlin/com/onegini/mobile/sdk/flutter/models/OneginiEvent.kt | onewelcome | 418,922,893 | false | null | package com.onegini.mobile.sdk.flutter.models
data class OneginiEvent(val eventName: String, val eventValue: String)
| 3 | Kotlin | 1 | 0 | ddbb5eadd8af3d3d295c3e426d089669efab0213 | 118 | sdk-flutter | Apache License 2.0 |
lib/src/main/kotlin/io/github/ferhatwi/supabase/database/query/Event.kt | ferhatwi | 444,097,776 | false | null | package io.github.ferhatwi.supabase.database.query
enum class Event {
INSERT, UPDATE, DELETE
}
| 0 | Kotlin | 0 | 2 | 74d1c05750da58409c2a61d310d7d3811ad3c5b4 | 100 | supabase-database-kt | Apache License 2.0 |
app/src/main/java/com/yuhang/novel/pirate/ui/main/activity/MainActivity.kt | yuhanghate | 200,383,190 | false | {"Java": 1605624, "Kotlin": 875945, "HTML": 3256} | package com.yuhang.novel.pirate.ui.main.activity
import android.Manifest
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import androidx.appcompat.app.AlertDialog
import androidx.lifecycle.li... | 1 | Java | 1 | 2 | 8c72fc787a2927efb10c8c03b714195c7b1a6c76 | 16,090 | Pirate | Apache License 2.0 |
src/test/kotlin/com/ms/parkingcontrol/ParkingControlApplicationTests.kt | GabrielDragone | 607,891,754 | false | null | package com.ms.parkingcontrol
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class ParkingControlApplicationTests {
@Test
fun contextLoads() {
}
}
| 0 | Kotlin | 0 | 0 | 4e169051cadb3c146ad6af9d8d57d31e049f5c12 | 217 | ms-parking-control | MIT License |
app/src/main/java/com/zobaer53/zedmovies/ui/home/HomeUiState.kt | zobaer53 | 661,586,013 | false | {"Kotlin": 498107, "JavaScript": 344099, "C++": 10825, "CMake": 2160} |
package com.zobaer53.zedmovies.ui.home
import com.zobaer53.zedmovies.data.model.MediaType
import com.zobaer53.zedmovies.data.model.Movie
import com.zobaer53.zedmovies.data.model.TvShow
data class HomeUiState(
val movies: Map<MediaType.Movie, List<Movie>> = emptyMap(),
val tvShows: Map<MediaType.TvShow, List... | 0 | Kotlin | 3 | 6 | 1e70d46924b711942b573364745fa74ef1f8493f | 568 | NoFlix | Apache License 2.0 |
src/main/kotlin/com/github/icarohs7/unoxgraph/operacoes/custominimo/FloydWarshall.kt | icarohs7 | 128,926,014 | false | {"Kotlin": 58696} | package com.github.icarohs7.unoxgraph.operacoes.custominimo
import com.github.icarohs7.unoxgraph.estatico.CicloNegativoException
import com.github.icarohs7.unoxgraph.estatico.INFINITO
import com.github.icarohs7.unoxgraph.estatico.TipoDeGrafoIncorretoException
import com.github.icarohs7.unoxgraph.grafos.Grafo
import co... | 0 | Kotlin | 0 | 0 | 6bbdff41aa010b8eb6fba6d4cf6fd174ece8c28a | 2,286 | UNoxGraph | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.