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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
desktop/src/jvmMain/kotlin/Main.kt | y9vad9 | 393,995,391 | false | null | import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.Surface
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.awt.ComposeWindow
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
impor... | 0 | Kotlin | 1 | 20 | 97c51c685102ad1931fb80f5c43750e31c2aceae | 1,203 | notes | MIT License |
app/src/main/java/fr/nextoo/androidmvp/di/base/BaseChildFragment.kt | tmorelle | 147,664,344 | false | null | package fr.nextoo.androidmvp.di.base
import android.content.Intent
import android.os.Bundle
import android.support.annotation.CallSuper
import dagger.android.support.DaggerFragment
import javax.inject.Inject
abstract class BaseChildFragment<T: BasePresenter<*>>: DaggerFragment(), ChildFragmentView {
@Inject
l... | 0 | Kotlin | 0 | 3 | a71a2125a994766c2561f8b832e018fcc1748eec | 1,531 | nextoo-android-mvp | Apache License 2.0 |
app/src/main/java/fr/nextoo/androidmvp/di/base/BaseChildFragment.kt | tmorelle | 147,664,344 | false | null | package fr.nextoo.androidmvp.di.base
import android.content.Intent
import android.os.Bundle
import android.support.annotation.CallSuper
import dagger.android.support.DaggerFragment
import javax.inject.Inject
abstract class BaseChildFragment<T: BasePresenter<*>>: DaggerFragment(), ChildFragmentView {
@Inject
l... | 0 | Kotlin | 0 | 3 | a71a2125a994766c2561f8b832e018fcc1748eec | 1,531 | nextoo-android-mvp | Apache License 2.0 |
library/src/main/java/com/angcyo/library/component/DslDensityAdapter.kt | angcyo | 229,037,615 | false | {"Kotlin": 6722659, "JavaScript": 5194} | package com.angcyo.library.component
import android.app.Application
import android.content.Context
import android.content.res.Resources
import android.util.DisplayMetrics
import androidx.annotation.Px
import com.angcyo.library.L
/**
* density适配到指定的设计宽高
* Email:<EMAIL>
* @author angcyo
* @date 2020/04/24
* Copyri... | 0 | Kotlin | 6 | 5 | 10ad5753c3ff675d7f7513db5d98665bcf6f7418 | 7,838 | UICore | MIT License |
src/main/java/ir/firoozehcorp/gameservice/models/gsLive/Invite.kt | firoozehcorporation | 247,745,229 | false | null | /*
* <copyright file="Invite.kt" company="Firoozeh Technology LTD">
* Copyright (C) 2020. Firoozeh Technology LTD. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 0 | Kotlin | 0 | 0 | 2977427a328b7accb7972a03e4bd401a09693b72 | 2,029 | GameService-Kotlin-SDK | Apache License 2.0 |
src/main/kotlin/io/justdevit/spring/logging/action/DefaultActionNameResolverProvider.kt | temofey1989 | 436,276,086 | false | {"Kotlin": 56817} | package io.justdevit.spring.logging.action
import java.lang.reflect.Method
/**
* Providers supported action name resolver.
*
* @param resolvers List of registered resolvers.
*/
class DefaultActionNameResolverProvider(private val resolvers: List<ActionNameResolver>) : ActionNameResolverProvider {
/**
* F... | 0 | Kotlin | 0 | 0 | 0e50afe6a8112b2de7b949d05f53faace853973b | 555 | logging-spring-boot-starter | Apache License 2.0 |
worldwind/src/jvmCommonMain/kotlin/earth/worldwind/globe/elevation/ElevationDecoder.kt | WorldWindEarth | 488,505,165 | false | {"Kotlin": 2674013, "JavaScript": 459619, "HTML": 108593, "CSS": 8778} | package earth.worldwind.globe.elevation
import earth.worldwind.formats.tiff.Subfile
import earth.worldwind.formats.tiff.Tiff
import earth.worldwind.util.Logger.ERROR
import earth.worldwind.util.Logger.WARN
import earth.worldwind.util.Logger.log
import earth.worldwind.util.Logger.logMessage
import earth.worldwind.util.... | 24 | Kotlin | 9 | 70 | 5af264e2cad2394a344551a03915409c8858e3e2 | 4,538 | WorldWindKotlin | Apache License 2.0 |
src/main/kotlin/blue/starry/saya/models/TwitterHashTagStatistics.kt | iamtakagi-lab | 334,095,289 | true | {"Kotlin": 201945, "Dockerfile": 7757} | package blue.starry.saya.models
import kotlinx.serialization.Serializable
@Serializable
data class TwitterHashTagStatistics(
override val source: String,
override val comments: Int,
override val commentsPerMinute: Int
): CommentStatistics
| 0 | Kotlin | 0 | 0 | 6d7debefe296975ec2f0441d738a90f6ea83cdb7 | 253 | saya | MIT License |
backend/src/main/kotlin/men/brakh/bsuirstudent/application/search/Sort.kt | N1ghtF1re | 184,453,033 | false | null | package men.brakh.bsuirstudent.application.search;
enum class SortType {
ASC, DESC
}
class Sort(
val field: String,
val type: SortType
) | 0 | Kotlin | 0 | 9 | a4cd806c4658eb2aa736aa40daf47b19d39df80f | 144 | Bsuir-Additional-Api | Apache License 2.0 |
app/src/main/java/com/example/android_study/android/database/file/FileAy.kt | RhythmCoderZZF | 281,057,053 | false | null | package com.example.android_study.android.database.file
import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.android_study.R
import kotlinx.android.synthetic.main.activity_file_ay.*
import java.io.*
import java.lang.Exception
class FileAy : AppComp... | 0 | Kotlin | 0 | 0 | b569adcacfdba5ea6b4c323454c3c5130a1b4763 | 1,175 | AndroidStudy | Apache License 2.0 |
sdk/src/test/java/me/digi/sdk/tests/utilities/crypto/DMEDataDecryptorSpec.kt | osirisinferi | 257,033,937 | true | {"Kotlin": 110995} | package me.digi.sdk.tests.utilities.crypto
import android.util.Base64
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import me.digi.sdk.entities.DMEFile
import me.digi.sdk.entities.DMEMimeType
import me.digi.sdk.utilities.crypto.DMEDataDecryptor
import org.junit.Test
import org.junit.Assert.*
imp... | 0 | null | 0 | 0 | d47b423bf00e1c969ff7d9563100d3b921eccd6c | 3,818 | digime-sdk-android | Apache License 2.0 |
core/src/main/kotlin/io/timemates/backend/authorization/types/value/AuthorizationId.kt | timemates | 575,534,781 | false | null | package io.timemates.backend.authorization.types.value
import com.timemates.backend.validation.FailureMessage
import com.timemates.backend.validation.SafeConstructor
import com.timemates.backend.validation.ValidationFailureHandler
import com.timemates.backend.validation.reflection.wrapperTypeName
@JvmInline
value cla... | 15 | Kotlin | 0 | 6 | 7e2e33eb816b34188bb6fc130b7ce44a0175a9c4 | 772 | backend | MIT License |
app/src/main/java/com/github/zharovvv/open/source/weather/app/domain/location/LocationViewModel.kt | ZharovVV | 398,004,967 | false | {"Kotlin": 204380} | package com.github.zharovvv.open.source.weather.app.domain.location
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.github.zharovvv.open.source.weather.app.logger.Logger
import com.github.zharovvv.open.source.weather.app.models.presentation.Lo... | 0 | Kotlin | 0 | 4 | a61b17f0a2a1d19b5b243431df294ea1c47eb8a5 | 1,344 | OpenSourceWeatherApp | Apache License 2.0 |
sdk-base/src/main/java/com/mapbox/maps/plugin/delegates/MapTransformDelegate.kt | tokyow | 355,219,500 | true | {"Kotlin": 1948377, "Java": 162959, "Python": 11523, "C++": 10129, "JavaScript": 4344, "Shell": 1830, "Makefile": 1756, "CMake": 1201, "EJS": 1194} | package com.mapbox.maps.plugin.delegates
import com.mapbox.maps.*
/**
* Definition of a map transform delegate.
*/
interface MapTransformDelegate {
/**
* Set the map camera to a given camera options.
*
* @param cameraOptions The camera options to jump to
*/
fun jumpTo(cameraOptions: CameraOptions)
... | 0 | null | 0 | 0 | e4d2553af0c994ca8ba6897ed3a5d6c6dbc4681b | 4,158 | mapbox-maps-android | Apache License 2.0 |
app/src/test/java/com/sama/connection/infrastructure/JdbcConnectionRequestRepositoryIT.kt | sama-app | 363,692,054 | false | null | package com.sama.connection.infrastructure
import com.sama.common.BasePersistenceIT
import com.sama.common.NotFoundException
import com.sama.connection.domain.ConnectionRequest
import com.sama.connection.domain.ConnectionRequestStatus.APPROVED
import com.sama.connection.domain.ConnectionRequestStatus.PENDING
import co... | 0 | Kotlin | 1 | 2 | a73319e26a22bf09aeb6bcc1cc2feaf3723ba0b9 | 3,978 | sama-service | Apache License 2.0 |
AndroidBasicsCourse/ComposeQuadrant/app/src/main/java/com/example/composequadrant/MainActivity.kt | alghe-global | 718,129,890 | false | {"Kotlin": 95357} | package com.example.composequadrant
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compos... | 0 | Kotlin | 0 | 0 | 775bb521ec35c93753c7c5579067fdb4a1b4f742 | 3,793 | Kotlin | MIT License |
tuttur/src/main/java/com/tahakorkem/tuttur/listadapter/common/Identifiable.kt | tahakorkem | 525,312,255 | false | null | package com.tahakorkem.tuttur.listadapter.common
interface Identifiable {
val id: Any
override fun equals(other: Any?): Boolean
override fun hashCode(): Int
} | 0 | Kotlin | 0 | 0 | e8d7abeb22d678f849e6f4c66893b2f1a9665d6c | 171 | tuttur | MIT License |
src/main/kotlin/net.ltm.screepsbot/constant/returnCode/InitialReturnCode.kt | Longtianmu | 523,424,811 | false | null | package net.ltm.screepsbot.constant.returnCode
enum class InitialReturnCode {
OK,//成功
FAILED,//未预料的失败
SKIP//无需Tick该Creep
}
| 0 | Kotlin | 0 | 3 | 4a5e8720f13d1f2228353dbaf1654138517e00f3 | 136 | ScreepsKotlin | MIT License |
src/main/kotlin/changchanghwang/parrotworldserver/services/members/presentation/MemberController.kt | changchanghwang | 766,797,081 | false | {"Kotlin": 35241, "HTML": 1281} | package changchanghwang.parrotworldserver.services.members.presentation
import changchanghwang.parrotworldserver.services.members.application.MemberService
import changchanghwang.parrotworldserver.services.members.dto.MemberDto
import jakarta.servlet.http.Cookie
import jakarta.servlet.http.HttpServletResponse
import j... | 0 | Kotlin | 0 | 0 | f552bc77cc42d7eaab175849ebe0813a4f9f9bb5 | 1,738 | parrot-world-server-kotlin | MIT License |
module_pics/src/main/java/com/fxc/pics/pic/network/entities/PicRelatedEntity.kt | T-Oner | 116,654,059 | false | null | package com.fxc.pics.pic.network.entities
/**
* @author fxc
* @date 2018/3/3
*/
class PicRelatedEntity {
/**
* total : 1172
* results : [{"id":"RWAIyGmgHTQ","created_at":"2016-07-14T22:34:28-04:00","updated_at":"2017-10-31T17:16:01-04:00","width":4000,"height":3072,"color":"#121F1B","likes":1010,"liked_by_us... | 0 | Kotlin | 0 | 4 | d01264e7a5fae74c13655a742bed79de674527d0 | 62,819 | Pics | Apache License 2.0 |
src/main/kotlin/br/com/quantis/libraries/calendar/brazil/BrazilianCalendar.kt | quantisbr | 439,518,876 | false | {"Kotlin": 22269} | /**
* Copyright 2021 Quantis All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 0 | Kotlin | 0 | 2 | 7ac9731be63c7439344fd4c5039a4ca0e564f456 | 7,122 | brazilian-calendar | Apache License 2.0 |
domain/src/main/java/com/vr/domain/entities/ItemDetailEntity.kt | vidalrmrz | 280,246,328 | false | null | package com.vr.domain.entities
import java.io.Serializable
data class ItemDetailEntity(
val pictures : List<PictureEntity> = listOf()
) : Serializable | 0 | Kotlin | 0 | 0 | 2538e56cf63937fa22ba30462429389d85666f5b | 156 | mecali | Apache License 2.0 |
app/src/main/java/org/listenbrainz/android/ui/screens/yim23/Yim23LandingScreen.kt | metabrainz | 550,726,972 | false | null | package org.listenbrainz.android.ui.screens.yim23
import android.content.Context
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.compose.animation.core.*
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.gest... | 16 | null | 27 | 61 | 00fb4a256f2c6dc3b2b22a95ad7bc08b3a4bf6d7 | 15,212 | listenbrainz-android | Apache License 2.0 |
code/app/src/main/java/com/istudio/media3/data/TracksImpl.kt | devrath | 789,075,516 | false | {"Kotlin": 44509} | package com.istudio.media3.data
import com.istudio.media3.demos.audio.model.TrackItem
class TracksImpl : Tracks {
override fun trackList(): List<TrackItem> {
return arrayListOf(
TrackItem(
"1",
"https://www.matb3aa.com/music/Wegz/Dorak.Gai-Wegz-MaTb3aa.Com.mp3",... | 0 | Kotlin | 0 | 0 | 4a27cca9d9a8c4cead27c82f1f77cf5d6493750f | 2,164 | MediaAlchemySuite | Apache License 2.0 |
example/android/src/main/kotlin/io/github/rubenquadros/kovibes/example/android/KoVibesApplication.kt | rubenquadros | 758,569,353 | false | {"Kotlin": 193931} | package io.github.rubenquadros.kovibes.example.android
import android.app.Application
import org.koin.core.context.startKoin
import org.koin.ksp.generated.module
class KoVibesApplication: Application() {
override fun onCreate() {
super.onCreate()
startKoin {
modules(AppModule().module... | 0 | Kotlin | 0 | 8 | 2c34ce95533b7fe1d119811ab4ba48d23245cb69 | 339 | KoVibes | MIT License |
app/src/main/java/vn/hoanguyen/weatherforecast/presentation/ui/navigation/NavRoute.kt | hoajb | 858,217,891 | false | {"Kotlin": 77665} | package vn.hoanguyen.weatherforecast.presentation.ui.navigation
private object Path {
const val HOME = "home"
const val DETAILS = "details"
const val FAVORITE = "favorite"
}
sealed class NavRoute(val path: String) {
data object Home : NavRoute(Path.HOME)
data object Favorite : NavRoute(Path.FAVORI... | 0 | Kotlin | 0 | 0 | de65a3a3deb0bf137a10df8f4aca433863910182 | 935 | weather-forecast-demo | The Unlicense |
src/main/kotlin/xyz/eroto/bot/commands/weebsh/Cuddle.kt | ErotoBot | 125,624,926 | false | null | package xyz.eroto.bot.commands.weebsh
import net.dv8tion.jda.core.entities.Member
import xyz.eroto.bot.entities.cmd.Context
import xyz.eroto.bot.entities.cmd.argument
import xyz.eroto.bot.entities.cmd.variant.WolkCommand
import xyz.eroto.bot.utils.WolkType
class Cuddle : WolkCommand() {
override val type = WolkTy... | 1 | Kotlin | 0 | 1 | 0981a68a625799f50d1ea9c64e1eea2ca5fd6ee7 | 711 | Eroto | MIT License |
app/src/main/java/com/truongpx/ckcportfolio/features/basecrypto/datalayer/entities/QuoteCryptoModel.kt | truongpx396 | 181,811,114 | false | null | /*
*
* Copyright (C) 2019 Truongpx 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 req... | 0 | Kotlin | 1 | 2 | 136f77d93a713986576e46f50014b59dbb36520d | 1,322 | ckcportfolio | Apache License 2.0 |
server/src/main/kotlin/org/kryptonmc/krypton/state/property/KryptonPropertyFactory.kt | KryptonMC | 255,582,002 | false | null | /*
* This file is part of the Krypton project, licensed under the Apache License v2.0
*
* Copyright (C) 2021-2023 KryptonMC and the contributors of the Krypton 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 ... | 27 | Kotlin | 11 | 233 | a9eff5463328f34072cdaf37aae3e77b14fcac93 | 2,157 | Krypton | Apache License 2.0 |
app/src/main/java/com/africablue/awsapp/ui/auth/FlowDialog.kt | AfricaBlue72 | 259,641,836 | false | null | package com.africablue.awsapp.ui.auth
import android.app.Dialog
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.ProgressBar
import android.widget.TextView
import androidx.appcompat.app.Aler... | 0 | Kotlin | 0 | 0 | f5aea4b4e08e69c79f76cd7384308f657d61e21f | 6,923 | AwsApp | MIT License |
composeApp/src/commonMain/kotlin/com/malliaridis/tui/domain/foundation/DirectionalInputComponent.kt | malliaridis | 781,833,057 | false | {"Kotlin": 218283, "Swift": 1167} | package com.malliaridis.tui.domain.foundation
import com.malliaridis.tui.domain.foundation.DirectionalInputComponent.Output
import com.malliaridis.tui.model.Direction
import com.malliaridis.tui.ui.components.stratagems.DialPadStyle
import kotlinx.coroutines.flow.StateFlow
/**
* The directional input component is use... | 0 | Kotlin | 0 | 3 | 740442033e99b21bb7ed2dd8796cc6460a49ea2d | 1,197 | tactical-user-interface | MIT License |
kdiffer/src/main/java/ru/radiationx/kdiffer/internal/differ/delegate/DifferDelegate.kt | RadiationX | 360,635,395 | false | null | package ru.radiationx.kdiffer.internal.differ.delegate
import ru.radiationx.kdiffer.common.Cleanable
import ru.radiationx.kdiffer.dsl.common.CleanableContext
import ru.radiationx.kdiffer.internal.visitor.FieldVisitor
import java.util.*
internal abstract class DifferDelegate<Model, VisitorResult, Result> : CleanableCo... | 0 | Kotlin | 0 | 2 | e934abcf21faedaaae37fc82f577e9d0db82a405 | 861 | KDiffer | Apache License 2.0 |
src/main/java/io/github/yuko1101/japanizedchat/commands/MainCommand.kt | yuko1101 | 409,446,442 | false | {"Kotlin": 32707} | package io.github.yuko1101.japanizedchat.commands
import gg.essential.api.commands.Command
import gg.essential.api.commands.DefaultHandler
import gg.essential.api.commands.SubCommand
import gg.essential.api.utils.GuiUtil
import io.github.yuko1101.japanizedchat.Asterium
import java.util.*
class MainCommand : Command(... | 0 | Kotlin | 0 | 1 | 3168904c1720334d51934934209285bc3fd9aadf | 654 | JapanizedChat | MIT License |
biz-home/src/main/java/com/tao/bus/home/data/remote/RemoteDataSource.kt | huangtaoOO | 556,157,176 | false | {"Kotlin": 142117, "Java": 3191} | package com.tao.bus.home.data.remote
import android.util.Log
import com.example.base.entity.BaseEntity
import com.example.base.entity.ListEntity
import com.example.base.entity.home.ArticleEntity
import com.example.base.network.service.ArticleService
import com.tao.bus.home.data.ArticleDataSource
import kotlinx.corouti... | 0 | Kotlin | 1 | 8 | 77b801c090a2514b50bdc97475bc102d253183c3 | 954 | TaoComponent | Apache License 2.0 |
lib/basic/src/main/java/com/dinesh/basic/app/encryption/aes/v0/AESUtils.kt | Dinesh2811 | 745,880,179 | false | {"Kotlin": 1200547, "Java": 206284, "JavaScript": 20260} | package com.dinesh.basic.app.encryption.aes.v0
import android.util.Base64
import java.security.SecureRandom
import javax.crypto.Cipher
import javax.crypto.KeyGenerator
import javax.crypto.SecretKey
import javax.crypto.spec.IvParameterSpec
import android.security.keystore.KeyGenParameterSpec
import android.security.key... | 0 | Kotlin | 0 | 1 | d5b4b55728848196c71c351c186df7e57ad4e8c2 | 8,626 | Android101 | Apache License 2.0 |
operator/src/main/kotlin/eu/glasskube/operator/apps/gitea/dependent/GiteaServiceMonitor.kt | glasskube | 528,301,150 | false | null | package eu.glasskube.operator.apps.gitea.dependent
import eu.glasskube.kubernetes.api.model.labelSelector
import eu.glasskube.kubernetes.api.model.metadata
import eu.glasskube.kubernetes.api.model.secretKeySelector
import eu.glasskube.operator.apps.gitea.Gitea
import eu.glasskube.operator.apps.gitea.GiteaReconciler
im... | 19 | Kotlin | 4 | 57 | 0cb51187275bfc1f17d7386a790645604532c052 | 2,005 | operator | MIT License |
android/src/androidTest/java/tw/ktrssreader/database/base/DaoTestBase.kt | ivanisidrowu | 294,376,936 | false | {"Kotlin": 317942} | package tw.ktrssreader.database.base
import android.content.Context
import androidx.room.Room
import androidx.test.core.app.ApplicationProvider
import org.junit.After
import org.junit.Before
import tw.ktrssreader.persistence.db.KtRssReaderDatabase
open class DaoTestBase {
protected lateinit var database: KtRssRe... | 3 | Kotlin | 17 | 87 | 58f395dddca7dd7fc40c91b7ebebef309be87299 | 662 | KtRssReader | Apache License 2.0 |
zircon.core/src/main/kotlin/org/hexworks/zircon/api/graphics/base/BaseTileImage.kt | smomen | 185,440,235 | true | {"Kotlin": 1098906, "Java": 108146, "HTML": 69778, "CSS": 1525} | package org.hexworks.zircon.api.graphics.base
import org.hexworks.zircon.api.builder.data.TileBuilder
import org.hexworks.zircon.api.builder.graphics.TileGraphicsBuilder
import org.hexworks.zircon.api.data.Cell
import org.hexworks.zircon.api.data.Position
import org.hexworks.zircon.api.data.Size
import org.hexworks.zi... | 0 | Kotlin | 0 | 0 | f89f41c55a63835e825a23022fe0b7826c114d19 | 6,739 | zircon | MIT License |
src/main/kotlin/SimplifySquareRoot.kt | BjornvdLaan | 459,274,171 | false | {"Kotlin": 19109} | /**
* Square root with its coefficient.
*
* Definitions: a square root is of form 'coefficient * sqrt(radicand)'.
* In other words, the coefficient is outside the square root
* and the radicand in inside the square root.
*
* @property coefficient number in front of the radical ('root') sign.
* @property radican... | 0 | Kotlin | 0 | 0 | c6d895d1c011628db4c7c5082e37dc32ac5f9a8a | 1,707 | KotlinTestApproachExamples | MIT License |
shared/src/main/java/dev/zwander/shared/data/LinkSelectionData.kt | zacharee | 664,480,223 | false | {"Kotlin": 140112, "AIDL": 334} | package dev.zwander.shared.data
import android.content.Context
import androidx.compose.runtime.Composable
import androidx.compose.runtime.State
import androidx.compose.runtime.collectAsState
import androidx.compose.ui.platform.LocalContext
import dev.zwander.shared.util.prefs
import kotlinx.coroutines.coroutineScope
i... | 4 | Kotlin | 3 | 97 | 2619100762e7cc25f3f4d27bab3b458ccc23763d | 1,277 | MastodonRedirect | MIT License |
bukkit/rpk-economy-bukkit/src/main/kotlin/com/rpkit/economy/bukkit/command/money/MoneyAddCommand.kt | blimyj | 363,192,865 | true | {"Kotlin": 2999538} | /*
* Copyright 2021 <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 writi... | 0 | null | 0 | 0 | b6f6e90fe466309a97f5620f4c5508df3131154d | 14,452 | RPKit | Apache License 2.0 |
core/src/main/kotlin/net/kotlinx/core/collection/RangeMap.kt | mypojo | 565,799,715 | false | {"Kotlin": 1495826, "Jupyter Notebook": 13540, "Java": 9531} | package net.kotlinx.core.collection
/**
* range 에서 데이터를 조회할때 사용
* list의 가장 위에 데이터가 우선함
* 보통 년월일 등의 데이터를 사용
* */
class RangeMap<T>(
private val configs: List<Pair<ClosedRange<String>, T>>
) {
/**
* @return 매칭이 안되면 null을 리턴함
* */
operator fun get(value: String): T? = configs.firstOrNull { val... | 0 | Kotlin | 0 | 1 | 81b979ec8d11b25bf9536b2250bb441cbca0e30b | 346 | kx_kotlin_support | MIT License |
app/src/main/java/com/mendelin/tmdb_hilt/data/room/FavoritesDatabase.kt | MadalinBalint | 486,220,159 | false | null | package com.mendelin.tmdb_hilt.data.room
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.mendelin.tmdb_hilt.domain.models.entity.MovieListResultEntity
import com.mendelin.tmdb_hilt.domain.models.enti... | 0 | Kotlin | 0 | 1 | 37f159e62ab4ad6c4289b3a10aa9340bf217cf70 | 1,091 | TmdbAppHilt | Apache License 2.0 |
app/src/main/java/com/betulnecanli/purplepage/data/db/ProjectsDB.kt | betulnecanli | 522,035,167 | false | {"Kotlin": 62419} | package com.betulnecanli.purplepage.data.db
import androidx.room.Database
import androidx.room.RoomDatabase
import com.betulnecanli.purplepage.data.dao.ProjectsDao
import com.betulnecanli.purplepage.data.model.Projects
@Database(entities = [Projects::class], version = 1, exportSchema = false)
abstract class ProjectsD... | 0 | Kotlin | 0 | 2 | 864b6385e6f79bf2f4e793a126d5a0ee3e74ad40 | 385 | PurplePage | Apache License 2.0 |
app/src/main/java/com/example/rentproject/domain/use_case/UpsertRoom.kt | pluzarev-nemanja | 733,855,227 | false | {"Kotlin": 127584} | package com.example.rentproject.domain.use_case
import com.example.rentproject.domain.model.Room
import com.example.rentproject.domain.repository.RoomRepository
class UpsertRoom(
private val roomRepository: RoomRepository
) {
suspend operator fun invoke(room: Room){
roomRepository.upsertRoom(room)
... | 0 | Kotlin | 0 | 0 | e621f333819b91f552630506858ca0871857abcb | 325 | RentRoom | MIT License |
app/src/main/java/com/garnegsoft/hubs/ui/screens/main/MyFeedFilter.kt | Garneg | 571,994,517 | false | {"Kotlin": 664342} | package com.garnegsoft.hubs.ui.screens.main
import android.widget.Toast
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.rememberScr... | 0 | Kotlin | 0 | 6 | 5425d404d3d6d3f8e3785a4e0069a78150cd6944 | 5,655 | Hubs | MIT License |
bot/src/main/kotlin/me/y9san9/prizebot/resources/markups/selectLinkedChatMarkup.kt | y9san9 | 337,414,979 | false | {"Kotlin": 309570, "Dockerfile": 126} | package me.y9san9.prizebot.resources.markups
import dev.inmo.tgbotapi.types.buttons.ReplyKeyboardMarkup
import dev.inmo.tgbotapi.types.buttons.SimpleKeyboardButton
import me.y9san9.prizebot.extensions.telegram.PrizebotLocalizedBotUpdate
import me.y9san9.prizebot.extensions.telegram.getLocale
suspend fun selectLinked... | 14 | Kotlin | 14 | 71 | 66afe01d184804cd2fd0d6a58a307127c1a8fa23 | 712 | prizebot | MIT License |
src/main/kotlin/ui/cli/CLIApplication.kt | ssbgp | 108,266,875 | false | {"Kotlin": 396337} | package ui.cli
import core.routing.Route
import core.routing.Topology
import core.simulator.Advertisement
import core.simulator.Simulator
import io.ParseException
import simulation.InitializationException
import simulation.Metadata
import ui.Application
import java.io.File
import java.io.IOException
import java.time.D... | 3 | Kotlin | 0 | 9 | f2b681afdbf9fec8e91a13e5c69b5559d692e9b1 | 8,147 | simulator | MIT License |
app/src/main/kotlin/com/dot/gallery/core/presentation/components/util/PermissionsExt.kt | IacobIonut01 | 614,314,251 | false | null | package ir.hfathi.smart_gallery.core.presentation.components.util
import android.content.Context
import android.content.pm.PackageManager
fun Context.permissionGranted(list: List<String>): Boolean {
var granted = true
list.forEach {
if (checkSelfPermission(it) != PackageManager.PERMISSION_GRANTED) gra... | 65 | null | 57 | 997 | 3510ea658dff358a0ea0716997082d0e06234c83 | 359 | Gallery | Apache License 2.0 |
engine/src/commonMain/kotlin/mogot/Spatial2D.kt | caffeine-mgn | 223,796,620 | false | null | package mogot
import mogot.math.*
import kotlin.contracts.ExperimentalContracts
import kotlin.contracts.contract
private object PositionField2D : AbstractField<Spatial2D, Vector2fc>() {
override val type: Field.Type
get() = Field.Type.VEC2
override val name: String
get() = "position"
ove... | 6 | Kotlin | 0 | 4 | e673acfcb20e2d62d8e68c43d395731bd9d9d882 | 5,089 | mogot | Apache License 2.0 |
example/composeApp/src/commonMain/kotlin/content/examples/PlatformExample.kt | ComposeGears | 751,822,259 | false | {"Kotlin": 134968, "Swift": 619} | package content.examples
import com.composegears.tiamat.NavDestination
expect val PlatformExample: NavDestination<Unit> | 2 | Kotlin | 0 | 99 | fec983b4b15f2a1e5301f2717cba36071b13ccd8 | 121 | Tiamat | Apache License 2.0 |
src/main/kotlin/org/leandreck/kingbob/msgs/RequestMessage.kt | leandreck | 80,449,238 | false | null | package org.leandreck.kingbob.msgs
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import io.netty.util.CharsetUtil
import io.vertx.core.buffer.Buffer
import io.vertx.core.eventbus.MessageCodec
import ... | 0 | Kotlin | 0 | 0 | 944cbd66b8d5861739bc5009ffe48f8a4d9b006f | 1,506 | king-bob-supervisor | Apache License 2.0 |
LjdService1/app/src/main/java/com/example/ljdservice1/MyService.kt | codeelu | 321,927,681 | false | {"Kotlin": 149476, "Java": 5330} | package com.example.ljdservice1
import android.app.Service
import android.content.Intent
import android.os.IBinder
import android.widget.Toast
class MyService : Service() {
override fun onBind(intent: Intent): IBinder {
TODO("Return the communication channel to the service.")
}
override fun onCr... | 0 | Kotlin | 0 | 0 | 86f10c9e6dc8e7ad367fcb48678b418e7a24102d | 787 | Andorid | Apache License 2.0 |
src/main/kotlin/vitorscoelho/dimensionamentosapata/sapata/DimensionamentoOtimizadoSapataRetangular.kt | vitorscoelho | 220,112,937 | false | null | package vitorscoelho.dimensionamentosapata.sapata
import vitorscoelho.dimensionamentosapata.estadio2.CriteriosProcessoIterativo
import vitorscoelho.dimensionamentosapata.estadio2.Esforco
import kotlin.math.absoluteValue
/**
* Os valores mínimos e máximos das dimensões da sapata devem ser múltiplos de 5, pois a varia... | 0 | Kotlin | 0 | 1 | ccc0959fdfd96a190fc614e6215ecd9cce0a35d3 | 3,256 | dimensionamentosapata | Apache License 2.0 |
solar/src/main/java/com/chiksmedina/solar/linear/maplocation/MapArrowDown.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.linear.maplocation
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.Compan... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 1,876 | SolarIconSetAndroid | MIT License |
karibu-dsl/karibu-dsl-testsuite/src/main/kotlin/com/github/mvysny/karibudsl/v10/DetailsTest.kt | mvysny | 92,477,088 | false | null | package com.github.mvysny.karibudsl.v10
import com.github.mvysny.dynatest.DynaNodeGroup
import com.github.mvysny.dynatest.DynaTestDsl
import com.github.mvysny.dynatest.expectList
import com.github.mvysny.kaributesting.v10.MockVaadin
import com.github.mvysny.kaributesting.v10._expectOne
import com.github.mvysny.karibut... | 7 | Kotlin | 14 | 99 | cba06d41a67c0a07893e6af214569e0282637a23 | 1,645 | karibu-dsl | MIT License |
src/main/kotlin/utils/AccountUtils.kt | krikotnenko | 689,073,512 | false | {"Kotlin": 169460} | package utils
fun generateAccountNumber(): Long = 5200000000000000L + (Math.random() * 100000000000000L).toLong()
fun generateCardNumber(): Long = 5200000000000000L + (Math.random() * 100000000000000L).toLong() | 0 | Kotlin | 0 | 0 | 332b375155a77cd07b97cd6d6199d6cdad27d6a5 | 212 | digital-adapter | MIT License |
kotest-extensions/kotest-extensions-koin/src/jvmMain/kotlin/io/kotest/koin/KoinListener.kt | mikhailrasvodin | 247,527,279 | true | {"Kotlin": 2192985, "HTML": 423, "Java": 153} | package io.kotest.koin
import io.kotest.core.listeners.TestListener
import io.kotest.core.test.TestCase
import io.kotest.core.test.TestResult
import org.koin.core.context.startKoin
import org.koin.core.context.stopKoin
import org.koin.core.module.Module
class KoinListener(private val modules: List<Module>) : TestList... | 0 | null | 0 | 0 | e0b9081c3ba77accf54a919575329d4f2c797bd9 | 598 | kotest | Apache License 2.0 |
schedule/src/test/java/com/droidcon/schedule/domain/SessionsUseCasesTest.kt | rockndroid | 219,824,667 | false | null | package com.droidcon.schedule.domain
import kotlinx.coroutines.test.runBlockingTest
import org.junit.Test
class SessionsUseCasesTest {
val getSessions = ScheduleServiceLocator.getSessions
@Test
fun testRequestSessions() {
runBlockingTest {
val sessions = getSessions()
}
... | 2 | Kotlin | 0 | 0 | 01e1bbb55b65ee57f186eb0fd98cbc84ea92b3f9 | 323 | android-droidcon-madrid-19 | Apache License 2.0 |
app/src/main/java/com/faigenbloom/familybudget/domain/budget/CalculateFormulaUseCase.kt | ZakharchenkoWork | 706,155,222 | false | {"Kotlin": 746176} | package com.faigenbloom.familybudget.domain.budget
import com.faigenbloom.familybudget.common.NO_ANSWER
import com.faigenbloom.familybudget.common.fromJson
import com.faigenbloom.familybudget.datasources.db.entities.BudgetLineEntity
import com.faigenbloom.familybudget.ui.budget.Operation
import kotlinx.coroutines.Disp... | 0 | Kotlin | 0 | 0 | e81fa66d6afd5b79d3299583a73378c3ee1463ca | 2,747 | FamilyBudget | Apache License 2.0 |
app/src/main/java/ru/luckycactus/steamroulette/domain/common/coroutine_extensions.kt | luckycactus | 196,364,852 | false | null | package ru.luckycactus.steamroulette.domain.common
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.flow.flow
fun <R> Flow<R>.chunkBuffer(bufferSize: Int): Flow<List<R>> = flow {
var buffer: MutableList<R>? = null
collect { value ->
if (buffer == nu... | 0 | Kotlin | 0 | 5 | c6c2b00ca77f8224145ef3182b1910bd249d76ba | 642 | steam-roulette | Apache License 2.0 |
core/src/main/java/com/mobilepqi/core/domain/usecase/buatkelas/BuatKelasUsecase.kt | acalapatih | 708,105,917 | false | {"Kotlin": 524790} | package com.mobilepqi.core.domain.usecase.buatkelas
import com.mobilepqi.core.data.Resource
import com.mobilepqi.core.data.source.remote.response.buatkelas.BuatKelasPayload
import com.mobilepqi.core.domain.model.buatkelas.BuatKelasModel
import kotlinx.coroutines.flow.Flow
interface BuatKelasUsecase {
fun buatkela... | 0 | Kotlin | 0 | 0 | e4c7c4a93d1c2b1632a45c827b9df76652b0d0f7 | 382 | MobilePQI_mobileApps | MIT License |
src/test/kotlin/com/insyncwithfoo/pyright/configuration/ConfigurationFieldsTest.kt | InSyncWithFoo | 762,967,939 | false | {"Kotlin": 78609, "Python": 1796, "HTML": 471} | package com.insyncwithfoo.pyright.configuration
import com.insyncwithfoo.pyright.PyrightDiagnosticSeverity
import junit.framework.TestCase
import com.insyncwithfoo.pyright.configuration.application.Configurations as ApplicationConfigurations
import com.insyncwithfoo.pyright.configuration.project.Configurations as Proj... | 5 | Kotlin | 0 | 33 | 7d02d73bcbf364c66f6bdd9e4b01f713f1c2e6d6 | 2,185 | pyright-for-pycharm | MIT License |
features/editor/impl/src/main/java/ru/aleshin/features/editor/impl/presentation/models/tasks/UndefinedTaskUi.kt | v1tzor | 638,022,252 | false | {"Kotlin": 1688951} | /*
* 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 writin... | 7 | Kotlin | 31 | 262 | 4238f8d894ab51859b480d339e6b23ab89d79190 | 1,920 | TimePlanner | Apache License 2.0 |
skiko/src/commonMain/kotlin/org/jetbrains/skia/shaper/FontMgrRunIterator.kt | pa-dieter | 403,520,837 | true | {"Kotlin": 949848, "C++": 483039, "Objective-C++": 20299, "Dockerfile": 2368, "JavaScript": 1202, "Shell": 555} | @file:Suppress("NESTED_EXTERNAL_DECLARATION")
package org.jetbrains.skia.shaper
import org.jetbrains.skia.impl.Library.Companion.staticLoad
import org.jetbrains.skia.*
import org.jetbrains.skia.impl.Native
import org.jetbrains.skia.impl.Stats
import org.jetbrains.skia.impl.reachabilityBarrier
import kotlin.jvm.JvmStat... | 0 | null | 0 | 0 | 2d070a54804c16497d00918d969e4cf3c4942018 | 1,485 | skiko | Apache License 2.0 |
sdk/src/main/java/ch/opentransportdata/ojp/data/dto/response/tir/leg/TimedLegDto.kt | openTdataCH | 783,593,283 | false | {"Kotlin": 222756} | package ch.opentransportdata.ojp.data.dto.response.tir.leg
import com.tickaroo.tikxml.annotation.Element
import com.tickaroo.tikxml.annotation.Xml
/**
* Created by Michael Ruppen on 28.06.2024
*/
@Xml(name = "TimedLeg")
data class TimedLegDto(
@Element(name = "LegBoard")
val legBoard: LegBoardDto,
@Elem... | 0 | Kotlin | 0 | 1 | e1ec68eb0f10dbfa48ae6bc35090ca219bd3f761 | 613 | ojp-android | MIT License |
app/src/main/java/com/iamshekhargh/bookslibrary/db/BooksDao.kt | iamShekharGH | 383,197,826 | false | null | package com.iamshekhargh.bookslibrary.db
import androidx.room.*
import com.iamshekhargh.bookslibrary.network.module.res.Result
import kotlinx.coroutines.flow.Flow
/**
* Created by <<-- iamShekharGH -->>
* on 07 July 2021, Wednesday
* at 9:40 PM
*/
@Dao
interface BooksDao {
@Insert(onConflict = OnConflictStra... | 0 | Kotlin | 0 | 0 | d8017ab688b9621eaa88c6508d3c9c8b40b20406 | 631 | BooksLibrary | MIT License |
app/src/test/kotlin/com/awesome/testing/RobolectricCalculatorTest.kt | slawekradzyminski | 259,588,396 | true | {"Kotlin": 6705} | package com.awesome.testing
import android.os.Build
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.runner.RunWith
import org.robolectric.annotation.Config
@RunWith(AndroidJUnit4::class)
@Config(
sdk = [Build.VERSION_CODES.O_MR1]
)
class RobolectricCalculatorTest : CalculatorSpec()
| 0 | Kotlin | 0 | 0 | 063de7e3ffb20e1cc2e49909ddfcf39910472692 | 309 | Kotlin-Espresso-sample | MIT License |
godot-kotlin/godot-library/src/nativeCore/kotlin/godot/core/type/array/EnumArray.kt | utopia-rise | 238,721,773 | false | {"Kotlin": 655494, "Shell": 171} | package godot.core
import godot.Object
import godot.gdnative.godot_array
import godot.internal.type.nullSafe
import kotlinx.cinterop.*
class EnumArray<E : Enum<E>>(val mapper: (Int) -> E) : GodotArray<E>() {
//CONSTRUCTOR
init {
_handle = cValue{}
callNative {
nullSafe(Godot.gdnati... | 17 | Kotlin | 17 | 286 | 8d51f614df62a97f16e800e6635ea39e7eb1fd62 | 6,370 | godot-kotlin-native | MIT License |
core-data/src/main/java/com/sriniketh/core_data/usecases/GetAllSavedHighlightsUseCase.kt | sriniketh | 508,750,949 | false | null | package com.sriniketh.core_data.usecases
import com.sriniketh.core_data.HighlightsRepository
import com.sriniketh.core_models.book.Highlight
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class GetAllSavedHighlightsUseCase @Inject constructor(
private val highlightsRepository: HighlightsRepository... | 0 | Kotlin | 0 | 1 | af2b151f69a574c0075489a68c1cfd85d5675cde | 458 | prose | Apache License 2.0 |
composeApp/src/commonMain/kotlin/com/initium/assignment/domain/repository/IBaseRepoManager.kt | tamnguyenhuy | 873,499,731 | false | {"Kotlin": 84989, "Swift": 621} | package com.initium.assignment.domain.repository
import com.initium.assignment.domain.repository.remote.contracts.IBaseRepo
interface IBaseRepoManager<T> where T : IBaseRepo {
fun <T> getInstance(contract: Any): T
}
| 0 | Kotlin | 0 | 0 | a97588eae884b3053b7593751930ef3fc251e236 | 222 | IB_KMP_Sample | Apache License 2.0 |
app/src/main/java/com/pedrohucb/fitech/view/calculadoraimc/TelaHistoricoDeCalculos.kt | pdrhp | 699,071,981 | false | {"Kotlin": 46800} | package com.pedrohucb.fitech.view.calculadoraimc
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.pedrohucb.fitech.R
import com.pedrohucb.fitech.databinding.ActivityTelaHistoricoDeCalculosBinding
class TelaHistoricoDeCalculos : AppCompatActivity() {
... | 0 | Kotlin | 0 | 0 | d6aa46d7ccb84de2bf5ca3a5e615564d294276cc | 1,210 | FITECH | MIT License |
app/src/main/java/jp/osdn/gokigen/gokigenassets/preference/IPreferenceViewUpdater.kt | MRSa | 747,976,113 | false | {"Kotlin": 424651} | package jp.osdn.gokigen.gokigenassets.preference
interface IPreferenceViewUpdater
{
fun onPreferenceUpdated(key : String)
} | 0 | Kotlin | 0 | 0 | 3dcb93e552314f27bf7edefcfd4869de771da721 | 128 | A01f | Apache License 2.0 |
retrofit/src/main/java/com/crazylegend/retrofit/interceptors/RetryRequestInterceptor.kt | FunkyMuse | 168,687,007 | false | null | package com.crazylegend.retrofit.interceptors
import okhttp3.Interceptor
import okhttp3.Response
import java.io.IOException
/**
* Created by Hristijan on 1/25/19 to long live and prosper !
*/
class RetryRequestInterceptor(private val maxTries:Int = 3) : Interceptor {
@Throws(IOException::class)
override f... | 1 | null | 65 | 612 | c5313d86750a99a89b5c32e8362c9a104787badb | 667 | KAHelpers | MIT License |
m31/src/main/java/ir/farsroidx/m31/memory/Memory.kt | farsroidx | 628,031,941 | false | null | package ir.farsroidx.m31.memory
interface Memory {
fun <T: Any> store(key: String, value: T)
fun <T: Any> getByNull(key: String): T?
fun <T: Any> get(key: String): T
fun <T: Any> get(key: String, alternate: T?): T
fun isKeyStored(key: String): Boolean
fun remove(vararg keys: String)
... | 0 | Kotlin | 0 | 0 | a1dfe768105ccd8900f618ac3ddc84d63f2d39e0 | 334 | andromeda | Apache License 2.0 |
2015/Day02/src/main/kotlin/Main.kt | mcrispim | 658,165,735 | false | null | import java.io.File
fun main() {
fun surface(l: Int, w: Int, h: Int) = 2 * l * w + 2 * w * h + 2 * h * l
fun extraPaper(l: Int, w: Int, h: Int): Int {
val (dim1, dim2) = listOf(l, w, h).sorted().take(2)
return dim1 * dim2
}
fun ribbon(l: Int, w: Int, h: Int): Int {
val (dim1... | 0 | Kotlin | 0 | 0 | 2d3a9b312791b2cb86d86c43f4c1603df6244441 | 1,380 | AdventOfCode | MIT License |
app/src/main/java/com/example/connectnodejs/viewmodels/GenreViewModel.kt | Tuh11343 | 782,797,769 | false | {"Kotlin": 270952} | package com.example.connectnodejs.viewmodels
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.connectnodejs.model.Genre
import com.example.connectnodejs.repository.GenreRepository
class GenreViewModel : ViewModel() {
var firstLoadGenreList = MutableLiveData<Mutable... | 0 | Kotlin | 0 | 0 | 80e1833793bd0bacdd68a6bf9d83da60a28f9bcb | 1,296 | Ebook_Kotlin | Open Market License |
app/src/main/java/top/sogrey/launchmode/SingleInstanceActivity.kt | Sogrey | 162,937,455 | false | null | package top.sogrey.launchmode
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_content.*
class SingleInstanceActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onC... | 0 | Kotlin | 0 | 0 | bd1444cc95346b5ad6253829301f8b68eb5739a5 | 1,072 | LaunchMode | MIT License |
app/src/main/java/com/example/whatsapp/Notifications/MyFirebaseMessaging.kt | RajenRanjithkumar | 540,177,800 | false | {"Kotlin": 87559, "Java": 621} | package com.example.whatsapp.Notifications
import android.app.Notification
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.media.RingtoneManager
import android.os.Build
import android.os.Bundle
import androidx.core.app... | 0 | Kotlin | 0 | 1 | 074f4dc043bfd322fbd71e4e0db3ee0b1734f664 | 4,192 | WhatsApp | Apache License 2.0 |
app/src/main/java/com/moriswala/booking/data/local/FlightDao.kt | moriswala | 423,035,445 | false | {"Kotlin": 58609} | package com.moriswala.booking.data.local
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.moriswala.booking.data.entities.Flight
@Dao
interface FlightDao {
@Query("SELECT * FROM flights")
fun ... | 0 | Kotlin | 0 | 2 | d86c6966951a27e20f464d230ed46cac672af430 | 657 | android-mvvm-architecture-sample | Apache License 2.0 |
plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/dotcover/tool/DotCoverToolType.kt | JetBrains | 49,584,664 | false | {"Kotlin": 2711266, "C#": 319161, "Java": 95520, "Dockerfile": 831, "CSS": 123} | package jetbrains.buildServer.dotcover.tool
enum class DotCoverToolType {
// JetBrains.dotCover.CommandLine NuGet package before 2023.3
WindowsOnly,
// JetBrains.dotCover.CommandLine NuGet package since 2023.3
CrossPlatform,
// JetBrains.dotCover.DotNetCli NuGet package
DeprecatedCrossPlatfor... | 3 | Kotlin | 25 | 94 | c7f12409b67420d5655780ce6e50638ce4ca1f8d | 338 | teamcity-dotnet-plugin | Apache License 2.0 |
app/src/androidTest/java/com/dscoding/takenoteapp/presentation/TakeNoteEndToEndTest.kt | diogosantos41 | 507,406,921 | false | {"Kotlin": 172730, "HTML": 8360} | @file:OptIn(ExperimentalFoundationApi::class, ExperimentalAnimationApi::class)
package com.dscoding.takenoteapp.presentation
import android.content.Context
import androidx.activity.compose.setContent
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.ExperimentalFoundationApi... | 0 | Kotlin | 0 | 0 | c1deb908c32772841aaabedfcbe630a646ed54ce | 9,014 | takenote-android | MIT License |
app/src/main/java/com/example/hrautomation/presentation/view/restaurants/restaurant_details/RestaurantDetailsState.kt | SasikSiderking | 547,823,297 | false | {"Kotlin": 314104} | package com.example.hrautomation.presentation.view.restaurants.restaurant_details
import com.example.hrautomation.presentation.model.restaurants.RestaurantItem
import com.example.hrautomation.presentation.model.restaurants.ReviewItem
data class RestaurantDetailsState(val restaurant: RestaurantItem, val reviews: List<... | 7 | Kotlin | 0 | 0 | 3d2c320acc9a144bc190891d79ea03a7fd6be389 | 464 | HRautomation | MIT License |
funcify-feature-eng-naming/src/main/kotlin/funcify/feature/naming/charseq/operation/CharSequenceMapOperation.kt | anticipasean | 458,910,592 | false | {"Kotlin": 2751524, "HTML": 1817} | package funcify.feature.naming.charseq.operation
/**
*
* @author smccarron
* @created 3/12/22
*/
interface CharSequenceMapOperation<CS, CSI> : CharSequenceOperation<CS, CSI>,
(CSI) -> CSI {
override fun invoke(input: CSI): CSI
} | 0 | Kotlin | 0 | 0 | 851ad6c0e7480ce72df32fd0e3d021909c4536f9 | 286 | funcify-feature-eng | Apache License 2.0 |
src/test/kotlin/g3101_3200/s3197_find_the_minimum_area_to_cover_all_ones_ii/SolutionTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4870729, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g3101_3200.s3197_find_the_minimum_area_to_cover_all_ones_ii
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
internal class SolutionTest {
@Test
fun minimumSum() {
assertThat(
Solution().minimumSum(arrayOf(intAr... | 0 | Kotlin | 20 | 43 | e8b08d4a512f037e40e358b078c0a091e691d88f | 586 | LeetCode-in-Kotlin | MIT License |
intellijPlugin/src/main/kotlin/pw/binom/glsl/GLSLFoldingBuilder.kt | caffeine-mgn | 223,796,620 | false | null | package pw.binom.glsl
import com.intellij.lang.ASTNode
import com.intellij.lang.folding.FoldingBuilder
import com.intellij.lang.folding.FoldingDescriptor
import com.intellij.openapi.editor.Document
import pw.binom.glsl.psi.GLSLTypes
import java.util.*
class GLSLFoldingBuilder : FoldingBuilder {
override fun getP... | 6 | Kotlin | 0 | 4 | e673acfcb20e2d62d8e68c43d395731bd9d9d882 | 1,322 | mogot | Apache License 2.0 |
buildSrc/src/main/kotlin/Versions.kt | huynn109 | 461,393,531 | false | {"Kotlin": 12057} | object Versions {
const val gradlePlugin = "1.5.30"
const val kotlin = "1.6.10"
const val timber = "4.7.1"
const val appCompat = "1.4.1"
const val material = "1.5.0"
const val constraintLayout = "2.1.3"
const val jUnit = "4.13.2"
}
| 0 | Kotlin | 2 | 2 | 2a5cef05b643d2c7c1c7c0cbc03e04b53cf8231c | 262 | increase_decrease_button | Apache License 2.0 |
2024/FireShell/RpcAgent/src/jsMain/kotlin/KtNodeSvr.kt | kyoya-p | 253,926,918 | false | {"Kotlin": 936789, "JavaScript": 85088, "HTML": 66635, "TypeScript": 55667, "Java": 30207, "C++": 29172, "CMake": 20891, "Dart": 14886, "Shell": 7841, "Batchfile": 6227, "CSS": 6205, "Dockerfile": 4906, "C": 3042, "Swift": 1622, "PowerShell": 234, "Objective-C": 78} | import dev.gitlive.firebase.Firebase
import dev.gitlive.firebase.FirebaseOptions
import dev.gitlive.firebase.firestore.*
import dev.gitlive.firebase.initialize
import kotlin.coroutines.resume
import kotlin.coroutines.resumeWithException
import kotlin.coroutines.suspendCoroutine
external val process: dynamic
val opti... | 16 | Kotlin | 0 | 2 | 1b0c90f02ecf5907eabbdd2e4f5f49e6d27d204e | 2,410 | samples | Apache License 2.0 |
Student alumni/StudentDetails/app/src/main/java/com/example/studentdetails/StudentDatabse.kt | Jaisaireddy | 823,983,892 | false | {"Kotlin": 12147} | package com.example.studentdetails
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
@Database(entities = [StudentEntity::class], version = 1)
abstract class StudentDatabase : RoomDatabase() {
abstract fun studentDao(): StudentDao
compa... | 0 | Kotlin | 0 | 0 | 8ec5a87b9f0772573782af3fb01eb3a139c05370 | 770 | Student-Alumni | MIT License |
transactiondetails/domain/src/main/java/kambo/klodian/transactiondetails/domain/MyClass.kt | KlodianKambo | 747,030,063 | false | {"Kotlin": 22878} | package kambo.klodian.transactiondetails.domain
class MyClass {
} | 0 | Kotlin | 0 | 0 | 1dba37a3a26a37cb44788b185042cef8c6569236 | 66 | mywallet | MIT License |
app/src/main/java/com/example/android/trackmysleepquality/sleeptracker/SleepTrackerFragment.kt | ardakazanci | 199,505,358 | false | null | /*
* Copyright 2019, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 95c1c359dbcef13c5663a42748178a721c5d34a9 | 4,538 | TrackMySleepQuality-Final | Apache License 2.0 |
src/commonMain/kotlin/io/github/optimumcode/json/schema/internal/factories/object/DependenciesAssertionFactory.kt | OptimumCode | 665,024,908 | false | {"Kotlin": 494076} | package io.github.optimumcode.json.schema.internal.factories.`object`
import io.github.optimumcode.json.schema.internal.JsonSchemaAssertion
import io.github.optimumcode.json.schema.internal.LoadingContext
import io.github.optimumcode.json.schema.internal.TrueSchemaAssertion
import io.github.optimumcode.json.schema.int... | 7 | Kotlin | 3 | 9 | 61e36f29adaf6538fd38307296cc5dd1339e1ffa | 1,546 | json-schema-validator | MIT License |
src/main/kotlin/com/example/invitation/domain/card/CardCreateVo.kt | potenday-project | 618,864,616 | false | null | package com.example.invitation.domain.card
data class CardCreateVo(
val cardTemplateId: Long,
val cardTemplateItemIds: List<Long>,
)
| 0 | Kotlin | 0 | 1 | 90722f5fe33aa4b50c51e99c5ea5bb7b1f3ba99a | 142 | cakku-backend | MIT License |
src/main/kotlin/com/example/invitation/domain/card/CardCreateVo.kt | potenday-project | 618,864,616 | false | null | package com.example.invitation.domain.card
data class CardCreateVo(
val cardTemplateId: Long,
val cardTemplateItemIds: List<Long>,
)
| 0 | Kotlin | 0 | 1 | 90722f5fe33aa4b50c51e99c5ea5bb7b1f3ba99a | 142 | cakku-backend | MIT License |
example/src/commonMain/kotlin/vip/cdms/orecompose/example/Theme.kt | Cdm2883 | 796,016,358 | false | {"Kotlin": 104805, "HTML": 344, "CSS": 103} | package vip.cdms.orecompose.example
import androidx.compose.animation.core.RepeatMode
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Comp... | 0 | Kotlin | 0 | 7 | 45318c5265940b97d0e5d0784378403aaca735e5 | 1,647 | OreCompose | Apache License 2.0 |
src/test/kotlin/net/jp/vss/visitscheduler/domain/schools/SchoolTest.kt | nemuzuka | 231,857,499 | false | null | package net.jp.vss.visitscheduler.domain.schools
import net.jp.vss.visitscheduler.DatetimeUtils
import net.jp.vss.visitscheduler.domain.Attributes
import net.jp.vss.visitscheduler.domain.ResourceAttributes
import net.jp.vss.visitscheduler.domain.exceptions.UnmatchVersionException
import net.jp.vss.visitscheduler.domai... | 18 | Kotlin | 0 | 0 | fdd558e5b8bd426057977d8b25cafa28feaaeb30 | 2,810 | visit-scheduler | Apache License 2.0 |
app/src/main/java/br/com/jxr/cstv/data/remote/mappers/PlayerMapper.kt | joaoreis | 516,848,448 | false | {"Kotlin": 41799} | package br.com.jxr.cstv.data.remote.mappers
import br.com.jxr.cstv.data.remote.dto.PlayerDto
import br.com.jxr.cstv.domain.model.Player
internal fun PlayerDto.toPlayer(): Player =
Player(
id = id,
name = name,
firstName = firstName.orEmpty(),
lastName = lastName.orEmpty(),
... | 0 | Kotlin | 0 | 0 | 79d3d78d98327a59c995c1d2b8214e7e1f066d45 | 346 | cstv | MIT License |
annotations-runtime/src/main/kotlin/com/github/dynamicextensionsalfresco/quartz/QuartzJobRegistrar.kt | yregaieg | 81,096,474 | true | {"Gradle": 12, "INI": 4, "Shell": 1, "Text": 6, "Ignore List": 1, "YAML": 1, "Markdown": 1, "Java": 277, "XML": 34, "Kotlin": 39, "Java Properties": 3, "JavaScript": 6, "CSS": 5, "FreeMarker": 6, "Fluent": 4, "Groovy": 10} | //package com.github.dynamicextensionsalfresco.quartz
//
//import com.github.dynamicextensionsalfresco.debug
//import com.github.dynamicextensionsalfresco.jobs.ScheduledQuartzJob
//import org.quartz.*
//import org.slf4j.LoggerFactory
//import org.springframework.beans.factory.DisposableBean
//import org.springframework... | 0 | Java | 0 | 0 | fbebab021dee67bd59e06c12f088013a5e23f548 | 3,048 | dynamic-extensions-for-alfresco | Apache License 2.0 |
FlowLayout/app/src/main/java/com/blog/flowlayout/MainActivity.kt | jhwsx | 286,041,929 | false | null | package com.blog.flowlayout
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.TypedValue
import android.view.Menu
import android.view.MenuItem
import android.view.ViewGroup
import android.view.ViewGroup.LayoutParams.WRAP_CONTENT
import android.widget.TextView
import com.blog.... | 0 | null | 12 | 14 | 4f0270c31b0e1d3751f1e15bcc88ac4474b8d17a | 3,700 | BlogCodes | Apache License 2.0 |
src/test/java/spec/generator/specparser/NodeExpressionScanner.kt | t1 | 131,939,529 | false | null | package spec.generator.specparser
import com.github.t1.codepoint.CodePoint
import com.github.t1.codepoint.CodePoint.Companion.EOF
import com.github.t1.yaml.tools.Scanner
import com.github.t1.yaml.tools.token
import org.jsoup.nodes.Element
import org.jsoup.nodes.Node
import org.jsoup.nodes.TextNode
/**
* Scans an htm... | 1 | Kotlin | 1 | 1 | df6bfdf66012fcec60e4f8b8c76a8d31efb84f81 | 3,319 | yaml | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.