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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
pscalc/android/app/src/main/kotlin/com/example/pscalc/MainActivity.kt | goncharoff-dv | 308,153,306 | false | {"Dart": 14812, "HTML": 1501, "Swift": 404, "Kotlin": 123, "Objective-C": 38} | package com.example.pscalc
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 857f5d235ce2afa0515052d00878df4166eb5049 | 123 | pscalc | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/greengrassv2/ComponentPlatformPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.greengrassv2
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.greengrassv2.CfnComponentVersion
@Generated
public fun buildComponentPlatformProperty(initializer: @AwsCdkDsl
CfnComponen... | 1 | Kotlin | 0 | 0 | a1cf8fbfdfef9550b3936de2f864543edb76348b | 515 | aws-cdk-kt | Apache License 2.0 |
app/src/main/java/com/hamzasharuf/runningtracker/utils/common/CommonFunctions.kt | hamzasharuf | 295,946,507 | false | null | package com.hamzasharuf.runningtracker.utils.common
import android.location.Location
import com.hamzasharuf.runningtracker.utils.Polyline
import java.util.concurrent.TimeUnit
fun getFormattedStopWatchTimee(ms: Long, includeMillis: Boolean = false): String {
var milliseconds = ms
val hours = TimeUnit.MILLISECO... | 0 | Kotlin | 0 | 1 | 3e7be9df2833084a50cf934694678433c51692aa | 1,547 | RunningTracker | Apache License 2.0 |
jvm/undertest-junit5/src/test/kotlin/undertest/junit5/UT_InteractiveTest.kt | diffplug | 616,728,028 | false | {"Kotlin": 358443, "Python": 166829, "MDX": 73964, "TypeScript": 49709, "Java": 24121, "JavaScript": 8833, "Scheme": 5429, "CSS": 2333, "FreeMarker": 1430} | package undertest.junit5
// spotless:off
import com.diffplug.selfie.Selfie.expectSelfie
import kotlin.test.Test
// spotless:on
class UT_InteractiveTest {
@Test fun example() {
expectSelfie(10).toBe(10)
}
}
| 36 | Kotlin | 8 | 52 | 55c9398efa313fcc49a28101b2fef68f74c1e973 | 215 | selfie | Apache License 2.0 |
src/main/kotlin/pl/jwizard/api/network/contributor/dto/ContributorDataResDto.kt | jwizard-bot | 744,983,606 | false | {"Kotlin": 37713} | /*
* Copyright (c) 2024 by JWizard
* Originally developed by <NAME> <https://miloszgilga.pl>
*/
package pl.jwizard.api.network.contributor.dto
import pl.jwizard.api.network.contributor.ContributeVariant
import java.io.Serializable
data class ContributorDataResDto(
val nickname: String,
val profileLink: String,
... | 0 | Kotlin | 0 | 0 | 3fec7aeafe09b5d40ce7f7b994979c9e9b0ded57 | 676 | jwizard-api | Apache License 2.0 |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/areas/spawns/spawns_12115.plugin.kts | 2011Scape | 578,880,245 | false | null | package gg.rsmod.plugins.content.areas.spawns
spawn_npc(npc = Npcs.GORAK, x = 3024, z = 5346, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) // Gorak
spawn_npc(npc = Npcs.GORAK, x = 3036, z = 5346, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) // Gorak
spawn_npc(npc... | 39 | null | 143 | 34 | e5400cc71bfa087164153d468979c5a3abc24841 | 1,477 | game | Apache License 2.0 |
app/src/main/java/com/satsumasoftware/pokedex/framework/GrowthRate.kt | farbodsz | 62,407,182 | false | {"Java": 594253, "Kotlin": 83684} | /*
* Copyright 2016-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 ... | 49 | null | 1 | 1 | 74910924e6037a41609edeaa334c2135462039f7 | 1,770 | PokedexApp | Apache License 2.0 |
plugins/kotlin/refactorings/kotlin.refactorings.common/src/org/jetbrains/kotlin/idea/refactoring/introduce/extractionEngine/duplicateUtil.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.refactoring.introduce.extractionEngine
import com.intellij.codeInsight.folding.CodeFoldingManager
import com.intellij.codeIns... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 7,237 | intellij-community | Apache License 2.0 |
buildSrc/src/main/kotlin/com/engineer/plugin/actions/adapter/BuildSimpleListener.kt | jileiadmin | 247,250,795 | false | {"Java": 1866570, "Kotlin": 379882, "HTML": 70618, "JavaScript": 32332, "CSS": 14617, "Groovy": 557, "Shell": 334, "Ruby": 300, "Batchfile": 55} | package com.engineer.plugin.actions.adapter
import org.gradle.BuildListener
import org.gradle.BuildResult
import org.gradle.api.initialization.Settings
import org.gradle.api.invocation.Gradle
/**
* @author rookie
* @since 11-29-2019
*/
abstract class BuildSimpleListener : BuildListener {
override fun settings... | 4 | Java | 326 | 2 | c3599ecb85973e2539f5263ff7c9a4d23333bd27 | 585 | AndroidAnimationExercise | Apache License 2.0 |
demo-conductor/src/main/kotlin/com/brandongogetap/scoper/conductordemo/base/ApplicationComponent.kt | bgogetap | 62,695,979 | false | null | package com.brandongogetap.scoper.conductordemo.base
import com.brandongogetap.scoper.conductordemo.MainComponent
import com.brandongogetap.scoper.conductordemo.MainModule
import dagger.Component
import javax.inject.Singleton
@Singleton
@Component(modules = arrayOf(ApplicationModule::class))
interface ApplicationComp... | 1 | null | 2 | 20 | 113b9decf84d9a8fcb5b89f19260ec5f7b214c13 | 382 | Scoper | Apache License 2.0 |
wkuikit/src/main/java/com/chat/uikit/enity/ProhibitWord.kt | TangSengDaoDao | 662,829,316 | false | {"Java": 2820777, "Kotlin": 567344, "JavaScript": 7043} | package com.chat.uikit.enity
class ProhibitWord {
lateinit var content: String
var is_deleted: Int = 0
var version: Long = 0
var id: Int = 0
lateinit var created_at: String
} | 2 | Java | 57 | 78 | c027cd31505820cc89738925b5a981abbfd43a5d | 195 | TangSengDaoDaoAndroid | Apache License 2.0 |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/dccticketing/core/server/ResultTokenRequest.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.dccticketing.core.server
import com.fasterxml.jackson.annotation.JsonProperty
data class ResultTokenRequest(
@JsonProperty("kid")
val kid: String,
@JsonProperty("dcc")
val dcc: String,
@JsonProperty("sig")
val sig: String,
@JsonProperty("encKey")
val encKey... | 6 | null | 504 | 2,483 | 622e880dcf120a60d5d8eea06c3f17efe620f4ca | 441 | cwa-app-android | Apache License 2.0 |
viewmodel/src/main/java/com/linecorp/lich/viewmodel/internal/DefaultLichViewModelProvider.kt | line | 200,039,378 | false | null | /*
* Copyright 2019 LINE Corporation
*
* 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... | 3 | Kotlin | 20 | 165 | 2fc3ac01ed57e31208816239f6747d6cdb67de6d | 3,057 | lich | Apache License 2.0 |
sampleapp-kotlin/src/main/java/com/grab/partner/sdk/sampleapp/api/GrabAPI.kt | grab | 157,938,313 | false | {"Kotlin": 259227, "Java": 9442} | /*
* Copyright (c) Grab Taxi Holdings PTE LTD (GRAB)
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
package com.grab.partner.sdk.sampleapp.api
import com.grab.partner.sdk.sampleapp.models.UserInfoAPIResponse
import retrofit2.htt... | 1 | Kotlin | 7 | 22 | cf4d95a8f2a1b553799c950b411d673d139a757e | 585 | grabplatform-sdk-android | MIT License |
app/src/main/java/com/ctech/eaty/ui/collection/di/CollectionFragmentBuilderModule.kt | dbof10 | 116,687,959 | false | null | package com.ctech.eaty.ui.collection.di
import com.ctech.eaty.ui.collection.view.CollectionFragment
import dagger.Module
import dagger.android.ContributesAndroidInjector
@Module
abstract class CollectionFragmentBuilderModule {
@ContributesAndroidInjector
abstract fun contributeFragment(): CollectionFragment
... | 2 | Kotlin | 11 | 49 | 2e3445debaedfea03f9b44ab62744046fe07f1cc | 321 | hunt-android | Apache License 2.0 |
constraintlayout/compose/src/main/java/androidx/constraintlayout/compose/ConstraintSetParser.kt | DevHilmi | 379,336,922 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1 | null | 1 | 1 | cab205310ae936982473c5ecaf84036567838a9d | 34,373 | constraintlayout | Apache License 2.0 |
app/src/demo/java/org/watsi/uhp/viewmodels/CheckedInPatientsViewModel.kt | Meso-Health | 227,514,539 | false | null | package org.watsi.uhp.viewmodels
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.LiveDataReactiveStreams
import android.arch.lifecycle.ViewModel
import org.watsi.domain.relations.MemberWithIdEventAndThumbnailPhoto
import org.watsi.domain.usecases.LoadCheckedInMembersUseCase
import javax.inject.Inj... | 2 | null | 3 | 6 | 6e1da182073088f28230fe60a2e09d6f38aab957 | 769 | meso-clinic | Apache License 2.0 |
core/src/main/java/com/guet/flexbox/build/Transform.kt | forksource | 219,638,159 | true | {"Java": 649333, "Kotlin": 55996} | package com.guet.flexbox.build
import com.facebook.litho.Component
import com.guet.flexbox.WidgetInfo
internal interface Transform {
fun transform(c: BuildContext,
widgetInfo: WidgetInfo,
children: List<Component.Builder<*>>)
: List<Component.Builder<*>>
} | 0 | null | 1 | 0 | d48039e57508f2d6da1bcffb2079eaae7d2fabdf | 310 | Gbox | Apache License 2.0 |
src/main/kotlin/org/nield/dirtyfx/beans/DirtyMapProperty.kt | thomasnield | 136,370,289 | false | null | package org.nield.dirtyfx.beans
import javafx.beans.InvalidationListener
import javafx.beans.property.*
import javafx.beans.value.ChangeListener
import javafx.beans.value.ObservableValue
import javafx.beans.value.WeakChangeListener
import javafx.collections.FXCollections
import javafx.collections.MapChangeListener
imp... | 2 | null | 1 | 30 | f496026aae09a529354aebe1f41bd43e088c0eb1 | 2,744 | DirtyFX | Apache License 2.0 |
samples/src/main/java/com/dailystudio/devbricksx/samples/nonrecyclablelistview/PixabayImage.kt | dailystudio | 264,874,323 | false | {"Gradle": 23, "Shell": 8, "INI": 23, "Java Properties": 3, "Text": 4, "Ignore List": 20, "Batchfile": 2, "Markdown": 10, "Proguard": 16, "Kotlin": 352, "XML": 225, "Java": 130, "YAML": 1, "JSON": 4, "HTML": 1, "Gradle Kotlin DSL": 2} | package com.dailystudio.devbricksx.samples.nonrecyclablelistview
import android.annotation.SuppressLint
import android.graphics.drawable.Drawable
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import coil.load
import com.dailystudio.devbricksx.annotations.data.InMemoryCompanion... | 1 | Java | 6 | 63 | 9cec4d9abe36d7a1caf2a3bb799e8d6827768951 | 2,584 | devbricksx-android | Apache License 2.0 |
domain/src/main/java/org/oppia/android/domain/locale/LocaleApplicationInjectorProvider.kt | oppia | 148,093,817 | false | null | package org.oppia.android.domain.locale
/** Provider for [LocaleApplicationInjector]. */
interface LocaleApplicationInjectorProvider {
/** Returns an [LocaleApplicationInjector]. */
fun getLocaleApplicationInjector(): LocaleApplicationInjector
}
| 508 | null | 517 | 315 | 95699f922321f49a3503783187a14ad1cef0d5d3 | 251 | oppia-android | Apache License 2.0 |
app/src/main/java/com/zyqzyq/eyepetizer/mvp/model/HomeModel.kt | zyqzyq | 102,337,521 | false | null | package com.zyqzyq.eyepetizer.mvp.model
import android.util.Log
import com.zyqzyq.eyepetizer.TAG
import com.zyqzyq.eyepetizer.io_main
import com.zyqzyq.eyepetizer.mvp.model.bean.HomeBean
import com.zyqzyq.eyepetizer.network.Network
import io.reactivex.Observable
class HomeModel{
fun loadFirstData(): Observable<Ho... | 0 | Kotlin | 2 | 18 | 8771e0000301aa258512858652a484a33fc6c71c | 550 | Eyepetizer-kotlin | MIT License |
src/client/kotlin/net/walksanator/uxncraft/cinit/Shaders.kt | walksanatora | 764,981,104 | false | {"Gradle": 2, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "INI": 1, "Java": 12, "JSON": 3, "GLSL": 2, "Kotlin": 16, "YAML": 1} | package net.walksanator.uxncraft.cinit
import net.fabricmc.fabric.api.resource.IdentifiableResourceReloadListener
import net.fabricmc.fabric.api.resource.ResourceManagerHelper
import net.minecraft.resource.ResourceManager
import net.minecraft.resource.ResourceReloader
import net.minecraft.resource.ResourceType
import ... | 0 | Java | 0 | 0 | 79810b8434d36684e2f928fdbb9c6c0bf015ac00 | 3,516 | uxncraft | Creative Commons Zero v1.0 Universal |
cmpe/common/src/commonMain/kotlin/xyz/mcxross/cohesive/mellow/icon/Icon.kt | mcxross | 514,846,313 | false | null | package com.mcxross.cohesive.mellow.icon
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.graphics.StrokeJoin
import androidx.compose.ui.graphics.vector.Defa... | 0 | Kotlin | 0 | 3 | be630e050c060bc5155e7ef7a65e3bc909ec58d6 | 2,133 | cohesive | Apache License 2.0 |
android/src/main/java/dev/sergiobelda/todometer/ui/components/TodometerTopAppBar.kt | serbelga | 301,817,067 | false | null | /*
* Copyright 2021 Sergio Belda
*
* 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... | 16 | null | 8 | 93 | bd39269ff685f0ac1c487becfa106fb7ece2cf1a | 2,319 | ToDometer_Kotlin_Multiplatform | Apache License 2.0 |
iconKit/src/main/java/com/lollipop/iconkit/dialog/CrashDialog.kt | Mr-XiaoLiang | 306,328,631 | false | null | package com.lollipop.iconkit.dialog
import android.view.View
import com.lollipop.iconcore.util.CrashHandler
import com.lollipop.iconkit.LIconKit
import com.lollipop.iconkit.R
import com.lollipop.iconkit.dialog.base.InnerDialogProvider
import java.io.File
/**
* @author lollipop
* @date 11/7/20 15:24
* 崩溃信息的Dialog
... | 0 | Kotlin | 4 | 9 | 7e22e2d0eaf40172dbd65a0c06e08eeb3bc0017c | 1,229 | SmartIconPack | Apache License 2.0 |
Mobile/app/src/main/java/com/tzeentch/energy_saver/remote/ErrorResponse.kt | Tzeentch-Hack | 717,070,925 | false | {"Kotlin": 76928, "Python": 23523, "C#": 13122, "Dockerfile": 229} | package com.tzeentch.energy_saver.remote
data class ErrorResponse(
val statusMessage: String
) : Exception()
| 0 | Kotlin | 0 | 0 | b4958784b63959a0c041fcfc686132ec2c376b89 | 114 | EnergyMonitor | MIT License |
app/src/main/java/com/dinhlam/sharebox/base/BaseFragment.kt | dinhlamvn | 532,200,939 | false | null | package com.dinhlam.sharebox.base
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.viewbinding.ViewBinding
abstract class BaseFragment<VB : ViewBinding> : Fragment() {
abstract fun onCreateView... | 0 | Kotlin | 0 | 0 | bb1be6948b57d5f8da28fe5fa26956022a923938 | 819 | sharebox | MIT License |
simplified-tests/src/test/java/org/nypl/simplified/tests/bookmark_annotations/PDFBookmarkAnnotationsJSONTest.kt | ThePalaceProject | 367,082,997 | false | {"Kotlin": 3223670, "JavaScript": 853788, "Java": 399880, "CSS": 65407, "HTML": 49220, "Shell": 5017, "Ruby": 178} | package org.nypl.simplified.tests.bookmark_annotations
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.node.ObjectNode
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertThrows
import org.junit.jupiter.api.Assertions.assertTrue
im... | 0 | Kotlin | 4 | 8 | f6912f3eb55d499e389efb1560b3781d699151b2 | 11,874 | android-core | Apache License 2.0 |
core/network/src/commonMain/kotlin/com/cdcoding/network/client/BroadcastClient.kt | Christophe-DC | 822,562,468 | false | {"Kotlin": 728291, "Ruby": 4739, "Swift": 617} | package com.cdcoding.network.client
import com.cdcoding.model.Account
import com.cdcoding.model.TransactionType
interface BroadcastClient : BlockchainClient {
suspend fun send(account: Account, signedMessage: ByteArray, type: TransactionType): Result<String>
} | 0 | Kotlin | 0 | 0 | bc7c3eb161ee18db83402ded314e2e0b72196974 | 267 | secureWallet | Apache License 2.0 |
archimedes-data-jdbc/src/main/kotlin/io/archimedesfw/data/sql/dsl/select/StaticSelectBuilder.kt | archimedes-projects | 362,401,748 | false | null | package io.archimedesfw.data.sql.dsl.select
import io.archimedesfw.data.sql.dsl.SqlContext
import io.archimedesfw.data.sql.dsl.predicate.Predicate
class StaticSelectBuilder(
private val staticSelectQuery: StaticSelectQuery,
) : WhereStep {
constructor(
context: SqlContext,
staticSelect: Strin... | 0 | Kotlin | 3 | 22 | 7de4338e683ce4c986adee5d17b17b014b200d51 | 1,259 | archimedes-jvm | Apache License 2.0 |
web/src/jvmMain/kotlin/de/p7s1/qa/sevenfacette/conditions/Condition.kt | munichbughunter | 237,981,305 | false | {"Kotlin": 272591, "HTML": 8356, "Shell": 1041} | package de.p7s1.qa.sevenfacette.conditions
import de.p7s1.qa.sevenfacette.utils.ConditionMismatchException
import org.apache.commons.lang3.StringUtils
class ConditionAssert {
companion object {
fun <T> evaluate(item: T, matcher: Condition<T>) {
if (!matcher.matches(item)) {
th... | 5 | Kotlin | 1 | 29 | 22038f9fd038e9ac9530fd6b89e970cc7f9ec0f7 | 719 | SevenFacette | MIT License |
feature/monster-compendium/android/src/main/kotlin/br/alexandregpereira/hunter/monster/compendium/ui/MonsterCompendiumErrorState.kt | alexandregpereira | 347,857,709 | false | {"Kotlin": 1322251, "Swift": 74314, "Shell": 139} | /*
* Copyright 2022 Alexandre Gomes Pereira
*
* 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 a... | 7 | Kotlin | 4 | 80 | 7241ff59c862ab0a56a987d992079b4120d2c18e | 996 | Monster-Compendium | Apache License 2.0 |
android/app/src/main/java/com/nmrc/equipotentialx/util/Permissions.kt | georgegiosue | 380,558,269 | false | {"Kotlin": 48055} | package com.nmrc.equipotentialx.util
import android.Manifest
import android.app.Activity
import android.content.pm.PackageManager
sealed class Permissions(
val name: String,
val code: Int
) {
private val denied = PackageManager.PERMISSION_DENIED
object Camera: Permissions(
name = Manifes... | 0 | Kotlin | 0 | 5 | 59071c2d0f353fb2317c9a0818aacedba03621b4 | 868 | EquipotentialX | MIT License |
data/src/main/kotlin/com/popalay/cardme/data/PermissionChecker.kt | Popalay | 83,484,077 | false | null | package com.popalay.cardme.data
import android.content.Context
import com.kcode.permissionslib.main.OnRequestPermissionsCallBack
import com.kcode.permissionslib.main.PermissionCompat
import io.reactivex.BackpressureStrategy
import io.reactivex.Flowable
import io.reactivex.Single
object PermissionChecker {
fun ch... | 1 | Kotlin | 3 | 20 | 271b0697095ebe5b532726ffb66826243a0b6f3b | 1,801 | Cardme | Apache License 2.0 |
app/src/main/java/com/hsf1002/sky/wanandroid/view/CollectArticleView.kt | hafitzrizki | 129,183,302 | false | null | package com.hsf1002.sky.wanandroid.view
import com.hsf1002.sky.wanandroid.bean.HomeListResponse
/**
* Created by hefeng on 18-3-24.
*/
interface CollectArticleView {
fun collectArticleSuccess(result:HomeListResponse, isAdd:Boolean)
fun collectArticleFailed(errorMsg:String?, isAdd:Boolean)
} | 0 | Kotlin | 0 | 0 | 9cf96fc9d6bcfade72d1f94046bde7373b7d038d | 303 | WanAndroid | Apache License 2.0 |
app/src/main/java/com/example/hwangtube/ui/MainViewModel.kt | tutorhwang | 737,711,501 | false | {"Kotlin": 35575} | package com.example.hwangtube.ui
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.hwangtube.data.model.youtube.ListItem
class MainViewModel : ViewModel() {
private val _favoriteList : MutableLiveData<List<ListItem.VideoItem>> = Mut... | 0 | Kotlin | 0 | 0 | b6f67cbb9817f769231dae52921f525c2e0be27b | 848 | HwangTube | MIT License |
feature/dashboard/src/main/java/org/expenny/feature/dashboard/view/DashboardFloatingActionButton.kt | expenny-application | 712,607,222 | false | {"Kotlin": 958809} | package org.expenny.feature.dashboard.view
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import org.expenny.core.resources.R
import org.expenny.core.ui.foundation.ExpennyButton
import org.expenny.core.ui.foundation.model.button.ExpennyFloa... | 0 | Kotlin | 0 | 0 | 38bcfc1cbb9184d1f52ad5c0c7398aaa4d38bc4b | 924 | expenny-android | Apache License 2.0 |
feature/dashboard/src/main/java/org/expenny/feature/dashboard/view/DashboardFloatingActionButton.kt | expenny-application | 712,607,222 | false | {"Kotlin": 958809} | package org.expenny.feature.dashboard.view
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import org.expenny.core.resources.R
import org.expenny.core.ui.foundation.ExpennyButton
import org.expenny.core.ui.foundation.model.button.ExpennyFloa... | 0 | Kotlin | 0 | 0 | 38bcfc1cbb9184d1f52ad5c0c7398aaa4d38bc4b | 924 | expenny-android | Apache License 2.0 |
app/src/main/java/com/utkarshambassadorfsm/features/location/api/LocationRepo.kt | DebashisINT | 702,488,999 | false | {"Kotlin": 13578428, "Java": 995803} | package com.utkarshambassadorfsm.features.location.api
import com.utkarshambassadorfsm.app.Pref
import com.utkarshambassadorfsm.base.BaseResponse
import com.utkarshambassadorfsm.features.location.model.AppInfoInputModel
import com.utkarshambassadorfsm.features.location.model.AppInfoResponseModel
import com.utkarshamba... | 0 | Kotlin | 0 | 0 | 620e44c4b91351436f99da862ebae19eae8c1eaa | 1,056 | UtkarshClasses | Apache License 2.0 |
libs/designsystem/src/main/kotlin/com/dmdiaz/currency/libs/designsystem/icon/CurrencyIcons.kt | dmdiaz4 | 338,934,852 | false | {"Kotlin": 237997} | /*
* MIT License
*
* Copyright (c) 2024 David Diaz
*
* 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, modif... | 0 | Kotlin | 0 | 1 | 82b22a098ee37edf6c73392320798df6a8cae37d | 3,019 | Currency | MIT License |
src/main/kotlin/com/psmay/exp/advent/y2021/Day09.kt | psmay | 434,705,473 | false | {"Kotlin": 242220} | package com.psmay.exp.advent.y2021
import com.psmay.exp.advent.y2021.util.Grid
import com.psmay.exp.advent.y2021.util.laterallyAdjacentCells
object Day09 {
// This top part was for part 1. It's written to process a stream of lines and produce a stream of results; it is
// meant to be suitable for maps with a... | 0 | Kotlin | 0 | 0 | c7ca54612ec117d42ba6cf733c4c8fe60689d3a8 | 3,136 | advent-2021-kotlin | Creative Commons Zero v1.0 Universal |
Samples/Legacy/src/androidTest/java/dev/testify/sample/OrientationTest.kt | ndtp | 469,416,892 | false | {"Kotlin": 818091, "Shell": 1136} | /*
* The MIT License (MIT)
*
* Copyright (c) 2023 ndtp
*
* 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, m... | 39 | Kotlin | 5 | 99 | 6698806da6b56e5d9184b59f9e380c5798e615e0 | 4,178 | android-testify | MIT License |
app/src/main/java/com/example/myapplication/database/RicettaCategorie.kt | AlessandraPastore | 366,678,690 | false | null | package com.example.myapplication.database
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.ForeignKey.CASCADE
@Entity (
primaryKeys=["titolo","categoria"],
foreignKeys = [
ForeignKey(entity = Categoria::class,
parentColumns = ["categoria"],
childColumns... | 0 | Kotlin | 2 | 3 | 611b464414244f481713bc2cee0145d066b72a26 | 590 | ComposeApplication | MIT License |
src/main/kotlin/br/com/zup/edu/pix/enums/PixKeyType.kt | jonasgsouza | 363,929,369 | true | {"Kotlin": 18032} | package br.com.zup.edu.pix.enums
import br.com.zup.edu.KeyTypeGrpc
enum class PixKeyType {
CPF,
PHONE,
EMAIL,
RANDOM;
fun toKeyTypeGrpc(): KeyTypeGrpc {
return when (this) {
CPF -> KeyTypeGrpc.CPF
PHONE -> KeyTypeGrpc.CNPJ
EMAIL -> KeyTypeGrpc.EMAIL
... | 0 | Kotlin | 0 | 0 | bd3b76f6a3dc3128b236bb893c37d22d7949dbe2 | 375 | orange-talents-02-template-pix-keymanager-rest | Apache License 2.0 |
app/src/main/java/tool/xfy9326/schedule/ui/fragment/settings/ScheduleBackgroundSettingsFragment.kt | XFY9326 | 325,915,275 | false | null | package tool.xfy9326.schedule.ui.fragment.settings
import android.os.Bundle
import androidx.activity.result.contract.ActivityResultContracts
import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecycleScope
import androidx.preference.PreferenceDataStore
import io.github.xfy9326.atools.io.utils.ImageMimeTy... | 0 | Kotlin | 0 | 5 | 41efb005bba80225ca6e59691cbb9994255e8254 | 2,152 | Schedule | Apache License 2.0 |
Kotlin/src/ImplementStrStr.kt | santosh241 | 293,432,227 | true | {"Swift": 249475, "Java": 208951, "Kotlin": 177796, "Python": 173596, "JavaScript": 168920, "Go": 152206, "Rust": 32760} | /**
* Implement strStr().
* Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
*
* Accepted.
*/
class ImplementStrStr {
fun strStr(haystack: String, needle: String): Int {
if (needle.length > haystack.length) {
return -1
}
... | 1 | null | 1 | 2 | 39f85cdedaaf5b85f7ce842ecef975301fc974cf | 557 | Windary | MIT License |
src/main/kotlin/net/dinkla/raytracer/examples/World42.kt | jdinkla | 38,753,756 | false | null | package net.dinkla.raytracer.examples
import net.dinkla.raytracer.cameras.render.Renderers
import net.dinkla.raytracer.colors.Color
import net.dinkla.raytracer.world.Builder
import net.dinkla.raytracer.world.WorldDefinition
import kotlin.random.Random
object World42 : WorldDefinition {
const val hasShadows = tru... | 0 | Kotlin | 0 | 3 | a765bcf12251e6f1d9b85c3b7e9bbc730902a2e7 | 3,636 | from-the-ground-up-ray-tracer | Apache License 2.0 |
src/main/kotlin/top/focess/netdesign/proto/SendMessageRequestKt.kt | MidCoard | 707,182,986 | false | {"Kotlin": 255949} | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: src/main/resources/protos/packet.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package top.focess.netdesign.proto;
@kotlin.jvm.JvmName("-initializesendMessageRequest")
public inline fun sendMessageRequest... | 0 | Kotlin | 0 | 1 | 3db81501f69d305ff6681f0044c2ef79d60f70a9 | 2,966 | NetDesign2 | Apache License 2.0 |
app/src/main/java/com/persival/realestatemanagerkotlin/domain/conversion/IsEuroConversionEnabledUseCase.kt | persival001 | 664,734,716 | false | {"Kotlin": 300155, "HTML": 54594} | package com.persival.realestatemanagerkotlin.domain.conversion
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class IsEuroConversionEnabledUseCase @Inject constructor(
private val sharedPreferencesRepository: SharedPreferencesRepository
) {
fun invoke()... | 0 | Kotlin | 0 | 1 | 61626fd1c5276ce8ec3e28ca9b09b1e4fd43e7ec | 393 | RealEstateManagerKotlin | MIT License |
native/native.tests/testData/codegen/exceptions/kt49240_stack_trace_completeness.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // NATIVE_STANDALONE
// DISABLE_NATIVE: optimizationMode=NO
// DISABLE_NATIVE: optimizationMode=OPT
import kotlin.text.Regex
import kotlin.test.*
fun exception() {
error("FAIL!")
}
@OptIn(kotlin.experimental.ExperimentalNativeApi::class)
fun box(): String {
try {
exception()
}
catch (e:Except... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,277 | kotlin | Apache License 2.0 |
mvp/src/main/java/com/gilgoldzweig/mvp/models/livedata/StateData.kt | gilgoldzweig | 167,931,739 | false | null | package com.gilgoldzweig.mvp.models.livedata
/**
* Wrapper class that is able to handle different state
*
* @param <T> data to wrap</T>
* */
class StateData<T> {
var status: DataStatus = DataStatus.CREATED
var data: T? = null
var error: Throwable? = null
/**
* Setting the status to [DataStatus.C... | 2 | Kotlin | 0 | 3 | 82c26faa2ec1ca760f09e40267a67d9da58bfac8 | 1,351 | MVP-Project-starter | Apache License 2.0 |
src/main/kotlin/no/nav/klage/controller/view/OpenKlageAnkeInput.kt | navikt | 253,461,869 | false | null | package no.nav.klage.controller.view
import no.nav.klage.domain.LanguageEnum
import no.nav.klage.domain.Navn
import no.nav.klage.domain.Tema
import no.nav.klage.domain.klage.CheckboxEnum
import no.nav.klage.domain.titles.TitleEnum
import java.time.LocalDate
data class OpenKlageInput (
val foedselsnummer: String,
... | 4 | Kotlin | 0 | 0 | 7b7dc7e0e35c33fbb87f4fdf951dec51e794d0ce | 1,132 | klage-dittnav-api | MIT License |
foundation/ui/assets-icons/src/main/kotlin/ru/pixnews/foundation/ui/assets/icons/contenrating/Pegi3.kt | illarionov | 305,333,284 | false | null | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 4 | Kotlin | 0 | 2 | bbd35f589b8e361058218b1125896df638c14a5c | 19,152 | Pixnews | Apache License 2.0 |
shared/src/commonMain/kotlin/data/remote/response/EpisodeDTO.kt | Bikcodeh | 672,999,679 | false | null | package data.remote.response
import domain.model.Episode
import kotlinx.serialization.SerialName
data class EpisodeDTO(
val name: String,
@SerialName("air_date")
val airDate: String,
val episode: String
)
fun EpisodeDTO.toEpisode(): Episode = Episode(name, airDate, episode) | 0 | Kotlin | 0 | 0 | 9f8340444bdba33816393103d23edd8d2483e8be | 293 | rick-and-morty-compose-multiplatform | Apache License 2.0 |
compiler/testData/codegen/box/delegatedProperty/withInvoke.kt | JetBrains | 3,432,266 | false | {"Kotlin": 73968610, "Java": 6672141, "Swift": 4257498, "C": 2622360, "C++": 1898765, "Objective-C": 641056, "Objective-C++": 167134, "JavaScript": 135706, "Python": 48402, "Shell": 31423, "TypeScript": 22754, "Lex": 18369, "Groovy": 17265, "Batchfile": 11693, "CSS": 11368, "Ruby": 6922, "EJS": 5241, "Dockerfile": 5136... | // TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K1: JVM_IR
// ISSUE: KT-61633
class C<T3>(val p: T3)
class D<T4>(val p: T4)
val <X3> C<X3>.getValue: D<X3> get() = D(p)
operator fun <X4> D<X4>.invoke(x: Any?, y: Any?): X4 = p
fun foo(c: C<String>): String {
val y1 by c
return y1
}
fun box(): String = foo(C("OK"... | 162 | Kotlin | 5729 | 46,436 | c902e5f56504e8572f9bc13f424de8bfb7f86d39 | 322 | kotlin | Apache License 2.0 |
diskogs/src/commonMain/kotlin/me/riberr/diskogs/endpoints/User.kt | riberr | 451,398,112 | false | {"Kotlin": 53597} | package me.riberr.diskogs.endpoints
import me.riberr.diskogs.Diskogs
val Diskogs.user: User
get() = User(this)
class User(override val diskogs: Diskogs) : Endpoint | 0 | Kotlin | 0 | 0 | c96040099eed0adcf6a22625bf40a8dbb499e201 | 170 | Diskogs | MIT License |
features/onboarding/onboarding-di/src/commonMain/kotlin/io/spherelabs/onboardingdi/Koin.onboarding.presentation.kt | getspherelabs | 687,455,894 | false | {"Kotlin": 917584, "Ruby": 6814, "Swift": 1128, "Shell": 1048} | package io.spherelabs.onboardingdi
import io.spherelabs.onboardingimpl.presentation.OnboardingMiddleware
import io.spherelabs.onboardingimpl.presentation.OnboardingReducer
import org.koin.dsl.module
val onboardingFeatureModule = module {
factory { OnboardingReducer() }
factory { OnboardingMiddleware(get(), ge... | 15 | Kotlin | 27 | 236 | 902a0505c5eaf0f3848a5e06afaec98c1ed35584 | 336 | anypass-kmp | Apache License 2.0 |
light/src/main/kotlin/net/kotlinx/aws/lambda/dispatch/synch/s3Logic/S3Logic.kt | mypojo | 565,799,715 | false | {"Kotlin": 1461744, "Jupyter Notebook": 13439, "Java": 9531} | package net.kotlinx.aws.lambda.dispatch.synch.s3Logic
/** 업무 정의 */
class S3Logic {
/** 유니크한 ID */
lateinit var id: String
/** 설명 */
var desc: List<String> = emptyList()
/** 실행기 */
lateinit var runtime: S3LogicRuntime
} | 0 | Kotlin | 0 | 1 | d740c234c44ef6162067713958ce93392e9c197e | 247 | kx_kotlin_support | MIT License |
base/src/test/java/jp/juggler/ExampleUnitTest.kt | tateisu | 89,120,200 | false | {"Kotlin": 4343773, "Java": 324536, "Perl": 47551} | package jp.juggler
import kotlin.test.Test
import kotlin.test.assertEquals
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}
| 37 | Kotlin | 23 | 238 | f20f9fee8ef29bfcbba0f4c610ca8c2fb1c29d4f | 181 | SubwayTooter | Apache License 2.0 |
app/src/main/java/tk/nikomitk/dooropenerhalfnew/messagetypes/Message.kt | NikomitK | 478,592,082 | false | {"Kotlin": 46244} | package tk.nikomitk.dooropenerhalfnew.messagetypes
import com.google.gson.Gson
data class Message(val type: String, val token: String, val content: String)
val gson = Gson()
fun Message.toJson(): String = gson.toJson(this)
fun LoginMessage.toJson(): String = gson.toJson(this)
| 0 | Kotlin | 0 | 3 | b6e303c2d668c96470e3f691b433fe91d8bea8c8 | 281 | DoorOpener | The Unlicense |
avro-kotlin-maven-plugin/src/main/kotlin/net/stefanfuchs/avro/mavenplugin/service/builder/types/complex/RecordBuilder.kt | fuchsst | 189,661,722 | false | null | package net.stefanfuchs.avro.mavenplugin.service.builder.types.complex
import net.stefanfuchs.avro.mavenplugin.service.builder.fields.asAliasGetterSetterKotlinCodeString
import net.stefanfuchs.avro.mavenplugin.service.builder.fields.asConstructorVarKotlinCodeString
import net.stefanfuchs.avro.mavenplugin.service.build... | 0 | Kotlin | 0 | 4 | 997d1e01036226b2d5c6949c71ebca6c351864ea | 9,255 | avro-kotlin-maven-plugin | Apache License 2.0 |
app/src/main/java/com/darkminstrel/pocketdict/data/ParsedTranslation.kt | DarkMinstrel | 321,386,711 | false | null | package com.darkminstrel.pocketdict.data
import com.darkminstrel.pocketdict.utils.nullOrNotEmpty
data class TranslationPair(
val first:String,
val second:String
)
data class ParsedTranslationItem(
val text:String,
val contexts:List<TranslationPair>?
)
data class ParsedTranslation(
val source:Str... | 0 | Kotlin | 0 | 0 | eb9c9b70eb3ac13924b4437091ed249db0d2a085 | 1,747 | PocketDict | Apache License 2.0 |
app/src/main/java/de/dertyp7214/rboardthememanager/utils/ZipHelper.kt | DerTyp7214 | 372,557,655 | false | null | package de.dertyp7214.rboardthememanager.utils
import com.dertyp7214.logs.helpers.Logger
import com.topjohnwu.superuser.io.SuFile
import com.topjohnwu.superuser.io.SuFileInputStream
import com.topjohnwu.superuser.io.SuFileOutputStream
import java.io.BufferedInputStream
import java.io.BufferedOutputStream
import java.u... | 0 | Kotlin | 9 | 96 | 18deb69aad3100b9f2d73256eea221a4f7b6f6ef | 2,129 | RboardThemeManagerV3 | MIT License |
domain/core/data/paiging/src/main/kotlin/net/meilcli/hubber/core/data/paiging/IPagingSource.kt | MeilCli | 634,432,059 | false | null | package net.meilcli.hubber.core.data.paiging
import kotlinx.coroutines.flow.Flow
interface IPagingSource<TPagingElement : IPagingElement, TPagingRequest : IPagingRequest> {
data class FirstLoadResult<TPagingElement : IPagingElement>(
val elements: List<TPagingElement>,
val reachingStartEdge: Bool... | 0 | Kotlin | 0 | 0 | 3f9660ce2cbc23c324ab7e5ad86c43d2551893c7 | 571 | hubber | MIT License |
lib/basic/src/androidMain/kotlin/jp/co/soramitsu/xnetworking/basic/networkclient/EngineFactory.kt | soramitsu | 475,838,756 | false | {"Kotlin": 109437, "Swift": 339} | package jp.co.soramitsu.xnetworking.basic.networkclient
import io.ktor.client.engine.*
import io.ktor.client.engine.okhttp.*
actual class HttpEngineFactory actual constructor() {
actual fun createEngine(): HttpClientEngineFactory<HttpClientEngineConfig> {
return OkHttp
}
}
| 2 | Kotlin | 0 | 1 | 9048bf9bb1c547aa7c5c94ccda3e8d568f7b2738 | 292 | x-networking | Apache License 2.0 |
api/src/main/kotlin/org/mint/MINTApi.kt | ing-bank | 620,378,707 | false | null | package com.ing.mint
/**
* The
*/
interface MINTApi {
/** Explore an application, based in the current MINT configuration.
*
* All steps that have been registered will be executed first, after which the remaining # steps
* will be explored according to the current MINT configuration. */
fun ex... | 0 | Kotlin | 2 | 4 | abf96d311b3ebb1bba2a331a353126c653225be9 | 569 | mint | MIT License |
verifiable-credentials-library/src/main/java/org/idp/wallet/verifiable_credentials_library/domain/verifiable_credentials/CredentialRequestProofCreator.kt | hirokazu-kobayashi-koba-hiro | 752,660,337 | false | {"Kotlin": 382794, "Mermaid": 497} | package org.idp.wallet.verifiable_credentials_library.domain.verifiable_credentials
import org.idp.wallet.verifiable_credentials_library.util.date.DateUtils
import org.idp.wallet.verifiable_credentials_library.util.jose.JoseUtils
class CredentialRequestProofCreator(
private val cNonce: String?,
private val cl... | 0 | Kotlin | 2 | 0 | 855cb2fa24f62bb279bca075d358096d9c589879 | 798 | vc-wallet-android-app | Apache License 2.0 |
app/src/main/java/com/example/itexblog/ui/base/MyApplication.kt | darothub | 230,796,284 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "JSON": 1, "Kotlin": 25, "XML": 35, "Java": 1} | package com.example.itexblog.ui.base
import android.app.Application
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
}
} | 1 | null | 1 | 1 | 9c06b39188600ad5853ef00d5e37d1c83472cbc1 | 170 | itexblog | MIT License |
app/src/main/kotlin/com/amsavarthan/tally/presentation/ui/screens/dashboard/TallyDashboardScreen.kt | amsavarthan | 592,784,968 | false | {"Kotlin": 232629, "HTML": 5928} | package com.amsavarthan.tally.presentation.ui.screens.dashboard
import androidx.compose.animation.*
import androidx.compose.animation.core.*
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
... | 0 | Kotlin | 0 | 4 | 3d5209573aeb755f3ce3f899add6075a28224c9c | 14,824 | tally | MIT License |
compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/FragmentSharedVariablesLowering.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | /*
* 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.backend.jvm.lower
import org.jetbrains.kotlin.backend.common.FileLoweringPass
im... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 5,199 | kotlin | Apache License 2.0 |
desktop/src/jvmMain/kotlin/network/ktor/repository/FileRepository.kt | MinateKyo | 180,421,707 | true | {"Kotlin": 2690960, "CSS": 89520, "HTML": 8751, "Java": 2901} | package network.network.ktor.repository
import de.jensklingenberg.sheasy.data.FileDataSource
import de.jensklingenberg.sheasy.model.AppInfo
import de.jensklingenberg.sheasy.model.FileResponse
import io.reactivex.Single
import java.io.File
import java.io.InputStream
class FileRepository : FileDataSource {
override... | 0 | Kotlin | 0 | 2 | b63609e043a60a4090d591c3a1e91cedc3b7b61b | 1,213 | Sheasy | Apache License 2.0 |
entrypoints/src/main/kotlin/ru/trueengineering/featureflag/manager/ports/service/casheService/CaffeineCacheConfig.kt | True-Engineering | 673,692,109 | false | null | package ru.trueengineering.featureflag.manager.ports.service.casheService
import org.springframework.cache.annotation.EnableCaching
import org.springframework.cache.caffeine.CaffeineCache
import org.springframework.cache.support.SimpleCacheManager
import org.springframework.context.annotation.Configuration
import org.... | 0 | Kotlin | 0 | 0 | 211f54ce8d54431d80c9db60a8c4670b1336165e | 1,087 | FeatureTogglesInstanceManager | Apache License 2.0 |
app/src/main/java/com/allentom/diffusion/composables/WindowSize.kt | AllenTom | 744,304,887 | false | {"Kotlin": 1228732} | package com.allentom.diffusion.composables
import android.app.Activity
import androidx.compose.material3.windowsizeclass.ExperimentalMaterial3WindowSizeClassApi
import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass
import androidx.compose.material3.windowsizeclass.calculateWindowSizeClass
import andro... | 1 | Kotlin | 19 | 187 | 9dcf3f1b466f9fc8f98851cee41aa8bae88f1139 | 1,752 | diffusion-client | MIT License |
android/app/src/main/kotlin/com/projectxpolaris/youplus/MainActivity.kt | Project-XPolaris | 375,218,152 | false | {"Dart": 51063, "C++": 24425, "CMake": 14991, "Kotlin": 3750, "HTML": 1503, "C": 1383, "Swift": 404, "Objective-C": 38} | package com.projectxpolaris.youplus
import android.graphics.Color
import android.os.Bundle
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
window.decorView.apply {
... | 0 | Dart | 0 | 0 | 898f0a7244ae50951c1e986d63090adf5ec80f4d | 823 | YouPlus-Client | MIT License |
kotlin2js-reflection-core/src/main/kotlin/org/decembrist/generators/types/AbstractFunctionTypeGenerator.kt | mockk | 174,353,733 | true | {"Kotlin": 200042, "ANTLR": 52536, "Java": 2581, "HTML": 1164, "JavaScript": 48} | package org.decembrist.generators.types
import com.squareup.kotlinpoet.*
import org.decembrist.domain.content.functions.AbstractFunction
import org.decembrist.domain.content.members.Method
import org.decembrist.generators.IGenerator
import org.decembrist.services.typesuggestions.TypeSuggestion
import com.squareup.kotl... | 0 | Kotlin | 0 | 1 | dd29b96b25172a554bcbe0cc1172f039d7c835ec | 1,190 | decembrist-kotlin2js-reflection | Apache License 2.0 |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/BoxAlignTopRight.kt | walter-juan | 868,046,028 | false | {"Kotlin": 20416825} | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector... | 0 | Kotlin | 0 | 1 | b037895588c2f62d069c724abe624b67c0889bf9 | 5,306 | compose-icon-collections | MIT License |
tmp/arrays/youTrackTests/7105.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-28004
fun main() {
val (ok, errors) = listOf(
"value1" to runCatching { "Hi" },
"value2" to runCatching { throw Exception("Oops") },
"value3" to runCatching { throw Exception("Oops 2") }
).partitionBySuccess()
println("Ok inputs were: ${ok.keys.joinToString()}")... | 1 | null | 8 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 1,342 | bbfgradle | Apache License 2.0 |
app/src/main/java/com/example/vakcinacija_stefanfilip/BolestFragment.kt | filipvlaisavljevic | 358,854,490 | false | null | package com.example.vakcinacija_stefanfilip
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.View
import androidx.navigation.fragment.findNavController
import androidx.navigation.fragment.navArgs
import kotlinx.android.synthetic.main.fragment_bolest.*
class BolestFragment : Fragment... | 0 | Kotlin | 0 | 0 | 306b161b1b16231e763827fee30ed7eb65657d5b | 1,644 | app-za-vakcinaciju | MIT License |
graphql-kotlin-schema-generator/src/main/kotlin/com/expediagroup/graphql/extensions/GraphQLSchemaExtensions.kt | Goregius | 233,943,916 | true | {"Kotlin": 782797, "JavaScript": 5387, "Shell": 2897, "HTML": 2703, "CSS": 297} | /*
* Copyright 2019 Expedia, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 0 | Kotlin | 0 | 0 | cdb6c413519a10f696af3c4d602e8bcaf280c1b0 | 3,552 | graphql-kotlin | Apache License 2.0 |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Nuke.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.simpleicons
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
impor... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 4,508 | compose-icons | MIT License |
app/src/main/java/eu/kanade/domain/source/interactor/SetSourceCategories.kt | Hero-Over | 515,433,181 | false | null | package eu.kanade.domain.source.interactor
import eu.kanade.domain.source.model.Source
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
import eu.kanade.tachiyomi.util.preference.minusAssign
import eu.kanade.tachiyomi.util.preference.plusAssign
class SetSourceCategories(
private val preferences: Prefe... | 0 | Kotlin | 0 | 4 | 233853823f45ddb7c11e0ce7f1feef3e7e7fc6b7 | 837 | TachiyomiSY | Apache License 2.0 |
app/src/main/java/com/gmail/lucasmveigabr/mvvmsimpletodolist/task/TaskFragment.kt | lmveiga | 188,933,405 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "Kotlin": 17, "XML": 21, "Java": 1} | package com.gmail.lucasmveigabr.mvvmsimpletodolist.task
import android.os.Bundle
import android.view.*
import android.widget.EditText
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.widget.SearchView
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.... | 1 | null | 1 | 1 | 8e51368ac10fae827f0d183f944d6a9c2894dc74 | 4,493 | mvvm-simple-todolist | Apache License 2.0 |
app/src/main/java/com/evgtrush/toDoKa/data/network/TipService.kt | AgnaWiese | 609,940,705 | false | null | /*
* Copyright (C) 2023. <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... | 1 | Kotlin | 0 | 0 | 668852a8fd4103d4e18efcebf2078ce05c19788b | 813 | todoka | Apache License 2.0 |
app/src/androidTest/java/com/lvp/autodownloader/ui/newdownload/NewDownloadInfoKtTest.kt | LuongPV | 770,756,923 | false | {"Kotlin": 398406} | package com.lvp.autodownloader.ui.newdownload
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.assertIsEnabled
import androidx.compose.ui.test.assertIsNotEnabled
import androidx.compose.ui.test.assertTextEquals
import androidx.compose.ui.te... | 0 | Kotlin | 0 | 0 | d61756b69755b0df324f7fd13c50aced46402c59 | 11,259 | AutoDownloader | Apache License 1.1 |
core/domain/src/main/java/com/goms/domain/council/DeleteBlackListUseCase.kt | team-haribo | 740,096,241 | false | {"Kotlin": 621219} | package com.goms.domain.council
import com.goms.data.repository.council.CouncilRepository
import java.util.UUID
import javax.inject.Inject
class DeleteBlackListUseCase @Inject constructor(
private val councilRepository: CouncilRepository
) {
suspend operator fun invoke(accountIdx: UUID) = kotlin.runCatching {... | 5 | Kotlin | 0 | 9 | 32b6b960f997e282a05c8409d6e045e6f95822d5 | 395 | GOMS-Android-V2 | MIT License |
src/main/kotlin/br/com/devsrsouza/kotlinbukkitapi/plugins/KMVdWPlaceholderAPI.kt | VitorEmanoel | 150,660,568 | true | {"Kotlin": 91396} | package br.com.devsrsouza.kotlinbukkitapi.plugins.dvdwplaceholderapi
import be.maximvdw.placeholderapi.PlaceholderAPI
import org.bukkit.Bukkit
import org.bukkit.OfflinePlayer
import kotlin.reflect.full.safeCast
val hasMVdWPlaceholderAPI by lazy { MVdWPlaceholder != null }
val MVdWPlaceholder by lazy {
Placeholde... | 0 | Kotlin | 0 | 0 | dae153acfb295234229b889bb0e2bb71d926d76a | 624 | KotlinBukkitAPI | MIT License |
mock-interceptor/src/client/kotlin/com/gustafah/android/mockinterceptor/MockConfig.kt | gustafah | 353,819,198 | false | null | package com.gustafah.android.mockinterceptor
import android.content.Context
import android.preference.PreferenceManager
import android.util.Range
import com.gustafah.android.mockinterceptor.MockConfig.OptionsSelectorMode
import com.gustafah.android.mockinterceptor.MockUtils.prefs
import com.gustafah.android.mockinterc... | 1 | null | 5 | 22 | c2b969ec647ae4d836264fe47cb386b197bc4709 | 6,740 | mock-interceptor | Apache License 2.0 |
app/src/main/java/com/songcream/main/NetworkFragment.kt | laigengsong | 139,961,414 | false | {"Kotlin": 12735, "Java": 12109} | package com.songcream.main
import android.content.Intent
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.OrientationHelper
import android.support.v7.widget.RecyclerView
import android.support.v7.widget.RecyclerView.Vi... | 0 | Kotlin | 0 | 0 | 0421a83160ce5ed6b5c9efe3ae1d40efb66792d6 | 2,113 | LogCaptureInAndroid | Apache License 2.0 |
app/src/main/java/com/webianks/expensive/ui/base/MvpView.kt | webianks | 186,256,631 | false | null | package com.webianks.expensive.ui.base
interface MvpView {
} | 0 | Kotlin | 5 | 23 | 13719ed6e4ce6d91aea904f7b0deadfcae574486 | 62 | Expensive | MIT License |
vk-sdk-api/src/main/java/com/vk/sdk/api/stats/methods/StatsGetPostReach.kt | wesshi-tiktok | 358,352,248 | true | {"Kotlin": 4764291, "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 | 32898fa706e4064118ae18327649e89a22fc6070 | 2,282 | vk-android-sdk | MIT License |
app/src/main/java/com/rejowan/deviceinfo/fragments/device/StorageFragment.kt | ahmmedrejowan | 778,650,948 | false | {"Kotlin": 296758, "Java": 38028} | package com.rejowan.deviceinfo.fragments.device
import android.annotation.SuppressLint
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.os.Bundle
import android.view.LayoutInflater
import android.view.MotionEvent
im... | 0 | Kotlin | 0 | 0 | fe8bbd51042ca2fb5001f0e7bfddc0645d19bf0e | 4,214 | DeviceInfo | Apache License 2.0 |
src/GUI/MainFrame.kt | abocquet | 117,430,584 | false | {"Java": 225943, "Kotlin": 101699} | package GUI
import GUI.Panels.CenterPanel
import GUI.Panels.PopulationPanel
import level.LevelLoader
import neat.Population
import java.awt.BorderLayout
import java.awt.CardLayout
import java.awt.Color
import java.awt.Dimension
import java.awt.event.MouseEvent
import java.awt.event.MouseListener
import java.awt.event.... | 1 | null | 1 | 1 | 080598a5420a5cfaed76a8e9fb6e882ab79a6307 | 7,320 | autoplay | The Unlicense |
app/src/main/java/id/axlyody/tapdaqmediationreport/database/RevenueDao.kt | yooody | 386,019,000 | false | null | /*
* RevenueDao.kt
* Copyright 2020 <NAME> <<EMAIL>>
*
*/
package id.axlyody.tapdaqmediationreport.database
import androidx.lifecycle.LiveData
import androidx.room.*
import id.axlyody.tapdaqmediationreport.utils.timestamps
import timber.log.Timber
@Dao
interface RevenueDao {
@Query("SELECT * FROM revenue")
... | 0 | Kotlin | 0 | 0 | 5b5373de40a50afb63524f5f7b9aaf6218952b6e | 2,016 | TapdaqMediationReport | Apache License 2.0 |
kotlin/app/src/main/java/net/igorbrejc/timeslack/SlackerTime.kt | breki | 240,225,649 | false | null | package net.igorbrejc.timeslack
import java.util.*
data class SlackerTime internal constructor (private val minutesOfDay: Int) {
val hours: Int = minutesOfDay / 60
val minutes = minutesOfDay % 60
companion object {
fun of(hours: Int, minutes: Int): SlackerTime {
return when {
... | 0 | Kotlin | 0 | 0 | e3bdebac87e73172ff27ebad479a7f5d29ff25e5 | 1,477 | TimeSlack | MIT License |
src/test/kotlin/no/nav/lydia/container/ia/eksport/IASakEksportererTest.kt | navikt | 444,072,054 | false | null | package no.nav.lydia.container.ia.eksport
import io.kotest.inspectors.forAtLeastOne
import io.kotest.matchers.collections.shouldHaveAtLeastSize
import io.kotest.matchers.shouldBe
import io.kotest.matchers.string.shouldContain
import kotlinx.coroutines.isActive
import kotlinx.coroutines.launch
import kotlinx.coroutines... | 0 | Kotlin | 0 | 2 | 4026bea42d89710f23d52baaab4d19d592f247da | 3,058 | lydia-api | MIT License |
sql/src/main/kotlin/io/github/pdvrieze/kotlinsql/dml/impl/_StatementBase.kt | pdvrieze | 55,180,714 | false | null | /*
* Copyright (c) 2021.
*
* This file is part of kotlinsql.
*
* This file is licenced to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You should have received a copy of the license with the source distribution.
* Alternatively,... | 1 | Kotlin | 1 | 2 | 3ed9e15e96251913be9d2127259f53c44c879439 | 1,495 | kotlinsql | Apache License 2.0 |
app/src/main/java/com/telen/easylineup/team/createTeam/teamMain/TeamEditFragment.kt | kaygenzo | 177,859,247 | false | null | package com.telen.easylineup.team.createTeam.teamMain
import android.app.Activity
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.appcompat.app.AppCompatAc... | 0 | Kotlin | 0 | 0 | c620fa36f23ba21f1ffb8bdddb40df63d60fd248 | 3,781 | EasyLineUp | Apache License 2.0 |
themes/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/themes/intui/standalone/IntUiTheme.kt | JetBrains | 440,164,967 | false | null | package org.jetbrains.jewel.themes.intui.standalone
import androidx.compose.runtime.Composable
import androidx.compose.runtime.ProvidedValue
import androidx.compose.runtime.ReadOnlyComposable
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.... | 22 | Kotlin | 12 | 326 | d137328b86d925ab8d23821b4ce1cd1b36479194 | 1,077 | jewel | Apache License 2.0 |
backend/src/main/java/com/nestapp/RestController.kt | VovaStelmashchuk | 749,433,978 | false | {"Java": 145614, "Kotlin": 72924, "Vue": 56310, "CSS": 2519, "JavaScript": 1761, "HTML": 464, "Dockerfile": 439, "TypeScript": 306, "Shell": 92} | package com.nestapp
import com.nestapp.files.svg.SvgWriter
import com.nestapp.nest.PolygonGenerator
import com.nestapp.nest.jaguar.JaguarRequest
import com.nestapp.nest.nestRestApi
import com.nestapp.project.ProjectMaker
import com.nestapp.project.projectsRestController
import io.ktor.client.HttpClient
import io.ktor.... | 1 | Java | 0 | 26 | 956ac882f04117429747e04db037eaf378e3880c | 3,383 | nest2D | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.