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
app/src/main/java/ua/glebm/smartwaste/data/datastore/SettingsDataStoreImpl.kt
glebushkaa
718,610,042
false
{"Kotlin": 241649}
package ua.glebm.smartwaste.data.datastore import androidx.datastore.core.DataStore import androidx.datastore.preferences.core.Preferences import androidx.datastore.preferences.core.booleanPreferencesKey import androidx.datastore.preferences.core.edit import ua.glebm.smartwaste.domain.datastore.SettingsDataStore import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.map import javax.inject.Inject /** * Created by gle.bushkaa email(gleb.mokryy@gmail.com) on 10/26/2023 */ class SettingsDataStoreImpl @Inject constructor( private val dataStore: DataStore<Preferences>, ) : SettingsDataStore { override val darkModeFlow: Flow<Boolean?> get() = dataStore.data.map { it[booleanPreferencesKey(DARK_MODE_ENABLED)] } override suspend fun updateDarkMode(enabled: Boolean) { dataStore.edit { it[booleanPreferencesKey(DARK_MODE_ENABLED)] = enabled } } private companion object { const val DARK_MODE_ENABLED = "dark_mode_enabled" } }
0
Kotlin
0
1
be94eb8f216d5bfae8259611145511661f78ea4e
1,034
smart-waste-android
MIT License
plugin/src/main/kotlin/org/neotech/plugin/rootcoverage/RootCoverageModuleTask.kt
hansvdam
153,097,004
true
{"Kotlin": 14815, "Java": 3234}
package org.neotech.plugin.rootcoverage import org.gradle.api.DefaultTask import org.gradle.api.file.FileCollection /** * This Task currently does not really do anything, except for having dependencies on the submodules * test tasks: unit and instrumented tests. It also has fields for storing the executionData, * sourceDirectories and classDirectories for the given submodule. */ open class RootCoverageModuleTask: DefaultTask() { var executionData: FileCollection = project.files() var sourceDirectories: FileCollection = project.files() var classDirectories: FileCollection = project.files() }
0
Kotlin
0
0
b9520ab44b194043ce8a7262c2296187c7c70100
617
android-root-coverage-plugin
Apache License 2.0
src/main/kotlin/com/exactpro/th2/lwdataprovider/http/GetMessageGroups.kt
th2-net
433,117,188
false
{"Kotlin": 827281, "Python": 4548, "Dockerfile": 116}
/* * Copyright 2022-2023 Exactpro (Exactpro Systems Limited) * * 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, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.exactpro.th2.lwdataprovider.http import com.exactpro.cradle.BookId import com.exactpro.th2.lwdataprovider.entities.requests.util.invalidRequest import com.exactpro.th2.lwdataprovider.handlers.SearchMessagesHandler import com.exactpro.th2.lwdataprovider.http.util.EVENT_STREAM_CONTENT_TYPE import com.exactpro.th2.lwdataprovider.http.util.handleSseSequence import io.javalin.Javalin import io.javalin.http.Context import io.javalin.http.HttpStatus import io.javalin.http.pathParamAsClass import io.javalin.http.queryParamAsClass import io.javalin.openapi.ContentType import io.javalin.openapi.HttpMethod import io.javalin.openapi.OpenApi import io.javalin.openapi.OpenApiContent import io.javalin.openapi.OpenApiParam import io.javalin.openapi.OpenApiResponse import mu.KotlinLogging import java.time.Instant class GetMessageGroups( private val handler: SearchMessagesHandler, ) : JavalinHandler { @OpenApi( path = JSON_ROUTE, methods = [HttpMethod.GET], deprecated = true, description = "DEPRECATED: please use $SSE_ROUTE instead. " + "returns list of groups for specified $BOOK_ID_PARAM. " + "If not $START_TIMESTAMP and $END_TIMESTAMP set returns all groups. " + "Otherwise, returns groups in the specified time interval.", pathParams = [ OpenApiParam( name = BOOK_ID_PARAM, required = true, description = "book ID to request groups", example = "bookId123", ) ], queryParams = [ OpenApiParam( name = START_TIMESTAMP, type = Long::class, description = "start timestamp to search for groups: ${HttpServer.TIME_EXAMPLE}", required = false, ), OpenApiParam( name = END_TIMESTAMP, type = Long::class, description = "end timestamp to search for groups: ${HttpServer.TIME_EXAMPLE}", required = false, ), ], responses = [ OpenApiResponse( status = "200", content = [ OpenApiContent(from = Array<String>::class, mimeType = ContentType.JSON) ], description = """set of groups for specified $BOOK_ID_PARAM. E.g. ["group1","group2"]""" ), ], ) private fun handleJson(ctx: Context) { handleRequest(ctx) { groups -> ctx.status(HttpStatus.OK).json(groups.toSet()) } } @OpenApi( path = SSE_ROUTE, methods = [HttpMethod.GET], description = "returns list of groups for specified $BOOK_ID_PARAM. " + "If not $START_TIMESTAMP and $END_TIMESTAMP set returns all groups. " + "Otherwise, returns groups in the specified time interval", pathParams = [ OpenApiParam( name = BOOK_ID_PARAM, required = true, description = "book ID to request groups", example = "bookId123", ) ], queryParams = [ OpenApiParam( name = START_TIMESTAMP, type = Long::class, description = "start timestamp to search for groups: ${HttpServer.TIME_EXAMPLE}", required = false, ), OpenApiParam( name = END_TIMESTAMP, type = Long::class, description = "end timestamp to search for groups: ${HttpServer.TIME_EXAMPLE}", required = false, ), OpenApiParam( name = CHUNK_SIZE, type = Int::class, description = "the chunk size for response in SSE format. Default value is 50", required = false ), ], responses = [ OpenApiResponse( status = "200", content = [ OpenApiContent(from = Array<String>::class, mimeType = EVENT_STREAM_CONTENT_TYPE) ], description = """set of groups for specified $BOOK_ID_PARAM. E.g. ["group1","group2"] in SSE format""" ), ], ) private fun handleSse(ctx: Context) { handleRequest(ctx) { groups -> val chunkSize = queryParamAsClass<Int>(CHUNK_SIZE).check({ it > 0 }, "NEGATIVE_CHUNK_SIZE").getOrDefault(50) handleSseSequence(groups, "group", LOGGER, chunkSize = chunkSize) } } private inline fun handleRequest(ctx: Context, handlerFunction: Context.(Sequence<String>) -> Unit) { val bookId = ctx.pathParamAsClass<BookId>(BOOK_ID_PARAM).get() val startTimestamp = ctx.queryParamAsClass<Instant>(START_TIMESTAMP).allowNullable() .get() val endTimestamp = ctx.queryParamAsClass<Instant>(END_TIMESTAMP).allowNullable() .get() LOGGER.info { "Loading groups for book $bookId: (from: $startTimestamp, to: $endTimestamp)" } val groups: Sequence<String> = runCatching { when { startTimestamp == null && endTimestamp == null -> handler.extractAllGroups(bookId).asSequence() // FIXME: should be an iterator startTimestamp != null && endTimestamp != null -> handler.extractGroups(bookId, startTimestamp, endTimestamp).asSequence() else -> { invalidRequest("either both $START_TIMESTAMP and $END_TIMESTAMP must be specified or neither of them") } } }.onFailure { LOGGER.error(it) { "cannot process groups request" } }.getOrThrow() ctx.handlerFunction(groups) } override fun setup(app: Javalin, context: JavalinContext) { app.get(JSON_ROUTE, this::handleJson) app.get(SSE_ROUTE, this::handleSse) } companion object { private const val BOOK_ID_PARAM = "bookId" private const val START_TIMESTAMP = "startTimestamp" private const val END_TIMESTAMP = "endTimestamp" private const val CHUNK_SIZE = "chunkedSize" private val LOGGER = KotlinLogging.logger { } const val JSON_ROUTE = "/book/{$BOOK_ID_PARAM}/message/groups" const val SSE_ROUTE = "/book/{$BOOK_ID_PARAM}/message/groups/sse" } }
3
Kotlin
0
0
4e41664710a1a028346f11a06fca8de609d8a07e
7,100
th2-lw-data-provider
Apache License 2.0
app/src/main/java/com/shrikantb/statemachine/domain/statemachine/state/AfterApiCall.kt
Shrikant-B
223,768,786
false
null
package com.shrikantb.statemachine.domain.statemachine.state import com.shrikantb.statemachine.domain.model.Movie import com.shrikantb.statemachine.domain.statemachine.Action class AfterApiCall(val movies: ArrayList<Movie>) : State { override fun consumeAction(action: Action) = this }
0
Kotlin
0
2
e5f96c4574ea533f241104cf6f336def7c1cbdb6
291
statemachine
Apache License 2.0
plugin-project/plugin/src/main/kotlin/com/fernandocejas/ktor/DockerizerExtension.kt
android10
346,139,785
false
null
package com.fernandocejas.ktor import org.gradle.api.provider.Property /** * Extension that defines property values for configuring [DockerizerPlugin]. * * @link: https://docs.gradle.org/current/userguide/custom_plugins.html#sec:getting_input_from_the_build */ @Suppress("LeakingThis", "UnnecessaryAbstractClass") abstract class DockerizerExtension { //Jar abstract val jarFilename: Property<String> //Docker abstract val dockerImageName: Property<String> abstract val dockerMemory: Property<String> abstract val dockerCpus: Property<String> abstract val dockerHostPort: Property<Int> abstract val dockerHostSslPort: Property<Int> abstract val dockerContainerPort: Property<Int> abstract val dockerContainerSslPort: Property<Int> init { //Jar jarFilename.set(JAR_DEFAULT_FILENAME) //Docker dockerImageName.set(DOCKER_DEFAULT_IMAGE_NAME) dockerMemory.set(DOCKER_DEFAULT_MEMORY) dockerCpus.set(DOCKER_DEFAULT_CPUS) dockerHostPort.set(DOCKER_DEFAULT_HOST_PORT) dockerHostSslPort.set(DOCKER_DEFAULT_HOST_SSL_PORT) dockerContainerPort.set(DOCKER_DEFAULT_CONTAINER_PORT) dockerContainerSslPort.set(DOCKER_DEFAULT_CONTAINER_SSL_PORT) } companion object { //Jar private const val JAR_DEFAULT_FILENAME = "ktor.jar" //Docker private const val DOCKER_DEFAULT_IMAGE_NAME = "ktor" private const val DOCKER_DEFAULT_MEMORY = "512M" private const val DOCKER_DEFAULT_CPUS = "1" private const val DOCKER_DEFAULT_HOST_PORT = 8080 private const val DOCKER_DEFAULT_HOST_SSL_PORT = 443 private const val DOCKER_DEFAULT_CONTAINER_PORT = 8080 private const val DOCKER_DEFAULT_CONTAINER_SSL_PORT = 8443 } }
0
Kotlin
0
3
744fa908dfd34cd4bd31193d845207a75ec5178c
1,809
ktor-dockerizer
Apache License 2.0
toasty/src/main/java/com/example/toasty/Resources.kt
KaradimoulasG
688,548,924
false
null
package com.example.toasty import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.material3.MaterialTheme import androidx.compose.material3.dynamicDarkColorScheme import androidx.compose.material3.dynamicLightColorScheme import androidx.compose.runtime.Composable import androidx.compose.ui.graphics.Color import androidx.compose.ui.platform.LocalContext enum class MessageType { SUCCESS, ERROR, DEFAULT, DYNAMIC, } @Composable fun getColorForMessageType(messageType: MessageType): Color { return when (messageType) { MessageType.SUCCESS -> Color.Green MessageType.ERROR -> Color.Red MessageType.DYNAMIC -> { when (isSystemInDarkTheme()) { true -> dynamicDarkColorScheme(LocalContext.current).background false -> dynamicLightColorScheme(LocalContext.current).background } } MessageType.DEFAULT -> MaterialTheme.colorScheme.primary } }
0
null
0
6
95933ad37d9aba73f9b3aed42a1a4c4a5bba80d1
982
Toasty
MIT License
src/main/java/ru/hollowhorizon/hc/client/render/effekseer/render/RenderUtil.kt
HollowHorizon
450,852,365
false
{"Kotlin": 1120056, "Java": 247984, "GLSL": 44525}
/* * MIT License * * Copyright (c) 2024 HollowHorizon * * 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, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package ru.hollowhorizon.hc.client.render.effekseer.render import com.mojang.blaze3d.pipeline.RenderTarget import net.minecraft.client.Minecraft import org.lwjgl.opengl.GL11 import org.lwjgl.opengl.GL30 object RenderUtil { @JvmStatic fun copyCurrentDepthTo(target: RenderTarget) { val frameBuffer = GL11.glGetInteger(GL30.GL_DRAW_FRAMEBUFFER_BINDING) val window = MC.window copyDepthSafely(frameBuffer, window.width, window.height, target) } @JvmStatic fun pasteToCurrentDepthFrom(source: RenderTarget) { val frameBuffer = GL11.glGetInteger(GL30.GL_DRAW_FRAMEBUFFER_BINDING) val window = MC.window copyDepthSafely(source, frameBuffer, window.width, window.height) } fun copyDepthSafely(src: Int, srcWidth: Int, srcHeight: Int, target: RenderTarget) { val readBackup = GL11.glGetInteger(GL30.GL_READ_FRAMEBUFFER_BINDING) val drawBackup = GL11.glGetInteger(GL30.GL_DRAW_FRAMEBUFFER_BINDING) GL30.glBindFramebuffer(GL30.GL_READ_FRAMEBUFFER, src) GL30.glBindFramebuffer(GL30.GL_DRAW_FRAMEBUFFER, target.frameBufferId) GL30.glBlitFramebuffer(0, 0, srcWidth, srcHeight, 0, 0, target.width, target.height, 256, 9728) GL30.glBindFramebuffer(GL30.GL_READ_FRAMEBUFFER, readBackup) GL30.glBindFramebuffer(GL30.GL_DRAW_FRAMEBUFFER, drawBackup) } fun copyDepthSafely(src: RenderTarget, target: Int, targetWidth: Int, targetHeight: Int) { val readBackup = GL11.glGetInteger(GL30.GL_READ_FRAMEBUFFER_BINDING) val drawBackup = GL11.glGetInteger(GL30.GL_DRAW_FRAMEBUFFER_BINDING) GL30.glBindFramebuffer(GL30.GL_READ_FRAMEBUFFER, src.frameBufferId) GL30.glBindFramebuffer(GL30.GL_DRAW_FRAMEBUFFER, target) GL30.glBlitFramebuffer(0, 0, src.width, src.height, 0, 0, targetWidth, targetHeight, 256, 9728) GL30.glBindFramebuffer(GL30.GL_READ_FRAMEBUFFER, readBackup) GL30.glBindFramebuffer(GL30.GL_DRAW_FRAMEBUFFER, drawBackup) } private val MC: Minecraft = Minecraft.getInstance() }
0
Kotlin
4
20
7e0c4510a0e5d2d3540aff428871b7ecc642c898
3,211
HollowCore
MIT License
src/main/kotlin/no/nav/pensjon/kalkulator/tech/security/ingress/impersonal/audit/Auditor.kt
navikt
596,104,195
false
{"Kotlin": 590141, "Java": 1630, "Dockerfile": 153}
package no.nav.pensjon.kalkulator.tech.security.ingress.impersonal.audit import mu.KotlinLogging import no.nav.pensjon.kalkulator.person.Pid import org.slf4j.event.Level import org.springframework.stereotype.Component import java.time.ZonedDateTime /** * Sends info to the auditing system when a user (Nav employee) * performs some task on behalf of another person. * The info is formatted according to ArcSight CEF (Common Event Format). */ @Component class Auditor(private val ansattIdExtractor: SecurityContextNavIdExtractor) { private val log = KotlinLogging.logger("AUDIT_LOGGER") fun audit(onBehalfOfPid: Pid, requestUri: String) { log.info { cefEntry(ansattIdExtractor.id(), onBehalfOfPid, requestUri).format() } } private fun cefEntry(ansattId: String, onBehalfOfPid: Pid, requestUri: String) = CefEntry( timestamp = now(), level = Level.INFO, deviceEventClassId = DEVICE_EVENT_CLASS_ID, name = "Datahenting paa vegne av", message = "$USER_TYPE kaller $requestUri", sourceUserId = ansattId, destinationUserId = onBehalfOfPid.value ) private companion object { private const val DEVICE_EVENT_CLASS_ID = "audit:read" private const val USER_TYPE = "Nav-ansatt" private fun now() = ZonedDateTime.now().toInstant().toEpochMilli() } }
3
Kotlin
0
0
fa5c16d0734defca7817fb087145cb040139b36f
1,404
pensjonskalkulator-backend
MIT License
drill-gradle-plugin/src/main/kotlin/com/epam/drill/integration/gradle/GitlabTasks.kt
Drill4J
798,257,596
false
{"Kotlin": 38073, "Dockerfile": 227}
/** * Copyright 2020 - 2022 EPAM Systems * * 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, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.epam.drill.integration.gradle import com.epam.drill.integration.common.client.impl.DrillApiClientImpl import com.epam.drill.integration.common.report.impl.TextReportGenerator import com.epam.drill.integration.gitlab.client.impl.GitlabApiClientV4Impl import com.epam.drill.integration.gitlab.service.GitlabCiCdService import kotlinx.coroutines.runBlocking import org.gradle.api.Task fun Task.drillGitlabMergeRequestReportTask(ciCd: DrillCiCdProperties) { doFirst { val gitlab = ciCd.gitlab.required("drillCiCd.gitlab") val gitlabCiCdService = GitlabCiCdService( GitlabApiClientV4Impl( gitlab.gitlabApiUrl.required("drillCiCd.gitlab.gitlabApiUrl"), gitlab.gitlabPrivateToken ), DrillApiClientImpl( ciCd.drillApiUrl.required("drillCiCd.drillApiUrl"), ciCd.drillApiKey ), TextReportGenerator() ) runBlocking { gitlabCiCdService.postMergeRequestReport( gitlabProjectId = gitlab.projectId.required("drillCiCd.gitlab.projectId"), gitlabMergeRequestId = gitlab.mergeRequestId.required("drillCiCd.gitlab.mergeRequestId"), drillGroupId = ciCd.groupId.required("drillCiCd.groupId"), drillAgentId = ciCd.agentId.required("drillCiCd.agentId"), sourceBranch = ciCd.sourceBranch.required("drillCiCd.sourceBranch"), targetBranch = ciCd.targetBranch.required("drillCiCd.targetBranch"), latestCommitSha = ciCd.latestCommitSha.required("drillCiCd.latestCommitSha") ) } } }
2
Kotlin
0
0
fcd595896416d94b245c6fdb295378287b45802d
2,276
drill-cicd-integration
Apache License 2.0
drill-gradle-plugin/src/main/kotlin/com/epam/drill/integration/gradle/GitlabTasks.kt
Drill4J
798,257,596
false
{"Kotlin": 38073, "Dockerfile": 227}
/** * Copyright 2020 - 2022 EPAM Systems * * 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, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.epam.drill.integration.gradle import com.epam.drill.integration.common.client.impl.DrillApiClientImpl import com.epam.drill.integration.common.report.impl.TextReportGenerator import com.epam.drill.integration.gitlab.client.impl.GitlabApiClientV4Impl import com.epam.drill.integration.gitlab.service.GitlabCiCdService import kotlinx.coroutines.runBlocking import org.gradle.api.Task fun Task.drillGitlabMergeRequestReportTask(ciCd: DrillCiCdProperties) { doFirst { val gitlab = ciCd.gitlab.required("drillCiCd.gitlab") val gitlabCiCdService = GitlabCiCdService( GitlabApiClientV4Impl( gitlab.gitlabApiUrl.required("drillCiCd.gitlab.gitlabApiUrl"), gitlab.gitlabPrivateToken ), DrillApiClientImpl( ciCd.drillApiUrl.required("drillCiCd.drillApiUrl"), ciCd.drillApiKey ), TextReportGenerator() ) runBlocking { gitlabCiCdService.postMergeRequestReport( gitlabProjectId = gitlab.projectId.required("drillCiCd.gitlab.projectId"), gitlabMergeRequestId = gitlab.mergeRequestId.required("drillCiCd.gitlab.mergeRequestId"), drillGroupId = ciCd.groupId.required("drillCiCd.groupId"), drillAgentId = ciCd.agentId.required("drillCiCd.agentId"), sourceBranch = ciCd.sourceBranch.required("drillCiCd.sourceBranch"), targetBranch = ciCd.targetBranch.required("drillCiCd.targetBranch"), latestCommitSha = ciCd.latestCommitSha.required("drillCiCd.latestCommitSha") ) } } }
2
Kotlin
0
0
fcd595896416d94b245c6fdb295378287b45802d
2,276
drill-cicd-integration
Apache License 2.0
danbooru/network-check/src/test/kotlin/com/makentoshe/booruchan/danbooru/comment/DanbooruCommentsNetworkManagerTest.kt
Makentoshe
147,361,920
false
null
package com.makentoshe.booruchan.danbooru.comment import DanbooruCommentsNetworkManager import com.makentoshe.booruchan.danbooru.comment.deserialize.JsonDanbooruCommentsDeserializer import com.makentoshe.booruchan.danbooru.comment.deserialize.XmlDanbooruCommentsDeserializer import com.makentoshe.booruchan.danbooru.comment.network.DanbooruCommentsFilter import com.makentoshe.booruchan.danbooru.comment.network.JsonDanbooruCommentsRequest import com.makentoshe.booruchan.danbooru.comment.network.XmlDanbooruCommentsRequest import io.ktor.client.* import kotlinx.coroutines.runBlocking import org.junit.Assert.assertEquals import org.junit.Rule import org.junit.Test import org.junit.rules.Timeout import java.util.logging.Logger class DanbooruCommentsNetworkManagerTest { private val logger = Logger.getLogger(this.javaClass.simpleName) @get:Rule val globalTimeout: Timeout = Timeout.seconds(30) @Test fun `should request json tags with count param`() = runBlocking { val request = JsonDanbooruCommentsRequest(DanbooruCommentsFilter(count = 20)) logger.info { "Json url request: ${request.url}" } assertEquals("https://danbooru.donmai.us/comments.json?limit=20&group_by=comment", request.url) val networkResult = DanbooruCommentsNetworkManager(HttpClient()).getComments(request) logger.info { "Network result: $networkResult" } val networkSuccess = networkResult.getOrNull()!! // deserialize json and check: was the filter condition satisfied? val deserializeResult = JsonDanbooruCommentsDeserializer().deserializeComments(networkSuccess) logger.info { "Deserialize result: $deserializeResult" } val deserializeSuccess = deserializeResult.getOrNull()!! assertEquals(20, deserializeSuccess.deserializes.size) logger.info { "Success: ${deserializeSuccess.comments.size}" } logger.info { "Failure: ${deserializeSuccess.failures.size}" } } @Test fun `should request xml comments with count param`() = runBlocking { val request = XmlDanbooruCommentsRequest(DanbooruCommentsFilter(count = 20)) logger.info { "Xml url request: ${request.url}" } assertEquals("https://danbooru.donmai.us/comments.xml?limit=20&group_by=comment", request.url) val networkResult = DanbooruCommentsNetworkManager(HttpClient()).getComments(request) logger.info { "Network result: $networkResult" } val networkSuccess = networkResult.getOrNull()!! // deserialize json and check: was the filter condition satisfied? val deserializeResult = XmlDanbooruCommentsDeserializer().deserializeComments(networkSuccess) logger.info { "Deserialize result: $deserializeResult" } val deserializeSuccess = deserializeResult.getOrNull()!! assertEquals(20, deserializeSuccess.comments.size) logger.info { "Success: ${deserializeSuccess.comments.size}" } logger.info { "Failure: ${deserializeSuccess.failures.size}" } } }
0
Kotlin
1
6
d0f40fb8011967e212df1f21beb43e4c4ec03356
3,030
Booruchan
Apache License 2.0
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/IgnoredFileWritingAccessExtension.kt
ingokegel
284,920,751
false
null
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.vcs.changes import com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessExtension import com.intellij.openapi.fileTypes.FileTypeRegistry import com.intellij.openapi.project.Project import com.intellij.openapi.vcs.changes.ignore.lang.IgnoreFileType import com.intellij.openapi.vfs.VirtualFile import com.intellij.vcsUtil.VcsUtil class IgnoredFileWritingAccessExtension(private val project: Project) : NonProjectFileWritingAccessExtension { override fun isWritable(file: VirtualFile) = IgnoredFileContentProvider.IGNORE_FILE_CONTENT_PROVIDER .getExtensions(project) .map(IgnoredFileContentProvider::getFileName).containsIgnoreCase(file.name) && VcsUtil.getVcsRootFor(project, file) != null || (FileTypeRegistry.getInstance().getFileTypeByFileName(file.nameSequence) is IgnoreFileType) private fun List<String>.containsIgnoreCase(element: String) = any { it.equals(element, true) } }
1
null
1
2
dc846ecb926c9d9589c1ed8a40fdb20e47874db9
1,088
intellij-community
Apache License 2.0
feature-governance-impl/src/main/java/io/novafoundation/nova/feature_governance_impl/presentation/delegation/delegate/detail/votedReferenda/VotedReferendaPayload.kt
novasamatech
415,834,480
false
{"Kotlin": 7662708, "Java": 14723, "JavaScript": 425}
package io.novafoundation.nova.feature_governance_impl.presentation.delegation.delegate.detail.votedReferenda import android.os.Parcelable import jp.co.soramitsu.fearless_utils.runtime.AccountId import kotlinx.android.parcel.Parcelize @Parcelize class VotedReferendaPayload( val accountId: AccountId, val onlyRecentVotes: Boolean, val overriddenTitle: String? ) : Parcelable
13
Kotlin
5
9
66a5c0949aee03a5ebe870a1b0d5fa3ae929516f
389
nova-wallet-android
Apache License 2.0
kotlin-tests/src/test/kotlin/io/github/debop/kotlin/tests/extensions/DomainObject.kt
debop
187,949,869
false
null
package io.github.debop.kotlin.tests.extensions /** * DomainObject * @author debop (<NAME>) */ class DomainObject { var id: Int = 0 var name: String? = null var value: Long = 0L var price: Double = 0.0 val nestedDomainObject: NestedDomainObject? = null val wotsits: List<String>? = null class NestedDomainObject { var address: String? = null var category: String? = null } }
1
null
4
24
b9d1eb5309c6f9eab82dec676bfe6962428f36ce
429
kotlin-workshop
MIT License
neuvi/src/test/kotlin/com/github/jnexil/neuvi/internal/Model.kt
JNexil
76,639,857
false
null
package com.github.jnexil.neuvi.internal import com.github.jnexil.neuvi.api.* import com.github.jnexil.neuvi.api.Direction.* import com.github.jnexil.neuvi.api.layers.* import com.github.jnexil.neuvi.api.providers.MemoryManagement.* import com.github.jnexil.neuvi.util.* class Model(val activation: Activation) { val input = Global.neurons(2).replace { FastRandom.double } val expected = FastRandom.double val layers = listOf(Global.neurons(2), Global.neurons(2), Global.neurons(1)) val webs = listOf(Global.weights(2, 2), Global.weights(2, 1)) init { for (web in webs) { repeat(web.rows) { row -> repeat(web.columns) { column -> web[row, column] = FastRandom.double } } } layers[0].let { it[0] = activation.activate(input[0]) it[1] = activation.activate(input[1]) } layers[1].let { val previous = layers[0] val web = webs[0] it[0] = activation.activate(previous[0] * web[0, 0] + previous[1] * web[1, 0]) it[1] = activation.activate(previous[0] * web[0, 1] + previous[1] * web[1, 1]) } layers[2].let { val previous = layers[1] val web = webs[1] it[0] = activation.activate(previous[0] * web[0, 0] + previous[1] * web[1, 0]) } } fun initTo(output: MutableLayer, direction: Direction = LEFT) { output[direction]!!.finally { it[0, 0] = webs[1][0, 0] it[1, 0] = webs[1][1, 0] }.through(direction)!!.let { it[0, 0] = webs[0][0, 0] it[1, 0] = webs[0][1, 0] it[1, 1] = webs[0][1, 1] it[0, 1] = webs[0][0, 1] } } override fun toString(): String { return """Model( activation=$activation, input=$input, expected=$expected, layers=$layers, webs=$webs)""" } }
0
Kotlin
0
0
100081be16f921e39e8bfb7b6cccae0785d51f04
2,019
Neurio
Apache License 2.0
FFRv2/app/src/main/java/com/devingotaswitch/appsync/UserSettingsActivity.kt
jbailey2010
91,362,935
false
{"Kotlin": 694986}
package com.devingotaswitch.appsync import android.app.Activity import android.util.Log import com.amazonaws.mobileconnectors.appsync.fetcher.AppSyncResponseFetchers import com.apollographql.apollo.GraphQLCall import com.apollographql.apollo.api.Response import com.apollographql.apollo.exception.ApolloException import com.devingotaswitch.graphqlstuff.GetUserSettingsQuery import com.devingotaswitch.graphqlstuff.UpdateUserSettingsMutation import com.devingotaswitch.rankings.RankingsHome import com.devingotaswitch.rankings.domain.UserSettings import com.devingotaswitch.utils.AWSClientFactory.getAppSyncInstance import javax.annotation.Nonnull class UserSettingsActivity : AppSyncActivity() { fun updateUserSettings(activity: Activity?, userSettings: UserSettings) { val callback: GraphQLCall.Callback<UpdateUserSettingsMutation.Data?> = object : GraphQLCall.Callback<UpdateUserSettingsMutation.Data?>() { override fun onResponse(@Nonnull response: Response<UpdateUserSettingsMutation.Data?>) { if (response.errors().isNotEmpty()) { for (error in response.errors()) { Log.e(TAG, "Update user settings failed: " + error.message()) } } else { Log.d(TAG, "Successfully updated user settings.") } } override fun onFailure(@Nonnull e: ApolloException) { Log.e(TAG, "Failed to update user settings.", e) } } getAppSyncInstance(activity!!)!!.mutate( UpdateUserSettingsMutation.builder() .refreshOnOverscroll(userSettings.isRefreshOnOverscroll) .hideDraftedComparator(userSettings.isHideDraftedComparator) .hideDraftedSearch(userSettings.isHideDraftedSearch) .hideDraftedSort(userSettings.isHideDraftedSort) .hideIrrelevantComparator(userSettings.isHideRanklessComparator) .hideIrrelevantSearch(userSettings.isHideRanklessSearch) .hideIrrelevantSort(userSettings.isHideRanklessSort) .showNoteOnRanks(userSettings.isShowNoteRank) .showNoteOnSort(userSettings.isShowNoteSort) .sortWatchListByTime(userSettings.isSortWatchListByTime) .build() ).enqueue(callback) } fun getUserSettings(activity: Activity?) { val callback: GraphQLCall.Callback<GetUserSettingsQuery.Data> = object : GraphQLCall.Callback<GetUserSettingsQuery.Data>() { override fun onResponse(@Nonnull response: Response<GetUserSettingsQuery.Data>) { if (response.errors().isNotEmpty()) { for (error in response.errors()) { Log.e(TAG, "Get user settings failed: " + error.message()) } } else if (response.data()!!.userSettings != null) { Log.d(TAG, "Successfully retrieved user settings.") val settings = response.data()!!.userSettings val userSettings = UserSettings() userSettings.isShowNoteSort = settings!!.showNoteOnSort() userSettings.isShowNoteRank = settings.showNoteOnRanks() userSettings.isRefreshOnOverscroll = settings.refreshOnOverscroll() userSettings.isHideDraftedComparator = settings.hideDraftedComparator() userSettings.isHideDraftedSort = settings.hideDraftedSort() userSettings.isHideDraftedSearch = settings.hideDraftedSearch() userSettings.isHideRanklessComparator = settings.hideIrrelevantComparator() userSettings.isHideRanklessSearch = settings.hideIrrelevantSearch() userSettings.isHideRanklessSort = settings.hideIrrelevantSort() userSettings.isSortWatchListByTime = settings.sortWatchListByTime() runOnUiThread { if (activity is RankingsHome) { activity.setUserSettings(userSettings) } } } } override fun onFailure(@Nonnull e: ApolloException) { Log.e(TAG, "Failed to get user settings.", e) } } getAppSyncInstance(activity!!)!!.query( GetUserSettingsQuery.builder() .build()) .responseFetcher(AppSyncResponseFetchers.CACHE_AND_NETWORK) .enqueue(callback) } companion object { private const val TAG = "UserSettingsActivity" } }
10
Kotlin
0
0
ba3fb10b541e67129c7b3ea81d90d64a7ab9694a
4,805
FFRv2
Apache License 2.0
data/RF02396/rnartist.kts
fjossinet
449,239,232
false
{"Kotlin": 8214424}
import io.github.fjossinet.rnartist.core.* rnartist { ss { rfam { id = "RF02396" name = "consensus" use alignment numbering } } theme { details { value = 3 } color { location { 1 to 7 41 to 47 } value = "#996b47" } color { location { 11 to 16 33 to 38 } value = "#9cc81d" } color { location { 20 to 21 28 to 29 } value = "#acc529" } color { location { 8 to 10 39 to 40 } value = "#8644ae" } color { location { 17 to 19 30 to 32 } value = "#185ee0" } color { location { 22 to 27 } value = "#a43e10" } color { location { 48 to 59 } value = "#e92860" } } }
0
Kotlin
0
0
3016050675602d506a0e308f07d071abf1524b67
1,241
Rfam-for-RNArtist
MIT License
app/src/main/java/com/muei/apm/runtrack/activities/TrackingActivity.kt
danibranas
121,380,304
false
null
package com.muei.apm.runtrack.activities import android.Manifest import android.animation.LayoutTransition import android.annotation.SuppressLint import android.arch.lifecycle.Observer import android.content.* import android.content.pm.PackageManager import android.graphics.Color import android.net.Uri import android.os.Build import android.os.Bundle import android.os.IBinder import android.preference.PreferenceManager import android.provider.Settings import android.support.design.widget.FloatingActionButton import android.support.design.widget.Snackbar import android.support.v4.app.ActivityCompat import android.support.v4.content.LocalBroadcastManager import android.support.v7.app.AlertDialog import android.support.v7.app.AppCompatActivity import android.util.Log import android.util.TypedValue import android.view.View import android.view.ViewGroup import android.widget.ProgressBar import android.widget.TextView import com.google.android.gms.location.FusedLocationProviderClient import com.google.android.gms.maps.CameraUpdateFactory import com.google.android.gms.maps.GoogleMap import com.google.android.gms.maps.OnMapReadyCallback import com.muei.apm.runtrack.BuildConfig import com.muei.apm.runtrack.R import com.muei.apm.runtrack.services.LocationUpdatesService import com.muei.apm.runtrack.utils.LocationUtils import com.google.android.gms.maps.MapFragment import com.google.android.gms.maps.model.LatLng import com.google.android.gms.maps.model.MarkerOptions import com.google.android.gms.maps.model.PolylineOptions import com.muei.apm.runtrack.activities.tracking.TrackingReceiver import com.muei.apm.runtrack.data.api.Api import com.muei.apm.runtrack.data.api.ApiFactory import com.muei.apm.runtrack.data.models.Event import com.muei.apm.runtrack.data.models.Location import com.muei.apm.runtrack.data.persistence.AppDatabase import com.muei.apm.runtrack.data.persistence.Service import com.muei.apm.runtrack.data.persistence.ServiceDb import com.muei.apm.runtrack.utils.EventUtils import com.muei.apm.runtrack.utils.PausableChronometer import com.muei.apm.runtrack.utils.TrackingUtils import java.util.* import kotlin.math.roundToInt class TrackingActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceChangeListener, OnMapReadyCallback { companion object { val TAG: String = TrackingActivity::class.java.simpleName // Used in checking for runtime permissions. const val REQUEST_PERMISSIONS_REQUEST_CODE = 34 const val EXTRA_CHRONO_TIME = "EXTRA_CHRONO_TIME" const val EXTRA_CURRENT_PROGRESS = "EXTRA_CURRENT_PROGRESS" } // The BroadcastReceiver used to listen from broadcasts from the service. private var myReceiver: BroadcastReceiver? = null private val route = arrayListOf<LatLng>() // A reference to the service used to get location updates. private var mService: LocationUpdatesService? = null // Tracks the bound state of the service. private var mBound = false // UI elements. private var mStartPauseTrackingButton: FloatingActionButton? = null private var mStopTrackingButton: FloatingActionButton? = null private var mapFragment: View? = null private var chrono: PausableChronometer? = null private var distanceMeasure: TextView? = null private var paceMeasure: TextView? = null private var distanceMeasureUnit: TextView? = null private var paceMeasureUnit: TextView? = null private var progressBar: ProgressBar? = null private var backButtonDisabled = false // Control vars private var lastDistance: Double = 0.0 // Restore vars private var chronoTime: Long = 0 private var currentProgress: Int = 0 // Api and Storage private val api: Api by lazy { ApiFactory.getApi(this) } private val database: Service by lazy { ServiceDb(AppDatabase.getInstance(this)!!, this) } private var event: Event? = null private val mServiceConnection = object: ServiceConnection { override fun onServiceConnected(name: ComponentName, service: IBinder) { val binder = service as LocationUpdatesService.LocalBinder mService = binder.service mBound = true } override fun onServiceDisconnected(name: ComponentName?) { mService = null mBound = false } } private var map: GoogleMap? = null override fun onCreate(savedInstanceState: Bundle?) { setTheme(R.style.AppTheme) super.onCreate(savedInstanceState) myReceiver = TrackingReceiver({ map?.animateCamera(CameraUpdateFactory.newLatLngZoom(it, 17f)) addRouteSegment(it) updateStats(it) // TODO: Update }) setContentView(R.layout.activity_tracking) supportActionBar?.hide() val eventId = savedInstanceState?.getLong(EventDetailsActivity.EXTRA_EVENT_ID) ?: intent.getLongExtra(EventDetailsActivity.EXTRA_EVENT_ID, -1) chronoTime = savedInstanceState?.getLong(TrackingActivity.EXTRA_CHRONO_TIME) ?: 0 currentProgress = savedInstanceState?.getInt(TrackingActivity.EXTRA_CURRENT_PROGRESS) ?: 0 database.getEventById(eventId).observe(this, Observer { event = it }) val mapFragment = fragmentManager.findFragmentById(R.id.map) as MapFragment mapFragment.getMapAsync(this) // Check that the user hasn't revoked permissions by going to Settings. if (!checkPermissions()) { requestPermissions() } if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { (findViewById<ViewGroup>(R.id.activity_tracking)) .layoutTransition .enableTransitionType(LayoutTransition.CHANGING) } } private fun addRouteSegment(point: LatLng) { val lastPoint = route.lastOrNull() val pointList = arrayListOf<LatLng>() if (route.size == 1) { map?.addMarker(MarkerOptions().position(point)) } route.add(point) if (lastPoint != null) { pointList.add(lastPoint) pointList.add(point) map?.addPolyline(PolylineOptions() .width(20f) .color(Color.YELLOW) .geodesic(true) .addAll(pointList) ) } database.registerEventLocation(event!!.id, Location(point.latitude, point.longitude, Date())) // TODO: update distance } private fun updateStats(point: LatLng) { database.getLocationsByEventId(event!!.id).observe(this, Observer { val totalDistance = TrackingUtils.calculateDistance(it!!) if (lastDistance > totalDistance) { // A next async-updateStats has been set before this one return@Observer } val goalDistance = event!!.distance!! * 1000 val distancePercent = TrackingUtils.calculateDistancePercent(goalDistance, totalDistance) val firstPoint = it.firstOrNull() val avgPace = TrackingUtils.calculatePace(firstPoint, Location(point), totalDistance) distanceMeasure?.text = EventUtils.formatDouble(TrackingUtils.distanceToKm(totalDistance)) paceMeasure?.text = EventUtils.formatDouble(avgPace) if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { progressBar?.setProgress(distancePercent.roundToInt(), true) } else { progressBar?.progress = distancePercent.roundToInt() } }) } override fun onStart() { super.onStart() PreferenceManager.getDefaultSharedPreferences(this) .registerOnSharedPreferenceChangeListener(this) mStartPauseTrackingButton = findViewById(R.id.start_pause_tracking_button) mStopTrackingButton = findViewById(R.id.stop_tracking_button) chrono = PausableChronometer(findViewById(R.id.chronometer)) distanceMeasure = findViewById(R.id.distance_measure) paceMeasure = findViewById(R.id.pace_measure) distanceMeasureUnit = findViewById(R.id.distance_measure_unit) paceMeasureUnit = findViewById(R.id.pace_measure_unit) mapFragment = findViewById(R.id.map) progressBar = findViewById(R.id.track_progress_bar) chrono!!.setTime(chronoTime) mStartPauseTrackingButton!!.setOnClickListener({ toggleLocationUpdates() }) mStopTrackingButton!!.setOnClickListener({ AlertDialog.Builder(this) .setMessage(R.string.tracking_stop_question) .setPositiveButton(R.string.stop, { _: DialogInterface, _: Int -> chrono!!.reset() mService!!.removeLocationUpdates() // Save on db and notify backend val results = calculateEventStats() database.finishEventTracking(event!!.id, Date(), results) api.finishEventById(event!!.id, results) startEventDetailsActivity() }) .setNegativeButton(R.string.no, null) .show() }) // Restore the state of the buttons when the activity (re)launches. setButtonsState(LocationUtils.requestingLocationUpdates(this)) // Bind to the service. If the service is in foreground mode, this signals to the service // that since this activity is in the foreground, the service can exit foreground mode. bindService(Intent(this, LocationUpdatesService::class.java), mServiceConnection, Context.BIND_AUTO_CREATE) } override fun onResume() { super.onResume() LocalBroadcastManager.getInstance(this).registerReceiver(myReceiver!!, IntentFilter(LocationUpdatesService.ACTION_BROADCAST)) } override fun onPause() { LocalBroadcastManager.getInstance(this).unregisterReceiver(myReceiver!!) super.onPause() } override fun onStop() { if (mBound) { // Unbind from the service. This signals to the service that this activity is no longer // in the foreground, and the service can respond by promoting itself to a foreground // service. unbindService(mServiceConnection) mBound = false } PreferenceManager.getDefaultSharedPreferences(this) .unregisterOnSharedPreferenceChangeListener(this) super.onStop() } override fun onBackPressed() { if (!backButtonDisabled) { super.onBackPressed() } } override fun onSaveInstanceState(bundle: Bundle) { super.onSaveInstanceState(bundle) bundle.run { putLong(EventDetailsActivity.EXTRA_EVENT_ID, event?.id ?: -1) putLong(TrackingActivity.EXTRA_CHRONO_TIME, chrono!!.getTime()) putInt(TrackingActivity.EXTRA_CURRENT_PROGRESS, progressBar?.progress ?: 0) } } override fun onRestoreInstanceState(savedInstanceState: Bundle?) { super.onRestoreInstanceState(savedInstanceState) val eventId = savedInstanceState?.getLong(EventDetailsActivity.EXTRA_EVENT_ID) ?: intent.getLongExtra(EventDetailsActivity.EXTRA_EVENT_ID, -1) chrono?.setTime(savedInstanceState?.getLong(TrackingActivity.EXTRA_CHRONO_TIME) ?: 0) database.getEventById(eventId).observe(this, Observer { event = it }) } /** * Returns the current state of the permissions needed. */ private fun checkPermissions(): Boolean { return PackageManager.PERMISSION_GRANTED == ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) } private fun toggleLocationUpdates() { backButtonDisabled = true if (LocationUtils.requestingLocationUpdates(this)) { mService!!.removeLocationUpdates() } else { if (!checkPermissions()) { requestPermissions() } else { mService!!.requestLocationUpdates() } } } override fun onMapReady(map: GoogleMap) { this.map = map if (!checkPermissions()) { requestPermissions() } else { initMapLocation() } } @SuppressLint("MissingPermission") private fun initMapLocation() { map?.isMyLocationEnabled = true FusedLocationProviderClient(this).lastLocation.addOnSuccessListener { val latLng = LatLng(it.latitude, it.longitude) addRouteSegment(latLng) val cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, 17f) map?.animateCamera(cameraUpdate) } } private fun requestPermissions() { val shouldProvideRationale = ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION) // Provide an additional rationale to the user. This would happen if the user denied the // request previously, but didn't check the "Don't ask again" checkbox. if (shouldProvideRationale) { Log.i(TAG, "Displaying permission rationale to provide additional context.") Snackbar.make( findViewById(R.id.activity_tracking), R.string.permission_rationale, Snackbar.LENGTH_INDEFINITE) .setAction(R.string.ok, { // JsonRequest permission ActivityCompat.requestPermissions(this@TrackingActivity, arrayOf(Manifest.permission.ACCESS_FINE_LOCATION), REQUEST_PERMISSIONS_REQUEST_CODE) }) .show() } else { Log.i(TAG, "Requesting permission") // JsonRequest permission. It's possible this can be auto answered if device policy // sets the permission in a given state or the user denied the permission // previously and checked "Never ask again". ActivityCompat.requestPermissions(this@TrackingActivity, arrayOf(Manifest.permission.ACCESS_FINE_LOCATION), REQUEST_PERMISSIONS_REQUEST_CODE) } } override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>, grantResults: IntArray) { Log.i(TAG, "onRequestPermissionResult") if (requestCode == REQUEST_PERMISSIONS_REQUEST_CODE) { when { grantResults.isEmpty() -> // If user interaction was interrupted, the permission request is cancelled and you // receive empty arrays. Log.i(TAG, "Event interaction was cancelled.") grantResults[0] == PackageManager.PERMISSION_GRANTED -> {// Permission was granted. mService!!.requestLocationUpdates() initMapLocation() } else -> { // Permission denied. setButtonsState(false) Snackbar.make( findViewById(R.id.activity_tracking), R.string.permission_denied_explanation, Snackbar.LENGTH_INDEFINITE) .setAction(R.string.settings, { // Build intent that displays the App settings screen. val intent = Intent() intent.action = Settings.ACTION_APPLICATION_DETAILS_SETTINGS val uri = Uri.fromParts("package", BuildConfig.APPLICATION_ID, null) intent.data = uri intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK startActivity(intent) }) .show() } } } } override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences, s: String) { // Update the buttons state depending on whether location updates are being requested. if (s == LocationUtils.KEY_REQUESTING_LOCATION_UPDATES) { setButtonsState(sharedPreferences.getBoolean(LocationUtils.KEY_REQUESTING_LOCATION_UPDATES, false)) } } private fun setButtonsState(requestingLocationUpdates: Boolean) { if (requestingLocationUpdates) { mStopTrackingButton!!.visibility = View.VISIBLE paceMeasure!!.visibility = View.VISIBLE paceMeasureUnit!!.visibility = View.VISIBLE distanceMeasure!!.visibility = View.VISIBLE distanceMeasureUnit!!.visibility = View.VISIBLE mStartPauseTrackingButton!!.setImageResource(R.drawable.ic_pause_icon) if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { progressBar!!.visibility = View.VISIBLE } chrono!!.chronometer?.visibility = View.VISIBLE chrono!!.start() doSetMarginBottomDp(mapFragment, 300) } else { mStartPauseTrackingButton!!.setImageResource(R.drawable.ic_play_icon) chrono!!.stop() } } private fun doSetMarginBottomDp(view: View?, marginBottom: Int) { val p = view?.layoutParams as ViewGroup.MarginLayoutParams? if (p != null) { val marginBottomDp = TypedValue.applyDimension( TypedValue.COMPLEX_UNIT_DIP, marginBottom.toFloat(), resources.displayMetrics ) p.bottomMargin = marginBottomDp.toInt() view?.requestLayout() } } private fun startEventDetailsActivity() { val intent = Intent(this, EventDetailsActivity::class.java) intent.flags = intent.flags or Intent.FLAG_ACTIVITY_CLEAR_TOP intent.putExtra(EventDetailsActivity.EXTRA_EVENT_ID, event?.id ?: -1) intent.putExtra(EventDetailsActivity.EXTRA_EVENT_FROM_TRACKING, true) startActivity(intent) } private fun calculateEventStats(): Event.Results { // TODO: calculate events on event finish and return them return Event.Results() } }
1
Kotlin
0
1
2871d769b360ead647b1f8603f7138c4b2528c98
18,634
runtrack
MIT License
microapp/gamestats/src/main/java/bruhcollective/itaysonlab/microapp/gamestats/di/GameStatsMicroappModule.kt
iTaysonLab
525,967,051
false
{"Kotlin": 203833}
package bruhcollective.itaysonlab.microapp.gamestats.di import bruhcollective.itaysonlab.microapp.core.MicroappEntry import bruhcollective.itaysonlab.microapp.core.di.MicroappEntryKey import bruhcollective.itaysonlab.microapp.gamestats.GameStatsMicroapp import bruhcollective.itaysonlab.microapp.gamestats.GameStatsMicroappImpl import dagger.Binds import dagger.Module import dagger.hilt.InstallIn import dagger.hilt.components.SingletonComponent import dagger.multibindings.IntoMap import javax.inject.Singleton @Module @InstallIn(SingletonComponent::class) interface GameStatsMicroappModule { @Singleton @Binds @IntoMap @MicroappEntryKey(value = GameStatsMicroapp::class) fun gameStatsEntry(entry: GameStatsMicroappImpl): MicroappEntry }
0
Kotlin
0
13
f651cfc692852c378c9cd3b4e41d8aa1b5a76eb5
761
jetisoft
Apache License 2.0
platform/statistics/devkit/src/com/intellij/internal/statistic/StatisticsDevKitUtil.kt
JetBrains
2,489,216
false
null
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.internal.statistic import com.intellij.internal.statistic.eventLog.StatisticsEventLogProviderUtil import com.intellij.internal.statistic.eventLog.StatisticsEventLoggerProvider import com.intellij.internal.statistic.utils.StatisticsRecorderUtil import com.intellij.notification.Notification import com.intellij.notification.NotificationType import com.intellij.openapi.project.Project internal object StatisticsDevKitUtil { const val DEFAULT_RECORDER = "FUS" const val STATISTICS_NOTIFICATION_GROUP_ID = "FeatureUsageStatistics" fun getLogProvidersInTestMode(): List<StatisticsEventLoggerProvider> { val allowedRecorders = StatisticsRecorderUtil.getRecordersInTestMode() if (allowedRecorders.isEmpty()) { return emptyList() } return StatisticsEventLogProviderUtil.getEventLogProviders().filter { allowedRecorders.contains(it.recorderId) } } fun showNotification(project: Project, type: NotificationType, message: String) { Notification(STATISTICS_NOTIFICATION_GROUP_ID, StatisticsBundle.message("stats.feature.usage.statistics"), message, type) .notify(project) } }
185
null
4309
13,119
6cc9ec2a0d40f5e32510681475c2d4282965fd8c
1,275
intellij-community
Apache License 2.0
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsresettlementpassportapi/data/ResettlementAssessment.kt
ministryofjustice
665,659,688
false
{"Kotlin": 560641, "Dockerfile": 1528}
package uk.gov.justice.digital.hmpps.hmppsresettlementpassportapi.data import uk.gov.justice.digital.hmpps.hmppsresettlementpassportapi.data.resettlementassessment.ResettlementAssessmentQuestionAndAnswer import uk.gov.justice.digital.hmpps.hmppsresettlementpassportapi.data.resettlementassessment.ResettlementAssessmentRequestQuestionAndAnswer import uk.gov.justice.digital.hmpps.hmppsresettlementpassportapi.jpa.entity.Pathway import uk.gov.justice.digital.hmpps.hmppsresettlementpassportapi.jpa.entity.ResettlementAssessmentType import uk.gov.justice.digital.hmpps.hmppsresettlementpassportapi.jpa.entity.Status data class ResettlementAssessment( val pathway: Pathway, val nomsID: String, val type: ResettlementAssessmentType, val currentPage: String, val questions: List<ResettlementAssessmentQuestionAndAnswer>, val newStatus: Status, ) data class ResettlementAssessmentRequest( val pathway: Pathway, val nomsID: String, val type: ResettlementAssessmentType, val currentPage: String, val questions: List<ResettlementAssessmentRequestQuestionAndAnswer<*>>, val newStatus: Status, )
0
Kotlin
2
0
c004ac40f81402a0593a0414337efbd380e23eff
1,112
hmpps-resettlement-passport-api
MIT License
src/main/kotlin/de/nycode/gameoflife/game/Game.kt
NyCodeGHG
315,671,781
false
null
package de.nycode.gameoflife.game /** * Represents any type of a game which can be rendered with any Type of [Renderer] */ abstract class Game { /** * The renderer the game uses */ abstract val renderer: Renderer /** * Game update lifecycle */ abstract fun update() }
0
Kotlin
0
0
00336296e64c102f8dbaa831575a6a504555b27f
310
conways-game-of-life
MIT License
agent/src/main/kotlin/org/nessus/didcomm/service/NessusSignatoryService.kt
tdiesler
578,916,709
false
{"Kotlin": 620123, "Python": 19397, "HTML": 13066, "Java": 3170, "Shell": 2174, "Open Policy Agent": 1617, "CSS": 458, "Dockerfile": 196}
package org.nessus.didcomm.service import id.walt.common.prettyPrint import id.walt.credentials.w3c.VerifiableCredential import id.walt.credentials.w3c.templates.VcTemplate import id.walt.services.context.ContextManager import id.walt.services.vc.JsonLdCredentialService import id.walt.services.vc.JwtCredentialService import id.walt.signatory.ProofConfig import id.walt.signatory.ProofType import id.walt.signatory.Signatory import id.walt.signatory.SignatoryConfig import org.nessus.didcomm.model.W3CVerifiableCredential import org.nessus.didcomm.util.trimJson fun VcTemplate.shortString(): String { return "${name}[mutable=$mutable]" } object NessusSignatoryService: ObjectService<NessusSignatoryService>() { override fun getService() = apply { } private const val VC_GROUP = "signatory" private val delegate get() = Signatory.getService() val proofConfig get() = signatoryConfig.proofConfig val signatoryConfig get() = delegate.configuration as SignatoryConfig val templates get() = delegate.listTemplates().sortedBy { it.name } fun issue(vc: W3CVerifiableCredential, config: ProofConfig, store: Boolean = false): W3CVerifiableCredential { val signedVcJson = when (config.proofType) { ProofType.LD_PROOF -> JsonLdCredentialService.getService().sign(vc.toJson(), config) ProofType.JWT, ProofType.SD_JWT -> JwtCredentialService.getService().sign(vc.toJson(), config) }.trimJson() log.info { "Signed Credential: ${signedVcJson.prettyPrint()}" } val signedVc = W3CVerifiableCredential.fromJson(signedVcJson) if (store) { val waltVc = VerifiableCredential.fromJson(signedVcJson) val vcId = checkNotNull(waltVc.id) { "No credential Id" } ContextManager.vcStore.storeCredential(vcId, waltVc, VC_GROUP) } return signedVc } fun findTemplateByAlias(alias: String): VcTemplate? { return templates.firstOrNull { it.name.lowercase().startsWith(alias.lowercase()) } } }
26
Kotlin
1
8
c199c1289544c706797e755e18f6fba2cbf2832b
2,041
nessus-didcomm
Apache License 2.0
app/src/main/java/kz/oqu/android/http/local/room/dao/UserDao.kt
abikko
362,209,725
false
null
package kz.oqu.android.http.local.room.dao import androidx.room.* import kz.oqu.android.model.RoomUtils import kz.oqu.android.model.pojo.User @Dao interface UserDao { @Query(" SELECT * FROM ${RoomUtils.USER_TABLE_KEY}") fun getUser(): User @Update fun updateUser(user: User) @Delete fun deleteUser(user: User) @Insert fun insertUser(user: User) }
0
Kotlin
0
2
5b9b8dd259634831a3057b50d4dc6425c421c216
383
oqutushy.kz
MIT License
app/src/main/java/kz/oqu/android/http/local/room/dao/UserDao.kt
abikko
362,209,725
false
null
package kz.oqu.android.http.local.room.dao import androidx.room.* import kz.oqu.android.model.RoomUtils import kz.oqu.android.model.pojo.User @Dao interface UserDao { @Query(" SELECT * FROM ${RoomUtils.USER_TABLE_KEY}") fun getUser(): User @Update fun updateUser(user: User) @Delete fun deleteUser(user: User) @Insert fun insertUser(user: User) }
0
Kotlin
0
2
5b9b8dd259634831a3057b50d4dc6425c421c216
383
oqutushy.kz
MIT License
android-client-sdk/src/main/java/com/devcycle/sdk/android/api/DVCOptions.kt
DevCycleHQ
431,944,711
false
null
package com.devcycle.sdk.android.api class DVCOptions( val flushEventsIntervalMs: Long, private val disableEventLogging: Boolean, val enableEdgeDB: Boolean, val configCacheTTL: Long?, val disableConfigCache: Boolean, val disableRealtimeUpdates: Boolean ) { class DVCOptionsBuilder internal constructor() { private var flushEventsIntervalMs = 0L private var disableEventLogging = false private var enableEdgeDB = false private var configCacheTTL: Long? = null private var disableConfigCache = false private var disableRealtimeUpdates = false fun flushEventsIntervalMs(flushEventsIntervalMs: Long): DVCOptionsBuilder { this.flushEventsIntervalMs = flushEventsIntervalMs return this } fun disableEventLogging(disableEventLogging: Boolean): DVCOptionsBuilder { this.disableEventLogging = disableEventLogging return this } fun enableEdgeDB(enableEdgeDB: Boolean): DVCOptionsBuilder { this.enableEdgeDB = enableEdgeDB return this } fun configCacheTTL(configCacheTTL: Long): DVCOptionsBuilder { this.configCacheTTL = configCacheTTL return this } fun disableConfigCache(disableConfigCache: Boolean): DVCOptionsBuilder { this.disableConfigCache = disableConfigCache return this } fun disableRealtimeUpdates(disableRealtimeUpdates: Boolean): DVCOptionsBuilder { this.disableRealtimeUpdates = disableRealtimeUpdates return this } fun build(): DVCOptions { return DVCOptions( flushEventsIntervalMs, disableEventLogging, enableEdgeDB, configCacheTTL, disableConfigCache, disableRealtimeUpdates ) } } companion object { @JvmStatic fun builder(): DVCOptionsBuilder { return DVCOptionsBuilder() } } }
1
Kotlin
0
20
b180dcef1287499f78058796bbb2c0c679787837
2,091
android-client-sdk
MIT License
android/src/main/java/com/alpha0010/pdf/AnnotationPage.kt
alpha0010
296,458,053
false
{"TypeScript": 32055, "Kotlin": 20640, "Swift": 14392, "Java": 6229, "Objective-C": 4348, "JavaScript": 1476, "Ruby": 1346, "C": 103}
package com.alpha0010.pdf import kotlinx.serialization.Serializable @Serializable data class PositionedText( val color: String, val fontSize: Float, val point: List<Float>, val str: String ) @Serializable data class Stroke( val color: String, val width: Float, val path: List<List<Float>> ) @Serializable data class AnnotationPage( val strokes: List<Stroke>, val text: List<PositionedText> )
3
TypeScript
10
73
db6ecbb95fb40d5a8be62d72fc21c28b92d4b9ae
414
react-native-pdf-viewer
MIT License
sange/src/main/java/zlc/season/sange/SangeDataSource.kt
ssseasonnn
189,573,304
false
null
package zlc.season.sange import kotlinx.coroutines.CoroutineScope open class SangeDataSource<T>(coroutineScope: CoroutineScope = mainScope) : DataSource<T>(coroutineScope) { override val dataStorage = SangeDataStorage<T>() /** * Add header */ fun addHeader(t: T, position: Int = -1, delay: Boolean = false) { coroutineScope.ensureMainThread { if (position > -1) { dataStorage.addHeader(position, t) } else { dataStorage.addHeader(t) } if (!delay) { notifySubmitList() } } } fun addHeaders(list: List<T>, position: Int = -1, delay: Boolean = false) { coroutineScope.ensureMainThread { if (position > -1) { dataStorage.addHeaders(position, list) } else { dataStorage.addHeaders(list) } if (!delay) { notifySubmitList() } } } fun removeHeaderAt(position: Int, delay: Boolean = false) { coroutineScope.ensureMainThread { dataStorage.removeHeaderAt(position) if (!delay) { notifySubmitList() } } } fun removeHeader(t: T, delay: Boolean = false) { coroutineScope.ensureMainThread { val index = dataStorage.indexHeaderOf(t) if (index != -1) { dataStorage.removeHeader(t) if (!delay) { notifySubmitList() } } else { throw IllegalArgumentException("Wrong index!") } } } fun setHeader(old: T, new: T, delay: Boolean = false) { coroutineScope.ensureMainThread { dataStorage.setHeader(old, new) if (!delay) { notifySubmitList() } } } fun setHeader(index: Int, new: T, delay: Boolean = false) { coroutineScope.ensureMainThread { dataStorage.setHeader(index, new) if (!delay) { notifySubmitList() } } } fun getHeader(position: Int): T { return assertMainThreadWithResult { dataStorage.getHeader(position) } } fun getHeaders(): List<T> { return assertMainThreadWithResult { dataStorage.getHeaders() } } /** * Clear headers */ fun clearHeader(delay: Boolean = false) { coroutineScope.ensureMainThread { dataStorage.clearHeader() if (!delay) { notifySubmitList() } } } /** * Return header size */ fun headerSize(): Int { return assertMainThreadWithResult { dataStorage.headerSize() } } /** * Add footer */ fun addFooter(t: T, position: Int = -1, delay: Boolean = false) { coroutineScope.ensureMainThread { if (position > -1) { dataStorage.addFooter(position, t) } else { dataStorage.addFooter(t) } if (!delay) { notifySubmitList() } } } fun addFooters(list: List<T>, position: Int = -1, delay: Boolean = false) { coroutineScope.ensureMainThread { if (position > -1) { dataStorage.addFooters(position, list) } else { dataStorage.addFooters(list) } if (!delay) { notifySubmitList() } } } fun removeFooterAt(position: Int, delay: Boolean = false) { coroutineScope.ensureMainThread { dataStorage.removeFooterAt(position) if (!delay) { notifySubmitList() } } } fun removeFooter(t: T, delay: Boolean = false) { coroutineScope.ensureMainThread { val index = dataStorage.indexFooterOf(t) if (index != -1) { dataStorage.removeFooter(t) if (!delay) { notifySubmitList() } } else { throw IllegalArgumentException("Wrong index!") } } } fun setFooter(old: T, new: T, delay: Boolean = false) { coroutineScope.ensureMainThread { dataStorage.setFooter(old, new) if (!delay) { notifySubmitList() } } } fun setFooter(index: Int, new: T, delay: Boolean = false) { coroutineScope.ensureMainThread { dataStorage.setFooter(index, new) if (!delay) { notifySubmitList() } } } fun getFooter(position: Int): T { return assertMainThreadWithResult { dataStorage.getFooter(position) } } fun getFooters(): List<T> { return assertMainThreadWithResult { dataStorage.getFooters() } } fun clearFooter(delay: Boolean = false) { coroutineScope.ensureMainThread { dataStorage.clearFooter() if (!delay) { notifySubmitList() } } } fun footerSize(): Int { return assertMainThreadWithResult { dataStorage.footerSize() } } }
0
null
4
37
16695a612ac0ca9ef945dbd5d52fd98af628cfd2
5,411
Sange
Apache License 2.0
core/src/main/kotlin/org/rewedigital/dialog/model/google/GoogleSimpleResponse.kt
rewe-digital-incubator
169,550,416
false
null
package org.rewedigital.dialog.model.google data class GoogleSimpleResponse( val textToSpeech: String? = null, val ssml: String? = null, val displayText: String? = null )
3
Kotlin
5
10
7ea2fac743323acd9e17f41eb4511df1782b874d
183
dialog
MIT License
domain/src/main/kotlin/no/nav/su/se/bakover/domain/brev/beregning/TilbakekrevingForBrev.kt
navikt
227,366,088
false
{"Kotlin": 9465702, "Shell": 4372, "TSQL": 1233, "Dockerfile": 1211}
package no.nav.su.se.bakover.domain.brev.beregning import no.nav.su.se.bakover.common.MånedBeløp import no.nav.su.se.bakover.common.extensions.toBrevformat import no.nav.su.se.bakover.common.sorterPåPeriode import no.nav.su.se.bakover.common.tid.periode.Periode data class BrevTilbakekrevingInfo( val periode: String, val beløp: String, val tilbakekrevingsgrad: String, ) data class Tilbakekreving( // TODO jah: Dersom man bruker periodeStart/periodeSlutt får man en NoSuchElementException elements exceptions // Kan vi bytte til NEL? private val månedBeløp: List<MånedBeløp>, ) { val tilbakekrevingavdrag = månedBeløp.map { BrevTilbakekrevingInfo( periode = it.periode.toBrevPeriode(), beløp = it.beløp.tusenseparert(), tilbakekrevingsgrad = "100%", ) } // TODO jah: Flytt formateringen nærmere PdfInnhold? Kanskje pdfgen har denne funksjonaliteten? ref. https://github.com/navikt/pdfgen/blob/master/src/main/kotlin/no/nav/pdfgen/template/Helpers.kt val periodeStart = månedBeløp.sorterPåPeriode().first().periode.fraOgMed.toBrevformat() val periodeSlutt = månedBeløp.sorterPåPeriode().last().periode.tilOgMed.toBrevformat() } // TODO jah: Flytt formateringen nærmere PdfInnhold? ref. https://github.com/navikt/pdfgen/blob/master/src/main/kotlin/no/nav/pdfgen/template/Helpers.kt private fun Periode.toBrevPeriode(): String = this.fraOgMed.toBrevformat() + " - " + this.tilOgMed.toBrevformat()
6
Kotlin
1
1
ed28832346c1f839ea3a489eae8cc623079a0a2f
1,497
su-se-bakover
MIT License
xprl-efactura-jaxb-publishing/src/main/kotlin/uk/co/xprl/efactura/jaxb/JaxbComprobanteFactory.kt
xprl-gjf
534,729,919
false
{"Kotlin": 364167}
@file:Suppress("MemberVisibilityCanBePrivate") package uk.co.xprl.efactura.jaxb import uk.co.xprl.efactura.* import uk.co.xprl.efactura.jaxb.v1_0_0.createFactura as createFactura_1_0_0 import uk.co.xprl.efactura.jaxb.v1_1_0.createFactura as createFactura_1_1_0 import uk.co.xprl.efactura.jaxb.v1_0_0.createNotaCredito as createNotaCredito_1_0_0 import uk.co.xprl.efactura.jaxb.v1_1_0.createNotaCredito as createNotaCredito_1_1_0 import uk.co.xprl.efactura.jaxb.v1_0_0.createNotaDebito as createNotaDebito_1_0_0 import uk.co.xprl.efactura.jaxb.v1_0_0.createComprobanteRetencion as createComprobanteRetencion_1_0_0 import uk.co.xprl.efactura.jaxb.v1_0_0.createGuiaRemision as createGuiaRemision_1_0_0 import uk.co.xprl.efactura.jaxb.v1_1_0.createGuiaRemision as createGuiaRemision_1_1_0 import uk.co.xprl.efactura.jaxb.v1_0_0.createLiquidacionCompra as createLiquidacionCompra_1_0_0 import uk.co.xprl.efactura.jaxb.v1_1_0.createLiquidacionCompra as createLiquidacionCompra_1_1_0 import ec.gob.sri.factura.v1_0_0.Factura as Factura_1_0_0 import ec.gob.sri.factura.v1_1_0.Factura as Factura_1_1_0 import ec.gob.sri.credito.v1_0_0.NotaCredito as NotaCredito_1_0_0 import ec.gob.sri.credito.v1_1_0.NotaCredito as NotaCredito_1_1_0 import ec.gob.sri.debito.v1_0_0.NotaDebito as NotaDebito_1_0_0 import ec.gob.sri.retencion.v1_0_0.ComprobanteRetencion as ComprobanteRetencion_1_0_0 import ec.gob.sri.remision.v1_0_0.GuiaRemision as GuiaRemision_1_0_0 import ec.gob.sri.remision.v1_1_0.GuiaRemision as GuiaRemision_1_1_0 import ec.gob.sri.liquidacion.v1_0_0.LiquidacionCompra as LiquidacionCompra_1_0_0 import ec.gob.sri.liquidacion.v1_1_0.LiquidacionCompra as LiquidacionCompra_1_1_0 data class JaxbComprobante( val claveAcceso: ClaveAcceso, val jaxbObject: Any, val jaxbObjectClass: Class<*> ) interface JaxbComprobanteFactory { fun <T: ComprobanteElectronico> createJaxbComprobante(comprobante: T, version: SchemaVersion<T>): JaxbComprobante } class JaxbComprobanteFactoryImpl( val ambiente: Ambiente, val tipoEmision: TipoEmisión = TipoEmisión.NORMAL, val genClaveAcceso: (ComprobanteElectronico, Ambiente, TipoEmisión) -> ClaveAcceso ) : JaxbComprobanteFactory { override fun <T: ComprobanteElectronico> createJaxbComprobante(comprobante: T, version: SchemaVersion<T>): JaxbComprobante { val claveAcceso = genClaveAcceso(comprobante, ambiente, tipoEmision) val (jaxbObject, jaxbObjectClass) = createJaxbComprobante(comprobante, version, ambiente, tipoEmision, claveAcceso) return JaxbComprobante(claveAcceso, jaxbObject, jaxbObjectClass) } companion object { @JvmStatic fun default(ambiente: Ambiente, tipoEmision: TipoEmisión = TipoEmisión.NORMAL) = JaxbComprobanteFactoryImpl(ambiente, tipoEmision, ClaveAccesoGeneratorImpl.Default::genClaveAcceso) private fun <T: ComprobanteElectronico> createJaxbComprobante( comprobante: T, version: SchemaVersion<T>, ambiente: Ambiente, tipoEmision: TipoEmisión, claveAcceso: ClaveAcceso ): Pair<Any, Class<*>> = when (version) { /* factura */ SchemaVersion.FacturaV100 -> createFactura_1_0_0( comprobante as Factura, ambiente, tipoEmision, claveAcceso ) to Factura_1_0_0::class.java SchemaVersion.FacturaV110 -> createFactura_1_1_0( comprobante as Factura, ambiente, tipoEmision, claveAcceso ) to Factura_1_1_0::class.java // TODO: Factura_2_0_0 // TODO: Factura_2_1_0 /* nota credito */ SchemaVersion.NotaCreditoV100 -> createNotaCredito_1_0_0( comprobante as NotaCredito, ambiente, tipoEmision, claveAcceso ) to NotaCredito_1_0_0::class.java SchemaVersion.NotaCreditoV110 -> createNotaCredito_1_1_0( comprobante as NotaCredito, ambiente, tipoEmision, claveAcceso ) to NotaCredito_1_1_0::class.java /* note debito */ SchemaVersion.NotaDebitoV100 -> createNotaDebito_1_0_0( comprobante as NotaDebito, ambiente, tipoEmision, claveAcceso ) to NotaDebito_1_0_0::class.java /* comprobante retencion */ SchemaVersion.ComprobanteRetencionV100 -> createComprobanteRetencion_1_0_0( comprobante as ComprobanteRetencion, ambiente, tipoEmision, claveAcceso ) to ComprobanteRetencion_1_0_0::class.java // TODO: ComprobanteRetencion_2_0_0 /* guia de remision */ SchemaVersion.GuiaRemisionV100 -> createGuiaRemision_1_0_0( comprobante as GuiaRemision, ambiente, tipoEmision, claveAcceso ) to GuiaRemision_1_0_0::class.java SchemaVersion.GuiaRemisionV110 -> createGuiaRemision_1_1_0( comprobante as GuiaRemision, ambiente, tipoEmision, claveAcceso ) to GuiaRemision_1_1_0::class.java /* liquidacion de compra */ SchemaVersion.LiquidacionCompraV100 -> createLiquidacionCompra_1_0_0( comprobante as LiquidacionCompra, ambiente, tipoEmision, claveAcceso ) to LiquidacionCompra_1_0_0::class.java SchemaVersion.LiquidacionCompraV110 -> createLiquidacionCompra_1_1_0( comprobante as LiquidacionCompra, ambiente, tipoEmision, claveAcceso ) to LiquidacionCompra_1_1_0::class.java } } }
0
Kotlin
0
1
3f9317ca822139ee12f8322ef5457dc05338e832
5,508
xprl-efactura
Apache License 2.0
app/src/main/java/com/vixiloc/vixgpt/di/RepositoryModule.kt
rizky201008
665,395,128
false
null
package com.vixiloc.vixgpt.di import com.vixiloc.vixgpt.data.repositories.ChatRepository import com.vixiloc.vixgpt.data.repositories.OpenAiRepository import org.koin.android.ext.koin.androidContext import org.koin.dsl.module val repositoryModule = module { single { ChatRepository(androidContext(), get()) } single { OpenAiRepository(get()) } }
1
Kotlin
0
3
19165bd9b7aa8b11ef175e40be9e22b144ba43ab
380
vixgpt
Apache License 2.0
src/main/kotlin/com/example/demo/controller/AccountHistory.kt
micsigen
260,312,475
false
null
package com.example.demo.controller data class AccountHistory( val id: String, val amount: Double )
0
Kotlin
0
0
eb01e3fcd45dcf9f35deaf20c99d09c83537751f
116
test-debug-app
Apache License 2.0
idea/tests/testData/inspectionsLocal/whenWithOnlyElse/subjectVariable/hasSameNameVariable3.kt
JetBrains
278,369,660
false
null
fun test() { <caret>when (val a = 42) { else -> use(a) } val a = 33 } fun use(i: Int) {}
0
Kotlin
30
82
cc81d7505bc3e9ad503d706998ae8026c067e838
110
intellij-kotlin
Apache License 2.0
v1_29/src/main/java/de/loosetie/k8s/dsl/manifests/ConfigMapKeySelector.kt
loosetie
283,145,621
false
{"Kotlin": 8925107}
package de.loosetie.k8s.dsl.manifests import de.loosetie.k8s.dsl.K8sTopLevel import de.loosetie.k8s.dsl.K8sDslMarker import de.loosetie.k8s.dsl.K8sManifest import de.loosetie.k8s.dsl.HasMetadata @K8sDslMarker interface ConfigMapKeySelector_core_v1: K8sManifest { /** Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ @K8sDslMarker var name: String? /** The key to select. */ @K8sDslMarker var key: String? /** Specify whether the ConfigMap or its key must be defined */ @K8sDslMarker var optional: Boolean? }
0
Kotlin
0
2
57d56ab780bc3134c43377e647e7f0336a5f17de
588
k8s-dsl
Apache License 2.0
app/src/main/java/br/com/alura/orgs/ui/dialog/FormularioImagemDialog.kt
arthurjunior
736,030,688
false
{"Kotlin": 9270}
package br.com.alura.orgs.ui.dialog import android.content.Context import android.util.Log import android.view.LayoutInflater import androidx.appcompat.app.AlertDialog import br.com.alura.orgs.databinding.FormularioImagemBinding import br.com.alura.orgs.extensions.tentaCarregarImagem class FormularioImagemDialog (private val context: Context) { fun dialog (){ val binding = FormularioImagemBinding .inflate(LayoutInflater.from(context)) binding.formularioImagemBotaoCarregar.setOnClickListener { val url = binding.formularioImagemUrl.text.toString() binding.formularioImagemImagemview.tentaCarregarImagem(url) } AlertDialog.Builder(context) .setView(binding.root) .setPositiveButton("Confirmar") { _, _ -> val url = binding.formularioImagemUrl.text.toString() Log.i("FormularioImagemDialog", "dialog: $url") //binding.activityFormularioProdutoImagem.tentaCarregarImagem(url) } .setNegativeButton("Cancelar") { _, _ -> } .show() } }
0
Kotlin
0
0
d9c8a05dc539f4c5c1c8bd232c9398d974279bc1
1,133
Orgs
MIT License
WoWSFT-Shared/src/main/kotlin/WoWSFT/model/gameparams/ship/component/airsupport/AirSupport.kt
EdibleBug
205,816,473
false
{"Kotlin": 191889, "HTML": 109419, "JavaScript": 60672, "CSS": 60604}
package WoWSFT.model.gameparams.ship.component.airsupport import WoWSFT.config.WoWSFT import WoWSFT.model.gameparams.ship.component.planes.Plane import com.fasterxml.jackson.annotation.JsonIgnoreProperties @WoWSFT @JsonIgnoreProperties(ignoreUnknown = true) class AirSupport { var chargesNum: Int = 0 var climbAngle: Int = 0 var flyAwayTime: Double = 0.0 var maxDist: Int = 0 var maxPlaneFlightDist: Int = 0 var minDist: Int = 0 var planeName: String = "" var reloadTime: Double = 0.0 var timeBetweenShots: Double = 0.0 var timeFromHeaven: Double = 0.0 var plane: Plane? = null }
0
Kotlin
1
5
b601669cf870e368b4d98033f9cf9c1997e93d1e
626
WoWSFT-Kotlin
MIT License
app/src/main/java/study/me/please/data/io/LargePathAsset.kt
JacobCube
683,485,839
false
null
package study.me.please.data.io import androidx.room.Entity import androidx.room.PrimaryKey import study.me.please.data.room.AppRoomDatabase import java.io.Serializable import java.util.UUID /** * Asset with all neccessary information to display either locally stored or online stored image */ @Entity(tableName = AppRoomDatabase.ROOM_LARGE_PATH_ASSET_TABLE) data class LargePathAsset( /** URL path to image location */ val urlPath: String? = null, /** local path to an image */ val localPath: String? = null, /** FireBase storage url path to an image */ val fbStoragePath: String? = null, /** uid of preset image */ val presetImageUid: String? = null, /** unique identifier */ @PrimaryKey val uid: String = UUID.randomUUID().toString() ): Serializable { /** whether the file is sourced locally */ val isLocal: Boolean get() = localPath?.isNotEmpty() == true /** returns url of the file */ val url: String? get() = if(isLocal) localPath else urlPath ?: fbStoragePath }
0
Kotlin
0
0
ff06694f062c3b9a5c648ce1705ce2b26121eda2
1,056
Study-me-please
Apache License 2.0
app/src/main/java/com/goudurixx/pokedex/core/database/PokedexDatabase.kt
Goudurixx
756,872,856
false
{"Kotlin": 249861}
package com.goudurixx.pokedex.core.database import androidx.room.Database import androidx.room.RoomDatabase import com.goudurixx.pokedex.core.database.daos.PokedexDao import com.goudurixx.pokedex.core.database.daos.PokemonDao import com.goudurixx.pokedex.core.database.models.PokedexGlobalDataDaoModel import com.goudurixx.pokedex.core.database.models.PokemonDaoModel @Database( entities = [PokemonDaoModel::class, PokedexGlobalDataDaoModel::class], version = 1, exportSchema = false ) abstract class PokedexDatabase : RoomDatabase() { abstract fun pokemonDao(): PokemonDao abstract fun pokedexGlobalDataDao(): PokedexDao }
0
Kotlin
0
2
91999438d698d59ca4b510172c72140662ed57a0
646
pokedex-JC
MIT License
app/src/main/java/com/sedsoftware/yaptalker/presentation/feature/news/NewsPresenter.kt
djkovrik
98,050,611
false
{"Gradle": 7, "Shell": 1, "Text": 1, "Ignore List": 5, "Batchfile": 1, "Markdown": 6, "Proguard": 14, "XML": 201, "Kotlin": 418, "Java Properties": 1, "JSON": 2, "Java": 2, "CSS": 1, "INI": 1, "YAML": 1}
package com.sedsoftware.yaptalker.presentation.feature.news import com.arellomobile.mvp.InjectViewState import com.sedsoftware.yaptalker.data.system.SchedulersProvider import com.sedsoftware.yaptalker.domain.device.Settings import com.sedsoftware.yaptalker.domain.interactor.BlacklistInteractor import com.sedsoftware.yaptalker.domain.interactor.NewsInteractor import com.sedsoftware.yaptalker.domain.interactor.VideoThumbnailsInteractor import com.sedsoftware.yaptalker.presentation.base.BasePresenter import com.sedsoftware.yaptalker.presentation.base.enums.lifecycle.PresenterLifecycle import com.sedsoftware.yaptalker.presentation.base.enums.navigation.NavigationScreen import com.sedsoftware.yaptalker.presentation.delegate.LinkBrowserDelegate import com.sedsoftware.yaptalker.presentation.feature.news.adapter.NewsItemElementsClickListener import com.sedsoftware.yaptalker.presentation.mapper.NewsModelMapper import com.sedsoftware.yaptalker.presentation.model.base.NewsItemModel import com.uber.autodispose.kotlin.autoDisposable import io.reactivex.Observable import io.reactivex.Single import io.reactivex.SingleObserver import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.disposables.Disposable import io.reactivex.schedulers.Schedulers import ru.terrakok.cicerone.Router import timber.log.Timber import javax.inject.Inject @InjectViewState class NewsPresenter @Inject constructor( private val router: Router, private val settings: Settings, private val targetScreen: String, private val newsInteractor: NewsInteractor, private val videoThumbnailsInteractor: VideoThumbnailsInteractor, private val blacklistInteractor: BlacklistInteractor, private val newsModelMapper: NewsModelMapper, private val linksDelegate: LinkBrowserDelegate, private val schedulers: SchedulersProvider ) : BasePresenter<NewsView>(), NewsItemElementsClickListener { private val displayedTopics = mutableSetOf<Int>() private lateinit var currentNewsItem: NewsItemModel private var nextPagesLoadingActive: Boolean = false override fun onFirstViewAttach() { super.onFirstViewAttach() loadFirstPage() } override fun attachView(view: NewsView?) { super.attachView(view) viewState.updateCurrentUiState() } override fun onNewsItemClicked(forumId: Int, topicId: Int) { router.navigateTo(NavigationScreen.CHOSEN_TOPIC_SCREEN, Triple(forumId, topicId, 0)) } override fun onNewsItemLongClicked(item: NewsItemModel) { currentNewsItem = item viewState.showBlacklistRequest() } override fun onMediaPreviewClicked(url: String, directUrl: String, type: String, html: String, isVideo: Boolean) { linksDelegate.checkVideoLink(directUrl) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .doOnSubscribe { viewState.showLoadingIndicator() } .doFinally { viewState.hideLoadingIndicator() } .autoDisposable(event(PresenterLifecycle.DESTROY)) .subscribe({ link: String -> linksDelegate.browse(url, link, type, html, isVideo) }, { e: Throwable -> e.message?.let { viewState.showErrorMessage(it) } }) } fun addSelectedTopicToBlacklist() { blacklistInteractor .addTopicToBlacklist(currentNewsItem.title, currentNewsItem.topicId) .observeOn(schedulers.ui()) .autoDisposable(event(PresenterLifecycle.DESTROY)) .subscribe({ Timber.i("Current topic added to blacklist.") viewState.showTopicBlacklistedMessage() viewState.removeBlacklistedTopicFromList(currentNewsItem) }, { e: Throwable -> e.message?.let { viewState.showErrorMessage(it) } }) } fun handleFabVisibility(diff: Int) { when { diff > 0 -> viewState.hideFab() diff < 0 -> viewState.showFab() } } fun requestThumbnail(videoUrl: String): Single<String> = videoThumbnailsInteractor .getThumbnail(videoUrl) .observeOn(schedulers.ui()) fun loadFirstPage() { val url = buildUrl() nextPagesLoadingActive = false newsInteractor .getNewsPage(url) .map(newsModelMapper) .flatMapObservable { Observable.fromIterable(it) } .toList() .observeOn(schedulers.ui()) .doOnSubscribe { viewState.showLoadingIndicator() } .doFinally { viewState.hideLoadingIndicator() } .autoDisposable(event(PresenterLifecycle.DESTROY)) .subscribe(getNewsObserver()) } fun loadNextPage() { nextPagesLoadingActive = true newsInteractor .getNextNewsPage() .map(newsModelMapper) .flatMapObservable { Observable.fromIterable(it) } .toList() .observeOn(schedulers.ui()) .doOnSubscribe { viewState.showLoadingIndicator() } .doFinally { viewState.hideLoadingIndicator() } .autoDisposable(event(PresenterLifecycle.DESTROY)) .subscribe(getNewsObserver()) } private fun getNewsObserver() = object : SingleObserver<List<NewsItemModel>> { override fun onSubscribe(d: Disposable) { Timber.i("News page loading started.") } override fun onSuccess(items: List<NewsItemModel>) { if (!nextPagesLoadingActive) { viewState.clearNewsList() displayedTopics.clear() } val loadedTopicIds = items.map { it.topicId } val newTopics = items.filter { !displayedTopics.contains(it.topicId) } displayedTopics.addAll(loadedTopicIds) if (newTopics.isEmpty()) { loadNextPage() } else { viewState.appendNewsItems(newTopics) } } override fun onError(e: Throwable) { e.message?.let { viewState.showErrorMessage(it) } } } private fun buildUrl(): String { val schema = if (settings.isHttpsEnabled()) "https://" else "http://" val base = when (targetScreen) { NavigationScreen.NEWS_SCREEN -> "www.yaplakal.com" NavigationScreen.PICTURES_SCREEN -> "pics.yaplakal.com" NavigationScreen.VIDEOS_SCREEN -> "video.yaplakal.com" NavigationScreen.EVENTS_SCREEN -> "news.yaplakal.com" NavigationScreen.AUTO_MOTO_SCREEN -> "auto.yaplakal.com" NavigationScreen.ANIMALS_SCREEN -> "animals.yaplakal.com" NavigationScreen.PHOTOBOMB_SCREEN -> "fotozhaba.yaplakal.com" else -> "inkubator.yaplakal.com" } return "$schema$base" } }
0
Kotlin
4
9
465c34c3dc0dd0488b637073fddf6cd797e78613
6,977
YapTalker
Apache License 2.0
shared/src/androidMain/kotlin/screen/home/HomeScreen.android.kt
rschattauer
747,667,420
false
{"Kotlin": 81340, "Swift": 2848, "Shell": 190}
package screen.home import androidx.compose.runtime.Composable import androidx.compose.ui.tooling.preview.Preview import ui.theme.AppTheme @Preview @Composable private fun Preview() { AppTheme { HomeScreen() } }
0
Kotlin
0
0
ce98860cd6c2435c43839ef83bb293acfd83c754
230
compose_multiplatform
Apache License 2.0
app/src/main/java/com/capyreader/app/ui/settings/panels/SettingsPanel.kt
jocmp
610,083,236
false
null
package com.capyreader.app.ui.settings.panels import android.os.Parcelable import androidx.annotation.StringRes import androidx.compose.material.icons.Icons import androidx.compose.material.icons.rounded.AccountCircle import androidx.compose.material.icons.rounded.Build import androidx.compose.material.icons.rounded.Gesture import androidx.compose.material.icons.rounded.Info import androidx.compose.material.icons.rounded.Notifications import androidx.compose.material.icons.rounded.Palette import androidx.compose.ui.graphics.vector.ImageVector import com.capyreader.app.R import kotlinx.parcelize.Parcelize sealed class SettingsPanel(@StringRes val title: Int) { abstract fun icon(): ImageVector @Parcelize data object General : SettingsPanel(title = R.string.settings_panel_general_title), Parcelable { override fun icon() = Icons.Rounded.Build } @Parcelize data object Notifications : SettingsPanel(title = R.string.settings_panel_notifications_title), Parcelable { override fun icon() = Icons.Rounded.Notifications } @Parcelize data object Display : SettingsPanel(title = R.string.settings_panel_display_title), Parcelable { override fun icon() = Icons.Rounded.Palette } @Parcelize data object Gestures : SettingsPanel(title = R.string.settings_panel_gestures_title), Parcelable { override fun icon() = Icons.Rounded.Gesture } @Parcelize data object Account : SettingsPanel(title = R.string.settings_account_title), Parcelable { override fun icon() = Icons.Rounded.AccountCircle } @Parcelize data object About : SettingsPanel(title = R.string.settings_about_title), Parcelable { override fun icon() = Icons.Rounded.Info } fun isNested() = !items.contains(this) companion object { val items: List<SettingsPanel> get() = listOf( General, Display, Gestures, Account, About, ) } }
33
null
4
147
196690b776eebdecd4562e357a629277fec9cfe9
2,051
capyreader
MIT License
app/src/main/java/com/example/beerdiary/BeerNew.kt
Janjhy
240,483,203
false
null
package com.example.beerdiary import android.app.Activity import android.content.Context import android.content.Intent import android.content.IntentSender import android.content.pm.PackageManager import android.graphics.BitmapFactory import android.hardware.Sensor import android.hardware.SensorEvent import android.hardware.SensorEventListener import android.hardware.SensorManager import android.location.Location import android.media.ExifInterface import android.net.Uri import android.os.Bundle import android.os.Environment import android.os.Looper import android.preference.PreferenceManager import android.provider.MediaStore import android.util.Log import android.widget.ArrayAdapter import android.widget.AutoCompleteTextView import androidx.appcompat.app.AppCompatActivity import androidx.core.app.ActivityCompat import androidx.core.content.ContextCompat import androidx.core.content.FileProvider import com.google.android.gms.common.api.ResolvableApiException import com.google.android.gms.location.* import com.google.android.gms.tasks.Task import com.google.android.material.dialog.MaterialAlertDialogBuilder import com.google.android.material.snackbar.Snackbar import kotlinx.android.synthetic.main.beer_new.* import org.osmdroid.config.Configuration import org.osmdroid.tileprovider.tilesource.TileSourceFactory import org.osmdroid.util.GeoPoint import org.osmdroid.views.overlay.Marker import java.io.File import java.math.BigDecimal import java.math.RoundingMode class BeerNew : AppCompatActivity(), SensorEventListener { private lateinit var location: Location private val REQUEST_IMAGE_CAPTURE = 1 private val REQUEST_CHECK_SETTINGS = 2 private var imageFile: File? = null private lateinit var fusedLocationClient: FusedLocationProviderClient private lateinit var request: LocationRequest private lateinit var locationCallback: LocationCallback private var gettingLocation = false private var pickedSize: Double = 0.0 private var pickedType: String = "" private lateinit var typesArray: Array<String> private var goodPhoto: Boolean = false private lateinit var light: Sensor private var lux: Float = 0.0F private lateinit var sensorManager: SensorManager override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) fusedLocationClient = LocationServices.getFusedLocationProviderClient(this) if ((ContextCompat.checkSelfPermission( this, android.Manifest.permission.ACCESS_FINE_LOCATION ) != PackageManager.PERMISSION_GRANTED) ) { ActivityCompat.requestPermissions( this, arrayOf(android.Manifest.permission.ACCESS_FINE_LOCATION), 0 ) } val contxt = applicationContext Configuration.getInstance() .load(contxt, PreferenceManager.getDefaultSharedPreferences(contxt)) setContentView(R.layout.beer_new) mapView_new.setTileSource(TileSourceFactory.MAPNIK) createLocationRequest() val builder = LocationSettingsRequest.Builder().addLocationRequest(request) val client: SettingsClient = LocationServices.getSettingsClient(this) val task: Task<LocationSettingsResponse> = client.checkLocationSettings(builder.build()) task.addOnSuccessListener { fusedLocationClient.lastLocation.addOnSuccessListener { if (it != null) { location = it } } } task.addOnFailureListener { exception -> if (exception is ResolvableApiException) { try { exception.startResolutionForResult(this, REQUEST_CHECK_SETTINGS) } catch (sendException: IntentSender.SendIntentException) { } } } locationCallback = object : LocationCallback() { override fun onLocationResult(result: LocationResult?) { result ?: return for (locationTemp in result.locations) { location = locationTemp makeUseOfNewLocation() } } } beginLocationUpdates() mapView_new.controller.setZoom(15.0) //Setup light sensor sensorManager = getSystemService(Context.SENSOR_SERVICE) as SensorManager light = sensorManager.getDefaultSensor(Sensor.TYPE_LIGHT) sensorManager.registerListener(this, light, SensorManager.SENSOR_DELAY_FASTEST) imageView_new.setOnLongClickListener() { confirmTakePhoto() true } btn_add.setOnClickListener { add() } button_add_image.setOnClickListener { confirmTakePhoto() } //Setup size dropdown menu val arrayAdapterSize = ArrayAdapter(this, R.layout.size_dropdown_popup_item, sizeItems) val filledExposedDropdown = this.findViewById<AutoCompleteTextView>(R.id.filled_exposed_dropdown) filledExposedDropdown.setAdapter(arrayAdapterSize) filledExposedDropdown.setOnItemClickListener { _, _, position, _ -> onSizeSelected( position ) } //Setup type dropdown menu typesArray = beerTypes.keys.toTypedArray() val arrayAdapterType = ArrayAdapter(this, R.layout.type_dropdown_pop_item, typesArray) val typeExposedDropdown = this.findViewById<AutoCompleteTextView>(R.id.type_exposed_dropdown) typeExposedDropdown.setAdapter(arrayAdapterType) typeExposedDropdown.setOnItemClickListener { _, _, position, _ -> onTypeSelected( position ) } } private fun onTypeSelected(position: Int) { pickedType = typesArray[position] } private fun onSizeSelected(position: Int) { Log.d("dropdown", sizeItems[position].toString()) pickedSize = sizeItems[position] } private fun add() { if (!validate()) { return } val beerName = et_beer_name.text.toString() val brewerName = et_beer_brewer.text.toString() val comment = et_beer_comment.text.toString() val score = beer_score_bar.rating val lat = location.latitude val long = location.longitude val strengthTemp = et_beer_strength.text.toString().toDouble() val strength = BigDecimal(strengthTemp).setScale(1, RoundingMode.HALF_EVEN).toDouble() val size = pickedSize val type = pickedType val image = imageFile val path = image!!.absolutePath val beer = Beer(0, beerName, brewerName, path, size, type, strength) val db = BeerDB.get(this) var id: Long = 0 val firstThread = Thread(Runnable { id = db.beerDao().insertBeer(beer) }) firstThread.start() firstThread.join() val review = Review(0, score, comment, id, lat, long) val secondThread = Thread(Runnable { db.beerDao().insertReview(review) }) secondThread.start() finish() } override fun onResume() { super.onResume() if (!gettingLocation) beginLocationUpdates() } private fun createLocationRequest() { request = LocationRequest.create().apply { interval = 15000 fastestInterval = 5000 priority = LocationRequest.PRIORITY_HIGH_ACCURACY } } private fun beginLocationUpdates() { fusedLocationClient.requestLocationUpdates( request, locationCallback, Looper.getMainLooper() ) gettingLocation = true } private fun endLocationUpdates() { fusedLocationClient.removeLocationUpdates(locationCallback) gettingLocation = false } override fun onPause() { super.onPause() endLocationUpdates() sensorManager.unregisterListener(this) } private fun newMarker() { mapView_new.overlays.clear() val marker = Marker(mapView_new) marker.position = GeoPoint(location.latitude, location.longitude) marker.setAnchor(Marker.ANCHOR_CENTER, Marker.ANCHOR_BOTTOM) mapView_new.overlays.add(marker) } private fun makeUseOfNewLocation() { mapView_new.controller.setCenter(GeoPoint(location.latitude, location.longitude)) newMarker() } private fun savePhotoIntent() { var tempImageFile: File? val fileName = "temp_photo" val imgPath = getExternalFilesDir(Environment.DIRECTORY_PICTURES) tempImageFile = File.createTempFile(fileName, ".jpg", imgPath) val photoURI: Uri = FileProvider.getUriForFile( this, "com.example.beerdiary.fileprovider", tempImageFile ) imageFile = tempImageFile val saveIntent = Intent(MediaStore.ACTION_IMAGE_CAPTURE) if (saveIntent.resolveActivity(packageManager) != null) { saveIntent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI) startActivityForResult(saveIntent, REQUEST_IMAGE_CAPTURE) } } private fun confirmTakePhoto() { Log.d("lux", lux.toString()) if (lux < 50) { MaterialAlertDialogBuilder(this).setTitle("Low light") .setMessage("Low light surrounding may result in a dim photo. Do you want to continue?") .setPositiveButton(R.string.continue_action) { _, _ -> savePhotoIntent() } .setNegativeButton(R.string.cancel) { _, _ -> } .show() } else savePhotoIntent() } override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { super.onActivityResult(requestCode, resultCode, data) if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == Activity.RESULT_OK) { val mCurrentPhotoPath = imageFile!!.absolutePath val imageBitmapNext = BitmapFactory.decodeFile(mCurrentPhotoPath) val exif = ExifInterface(mCurrentPhotoPath) val orientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, 1) val angle = rotateImageAngle(orientation) imageView_new.setImageBitmap(imageBitmapNext) imageView_new.rotation = angle.toFloat() goodPhoto = true Log.d("success", "result ok, goodphoto is $goodPhoto") } else if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == Activity.RESULT_CANCELED) { Log.d("error", "result canceled") goodPhoto = false } } private fun rotateImageAngle(orientation: Int): Int { Log.d("exif", "orientation is $orientation") return when (orientation) { 3, 4 -> 180 5, 6 -> 90 7, 8 -> 270 else -> 0 } } private fun validate(): Boolean { if (et_beer_name.text.toString().trim().equals("", true)) { et_beer_name.error = "Name can not be blank." return false } if (et_beer_brewer.text.toString().trim().equals("", true)) { et_beer_brewer.error = "Brewer can not be blank." return false } if (pickedSize < 250.0) { Snackbar.make( findViewById(R.id.view_new_beer), "Please pick a size.", Snackbar.LENGTH_SHORT ).setAnchorView(R.id.btn_add).show() return false } if (imageFile == null) { Snackbar.make( findViewById(R.id.view_new_beer), "Please take a picture.", Snackbar.LENGTH_SHORT ).setAnchorView(R.id.btn_add).show() return false } if (!goodPhoto) { Log.d("error", "goodphoto is $goodPhoto") Snackbar.make( findViewById(R.id.view_new_beer), "Please take a picture.", Snackbar.LENGTH_SHORT ).setAnchorView(R.id.btn_add).show() return false } if (et_beer_strength.text.toString().toDoubleOrNull() == null) { et_beer_strength.error = "Value is not a valid number." return false } if (pickedType == "") { Snackbar.make( findViewById(R.id.view_new_beer), "Please pick a type.", Snackbar.LENGTH_SHORT ).setAnchorView(R.id.btn_add).show() return false } return true } override fun onAccuracyChanged(sensor: Sensor?, accuracy: Int) { } override fun onSensorChanged(event: SensorEvent?) { if (event != null) { lux = event.values?.get(0)!! } } }
0
Kotlin
0
0
ccb0a4a698101c8ec10e727353bcf341cae41b58
12,993
BeerDiary
MIT License
serenity-app/src/test/kotlin/us/nineworlds/serenity/jobs/OnDeckRecommendationsJobTest.kt
kevinxucs
192,660,441
false
{"INI": 16, "YAML": 2, "XML": 164, "Gradle": 8, "Shell": 2, "Markdown": 1, "Text": 5, "Ignore List": 8, "Java": 377, "Java Properties": 4, "Proguard": 1, "Kotlin": 76, "JSON": 1}
package us.nineworlds.serenity.jobs import android.content.Context import android.content.SharedPreferences import android.content.res.Resources import android.preference.PreferenceManager import androidx.test.core.app.ApplicationProvider import com.nhaarman.mockito_kotlin.doReturn import com.nhaarman.mockito_kotlin.eq import com.nhaarman.mockito_kotlin.verify import com.nhaarman.mockito_kotlin.whenever import org.apache.commons.lang3.RandomStringUtils import org.greenrobot.eventbus.EventBus import org.junit.Before import org.junit.Rule import org.junit.Test import org.junit.runner.RunWith import org.mockito.ArgumentMatchers.anyString import org.mockito.Mock import org.mockito.junit.MockitoJUnit import org.mockito.quality.Strictness.STRICT_STUBS import org.robolectric.RobolectricTestRunner import toothpick.config.Module import us.nineworlds.serenity.TestingModule import us.nineworlds.serenity.common.android.injection.ApplicationContext import us.nineworlds.serenity.common.media.model.IDirectory import us.nineworlds.serenity.common.media.model.IMediaContainer import us.nineworlds.serenity.common.rest.SerenityClient import us.nineworlds.serenity.test.InjectingTest import us.nineworlds.serenity.testrunner.PlainAndroidRunner import javax.inject.Inject @RunWith(RobolectricTestRunner::class) class OnDeckRecommendationsJobTest : InjectingTest() { @Rule @JvmField public val rule = MockitoJUnit.rule().strictness(STRICT_STUBS) @Inject lateinit var mockClient: SerenityClient @Mock lateinit var mockEventBus: EventBus @Mock lateinit var mockIMediaContainer: IMediaContainer @Mock lateinit var mockDirectory: IDirectory lateinit var job: OnDeckRecommendationsJob private val expectedVideoId: String = RandomStringUtils.randomAlphanumeric(5) private val expectedCategory: String = RandomStringUtils.randomAlphabetic(10) @Before override fun setUp() { super.setUp() job = OnDeckRecommendationsJob() job.eventBus = mockEventBus } @Test fun onRunRetrievesItemsByCategory() { doReturn(mockIMediaContainer).whenever(mockClient).retrieveItemByCategories() job.onRun() verify(mockClient).retrieveItemByCategories(); } @Test fun onRunShowsMovieRecommendations() { doReturn(mockIMediaContainer).whenever(mockClient).retrieveItemByCategories() doReturn(mutableListOf(mockDirectory)).whenever(mockIMediaContainer).directories doReturn("movie").whenever(mockDirectory).type doReturn("title").whenever(mockDirectory).title doReturn("1").whenever(mockDirectory).key doReturn(mockIMediaContainer).whenever(mockClient).retrieveItemByIdCategory(anyString(), eq("onDeck")) job.onRun() verify(mockClient).retrieveItemByIdCategory("1", "onDeck") } @Test fun onRunShowsTVShowRecommendations() { doReturn(mockIMediaContainer).whenever(mockClient).retrieveItemByCategories() doReturn(mutableListOf(mockDirectory)).whenever(mockIMediaContainer).directories doReturn("tvshows").whenever(mockDirectory).type doReturn("title").whenever(mockDirectory).title doReturn("1").whenever(mockDirectory).key doReturn(mockIMediaContainer).whenever(mockClient).retrieveItemByIdCategory(anyString(), eq("onDeck")) job.onRun() verify(mockClient).retrieveItemByIdCategory("1", "onDeck") } override fun installTestModules() { scope.installTestModules(TestingModule(), TestModule()) } inner class TestModule : Module() { init { bind(Context::class.java).withName(ApplicationContext::class.java).toInstance(ApplicationProvider.getApplicationContext()) bind(SharedPreferences::class.java).toInstance(PreferenceManager.getDefaultSharedPreferences(ApplicationProvider.getApplicationContext())) bind(Resources::class.java).toInstance(ApplicationProvider.getApplicationContext<Context>().resources) } } }
1
null
1
1
e23b6428f2ee68df083e3e92c456220395a56dd1
3,868
serenity-android
MIT License
analysis/analysis-api/testData/components/referenceShortener/shortenRange/nestedClasses/nestedClassFromSupertypes2.kt
JetBrains
3,432,266
false
{"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML": 2699, "Puppet": 1698, "FreeMarker": 1393, "Roff": 725, "Scala": 80}
// FILE: main.kt import MyInterface.Nested interface MyInterface { class Nested } class Foo : MyInterface { <expr>val prop: MyInterface.Nested = MyInterface.Nested()</expr> }
181
Kotlin
5748
49,172
33eb9cef3d146062c103f9853d772f0a1da0450e
185
kotlin
Apache License 2.0
scratch-paper/plugin/src/main/kotlin/me/xx2bab/scratchpaper/ScratchPaperPlugin.kt
2BAB
59,648,564
false
null
package me.xx2bab.scratchpaper import com.android.build.api.variant.ApplicationAndroidComponentsExtension import com.android.build.api.variant.VariantOutput import me.xx2bab.polyfill.* import me.xx2bab.scratchpaper.icon.AddIconOverlayTask import me.xx2bab.scratchpaper.utils.CacheLocation import me.xx2bab.scratchpaper.utils.Logger import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.kotlin.dsl.apply import org.gradle.kotlin.dsl.create import org.gradle.kotlin.dsl.register class ScratchPaperPlugin : Plugin<Project> { private val extensionName = "scratchPaper" private val groupName = "scratch-paper" override fun apply(project: Project) { Logger.init(project) project.apply(plugin = "me.2bab.polyfill") val config = project.extensions.create<ScratchPaperExtension>(extensionName) val androidExt = project.extensions.getByType(ApplicationAndroidComponentsExtension::class.java) androidExt.onVariants { variant -> val variantName = variant.getCapitalizedName() // TODO: find a better way to support both SINGLE and MULTI APKs version names val mainOutput: VariantOutput = variant.outputs[0] // For icon overlay // Check feature flag if (!ScratchPaperExtension.isFeatureEnabled( variant, config.kotlinEnableByVariant, config.groovyEnableByVariant ) ) { return@onVariants } // Add icon overlay val addIconOverlayTaskProvider = project.tasks.register<AddIconOverlayTask>( "add${variantName}IconsOverlay" ) { group = groupName versionNameProvider.set(mainOutput.versionName) variantNameProvider.set(variantName) iconNamesProvider.set(config.iconNames) enableXmlIconsRemovalProvider.set(config.enableXmlIconsRemoval) iconCacheDirProvider.set( CacheLocation.getCacheDir( project, "icons-${variant.name}" ) ) allInputResourcesProvider.set( variant.artifactsPolyfill.getAll(PolyfilledMultipleArtifact.ALL_RESOURCES) ) buildToolInfoProvider.set(variant.getBuildToolInfo()) styleConfigProvider.set(config.style) contentConfigProvider.set(config.content) } variant.artifactsPolyfill.use( taskProvider = addIconOverlayTaskProvider, wiredWith = AddIconOverlayTask::mergedResourceDirProvider, toInPlaceUpdate = PolyfilledSingleArtifact.MERGED_RESOURCES ) // To decide whether the merge task should always run for // collecting the latest icons that con contain timestamp update. if (config.forceUpdateIcons) { project.afterEvaluate { val mergeTask = variant.getTaskContainer().mergeResourcesTask.get() mergeTask.outputs.upToDateWhen { false } } } } } }
0
Kotlin
3
58
ca05537a04a02291d1008af9ff9a9d37d0372d33
3,295
ScratchPaper
Apache License 2.0
subprojects/test-runner/report-viewer-model/src/main/kotlin/com/avito/report/model/IncidentElement.kt
avito-tech
230,265,582
false
{"Kotlin": 3747948, "Java": 67252, "Shell": 27892, "Dockerfile": 12799, "Makefile": 8086}
package com.avito.report.model /** * Atomic error for Incident.chain * * @param message human-readable message for report * @param code http code for example * @param type determines how to display data (no info atm) * * todo extract to public api module (used in avito build scripts) */ public data class IncidentElement( val message: String, val code: Int? = null, val type: String? = null, val origin: String? = null, val className: String? = null, val data: com.google.gson.JsonElement? = null )
10
Kotlin
50
414
bc94abf5cbac32ac249a653457644a83b4b715bb
533
avito-android
MIT License
src/test/kotlin/it/skrape/WireMockSetup.kt
cvb941
239,986,791
true
{"Kotlin": 235492, "HTML": 1790, "Shell": 281}
package it.skrape import com.github.tomakehurst.wiremock.WireMockServer import com.github.tomakehurst.wiremock.client.WireMock.* import com.github.tomakehurst.wiremock.core.WireMockConfiguration.options import com.github.tomakehurst.wiremock.stubbing.StubMapping import org.junit.jupiter.api.AfterEach import org.junit.jupiter.api.BeforeEach import java.util.* open class WireMockSetup { private val options = options() .port(8080) .httpsPort(8089) protected val wireMockServer = WireMockServer(options) @BeforeEach fun setup() { wireMockServer.start() } @AfterEach fun teardown() { wireMockServer.stop() } } fun WireMockServer.setupStub( path: String = "/", statusCode: Int = 200, contentType: String = "text/html; charset=UTF-8", fileName: String = "example.html", delay: Int = 0 ): StubMapping = stubFor(get(urlEqualTo(path)) .willReturn(aResponse().withHeader("Content-Type", contentType) .withStatus(statusCode) .withFixedDelay(delay) .withBodyFile(fileName))) fun WireMockServer.setupPostStub(): StubMapping = stubFor(post(urlEqualTo("/")) .willReturn(aResponse().withHeader("Content-Type", "application/json; charset=UTF-8") .withStatus(200) .withBodyFile("data.json"))) fun WireMockServer.setupRedirect(): StubMapping = stubFor(get(urlEqualTo("/")) .willReturn(temporaryRedirect("/redirected") .withHeader("Content-Type", "text/html").withBody(UUID.randomUUID().toString()))) fun WireMockServer.setupPutStub(): StubMapping = stubFor(put(urlEqualTo("/")) .willReturn(aResponse() .withStatus(201) .withBody("i'm a PUT stub"))) fun WireMockServer.setupDeleteStub(): StubMapping = stubFor(delete(urlEqualTo("/")) .willReturn(aResponse() .withStatus(201) .withBody("i'm a DELETE stub"))) fun WireMockServer.setupPatchStub(): StubMapping = stubFor(patch(urlEqualTo("/")) .willReturn(aResponse() .withStatus(201) .withBody("i'm a PATCH stub"))) fun WireMockServer.setupHeadStub(): StubMapping = stubFor(head(urlEqualTo("/")) .willReturn(aResponse() .withStatus(201) .withHeader("result","i'm a HEAD stub"))) fun WireMockServer.setupBasicAuthStub( username: String, password: String ): StubMapping = stubFor(get(urlEqualTo("/basic-auth")).withBasicAuth(username, password) .willReturn(aResponse() .withStatus(200)))
0
Kotlin
0
0
378ac23d090d63d060893c5c765b68381c8ea692
2,861
skrape.it
MIT License
app/src/main/java/com/vipulasri/jetinstagram/model/FavoriteUser.kt
marksterr
668,711,688
false
null
package com.vipulasri.jetinstagram.model data class FavoriteUser( val id: Int, val name: String, val username: String, val image: String )
0
Kotlin
0
0
cc94c27ace49c1cc5bfb6b7d3a85e1f9ecb60ade
156
JetInstagram
Apache License 2.0
app/src/main/java/me/hgj/jetpackmvvm/demo/data/repository/request/HttpRequestManger.kt
q735510971
316,208,478
false
null
package me.hgj.jetpackmvvm.demo.data.repository.request import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.async import kotlinx.coroutines.withContext import me.hgj.jetpackmvvm.demo.app.network.ApiService import me.hgj.jetpackmvvm.demo.app.network.NetworkApi import me.hgj.jetpackmvvm.demo.app.network.apiService import me.hgj.jetpackmvvm.demo.app.util.CacheUtil import me.hgj.jetpackmvvm.demo.data.model.bean.ApiPagerResponse import me.hgj.jetpackmvvm.demo.data.model.bean.ApiResponse import me.hgj.jetpackmvvm.demo.data.model.bean.AriticleResponse import me.hgj.jetpackmvvm.demo.data.model.bean.UserInfo import me.hgj.jetpackmvvm.network.AppException /** * 作者 : hegaojian * 时间 : 2020/5/4 * 描述 : 处理协程的请求类 */ val HttpRequestCoroutine: HttpRequestManger by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) { HttpRequestManger() } class HttpRequestManger { /** * 获取首页文章数据 */ suspend fun getHomeData(pageNo: Int): ApiResponse<ApiPagerResponse<ArrayList<AriticleResponse>>> { //同时异步请求2个接口,请求完成后合并数据 return withContext(Dispatchers.IO) { val listData = async { apiService.getAritrilList(pageNo) } //如果App配置打开了首页请求置顶文章,且是第一页 if (CacheUtil.isNeedTop() && pageNo == 0) { val topData = async { apiService.getTopAritrilList() } listData.await().data.datas.addAll(0, topData.await().data) listData.await() } else { listData.await() } } } /** * 注册并登陆 */ suspend fun register(username: String, password: String): ApiResponse<UserInfo> { val registerData = apiService.register(username, password, password) //判断注册结果 注册成功,调用登录接口 if (registerData.isSucces()) { return apiService.login(username, password) } else { //抛出错误异常 throw AppException(registerData.errorCode, registerData.errorMsg) } } /** * 获取项目标题数据 */ suspend fun getProjectData( pageNo: Int, cid: Int = 0, isNew: Boolean = false ): ApiResponse<ApiPagerResponse<ArrayList<AriticleResponse>>> { return if (isNew) { apiService.getProjecNewData(pageNo) } else { apiService.getProjecDataByType(pageNo, cid) } } }
26
null
585
3
22a993aacbd3b8d5f10caa0c11e055d71e8c1b9d
2,341
JetpackMvvm
Apache License 2.0
sourceamazing-engine/src/main/kotlin/org/codeblessing/sourceamazing/engine/process/datacollection/validation/exceptions/WrongReferencedConceptFacetValueException.kt
code-blessing
695,574,460
false
{"Kotlin": 343637}
package org.codeblessing.sourceamazing.engine.process.datacollection.validation.exceptions import org.codeblessing.sourceamazing.api.process.schema.ConceptIdentifier import org.codeblessing.sourceamazing.api.process.schema.ConceptName import org.codeblessing.sourceamazing.api.process.schema.FacetName class WrongReferencedConceptFacetValueException(val concept: ConceptName, val conceptIdentifier: ConceptIdentifier, facetName: FacetName, reason: String): SchemaValidationException( "Facet '$facetName' of concept identifier '${conceptIdentifier.name}' in concept '${concept}' points to a illegal concept: $reason." )
5
Kotlin
0
0
6a16126f54e984702dc694c2bc459c9636114854
626
sourceamazing
MIT License
apt-utils/src/main/java/com/edwin/aptutils/types/ClassType.kt
LiangLliu
445,907,238
false
{"Kotlin": 247539, "Java": 117126}
package com.edwin.aptutils.types import com.squareup.javapoet.ClassName import com.squareup.javapoet.ParameterizedTypeName import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy import javax.lang.model.type.TypeMirror import com.squareup.javapoet.TypeName as JavaTypeName import com.squareup.kotlinpoet.TypeName as KotlinTypeName class ClassType( private val jvmClassName: String, private vararg val typeParameterClassTypes: ClassType ) { private val typeMirror: TypeMirror by lazy { TypeUtils.getTypeFromClassName(jvmClassName)?.erasure() ?: throw ClassNotFoundException( jvmClassName ) } val java: JavaTypeName by lazy { if (typeParameterClassTypes.isNotEmpty()) { (typeMirror.asJavaTypeName() as? ClassName)?.let { ParameterizedTypeName.get( it, *(Array(typeParameterClassTypes.size) { i -> typeParameterClassTypes[i].java }) ) } ?: throw IllegalArgumentException("Only Declared class type should be parameterized.") } else { typeMirror.asJavaTypeName() } } val kotlin: KotlinTypeName by lazy { if (typeParameterClassTypes.isNotEmpty()) { (typeMirror.asKotlinTypeName() as? com.squareup.kotlinpoet.ClassName)?.parameterizedBy( *(Array( typeParameterClassTypes.size ) { i -> typeParameterClassTypes[i].kotlin }) ) ?: throw IllegalArgumentException("Only Declared class type should be parameterized.") } else { typeMirror.asKotlinTypeName() } } fun parameterized(vararg typeParameterClassTypes: ClassType) = ClassType(jvmClassName, *typeParameterClassTypes) operator fun get(vararg typeParameterClassTypes: ClassType) = ClassType(jvmClassName, *typeParameterClassTypes) override fun toString(): String { return typeMirror.toString() } }
0
Kotlin
0
0
7f828dedc343d3a5a19d052951692987bc714c5d
2,027
github-app
MIT License
src/test/kotlin/uk/gov/justice/digital/hmpps/tokenverification/services/health/HealthIntTest.kt
ministryofjustice
249,468,152
false
{"Kotlin": 41071, "Dockerfile": 1111}
package uk.gov.justice.digital.hmpps.tokenverification.services.health import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith import uk.gov.justice.digital.hmpps.tokenverification.resource.IntegrationTest import uk.gov.justice.digital.hmpps.tokenverification.resource.RedisExtension import java.time.LocalDateTime import java.time.format.DateTimeFormatter.ISO_DATE import java.util.function.Consumer @ExtendWith(RedisExtension::class) class HealthIntTest : IntegrationTest() { @Test fun `Health page reports ok`() { webTestClient.get().uri("/health") .exchange() .expectStatus().isOk .expectBody().jsonPath("status").isEqualTo("UP") } @Test fun `Health ping reports ok`() { webTestClient.get().uri("/health/ping") .exchange() .expectStatus().isOk .expectBody().jsonPath("status").isEqualTo("UP") } @Test fun `Health info reports version`() { webTestClient.get().uri("/health") .exchange() .expectStatus().isOk .expectBody().jsonPath("components.healthInfo.details.version").value( Consumer<String> { assertThat(it).startsWith(LocalDateTime.now().format(ISO_DATE)) } ) } @Test fun `Health liveness page is accessible`() { webTestClient.get().uri("/health/liveness") .exchange() .expectStatus().isOk .expectBody().jsonPath("status").isEqualTo("UP") } @Test fun `Health readiness page is accessible`() { webTestClient.get().uri("/health/readiness") .exchange() .expectStatus().isOk .expectBody().jsonPath("status").isEqualTo("UP") } }
1
Kotlin
1
1
7aac67da161d8ea591bff3b8d79419730479f930
1,689
token-verification-api
MIT License
app/src/main/java/com/example/dasada/recyclerview/ListItemAdapter.kt
WojciechLatala
878,369,104
false
{"Kotlin": 25140}
package com.example.dasada.recyclerview import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.AsyncListDiffer import androidx.recyclerview.widget.RecyclerView import com.example.dasada.R import com.example.dasada.model.ListItemViewModel import com.example.dasada.recyclerview.diffutil.AsyncListCallback class ListItemAdapter : RecyclerView.Adapter<ListItemViewHolder>() { private val asyncListCallback = object : AsyncListCallback<ListItemViewModel>() {} private val asyncListDiffer: AsyncListDiffer<ListItemViewModel> = AsyncListDiffer(this, asyncListCallback) fun setItems(list: List<ListItemViewModel>, commitCallback: () -> Unit) { asyncListDiffer.submitList(list, commitCallback) } override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ListItemViewHolder { val textView = LayoutInflater.from(parent.context).inflate(R.layout.list_item, parent, false) return ListItemViewHolder(textView) } override fun getItemCount(): Int = asyncListDiffer.currentList.size override fun onBindViewHolder(holder: ListItemViewHolder, position: Int) { val item = asyncListDiffer.currentList[position] holder.setItem(item) } }
0
Kotlin
0
0
29cccd0c128a1ed71088d9cd6aba190d1479f434
1,254
Custom-Layout-Manager
Apache License 2.0
app/src/main/java/ua/polodarb/gmsflags/ui/screens/flagChangeScreen/dialogs/ProgressDialog.kt
polodarb
624,518,043
false
{"Kotlin": 369647, "AIDL": 1483}
package ua.polodarb.gmsflags.ui.screens.flagChangeScreen.dialogs import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.width import androidx.compose.material3.AlertDialog import androidx.compose.material3.CircularProgressIndicator import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.LinearProgressIndicator import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.ui.Modifier import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.unit.dp import kotlinx.coroutines.delay @OptIn(ExperimentalMaterial3Api::class) @Composable fun ProgressDialog( showDialog: Boolean ) { if (showDialog) { AlertDialog( onDismissRequest = { /*TODO*/ }, confirmButton = {}, dismissButton = {}, title = { Text(text = "Please wait", textAlign = TextAlign.Center, modifier = Modifier.fillMaxWidth()) }, text = { LinearProgressIndicator( modifier = Modifier .fillMaxWidth() .padding(16.dp), color = MaterialTheme.colorScheme.surfaceVariant, trackColor = MaterialTheme.colorScheme.secondary, ) } ) } }
1
Kotlin
2
61
8353895480a0e368297cd9aeba0d46efe9d685ed
1,514
GMS-Flags
MIT License
updater-mapper-standard/src/main/java/org/runestar/client/updater/mapper/std/classes/ChatChannel.kt
communityus-branch
246,016,204
true
{"Java": 1852312, "Kotlin": 1247608}
package org.runestar.client.updater.mapper.std.classes import org.runestar.client.common.startsWith import org.objectweb.asm.Type.INT_TYPE import org.runestar.client.updater.mapper.IdentityMapper import org.runestar.client.updater.mapper.annotations.DependsOn import org.runestar.client.updater.mapper.annotations.MethodParameters import org.runestar.client.updater.mapper.extensions.and import org.runestar.client.updater.mapper.extensions.predicateOf import org.runestar.client.updater.mapper.extensions.type import org.runestar.client.updater.mapper.extensions.withDimensions import org.runestar.client.updater.mapper.tree.Class2 import org.runestar.client.updater.mapper.tree.Field2 import org.runestar.client.updater.mapper.tree.Method2 @DependsOn(Message::class) class ChatChannel : IdentityMapper.Class() { override val predicate = predicateOf<Class2> { it.superType == Any::class.type } .and { it.instanceFields.any { it.type == type<Message>().withDimensions(1) } } @MethodParameters("type", "sender", "text", "prefix") @DependsOn(Message::class) class addMessage : InstanceMethod() { override val predicate = predicateOf<Method2> { it.returnType == type<Message>() } .and { it.arguments.startsWith(INT_TYPE, String::class.type, String::class.type, String::class.type) } } @DependsOn(Message::class) class messages : IdentityMapper.InstanceField() { override val predicate = predicateOf<Field2> { it.type == type<Message>().withDimensions(1) } } class count : IdentityMapper.InstanceField() { override val predicate = predicateOf<Field2> { it.type == INT_TYPE } } @MethodParameters("index") @DependsOn(Message::class) class getMessage : IdentityMapper.InstanceMethod() { override val predicate = predicateOf<Method2> { it.returnType == type<Message>() } .and { it.arguments.size in 1..2 } } @MethodParameters() class size : IdentityMapper.InstanceMethod() { override val predicate = predicateOf<Method2> { it.returnType == INT_TYPE } } }
0
Java
0
0
7b60ec3d0c917571b7def908037dfc4a744092e0
2,105
client
MIT License
idea/testData/refactoring/inline/inlineVariableOrProperty/property/multiplePackages.kt
JakeWharton
99,388,807
false
null
package foo import bar.x import baz.y val <caret>z = x + y fun test() = z + 1
0
null
28
83
4383335168338df9bbbe2a63cb213a68d0858104
80
kotlin
Apache License 2.0
common_test/src/main/kotlin/com/hivian/common_test/espresso/RecyclerViewItemCountAssertion.kt
hivian
245,177,544
false
null
package nl.bartnijland.countrycodepickerdialog.util import android.support.v7.widget.RecyclerView import android.view.View import androidx.test.espresso.NoMatchingViewException import androidx.test.espresso.ViewAssertion import org.hamcrest.CoreMatchers.`is` import org.hamcrest.Matcher import org.junit.Assert.assertThat class RecyclerViewItemCountAssertion private constructor(private val matcher: Matcher<Int>) : ViewAssertion { override fun check(view: View, noViewFoundException: NoMatchingViewException?) { if (noViewFoundException != null) { throw noViewFoundException } val recyclerView = view as RecyclerView val adapter = recyclerView.adapter assertThat(adapter!!.itemCount, matcher) } companion object { fun withItemCount(expectedCount: Int): RecyclerViewItemCountAssertion { return withItemCount(`is`(expectedCount)) } fun withItemCount(matcher: Matcher<Int>): RecyclerViewItemCountAssertion { return RecyclerViewItemCountAssertion(matcher) } } }
0
null
4
5
5525c2330e52dae04c5bda1bae2d9e5edafc9fb1
1,088
PokeApex
MIT License
util-db/src/main/kotlin/com/seanshubin/condorcet/util/db/JdbcConnectionLifecycle.kt
SeanShubin
190,099,313
false
null
package com.seanshubin.condorcet.util.db import java.sql.Connection import java.sql.DriverManager import java.sql.PreparedStatement import java.sql.ResultSet class JdbcConnectionLifecycle(private val host: String, private val user: String, private val password: String, private val database: String) : ConnectionLifecycle { override fun <T> withConnection(doSomethingWithConnection: (Connection) -> T): T { val url = "jdbc:mysql://$host/$database?serverTimezone=UTC" val connection = DriverManager.getConnection(url, user, password) return connection.use(doSomethingWithConnection) } override fun <T> withResultSet(sqlQuery: String, doSomethingWithResultSet: (ResultSet) -> T): T = withPreparedStatement(sqlQuery) { statement -> val resultSet = statement.executeQuery() resultSet.use(doSomethingWithResultSet) } private fun <T> withPreparedStatement( sqlQuery: String, doSomethingWithPreparedStatement: (PreparedStatement) -> T ): T = withConnection { withPreparedStatement(it, sqlQuery, doSomethingWithPreparedStatement) } private fun <T> withPreparedStatement( connection: Connection, sqlQuery: String, doSomethingWithPreparedStatement: (PreparedStatement) -> T): T { val statement = connection.prepareStatement(sqlQuery) return statement.use(doSomethingWithPreparedStatement) } }
2
Kotlin
0
0
61219ae238b47792a5d347625f4963a1b2841d2d
1,602
condorcet5
The Unlicense
compose-ide-plugin/compiler-hosted-src/androidx/compose/compiler/plugins/kotlin/lower/decoys/AbstractDecoysLowering.kt
JetBrains
60,701,247
false
{"Kotlin": 51587880, "Java": 35058698, "HTML": 1217714, "Starlark": 942543, "C++": 431606, "Python": 147820, "C": 71660, "Lex": 68621, "NSIS": 58538, "AIDL": 35382, "Shell": 27597, "CMake": 26983, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7448, "RenderScript": 4411, "Clean": 3688, "Makefile": 2495, "IDL": 269, "QMake": 18}
/* * Copyright 2022 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 applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package androidx.compose.compiler.plugins.kotlin.lower.decoys import androidx.compose.compiler.plugins.kotlin.ComposeFqNames import androidx.compose.compiler.plugins.kotlin.ModuleMetrics import androidx.compose.compiler.plugins.kotlin.analysis.StabilityInferencer import androidx.compose.compiler.plugins.kotlin.lower.AbstractComposeLowering import androidx.compose.compiler.plugins.kotlin.lower.includeFileNameInExceptionTrace import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext import org.jetbrains.kotlin.backend.common.serialization.signature.IdSignatureSerializer import org.jetbrains.kotlin.ir.declarations.IrConstructor import org.jetbrains.kotlin.ir.declarations.IrDeclarationOrigin import org.jetbrains.kotlin.ir.declarations.IrFile import org.jetbrains.kotlin.ir.declarations.IrFunction import org.jetbrains.kotlin.ir.declarations.IrSimpleFunction import org.jetbrains.kotlin.ir.types.IrSimpleType import org.jetbrains.kotlin.ir.types.IrType import org.jetbrains.kotlin.ir.util.DeepCopySymbolRemapper import org.jetbrains.kotlin.ir.util.hasAnnotation import org.jetbrains.kotlin.ir.util.isEnumClass import org.jetbrains.kotlin.ir.util.isLocal import org.jetbrains.kotlin.ir.util.parentAsClass abstract class AbstractDecoysLowering( pluginContext: IrPluginContext, symbolRemapper: DeepCopySymbolRemapper, metrics: ModuleMetrics, stabilityInferencer: StabilityInferencer, override val signatureBuilder: IdSignatureSerializer, ) : AbstractComposeLowering( context = pluginContext, symbolRemapper = symbolRemapper, metrics = metrics, stabilityInferencer = stabilityInferencer ), DecoyTransformBase { override fun visitFile(declaration: IrFile): IrFile { includeFileNameInExceptionTrace(declaration) { var file: IrFile = declaration // since kotlin 1.6.0-RC2 signatureBuilder needs to "know" fileSignature available // within inFile scope. It's necessary to ensure signatures calc for private top level // decoys. signatureBuilder.inFile(file = declaration.symbol) { file = super.visitFile(declaration) } return file } } protected fun IrFunction.shouldBeRemapped(): Boolean = !isLocalFunction() && !isEnumConstructor() && (hasComposableAnnotation() || hasComposableParameter()) private fun IrFunction.isLocalFunction(): Boolean = origin == IrDeclarationOrigin.LOCAL_FUNCTION_FOR_LAMBDA || (isLocal && (this is IrSimpleFunction && !overridesComposable())) private fun IrSimpleFunction.overridesComposable() = overriddenSymbols.any { it.owner.isDecoy() || it.owner.shouldBeRemapped() } private fun IrFunction.hasComposableParameter() = valueParameters.any { it.type.hasComposable() } || extensionReceiverParameter?.type?.hasComposable() == true private fun IrFunction.isEnumConstructor() = this is IrConstructor && parentAsClass.isEnumClass private fun IrType.hasComposable(): Boolean { if (hasAnnotation(ComposeFqNames.Composable)) { return true } return when (this) { is IrSimpleType -> arguments.any { (it as? IrType)?.hasComposable() == true } else -> false } } }
3
Kotlin
945
925
71cc8d80cd2fa6899d69c7f908539c5a4ad08265
3,980
android
Apache License 2.0
app/src/main/java/com/ozyurt/armutapp/ui/detay/UstaDetayActivity.kt
nxion34
373,290,434
false
null
package com.ozyurt.armutapp.ui.detay import android.app.Application import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import com.ozyurt.armutapp.R import com.ozyurt.armutapp.data.model.Ustalar import com.ozyurt.armutapp.databinding.ActivityUstaDetayBinding import com.ozyurt.armutapp.util.Constant import com.ozyurt.armutapp.util.GlideUtil import com.ozyurt.armutapp.util.NesneUtil import com.ozyurt.armutapp.util.ProggresDialogUtil class UstaDetayActivity : AppCompatActivity() { private lateinit var binding: ActivityUstaDetayBinding var ustalar: Ustalar? = null override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_usta_detay) init() } private fun init(){ binding = ActivityUstaDetayBinding.inflate(layoutInflater) setContentView(binding.root) //ProggresDialogUtil.goster(this, getString(R.string.lutfenBekleyiniz)) val ustaDetay = intent. getStringExtra(Constant.TASİNAN_KATEOGRI) ustalar = NesneUtil.jsonStringdenNesneye(ustaDetay!!) binding.apply { ustalar?.let { txtAciklama.text = it.Aciklamasi txtUstaKat.text = it.Kategorisi txtUstaMail.text = it.MailAdresi txtUstaAdi.text = it.UstaAdi txtUstaTelNo.text = it.Telefonu GlideUtil.resmiIndirGoster(applicationContext, it.Fotografi, imgUstaKapak) GlideUtil.resmiIndirGoster(applicationContext, it.Fotografi, ustaResim) } } } }
0
Kotlin
0
0
631cedb7ba973f71c11022aefeace4700fbaca26
1,625
ArmutAppClone
Apache License 2.0
integration-test-r2dbc/src/postgresql/kotlin/integration/r2dbc/postgresql/R2dbcPostgreSqlSetting.kt
komapper
349,909,214
false
null
package integration.r2dbc.postgresql import integration.core.PostgreSqlSetting import io.r2dbc.spi.ConnectionFactories import io.r2dbc.spi.ConnectionFactoryOptions import io.r2dbc.spi.Option import org.komapper.core.ExecutionOptions import org.komapper.r2dbc.DefaultR2dbcDatabaseConfig import org.komapper.r2dbc.R2dbcDatabaseConfig import org.komapper.r2dbc.R2dbcDialects import org.testcontainers.containers.PostgreSQLContainer import org.testcontainers.containers.PostgreSQLContainerProvider import org.testcontainers.containers.PostgreSQLR2DBCDatabaseContainer import org.testcontainers.jdbc.ConnectionUrl @Suppress("unused") class R2dbcPostgreSqlSetting : PostgreSqlSetting<R2dbcDatabaseConfig> { companion object { const val DRIVER: String = "postgresql" val OPTIONS: ConnectionFactoryOptions by lazy { val url = System.getProperty("url") ?: error("The url property is not found.") val connectionUrl = ConnectionUrl.newInstance(url) val container = PostgreSQLContainerProvider().newInstance(connectionUrl) as PostgreSQLContainer<*> val r2dbcContainer = PostgreSQLR2DBCDatabaseContainer(container) r2dbcContainer.start() r2dbcContainer.configure( ConnectionFactoryOptions.builder() .option(ConnectionFactoryOptions.DRIVER, "pool") .option(ConnectionFactoryOptions.PROTOCOL, DRIVER) .option(Option.valueOf("initialSize"), 2) .build() ) } } override val config: R2dbcDatabaseConfig = object : DefaultR2dbcDatabaseConfig(ConnectionFactories.get(OPTIONS), R2dbcDialects.get(DRIVER)) { override val executionOptions: ExecutionOptions = super.executionOptions.copy(batchSize = 2) } }
3
Kotlin
0
33
2145cfd2a9d0cc50bc31b6702875ae4ff4a69be1
1,829
komapper
Apache License 2.0
shared/src/commonMain/kotlin/MediaScreen.kt
xiaoxing1992
668,966,321
false
null
import androidx.compose.foundation.Image import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.material.Button import androidx.compose.material.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue import androidx.compose.runtime.remember import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.ImageBitmap import dev.icerock.moko.media.Bitmap import dev.icerock.moko.media.compose.BindMediaPickerEffect import dev.icerock.moko.media.compose.MediaPickerControllerFactory import dev.icerock.moko.media.compose.rememberMediaPickerControllerFactory import dev.icerock.moko.media.compose.toImageBitmap import dev.icerock.moko.media.picker.MediaPickerController import dev.icerock.moko.media.picker.MediaSource import dev.icerock.moko.mvvm.compose.getViewModel import dev.icerock.moko.mvvm.compose.viewModelFactory import dev.icerock.moko.mvvm.viewmodel.ViewModel import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.launch @Composable internal fun MediaScreen( backAction: () -> Unit ) { val mediaPickerControllerFactory: MediaPickerControllerFactory = rememberMediaPickerControllerFactory() MediaScreen( backAction = backAction, viewModel = getViewModel( key = "media-screen", factory = viewModelFactory { MediaViewModel( mediaPickerController = mediaPickerControllerFactory.createMediaPickerController() ) } ) ) } @Composable private fun MediaScreen( backAction: () -> Unit, viewModel: MediaViewModel ) = NavigationScreen(title = "moko-media", backAction = backAction) { paddingValues -> BindMediaPickerEffect(viewModel.mediaPickerController) val image: Bitmap? by viewModel.image.collectAsState() val imageBitmap: ImageBitmap? = remember(image) { image?.toImageBitmap() } Column( modifier = Modifier.fillMaxSize().padding(paddingValues), horizontalAlignment = Alignment.CenterHorizontally ) { if (imageBitmap != null) { Image(bitmap = imageBitmap, contentDescription = null) } Button(onClick = viewModel::onButtonClick) { Text(text = "Click on me") } } } internal class MediaViewModel( val mediaPickerController: MediaPickerController ) : ViewModel() { private val _image: MutableStateFlow<Bitmap?> = MutableStateFlow(null) val image: StateFlow<Bitmap?> get() = _image fun onButtonClick() { viewModelScope.launch { try { _image.value = mediaPickerController.pickImage(MediaSource.GALLERY) } catch (exc: Exception) { println("error $exc") } } } }
0
Kotlin
0
0
eb257091f805f6de746b398811c4ce506184ec48
3,017
RMultiplatformKMM
Apache License 2.0
fragment/fragment-lint/src/test/java/androidx/fragment/lint/AttachAndDetachInSameTransactionDetectorTest.kt
JetBrains
351,708,598
true
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 applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ @file:Suppress("UnstableApiUsage") package androidx.fragment.lint import androidx.fragment.lint.stubs.FRAGMENT_TRANSACTION_STUBS import com.android.tools.lint.checks.infrastructure.LintDetectorTest import com.android.tools.lint.checks.infrastructure.TestFile import com.android.tools.lint.checks.infrastructure.TestLintResult import com.android.tools.lint.detector.api.Detector import com.android.tools.lint.detector.api.Issue import org.junit.Test import org.junit.runner.RunWith import org.junit.runners.JUnit4 @RunWith(JUnit4::class) class AttachAndDetachInSameTransactionDetectorTest : LintDetectorTest() { override fun getDetector(): Detector = AttachAndDetachInSameTransactionDetector() override fun getIssues(): MutableList<Issue> = mutableListOf(AttachAndDetachInSameTransactionDetector.DETACH_ATTACH_OPERATIONS_ISSUE) private fun check(vararg files: TestFile): TestLintResult { return lint().files(*files, *FRAGMENT_TRANSACTION_STUBS) .run() } @Test fun pass() { check( kotlin( """ package com.example import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentManager import com.example.test.Foo class Test { private fun testPassingToAnotherClass() { val ft = FragmentManager().beginTransaction() val foo = Foo().commitTransaction(ft) } private fun testTwoDifferentFragments() { val fragment1 = Fragment() val fragment2 = Fragment() val ft = FragmentManager().beginTransaction() ft.attach(fragment1) ft.detach(fragment2) ft.commit() } // If the variable is reassigned even though it is the same instance we won't warn private fun testReassign() { val fragment3 = Fragment() val fragment4 = fragment3 val ft = FragmentManager().beginTransaction() ft.attach(fragment3) ft.detach(fragment4) ft.commit() } // If the fragment is passed through to another function we won't warn private fun testPassingToAnother() { val fragment = Fragment() val ft = FragmentManager().beginTransaction() ft.attach(fragment) helper(ft, fragment) } private fun helper(ft: FragmentTransaction, fragment: Fragment) { ft.detach(fragment) ft.commit() } } """ ), kotlin( """ package com.example.test import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentManager import androidx.fragment.app.FragmentTransaction class Foo { fun commitTransaction(fragmentTransaction: FragmentTransaction, fragment: Fragment) { val fragment1 = Fragment() val fragment2 = Fragment() fragmentTransaction.attach(fragment1) fragmentTransaction.detach(fragment2) fragmentTransaction.commit() } } """ ) ) .expectClean() } @Test fun inMethodFails() { check( kotlin( """ package com.example import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentManager import androidx.fragment.app.FragmentTransaction class Test { private fun testInternal() { val fragment = Fragment() val ft = FragmentManager().beginTransaction() ft.attach(fragment) ft.detach(fragment) ft.commit() } } """ ) ) .expect( """ src/com/example/Test.kt:11: Warning: Calling detach() and attach() in the same FragmentTransaction is a no-op, meaning it does not recreate the Fragment's view. If you would like the view to be recreated, separate these operations into separate transactions. [DetachAndAttachSameFragment] val ft = FragmentManager().beginTransaction() ~~~~~~~~~~~~~~~~ 0 errors, 1 warnings """ ) } @Test fun helperMethodFails() { check( kotlin( """ package com.example import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentManager import androidx.fragment.app.FragmentTransaction class Test { private fun test() { val fragment = Fragment() helper(fragment) } private fun helper(fragment: Fragment) { val ft = FragmentManager().beginTransaction() ft.detach(fragment) ft.attach(fragment) ft.commit() } } """ ) ) .expect( """ src/com/example/Test.kt:15: Warning: Calling detach() and attach() in the same FragmentTransaction is a no-op, meaning it does not recreate the Fragment's view. If you would like the view to be recreated, separate these operations into separate transactions. [DetachAndAttachSameFragment] val ft = FragmentManager().beginTransaction() ~~~~~~~~~~~~~~~~ 0 errors, 1 warnings """ ) } }
29
Java
16
59
3fbd775007164912b34a1d59a923ad3387028b97
5,660
androidx
Apache License 2.0
src/main/kotlin/br/com/ecarrara/summarygenerator/BuildsDataSetSummary.kt
ecarrara-araujo
283,174,727
false
null
package br.com.ecarrara.summarygenerator import br.com.ecarrara.domain.entities.BuildInfo import br.com.ecarrara.utils.format data class BuildSummarizedData( val identifier: String, val averageBuildTimeInMinutes: Double, val averageWaitTimeInMinutes: Double, val numberOfBuilds: Int ) { override fun toString(): String { return "- $identifier: ${averageWaitTimeInMinutes.format(1)} mins waiting / " + "${averageBuildTimeInMinutes.format(1)} mins running / $numberOfBuilds builds" } } data class BuildsDataSetSummary( val buildsInfo: List<BuildInfo> ) { val buildsAnalysed: Int = buildsInfo.size val averageOfAllBuilds: Double = buildsInfo.map { it.buildTimeInMinutes }.average() val daysOfTheWeekSummarizedData: Collection<BuildSummarizedData> = buildsInfo.summarizeBy { it.startedAtDayOfTheWeek } val workflowsSummarizedData: Collection<BuildSummarizedData> = buildsInfo.summarizeBy { it.triggeredWorkflow } val numberOfFailedBuilds = buildsInfo.count { it.wasError } val failedBuildsRate: Double = numberOfFailedBuilds / buildsInfo.size.toDouble() val numberOfAbortedBuilds = buildsInfo.count { it.wasAborted } val abortedBuildsRate: Double = numberOfAbortedBuilds / buildsInfo.size.toDouble() } inline fun List<BuildInfo>.summarizeBy( crossinline keySelector: (BuildInfo) -> String ): Collection<BuildSummarizedData> { return asSequence() .filter { !it.wasAborted && !it.wasError } .groupBy(keySelector) .mapValues { (key, buildsInfo) -> BuildSummarizedData( identifier = key, averageBuildTimeInMinutes = buildsInfo.map { it.buildTimeInMinutes }.average(), averageWaitTimeInMinutes = buildsInfo.map { it.waitingTimeInMinutes }.average(), numberOfBuilds = buildsInfo.size ) } .values }
0
Kotlin
0
2
be1621f3dcf58754a783364163a3bf297db2b3ab
1,912
bitrise-ci-time-explorer
MIT License
app/src/main/java/com/example/todolist/adapter/Adapter.kt
albertooofdz
756,815,847
false
{"Kotlin": 18894}
package com.example.todolist.adapter import android.content.Context import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Button import android.widget.CheckBox import android.widget.ImageView import android.widget.TextView import androidx.recyclerview.widget.RecyclerView import com.example.todolist.R import com.example.todolist.activities.DetailActivity import com.example.todolist.data.Task import com.example.todolist.data.providers.TaskDAO class toDoAdapter(var items:List<Task> = listOf(), val onClickListener: (position:Int)-> Unit, val onRemoveListener:(position:Int)-> Unit,val onCheckBoxListener: (position: Int) -> Unit) : RecyclerView.Adapter<TaskViewHolder>() { fun updateData(list :List<Task>) { this.items = list notifyDataSetChanged() } override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): TaskViewHolder { val view: View = LayoutInflater.from(parent.context).inflate(R.layout.items_list, parent, false) return TaskViewHolder(view) } override fun getItemCount(): Int { return items.size } override fun onBindViewHolder(holder: TaskViewHolder, position: Int) { holder.render(items[position]) holder.itemView.setOnClickListener{onClickListener(position)} holder.deleteBtn.setOnClickListener{onRemoveListener(position)} holder.doneCB.setOnCheckedChangeListener { checkBox, isChecked -> onCheckBoxListener(position) } } } class TaskViewHolder(view:View) : RecyclerView.ViewHolder(view) { val doneCB: CheckBox = view.findViewById(R.id.doneCB) val taskTV: TextView = view.findViewById(R.id.taskTV) val deleteBtn: Button = view.findViewById(R.id.deleteBtn) fun render(task: Task) { val context: Context = itemView.context taskTV.text= task.task doneCB.isChecked=task.done } }
0
Kotlin
0
0
37204b1db144c574de81d3ee449367d711749706
1,961
ToDoList
Creative Commons Zero v1.0 Universal
backend.native/tests/runtime/workers/worker0.kt
amodvaidya
100,103,267
true
{"Kotlin": 3264868, "C++": 694226, "C": 154816, "Groovy": 43464, "Protocol Buffer": 11804, "Batchfile": 6134, "Shell": 6114, "JavaScript": 5058, "Pascal": 1546, "Makefile": 1341, "Java": 782}
import konan.worker.* fun main(args: Array<String>) { val worker = startWorker() val future = worker.schedule(TransferMode.CHECKED, { "Input".shallowCopy()}) { input -> input + " processed" } future.consume { result -> println("Got $result") } worker.requestTermination().consume { _ -> } println("OK") }
0
Kotlin
0
0
c7843aa9c76f37b521a562565945a55373563c34
349
kotlin-native
Apache License 2.0
datasource/implementation/src/test/java/com/mitteloupe/whoami/datasource/history/datasource/IpAddressHistoryDataSourceImplTest.kt
EranBoudjnah
662,551,018
false
null
package com.mitteloupe.whoami.datasource.history.datasource import com.mitteloupe.whoami.datasource.history.mapper.NewIpAddressRecordToSavedMapper import com.mitteloupe.whoami.datasource.history.model.NewIpAddressHistoryRecordDataModel import com.mitteloupe.whoami.datasource.history.model.SavedIpAddressHistoryRecordDataModel import org.hamcrest.MatcherAssert.assertThat import org.hamcrest.collection.IsEmptyCollection.empty import org.junit.Assert.assertEquals import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.mockito.BDDMockito.given import org.mockito.Mock import org.mockito.junit.MockitoJUnitRunner @RunWith(MockitoJUnitRunner::class) class IpAddressHistoryDataSourceImplTest { private lateinit var classUnderTest: IpAddressHistoryDataSourceImpl @Mock private lateinit var newIpAddressRecordToSavedMapper: NewIpAddressRecordToSavedMapper @Before fun setUp() { classUnderTest = IpAddressHistoryDataSourceImpl(newIpAddressRecordToSavedMapper) } @Test fun `Given no records saved when allRecords then returns an empty collection`() { // When val actualRecords = classUnderTest.allRecords() // Then assertThat(actualRecords, empty()) } @Test fun `Given record was saved when allRecords then returns saved record`() { // Given val ipAddress = "0.0.0.0" val givenRecord = NewIpAddressHistoryRecordDataModel( ipAddress = ipAddress, city = null, region = null, countryCode = null, geolocation = null, internetServiceProviderName = null, postCode = null, timeZone = null ) val expectedRecord = SavedIpAddressHistoryRecordDataModel( ipAddress = ipAddress, city = null, region = null, countryCode = null, geolocation = null, internetServiceProviderName = null, postCode = null, timeZone = null, savedAtTimestampMilliseconds = 123L ) given(newIpAddressRecordToSavedMapper.toSaved(givenRecord)) .willReturn(expectedRecord) classUnderTest.save(givenRecord) val expectedCollectionSize = 1 // When val actualRecords = classUnderTest.allRecords() // Then assertEquals(expectedCollectionSize, actualRecords.size) assertEquals(expectedRecord, actualRecords.first()) } }
0
Kotlin
0
2
60325132102d049543ee67f40705a3b8a5d81c81
2,523
CleanArchitectureForAndroid
MIT License
sharing-service/src/de/faweizz/topicservice/adjacent/keycloak/KeycloakTopicAuthorizationClient.kt
faweizz
390,689,980
false
null
package de.faweizz.topicservice.adjacent.keycloak import de.faweizz.topicservice.service.resource.AccessLevel import io.ktor.http.* import org.keycloak.admin.client.resource.RealmResource import org.keycloak.representations.idm.authorization.ClientPolicyRepresentation import org.keycloak.representations.idm.authorization.ResourceRepresentation import org.keycloak.representations.idm.authorization.ScopePermissionRepresentation import org.keycloak.representations.idm.authorization.ScopeRepresentation class KeycloakTopicAuthorizationClient( private val keycloak: RealmResource ) { fun grantAccess(topic: String, clientId: String, scope: AccessLevel) { if (scope == AccessLevel.NONE) return val keycloakClients = keycloak.clients().findAll() val kafkaClient = keycloakClients.find { it.clientId == "kafka" } ?: throw Exception("Up") val realmClient = keycloak.clients().get(kafkaClient.id) val authorizationClient = realmClient.authorization() val resource = ResourceRepresentation().apply { name = "Topic:$topic" type = "Topic" scopes = setOf( ScopeRepresentation("Read"), ScopeRepresentation("Write"), ScopeRepresentation("Describe") ) } val resourceClient = authorizationClient.resources() val resourceResponse = resourceClient.create(resource) if (resourceResponse.status != HttpStatusCode.Created.value && resourceResponse.status != HttpStatusCode.Conflict.value) { throw Exception(resourceResponse.statusInfo.reasonPhrase) } val policyClient = authorizationClient.policies() val policy = ClientPolicyRepresentation().apply { name = "Client $clientId" addClient(clientId) } val existingPolicy = policyClient.client().findByName(policy.name) if (existingPolicy == null) { val policyResponse = policyClient.client().create(policy) if (policyResponse.status != HttpStatusCode.Created.value) { throw Exception(policyResponse.statusInfo.reasonPhrase) } } val permissionClient = authorizationClient.permissions().scope() val scopesToGrant = when (scope) { AccessLevel.WRITE -> setOf("Read", "Write", "Describe") AccessLevel.NONE -> return AccessLevel.READ -> setOf("Read", "Describe") } val resourcePermissionRepresentation = ScopePermissionRepresentation().apply { name = "${policy.name} can access ${resource.name}" resources = setOf(resource.name) policies = setOf(policy.name) scopes = scopesToGrant } val permissionResponse = permissionClient.create(resourcePermissionRepresentation) if (permissionResponse.status != 201) { throw Exception(permissionResponse.statusInfo.reasonPhrase) } } }
0
Kotlin
0
0
b5b494e81e6643c86d51f884309497bc78715f36
3,004
florescence
Apache License 2.0
app/src/main/java/com/matugr/sample/di/AuthDemoModule.kt
judegpinto
453,862,040
false
{"Kotlin": 146527}
package com.matugr.sample.di import android.content.Context import android.content.res.Resources import androidx.room.Room import com.matugr.authorization_request.external.AuthorizationRequestConfiguration import com.matugr.common.external.AuthAdapterFactory import com.matugr.common.external.RequestPort import com.matugr.common.external.UriCharacter import com.matugr.sample.BuildConfig import com.matugr.sample.R import com.matugr.sample.data.domain.AuthDemoProperties import com.matugr.sample.persistence.AuthDao import com.matugr.sample.persistence.AuthDatabase import dagger.Module import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.android.components.ActivityComponent import dagger.hilt.android.components.ViewModelComponent import dagger.hilt.android.qualifiers.ApplicationContext import okhttp3.OkHttpClient import okhttp3.logging.HttpLoggingInterceptor import java.util.concurrent.TimeUnit /** * The only Hilt-leveraged module in the sample app. Contains dependency-injected items. Other * items that are injected may not be here, e.g. ViewModels have inject-annotated constructors. */ @Module @InstallIn(ViewModelComponent::class, ActivityComponent::class) class AuthDemoModule { private val authDatabaseName = "auth_database" @Provides fun provideAuthProperties(): AuthDemoProperties { return AuthDemoProperties( BuildConfig.authUrl, BuildConfig.tokenUrl, BuildConfig.clientId, BuildConfig.redirectUri, BuildConfig.scope ) } @Provides fun provideResources(@ApplicationContext context: Context): Resources { return context.resources } @Provides fun provideAuthConfiguration(): AuthorizationRequestConfiguration { return AuthorizationRequestConfiguration(UriCharacter.ParametersIdentifier.Query) } @Provides fun provideHttpLoggingInterceptor(): HttpLoggingInterceptor { return HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY) } @Provides fun provideOkHttpClient(httpLoggingInterceptor: HttpLoggingInterceptor): OkHttpClient { return OkHttpClient.Builder() .connectTimeout(5, TimeUnit.SECONDS) .readTimeout(10, TimeUnit.SECONDS) .addInterceptor(httpLoggingInterceptor) .build() } @Provides fun provideAuthPort(authorizationRequestConfiguration: AuthorizationRequestConfiguration, okHttpClient: OkHttpClient): RequestPort { return AuthAdapterFactory().createSingletonRequestPort(authorizationRequestConfiguration, okHttpClient, R.layout.auth_loading) } @Provides fun provideAuthDatabase(@ApplicationContext context: Context): AuthDatabase { return Room.databaseBuilder(context, AuthDatabase::class.java, authDatabaseName).build() } @Provides fun provideAuthDao(authDatabase: AuthDatabase): AuthDao { return authDatabase.authDao() } }
0
Kotlin
0
3
e79e81c962bb309a422e2ea6ec4c1a67f04de5c2
2,975
matugr
Apache License 2.0
plugins/github/src/org/jetbrains/plugins/github/pullrequest/ui/timeline/item/GHPRTimelineThreadComponentFactory.kt
Romanzek
128,088,625
false
{"Text": 9255, "INI": 546, "YAML": 429, "Ant Build System": 11, "Batchfile": 34, "Dockerfile": 9, "Shell": 633, "Markdown": 734, "Ignore List": 141, "Git Revision List": 1, "Git Attributes": 11, "EditorConfig": 253, "XML": 7694, "SVG": 4338, "Kotlin": 57526, "Java": 83757, "HTML": 3765, "Java Properties": 210, "Gradle": 508, "Maven POM": 90, "JavaScript": 227, "CSS": 79, "JSON": 1421, "JFlex": 33, "Makefile": 5, "Diff": 137, "XSLT": 113, "Gradle Kotlin DSL": 709, "Groovy": 3190, "desktop": 1, "JAR Manifest": 15, "PHP": 47, "Microsoft Visual Studio Solution": 2, "C#": 33, "Smalltalk": 17, "Erlang": 1, "Perl": 9, "Jupyter Notebook": 13, "Rich Text Format": 2, "AspectJ": 2, "HLSL": 2, "Objective-C": 26, "CoffeeScript": 2, "HTTP": 2, "JSON with Comments": 71, "GraphQL": 112, "Nginx": 1, "HAProxy": 1, "OpenStep Property List": 48, "Python": 16973, "C": 110, "C++": 42, "Protocol Buffer": 3, "fish": 2, "PowerShell": 3, "Go": 36, "Prolog": 2, "ColdFusion": 2, "Turtle": 2, "TeX": 11, "HCL": 4, "Elixir": 2, "Ruby": 4, "XML Property List": 84, "E-mail": 18, "Roff": 274, "Roff Manpage": 40, "Swift": 3, "TOML": 190, "Checksums": 49, "Java Server Pages": 11, "Vue": 1, "Dotenv": 1, "reStructuredText": 67, "SQL": 1, "Vim Snippet": 8, "AMPL": 4, "Linux Kernel Module": 1, "CMake": 17, "Handlebars": 1, "Rust": 16, "Go Checksums": 1, "Go Module": 1, "NSIS": 6, "PlantUML": 6, "SCSS": 2, "Thrift": 3, "Cython": 13, "Regular Expression": 3, "JSON5": 4}
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package org.jetbrains.plugins.github.pullrequest.ui.timeline.item import com.intellij.collaboration.async.inverted import com.intellij.collaboration.async.launchNow import com.intellij.collaboration.async.launchNowIn import com.intellij.collaboration.async.mapScoped import com.intellij.collaboration.messages.CollaborationToolsBundle import com.intellij.collaboration.ui.* import com.intellij.collaboration.ui.codereview.CodeReviewChatItemUIUtil import com.intellij.collaboration.ui.codereview.CodeReviewChatItemUIUtil.build import com.intellij.collaboration.ui.codereview.CodeReviewTimelineUIUtil import com.intellij.collaboration.ui.codereview.CodeReviewTimelineUIUtil.Thread import com.intellij.collaboration.ui.codereview.comment.* import com.intellij.collaboration.ui.codereview.timeline.TimelineDiffComponentFactory import com.intellij.collaboration.ui.codereview.timeline.comment.CommentTextFieldFactory import com.intellij.collaboration.ui.codereview.user.CodeReviewUser import com.intellij.collaboration.ui.icon.IconsProvider import com.intellij.collaboration.ui.util.* import com.intellij.openapi.editor.EditorFactory import com.intellij.ui.components.panels.Wrapper import com.intellij.util.ui.JBUI import com.intellij.util.ui.UIUtil import kotlinx.coroutines.* import kotlinx.coroutines.flow.* import org.jetbrains.plugins.github.pullrequest.comment.ui.GHPRReviewCommentBodyComponentFactory import org.jetbrains.plugins.github.pullrequest.ui.timeline.GHPRTimelineItemUIUtil.buildTimelineItem import java.awt.event.ActionListener import javax.swing.JComponent import javax.swing.JLabel object GHPRTimelineThreadComponentFactory { fun createIn(cs: CoroutineScope, vm: GHPRTimelineThreadViewModel): JComponent = VerticalListPanel().apply { name = "GitHub Thread Panel ${vm.id}" add(cs.createThreadItem(vm)) add(cs.createRepliesPanel(vm)) } private fun CoroutineScope.createThreadItem(vm: GHPRTimelineThreadViewModel): JComponent = buildTimelineItem(vm.avatarIconsProvider, vm.author, createContent(vm)) { maxContentWidth = null val titlePanel = createTitlePanel(vm) val actionsPanel = createThreadActions(vm) withHeader(titlePanel, actionsPanel) } private fun CoroutineScope.createTitlePanel(vm: GHPRTimelineThreadViewModel): JComponent { val textPanel = CodeReviewTimelineUIUtil.createTitleTextPane(vm.author.getPresentableName(), vm.author.url, vm.createdAt) val tagsPanel = createTagsPanel(vm) return HorizontalListPanel(CodeReviewCommentUIUtil.Title.HORIZONTAL_GAP).apply { add(textPanel) add(tagsPanel) } } private fun CoroutineScope.createTagsPanel(vm: GHPRTimelineThreadViewModel): JComponent { val cs = this val outdatedLabel = CollaborationToolsUIUtil.createTagLabel(CollaborationToolsBundle.message("review.thread.outdated.tag")).apply { isVisible = false bindVisibilityIn(cs, vm.isOutdated) } val resolvedLabel = CollaborationToolsUIUtil.createTagLabel(CollaborationToolsBundle.message("review.thread.resolved.tag")).apply { isVisible = false bindVisibilityIn(cs, vm.isResolved) } val pendingLabel = CollaborationToolsUIUtil.createTagLabel(CollaborationToolsBundle.message("review.thread.pending.tag")).apply { isVisible = false bindVisibilityIn(cs, vm.isPending) } return HorizontalListPanel(CodeReviewCommentUIUtil.Title.HORIZONTAL_GAP).apply { add(outdatedLabel) add(resolvedLabel) add(pendingLabel) } } private fun CoroutineScope.createThreadActions(vm: GHPRTimelineThreadViewModel): JComponent = HorizontalListPanel(CodeReviewCommentUIUtil.Actions.HORIZONTAL_GAP).apply { launchNow { vm.mainCommentVm.collectLatest { removeAll() val commentVm = it ?: return@collectLatest supervisorScope { if (commentVm.canEdit) { add(CodeReviewCommentUIUtil.createEditButton { commentVm.editBody() }.apply { bindDisabledIn(this@supervisorScope, commentVm.isBusy) }) } if (commentVm.canDelete) { add(CodeReviewCommentUIUtil.createDeleteCommentIconButton { commentVm.delete() }.apply { bindDisabledIn(this@supervisorScope, commentVm.isBusy) }) } revalidate() repaint() awaitCancellation() } } } } private fun CoroutineScope.createContent(vm: GHPRTimelineThreadViewModel): JComponent { val cs = this val diff = createDiff(vm) val diffAndText = VerticalListPanel(Thread.DIFF_TEXT_GAP).apply { var showJob: Job? = null combine(vm.collapsed, vm.mainCommentVm) { collapsed, commentVm -> showJob?.cancelAndJoin() showJob = cs.launchNow { if (commentVm == null) { add(diff) } else if (collapsed) { val textPane = createCollapsedThreadComment(commentVm) add(textPane) add(diff) } else { val editableText = createFullThreadComment(commentVm) add(diff) add(editableText) } revalidate() repaint() try { awaitCancellation() } finally { removeAll() } } }.launchNowIn(cs) } val avatarProviderWrapper = IconsProvider<CodeReviewUser> { key, iconSize -> vm.avatarIconsProvider.getIcon(key?.avatarUrl, iconSize) } val collapsedThreadActionsComponent = CodeReviewCommentUIUtil.createFoldedThreadControlsIn(cs, vm, avatarProviderWrapper).apply { bindVisibilityIn(cs, vm.repliesFolded) } return VerticalListPanel().apply { add(diffAndText) add(collapsedThreadActionsComponent) } } private fun CoroutineScope.createCollapsedThreadComment(vm: GHPRTimelineThreadCommentViewModel): JComponent { val cs = this val textPane = SimpleHtmlPane().apply { foreground = UIUtil.getContextHelpForeground() bindTextIn(cs, vm.bodyVm.body) }.let { pane -> CollaborationToolsUIUtil .wrapWithLimitedSize(pane, DimensionRestrictions.LinesHeight(pane, 2, CodeReviewChatItemUIUtil.TEXT_CONTENT_WIDTH)) } return textPane } private fun CoroutineScope.createFullThreadComment(vm: GHPRTimelineThreadCommentViewModel): JComponent { val cs = this val commentPane = GHPRReviewCommentBodyComponentFactory.createIn(this, vm.bodyVm, CodeReviewChatItemUIUtil.TEXT_CONTENT_WIDTH) val editableText = EditableComponentFactory.create(cs, commentPane, vm.editVm) { editVm -> val actions = createEditActionsConfig(editVm) CodeReviewCommentTextFieldFactory.createIn(this, editVm, actions).let { pane -> CollaborationToolsUIUtil .wrapWithLimitedSize(pane, DimensionRestrictions.ScalingConstant(width = CodeReviewChatItemUIUtil.TEXT_CONTENT_WIDTH)) } } return editableText } private fun CoroutineScope.createDiff(vm: GHPRTimelineThreadViewModel): JComponent { val fileNameClickListener = flowOf(ActionListener { vm.showDiff() }) return TimelineDiffComponentFactory.createDiffWithHeader(this, vm, vm.filePath, fileNameClickListener) { Wrapper().apply { bindContentIn(this@createDiffWithHeader, vm.patchHunkWithAnchor) { (hunk, anchorRange) -> if (hunk.lines.isEmpty()) { JLabel(CollaborationToolsBundle.message("review.thread.diff.not.loaded")) } else { TimelineDiffComponentFactory .createDiffComponentIn(this, vm.project, EditorFactory.getInstance(), hunk, anchorRange) } } } } } private fun CoroutineScope.createRepliesPanel(vm: GHPRTimelineThreadViewModel): JComponent { val cs = this@createRepliesPanel val repliesListPanel = ComponentListPanelFactory.createVertical(cs, vm.replies) { commentVm -> createComment(vm, commentVm) } val additionalActions = vm.canChangeResolvedState.mapScoped { buildList { if (it) { add(swingAction(CollaborationToolsBundle.message("review.comments.resolve.action")) { vm.changeResolvedState() }.apply { bindEnabledIn(cs, vm.isBusy.inverted()) bindTextIn(cs, vm.isResolved.map { CodeReviewCommentUIUtil.getResolveToggleActionText(it) }) }) } } }.stateIn(cs, SharingStarted.Eagerly, emptyList()) val replyVm = vm.newReplyVm //TODO: pending reply val actions = CommentInputActionsComponentFactory.Config( primaryAction = MutableStateFlow(replyVm.submitActionIn(this, CollaborationToolsBundle.message("review.comments.reply.action")) { replyVm.submit() }), additionalActions = additionalActions, cancelAction = MutableStateFlow(null), submitHint = MutableStateFlow(CollaborationToolsBundle.message("review.comments.reply.hint", CommentInputActionsComponentFactory.submitShortcutText)) ) val componentType = CodeReviewChatItemUIUtil.ComponentType.FULL_SECONDARY val icon = CommentTextFieldFactory.IconConfig.of(componentType, vm.avatarIconsProvider, replyVm.currentUser.avatarUrl) val replyComponent = CodeReviewCommentTextFieldFactory.createIn(this, replyVm, actions, icon).let { CollaborationToolsUIUtil .wrapWithLimitedSize(it, maxWidth = CodeReviewChatItemUIUtil.TEXT_CONTENT_WIDTH + componentType.contentLeftShift) }.apply { border = JBUI.Borders.empty(componentType.inputPaddingInsets) //TODO: show resolve when available separately from reply bindVisibilityIn(cs, vm.canCreateReplies) } return VerticalListPanel().apply { add(repliesListPanel) add(replyComponent) bindVisibilityIn(cs, vm.repliesFolded.inverted()) } } private fun CoroutineScope.createComment(threadVm: GHPRTimelineThreadViewModel, commentVm: GHPRTimelineThreadCommentViewModel): JComponent { val editableText = createFullThreadComment(commentVm) return build(CodeReviewChatItemUIUtil.ComponentType.FULL_SECONDARY, { threadVm.avatarIconsProvider.getIcon(commentVm.author.avatarUrl, it) }, editableText) { iconTooltip = commentVm.author.getPresentableName() maxContentWidth = null val titlePanel = CodeReviewTimelineUIUtil.createTitleTextPane(threadVm.author.getPresentableName(), threadVm.author.url, threadVm.createdAt) val actionsPanel = createCommentActions(commentVm) withHeader(titlePanel, actionsPanel) } } private fun CoroutineScope.createCommentActions(vm: GHPRTimelineThreadCommentViewModel): JComponent { val cs = this return HorizontalListPanel(CodeReviewCommentUIUtil.Actions.HORIZONTAL_GAP).apply { if (vm.canEdit) { add(CodeReviewCommentUIUtil.createEditButton { vm.editBody() }.apply { bindDisabledIn(cs, vm.isBusy) }) } if (vm.canDelete) { add(CodeReviewCommentUIUtil.createDeleteCommentIconButton { vm.delete() }.apply { bindDisabledIn(cs, vm.isBusy) }) } } } }
1
null
1
1
e026aea35cf0f93731cc9d495866ed8bfe2812aa
11,648
intellij-community
Apache License 2.0
plugins/github/src/org/jetbrains/plugins/github/pullrequest/ui/timeline/item/GHPRTimelineThreadComponentFactory.kt
Romanzek
128,088,625
false
{"Text": 9255, "INI": 546, "YAML": 429, "Ant Build System": 11, "Batchfile": 34, "Dockerfile": 9, "Shell": 633, "Markdown": 734, "Ignore List": 141, "Git Revision List": 1, "Git Attributes": 11, "EditorConfig": 253, "XML": 7694, "SVG": 4338, "Kotlin": 57526, "Java": 83757, "HTML": 3765, "Java Properties": 210, "Gradle": 508, "Maven POM": 90, "JavaScript": 227, "CSS": 79, "JSON": 1421, "JFlex": 33, "Makefile": 5, "Diff": 137, "XSLT": 113, "Gradle Kotlin DSL": 709, "Groovy": 3190, "desktop": 1, "JAR Manifest": 15, "PHP": 47, "Microsoft Visual Studio Solution": 2, "C#": 33, "Smalltalk": 17, "Erlang": 1, "Perl": 9, "Jupyter Notebook": 13, "Rich Text Format": 2, "AspectJ": 2, "HLSL": 2, "Objective-C": 26, "CoffeeScript": 2, "HTTP": 2, "JSON with Comments": 71, "GraphQL": 112, "Nginx": 1, "HAProxy": 1, "OpenStep Property List": 48, "Python": 16973, "C": 110, "C++": 42, "Protocol Buffer": 3, "fish": 2, "PowerShell": 3, "Go": 36, "Prolog": 2, "ColdFusion": 2, "Turtle": 2, "TeX": 11, "HCL": 4, "Elixir": 2, "Ruby": 4, "XML Property List": 84, "E-mail": 18, "Roff": 274, "Roff Manpage": 40, "Swift": 3, "TOML": 190, "Checksums": 49, "Java Server Pages": 11, "Vue": 1, "Dotenv": 1, "reStructuredText": 67, "SQL": 1, "Vim Snippet": 8, "AMPL": 4, "Linux Kernel Module": 1, "CMake": 17, "Handlebars": 1, "Rust": 16, "Go Checksums": 1, "Go Module": 1, "NSIS": 6, "PlantUML": 6, "SCSS": 2, "Thrift": 3, "Cython": 13, "Regular Expression": 3, "JSON5": 4}
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package org.jetbrains.plugins.github.pullrequest.ui.timeline.item import com.intellij.collaboration.async.inverted import com.intellij.collaboration.async.launchNow import com.intellij.collaboration.async.launchNowIn import com.intellij.collaboration.async.mapScoped import com.intellij.collaboration.messages.CollaborationToolsBundle import com.intellij.collaboration.ui.* import com.intellij.collaboration.ui.codereview.CodeReviewChatItemUIUtil import com.intellij.collaboration.ui.codereview.CodeReviewChatItemUIUtil.build import com.intellij.collaboration.ui.codereview.CodeReviewTimelineUIUtil import com.intellij.collaboration.ui.codereview.CodeReviewTimelineUIUtil.Thread import com.intellij.collaboration.ui.codereview.comment.* import com.intellij.collaboration.ui.codereview.timeline.TimelineDiffComponentFactory import com.intellij.collaboration.ui.codereview.timeline.comment.CommentTextFieldFactory import com.intellij.collaboration.ui.codereview.user.CodeReviewUser import com.intellij.collaboration.ui.icon.IconsProvider import com.intellij.collaboration.ui.util.* import com.intellij.openapi.editor.EditorFactory import com.intellij.ui.components.panels.Wrapper import com.intellij.util.ui.JBUI import com.intellij.util.ui.UIUtil import kotlinx.coroutines.* import kotlinx.coroutines.flow.* import org.jetbrains.plugins.github.pullrequest.comment.ui.GHPRReviewCommentBodyComponentFactory import org.jetbrains.plugins.github.pullrequest.ui.timeline.GHPRTimelineItemUIUtil.buildTimelineItem import java.awt.event.ActionListener import javax.swing.JComponent import javax.swing.JLabel object GHPRTimelineThreadComponentFactory { fun createIn(cs: CoroutineScope, vm: GHPRTimelineThreadViewModel): JComponent = VerticalListPanel().apply { name = "GitHub Thread Panel ${vm.id}" add(cs.createThreadItem(vm)) add(cs.createRepliesPanel(vm)) } private fun CoroutineScope.createThreadItem(vm: GHPRTimelineThreadViewModel): JComponent = buildTimelineItem(vm.avatarIconsProvider, vm.author, createContent(vm)) { maxContentWidth = null val titlePanel = createTitlePanel(vm) val actionsPanel = createThreadActions(vm) withHeader(titlePanel, actionsPanel) } private fun CoroutineScope.createTitlePanel(vm: GHPRTimelineThreadViewModel): JComponent { val textPanel = CodeReviewTimelineUIUtil.createTitleTextPane(vm.author.getPresentableName(), vm.author.url, vm.createdAt) val tagsPanel = createTagsPanel(vm) return HorizontalListPanel(CodeReviewCommentUIUtil.Title.HORIZONTAL_GAP).apply { add(textPanel) add(tagsPanel) } } private fun CoroutineScope.createTagsPanel(vm: GHPRTimelineThreadViewModel): JComponent { val cs = this val outdatedLabel = CollaborationToolsUIUtil.createTagLabel(CollaborationToolsBundle.message("review.thread.outdated.tag")).apply { isVisible = false bindVisibilityIn(cs, vm.isOutdated) } val resolvedLabel = CollaborationToolsUIUtil.createTagLabel(CollaborationToolsBundle.message("review.thread.resolved.tag")).apply { isVisible = false bindVisibilityIn(cs, vm.isResolved) } val pendingLabel = CollaborationToolsUIUtil.createTagLabel(CollaborationToolsBundle.message("review.thread.pending.tag")).apply { isVisible = false bindVisibilityIn(cs, vm.isPending) } return HorizontalListPanel(CodeReviewCommentUIUtil.Title.HORIZONTAL_GAP).apply { add(outdatedLabel) add(resolvedLabel) add(pendingLabel) } } private fun CoroutineScope.createThreadActions(vm: GHPRTimelineThreadViewModel): JComponent = HorizontalListPanel(CodeReviewCommentUIUtil.Actions.HORIZONTAL_GAP).apply { launchNow { vm.mainCommentVm.collectLatest { removeAll() val commentVm = it ?: return@collectLatest supervisorScope { if (commentVm.canEdit) { add(CodeReviewCommentUIUtil.createEditButton { commentVm.editBody() }.apply { bindDisabledIn(this@supervisorScope, commentVm.isBusy) }) } if (commentVm.canDelete) { add(CodeReviewCommentUIUtil.createDeleteCommentIconButton { commentVm.delete() }.apply { bindDisabledIn(this@supervisorScope, commentVm.isBusy) }) } revalidate() repaint() awaitCancellation() } } } } private fun CoroutineScope.createContent(vm: GHPRTimelineThreadViewModel): JComponent { val cs = this val diff = createDiff(vm) val diffAndText = VerticalListPanel(Thread.DIFF_TEXT_GAP).apply { var showJob: Job? = null combine(vm.collapsed, vm.mainCommentVm) { collapsed, commentVm -> showJob?.cancelAndJoin() showJob = cs.launchNow { if (commentVm == null) { add(diff) } else if (collapsed) { val textPane = createCollapsedThreadComment(commentVm) add(textPane) add(diff) } else { val editableText = createFullThreadComment(commentVm) add(diff) add(editableText) } revalidate() repaint() try { awaitCancellation() } finally { removeAll() } } }.launchNowIn(cs) } val avatarProviderWrapper = IconsProvider<CodeReviewUser> { key, iconSize -> vm.avatarIconsProvider.getIcon(key?.avatarUrl, iconSize) } val collapsedThreadActionsComponent = CodeReviewCommentUIUtil.createFoldedThreadControlsIn(cs, vm, avatarProviderWrapper).apply { bindVisibilityIn(cs, vm.repliesFolded) } return VerticalListPanel().apply { add(diffAndText) add(collapsedThreadActionsComponent) } } private fun CoroutineScope.createCollapsedThreadComment(vm: GHPRTimelineThreadCommentViewModel): JComponent { val cs = this val textPane = SimpleHtmlPane().apply { foreground = UIUtil.getContextHelpForeground() bindTextIn(cs, vm.bodyVm.body) }.let { pane -> CollaborationToolsUIUtil .wrapWithLimitedSize(pane, DimensionRestrictions.LinesHeight(pane, 2, CodeReviewChatItemUIUtil.TEXT_CONTENT_WIDTH)) } return textPane } private fun CoroutineScope.createFullThreadComment(vm: GHPRTimelineThreadCommentViewModel): JComponent { val cs = this val commentPane = GHPRReviewCommentBodyComponentFactory.createIn(this, vm.bodyVm, CodeReviewChatItemUIUtil.TEXT_CONTENT_WIDTH) val editableText = EditableComponentFactory.create(cs, commentPane, vm.editVm) { editVm -> val actions = createEditActionsConfig(editVm) CodeReviewCommentTextFieldFactory.createIn(this, editVm, actions).let { pane -> CollaborationToolsUIUtil .wrapWithLimitedSize(pane, DimensionRestrictions.ScalingConstant(width = CodeReviewChatItemUIUtil.TEXT_CONTENT_WIDTH)) } } return editableText } private fun CoroutineScope.createDiff(vm: GHPRTimelineThreadViewModel): JComponent { val fileNameClickListener = flowOf(ActionListener { vm.showDiff() }) return TimelineDiffComponentFactory.createDiffWithHeader(this, vm, vm.filePath, fileNameClickListener) { Wrapper().apply { bindContentIn(this@createDiffWithHeader, vm.patchHunkWithAnchor) { (hunk, anchorRange) -> if (hunk.lines.isEmpty()) { JLabel(CollaborationToolsBundle.message("review.thread.diff.not.loaded")) } else { TimelineDiffComponentFactory .createDiffComponentIn(this, vm.project, EditorFactory.getInstance(), hunk, anchorRange) } } } } } private fun CoroutineScope.createRepliesPanel(vm: GHPRTimelineThreadViewModel): JComponent { val cs = this@createRepliesPanel val repliesListPanel = ComponentListPanelFactory.createVertical(cs, vm.replies) { commentVm -> createComment(vm, commentVm) } val additionalActions = vm.canChangeResolvedState.mapScoped { buildList { if (it) { add(swingAction(CollaborationToolsBundle.message("review.comments.resolve.action")) { vm.changeResolvedState() }.apply { bindEnabledIn(cs, vm.isBusy.inverted()) bindTextIn(cs, vm.isResolved.map { CodeReviewCommentUIUtil.getResolveToggleActionText(it) }) }) } } }.stateIn(cs, SharingStarted.Eagerly, emptyList()) val replyVm = vm.newReplyVm //TODO: pending reply val actions = CommentInputActionsComponentFactory.Config( primaryAction = MutableStateFlow(replyVm.submitActionIn(this, CollaborationToolsBundle.message("review.comments.reply.action")) { replyVm.submit() }), additionalActions = additionalActions, cancelAction = MutableStateFlow(null), submitHint = MutableStateFlow(CollaborationToolsBundle.message("review.comments.reply.hint", CommentInputActionsComponentFactory.submitShortcutText)) ) val componentType = CodeReviewChatItemUIUtil.ComponentType.FULL_SECONDARY val icon = CommentTextFieldFactory.IconConfig.of(componentType, vm.avatarIconsProvider, replyVm.currentUser.avatarUrl) val replyComponent = CodeReviewCommentTextFieldFactory.createIn(this, replyVm, actions, icon).let { CollaborationToolsUIUtil .wrapWithLimitedSize(it, maxWidth = CodeReviewChatItemUIUtil.TEXT_CONTENT_WIDTH + componentType.contentLeftShift) }.apply { border = JBUI.Borders.empty(componentType.inputPaddingInsets) //TODO: show resolve when available separately from reply bindVisibilityIn(cs, vm.canCreateReplies) } return VerticalListPanel().apply { add(repliesListPanel) add(replyComponent) bindVisibilityIn(cs, vm.repliesFolded.inverted()) } } private fun CoroutineScope.createComment(threadVm: GHPRTimelineThreadViewModel, commentVm: GHPRTimelineThreadCommentViewModel): JComponent { val editableText = createFullThreadComment(commentVm) return build(CodeReviewChatItemUIUtil.ComponentType.FULL_SECONDARY, { threadVm.avatarIconsProvider.getIcon(commentVm.author.avatarUrl, it) }, editableText) { iconTooltip = commentVm.author.getPresentableName() maxContentWidth = null val titlePanel = CodeReviewTimelineUIUtil.createTitleTextPane(threadVm.author.getPresentableName(), threadVm.author.url, threadVm.createdAt) val actionsPanel = createCommentActions(commentVm) withHeader(titlePanel, actionsPanel) } } private fun CoroutineScope.createCommentActions(vm: GHPRTimelineThreadCommentViewModel): JComponent { val cs = this return HorizontalListPanel(CodeReviewCommentUIUtil.Actions.HORIZONTAL_GAP).apply { if (vm.canEdit) { add(CodeReviewCommentUIUtil.createEditButton { vm.editBody() }.apply { bindDisabledIn(cs, vm.isBusy) }) } if (vm.canDelete) { add(CodeReviewCommentUIUtil.createDeleteCommentIconButton { vm.delete() }.apply { bindDisabledIn(cs, vm.isBusy) }) } } } }
1
null
1
1
e026aea35cf0f93731cc9d495866ed8bfe2812aa
11,648
intellij-community
Apache License 2.0
collect_app/src/androidTest/java/org/odk/collect/android/support/pages/AutomaticProjectCreatorDialogPage.kt
virtualpathum
377,030,203
true
{"Java Properties": 2, "Gradle": 18, "Shell": 3, "YAML": 2, "INI": 14, "Markdown": 15, "Git Attributes": 1, "Batchfile": 1, "Ignore List": 14, "Text": 1, "JSON": 3, "Java": 987, "Kotlin": 145, "XML": 456, "HTML": 1, "JavaScript": 1, "Proguard": 2, "XSLT": 6}
package org.odk.collect.android.support.pages import org.odk.collect.android.R class AutomaticProjectCreatorDialogPage : Page<AutomaticProjectCreatorDialogPage>() { override fun assertOnPage(): AutomaticProjectCreatorDialogPage { assertText(R.string.add_project) return this } fun switchToManualMode(): ManualProjectCreatorDialogPage { clickOnString(R.string.configure_manually) return ManualProjectCreatorDialogPage().assertOnPage() } }
0
Java
0
0
5a931b62390be253e9bd969275c469c92b0d2c17
489
collect
Apache License 2.0
app/src/main/java/com/dev/james/sayariproject/ui/launches/viewmodel/PreviousLaunchesViewModel.kt
JayExtra
426,628,122
false
null
package com.dev.james.sayariproject.ui.launches.viewmodel import android.util.Log import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import androidx.paging.PagingData import androidx.paging.cachedIn import com.dev.james.sayariproject.models.launch.LaunchList import com.dev.james.sayariproject.repository.BaseMainRepository import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.flow.* import kotlinx.coroutines.launch import javax.inject.Inject @HiltViewModel class PreviousLaunchesViewModel @Inject constructor( private val repository: BaseMainRepository, private val savedStateHandle: SavedStateHandle ) : ViewModel() { val uiState : StateFlow<UiState> val pagingDataFlow : Flow<PagingData<LaunchList>> val accept: (UiAction) -> Unit init { Log.d("LaunchesViewModel", "getLaunches: function called") val initialQuery: String = savedStateHandle.get<String>(LAST_SEARCH_QUERY) ?: DEFAULT_QUERY val actionStateFlow = MutableSharedFlow<UiAction>() val searches = actionStateFlow .filterIsInstance<UiAction.Search>() .distinctUntilChanged() .onStart { emit(UiAction.Search(query = initialQuery))} pagingDataFlow = searches .flatMapLatest { searchLaunches(queryString = it.query , 1) } .cachedIn(viewModelScope) uiState = searches.map { search -> UiState( query = search.query ) }.stateIn( scope = viewModelScope, started = SharingStarted.WhileSubscribed(stopTimeoutMillis = 5000 ), initialValue = UiState() ) accept = { action -> viewModelScope.launch { actionStateFlow.emit(action)} } } override fun onCleared() { savedStateHandle[LAST_SEARCH_QUERY] = uiState.value.query super.onCleared() } private fun searchLaunches(queryString : String, fragId:Int) : Flow<PagingData<LaunchList>> = repository.getLaunchesStream(queryString , fragId).cachedIn(viewModelScope) } private const val LAST_SEARCH_QUERY = "last_search_query" private const val DEFAULT_QUERY = ""
4
Kotlin
0
0
cea83c93bbfa286ee473910c1f00abe076ef1344
2,290
Sayari_Project
Apache License 2.0
app/src/main/java/com/mozay/movie/domain/module/MoviesDomainModule.kt
mozay
240,854,610
false
null
package com.mozay.movie.domain.module import com.mozay.movie.domain.model.movie.response.MovieDetailResponse import com.mozay.movie.domain.model.movie.response.MovieImagesResponse import com.mozay.movie.domain.model.movie.response.MovieListResponse import com.mozay.movie.domain.repository.MovieRepository import com.mozay.movie.domain.usecase.* import com.mozay.movie.domain.usecase.base.BaseUseCase import dagger.Module import dagger.Provides @Module class MoviesDomainModule { @Provides fun provideMoviePopularUseCase(movieRepository: MovieRepository): BaseUseCase.RequestInteractor<MoviePopularUseCase.MoviePopularUseCaseParams, MovieListResponse> = MoviePopularUseCase(movieRepository) @Provides fun provideMovieTopRatedUseCase(movieRepository: MovieRepository): BaseUseCase.RequestInteractor<MovieTopRatedUseCase.MovieTopRatedUseCaseParams, MovieListResponse> = MovieTopRatedUseCase(movieRepository) @Provides fun provideMovieNowPlayingUseCase(movieRepository: MovieRepository): BaseUseCase.RequestInteractor<MovieNowPlayingUseCase.MovieNowPlayingUseCaseParams, MovieListResponse> = MovieNowPlayingUseCase(movieRepository) @Provides fun provideMovieDetailUseCase(movieRepository: MovieRepository): BaseUseCase.RequestInteractor<MovieDetailUseCase.MovieDetailUseCaseParams, MovieDetailResponse> = MovieDetailUseCase(movieRepository) @Provides fun provideMovieImagesUseCase(movieRepository: MovieRepository): BaseUseCase.RequestInteractor<MovieImagesUseCase.MovieImagesUseCaseParams, MovieImagesResponse> = MovieImagesUseCase(movieRepository) }
0
Kotlin
0
14
8a8f2d229f141b8a7b0a32ae13f1bf8f66761995
1,696
RxMovie
MIT License
SharedCodeClient/src/commonMain/kotlin/com/jarroyo/sharedcodeclient/domain/base/BaseUseCaseFlow.kt
jarroyoesp
345,142,032
false
null
package com.jarroyo.sharedcodeclient.domain.base import com.jarroyo.sharedcodeclient.domain.base.BaseRequest import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.FlowCollector import kotlinx.coroutines.flow.flow abstract class BaseUseCaseFlow<R : BaseRequest, T> { protected var mRequest: R? = null suspend fun execute(request: R? = null): Flow<Response<T>> { mRequest = request return run() } abstract suspend fun run(): Flow<Response<T>> }
0
Kotlin
0
0
d82dcd8c96e6a6aa3317e3c8ab0263f105293382
494
android-dev-challenge-compose
Apache License 2.0
service/src/test/kotlin/app/cash/backfila/BackfilaTestingModule.kt
cashapp
209,384,085
false
null
package app.cash.backfila import app.cash.backfila.api.ServiceWebActionsModule import app.cash.backfila.client.BackfilaCallbackConnectorProvider import app.cash.backfila.client.Connectors import app.cash.backfila.client.FakeBackfilaCallbackConnectorProvider import app.cash.backfila.client.ForConnectors import app.cash.backfila.service.BackfilaConfig import app.cash.backfila.service.BackfillRunListener import app.cash.backfila.service.SlackHelper import app.cash.backfila.service.persistence.BackfilaDb import app.cash.backfila.service.persistence.BackfilaPersistenceModule import app.cash.backfila.service.runner.BackfillRunnerLoggingSetupProvider import app.cash.backfila.service.runner.BackfillRunnerNoLoggingSetupProvider import app.cash.backfila.service.scheduler.ForBackfilaScheduler import com.google.common.util.concurrent.ListeningExecutorService import com.google.common.util.concurrent.MoreExecutors import com.google.common.util.concurrent.ThreadFactoryBuilder import com.google.inject.Provides import java.util.concurrent.Executors import javax.inject.Singleton import misk.MiskCaller import misk.MiskTestingServiceModule import misk.environment.DeploymentModule import misk.hibernate.HibernateTestingModule import misk.inject.KAbstractModule import misk.jdbc.DataSourceClusterConfig import misk.jdbc.DataSourceClustersConfig import misk.jdbc.DataSourceConfig import misk.jdbc.DataSourceType import misk.logging.LogCollectorModule import misk.scope.ActionScopedProviderModule internal class BackfilaTestingModule : KAbstractModule() { override fun configure() { val config = BackfilaConfig( backfill_runner_threads = null, data_source_clusters = DataSourceClustersConfig( mapOf( "backfila-001" to DataSourceClusterConfig( writer = DataSourceConfig( type = DataSourceType.MYSQL, database = "backfila_test", username = "root", migrations_resource = "classpath:/migrations", ), reader = null, ), ), ), web_url_root = "", slack = null, ) bind<BackfilaConfig>().toInstance(config) newMultibinder<BackfillRunListener>() .addBinding() .to(SlackHelper::class.java) install(DeploymentModule(wisp.deployment.TESTING)) install(LogCollectorModule()) install(MiskTestingServiceModule()) install(HibernateTestingModule(BackfilaDb::class)) install(BackfilaPersistenceModule(config)) install(ServiceWebActionsModule()) bind(BackfilaCallbackConnectorProvider::class.java) .to(FakeBackfilaCallbackConnectorProvider::class.java) bind(BackfillRunnerLoggingSetupProvider::class.java) .to(BackfillRunnerNoLoggingSetupProvider::class.java) install(object : ActionScopedProviderModule() { override fun configureProviders() { bindSeedData(MiskCaller::class) } }, ) newMapBinder<String, BackfilaCallbackConnectorProvider>(ForConnectors::class) .addBinding(Connectors.HTTP) .to(FakeBackfilaCallbackConnectorProvider::class.java) newMapBinder<String, BackfilaCallbackConnectorProvider>(ForConnectors::class) .addBinding(Connectors.ENVOY) .to(FakeBackfilaCallbackConnectorProvider::class.java) } @Provides @ForBackfilaScheduler @Singleton fun backfillRunnerExecutor(): ListeningExecutorService { // TODO better executor for testing return MoreExecutors.listeningDecorator( Executors.newCachedThreadPool( ThreadFactoryBuilder() .setNameFormat("backfila-runner-%d") .build(), ), ) } }
50
null
47
31
983c74b0516ef2cee75a8774dc3b233fdf641dc1
3,637
backfila
Apache License 2.0
app/src/main/java/at/shockbytes/dante/ui/adapter/suggestions/OnSuggestionExplanationClickedListener.kt
shockbytes
92,944,830
false
{"Kotlin": 790848}
package at.shockbytes.dante.ui.adapter.suggestions fun interface OnSuggestionExplanationClickedListener { fun onDismissClicked() }
21
Kotlin
7
73
626fd7c12691be646fcd7b55a9c46539073af675
136
Dante
Apache License 2.0
app/src/main/java/com/app/util/Constants.kt
yash786agg
197,660,329
false
null
package com.app.util class Constants { companion object { const val TIMEOUT_REQUEST: Long = 30 const val flickrPhotosSearch : String = "flickr.photos.search" const val flickrPhotosGetSizes : String = "flickr.photos.getSizes" const val kittenSearch : String = "kitten" const val format : String = "json" const val perPage : Int = 20 const val noJsonCallback : Long = 1 const val nullData = "null" } }
0
Kotlin
10
33
7ce772d9919f4ed247e5002607c35dbb317d528b
483
PagingKotlin
Apache License 2.0
app/src/main/java/com/WrapX/vcentremap/repo/model/Session.kt
Marvel999
368,595,344
false
null
package com.WrapX.vcentremap.repo.model import com.squareup.moshi.Json import com.squareup.moshi.JsonClass @JsonClass(generateAdapter = true) data class Session( @Json(name = "address") var address: String, @Json(name = "available_capacity") var availableCapacity: Int, @Json(name = "available_capacity_dose1") var availableCapacityDose1: Int, @Json(name = "available_capacity_dose2") var availableCapacityDose2: Int, @Json(name = "block_name") var blockName: String, @Json(name = "center_id") var centerId: Int, @Json(name = "date") var date: String, @Json(name = "district_name") var districtName: String, @Json(name = "fee") var fee: String, @Json(name = "fee_type") var feeType: String, @Json(name = "from") var from: String, @Json(name = "lat") var lat: Int, @Json(name = "long") var long: Int, @Json(name = "min_age_limit") var minAgeLimit: Int, @Json(name = "name") var name: String, @Json(name = "pincode") var pincode: Int, @Json(name = "session_id") var sessionId: String, @Json(name = "slots") var slots: List<String>, @Json(name = "state_name") var stateName: String, @Json(name = "to") var to: String, @Json(name = "vaccine") var vaccine: String )
0
Kotlin
1
1
a956ecac0474f69c544e6a7838286dcba974da7a
1,331
VCenter-Map
Apache License 2.0
src/main/kotlin/icu/windea/pls/core/quickfix/InsertStringFix.kt
DragonKnightOfBreeze
328,104,626
false
null
package icu.windea.pls.core.quickfix import com.intellij.codeInsight.intention.* import com.intellij.openapi.editor.* import com.intellij.openapi.project.* import com.intellij.psi.* import icu.windea.pls.* class InsertStringFix( private val string: String, private val offset: Int, private val moveCaretToOffset: Boolean = false ) : IntentionAction { override fun getText() = PlsBundle.message("localisation.annotator.adjacentIcon.fix") override fun getFamilyName() = text override fun isAvailable(project: Project, editor: Editor?, file: PsiFile?) = true override fun invoke(project: Project, editor: Editor?, file: PsiFile?) { if(editor == null) return if(moveCaretToOffset) { editor.caretModel.moveToOffset(offset) } editor.document.insertString(offset, string) } override fun startInWriteAction() = true }
8
Kotlin
4
22
c6c558b82c84b9e88c0ee179f64cbfdda66b8082
912
Paradox-Language-Support
MIT License
glassfy/src/main/java/io/glassfy/androidsdk/internal/network/model/request/SkuDetailsRequest.kt
glassfy
470,995,476
false
{"Kotlin": 229208}
package io.glassfy.androidsdk.internal.network.model.request import com.squareup.moshi.Json import com.squareup.moshi.JsonClass import io.glassfy.androidsdk.model.SkuDetails @JsonClass(generateAdapter = true) internal data class SkuDetailsRequest( @field:Json(name = "productid") val sku: String?, @field:Json(name = "baseplan") var basePlanId: String?, @field:Json(name = "offerid") var offerId: String?, @field:Json(name = "subscription_period") val subscriptionPeriod: String?, @field:Json(name = "freetrial_period") val freeTrialPeriod: String?, @field:Json(name = "price_currency") val priceCurrencyCode: String?, @field:Json(name = "price_micro") val priceAmountMicro: Long?, @field:Json(name = "originalprice_micro") val originalPriceAmountMicro: Long?, @field:Json(name = "intro_micro") val introductoryPriceAmountMicro: Long?, @field:Json(name = "intro_cycles") val introductoryPriceAmountCycles: Int?, @field:Json(name = "intro_period") val introductoryPriceAmountPeriod: String?, ) { companion object { internal fun from(s: SkuDetails) = SkuDetailsRequest( s.sku.ifEmpty { null }, s.basePlanId.ifEmpty { null }, s.offerId.ifEmpty { null }, s.subscriptionPeriod.ifEmpty { null }, s.freeTrialPeriod.ifEmpty { null }, s.priceCurrencyCode.ifEmpty { null }, s.priceAmountMicro.takeIf { it > 0 }, s.originalPriceAmountMicro.takeIf { it != s.priceAmountMicro }, s.introductoryPriceAmountMicro.takeIf { it > 0 }, s.introductoryPriceAmountCycles.takeIf { it > 0 }, s.introductoryPriceAmountPeriod.ifEmpty { null } ) } }
1
Kotlin
3
8
7457834ccd3bd32180e5558d7fff3d91e9f87e2d
1,786
android-sdk
MIT License
gradle-plugins/compose/src/test/test-projects/misc/hugeResources/expected/String29.kt
JetBrains
293,498,508
false
{"Kotlin": 19912259, "Shell": 12167, "JavaScript": 4973, "Dockerfile": 4774, "Swift": 2823, "Java": 1964, "PowerShell": 1708, "Groovy": 1415, "HTML": 1219, "Ruby": 404}
@file:OptIn(org.jetbrains.compose.resources.InternalResourceApi::class) package app.group.huge.generated.resources import kotlin.OptIn import org.jetbrains.compose.resources.ExperimentalResourceApi import org.jetbrains.compose.resources.StringResource @ExperimentalResourceApi private object String29 { public val str_23047: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23047", "str_23047", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23048: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23048", "str_23048", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23049: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23049", "str_23049", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2305: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2305", "str_2305", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23050: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23050", "str_23050", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23051: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23051", "str_23051", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23052: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23052", "str_23052", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23053: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23053", "str_23053", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23054: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23054", "str_23054", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23055: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23055", "str_23055", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23056: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23056", "str_23056", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23057: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23057", "str_23057", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23058: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23058", "str_23058", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23059: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23059", "str_23059", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2306: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2306", "str_2306", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23060: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23060", "str_23060", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23061: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23061", "str_23061", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23062: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23062", "str_23062", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23063: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23063", "str_23063", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23064: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23064", "str_23064", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23065: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23065", "str_23065", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23066: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23066", "str_23066", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23067: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23067", "str_23067", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23068: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23068", "str_23068", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23069: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23069", "str_23069", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2307: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2307", "str_2307", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23070: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23070", "str_23070", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23071: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23071", "str_23071", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23072: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23072", "str_23072", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23073: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23073", "str_23073", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23074: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23074", "str_23074", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23075: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23075", "str_23075", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23076: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23076", "str_23076", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23077: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23077", "str_23077", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23078: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23078", "str_23078", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23079: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23079", "str_23079", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2308: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2308", "str_2308", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23080: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23080", "str_23080", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23081: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23081", "str_23081", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23082: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23082", "str_23082", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23083: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23083", "str_23083", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23084: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23084", "str_23084", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23085: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23085", "str_23085", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23086: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23086", "str_23086", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23087: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23087", "str_23087", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23088: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23088", "str_23088", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23089: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23089", "str_23089", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2309: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2309", "str_2309", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23090: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23090", "str_23090", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23091: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23091", "str_23091", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23092: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23092", "str_23092", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23093: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23093", "str_23093", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23094: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23094", "str_23094", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23095: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23095", "str_23095", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23096: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23096", "str_23096", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23097: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23097", "str_23097", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23098: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23098", "str_23098", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23099: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23099", "str_23099", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_231: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_231", "str_231", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2310: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2310", "str_2310", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23100: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23100", "str_23100", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23101: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23101", "str_23101", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23102: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23102", "str_23102", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23103: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23103", "str_23103", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23104: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23104", "str_23104", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23105: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23105", "str_23105", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23106: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23106", "str_23106", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23107: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23107", "str_23107", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23108: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23108", "str_23108", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23109: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23109", "str_23109", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2311: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2311", "str_2311", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23110: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23110", "str_23110", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23111: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23111", "str_23111", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23112: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23112", "str_23112", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23113: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23113", "str_23113", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23114: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23114", "str_23114", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23115: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23115", "str_23115", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23116: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23116", "str_23116", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23117: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23117", "str_23117", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23118: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23118", "str_23118", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23119: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23119", "str_23119", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2312: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2312", "str_2312", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23120: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23120", "str_23120", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23121: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23121", "str_23121", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23122: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23122", "str_23122", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23123: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23123", "str_23123", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23124: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23124", "str_23124", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23125: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23125", "str_23125", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23126: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23126", "str_23126", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23127: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23127", "str_23127", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23128: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23128", "str_23128", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23129: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23129", "str_23129", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2313: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2313", "str_2313", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23130: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23130", "str_23130", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23131: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23131", "str_23131", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23132: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23132", "str_23132", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23133: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23133", "str_23133", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23134: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23134", "str_23134", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23135: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23135", "str_23135", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23136: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23136", "str_23136", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23137: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23137", "str_23137", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23138: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23138", "str_23138", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23139: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23139", "str_23139", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2314: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2314", "str_2314", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23140: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23140", "str_23140", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23141: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23141", "str_23141", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23142: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23142", "str_23142", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23143: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23143", "str_23143", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23144: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23144", "str_23144", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23145: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23145", "str_23145", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23146: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23146", "str_23146", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23147: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23147", "str_23147", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23148: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23148", "str_23148", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23149: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23149", "str_23149", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2315: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2315", "str_2315", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23150: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23150", "str_23150", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23151: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23151", "str_23151", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23152: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23152", "str_23152", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23153: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23153", "str_23153", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23154: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23154", "str_23154", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23155: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23155", "str_23155", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23156: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23156", "str_23156", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23157: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23157", "str_23157", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23158: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23158", "str_23158", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23159: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23159", "str_23159", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2316: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2316", "str_2316", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23160: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23160", "str_23160", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23161: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23161", "str_23161", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23162: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23162", "str_23162", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23163: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23163", "str_23163", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23164: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23164", "str_23164", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23165: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23165", "str_23165", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23166: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23166", "str_23166", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23167: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23167", "str_23167", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23168: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23168", "str_23168", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23169: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23169", "str_23169", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2317: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2317", "str_2317", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23170: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23170", "str_23170", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23171: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23171", "str_23171", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23172: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23172", "str_23172", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23173: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23173", "str_23173", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23174: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23174", "str_23174", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23175: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23175", "str_23175", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23176: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23176", "str_23176", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23177: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23177", "str_23177", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23178: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23178", "str_23178", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23179: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23179", "str_23179", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2318: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2318", "str_2318", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23180: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23180", "str_23180", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23181: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23181", "str_23181", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23182: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23182", "str_23182", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23183: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23183", "str_23183", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23184: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23184", "str_23184", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23185: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23185", "str_23185", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23186: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23186", "str_23186", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23187: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23187", "str_23187", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23188: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23188", "str_23188", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23189: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23189", "str_23189", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2319: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2319", "str_2319", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23190: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23190", "str_23190", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23191: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23191", "str_23191", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23192: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23192", "str_23192", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23193: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23193", "str_23193", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23194: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23194", "str_23194", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23195: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23195", "str_23195", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23196: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23196", "str_23196", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23197: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23197", "str_23197", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23198: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23198", "str_23198", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23199: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23199", "str_23199", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_232: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_232", "str_232", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2320: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2320", "str_2320", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23200: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23200", "str_23200", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23201: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23201", "str_23201", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23202: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23202", "str_23202", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23203: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23203", "str_23203", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23204: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23204", "str_23204", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23205: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23205", "str_23205", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23206: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23206", "str_23206", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23207: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23207", "str_23207", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23208: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23208", "str_23208", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23209: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23209", "str_23209", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2321: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2321", "str_2321", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23210: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23210", "str_23210", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23211: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23211", "str_23211", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23212: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23212", "str_23212", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23213: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23213", "str_23213", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23214: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23214", "str_23214", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23215: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23215", "str_23215", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23216: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23216", "str_23216", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23217: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23217", "str_23217", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23218: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23218", "str_23218", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23219: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23219", "str_23219", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2322: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2322", "str_2322", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23220: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23220", "str_23220", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23221: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23221", "str_23221", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23222: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23222", "str_23222", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23223: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23223", "str_23223", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23224: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23224", "str_23224", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23225: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23225", "str_23225", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23226: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23226", "str_23226", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23227: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23227", "str_23227", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23228: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23228", "str_23228", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23229: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23229", "str_23229", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2323: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2323", "str_2323", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23230: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23230", "str_23230", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23231: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23231", "str_23231", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23232: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23232", "str_23232", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23233: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23233", "str_23233", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23234: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23234", "str_23234", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23235: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23235", "str_23235", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23236: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23236", "str_23236", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23237: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23237", "str_23237", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23238: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23238", "str_23238", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23239: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23239", "str_23239", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2324: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2324", "str_2324", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23240: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23240", "str_23240", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23241: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23241", "str_23241", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23242: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23242", "str_23242", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23243: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23243", "str_23243", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23244: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23244", "str_23244", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23245: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23245", "str_23245", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23246: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23246", "str_23246", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23247: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23247", "str_23247", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23248: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23248", "str_23248", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23249: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23249", "str_23249", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2325: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2325", "str_2325", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23250: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23250", "str_23250", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23251: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23251", "str_23251", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23252: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23252", "str_23252", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23253: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23253", "str_23253", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23254: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23254", "str_23254", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23255: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23255", "str_23255", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23256: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23256", "str_23256", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23257: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23257", "str_23257", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23258: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23258", "str_23258", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23259: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23259", "str_23259", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2326: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2326", "str_2326", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23260: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23260", "str_23260", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23261: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23261", "str_23261", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23262: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23262", "str_23262", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23263: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23263", "str_23263", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23264: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23264", "str_23264", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23265: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23265", "str_23265", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23266: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23266", "str_23266", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23267: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23267", "str_23267", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23268: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23268", "str_23268", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23269: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23269", "str_23269", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2327: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2327", "str_2327", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23270: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23270", "str_23270", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23271: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23271", "str_23271", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23272: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23272", "str_23272", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23273: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23273", "str_23273", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23274: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23274", "str_23274", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23275: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23275", "str_23275", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23276: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23276", "str_23276", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23277: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23277", "str_23277", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23278: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23278", "str_23278", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23279: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23279", "str_23279", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2328: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2328", "str_2328", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23280: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23280", "str_23280", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23281: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23281", "str_23281", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23282: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23282", "str_23282", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23283: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23283", "str_23283", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23284: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23284", "str_23284", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23285: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23285", "str_23285", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23286: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23286", "str_23286", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23287: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23287", "str_23287", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23288: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23288", "str_23288", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23289: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23289", "str_23289", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2329: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2329", "str_2329", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23290: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23290", "str_23290", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23291: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23291", "str_23291", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23292: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23292", "str_23292", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23293: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23293", "str_23293", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23294: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23294", "str_23294", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23295: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23295", "str_23295", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23296: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23296", "str_23296", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23297: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23297", "str_23297", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23298: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23298", "str_23298", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23299: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23299", "str_23299", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_233: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_233", "str_233", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2330: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2330", "str_2330", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23300: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23300", "str_23300", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23301: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23301", "str_23301", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23302: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23302", "str_23302", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23303: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23303", "str_23303", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23304: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23304", "str_23304", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23305: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23305", "str_23305", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23306: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23306", "str_23306", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23307: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23307", "str_23307", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23308: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23308", "str_23308", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23309: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23309", "str_23309", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2331: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2331", "str_2331", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23310: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23310", "str_23310", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23311: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23311", "str_23311", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23312: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23312", "str_23312", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23313: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23313", "str_23313", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23314: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23314", "str_23314", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23315: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23315", "str_23315", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23316: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23316", "str_23316", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23317: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23317", "str_23317", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23318: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23318", "str_23318", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23319: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23319", "str_23319", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2332: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2332", "str_2332", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23320: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23320", "str_23320", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23321: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23321", "str_23321", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23322: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23322", "str_23322", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23323: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23323", "str_23323", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23324: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23324", "str_23324", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23325: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23325", "str_23325", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23326: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23326", "str_23326", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23327: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23327", "str_23327", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23328: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23328", "str_23328", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23329: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23329", "str_23329", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2333: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2333", "str_2333", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23330: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23330", "str_23330", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23331: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23331", "str_23331", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23332: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23332", "str_23332", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23333: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23333", "str_23333", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23334: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23334", "str_23334", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23335: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23335", "str_23335", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23336: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23336", "str_23336", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23337: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23337", "str_23337", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23338: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23338", "str_23338", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23339: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23339", "str_23339", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2334: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2334", "str_2334", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23340: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23340", "str_23340", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23341: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23341", "str_23341", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23342: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23342", "str_23342", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23343: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23343", "str_23343", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23344: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23344", "str_23344", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23345: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23345", "str_23345", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23346: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23346", "str_23346", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23347: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23347", "str_23347", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23348: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23348", "str_23348", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23349: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23349", "str_23349", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2335: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2335", "str_2335", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23350: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23350", "str_23350", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23351: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23351", "str_23351", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23352: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23352", "str_23352", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23353: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23353", "str_23353", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23354: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23354", "str_23354", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23355: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23355", "str_23355", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23356: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23356", "str_23356", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23357: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23357", "str_23357", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23358: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23358", "str_23358", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23359: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23359", "str_23359", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2336: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2336", "str_2336", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23360: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23360", "str_23360", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23361: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23361", "str_23361", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23362: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23362", "str_23362", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23363: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23363", "str_23363", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23364: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23364", "str_23364", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23365: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23365", "str_23365", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23366: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23366", "str_23366", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23367: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23367", "str_23367", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23368: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23368", "str_23368", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23369: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23369", "str_23369", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2337: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2337", "str_2337", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23370: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23370", "str_23370", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23371: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23371", "str_23371", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23372: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23372", "str_23372", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23373: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23373", "str_23373", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23374: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23374", "str_23374", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23375: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23375", "str_23375", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23376: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23376", "str_23376", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23377: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23377", "str_23377", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23378: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23378", "str_23378", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23379: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23379", "str_23379", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2338: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2338", "str_2338", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23380: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23380", "str_23380", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23381: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23381", "str_23381", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23382: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23382", "str_23382", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23383: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23383", "str_23383", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23384: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23384", "str_23384", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23385: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23385", "str_23385", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23386: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23386", "str_23386", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23387: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23387", "str_23387", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23388: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23388", "str_23388", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23389: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23389", "str_23389", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2339: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2339", "str_2339", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23390: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23390", "str_23390", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23391: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23391", "str_23391", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23392: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23392", "str_23392", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23393: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23393", "str_23393", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23394: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23394", "str_23394", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23395: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23395", "str_23395", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23396: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23396", "str_23396", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23397: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23397", "str_23397", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23398: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23398", "str_23398", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23399: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23399", "str_23399", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_234: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_234", "str_234", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2340: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2340", "str_2340", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23400: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23400", "str_23400", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23401: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23401", "str_23401", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23402: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23402", "str_23402", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23403: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23403", "str_23403", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23404: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23404", "str_23404", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23405: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23405", "str_23405", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23406: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23406", "str_23406", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23407: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23407", "str_23407", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23408: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23408", "str_23408", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23409: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23409", "str_23409", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2341: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2341", "str_2341", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23410: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23410", "str_23410", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23411: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23411", "str_23411", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23412: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23412", "str_23412", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23413: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23413", "str_23413", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23414: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23414", "str_23414", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23415: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23415", "str_23415", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23416: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23416", "str_23416", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23417: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23417", "str_23417", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23418: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23418", "str_23418", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23419: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23419", "str_23419", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2342: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2342", "str_2342", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23420: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23420", "str_23420", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23421: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23421", "str_23421", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23422: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23422", "str_23422", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23423: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23423", "str_23423", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23424: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23424", "str_23424", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23425: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23425", "str_23425", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23426: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23426", "str_23426", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23427: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23427", "str_23427", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23428: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23428", "str_23428", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23429: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23429", "str_23429", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2343: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2343", "str_2343", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23430: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23430", "str_23430", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23431: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23431", "str_23431", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23432: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23432", "str_23432", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23433: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23433", "str_23433", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23434: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23434", "str_23434", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23435: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23435", "str_23435", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23436: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23436", "str_23436", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23437: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23437", "str_23437", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23438: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23438", "str_23438", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23439: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23439", "str_23439", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2344: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2344", "str_2344", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23440: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23440", "str_23440", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23441: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23441", "str_23441", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23442: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23442", "str_23442", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23443: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23443", "str_23443", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23444: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23444", "str_23444", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23445: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23445", "str_23445", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23446: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23446", "str_23446", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23447: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23447", "str_23447", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23448: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23448", "str_23448", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23449: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23449", "str_23449", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2345: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2345", "str_2345", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23450: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23450", "str_23450", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23451: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23451", "str_23451", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23452: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23452", "str_23452", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23453: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23453", "str_23453", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23454: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23454", "str_23454", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23455: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23455", "str_23455", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23456: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23456", "str_23456", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23457: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23457", "str_23457", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23458: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23458", "str_23458", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23459: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23459", "str_23459", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2346: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2346", "str_2346", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23460: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23460", "str_23460", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23461: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23461", "str_23461", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23462: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23462", "str_23462", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23463: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23463", "str_23463", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23464: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23464", "str_23464", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23465: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23465", "str_23465", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23466: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23466", "str_23466", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23467: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23467", "str_23467", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23468: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23468", "str_23468", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23469: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23469", "str_23469", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2347: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2347", "str_2347", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23470: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23470", "str_23470", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23471: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23471", "str_23471", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23472: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23472", "str_23472", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23473: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23473", "str_23473", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23474: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23474", "str_23474", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23475: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23475", "str_23475", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23476: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23476", "str_23476", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23477: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23477", "str_23477", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23478: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23478", "str_23478", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23479: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23479", "str_23479", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2348: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2348", "str_2348", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23480: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23480", "str_23480", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23481: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23481", "str_23481", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23482: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23482", "str_23482", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23483: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23483", "str_23483", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23484: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23484", "str_23484", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23485: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23485", "str_23485", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23486: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23486", "str_23486", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23487: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23487", "str_23487", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23488: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23488", "str_23488", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23489: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23489", "str_23489", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_2349: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_2349", "str_2349", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23490: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23490", "str_23490", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23491: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23491", "str_23491", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23492: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23492", "str_23492", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23493: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23493", "str_23493", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23494: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23494", "str_23494", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23495: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23495", "str_23495", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23496: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23496", "str_23496", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) public val str_23497: StringResource = org.jetbrains.compose.resources.StringResource( "string:str_23497", "str_23497", setOf( org.jetbrains.compose.resources.ResourceItem(setOf(), "values/strings.xml"), ) ) } @ExperimentalResourceApi internal val Res.string.str_23047: StringResource get() = String29.str_23047 @ExperimentalResourceApi internal val Res.string.str_23048: StringResource get() = String29.str_23048 @ExperimentalResourceApi internal val Res.string.str_23049: StringResource get() = String29.str_23049 @ExperimentalResourceApi internal val Res.string.str_2305: StringResource get() = String29.str_2305 @ExperimentalResourceApi internal val Res.string.str_23050: StringResource get() = String29.str_23050 @ExperimentalResourceApi internal val Res.string.str_23051: StringResource get() = String29.str_23051 @ExperimentalResourceApi internal val Res.string.str_23052: StringResource get() = String29.str_23052 @ExperimentalResourceApi internal val Res.string.str_23053: StringResource get() = String29.str_23053 @ExperimentalResourceApi internal val Res.string.str_23054: StringResource get() = String29.str_23054 @ExperimentalResourceApi internal val Res.string.str_23055: StringResource get() = String29.str_23055 @ExperimentalResourceApi internal val Res.string.str_23056: StringResource get() = String29.str_23056 @ExperimentalResourceApi internal val Res.string.str_23057: StringResource get() = String29.str_23057 @ExperimentalResourceApi internal val Res.string.str_23058: StringResource get() = String29.str_23058 @ExperimentalResourceApi internal val Res.string.str_23059: StringResource get() = String29.str_23059 @ExperimentalResourceApi internal val Res.string.str_2306: StringResource get() = String29.str_2306 @ExperimentalResourceApi internal val Res.string.str_23060: StringResource get() = String29.str_23060 @ExperimentalResourceApi internal val Res.string.str_23061: StringResource get() = String29.str_23061 @ExperimentalResourceApi internal val Res.string.str_23062: StringResource get() = String29.str_23062 @ExperimentalResourceApi internal val Res.string.str_23063: StringResource get() = String29.str_23063 @ExperimentalResourceApi internal val Res.string.str_23064: StringResource get() = String29.str_23064 @ExperimentalResourceApi internal val Res.string.str_23065: StringResource get() = String29.str_23065 @ExperimentalResourceApi internal val Res.string.str_23066: StringResource get() = String29.str_23066 @ExperimentalResourceApi internal val Res.string.str_23067: StringResource get() = String29.str_23067 @ExperimentalResourceApi internal val Res.string.str_23068: StringResource get() = String29.str_23068 @ExperimentalResourceApi internal val Res.string.str_23069: StringResource get() = String29.str_23069 @ExperimentalResourceApi internal val Res.string.str_2307: StringResource get() = String29.str_2307 @ExperimentalResourceApi internal val Res.string.str_23070: StringResource get() = String29.str_23070 @ExperimentalResourceApi internal val Res.string.str_23071: StringResource get() = String29.str_23071 @ExperimentalResourceApi internal val Res.string.str_23072: StringResource get() = String29.str_23072 @ExperimentalResourceApi internal val Res.string.str_23073: StringResource get() = String29.str_23073 @ExperimentalResourceApi internal val Res.string.str_23074: StringResource get() = String29.str_23074 @ExperimentalResourceApi internal val Res.string.str_23075: StringResource get() = String29.str_23075 @ExperimentalResourceApi internal val Res.string.str_23076: StringResource get() = String29.str_23076 @ExperimentalResourceApi internal val Res.string.str_23077: StringResource get() = String29.str_23077 @ExperimentalResourceApi internal val Res.string.str_23078: StringResource get() = String29.str_23078 @ExperimentalResourceApi internal val Res.string.str_23079: StringResource get() = String29.str_23079 @ExperimentalResourceApi internal val Res.string.str_2308: StringResource get() = String29.str_2308 @ExperimentalResourceApi internal val Res.string.str_23080: StringResource get() = String29.str_23080 @ExperimentalResourceApi internal val Res.string.str_23081: StringResource get() = String29.str_23081 @ExperimentalResourceApi internal val Res.string.str_23082: StringResource get() = String29.str_23082 @ExperimentalResourceApi internal val Res.string.str_23083: StringResource get() = String29.str_23083 @ExperimentalResourceApi internal val Res.string.str_23084: StringResource get() = String29.str_23084 @ExperimentalResourceApi internal val Res.string.str_23085: StringResource get() = String29.str_23085 @ExperimentalResourceApi internal val Res.string.str_23086: StringResource get() = String29.str_23086 @ExperimentalResourceApi internal val Res.string.str_23087: StringResource get() = String29.str_23087 @ExperimentalResourceApi internal val Res.string.str_23088: StringResource get() = String29.str_23088 @ExperimentalResourceApi internal val Res.string.str_23089: StringResource get() = String29.str_23089 @ExperimentalResourceApi internal val Res.string.str_2309: StringResource get() = String29.str_2309 @ExperimentalResourceApi internal val Res.string.str_23090: StringResource get() = String29.str_23090 @ExperimentalResourceApi internal val Res.string.str_23091: StringResource get() = String29.str_23091 @ExperimentalResourceApi internal val Res.string.str_23092: StringResource get() = String29.str_23092 @ExperimentalResourceApi internal val Res.string.str_23093: StringResource get() = String29.str_23093 @ExperimentalResourceApi internal val Res.string.str_23094: StringResource get() = String29.str_23094 @ExperimentalResourceApi internal val Res.string.str_23095: StringResource get() = String29.str_23095 @ExperimentalResourceApi internal val Res.string.str_23096: StringResource get() = String29.str_23096 @ExperimentalResourceApi internal val Res.string.str_23097: StringResource get() = String29.str_23097 @ExperimentalResourceApi internal val Res.string.str_23098: StringResource get() = String29.str_23098 @ExperimentalResourceApi internal val Res.string.str_23099: StringResource get() = String29.str_23099 @ExperimentalResourceApi internal val Res.string.str_231: StringResource get() = String29.str_231 @ExperimentalResourceApi internal val Res.string.str_2310: StringResource get() = String29.str_2310 @ExperimentalResourceApi internal val Res.string.str_23100: StringResource get() = String29.str_23100 @ExperimentalResourceApi internal val Res.string.str_23101: StringResource get() = String29.str_23101 @ExperimentalResourceApi internal val Res.string.str_23102: StringResource get() = String29.str_23102 @ExperimentalResourceApi internal val Res.string.str_23103: StringResource get() = String29.str_23103 @ExperimentalResourceApi internal val Res.string.str_23104: StringResource get() = String29.str_23104 @ExperimentalResourceApi internal val Res.string.str_23105: StringResource get() = String29.str_23105 @ExperimentalResourceApi internal val Res.string.str_23106: StringResource get() = String29.str_23106 @ExperimentalResourceApi internal val Res.string.str_23107: StringResource get() = String29.str_23107 @ExperimentalResourceApi internal val Res.string.str_23108: StringResource get() = String29.str_23108 @ExperimentalResourceApi internal val Res.string.str_23109: StringResource get() = String29.str_23109 @ExperimentalResourceApi internal val Res.string.str_2311: StringResource get() = String29.str_2311 @ExperimentalResourceApi internal val Res.string.str_23110: StringResource get() = String29.str_23110 @ExperimentalResourceApi internal val Res.string.str_23111: StringResource get() = String29.str_23111 @ExperimentalResourceApi internal val Res.string.str_23112: StringResource get() = String29.str_23112 @ExperimentalResourceApi internal val Res.string.str_23113: StringResource get() = String29.str_23113 @ExperimentalResourceApi internal val Res.string.str_23114: StringResource get() = String29.str_23114 @ExperimentalResourceApi internal val Res.string.str_23115: StringResource get() = String29.str_23115 @ExperimentalResourceApi internal val Res.string.str_23116: StringResource get() = String29.str_23116 @ExperimentalResourceApi internal val Res.string.str_23117: StringResource get() = String29.str_23117 @ExperimentalResourceApi internal val Res.string.str_23118: StringResource get() = String29.str_23118 @ExperimentalResourceApi internal val Res.string.str_23119: StringResource get() = String29.str_23119 @ExperimentalResourceApi internal val Res.string.str_2312: StringResource get() = String29.str_2312 @ExperimentalResourceApi internal val Res.string.str_23120: StringResource get() = String29.str_23120 @ExperimentalResourceApi internal val Res.string.str_23121: StringResource get() = String29.str_23121 @ExperimentalResourceApi internal val Res.string.str_23122: StringResource get() = String29.str_23122 @ExperimentalResourceApi internal val Res.string.str_23123: StringResource get() = String29.str_23123 @ExperimentalResourceApi internal val Res.string.str_23124: StringResource get() = String29.str_23124 @ExperimentalResourceApi internal val Res.string.str_23125: StringResource get() = String29.str_23125 @ExperimentalResourceApi internal val Res.string.str_23126: StringResource get() = String29.str_23126 @ExperimentalResourceApi internal val Res.string.str_23127: StringResource get() = String29.str_23127 @ExperimentalResourceApi internal val Res.string.str_23128: StringResource get() = String29.str_23128 @ExperimentalResourceApi internal val Res.string.str_23129: StringResource get() = String29.str_23129 @ExperimentalResourceApi internal val Res.string.str_2313: StringResource get() = String29.str_2313 @ExperimentalResourceApi internal val Res.string.str_23130: StringResource get() = String29.str_23130 @ExperimentalResourceApi internal val Res.string.str_23131: StringResource get() = String29.str_23131 @ExperimentalResourceApi internal val Res.string.str_23132: StringResource get() = String29.str_23132 @ExperimentalResourceApi internal val Res.string.str_23133: StringResource get() = String29.str_23133 @ExperimentalResourceApi internal val Res.string.str_23134: StringResource get() = String29.str_23134 @ExperimentalResourceApi internal val Res.string.str_23135: StringResource get() = String29.str_23135 @ExperimentalResourceApi internal val Res.string.str_23136: StringResource get() = String29.str_23136 @ExperimentalResourceApi internal val Res.string.str_23137: StringResource get() = String29.str_23137 @ExperimentalResourceApi internal val Res.string.str_23138: StringResource get() = String29.str_23138 @ExperimentalResourceApi internal val Res.string.str_23139: StringResource get() = String29.str_23139 @ExperimentalResourceApi internal val Res.string.str_2314: StringResource get() = String29.str_2314 @ExperimentalResourceApi internal val Res.string.str_23140: StringResource get() = String29.str_23140 @ExperimentalResourceApi internal val Res.string.str_23141: StringResource get() = String29.str_23141 @ExperimentalResourceApi internal val Res.string.str_23142: StringResource get() = String29.str_23142 @ExperimentalResourceApi internal val Res.string.str_23143: StringResource get() = String29.str_23143 @ExperimentalResourceApi internal val Res.string.str_23144: StringResource get() = String29.str_23144 @ExperimentalResourceApi internal val Res.string.str_23145: StringResource get() = String29.str_23145 @ExperimentalResourceApi internal val Res.string.str_23146: StringResource get() = String29.str_23146 @ExperimentalResourceApi internal val Res.string.str_23147: StringResource get() = String29.str_23147 @ExperimentalResourceApi internal val Res.string.str_23148: StringResource get() = String29.str_23148 @ExperimentalResourceApi internal val Res.string.str_23149: StringResource get() = String29.str_23149 @ExperimentalResourceApi internal val Res.string.str_2315: StringResource get() = String29.str_2315 @ExperimentalResourceApi internal val Res.string.str_23150: StringResource get() = String29.str_23150 @ExperimentalResourceApi internal val Res.string.str_23151: StringResource get() = String29.str_23151 @ExperimentalResourceApi internal val Res.string.str_23152: StringResource get() = String29.str_23152 @ExperimentalResourceApi internal val Res.string.str_23153: StringResource get() = String29.str_23153 @ExperimentalResourceApi internal val Res.string.str_23154: StringResource get() = String29.str_23154 @ExperimentalResourceApi internal val Res.string.str_23155: StringResource get() = String29.str_23155 @ExperimentalResourceApi internal val Res.string.str_23156: StringResource get() = String29.str_23156 @ExperimentalResourceApi internal val Res.string.str_23157: StringResource get() = String29.str_23157 @ExperimentalResourceApi internal val Res.string.str_23158: StringResource get() = String29.str_23158 @ExperimentalResourceApi internal val Res.string.str_23159: StringResource get() = String29.str_23159 @ExperimentalResourceApi internal val Res.string.str_2316: StringResource get() = String29.str_2316 @ExperimentalResourceApi internal val Res.string.str_23160: StringResource get() = String29.str_23160 @ExperimentalResourceApi internal val Res.string.str_23161: StringResource get() = String29.str_23161 @ExperimentalResourceApi internal val Res.string.str_23162: StringResource get() = String29.str_23162 @ExperimentalResourceApi internal val Res.string.str_23163: StringResource get() = String29.str_23163 @ExperimentalResourceApi internal val Res.string.str_23164: StringResource get() = String29.str_23164 @ExperimentalResourceApi internal val Res.string.str_23165: StringResource get() = String29.str_23165 @ExperimentalResourceApi internal val Res.string.str_23166: StringResource get() = String29.str_23166 @ExperimentalResourceApi internal val Res.string.str_23167: StringResource get() = String29.str_23167 @ExperimentalResourceApi internal val Res.string.str_23168: StringResource get() = String29.str_23168 @ExperimentalResourceApi internal val Res.string.str_23169: StringResource get() = String29.str_23169 @ExperimentalResourceApi internal val Res.string.str_2317: StringResource get() = String29.str_2317 @ExperimentalResourceApi internal val Res.string.str_23170: StringResource get() = String29.str_23170 @ExperimentalResourceApi internal val Res.string.str_23171: StringResource get() = String29.str_23171 @ExperimentalResourceApi internal val Res.string.str_23172: StringResource get() = String29.str_23172 @ExperimentalResourceApi internal val Res.string.str_23173: StringResource get() = String29.str_23173 @ExperimentalResourceApi internal val Res.string.str_23174: StringResource get() = String29.str_23174 @ExperimentalResourceApi internal val Res.string.str_23175: StringResource get() = String29.str_23175 @ExperimentalResourceApi internal val Res.string.str_23176: StringResource get() = String29.str_23176 @ExperimentalResourceApi internal val Res.string.str_23177: StringResource get() = String29.str_23177 @ExperimentalResourceApi internal val Res.string.str_23178: StringResource get() = String29.str_23178 @ExperimentalResourceApi internal val Res.string.str_23179: StringResource get() = String29.str_23179 @ExperimentalResourceApi internal val Res.string.str_2318: StringResource get() = String29.str_2318 @ExperimentalResourceApi internal val Res.string.str_23180: StringResource get() = String29.str_23180 @ExperimentalResourceApi internal val Res.string.str_23181: StringResource get() = String29.str_23181 @ExperimentalResourceApi internal val Res.string.str_23182: StringResource get() = String29.str_23182 @ExperimentalResourceApi internal val Res.string.str_23183: StringResource get() = String29.str_23183 @ExperimentalResourceApi internal val Res.string.str_23184: StringResource get() = String29.str_23184 @ExperimentalResourceApi internal val Res.string.str_23185: StringResource get() = String29.str_23185 @ExperimentalResourceApi internal val Res.string.str_23186: StringResource get() = String29.str_23186 @ExperimentalResourceApi internal val Res.string.str_23187: StringResource get() = String29.str_23187 @ExperimentalResourceApi internal val Res.string.str_23188: StringResource get() = String29.str_23188 @ExperimentalResourceApi internal val Res.string.str_23189: StringResource get() = String29.str_23189 @ExperimentalResourceApi internal val Res.string.str_2319: StringResource get() = String29.str_2319 @ExperimentalResourceApi internal val Res.string.str_23190: StringResource get() = String29.str_23190 @ExperimentalResourceApi internal val Res.string.str_23191: StringResource get() = String29.str_23191 @ExperimentalResourceApi internal val Res.string.str_23192: StringResource get() = String29.str_23192 @ExperimentalResourceApi internal val Res.string.str_23193: StringResource get() = String29.str_23193 @ExperimentalResourceApi internal val Res.string.str_23194: StringResource get() = String29.str_23194 @ExperimentalResourceApi internal val Res.string.str_23195: StringResource get() = String29.str_23195 @ExperimentalResourceApi internal val Res.string.str_23196: StringResource get() = String29.str_23196 @ExperimentalResourceApi internal val Res.string.str_23197: StringResource get() = String29.str_23197 @ExperimentalResourceApi internal val Res.string.str_23198: StringResource get() = String29.str_23198 @ExperimentalResourceApi internal val Res.string.str_23199: StringResource get() = String29.str_23199 @ExperimentalResourceApi internal val Res.string.str_232: StringResource get() = String29.str_232 @ExperimentalResourceApi internal val Res.string.str_2320: StringResource get() = String29.str_2320 @ExperimentalResourceApi internal val Res.string.str_23200: StringResource get() = String29.str_23200 @ExperimentalResourceApi internal val Res.string.str_23201: StringResource get() = String29.str_23201 @ExperimentalResourceApi internal val Res.string.str_23202: StringResource get() = String29.str_23202 @ExperimentalResourceApi internal val Res.string.str_23203: StringResource get() = String29.str_23203 @ExperimentalResourceApi internal val Res.string.str_23204: StringResource get() = String29.str_23204 @ExperimentalResourceApi internal val Res.string.str_23205: StringResource get() = String29.str_23205 @ExperimentalResourceApi internal val Res.string.str_23206: StringResource get() = String29.str_23206 @ExperimentalResourceApi internal val Res.string.str_23207: StringResource get() = String29.str_23207 @ExperimentalResourceApi internal val Res.string.str_23208: StringResource get() = String29.str_23208 @ExperimentalResourceApi internal val Res.string.str_23209: StringResource get() = String29.str_23209 @ExperimentalResourceApi internal val Res.string.str_2321: StringResource get() = String29.str_2321 @ExperimentalResourceApi internal val Res.string.str_23210: StringResource get() = String29.str_23210 @ExperimentalResourceApi internal val Res.string.str_23211: StringResource get() = String29.str_23211 @ExperimentalResourceApi internal val Res.string.str_23212: StringResource get() = String29.str_23212 @ExperimentalResourceApi internal val Res.string.str_23213: StringResource get() = String29.str_23213 @ExperimentalResourceApi internal val Res.string.str_23214: StringResource get() = String29.str_23214 @ExperimentalResourceApi internal val Res.string.str_23215: StringResource get() = String29.str_23215 @ExperimentalResourceApi internal val Res.string.str_23216: StringResource get() = String29.str_23216 @ExperimentalResourceApi internal val Res.string.str_23217: StringResource get() = String29.str_23217 @ExperimentalResourceApi internal val Res.string.str_23218: StringResource get() = String29.str_23218 @ExperimentalResourceApi internal val Res.string.str_23219: StringResource get() = String29.str_23219 @ExperimentalResourceApi internal val Res.string.str_2322: StringResource get() = String29.str_2322 @ExperimentalResourceApi internal val Res.string.str_23220: StringResource get() = String29.str_23220 @ExperimentalResourceApi internal val Res.string.str_23221: StringResource get() = String29.str_23221 @ExperimentalResourceApi internal val Res.string.str_23222: StringResource get() = String29.str_23222 @ExperimentalResourceApi internal val Res.string.str_23223: StringResource get() = String29.str_23223 @ExperimentalResourceApi internal val Res.string.str_23224: StringResource get() = String29.str_23224 @ExperimentalResourceApi internal val Res.string.str_23225: StringResource get() = String29.str_23225 @ExperimentalResourceApi internal val Res.string.str_23226: StringResource get() = String29.str_23226 @ExperimentalResourceApi internal val Res.string.str_23227: StringResource get() = String29.str_23227 @ExperimentalResourceApi internal val Res.string.str_23228: StringResource get() = String29.str_23228 @ExperimentalResourceApi internal val Res.string.str_23229: StringResource get() = String29.str_23229 @ExperimentalResourceApi internal val Res.string.str_2323: StringResource get() = String29.str_2323 @ExperimentalResourceApi internal val Res.string.str_23230: StringResource get() = String29.str_23230 @ExperimentalResourceApi internal val Res.string.str_23231: StringResource get() = String29.str_23231 @ExperimentalResourceApi internal val Res.string.str_23232: StringResource get() = String29.str_23232 @ExperimentalResourceApi internal val Res.string.str_23233: StringResource get() = String29.str_23233 @ExperimentalResourceApi internal val Res.string.str_23234: StringResource get() = String29.str_23234 @ExperimentalResourceApi internal val Res.string.str_23235: StringResource get() = String29.str_23235 @ExperimentalResourceApi internal val Res.string.str_23236: StringResource get() = String29.str_23236 @ExperimentalResourceApi internal val Res.string.str_23237: StringResource get() = String29.str_23237 @ExperimentalResourceApi internal val Res.string.str_23238: StringResource get() = String29.str_23238 @ExperimentalResourceApi internal val Res.string.str_23239: StringResource get() = String29.str_23239 @ExperimentalResourceApi internal val Res.string.str_2324: StringResource get() = String29.str_2324 @ExperimentalResourceApi internal val Res.string.str_23240: StringResource get() = String29.str_23240 @ExperimentalResourceApi internal val Res.string.str_23241: StringResource get() = String29.str_23241 @ExperimentalResourceApi internal val Res.string.str_23242: StringResource get() = String29.str_23242 @ExperimentalResourceApi internal val Res.string.str_23243: StringResource get() = String29.str_23243 @ExperimentalResourceApi internal val Res.string.str_23244: StringResource get() = String29.str_23244 @ExperimentalResourceApi internal val Res.string.str_23245: StringResource get() = String29.str_23245 @ExperimentalResourceApi internal val Res.string.str_23246: StringResource get() = String29.str_23246 @ExperimentalResourceApi internal val Res.string.str_23247: StringResource get() = String29.str_23247 @ExperimentalResourceApi internal val Res.string.str_23248: StringResource get() = String29.str_23248 @ExperimentalResourceApi internal val Res.string.str_23249: StringResource get() = String29.str_23249 @ExperimentalResourceApi internal val Res.string.str_2325: StringResource get() = String29.str_2325 @ExperimentalResourceApi internal val Res.string.str_23250: StringResource get() = String29.str_23250 @ExperimentalResourceApi internal val Res.string.str_23251: StringResource get() = String29.str_23251 @ExperimentalResourceApi internal val Res.string.str_23252: StringResource get() = String29.str_23252 @ExperimentalResourceApi internal val Res.string.str_23253: StringResource get() = String29.str_23253 @ExperimentalResourceApi internal val Res.string.str_23254: StringResource get() = String29.str_23254 @ExperimentalResourceApi internal val Res.string.str_23255: StringResource get() = String29.str_23255 @ExperimentalResourceApi internal val Res.string.str_23256: StringResource get() = String29.str_23256 @ExperimentalResourceApi internal val Res.string.str_23257: StringResource get() = String29.str_23257 @ExperimentalResourceApi internal val Res.string.str_23258: StringResource get() = String29.str_23258 @ExperimentalResourceApi internal val Res.string.str_23259: StringResource get() = String29.str_23259 @ExperimentalResourceApi internal val Res.string.str_2326: StringResource get() = String29.str_2326 @ExperimentalResourceApi internal val Res.string.str_23260: StringResource get() = String29.str_23260 @ExperimentalResourceApi internal val Res.string.str_23261: StringResource get() = String29.str_23261 @ExperimentalResourceApi internal val Res.string.str_23262: StringResource get() = String29.str_23262 @ExperimentalResourceApi internal val Res.string.str_23263: StringResource get() = String29.str_23263 @ExperimentalResourceApi internal val Res.string.str_23264: StringResource get() = String29.str_23264 @ExperimentalResourceApi internal val Res.string.str_23265: StringResource get() = String29.str_23265 @ExperimentalResourceApi internal val Res.string.str_23266: StringResource get() = String29.str_23266 @ExperimentalResourceApi internal val Res.string.str_23267: StringResource get() = String29.str_23267 @ExperimentalResourceApi internal val Res.string.str_23268: StringResource get() = String29.str_23268 @ExperimentalResourceApi internal val Res.string.str_23269: StringResource get() = String29.str_23269 @ExperimentalResourceApi internal val Res.string.str_2327: StringResource get() = String29.str_2327 @ExperimentalResourceApi internal val Res.string.str_23270: StringResource get() = String29.str_23270 @ExperimentalResourceApi internal val Res.string.str_23271: StringResource get() = String29.str_23271 @ExperimentalResourceApi internal val Res.string.str_23272: StringResource get() = String29.str_23272 @ExperimentalResourceApi internal val Res.string.str_23273: StringResource get() = String29.str_23273 @ExperimentalResourceApi internal val Res.string.str_23274: StringResource get() = String29.str_23274 @ExperimentalResourceApi internal val Res.string.str_23275: StringResource get() = String29.str_23275 @ExperimentalResourceApi internal val Res.string.str_23276: StringResource get() = String29.str_23276 @ExperimentalResourceApi internal val Res.string.str_23277: StringResource get() = String29.str_23277 @ExperimentalResourceApi internal val Res.string.str_23278: StringResource get() = String29.str_23278 @ExperimentalResourceApi internal val Res.string.str_23279: StringResource get() = String29.str_23279 @ExperimentalResourceApi internal val Res.string.str_2328: StringResource get() = String29.str_2328 @ExperimentalResourceApi internal val Res.string.str_23280: StringResource get() = String29.str_23280 @ExperimentalResourceApi internal val Res.string.str_23281: StringResource get() = String29.str_23281 @ExperimentalResourceApi internal val Res.string.str_23282: StringResource get() = String29.str_23282 @ExperimentalResourceApi internal val Res.string.str_23283: StringResource get() = String29.str_23283 @ExperimentalResourceApi internal val Res.string.str_23284: StringResource get() = String29.str_23284 @ExperimentalResourceApi internal val Res.string.str_23285: StringResource get() = String29.str_23285 @ExperimentalResourceApi internal val Res.string.str_23286: StringResource get() = String29.str_23286 @ExperimentalResourceApi internal val Res.string.str_23287: StringResource get() = String29.str_23287 @ExperimentalResourceApi internal val Res.string.str_23288: StringResource get() = String29.str_23288 @ExperimentalResourceApi internal val Res.string.str_23289: StringResource get() = String29.str_23289 @ExperimentalResourceApi internal val Res.string.str_2329: StringResource get() = String29.str_2329 @ExperimentalResourceApi internal val Res.string.str_23290: StringResource get() = String29.str_23290 @ExperimentalResourceApi internal val Res.string.str_23291: StringResource get() = String29.str_23291 @ExperimentalResourceApi internal val Res.string.str_23292: StringResource get() = String29.str_23292 @ExperimentalResourceApi internal val Res.string.str_23293: StringResource get() = String29.str_23293 @ExperimentalResourceApi internal val Res.string.str_23294: StringResource get() = String29.str_23294 @ExperimentalResourceApi internal val Res.string.str_23295: StringResource get() = String29.str_23295 @ExperimentalResourceApi internal val Res.string.str_23296: StringResource get() = String29.str_23296 @ExperimentalResourceApi internal val Res.string.str_23297: StringResource get() = String29.str_23297 @ExperimentalResourceApi internal val Res.string.str_23298: StringResource get() = String29.str_23298 @ExperimentalResourceApi internal val Res.string.str_23299: StringResource get() = String29.str_23299 @ExperimentalResourceApi internal val Res.string.str_233: StringResource get() = String29.str_233 @ExperimentalResourceApi internal val Res.string.str_2330: StringResource get() = String29.str_2330 @ExperimentalResourceApi internal val Res.string.str_23300: StringResource get() = String29.str_23300 @ExperimentalResourceApi internal val Res.string.str_23301: StringResource get() = String29.str_23301 @ExperimentalResourceApi internal val Res.string.str_23302: StringResource get() = String29.str_23302 @ExperimentalResourceApi internal val Res.string.str_23303: StringResource get() = String29.str_23303 @ExperimentalResourceApi internal val Res.string.str_23304: StringResource get() = String29.str_23304 @ExperimentalResourceApi internal val Res.string.str_23305: StringResource get() = String29.str_23305 @ExperimentalResourceApi internal val Res.string.str_23306: StringResource get() = String29.str_23306 @ExperimentalResourceApi internal val Res.string.str_23307: StringResource get() = String29.str_23307 @ExperimentalResourceApi internal val Res.string.str_23308: StringResource get() = String29.str_23308 @ExperimentalResourceApi internal val Res.string.str_23309: StringResource get() = String29.str_23309 @ExperimentalResourceApi internal val Res.string.str_2331: StringResource get() = String29.str_2331 @ExperimentalResourceApi internal val Res.string.str_23310: StringResource get() = String29.str_23310 @ExperimentalResourceApi internal val Res.string.str_23311: StringResource get() = String29.str_23311 @ExperimentalResourceApi internal val Res.string.str_23312: StringResource get() = String29.str_23312 @ExperimentalResourceApi internal val Res.string.str_23313: StringResource get() = String29.str_23313 @ExperimentalResourceApi internal val Res.string.str_23314: StringResource get() = String29.str_23314 @ExperimentalResourceApi internal val Res.string.str_23315: StringResource get() = String29.str_23315 @ExperimentalResourceApi internal val Res.string.str_23316: StringResource get() = String29.str_23316 @ExperimentalResourceApi internal val Res.string.str_23317: StringResource get() = String29.str_23317 @ExperimentalResourceApi internal val Res.string.str_23318: StringResource get() = String29.str_23318 @ExperimentalResourceApi internal val Res.string.str_23319: StringResource get() = String29.str_23319 @ExperimentalResourceApi internal val Res.string.str_2332: StringResource get() = String29.str_2332 @ExperimentalResourceApi internal val Res.string.str_23320: StringResource get() = String29.str_23320 @ExperimentalResourceApi internal val Res.string.str_23321: StringResource get() = String29.str_23321 @ExperimentalResourceApi internal val Res.string.str_23322: StringResource get() = String29.str_23322 @ExperimentalResourceApi internal val Res.string.str_23323: StringResource get() = String29.str_23323 @ExperimentalResourceApi internal val Res.string.str_23324: StringResource get() = String29.str_23324 @ExperimentalResourceApi internal val Res.string.str_23325: StringResource get() = String29.str_23325 @ExperimentalResourceApi internal val Res.string.str_23326: StringResource get() = String29.str_23326 @ExperimentalResourceApi internal val Res.string.str_23327: StringResource get() = String29.str_23327 @ExperimentalResourceApi internal val Res.string.str_23328: StringResource get() = String29.str_23328 @ExperimentalResourceApi internal val Res.string.str_23329: StringResource get() = String29.str_23329 @ExperimentalResourceApi internal val Res.string.str_2333: StringResource get() = String29.str_2333 @ExperimentalResourceApi internal val Res.string.str_23330: StringResource get() = String29.str_23330 @ExperimentalResourceApi internal val Res.string.str_23331: StringResource get() = String29.str_23331 @ExperimentalResourceApi internal val Res.string.str_23332: StringResource get() = String29.str_23332 @ExperimentalResourceApi internal val Res.string.str_23333: StringResource get() = String29.str_23333 @ExperimentalResourceApi internal val Res.string.str_23334: StringResource get() = String29.str_23334 @ExperimentalResourceApi internal val Res.string.str_23335: StringResource get() = String29.str_23335 @ExperimentalResourceApi internal val Res.string.str_23336: StringResource get() = String29.str_23336 @ExperimentalResourceApi internal val Res.string.str_23337: StringResource get() = String29.str_23337 @ExperimentalResourceApi internal val Res.string.str_23338: StringResource get() = String29.str_23338 @ExperimentalResourceApi internal val Res.string.str_23339: StringResource get() = String29.str_23339 @ExperimentalResourceApi internal val Res.string.str_2334: StringResource get() = String29.str_2334 @ExperimentalResourceApi internal val Res.string.str_23340: StringResource get() = String29.str_23340 @ExperimentalResourceApi internal val Res.string.str_23341: StringResource get() = String29.str_23341 @ExperimentalResourceApi internal val Res.string.str_23342: StringResource get() = String29.str_23342 @ExperimentalResourceApi internal val Res.string.str_23343: StringResource get() = String29.str_23343 @ExperimentalResourceApi internal val Res.string.str_23344: StringResource get() = String29.str_23344 @ExperimentalResourceApi internal val Res.string.str_23345: StringResource get() = String29.str_23345 @ExperimentalResourceApi internal val Res.string.str_23346: StringResource get() = String29.str_23346 @ExperimentalResourceApi internal val Res.string.str_23347: StringResource get() = String29.str_23347 @ExperimentalResourceApi internal val Res.string.str_23348: StringResource get() = String29.str_23348 @ExperimentalResourceApi internal val Res.string.str_23349: StringResource get() = String29.str_23349 @ExperimentalResourceApi internal val Res.string.str_2335: StringResource get() = String29.str_2335 @ExperimentalResourceApi internal val Res.string.str_23350: StringResource get() = String29.str_23350 @ExperimentalResourceApi internal val Res.string.str_23351: StringResource get() = String29.str_23351 @ExperimentalResourceApi internal val Res.string.str_23352: StringResource get() = String29.str_23352 @ExperimentalResourceApi internal val Res.string.str_23353: StringResource get() = String29.str_23353 @ExperimentalResourceApi internal val Res.string.str_23354: StringResource get() = String29.str_23354 @ExperimentalResourceApi internal val Res.string.str_23355: StringResource get() = String29.str_23355 @ExperimentalResourceApi internal val Res.string.str_23356: StringResource get() = String29.str_23356 @ExperimentalResourceApi internal val Res.string.str_23357: StringResource get() = String29.str_23357 @ExperimentalResourceApi internal val Res.string.str_23358: StringResource get() = String29.str_23358 @ExperimentalResourceApi internal val Res.string.str_23359: StringResource get() = String29.str_23359 @ExperimentalResourceApi internal val Res.string.str_2336: StringResource get() = String29.str_2336 @ExperimentalResourceApi internal val Res.string.str_23360: StringResource get() = String29.str_23360 @ExperimentalResourceApi internal val Res.string.str_23361: StringResource get() = String29.str_23361 @ExperimentalResourceApi internal val Res.string.str_23362: StringResource get() = String29.str_23362 @ExperimentalResourceApi internal val Res.string.str_23363: StringResource get() = String29.str_23363 @ExperimentalResourceApi internal val Res.string.str_23364: StringResource get() = String29.str_23364 @ExperimentalResourceApi internal val Res.string.str_23365: StringResource get() = String29.str_23365 @ExperimentalResourceApi internal val Res.string.str_23366: StringResource get() = String29.str_23366 @ExperimentalResourceApi internal val Res.string.str_23367: StringResource get() = String29.str_23367 @ExperimentalResourceApi internal val Res.string.str_23368: StringResource get() = String29.str_23368 @ExperimentalResourceApi internal val Res.string.str_23369: StringResource get() = String29.str_23369 @ExperimentalResourceApi internal val Res.string.str_2337: StringResource get() = String29.str_2337 @ExperimentalResourceApi internal val Res.string.str_23370: StringResource get() = String29.str_23370 @ExperimentalResourceApi internal val Res.string.str_23371: StringResource get() = String29.str_23371 @ExperimentalResourceApi internal val Res.string.str_23372: StringResource get() = String29.str_23372 @ExperimentalResourceApi internal val Res.string.str_23373: StringResource get() = String29.str_23373 @ExperimentalResourceApi internal val Res.string.str_23374: StringResource get() = String29.str_23374 @ExperimentalResourceApi internal val Res.string.str_23375: StringResource get() = String29.str_23375 @ExperimentalResourceApi internal val Res.string.str_23376: StringResource get() = String29.str_23376 @ExperimentalResourceApi internal val Res.string.str_23377: StringResource get() = String29.str_23377 @ExperimentalResourceApi internal val Res.string.str_23378: StringResource get() = String29.str_23378 @ExperimentalResourceApi internal val Res.string.str_23379: StringResource get() = String29.str_23379 @ExperimentalResourceApi internal val Res.string.str_2338: StringResource get() = String29.str_2338 @ExperimentalResourceApi internal val Res.string.str_23380: StringResource get() = String29.str_23380 @ExperimentalResourceApi internal val Res.string.str_23381: StringResource get() = String29.str_23381 @ExperimentalResourceApi internal val Res.string.str_23382: StringResource get() = String29.str_23382 @ExperimentalResourceApi internal val Res.string.str_23383: StringResource get() = String29.str_23383 @ExperimentalResourceApi internal val Res.string.str_23384: StringResource get() = String29.str_23384 @ExperimentalResourceApi internal val Res.string.str_23385: StringResource get() = String29.str_23385 @ExperimentalResourceApi internal val Res.string.str_23386: StringResource get() = String29.str_23386 @ExperimentalResourceApi internal val Res.string.str_23387: StringResource get() = String29.str_23387 @ExperimentalResourceApi internal val Res.string.str_23388: StringResource get() = String29.str_23388 @ExperimentalResourceApi internal val Res.string.str_23389: StringResource get() = String29.str_23389 @ExperimentalResourceApi internal val Res.string.str_2339: StringResource get() = String29.str_2339 @ExperimentalResourceApi internal val Res.string.str_23390: StringResource get() = String29.str_23390 @ExperimentalResourceApi internal val Res.string.str_23391: StringResource get() = String29.str_23391 @ExperimentalResourceApi internal val Res.string.str_23392: StringResource get() = String29.str_23392 @ExperimentalResourceApi internal val Res.string.str_23393: StringResource get() = String29.str_23393 @ExperimentalResourceApi internal val Res.string.str_23394: StringResource get() = String29.str_23394 @ExperimentalResourceApi internal val Res.string.str_23395: StringResource get() = String29.str_23395 @ExperimentalResourceApi internal val Res.string.str_23396: StringResource get() = String29.str_23396 @ExperimentalResourceApi internal val Res.string.str_23397: StringResource get() = String29.str_23397 @ExperimentalResourceApi internal val Res.string.str_23398: StringResource get() = String29.str_23398 @ExperimentalResourceApi internal val Res.string.str_23399: StringResource get() = String29.str_23399 @ExperimentalResourceApi internal val Res.string.str_234: StringResource get() = String29.str_234 @ExperimentalResourceApi internal val Res.string.str_2340: StringResource get() = String29.str_2340 @ExperimentalResourceApi internal val Res.string.str_23400: StringResource get() = String29.str_23400 @ExperimentalResourceApi internal val Res.string.str_23401: StringResource get() = String29.str_23401 @ExperimentalResourceApi internal val Res.string.str_23402: StringResource get() = String29.str_23402 @ExperimentalResourceApi internal val Res.string.str_23403: StringResource get() = String29.str_23403 @ExperimentalResourceApi internal val Res.string.str_23404: StringResource get() = String29.str_23404 @ExperimentalResourceApi internal val Res.string.str_23405: StringResource get() = String29.str_23405 @ExperimentalResourceApi internal val Res.string.str_23406: StringResource get() = String29.str_23406 @ExperimentalResourceApi internal val Res.string.str_23407: StringResource get() = String29.str_23407 @ExperimentalResourceApi internal val Res.string.str_23408: StringResource get() = String29.str_23408 @ExperimentalResourceApi internal val Res.string.str_23409: StringResource get() = String29.str_23409 @ExperimentalResourceApi internal val Res.string.str_2341: StringResource get() = String29.str_2341 @ExperimentalResourceApi internal val Res.string.str_23410: StringResource get() = String29.str_23410 @ExperimentalResourceApi internal val Res.string.str_23411: StringResource get() = String29.str_23411 @ExperimentalResourceApi internal val Res.string.str_23412: StringResource get() = String29.str_23412 @ExperimentalResourceApi internal val Res.string.str_23413: StringResource get() = String29.str_23413 @ExperimentalResourceApi internal val Res.string.str_23414: StringResource get() = String29.str_23414 @ExperimentalResourceApi internal val Res.string.str_23415: StringResource get() = String29.str_23415 @ExperimentalResourceApi internal val Res.string.str_23416: StringResource get() = String29.str_23416 @ExperimentalResourceApi internal val Res.string.str_23417: StringResource get() = String29.str_23417 @ExperimentalResourceApi internal val Res.string.str_23418: StringResource get() = String29.str_23418 @ExperimentalResourceApi internal val Res.string.str_23419: StringResource get() = String29.str_23419 @ExperimentalResourceApi internal val Res.string.str_2342: StringResource get() = String29.str_2342 @ExperimentalResourceApi internal val Res.string.str_23420: StringResource get() = String29.str_23420 @ExperimentalResourceApi internal val Res.string.str_23421: StringResource get() = String29.str_23421 @ExperimentalResourceApi internal val Res.string.str_23422: StringResource get() = String29.str_23422 @ExperimentalResourceApi internal val Res.string.str_23423: StringResource get() = String29.str_23423 @ExperimentalResourceApi internal val Res.string.str_23424: StringResource get() = String29.str_23424 @ExperimentalResourceApi internal val Res.string.str_23425: StringResource get() = String29.str_23425 @ExperimentalResourceApi internal val Res.string.str_23426: StringResource get() = String29.str_23426 @ExperimentalResourceApi internal val Res.string.str_23427: StringResource get() = String29.str_23427 @ExperimentalResourceApi internal val Res.string.str_23428: StringResource get() = String29.str_23428 @ExperimentalResourceApi internal val Res.string.str_23429: StringResource get() = String29.str_23429 @ExperimentalResourceApi internal val Res.string.str_2343: StringResource get() = String29.str_2343 @ExperimentalResourceApi internal val Res.string.str_23430: StringResource get() = String29.str_23430 @ExperimentalResourceApi internal val Res.string.str_23431: StringResource get() = String29.str_23431 @ExperimentalResourceApi internal val Res.string.str_23432: StringResource get() = String29.str_23432 @ExperimentalResourceApi internal val Res.string.str_23433: StringResource get() = String29.str_23433 @ExperimentalResourceApi internal val Res.string.str_23434: StringResource get() = String29.str_23434 @ExperimentalResourceApi internal val Res.string.str_23435: StringResource get() = String29.str_23435 @ExperimentalResourceApi internal val Res.string.str_23436: StringResource get() = String29.str_23436 @ExperimentalResourceApi internal val Res.string.str_23437: StringResource get() = String29.str_23437 @ExperimentalResourceApi internal val Res.string.str_23438: StringResource get() = String29.str_23438 @ExperimentalResourceApi internal val Res.string.str_23439: StringResource get() = String29.str_23439 @ExperimentalResourceApi internal val Res.string.str_2344: StringResource get() = String29.str_2344 @ExperimentalResourceApi internal val Res.string.str_23440: StringResource get() = String29.str_23440 @ExperimentalResourceApi internal val Res.string.str_23441: StringResource get() = String29.str_23441 @ExperimentalResourceApi internal val Res.string.str_23442: StringResource get() = String29.str_23442 @ExperimentalResourceApi internal val Res.string.str_23443: StringResource get() = String29.str_23443 @ExperimentalResourceApi internal val Res.string.str_23444: StringResource get() = String29.str_23444 @ExperimentalResourceApi internal val Res.string.str_23445: StringResource get() = String29.str_23445 @ExperimentalResourceApi internal val Res.string.str_23446: StringResource get() = String29.str_23446 @ExperimentalResourceApi internal val Res.string.str_23447: StringResource get() = String29.str_23447 @ExperimentalResourceApi internal val Res.string.str_23448: StringResource get() = String29.str_23448 @ExperimentalResourceApi internal val Res.string.str_23449: StringResource get() = String29.str_23449 @ExperimentalResourceApi internal val Res.string.str_2345: StringResource get() = String29.str_2345 @ExperimentalResourceApi internal val Res.string.str_23450: StringResource get() = String29.str_23450 @ExperimentalResourceApi internal val Res.string.str_23451: StringResource get() = String29.str_23451 @ExperimentalResourceApi internal val Res.string.str_23452: StringResource get() = String29.str_23452 @ExperimentalResourceApi internal val Res.string.str_23453: StringResource get() = String29.str_23453 @ExperimentalResourceApi internal val Res.string.str_23454: StringResource get() = String29.str_23454 @ExperimentalResourceApi internal val Res.string.str_23455: StringResource get() = String29.str_23455 @ExperimentalResourceApi internal val Res.string.str_23456: StringResource get() = String29.str_23456 @ExperimentalResourceApi internal val Res.string.str_23457: StringResource get() = String29.str_23457 @ExperimentalResourceApi internal val Res.string.str_23458: StringResource get() = String29.str_23458 @ExperimentalResourceApi internal val Res.string.str_23459: StringResource get() = String29.str_23459 @ExperimentalResourceApi internal val Res.string.str_2346: StringResource get() = String29.str_2346 @ExperimentalResourceApi internal val Res.string.str_23460: StringResource get() = String29.str_23460 @ExperimentalResourceApi internal val Res.string.str_23461: StringResource get() = String29.str_23461 @ExperimentalResourceApi internal val Res.string.str_23462: StringResource get() = String29.str_23462 @ExperimentalResourceApi internal val Res.string.str_23463: StringResource get() = String29.str_23463 @ExperimentalResourceApi internal val Res.string.str_23464: StringResource get() = String29.str_23464 @ExperimentalResourceApi internal val Res.string.str_23465: StringResource get() = String29.str_23465 @ExperimentalResourceApi internal val Res.string.str_23466: StringResource get() = String29.str_23466 @ExperimentalResourceApi internal val Res.string.str_23467: StringResource get() = String29.str_23467 @ExperimentalResourceApi internal val Res.string.str_23468: StringResource get() = String29.str_23468 @ExperimentalResourceApi internal val Res.string.str_23469: StringResource get() = String29.str_23469 @ExperimentalResourceApi internal val Res.string.str_2347: StringResource get() = String29.str_2347 @ExperimentalResourceApi internal val Res.string.str_23470: StringResource get() = String29.str_23470 @ExperimentalResourceApi internal val Res.string.str_23471: StringResource get() = String29.str_23471 @ExperimentalResourceApi internal val Res.string.str_23472: StringResource get() = String29.str_23472 @ExperimentalResourceApi internal val Res.string.str_23473: StringResource get() = String29.str_23473 @ExperimentalResourceApi internal val Res.string.str_23474: StringResource get() = String29.str_23474 @ExperimentalResourceApi internal val Res.string.str_23475: StringResource get() = String29.str_23475 @ExperimentalResourceApi internal val Res.string.str_23476: StringResource get() = String29.str_23476 @ExperimentalResourceApi internal val Res.string.str_23477: StringResource get() = String29.str_23477 @ExperimentalResourceApi internal val Res.string.str_23478: StringResource get() = String29.str_23478 @ExperimentalResourceApi internal val Res.string.str_23479: StringResource get() = String29.str_23479 @ExperimentalResourceApi internal val Res.string.str_2348: StringResource get() = String29.str_2348 @ExperimentalResourceApi internal val Res.string.str_23480: StringResource get() = String29.str_23480 @ExperimentalResourceApi internal val Res.string.str_23481: StringResource get() = String29.str_23481 @ExperimentalResourceApi internal val Res.string.str_23482: StringResource get() = String29.str_23482 @ExperimentalResourceApi internal val Res.string.str_23483: StringResource get() = String29.str_23483 @ExperimentalResourceApi internal val Res.string.str_23484: StringResource get() = String29.str_23484 @ExperimentalResourceApi internal val Res.string.str_23485: StringResource get() = String29.str_23485 @ExperimentalResourceApi internal val Res.string.str_23486: StringResource get() = String29.str_23486 @ExperimentalResourceApi internal val Res.string.str_23487: StringResource get() = String29.str_23487 @ExperimentalResourceApi internal val Res.string.str_23488: StringResource get() = String29.str_23488 @ExperimentalResourceApi internal val Res.string.str_23489: StringResource get() = String29.str_23489 @ExperimentalResourceApi internal val Res.string.str_2349: StringResource get() = String29.str_2349 @ExperimentalResourceApi internal val Res.string.str_23490: StringResource get() = String29.str_23490 @ExperimentalResourceApi internal val Res.string.str_23491: StringResource get() = String29.str_23491 @ExperimentalResourceApi internal val Res.string.str_23492: StringResource get() = String29.str_23492 @ExperimentalResourceApi internal val Res.string.str_23493: StringResource get() = String29.str_23493 @ExperimentalResourceApi internal val Res.string.str_23494: StringResource get() = String29.str_23494 @ExperimentalResourceApi internal val Res.string.str_23495: StringResource get() = String29.str_23495 @ExperimentalResourceApi internal val Res.string.str_23496: StringResource get() = String29.str_23496 @ExperimentalResourceApi internal val Res.string.str_23497: StringResource get() = String29.str_23497
1,251
Kotlin
1038
14,419
f833fa9945f0420fd9c0c0a5a03d45f196d231ec
181,042
compose-multiplatform
Apache License 2.0
vertigram-telegram-client/src/main/kotlin/ski/gagar/vertigram/telegram/methods/SendSticker.kt
gagarski
314,041,476
false
{"Kotlin": 748448}
package ski.gagar.vertigram.telegram.methods import com.fasterxml.jackson.annotation.JsonIgnore import ski.gagar.vertigram.telegram.annotations.TelegramMedia import ski.gagar.vertigram.telegram.throttling.HasChatId import ski.gagar.vertigram.telegram.throttling.Throttled import ski.gagar.vertigram.telegram.types.InputMedia import ski.gagar.vertigram.telegram.types.Message import ski.gagar.vertigram.telegram.types.ReplyParameters import ski.gagar.vertigram.telegram.types.util.ChatId import ski.gagar.vertigram.util.NoPosArgs /** * Telegram [sendMediaGroup](https://core.telegram.org/bots/api#sendmediagroup) method. * * For up-to-date documentation please consult the official Telegram docs. */ @Throttled data class SendMediaGroup( @JsonIgnore private val noPosArgs: NoPosArgs = NoPosArgs.INSTANCE, override val chatId: ChatId, val messageThreadId: Long? = null, @TelegramMedia val media: List<InputMedia>, val disableNotification: Boolean = false, val protectContent: Boolean = false, val replyParameters: ReplyParameters? = null ) : MultipartTelegramCallable<List<Message>>(), HasChatId
0
Kotlin
0
0
e90b7136ee97e841f4d28953f1b109862071e055
1,136
vertigram
Apache License 2.0
app/src/androidTest/java/com/example/myapplication/IScreenObject.kt
uzairAhmed332
529,895,314
false
{"Kotlin": 12586}
package com.example.myapplication import androidx.test.uiautomator.BySelector import androidx.test.uiautomator.Until import com.example.myapplication.TestHelper.device import java.sql.Time interface IScreenObject { val IDENTIFIER: BySelector fun waitForScreen(timeout: Long = 5_000L): Boolean { return device.wait(Until.hasObject(IDENTIFIER), timeout) } fun <S : IScreenObject> pressBack(expectedScreen: S): S { device.pressBack() return expectedScreen } }
0
Kotlin
0
0
d2cefef97b96f700f380dee2572d63358a270db3
504
Android-Screenshot-Tesitng-using-SHOT
Apache License 2.0
util/src/main/kotlin/voodoo/util/serializer/TimestampSerializer.kt
DaemonicLabs
119,208,408
false
{"Kotlin": 561752, "Java": 13063, "Shell": 2818}
package voodoo.util.serializer import kotlinx.serialization.encoding.Decoder import kotlinx.serialization.encoding.Encoder import kotlinx.serialization.KSerializer import kotlinx.serialization.Serializer import kotlinx.serialization.json.JsonDecoder import kotlinx.serialization.json.JsonPrimitive import kotlinx.serialization.json.contentOrNull import kotlinx.serialization.json.longOrNull import java.time.Instant import java.time.LocalDateTime import java.time.ZoneId import java.time.format.DateTimeFormatter @Serializer(forClass = LocalDateTime::class) object TimestampSerializer : KSerializer<LocalDateTime> { override fun serialize(encoder: Encoder, value: LocalDateTime) { // TODO: should it always encode as Long ? val epoch = value.atZone(ZoneId.of("UTC")).toInstant().toEpochMilli() encoder.encodeLong(epoch) } override fun deserialize(decoder: Decoder): LocalDateTime { val jsonDecoder = decoder as JsonDecoder val value = jsonDecoder.decodeJsonElement() as JsonPrimitive val timestamp = value.longOrNull if(timestamp != null) { return LocalDateTime.ofInstant(Instant.ofEpochMilli(timestamp), ZoneId.of("UTC")) } val timeString = value.contentOrNull if(timeString != null) { return LocalDateTime.parse(timeString, DateTimeFormatter.ISO_OFFSET_DATE_TIME) } error("value: $value cannot be decoded") } }
4
Kotlin
8
28
8e4a0643edf10d39335ea084d00d036606901fd4
1,452
Voodoo
MIT License
domain/monster/data/src/commonMain/kotlin/br/alexandregpereira/hunter/data/monster/MonsterRepositoryImpl.kt
alexandregpereira
347,857,709
false
{"Kotlin": 1412071, "Swift": 754, "Shell": 139}
/* * Copyright 2022 Alexandre Gomes Pereira * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package br.alexandregpereira.hunter.data.monster import br.alexandregpereira.hunter.domain.model.Monster import br.alexandregpereira.hunter.domain.repository.MonsterLocalRepository import br.alexandregpereira.hunter.domain.repository.MonsterRemoteRepository import br.alexandregpereira.hunter.domain.repository.MonsterRepository import kotlinx.coroutines.flow.Flow /** * Just a delegate to avoid changes when removing it. * Use [MonsterRemoteRepository] and [MonsterLocalRepository] instead. */ internal class MonsterRepositoryImpl( private val remoteRepository: MonsterRemoteRepository, private val localRepository: MonsterLocalRepository, ) : MonsterRepository { override fun saveMonsters(monsters: List<Monster>, isSync: Boolean): Flow<Unit> { return localRepository.saveMonsters(monsters, isSync) } override fun getRemoteMonsters(lang: String): Flow<List<Monster>> { return remoteRepository.getMonsters(lang) } override fun getRemoteMonsters(sourceAcronym: String, lang: String): Flow<List<Monster>> { return remoteRepository.getMonsters(sourceAcronym, lang) } override fun getLocalMonsterPreviews(): Flow<List<Monster>> { return localRepository.getMonsterPreviews() } override fun getLocalMonsters(): Flow<List<Monster>> { return localRepository.getMonsters() } override fun getLocalMonsters(indexes: List<String>): Flow<List<Monster>> { return localRepository.getMonsters(indexes) } override fun getLocalMonster(index: String): Flow<Monster> { return localRepository.getMonster(index) } override fun getLocalMonstersByQuery(query: String): Flow<List<Monster>> { return localRepository.getMonstersByQuery(query) } }
4
Kotlin
5
85
5256ca9553e070f11a8cde5515afb74503b1a23c
2,375
Monster-Compendium
Apache License 2.0
src/main/kotlin/io/github/talkarcabbage/rstimer/timers/Daily.kt
Talkarcabbage
27,659,191
false
{"Kotlin": 90037, "CSS": 5231, "Java": 269}
package io.github.talkarcabbage.rstimer.timers class Daily : BaseTimer { var latestReset: Long = 0 internal set override val timerTypeString: String get() = "Daily" override val tooltipText: String get() = "Daily Timer\n${formatTimeRemaining(timeRemaining)}" override val percentageComplete: Int get() { val rawPercentage = 100*(System.currentTimeMillis()-latestReset)/DAY_LENGTH_MILLIS return if (rawPercentage >= 100) 100 else rawPercentage.toInt() } override val timeRemaining: Long get() = latestReset+DAY_LENGTH_MILLIS-System.currentTimeMillis() override val timerDataMap: Map<String, String> get() { val map = super.timerDataMap.toMutableMap() map["latestreset"] = latestReset.toString() return map } constructor(name: String, tabID: Int, audio: Boolean, latestReset: Long) : super(name, tabID, audio) { this.latestReset = latestReset } /** * Creates a timer from the given map of timer data. Invalid properties will be ignored with a console warning and missing values will be defaulted. * @param dataMap */ constructor(dataMap: Map<String, String>) : super(dataMap) { for ((key, value) in dataMap) { try { when (key) { MAP_LATEST_RESET -> this.latestReset = java.lang.Long.parseLong(value) } } catch (e: NumberFormatException) { logger.severe("Invalid timer number value $value for property $key") } } } override fun resetTimer() { latestReset = System.currentTimeMillis()/DAY_LENGTH_MILLIS*DAY_LENGTH_MILLIS logger.fine { "Reset daily timer timer with data: $this" } } override fun resetTimerComplete() { this.latestReset = 0 } }
7
Kotlin
1
1
e4e3cfd8821d7ffca2d04b4799629020f7175c51
1,644
rs-timer
Apache License 2.0
app/src/main/java/com/shankarlohar/pedopt_adoptapet/ui/screens/onboarding/SignUpScreen.kt
shankarlohar
639,915,465
false
null
package com.shankarlohar.pedopt_adoptapet.ui.screens.onboarding import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.* import androidx.compose.foundation.text.KeyboardActions import androidx.compose.material.* import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.Visibility import androidx.compose.material.icons.filled.VisibilityOff import androidx.compose.runtime.* import androidx.compose.runtime.saveable.rememberSaveable import androidx.compose.ui.Alignment import androidx.compose.ui.ExperimentalComposeUiApi import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalSoftwareKeyboardController import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.text.input.PasswordVisualTransformation import androidx.compose.ui.text.input.VisualTransformation import androidx.compose.ui.unit.dp import com.shankarlohar.pedopt_adoptapet.R import com.shankarlohar.pedopt_adoptapet.ui.components.CircularLoadingProgressOverlay import com.shankarlohar.pedopt_adoptapet.ui.components.PedoptSingleLineTextField import com.shankarlohar.pedopt_adoptapet.viewmodels.SignUpUiFailureType import com.shankarlohar.pedopt_adoptapet.viewmodels.SignUpUiState import com.shankarlohar.pedopt_adoptapet.viewmodels.SignUpViewModel /** * A stateful implementation of Sign-Up screen */ @ExperimentalComposeUiApi @Composable fun SignUpScreen( viewModel: SignUpViewModel, onAccountCreatedSuccessfully: () -> Unit ) { val invalidCredentialsErrorMessage = stringResource(id = R.string.label_enter_valid_email_and_password) val userAlreadyExistsErrorMessage = stringResource(id = R.string.label_user_already_exists) val networkErrorMessage = stringResource(id = R.string.label_network_error_message) val uiState by viewModel.uiState var firstNameText by rememberSaveable { mutableStateOf("") } var lastNameText by rememberSaveable { mutableStateOf("") } var emailAddressText by rememberSaveable { mutableStateOf("") } var passwordText by rememberSaveable { mutableStateOf("") } val isErrorMessageVisible by remember(uiState) { mutableStateOf(uiState is SignUpUiState.Failed) } val errorMessageText by remember(uiState) { mutableStateOf( when (uiState) { is SignUpUiState.Failed -> when ((uiState as SignUpUiState.Failed).cause) { SignUpUiFailureType.INVALID_CREDENTIALS -> invalidCredentialsErrorMessage SignUpUiFailureType.USER_COLLISION -> userAlreadyExistsErrorMessage SignUpUiFailureType.NETWORK_ERROR -> networkErrorMessage } else -> "" } ) } var isPasswordVisible by rememberSaveable { mutableStateOf(false) } val isSignUpButtonEnabled by remember( firstNameText, lastNameText, emailAddressText, passwordText ) { mutableStateOf(firstNameText.isNotBlank() && lastNameText.isNotBlank() && emailAddressText.isNotBlank() && passwordText.isNotEmpty()) } // states for keyboard val keyboardController = LocalSoftwareKeyboardController.current //keyboard action object that is common to all text fields val keyboardActions = KeyboardActions(onDone = { if (firstNameText.isNotBlank() && lastNameText.isNotBlank() && emailAddressText.isNotBlank() && passwordText.isNotEmpty()) { keyboardController?.hide() viewModel.createNewAccount( name = "$firstNameText $lastNameText", email = emailAddressText, password = <PASSWORD>, onSuccess = onAccountCreatedSuccessfully ) } }) SignUpScreen( modifier = Modifier .fillMaxSize() .padding(8.dp), firstNameText = firstNameText, onFirstNameTextChange = { firstNameText = it }, lastNameText = lastNameText, onLastNameTextChange = { lastNameText = it }, emailAddressText = emailAddressText, onEmailAddressTextChange = { viewModel.removeErrorMessage() // if there is an error message, clear it emailAddressText = it }, passwordText = <PASSWORD>, onPasswordTextChange = { viewModel.removeErrorMessage()// if there is an error message, clear it passwordText = it }, errorMessageText = errorMessageText, isErrorMessageVisible = isErrorMessageVisible, isPasswordVisible = isPasswordVisible, onPasswordVisibilityIconClick = { isPasswordVisible = !isPasswordVisible }, isLoading = uiState is SignUpUiState.Loading, isSignUpButtonEnabled = isSignUpButtonEnabled, onSignUpButtonClick = { viewModel.createNewAccount( name = "$firstNameText $lastNameText", email = emailAddressText, password = <PASSWORD>, onSuccess = onAccountCreatedSuccessfully ) }, keyboardActions = keyboardActions ) } /** * A stateless implementation of Sign-Up screen. */ @Composable fun SignUpScreen( firstNameText: String, onFirstNameTextChange: (String) -> Unit, lastNameText: String, onLastNameTextChange: (String) -> Unit, emailAddressText: String, onEmailAddressTextChange: (String) -> Unit, passwordText: String, onPasswordTextChange: (String) -> Unit, modifier: Modifier = Modifier, errorMessageText: String = "", isErrorMessageVisible: Boolean = false, isPasswordVisible: Boolean = false, onPasswordVisibilityIconClick: () -> Unit = {}, isLoading: Boolean = false, isSignUpButtonEnabled: Boolean = true, onSignUpButtonClick: () -> Unit = {}, keyboardActions: KeyboardActions = KeyboardActions.Default, ) { CircularLoadingProgressOverlay(isOverlayVisible = isLoading) { Column( modifier = modifier, horizontalAlignment = Alignment.CenterHorizontally ) { Text( modifier = Modifier .paddingFromBaseline(top = 184.dp), text = stringResource(id = R.string.label_signup_for_new_account), style = MaterialTheme.typography.h1 ) Spacer(modifier = Modifier.padding(16.dp)) Row(modifier = Modifier.fillMaxWidth()) { PedoptSingleLineTextField( modifier = Modifier .height(56.dp) .fillMaxWidth(0.5f), value = firstNameText, onValueChange = onFirstNameTextChange, label = { Text(text = stringResource(id = R.string.placeholder_first_name)) }, keyboardActions = keyboardActions, ) Spacer(modifier = Modifier.padding(8.dp)) PedoptSingleLineTextField( modifier = Modifier.height(56.dp), value = lastNameText, onValueChange = onLastNameTextChange, label = { Text(text = stringResource(id = R.string.placeholder_last_name)) }, keyboardActions = keyboardActions ) } Spacer(modifier = Modifier.padding(8.dp)) PedoptSingleLineTextField( modifier = Modifier .height(56.dp) .fillMaxWidth(), value = emailAddressText, onValueChange = onEmailAddressTextChange, label = { Text(text = stringResource(id = R.string.placeholder_email_address)) }, keyboardActions = keyboardActions, isError = isErrorMessageVisible ) Spacer(modifier = Modifier.padding(8.dp)) PedoptSingleLineTextField( modifier = Modifier .height(56.dp) .fillMaxWidth(), value = passwordText, onValueChange = onPasswordTextChange, label = { Text(text = stringResource(id = R.string.placeholder_password)) }, visualTransformation = if (isPasswordVisible) VisualTransformation.None else PasswordVisualTransformation(), trailingIcon = { Icon( modifier = Modifier.clickable(onClick = onPasswordVisibilityIconClick), imageVector = if (isPasswordVisible) Icons.Filled.Visibility else Icons.Filled.VisibilityOff, contentDescription = "" ) }, keyboardActions = keyboardActions, isError = isErrorMessageVisible ) if (isErrorMessageVisible) { Text( text = errorMessageText, color = MaterialTheme.colors.error ) } Text( modifier = Modifier .fillMaxWidth() .paddingFromBaseline(top = 24.dp), text = stringResource(id = R.string.label_terms_and_conditions), style = MaterialTheme.typography.body2 ) Spacer(modifier = Modifier.padding(16.dp)) Button( modifier = Modifier .height(48.dp) .fillMaxWidth(), onClick = onSignUpButtonClick, shape = MaterialTheme.shapes.medium, content = { Text( text = stringResource(id = R.string.label_signup), fontWeight = FontWeight.Bold ) }, enabled = isSignUpButtonEnabled, colors = ButtonDefaults.buttonColors(backgroundColor = MaterialTheme.colors.secondary) ) } } }
0
Kotlin
0
0
aa52605c7684550bb5b3e2a8895b7f9b8da11d39
10,096
Pedopt-Adopt-a-Pet
MIT License
ktgram/src/main/kotlin/ru/lavafrai/ktgram/client/DefaultBotProperties.kt
lavaFrai
812,095,309
false
{"Kotlin": 421668}
package ru.lavafrai.ktgram.client import okio.Timeout class DefaultBotProperties( val parseMode: String?=null, val disableNotification: Boolean?=null, val protectContent: Boolean?=null, val allowSendingWithoutReply: Boolean?=null, val timeout: Int = 5 /* TODO */ )
0
Kotlin
0
2
6be71429e2e268ccff258129ec66ef0cad61c6b3
290
ktgram
Apache License 2.0
modules/economy/src/main/kotlin/ru/astrainteractive/aspekt/module/economy/model/CurrencyModel.kt
Astra-Interactive
588,890,842
false
{"Kotlin": 317987}
package ru.astrainteractive.aspekt.module.economy.model import com.charleskorn.kaml.YamlComment import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable @Serializable internal data class CurrencyModel( @SerialName("id") val id: String, @SerialName("name") val name: String, @SerialName("priority") @YamlComment( "Priority is required to define priority of currency", "The higher the number - the higher the priority", "Currency with most priority will be used by most plugins", "The range if [0,4]" ) val priority: Int = 2 )
2
Kotlin
0
0
791a6028bf4ca1cb11611e08e464cb539ac5a1c8
616
AspeKt
MIT License
presentation-core/src/main/java/com/jacekpietras/zoo/core/dispatcher/DefaultDispatcherProvider.kt
JacekPietras
334,416,736
false
null
package com.jacekpietras.zoo.core.dispatcher import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOn import kotlinx.coroutines.launch import kotlinx.coroutines.withContext class DefaultDispatcherProvider : DispatcherProvider { override val main: CoroutineDispatcher = Dispatchers.Main.immediate override val default: CoroutineDispatcher = Dispatchers.Default override val io: CoroutineDispatcher = Dispatchers.IO override val unconfined: CoroutineDispatcher = Dispatchers.Unconfined } interface DispatcherProvider { val main: CoroutineDispatcher val default: CoroutineDispatcher val io: CoroutineDispatcher val unconfined: CoroutineDispatcher } object DispatcherProviderWrapper { var provider: DispatcherProvider = DefaultDispatcherProvider() get() { if (field is DefaultDispatcherProvider && isRunningTest) { throw IllegalStateException("Not initialized with TestDispatcherProvider") } return field } private val isRunningTest: Boolean by lazy(LazyThreadSafetyMode.NONE) { try { Class.forName("org.junit.jupiter.api.Test") true } catch (e: ClassNotFoundException) { false } } } @Suppress("unused") val ViewModel.dispatcherProvider get() = DispatcherProviderWrapper.provider fun ViewModel.launchInBackground(block: suspend CoroutineScope.() -> Unit) = viewModelScope.launch(DispatcherProviderWrapper.provider.default, block = block) suspend fun <T> onBackground(block: suspend CoroutineScope.() -> T) = withContext(DispatcherProviderWrapper.provider.default, block) suspend fun <T> onMain(block: suspend CoroutineScope.() -> T) = withContext(DispatcherProviderWrapper.provider.main, block) fun <T> Flow<T>.flowOnBackground(): Flow<T> = flowOn(DispatcherProviderWrapper.provider.default)
0
null
1
2
e6a689f442cc32d19ee3f51efc49bf49f9969ca8
2,112
ZOO
MIT License
android/src/main/java/com/mattermost/pasteinput/PasteInputPackage.kt
mattermost
310,133,680
false
{"Objective-C": 33511, "TypeScript": 21327, "Kotlin": 21234, "JavaScript": 18959, "Ruby": 2266, "Swift": 1790, "Objective-C++": 657, "C": 104}
package com.mattermost.pasteinput import java.util.Arrays import java.util.Collections import com.facebook.react.ReactPackage import com.facebook.react.bridge.NativeModule import com.facebook.react.bridge.ReactApplicationContext import com.facebook.react.uimanager.ViewManager import com.facebook.react.bridge.JavaScriptModule class PasteInputPackage : ReactPackage { override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> { return emptyList<NativeModule>() } override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> { return Arrays.asList<ViewManager<*, *>>(PasteInputManager(reactContext)) } }
11
Objective-C
15
88
9e9a193c0928934a29fd4beafe52db4cf6a3c718
704
react-native-paste-input
MIT License
vgsshow/src/main/java/com/verygoodsecurity/vgsshow/core/network/model/data/request/RequestData.kt
ilovetea
329,250,478
true
{"Kotlin": 138221}
package com.verygoodsecurity.vgsshow.core.network.model.data.request interface RequestData { fun getData(): ByteArray? fun isValid(): Boolean }
0
null
0
0
d5b5bb673917f1c6b63230a31a8cbca0a61c79e4
154
vgs-show-android
MIT License
starling/src/main/java/com/example/starling/connection/server/ServerConnection.kt
starling-protocol
804,959,558
false
{"Kotlin": 52383}
package com.example.starling.connection.server import android.bluetooth.BluetoothDevice import android.bluetooth.BluetoothGatt import android.bluetooth.BluetoothGattCharacteristic import android.bluetooth.BluetoothGattServer import com.example.starling.Log import com.example.starling.Logger import com.example.starling.connection.DeviceConnection import com.example.starling.connection.ServerManager import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Job import kotlinx.coroutines.job import kotlinx.coroutines.launch import kotlinx.coroutines.withContext import no.nordicsemi.android.ble.callback.DataReceivedCallback import no.nordicsemi.android.ble.data.Data import no.nordicsemi.android.ble.ktx.suspend class ServerConnection( private val serverManager: ServerManager, logger: Logger, scope: CoroutineScope, private val bluetoothDevice: BluetoothDevice, ) : DeviceConnection(serverManager.context), CoroutineScope, DataReceivedCallback { companion object { private const val TAG = "ServerConnection" } private val log = Log(logger, TAG) override val coroutineContext = Job(scope.coroutineContext.job) var dataCharacteristic: BluetoothGattCharacteristic? = null init { log.d("initializing server connection to ${bluetoothDevice.address}") useServer(serverManager) launch { try { connect(bluetoothDevice) .retry(3) //.timeout(4000) //.useAutoConnect(true) .suspend() log.d("Connected to device: ${bluetoothDevice.address}") } catch (e: Exception) { log.catch(e, "Failed to connect: ${bluetoothDevice.address}") } } } override fun getBluetoothDevice() = bluetoothDevice override fun onServerReady(server: BluetoothGattServer) { log.d("onServerReady") server.getService(serverManager.serverData.serviceUUID)?.let { dataCharacteristic = it.getCharacteristic(serverManager.serverData.characteristicUUID) } } override fun initialize() { log.d("initialize") setWriteCallback(dataCharacteristic!!) .with(this@ServerConnection) .then { log.d("Characteristic write callback closed") } launch { try { val mtu = requestMtu(517).suspend() log.d("Got an MTU value of $mtu") waitUntilNotificationsEnabled(dataCharacteristic).suspend() log.d("Notifications enabled: ${bluetoothDevice.address}") serverManager.onDeviceFullyConnected(this@ServerConnection); } catch (e: Exception) { log.catch(e, "Failed to enable notifications: ${bluetoothDevice.address}") disconnect() } } } override suspend fun sendPacket(value: ByteArray): Unit = withContext(this.coroutineContext) { try { log.d("Sending packet to server: ${bluetoothDevice.address}") sendNotification(dataCharacteristic, value).suspend() log.d("Sent ${value.size} bytes to device ${bluetoothDevice.address}") } catch (e: Exception) { log.catch(e,"Failed to send data to connected device: ${bluetoothDevice.address}") } } override fun onDataReceived(device: BluetoothDevice, data: Data) { log.d("Read ${data.size()} bytes") serverManager.packetReceived(this, data) } // There are no services that we need from the connecting device, but // if there were, we could specify them here. override fun isRequiredServiceSupported(gatt: BluetoothGatt): Boolean { log.d("isRequiredServiceSupported") return true } override fun onServicesInvalidated() { // This is the place to nullify characteristics obtained above. log.d("onServicesInvalidated") } override fun log(priority: Int, message: String) { log.log(priority, message) } } interface ServerConnectionCallback { fun onDeviceFullyConnected(connection: ServerConnection) }
0
Kotlin
0
0
496bd1f7ff369cb380627444db0fea085a61cc6a
3,848
starling-android-sdk
Apache License 2.0
websockets-rxjava-example/src/main/java/com/example/model/PongMessage.kt
Garzas
166,278,371
false
{"Gradle": 4, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 2, "Markdown": 2, "Java": 27, "Kotlin": 27, "XML": 5, "Java Properties": 1, "Dockerfile": 1, "Python": 8}
/* * Copyright (C) 2015 <NAME> <<EMAIL>> * * 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, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License */ package com.example.model class ErrorMessage(private val response: String) : Message(MessageType.ERROR) { fun response(): String { return response } override fun equals(o: Any?): Boolean { if (this === o) return true if (o !is ErrorMessage) return false if (!super.equals(o)) return false val that = o as ErrorMessage? return response == that!!.response } override fun hashCode(): Int { var result = super.hashCode() result = 31 * result + response.hashCode() return result } override fun toString(): String { return "ErrorResponse{" + "message='" + response + '\''.toString() + "} " + super.toString() } }
1
null
1
1
ae76b9fde059114ec6e8ea6402199ad36485e737
1,364
JavaWebsocketClient
Apache License 2.0
src/main/kotlin/hu/matusek/spendingtrackertoolbackend/feature/transactions/service/TransactionService.kt
matusekma
595,587,711
false
null
package hu.matusek.spendingtrackertoolbackend.feature.transactions.service import hu.matusek.spendingtrackertoolbackend.feature.transactions.dto.* import org.springframework.data.domain.Page import org.springframework.data.domain.Pageable import java.time.OffsetDateTime interface TransactionService { fun getTransactionById(id: Long): TransactionResponse fun createTransaction(createTransactionRequest: CreateTransactionRequest): CreateTransactionResponse fun editTransaction(id: Long, editTransactionRequest: EditTransactionRequest): EditTransactionResponse fun deleteTransactionById(id: Long) fun searchAndFilterTransactions( pageable: Pageable, transactionsFilter: TransactionsFilter ): Page<TransactionResponse> fun calculateTransactionStatistics( paidFrom: OffsetDateTime?, paidTo: OffsetDateTime? ): List<TransactionStatisticResponse> }
0
Kotlin
0
0
62fa271cb53e905c203e5e92e9b5e7446a4c4f29
914
spending-tracker-tool-backend
Apache License 2.0
android-core/src/main/java/com/mparticle/internal/KitsLoadedCallback.kt
mParticle
42,615,957
false
null
package com.mparticle.internal class KitsLoadedCallback { @Volatile private var onKitsLoadedRunnable: OnKitManagerLoaded? = null @Volatile private var loaded: Boolean = false fun setKitsLoaded() { synchronized(this) { if (!loaded) { loaded = true onKitsLoadedRunnable?.onKitManagerLoaded() } } } fun onKitsLoaded(callback: OnKitManagerLoaded) { synchronized(this) { if (loaded) { callback.onKitManagerLoaded() } else { onKitsLoadedRunnable = callback } } } } interface OnKitManagerLoaded { fun onKitManagerLoaded() }
26
null
62
58
94284f5f789f19872b21d75e063f9362675e217a
714
mparticle-android-sdk
Apache License 2.0
app/src/main/java/android/ihorkostenko/animepedia/presentation/ui/adapters/CharactersRecyclerViewAdapter.kt
matemink
150,138,036
false
null
package android.ihorkostenko.animepedia.presentation.ui.adapters import android.ihorkostenko.animepedia.domain.entities.AnimeCharacter import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import animepedia.android.ihorkostenko.animepedia.databinding.ItemCharacterBinding class CharactersRecyclerViewAdapter( private var characters: List<AnimeCharacter>) : RecyclerView.Adapter<CharactersRecyclerViewAdapter.ViewHolder>() { override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder { val inflater = LayoutInflater.from(parent.context) val binding = ItemCharacterBinding.inflate(inflater, parent, false) return ViewHolder(binding) } fun newValue(characters: List<AnimeCharacter>) { this.characters = characters notifyItemInserted(0) } override fun getItemCount(): Int = characters.size override fun onBindViewHolder(holder: ViewHolder, position: Int) = holder.bind(characters[position]) inner class ViewHolder(private val binding: ItemCharacterBinding) : RecyclerView.ViewHolder(binding.root) { fun bind(item: AnimeCharacter) { binding.data = item binding.executePendingBindings() } } }
0
Kotlin
0
0
b7e1f5082d057a6641601b58f714919ae44cb1e7
1,297
Animepedia
Apache License 2.0
app/src/main/java/ci/projccb/mobile/repositories/databases/daos/ThemeFormationDao.kt
SICADEVD
686,088,142
false
{"Kotlin": 1329476, "Java": 20027}
package ci.projccb.mobile.repositories.databases.daos import androidx.room.* import ci.projccb.mobile.models.* /** * Created by didierboka.developer on 18/12/2021 * mail for work: (<EMAIL>) */ @Dao interface ThemeFormationDao { @Transaction @Insert(onConflict = OnConflictStrategy.REPLACE) fun insert(theme: ThemeFormationModel) @Transaction @Query("SELECT * FROM theme_formation WHERE agentId = :agentID") fun getAll(agentID: String?): MutableList<ThemeFormationModel> @Transaction @Query("SELECT * FROM theme_formation WHERE typeFormationsId = :type") fun getAllByType(type: String): MutableList<ThemeFormationModel> @Transaction @Query("DELETE FROM theme_formation") fun deleteAll() }
0
Kotlin
0
2
aaa1d88430fae617d84f9bda092ab786526f1672
750
ccbm
Apache License 2.0