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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Uebungsaufgabe_Cryptohack/app/src/main/java/com/example/cryptohack/network/CryptoCurrency.kt | 74benet | 730,405,758 | false | {"Kotlin": 49758} | package com.example.cryptohack.network
data class CryptoCurrency(
val id: String,
val rank: Int,
val symbol: String,
val name: String,
val supply: Double,
val maxSupply: Double?,
val marketCapUsd: Double,
val volumeUsd24Hr: Double,
val priceUsd: Double,
val changePercent24Hr: Do... | 0 | Kotlin | 0 | 0 | 70d1e4ce52663e1f98cc37ef1e94ec431e88863e | 381 | TicTacToe | MIT License |
app/src/main/java/com/leonra/versions/extensions/ImageView.kt | LeonRa | 347,512,789 | false | null | package com.leonra.versions.extensions
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
import com.leonra.versions.R
/**
* Convenience wrapper around [Glide]'s url image loading.
*/
fun ImageView.load(imageUrl: String) =
G... | 0 | Kotlin | 0 | 0 | cb6728227a5cc548c0bbad6c0a172d5f9f2d1b26 | 545 | AndroidVersions | Apache License 2.0 |
core/src/main/java/com/alexllanas/core/interactors/home/GetPlaylist.kt | alexllanas | 473,371,200 | false | {"Kotlin": 428820} | package com.alexllanas.core.interactors.home
import com.alexllanas.core.data.remote.playlist.PlaylistDataSource
class GetPlaylist(private val playlistDataSource: PlaylistDataSource) {
suspend operator fun invoke(playlistId: String) = playlistDataSource.getPlaylist(playlistId)
} | 1 | Kotlin | 0 | 5 | 45fee02ca03aa9a66c974759ddf54bdce515e47b | 284 | open-audio | MIT License |
android/app/src/main/java/com/algorand/android/models/LineChartTheme.kt | perawallet | 364,359,642 | false | {"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596} | /*
* Copyright 2022 Pera Wallet, LDA
* 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 writing,... | 22 | Swift | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 928 | pera-wallet | Apache License 2.0 |
app/src/main/java/com/chiuxah/picturecube/ui/utils/Empty.kt | Chiu-xaH | 789,290,870 | false | {"Kotlin": 29504} | package com.chiuxah.picturecube.ui.utils
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.size
import androidx.compose.material.icons.Icons
import androidx.compose.materia... | 0 | Kotlin | 0 | 0 | 7f00b97a0c5ac3587ce0a75ccabb2a3e8478e650 | 1,094 | PictureCube | Apache License 2.0 |
app/src/main/java/com/mateusz113/financemanager/presentation/payments/payment_details/components/PaymentDetailsInfoBlock.kt | Mateusz113 | 723,729,693 | false | null | package com.mateusz113.financemanager.presentation.payments.payment_details.components
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.founda... | 0 | null | 0 | 2 | 99aa337be58e6f47b8da39052fe6783a9af0663c | 3,692 | Finance-Manager | MIT License |
ChatroomUIKit/src/main/java/io/agora/chatroom/viewmodel/member/MemberListViewModel.kt | apex-wang | 728,010,838 | false | {"Kotlin": 497622} | package io.agora.chatroom.viewmodel.member
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import io.agora.chatroom.ChatroomUIKitClient
import io.agora.chatroom.model.toUser
import io.agora.chatroom.service.ChatLog
import io.agora.chatroom.service.OnError
import io.agora.cha... | 0 | Kotlin | 0 | 0 | 20b1ff03d06d87d44565e322ccf9abced24264c5 | 10,064 | test | MIT License |
app/src/main/java/com/example/linkyishop/ui/linkyi/LinkyiFragment.kt | Linkyi-Shop | 804,915,743 | false | {"Kotlin": 183601} | package com.example.linkyishop.ui.linkyi
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import android... | 0 | Kotlin | 0 | 0 | 6be7acc69abde5f4b57aacc0c15f804fe5aff416 | 2,907 | linkyi-mobile | MIT License |
aTalk/src/main/java/net/java/sip/communicator/plugin/loggingutils/LogsCollector.kt | cmeng-git | 704,328,019 | false | {"Kotlin": 14881680, "Java": 2824517, "C": 275021, "Shell": 49200, "Makefile": 28273, "C++": 13642, "HTML": 7793, "CSS": 3127, "JavaScript": 2758, "AIDL": 375} | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* 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 requi... | 0 | Kotlin | 0 | 0 | 14eb01d2ba3728c63b7dd849a6ede93570f167ed | 8,336 | atalk-hmos | Apache License 2.0 |
feature_home/src/main/kotlin/com/battagliandrea/marvelapi/feature/home/di/HomeComponent.kt | battagliandrea | 315,003,689 | false | null | package com.battagliandrea.marvelapi.feature.home.di
import com.battagliandrea.marvelapi.core.di.CoreComponent
import com.battagliandrea.marvelapi.core.di.scope.FeatureScope
import dagger.Component
@FeatureScope
@Component(
modules = [HomeModule::class],
dependencies = [CoreComponent::class]
)
interfa... | 0 | Kotlin | 0 | 0 | 8b33ce6cbde495057def0666a36ae328723a3f9f | 593 | MarvelApi | Apache License 2.0 |
interpreter/src/commonTest/kotlin/com/sunnychung/lib/multiplatform/kotlite/test/LexerTokenTest.kt | sunny-chung | 783,528,970 | false | {"Kotlin": 1588541} | package com.sunnychung.lib.multiplatform.kotlite.test
import com.sunnychung.lib.multiplatform.kotlite.lexer.Lexer
import com.sunnychung.lib.multiplatform.kotlite.model.Token
import com.sunnychung.lib.multiplatform.kotlite.model.TokenType
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assert... | 0 | Kotlin | 0 | 0 | 7073ac3a4b742a9e4da08501216f67236939702c | 2,612 | kotlite | MIT License |
src/main/java/tdc/property/PropertyGetter.kt | metatrading | 162,954,334 | false | null | package tdc.property
import com.typesafe.config.Config
abstract class PropertyGetter {
operator fun get(key: String?): String {
return config.getString(key)
}
protected abstract val config: Config
} | 1 | null | 1 | 1 | 2cafbddd9a34190f7bf2431e748cdf274c16a890 | 221 | TestDataCreator | The Unlicense |
app/src/main/java/com/joe/transactionsapp/business/data/network/NetworkConstants.kt | jizhe7550 | 389,596,293 | false | null | package com.joe.transactionsapp.business.data.network
object NetworkConstants {
const val NETWORK_TIMEOUT = 60000L
} | 0 | Kotlin | 1 | 3 | 6b0c238fba80dd040765b90c108145869dae15b2 | 122 | TransactionsApp | MIT License |
src/main/kotlin/com/dude/dms/ui/components/dialogs/DocMultiSelectDialog.kt | axelvondreden | 208,427,538 | false | null | package com.dude.dms.ui.components.dialogs
import com.dude.dms.backend.containers.DocContainer
import com.dude.dms.brain.options.Options
import com.dude.dms.brain.t
import com.dude.dms.ui.components.cards.DocCard
import com.dude.dms.utils.docCard
import com.github.mvysny.karibudsl.v10.*
import com.vaadin.flow.componen... | 46 | Kotlin | 1 | 3 | 418c7df3589b85c934f0da13642f14aa4c66a851 | 3,057 | dms | Apache License 2.0 |
app/src/main/java/com/wtmberlin/util/BindingViewHolder.kt | victorvicari | 194,317,992 | true | {"Kotlin": 73092} | package com.wtmberlin.util
import androidx.databinding.ViewDataBinding
import androidx.recyclerview.widget.RecyclerView
import com.wtmberlin.BR
class BindingViewHolder(private val binding: ViewDataBinding) : RecyclerView.ViewHolder(binding.root) {
fun bind(item: Any, callbacks: Any? = null) {
binding.set... | 0 | Kotlin | 0 | 0 | 4ba949686b779207cad5bd3d5206f9d0337267d3 | 445 | WTMBApp | Apache License 2.0 |
elasticmagic-transport/src/commonMain/kotlin/dev/evo/elasticmagic/transport/TransportError.kt | anti-social | 344,848,222 | false | {"Kotlin": 911436} | package dev.evo.elasticmagic.transport
import dev.evo.elasticmagic.serde.Deserializer
import dev.evo.elasticmagic.serde.DeserializationException
import dev.evo.elasticmagic.serde.forEach
import dev.evo.elasticmagic.serde.toMap
import kotlin.reflect.KFunction1
data class ErrorReason(
val type: String,
val reas... | 9 | Kotlin | 4 | 45 | 5581d20c0934c3a9d60541d23bc5a256458f3ac1 | 6,595 | elasticmagic-kt | Apache License 2.0 |
src/main/kotlin/me/chill/utility/GeneralUtility.kt | woojiahao | 145,920,296 | false | null | package me.chill.utility
import com.google.gson.Gson
import com.google.gson.JsonElement
import com.google.gson.JsonObject
import org.joda.time.DateTime
import org.joda.time.format.DateTimeFormat
import java.net.HttpURLConnection
import java.net.URL
fun getDateTime() = DateTimeFormat.forPattern("dd-MM-yyyy HH:mm:ss").... | 10 | Kotlin | 12 | 19 | f55e6dc4897096b40c77580b5a4f3417ca563b34 | 1,119 | Taiga | MIT License |
lib/src/commonMain/kotlin/xyz/mcxross/zero/serializer/DynamicSerializer.kt | mcxross | 703,434,925 | false | {"Kotlin": 243562} | package xyz.mcxross.zero.serializer
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.PrimitiveKind
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.encoding.Decoder
import kotlinx.s... | 1 | Kotlin | 0 | 6 | 88e22cfb4970317e298d13b758c5fd3e9d634c62 | 705 | zeroauth | Apache License 2.0 |
src/main/kotlin/com/alcosi/nft/apigateway/config/db/redis/RedisConfig.kt | alcosi | 713,491,219 | false | {"Kotlin": 607536, "HTML": 4727, "PLpgSQL": 1275, "JavaScript": 1127, "CSS": 824} | /*
* Copyright (c) 2023 Alcosi Group Ltd. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 0 | Kotlin | 0 | 0 | ffa0409d568c8e4e05ee6aa1c3b83fd2c10954ca | 3,791 | alcosi_blockchain_api_gateway | Apache License 2.0 |
diskordin-base/src/main/kotlin/org/tesserakt/diskordin/rest/service/InviteService.kt | ITesserakt | 218,969,129 | false | null | package org.tesserakt.diskordin.rest.service
import org.tesserakt.diskordin.core.data.json.response.InviteResponse
import org.tesserakt.diskordin.core.entity.`object`.IInvite
interface InviteService {
suspend fun getInvite(code: String): InviteResponse<IInvite>
suspend fun deleteInvite(code: String)
} | 1 | Kotlin | 1 | 12 | e93964fcb5ecb0e1d03dd0fc7d3dd2637a0e08ae | 313 | diskordin | Apache License 2.0 |
feature-swap-impl/src/main/java/io/novafoundation/nova/feature_swap_impl/data/assetExchange/hydraDx/stableswap/TokensApi.kt | novasamatech | 415,834,480 | false | {"Kotlin": 10814880, "Rust": 25308, "Java": 17664, "JavaScript": 425} | package io.novafoundation.nova.feature_swap_impl.data.assetExchange.hydraDx.stableswap
import io.novafoundation.nova.common.data.network.runtime.binding.AccountBalance
import io.novafoundation.nova.common.data.network.runtime.binding.bindNumber
import io.novafoundation.nova.common.data.network.runtime.binding.bindOrml... | 13 | Kotlin | 7 | 37 | a50a3638e827e4267a1a4d3ef3db9c88501ffe51 | 1,895 | nova-wallet-android | Apache License 2.0 |
app/src/main/java/com/github/vitorfg8/pettracks/domain/model/Vaccine.kt | vitorfg8 | 762,248,139 | false | {"Kotlin": 138318} | package com.github.vitorfg8.pettracks.domain.model
import java.util.Date
data class Vaccine(
val id: Int = 0,
val petId: Int,
val vaccineName: String,
val dateTaken: Date
)
| 0 | Kotlin | 0 | 0 | f619a66db3adbbc2ab5b0255694dd4283e147720 | 191 | PetTracks | MIT License |
platform-rest/src/main/kotlin/org/ossiaustria/amigo/platform/config/security/AuthenticationProvider.kt | ossi-austria | 430,611,101 | false | null | package org.ossiaustria.amigo.platform.config.security
import org.ossiaustria.amigo.platform.domain.services.auth.AuthService
import org.ossiaustria.amigo.platform.domain.services.auth.TokenUserDetails
import org.springframework.context.annotation.Configuration
import org.springframework.security.authentication.BadCre... | 0 | Kotlin | 0 | 1 | 0d19a0b0c4d7d55a8f9b74bf2632ea655e373deb | 2,091 | amigo-server | MIT License |
api/src/main/java/pers/apollokwok/ksputil/Log.kt | ApolloKwok | 595,448,556 | false | null | package pers.apollokwok.ksputil
import com.google.devtools.ksp.symbol.FileLocation
import com.google.devtools.ksp.symbol.KSDeclaration
import com.google.devtools.ksp.symbol.KSNode
import com.google.devtools.ksp.symbol.NonExistLocation
import pers.apollokwok.ktutil.updateIf
import kotlin.contracts.contract
/**
* This... | 0 | Kotlin | 0 | 2 | bf95349c81d5d1a4ef9aa000d4f95a4cd8d76937 | 4,428 | KspUtil | Apache License 2.0 |
detekt-rules/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/ModifierOrderSpec.kt | mlegy | 146,822,393 | true | {"Gradle": 12, "YAML": 37, "INI": 2, "Markdown": 111, "Shell": 8, "Text": 4, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "EditorConfig": 1, "XML": 5, "Groovy": 1, "Kotlin": 494, "Gemfile.lock": 1, "HTML": 45, "Dockerfile": 1, "JSON": 2, "Ruby": 1, "SVG": 4, "CSS": 9, "JavaScript": 6, "Java": 3} | package io.gitlab.arturbosch.detekt.rules.style
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.test.TestConfig
import io.gitlab.arturbosch.detekt.test.lint
import org.assertj.core.api.Assertions.assertThat
import org.jetbrains.spek.api.dsl.given
import org.jetbrains.spek.api.dsl.it
im... | 3 | Kotlin | 0 | 1 | c37812e0b8af0ec304fcefce5152dfc9845d52c8 | 2,929 | detekt | Apache License 2.0 |
app/src/main/java/com/td/techdotmusicplayer/presentation/playlist/OnPlaylistAdapterListener.kt | crazeapps2018 | 729,740,395 | false | {"Kotlin": 63751} | package com.td.techdotmusicplayer.presentation.playlist
import com.td.techdotmusicplayer.data.model.Song
/**
* To make an interaction between [PlaylistActivity] & [PlaylistAdapter]
*
* @author TechDharamveer
* **/
interface OnPlaylistAdapterListener {
fun playSong(song: Song,songs:ArrayList<Song>)
fun rem... | 0 | Kotlin | 0 | 0 | 98bdf803c258b3e2981b01b943c6378b011a62fd | 345 | TechDotMusicPlayer | Apache License 2.0 |
app/src/main/java/com/meergruen/time_sheets/db/TimeSheetItemDao.kt | meergruen | 254,933,248 | false | null | package com.meergruen.time_sheets.db
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
@Dao
interface TimeSheetItemDao {
@Query("SELECT * FROM time_sheet_items")
fun getItems(): List<TimeSheetItemEntity>
@Insert
suspend fun insertAll(timeSheetItemEntities: List<TimeSheet... | 0 | Kotlin | 0 | 0 | 60908ff5142a37b1b0caa85aefe36220138e464b | 335 | timesheets | MIT License |
core/database/src/main/java/org/expenny/core/database/model/embedded/FileEmbedded.kt | expenny-application | 712,607,222 | false | {"Kotlin": 1159082} | package org.expenny.core.database.model.embedded
import androidx.room.Embedded
import androidx.room.Relation
import org.expenny.core.database.model.entity.FileEntity
import org.expenny.core.database.model.entity.ProfileEntity
data class FileEmbedded(
@Embedded
val file: FileEntity,
@Relation(
par... | 0 | Kotlin | 3 | 42 | 0eb0f1fa9a4376c3ad2222d16ec704754f7f0786 | 425 | expenny-android | Apache License 2.0 |
domain/src/main/kotlin/com/xinh/domain/exception/Error.kt | HuynhXinh | 209,346,576 | false | null | package com.xinh.domain.exception
data class Error(
var code: String? = null,
var msg: String? = null
) | 1 | null | 5 | 19 | 6a704f65592b2bfbb2363697885b871209775b96 | 112 | mvvm-clean-architecture | The Unlicense |
ui/src/commonMain/kotlin/kosh/ui/navigation/animation/stackAnimationFadeThrough.kt | niallkh | 855,100,709 | false | {"Kotlin": 1849939, "Swift": 768} | package kosh.ui.navigation.animation
import androidx.compose.animation.ContentTransform
import com.arkivanov.decompose.extensions.compose.stack.animation.StackAnimation
fun <C : Any, T : Any> stackAnimationFadeThrough(): StackAnimation<C, T> =
MaterialStackAnimation(
pushTransform = {
ContentT... | 0 | Kotlin | 0 | 3 | 8c4e7087fd09f5d766b17560528abe055655ae24 | 742 | kosh | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/Comments.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.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.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,035 | icons | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/stepfunctions/tasks/StoppingConditionDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.stepfunctions.tasks
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.stepfunctions.tasks.StoppingCondition
@Generated
public fun buildStoppingCondition(initializer: @AwsCdkDsl StoppingCon... | 1 | Kotlin | 0 | 0 | 451a1e42282de74a9a119a5716bd95b913662e7c | 427 | aws-cdk-kt | Apache License 2.0 |
app/src/main/java/com/xinzeyijia/houselocks/model/http/apiservice/HomeApiService.kt | db222492 | 315,222,227 | false | null | package com.xinzeyijia.houselocks.model.http.apiservice
import com.xinzeyijia.houselocks.base.BaseBean
import com.xinzeyijia.houselocks.base.HomeData
import com.xinzeyijia.houselocks.base.PicBean
import com.xinzeyijia.houselocks.model.http.Urls
import io.reactivex.Observable
import okhttp3.MultipartBody
import retrofi... | 1 | null | 1 | 1 | be8f9b8b32f2081eff640566f4cf949302af0239 | 1,834 | kotlin_mvp_app | Apache License 2.0 |
app/src/main/java/com/example/newsapiclient/domain/usecase/GetSearchedNewsUseCase.kt | vluk4 | 508,538,794 | false | {"Kotlin": 41550} | package com.example.newsapiclient.domain.usecase
import com.example.newsapiclient.data.model.APIResponse
import com.example.newsapiclient.data.util.Resource
import com.example.newsapiclient.domain.repository.NewsRepository
class GetSearchedNewsUseCase(private val newsRepository: NewsRepository) {
suspend fun exe... | 0 | Kotlin | 0 | 0 | 4c5527d063884b6b05326ebdc4efcf6981d739bb | 474 | NewsApp | Apache License 2.0 |
plugin/src/main/kotlin/com/jraska/module/graph/LongestPath.kt | horowitz | 472,794,466 | true | {"Kotlin": 51786} | package com.jraska.module.graph
import kotlinx.serialization.Serializable
@Serializable
data class LongestPath(
val nodeNames: List<String>
) {
fun pathString(): String {
return nodeNames.joinToString(" -> ")
}
override fun toString() = "'${pathString()}'"
}
| 0 | Kotlin | 0 | 1 | 615d496bd2ffd469d59e23105a5cf3690c7b1518 | 274 | modules-graph-assert | Apache License 2.0 |
plugin/src/main/kotlin/com/jraska/module/graph/LongestPath.kt | horowitz | 472,794,466 | true | {"Kotlin": 51786} | package com.jraska.module.graph
import kotlinx.serialization.Serializable
@Serializable
data class LongestPath(
val nodeNames: List<String>
) {
fun pathString(): String {
return nodeNames.joinToString(" -> ")
}
override fun toString() = "'${pathString()}'"
}
| 0 | Kotlin | 0 | 1 | 615d496bd2ffd469d59e23105a5cf3690c7b1518 | 274 | modules-graph-assert | Apache License 2.0 |
app/src/main/java/me/stanis/apps/minwos/ui/notification/NetworkNotificationFactory.kt | fstanis | 267,702,828 | false | null | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 3 | 798046449dea912378337243aee3c33c1b28a152 | 3,328 | miNWos | Apache License 2.0 |
async-ms-connection/src/main/kotlin/br/usp/asyncmsconnection/service/friendship/FriendshipService.kt | LucasMorettoSilva | 567,919,246 | false | {"Kotlin": 46192, "Dockerfile": 9153, "Shell": 276} | package br.usp.asyncmsconnection.service.friendship
import br.usp.asyncmsconnection.model.entity.Friendship
interface FriendshipService {
fun save(friendship: Friendship): Friendship
fun exists(friendship: Friendship): Boolean
fun findAll(): List<Friendship>
fun find(userEmail1: String, userEmail2... | 0 | Kotlin | 0 | 0 | 02e8925115ac1c3ebb4936cab83ee6a41b39204f | 345 | pingr-async | MIT License |
app/src/main/java/com/abuffseagull/tannustemplate/WarmupFragment.kt | ABuffSeagull | 168,433,908 | false | null | package com.abuffseagull.tannustemplate
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TableRow
import android.widget.TextView
import androidx.navigation.findNavController
import kotlinx.and... | 0 | Kotlin | 0 | 0 | 565bc16e8c760d9ef73fb6693a440684510f5e7f | 2,164 | TannusTemplate | MIT License |
app/src/main/java/top/yogiczy/mytv/data/repositories/GithubRepositoryImpl.kt | yaoxieyoulei | 784,724,425 | false | {"Kotlin": 141358, "HTML": 14393} | package top.yogiczy.mytv.data.repositories
import android.util.Log
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import okhttp3.OkHttpClient
import okhttp3.Request
import org.json.JSONArray
import org.json.JSONObject
import top.yogiczy.mytv.data.entities.GithubRelease
import top.yogiczy.m... | 2 | Kotlin | 2 | 5 | ccb342c61394ca1d129041219c1317197c773d04 | 1,556 | mytv-android | MIT License |
app/src/main/java/com/droidhats/campuscompass/views/SettingsFragment.kt | RobertBeaudenon | 232,313,026 | false | null | package com.droidhats.campuscompass.views
import android.app.AlertDialog
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageButton
import android.widget.Switch
import androidx.core.view.GravityComp... | 4 | Kotlin | 4 | 7 | ea136a60a71f5d393f4a5688e86b9c56c6bea7b6 | 6,291 | SOEN390-CampusGuideMap | MIT License |
app/src/main/java/ss/team16/nthulostfound/domain/usecase/GetItemUseCase.kt | NTHULostFound | 503,250,151 | false | null | package ss.team16.nthulostfound.domain.usecase
import ss.team16.nthulostfound.data.source.ItemsDatabase
import ss.team16.nthulostfound.domain.model.ItemData
import ss.team16.nthulostfound.domain.repository.ItemRepository
class GetItemUseCase(
private val itemRepository: ItemRepository,
private val itemsDataba... | 0 | Kotlin | 0 | 2 | 5b4b880abb320e5ebd2b03c3cc1da4a94012abcc | 608 | NTHULostFound | MIT License |
domain/src/main/java/com/example/domain/BookmarkUseCaseImpl.kt | victory316 | 660,866,016 | false | null | package com.example.domain
import com.example.domain.repository.BookmarkRepository
import javax.inject.Inject
class BookmarkUseCaseImpl @Inject constructor(
private val bookmarkRepository: BookmarkRepository
) : BookmarkUseCase {
override fun loadBookmarks(): List<String> {
return bookmarkRepository.... | 9 | Kotlin | 0 | 0 | 90efd575940a06b31b3e84bdebc4f9a1ce5d6737 | 624 | LatestEffort | Apache License 2.0 |
smartthings/src/main/java/ke/co/appslab/smartthings/HomeActivity.kt | wangerekaharun | 170,553,096 | false | null | package ke.co.appslab.smartthings
import android.os.Bundle
import androidx.fragment.app.FragmentActivity
class HomeActivity : FragmentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_home)
}
}
| 1 | Kotlin | 0 | 4 | 910329ce6b682ca3cfecd23870090489281a5e9b | 307 | SmartHome | MIT License |
rechargedkotlinlibrary/src/main/java/com/david/rechargedkotlinlibrary/internal/hardware/devices/sensors/encoders/E4T.kt | RechargedGreen | 148,571,714 | true | {"Gradle": 8, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 9, "HTML": 336, "CSS": 1, "JavaScript": 1, "Text": 5, "INI": 1, "Proguard": 1, "XML": 20, "Kotlin": 125, "Java": 51} | package com.david.rechargedkotlinlibrary.internal.hardware.devices.sensors.encoders
import com.david.rechargedkotlinlibrary.internal.hardware.devices.RevHub
/**
* Created by <NAME> on 8/8/2018.
*/
class E4T(HUB: RevHub, PORT: Int, type: E4T.Type) : Encoder(HUB, PORT, PPR = type.PPR) {
enum class Type(val CPR: I... | 0 | Kotlin | 0 | 1 | 3de0094ecce15268631405ca7ae708f43a75e49b | 686 | RoverRuckusApp | MIT License |
android/app/src/main/java/bitshares/NotificationCenter.kt | d3vil7 | 197,709,057 | true | {"Objective-C": 3356936, "Kotlin": 1353582, "C": 1129013, "JavaScript": 47541, "C++": 25967, "Objective-C++": 23659, "HTML": 20237, "Java": 17103, "Shell": 7597, "CSS": 6373, "Ruby": 6012, "Makefile": 2176} | package bitshares
import android.os.Handler
import android.os.Message
class NotificationCenter {
companion object {
private var _sharedNotificationCenter = NotificationCenter()
fun sharedNotificationCenter(): NotificationCenter {
return _sharedNotificationCenter
}
}
... | 0 | Objective-C | 0 | 0 | 720fdbe6c904f04cb65fd9df0c5534325da1b173 | 1,263 | bitshares-mobile-app | MIT License |
app/src/main/java/com/stslex/cnotes/shortcut/AppShortcuts.kt | stslex | 475,504,690 | false | {"Kotlin": 235179} | package com.stslex.cnotes.shortcut
import com.stslex.core_navigation.destinations.ProfileDestination
import com.stslex.core_navigation.destinations.SingleNoteDestination
import com.stslex.core_ui.R
import com.stslex.feature_main.R.drawable
sealed class AppShortcuts(
val shortcut: Shortcut
) {
object Profile... | 4 | Kotlin | 0 | 1 | c3e1e1aeebfdbe014af58117e7293ec38af29bfb | 1,228 | CNotes | Apache License 2.0 |
adaptive-core/src/commonMain/kotlin/hu/simplexion/adaptive/adat/descriptor/AdatDescriptorImpl.kt | spxbhuhb | 788,711,010 | false | {"Kotlin": 1965729, "Java": 21738, "HTML": 5913, "JavaScript": 2910, "Shell": 687} | /*
* Copyright © 2020-2024, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package hu.simplexion.adaptive.adat.descriptor
import hu.simplexion.adaptive.adat.AdatClass
import hu.simplexion.adaptive.adat.descriptor.result.InstanceValidationResult
import hu.simp... | 22 | Kotlin | 0 | 1 | 3914e674d8ce9bedfb3d71628db639fcebf42bc6 | 631 | adaptive | Apache License 2.0 |
src/main/kotlin/org/acme/product/ProductOrganization.kt | aerovulpe | 511,763,229 | false | {"Kotlin": 4855} | package org.acme.product
import org.acme.business.constraint.TimeConstraint
import org.acme.business.customer.Customer
import org.acme.business.market.BusinessMarket
import org.acme.business.requirement.BusinessRequirement
/**
* Describes the responsibilities of a product organization
*
* https://www.aha.io/roadma... | 0 | Kotlin | 0 | 0 | 0a3a2fd13e3fad859a7a2ed4c2bc5b82e0dba922 | 596 | acmecorp | MIT License |
day19/Part2.kt | anthaas | 317,622,929 | false | null | import java.io.File
fun main(args: Array<String>) {
val input = File("input2.txt").bufferedReader().use { it.readText() }.split("\n\n")
val rules = input[0].split("\n").associate { it.split(": ").let { (left, right) -> left.toInt() to right } }.toMutableMap().toSortedMap()
//hack to skip recursion
(0 u... | 0 | Kotlin | 0 | 0 | aba452e0f6dd207e34d17b29e2c91ee21c1f3e41 | 1,319 | Advent-of-Code-2020 | MIT License |
markdown/src/main/kotlin/com/monkopedia/imdex/handlers/ListHandler.kt | Monkopedia | 305,151,965 | false | {"Kotlin": 381076, "JavaScript": 1289, "HTML": 912} | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 0 | Kotlin | 0 | 0 | c6f6a460e00af6b8ffc98b8e39cbad509549bc9f | 2,828 | imdex | Apache License 2.0 |
dokka-integration-tests/cli/src/integrationTest/kotlin/org/jetbrains/dokka/it/cli/CliIntegrationTest.kt | Kotlin | 21,763,603 | false | {"Kotlin": 3712559, "CSS": 63401, "JavaScript": 33594, "TypeScript": 13611, "HTML": 6976, "FreeMarker": 4120, "Java": 3923, "SCSS": 2794, "Shell": 970} | /*
* Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package org.jetbrains.dokka.it.cli
import org.jetbrains.dokka.it.awaitProcessResult
import java.io.File
import java.io.PrintWriter
import java.lang.IllegalStateException
import kotlin.test.*
class CliIntegra... | 568 | Kotlin | 415 | 3,174 | a1c3b89871a3a4f90d6441db356685d48a84ab63 | 16,790 | dokka | Apache License 2.0 |
plugin-build/src/test/kotlin/io/sentry/android/gradle/util/SkipOnForksRule.kt | getsentry | 241,145,606 | false | {"Kotlin": 797678, "Python": 6341, "Shell": 2904, "Groovy": 2407, "JavaScript": 1801, "Makefile": 702} | package io.sentry.android.gradle.util
import org.hamcrest.CoreMatchers.`is`
import org.junit.Assume.assumeThat
import org.junit.rules.TestRule
import org.junit.runner.Description
import org.junit.runners.model.Statement
class SkipOnForksRule : TestRule {
override fun apply(base: Statement, description: Descriptio... | 39 | Kotlin | 32 | 143 | 9c11c5e637e0900f35a66a95c7553d0616f0c15c | 720 | sentry-android-gradle-plugin | MIT License |
app/src/main/java/com/mrtckr/livecoding2/ui/compose/common/theme/Tint.kt | Mrtckr008 | 747,623,658 | false | {"Kotlin": 323503} | package com.example.hnotes.core.designsystem.theme
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.staticCompositionLocalOf
import androidx.compose.ui.graphics.Color
@Immutable
data class TintTheme(
val iconTint: Color = Color.Unspecified,
)
val LocalTintTheme = staticCompositionLocalOf... | 0 | Kotlin | 1 | 13 | 2073a2e584cccd5b8d472abe16c51e3d79947692 | 337 | Android-Sample-Best-Practices | The Unlicense |
idea/idea-core/src/org/jetbrains/kotlin/idea/core/script/ScriptDependenciesFileAttribute.kt | hassoon1986 | 205,854,484 | true | {"Kotlin": 39844486, "Java": 7556774, "JavaScript": 160572, "HTML": 75060, "Lex": 23159, "TypeScript": 21255, "IDL": 11337, "ANTLR": 9803, "CSS": 8084, "Shell": 7727, "Groovy": 6940, "Batchfile": 5362, "Swift": 2253, "Ruby": 668, "Objective-C": 293, "Scala": 80} | /*
* Copyright 2010-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1 | Kotlin | 1 | 1 | e37c86b85f8fd60ad2ea5c44d57ecd65b6457f26 | 2,243 | kotlin | Apache License 2.0 |
compiler/testData/diagnostics/tests/smartCasts/elvisNothingRHS.fir.kt | android | 263,405,600 | false | null | class C {
fun foo() {}
}
fun test(a: C?, nn: () -> Nothing?) {
a ?: nn()
a.<!INAPPLICABLE_CANDIDATE!>foo<!>()
a ?: return
a.foo()
}
| 0 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 154 | kotlin | Apache License 2.0 |
library/src/main/java/com/zackratos/ultimatebarx/library/bean/BarColor.kt | yangxiaoge | 319,228,056 | true | {"Kotlin": 45814, "Java": 372} | package com.zackratos.ultimatebarx.library.bean
import android.graphics.Color
import androidx.annotation.ColorInt
/**
* @Author : zhangwenchao
* @Date : 2020/11/23 6:15 PM
* @email : zhangwenchao@soulapp.cn
* @Describe : 主要用来封装 状态栏和导航栏的初始颜色
*/
internal class BarColor(@ColorInt val statusBarColor: Int =... | 0 | null | 0 | 0 | 897c4ad7fc0fa54ec0004c8b6e30472cc1d84921 | 392 | UltimateBarX | Apache License 2.0 |
app/src/main/java/cz/hlinkapp/flidea/activities/MainActivity.kt | gohlinka2 | 207,782,913 | false | null | package cz.hlinkapp.flidea.activities
import android.content.Intent
import android.content.pm.ActivityInfo
import android.net.Uri
import android.os.Bundle
import android.os.Handler
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.commit
import androidx.lifecycle.Observer
import androidx.lif... | 0 | Kotlin | 0 | 0 | 247eabffbbfb431d579af0c247e472e59d6da637 | 6,787 | flidea | Apache License 2.0 |
buildSrc/src/main/kotlin/io/github/naverz/pinocchio/Versions.kt | naverz | 511,363,488 | false | {"Kotlin": 127310, "Java": 1534} | package io.github.naverz.pinocchio
object Versions {
const val ANDROID_COMPILE_SDK_NO = 32
const val ANDROID_TARGET_SDK_NO = 32
const val COMPOSE_VERSION = "1.1.1"
} | 0 | Kotlin | 5 | 28 | 501c1650ec33b89d57641f8b938be853c351c4e8 | 178 | Pinocchio | Apache License 2.0 |
src/nativeMain/kotlin/data/model/ZoneListDto.kt | mrikirill | 857,562,543 | false | {"Kotlin": 40558, "Shell": 1501} | package data.model
import kotlinx.serialization.Serializable
@Serializable
data class ZoneListDto(
val success: Boolean,
val result: List<ZoneDto>
)
| 0 | Kotlin | 0 | 2 | e0cf13b3dd90fce22fab5ab4e2f1d9a62d1b67cf | 159 | KTSynologyDDNSCloudflareMultidomain | MIT License |
app/src/main/java/com/darklabs/dailydose/domain/newsRepository/NewsMapper.kt | rooparsh | 302,833,869 | false | null | package com.darklabs.dailydose.domain.newsRepository
import com.darklabs.businessdomain.db.database.entity.NewsArticleEntity
import com.darklabs.businessdomain.network.model.NewsArticle
import com.darklabs.businessdomain.util.Mapper
interface NewsMapper : Mapper<NewsArticleEntity, NewsArticle> {
override fun New... | 0 | Kotlin | 0 | 1 | 162497f6b9a10d0cf137a65bbae32fbfcd007dcc | 989 | DailyPlanet | Apache License 2.0 |
shared/src/commonMain/kotlin/io/spherelabs/anypass/ui/auth/navigation/SignUpNavigation.kt | getspherelabs | 687,455,894 | false | {"Kotlin": 499164, "Ruby": 6984, "Swift": 1167, "Shell": 226} | package io.spherelabs.anypass.ui.auth.navigation
import io.spherelabs.anypass.navigation.Route
import io.spherelabs.anypass.ui.auth.SignUpRoute
import io.spherelabs.navigation.NavHostScope
import io.spherelabs.navigation.NavigationController
import io.spherelabs.navigation.composable
fun NavigationController<Route>.n... | 19 | Kotlin | 13 | 90 | 696fbe6f9c4ff9e8a88492a193d6cb080df41ed6 | 709 | anypass-kmp | Apache License 2.0 |
kmp/libraries/location/src/commonMain/kotlin/com/egoriku/grodnoroads/location/util/Math.kt | BehindWheel | 485,026,420 | false | {"Kotlin": 1186756, "Ruby": 5708, "Swift": 1889, "Shell": 830} | package com.egoriku.grodnoroads.location.util
import kotlin.math.PI
import kotlin.math.asin
import kotlin.math.cos
import kotlin.math.ln
import kotlin.math.sin
import kotlin.math.sqrt
import kotlin.math.tan
internal object Math {
private const val DEGREES_TO_RADIANS = 0.017453292519943295
private const val R... | 19 | Kotlin | 1 | 18 | 07b1ec1f97c6f4a4948ba28b7cd0743f8efa850a | 1,742 | BehindWheelKMP | Apache License 2.0 |
app/src/main/java/com/ozyurt/armutapp/ui/ustalar/UstalarAdaptor.kt | nxion34 | 373,290,434 | false | null | package com.ozyurt.armutapp.ui.ustalar
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.cardview.widget.CardView
import androidx.recyclerview.widget.RecyclerView
import com.ozyurt.armutapp.data.model.KategorilerUstalarResponsItem
import com.ozyurt.armutapp.data.model.Ustalar
import com.... | 0 | Kotlin | 0 | 0 | 631cedb7ba973f71c11022aefeace4700fbaca26 | 1,760 | ArmutAppClone | Apache License 2.0 |
app/src/main/java/com/example/playlistmaker/data/NetworkClient.kt | AnShok | 669,330,334 | false | {"Kotlin": 152850} | package com.example.playlistmaker.data
import com.example.playlistmaker.data.search.dto.Response
import com.example.playlistmaker.data.search.dto.TrackSearchRequest
/**
* Интерфейс NetworkClient определяет метод для выполнения запроса поиска треков.
*/
interface NetworkClient {
suspend fun doTrackSearchRequest(... | 0 | Kotlin | 0 | 0 | 0a5000b55536680ad64913d0fb4ff1c9e7d5ef89 | 356 | PlaylistMaker | MIT License |
core/downloads/src/main/kotlin/flow/downloads/api/DownloadService.kt | andrikeev | 503,060,387 | false | null | package flow.downloads.api
interface DownloadService {
suspend fun downloadTorrentFile(downloadRequest: DownloadRequest): String?
}
| 0 | Kotlin | 2 | 8 | a850db05575d58cd7676823f6185311c595c4dd0 | 137 | Flow | MIT License |
server/src/main/com/broll/gainea/server/core/fractions/impl/ShadowFraction.kt | Rolleander | 253,573,579 | false | {"Kotlin": 499609, "Java": 305814, "HTML": 1714, "CSS": 1069, "Shell": 104, "Batchfile": 100, "JavaScript": 24} | package com.broll.gainea.server.core.fractions.impl
import com.broll.gainea.server.core.battle.BattleResult
import com.broll.gainea.server.core.battle.FightingPower
import com.broll.gainea.server.core.battle.UnitSnapshot
import com.broll.gainea.server.core.fractions.Fraction
import com.broll.gainea.server.core.fractio... | 0 | Kotlin | 0 | 3 | aa69f0b030ae8feb64c221faa0f7749c7670c458 | 3,291 | Gainea | MIT License |
typescript-kotlin/src/jsMain/kotlin/typescript/raw/isExpression.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6912722} | // Automatically generated - do not modify!
@file:JsModule("typescript")
package typescript.raw
import typescript.Node
/**
* Determines whether a node is an expression based only on its kind.
*/
internal external fun isExpression(node: Node): Boolean /* node is Expression */
| 0 | Kotlin | 7 | 31 | 79f2034ed9610e4416dfde5b70a0ff06f88210b5 | 282 | types-kotlin | Apache License 2.0 |
app/src/androidTest/java/pro/eluzivespikes/easylocationmanager/demo/ExampleInstrumentedTest.kt | Jameido | 96,305,088 | false | {"Java": 19513, "Kotlin": 4590} | /*
*
* * Copyright 2017. Luca Rossi
* *
* * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish... | 1 | Java | 1 | 1 | 7d84704c24fe85ae3cc0b1559f4b9a102c13fd2f | 1,803 | easy-location-manager-android | MIT License |
app/src/main/java/cat/xojan/random1/feature/mediaplayback/Player.kt | 4492204 | 256,750,758 | true | {"Kotlin": 219643} | package cat.xojan.random1.feature.mediaplayback
import android.content.Context
import android.media.AudioManager
import android.net.Uri
import android.os.CountDownTimer
import android.support.v4.media.MediaMetadataCompat
import android.support.v4.media.session.PlaybackStateCompat
import android.util.Log
import cat.xoj... | 0 | null | 0 | 0 | ee84a49ff3b11939b6749e800e3f7bfbdd810589 | 7,187 | Podcasts-RAC1-Android | MIT License |
Library/src/main/java/dev/testify/core/processor/diff/HighContrastDiff.kt | ndtp | 469,416,892 | false | {"Kotlin": 817781, "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... | 44 | Kotlin | 5 | 99 | d6e1b5f529e2f521dccc522fda3c594794998c91 | 5,457 | android-testify | MIT License |
plugins/kotlin/idea/tests/testData/intentions/convertReceiverToParameter/validOverload.kt | ingokegel | 72,937,917 | false | null | // AFTER-WARNING: Parameter 'convertable' is never used
fun conflict() {}
class Convertable {}
fun <caret>Convertable.conflict() {} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 131 | intellij-community | Apache License 2.0 |
src/main/kotlin/com/deflatedpickle/bugmagic/proxy/ClientProxy.kt | Pyrofab | 144,996,960 | false | {"Kotlin": 91267} | package com.deflatedpickle.bugmagic.proxy
import com.deflatedpickle.bugmagic.init.ModItems
import com.deflatedpickle.bugmagic.init.ModRenders
import net.minecraft.client.Minecraft
import net.minecraft.client.renderer.color.IItemColor
import net.minecraft.entity.player.EntityPlayer
import java.awt.Color
class ClientPr... | 0 | Kotlin | 0 | 0 | c57adb3d14798ae5e2307ea306fa130a2a94b4b9 | 836 | BugMagic | MIT License |
src/functionalTest/kotlin/kotlinx/kover/test/functional/framework/configurator/ConfigTypes.kt | Kotlin | 394,574,917 | false | null | /*
* Copyright 2017-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.kover.test.functional.framework.configurator
import kotlinx.kover.api.*
import kotlinx.kover.test.functional.framework.checker.CheckerContext
import java.io.*
/**
* [projects] - is a map of ... | 55 | Kotlin | 30 | 816 | fa47ea68fcc1cc5c0cb902020cc10c9238386a9f | 2,619 | kotlinx-kover | Apache License 2.0 |
app/src/main/java/com/mi/collapsingToolbarWithMotionCompose/ui/management/MiScrollFlagState.kt | Mindinventory | 665,526,575 | false | null | package com.mi.collapsingToolbarWithMotionCompose.ui.management
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.runtime.structuralEqualityPolicy
abstract class MiScrollFlagState(heightRange: IntRange, scrollValue:... | 0 | Kotlin | 0 | 17 | c5d1b6a5f2707448fbdeb9757d08c0feb74d548c | 982 | MarioInMotion | MIT License |
integration/compose/common/src/dev/programadorthi/routing/compose/ComposeRoutingBuilder.kt | programadorthi | 626,174,472 | false | {"Kotlin": 565737, "JavaScript": 775} | package dev.programadorthi.routing.compose
import androidx.compose.runtime.Composable
import dev.programadorthi.routing.core.Route
import dev.programadorthi.routing.core.RouteMethod
import dev.programadorthi.routing.core.Routing
import dev.programadorthi.routing.core.application.ApplicationCall
import dev.programadort... | 1 | Kotlin | 3 | 45 | 3adac4ad9f556149c0dddc5f080a7c88c1a6c67c | 3,025 | kotlin-routing | Apache License 2.0 |
Manga_Library/app/src/main/java/roch/manga_library/screens/libraryScreens/LibraryLikedScreen.kt | RochKDev | 777,221,222 | false | {"Kotlin": 103693} | package roch.manga_library.screens.libraryScreens
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.ui.Modifier
import androidx.navigation.NavHostController... | 0 | Kotlin | 0 | 1 | de72af1f01807dce4acc71f932b986d82d80c632 | 1,331 | MangaLib | MIT License |
app/src/main/java/com/martinszuc/phishing_emails_detection/ui/viewmodel/factory/EmailViewModelFactory.kt | martinszuc | 698,968,668 | false | {"Kotlin": 32691} | package com.martinszuc.phishing_emails_detection.ui.viewmodel.factory
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.martinszuc.phishing_emails_detection.data.repository.EmailRepository
import com.martinszuc.phishing_emails_detection.ui.viewmodel.EmailViewModel
class EmailV... | 0 | Kotlin | 0 | 0 | b79af54a702009a99be2cfff5b67b79d57db1f99 | 719 | phishing-emails-detection | MIT License |
recyclerviewmodel/src/main/kotlin/com/adgvcxz/recyclerviewmodel/ListResult.kt | adgvcxz | 89,793,925 | false | null | package com.adgvcxz.recyclerviewmodel
import com.adgvcxz.IModel
/**
* zhaowei
* Created by zhaowei on 2017/6/8.
*/
data class ListResult(val value: List<RecyclerItemViewModel<out IModel>>?)
| 1 | null | 1 | 3 | f696190af6ccf979577524ad9c295df4cc947733 | 195 | ViewModel | Apache License 2.0 |
app/src/main/java/com/jeongg/sanjini_attraction/presentation/view/bluetooth/BluetoothScreen.kt | sanjini-attraction | 725,554,254 | false | {"Kotlin": 67385} | package com.jeongg.sanjini_attraction.presentation.view.bluetooth
import android.annotation.SuppressLint
import android.widget.Toast
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundati... | 0 | Kotlin | 0 | 0 | 6a81563e252bccbce30b4600ce74d002bcfc52b7 | 2,907 | android | MIT License |
core/model/src/main/kotlin/com/seosh817/moviehub/core/model/MovieOverview.kt | seosh817 | 722,390,551 | false | {"Kotlin": 471373} | /*
* Copyright 2024 seosh817 (Seunghwan Seo)
*
* 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... | 12 | Kotlin | 0 | 3 | fde7db89417954c4fc4a776222f6c23da3d4bc98 | 1,071 | MovieHub | Apache License 2.0 |
kotest-framework/kotest-framework-api/src/jvmTest/kotlin/com/sksamuel/kotest/core/api/DerivedTagNameTest.kt | kotest | 47,071,082 | false | null | package com.sksamuel.kotest.core.api
import io.kotest.core.Tag
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.shouldBe
object Foo : Tag()
class DerivedTagNameTest : FunSpec({
test("derived tags should use simple name") {
Foo.name shouldBe "Foo"
}
})
| 5 | null | 648 | 4,435 | 2ce83d0f79e189c90e2d7bb3d16bd4f75dec9c2f | 285 | kotest | Apache License 2.0 |
library/core/talaiot-request/src/main/java/io/github/cdsap/talaiot/request/SimpleRequest.kt | cdsap | 157,973,716 | false | null | package com.cdsap.talaiot.request
import com.cdsap.talaiot.logger.LogTracker
import io.github.rybalkinsd.kohttp.dsl.httpPost
import io.github.rybalkinsd.kohttp.ext.url
import java.net.URL
/**
* Simple implementation of request.
* Using KoHttp to create the request.
*/
class SimpleRequest(mode: LogTracker) : Reques... | 26 | null | 37 | 583 | 5a1fe716c92aa5d9895f543e75ddeebfd7d47df2 | 1,403 | Talaiot | MIT License |
Projects Manager/Backend/src/main/kotlin/pt/isel/daw/common/Relations.kt | LuisGuerraa | 242,099,578 | false | null | package pt.isel.daw.common
object Relations {
const val SELF = "self"
const val COLLECTION = "collection"
const val PARENT = "parent"
const val PROJECTS = "/rels/projects"
const val PROJECT = "/rels/project"
const val ISSUES = "/rels/project/issues"
const val ISSUE = "/rels/project/issue"... | 8 | null | 1 | 3 | a73ada1f8a133d222577f9d7e004d3458ae4b536 | 491 | BscInformaticsWork | Apache License 2.0 |
app/src/main/java/sk/mpage/kiwi/zadanie/model/FlightUsed.kt | marosc | 205,125,211 | false | null | /*
* Copyright (C) 2019 Maros Cavojsky, mpage.sk
*
* 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 | 0 | 97272d67a9486ae45802f390afa22016c3a2678f | 940 | kiwiZadanie | Apache License 2.0 |
app/src/main/java/com/beettechnologies/newsapp/detail/NewsDetailViewModel.kt | beetsolutions | 162,338,193 | false | null | package com.beettechnologies.newsapp.detail
class NewsDetailViewModel {
} | 0 | Kotlin | 0 | 0 | eb9b43f28e3c23385710e6b10199a38bad70efed | 74 | newsapp | MIT License |
app/src/main/java/com/sample/playwithdagger/AppModule.kt | soniccat | 236,323,199 | false | null | package com.sample.playwithdagger
import dagger.Module
import dagger.Provides
@Module
class AppModule {
} | 1 | null | 1 | 1 | 390d91f355ca466d55f5ad1b4436a4fbb1b3713a | 107 | Dagger2WithMultimoduleTest | MIT License |
react-table-kotlin/src/jsMain/kotlin/tanstack/table/core/ColumnDefBase.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6272741} | // Automatically generated - do not modify!
package tanstack.table.core
import js.array.ReadonlyArray
external interface ColumnDefBase<TData : RowData, TValue> : ColumnDefExtensions<TData, TValue> {
var getUniqueValues: AccessorFn<TData, ReadonlyArray<Any?>>?
var footer: ColumnDefTemplate<HeaderContext<TData... | 0 | Kotlin | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 436 | types-kotlin | Apache License 2.0 |
Q1/app/src/main/java/com/example/q1/views/Q1.kt | DaniloAlv | 369,926,507 | false | null | package com.example.q1.views
import com.example.q1.controllers.ViewModel
fun main(){
for(value in ViewModel().listRandomValues()){
print(value.toString() + "\n")
}
} | 0 | Kotlin | 0 | 0 | 350519995bb972994728544dd1b2e889fe147899 | 183 | prova-p1-dsw | MIT License |
crowdproj-vote-common/src/commonMain/kotlin/config/CwpVoteCorSettings.kt | crowdproj | 680,000,607 | false | {"Kotlin": 35533, "Shell": 439, "Dockerfile": 339} | package com.crowdproj.vote.common.config
import com.crowdproj.vote.common.repo.IVoteRepository
data class CwpVoteCorSettings(
val repoTest: IVoteRepository = IVoteRepository.NONE,
val repoStub: IVoteRepository = IVoteRepository.NONE,
val repoProd: IVoteRepository = IVoteRepository.NONE,
) {
companion ... | 0 | Kotlin | 1 | 0 | cb84d1a9c3cccaeb7481712b939a85aefd63194a | 377 | crowdproj-ratings-votes | Apache License 2.0 |
core/src/main/kotlin/ch/addere/keystrokeenumerator/core/domain/model/symbol/SymbolCounter.kt | ryru | 618,528,017 | false | null | package ch.addere.keystrokeenumerator.core.domain.model.symbol
class SymbolCounter {
private val symbolMap = mutableMapOf<Symbol, Int>()
private var totalSymbols = 0
/**
* Count occurrence of a symbol in an internal counter.
*/
fun count(symbol: Symbol) {
totalSymbols++
if (... | 2 | Kotlin | 0 | 1 | b47e4c389756dc8a98bec28b2a2b16505250594f | 1,190 | keystroke_enumerator | MIT License |
src/main/kotlin/nl/pvanassen/led/animation/disco/Disco.kt | pvanassen | 158,278,691 | false | null | package nl.pvanassen.led.animation.disco
import nl.pvanassen.led.animation.common.canvas.Canvas
import nl.pvanassen.led.animation.common.model.Animation
import nl.pvanassen.led.animation.common.util.ColorUtils
import java.awt.Image
import java.awt.image.BufferedImage
import kotlin.math.max
import kotlin.math.min
clas... | 1 | null | 1 | 1 | 1d20dea0c9d2218ad1be47d9a3341f02aaea4edb | 1,358 | animation-disco | Apache License 2.0 |
modulecheck-model/dependency/api/src/main/kotlin/modulecheck/model/dependency/CodeGenerator.kt | RBusarow | 316,627,145 | false | null | /*
* Copyright (C) 2021-2022 <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 t... | 31 | null | 7 | 95 | 24e7c7667490630d30cf8b59cd504cd863cd1fba | 4,567 | ModuleCheck | Apache License 2.0 |
library-zero-xss-kotlin/src/main/kotlin/com/snc/zero/xss/extensions/xss/EscapeHtmlEntitiesExt.kt | ArronJo | 775,765,486 | false | {"Kotlin": 226457, "Shell": 86} | package com.snc.zero.xss.extensions.xss
fun String.escapeHtmlEntities(): String {
return this.replace("&".toRegex(), "&")
.replace("<".toRegex(), "<")
.replace(">".toRegex(), ">")
.replace("\"".toRegex(), """)
.replace("'".toRegex(), "'")
}
fun String.unescapeHtm... | 0 | Kotlin | 0 | 0 | 3e26b90955b1838de98cabeb8804aeac4fa37979 | 598 | multi-module-project | Apache License 2.0 |
src/main/java/com/saltedge/provider/demo/errors/ScaApiExceptionsHandler.kt | saltedge | 528,879,580 | false | {"Kotlin": 79478, "Ruby": 42493, "HTML": 25177, "FreeMarker": 21940, "Java": 6270, "Dockerfile": 381, "CSS": 223} | /*
* @author <NAME> (<EMAIL>)
* Copyright (c) 2022 Salt Edge.
*/
package com.saltedge.provider.demo.errors
import org.hibernate.exception.ConstraintViolationException
import org.slf4j.LoggerFactory
import org.springframework.http.HttpStatus
import org.springframework.http.ResponseEntity
import org.springframework.w... | 0 | Kotlin | 2 | 0 | b8e785829c100d6b13c9c7d346a3d67b01f00011 | 1,773 | saltedge-sca-demo-provider | MIT License |
project-course/kotlin-smartherd/KotlinProgramming/src/function/extension/Main.kt | vel02 | 261,988,454 | false | {"Text": 1, "Ignore List": 59, "Markdown": 1, "XML": 511, "Kotlin": 200, "Java": 8, "Gradle": 25, "Java Properties": 16, "Shell": 8, "Batchfile": 8, "Proguard": 8} | package function.extension
fun main(args: Array<String>) {
val str1 = "Hello "
val str2 = "World"
var str3 = "Hey "
println(str3.add(str1, str2))
val x = 6
val y = 10
val max = x.greaterValue(y)
println("Max is $max")
}
fun Int.greaterValue(other: Int) = if (this > other) this el... | 1 | null | 1 | 1 | 7644d1911ff35fda44e45b1486bcce5d790fe7c0 | 394 | learn-kotlin-android | MIT License |
annotationprocessortesting-kt/src/main/java/com/tickaroo/tikxml/annotationprocessing/textcontent/Week.kt | haizhiyun | 207,230,818 | true | {"Java Properties": 2, "YAML": 1, "Gradle": 3, "Shell": 2, "Markdown": 3, "Batchfile": 1, "Text": 1, "Ignore List": 4, "Gradle Kotlin DSL": 12, "Java": 231, "XML": 52, "INI": 8, "Kotlin": 175} | package com.tickaroo.tikxml.annotationprocessing.textcontent
import com.tickaroo.tikxml.annotation.Element
import com.tickaroo.tikxml.annotation.Xml
/**
* @author <NAME>
*/
@Xml
class Week {
@Element
var days: List<Day>? = null
override fun equals(o: Any?): Boolean {
if (this === o) return tru... | 0 | null | 0 | 0 | 853ec5dbd18d774fbe9b71d7729a2827fe062036 | 577 | tikxml | Apache License 2.0 |
api/src/main/java/com/vk/sdk/api/messages/dto/MessagesChatSettingsPermissionsDto.kt | VKCOM | 16,025,583 | false | null | /**
* 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... | 69 | null | 233 | 440 | 3dd6d9e3bc10ce9e77c3ea9331cc753f704f8f79 | 4,521 | vk-android-sdk | MIT License |
modules/core/misc/java/src/java/core+MatMatMul.kt | opencv | 5,108,051 | false | null | package org.opencv.core
operator fun Mat.times(other: Mat): Mat = this.matMul(other)
| 2,660 | null | 55738 | 78,376 | 3901426d8515cd8d1c07654ec7e9e8bc3b51a06f | 86 | opencv | Apache License 2.0 |
app/src/main/java/com/summersama/fisimili/utils/OkHttpUtil.kt | LoveLoliii | 177,764,885 | false | null | package com.summersama.fisimili.utils
import android.app.Activity
import android.util.Log
import com.google.gson.Gson
import com.summersama.fisimili.utils.OkHttpUtil.Companion.client
import okhttp3.*
import java.io.IOException
import java.util.concurrent.TimeUnit
/**
* 会存在多个函数调用client 导致响应延时。
* @author loveloliii
... | 1 | null | 1 | 1 | 2582476395425c09443cfb5a617e4960d8ebbdc5 | 4,032 | FiSiMiLi | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.