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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
VCL/src/test/java/io/velocitycareerlabs/infrastructure/resources/valid/VCLJwtServiceMock.kt | velocitycareerlabs | 525,006,413 | false | {"Kotlin": 614928} | /**
* Created by <NAME> on 05/09/2023.
*
* Copyright 2022 Velocity Career Labs inc.
* SPDX-License-Identifier: Apache-2.0
*/
package io.velocitycareerlabs.infrastructure.resources.valid
import io.velocitycareerlabs.api.entities.VCLPublicJwk
import io.velocitycareerlabs.api.entities.VCLJwt
import io.velocitycaree... | 0 | Kotlin | 0 | 1 | daaf7fdd029d6a1cb152fd8506b43b1789fd1b88 | 830 | WalletAndroid | Apache License 2.0 |
Clase3/GamesApp/app/src/main/java/torres/gabriel/gamesapp/Models/Game.kt | gabtorrespen | 145,050,264 | false | null | package torres.gabriel.gamesapp.Models
import java.io.Serializable
class Game(id:Int,name: String, developer: String, description: String) : Serializable {
var id:Int? = id
var name:String?= name
var developer:String? = developer
var description:String? = description
var image:ByteArray? =null
... | 0 | Kotlin | 0 | 0 | ce4b37f4ea2c4b61a7a2113a192673c93b4c4581 | 525 | EjerciciosAndroid | Apache License 2.0 |
Extensions/Cryptography/src/main/kotlin/net/sourcebot/module/cryptography/commands/OngCommand.kt | TheSourceCodeLLC | 271,902,483 | false | null | package net.sourcebot.module.cryptography.commands
import me.hwiggy.kommander.arguments.Adapter
import me.hwiggy.kommander.arguments.Arguments
import me.hwiggy.kommander.arguments.Synopsis
import net.dv8tion.jda.api.entities.Message
import net.sourcebot.api.command.RootCommand
import net.sourcebot.api.command.SourceCo... | 5 | Kotlin | 8 | 9 | ff4a07c69a009d118b10bc4d57f6e567334ed768 | 2,125 | Source | MIT License |
app/src/main/java/com/zyqzyq/eyepetizer/ui/view/discover/category/CategoryScrollCardItem.kt | zyqzyq | 102,337,521 | false | null | package com.zyqzyq.eyepetizer.ui.view.discover.category
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.util.AttributeSet
import android.view.View
import android.widget.FrameLayout
import com.youth.banner.BannerConfig
import com.zyqzyq.eyepetizer.R
import com.z... | 0 | Kotlin | 2 | 18 | 8771e0000301aa258512858652a484a33fc6c71c | 3,794 | Eyepetizer-kotlin | MIT License |
http/http-server-symbol-processor/src/main/kotlin/ru/tinkoff/kora/http/server/symbol/procesor/ExtractorFunction.kt | Tinkoff | 568,800,636 | false | null | package ru.tinkoff.kora.http.server.symbol.procesor
import com.squareup.kotlinpoet.MemberName
private const val extractorsPackage = "ru.tinkoff.kora.http.server.common.handler"
enum class ExtractorFunction(val memberName: MemberName) {
STRING_PATH(MemberName(extractorsPackage, "extractStringPathParameter")),
... | 21 | null | 23 | 146 | bb6f65080d9f50b674c8a77dac08116b2ee9eebf | 3,183 | kora | Apache License 2.0 |
app/src/test/java/com/example/kotlinSub2Ara/presenter/EventPresenterTest.kt | arakoswara | 177,001,059 | false | null | package com.example.kotlinSub2Ara.presenter
import com.example.kotlinSub2Ara.BuildConfig
import com.example.kotlinSub2Ara.CoroutineContextProvider
import com.example.kotlinSub2Ara.EventView
import com.example.kotlinSub2Ara.TestContextProvider
import com.example.kotlinSub2Ara.api.ApiRepository
import com.example.kotlin... | 0 | Kotlin | 0 | 0 | 5cf5973aa35ab69401aaefa0f08e886df89ddbdc | 2,373 | kotlin-unit-test | MIT License |
src/main/kotlin/ca/warp7/rt/view/api/Selection.kt | yuliu2016 | 188,286,975 | false | {"CSS": 157703, "Kotlin": 80493} | package ca.warp7.rt.view.api
data class Selection(
val rows: MutableSet<Int> = mutableSetOf(),
val cols: MutableSet<Int> = mutableSetOf()
) {
val minRow get() = rows.min() ?: 0
val maxRow get() = rows.max() ?: 0
val minCol get() = cols.min() ?: 0
val maxCol get() = cols.max() ?: 0
} | 1 | CSS | 0 | 0 | b0fa118a1fbc06efe9d618e0bd711fd639b4986c | 316 | RT-View | MIT License |
app/src/main/kotlin/za/co/dvt/android/showcase/ui/viewapp/screenshots/ScreenshotAdapter.kt | DVT | 87,165,643 | false | null | package za.co.dvt.android.showcase.ui.viewapp.screenshots
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.ViewGroup
import timber.log.Timber
import za.co.dvt.android.showcase.databinding.ListItemScreenshotBinding
/**
* @author rebeccafranks
* @since 2017/07/19.
... | 1 | null | 1 | 8 | e31003c1be94ca3aa77a07e87a1c58934722223c | 1,070 | showcase-android | Apache License 2.0 |
compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/carousel/CarouselItemScope.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | Kotlin | 946 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 3,899 | androidx | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/stepfunctions/StateMachinePropsDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.stepfunctions
import cloudshift.awscdk.common.CdkDslMarker
imp... | 4 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 4,226 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/com/saadkhan/mvvmuserapp/fragments/UserFragment.kt | SaadKhanJadoon | 571,951,523 | false | null | package com.saadkhan.mvvmuserapp.fragments
class UserFragment {
} | 0 | Kotlin | 2 | 1 | 104d199747031af0ea50c63157d72b77163561bb | 66 | MVVM_User_App | MIT License |
domain/src/test/java/com/phicdy/mycuration/domain/util/DateParserTest.kt | phicdy | 24,188,186 | false | {"Kotlin": 688608, "HTML": 1307, "Shell": 1127} | package com.phicdy.mycuration.domain.util
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
class DateParserTest {
@Test
fun testTimeZone() {
assertThat(DateParser.changeToJapaneseDate("Mon, 01 Jan 2018 01:23:45 +0900")).isEqualTo((1514737425000L))
}
@Test
fun testNo... | 46 | Kotlin | 9 | 30 | 052bc1776a80df0457399e96e001c9ad527d53f2 | 1,442 | MyCuration | The Unlicense |
src/Day05.kt | rod41732 | 728,131,475 | false | {"Kotlin": 21048} | /**
* You can edit, run, and share this code.
* play.kotlinlang.org
*/
fun main() {
val testInput = readInput("Day05_test")
val input = readInput("Day05")
data class MapRule(val destStart: Long, val srcStart: Long, val length: Long) {
fun mapOrNull(number: Long): Long? {
return if (s... | 0 | Kotlin | 0 | 0 | 80104607449dad450bcd4d54245e498ff9da9291 | 2,760 | aoc-23 | Apache License 2.0 |
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/hierarchy/HierarchyUtils.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.hierarchy
import com.intellij.codeInsight.TargetElementUtil
import com.intellij.openapi.actionSystem.CommonDataKeys
import co... | 191 | null | 4372 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,141 | intellij-community | Apache License 2.0 |
fotoapparat/src/main/java/io/fotoapparat/configuration/Configuration.kt | RedApparat | 85,997,051 | false | null | package io.fotoapparat.configuration
import io.fotoapparat.selector.*
import io.fotoapparat.util.FrameProcessor
interface Configuration {
val flashMode: FlashSelector?
val focusMode: FocusModeSelector?
val jpegQuality: QualitySelector?
val exposureCompensation: ExposureSelector?
val frameProcessor... | 91 | null | 418 | 3,813 | 9454f3e4d1d222799049b00f3d84b274c3e02ee6 | 580 | Fotoapparat | Apache License 2.0 |
shuttle/permissions/domain/src/main/kotlin/shuttle/permissions/domain/usecase/HasBackgroundLocation.kt | fardavide | 462,194,990 | false | {"Kotlin": 465845, "Shell": 11573} | package shuttle.permissions.domain.usecase
import com.google.accompanist.permissions.MultiplePermissionsState
import com.google.accompanist.permissions.PermissionStatus
import org.koin.core.annotation.Factory
import shuttle.permissions.domain.model.BackgroundLocation
import shuttle.util.android.IsAndroidQ
@Factory
cl... | 12 | Kotlin | 1 | 14 | ce2910eae0ec07880184628e2b2cc34e09da3ab2 | 586 | Shuttle | Apache License 2.0 |
Vinylsg12/app/src/main/java/co/edu/uniandes/vinylsg12/ui/musicians/MusiciansFragment.kt | je-guerreroa1-uniandes | 621,087,798 | false | null | package co.edu.uniandes.vinylsg12.ui.musicians
import android.animation.ObjectAnimator
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import andr... | 3 | Kotlin | 0 | 2 | 6865a740c91eb55f059936af96f72f874d7b8c3b | 2,208 | grupo-12-software-mobile | MIT License |
src/player/main/sp/it/pl/core/CoreSerializerJson.kt | sghpjuikit | 18,862,317 | false | null | package sp.it.pl.core
import de.jensd.fx.glyphs.GlyphIcons
import java.io.File
import java.io.FileNotFoundException
import java.net.URI
import java.nio.charset.Charset
import java.nio.file.Path
import java.time.Instant
import java.time.LocalDate
import java.time.LocalDateTime
import java.time.LocalTime
import java.tim... | 12 | null | 2 | 19 | 46ab4d264435b122cc4993931501a664fadc7fd6 | 7,332 | player | X.Net License |
app/common/src/desktopMain/kotlin/com/denchic45/studiversity/ui/components/theme/Typo.kt | denchic45 | 435,895,363 | false | null | package com.denchic45.studiversity.ui.components.theme
import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import com.denchic45.studiversity.ui.components.tokens.TypographyKeyTokens
fun Typography.fromToken(value: TypographyKeyTokens): TextStyle {
return when (value) {
T... | 0 | null | 0 | 7 | 93947301de4c4a9cb6c3d9fa36903f857c50e6c2 | 1,147 | Studiversity | Apache License 2.0 |
reposilite-backend/src/test/kotlin/com/reposilite/ReposiliteSpecification.kt | XiamLiTechnologies | 416,864,246 | true | {"Kotlin": 328983, "Vue": 40726, "JavaScript": 37270, "HTML": 7753, "CSS": 2344, "Shell": 2126, "Dockerfile": 1108} | /*
* Copyright (c) 2021 dzikoysk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 0 | null | 0 | 0 | f8b7de3e2bbf2f4f71e8364e1f918a2af7e31092 | 1,514 | reposilite | Apache License 2.0 |
packages/internal/generators-files/spring-boot/application/shared/kotlin/src/test/kotlin/__packageDirectory__/HelloControllerTests.kt | khalilou88 | 404,925,430 | false | {"TypeScript": 838028, "HTML": 489236, "JavaScript": 11111, "Java": 8153, "Kotlin": 7713, "Groovy": 5393, "Shell": 255} | package <%= packageName %>
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.AfterAll
import org.junit.jupiter.api.BeforeAll
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import or... | 13 | TypeScript | 15 | 63 | 21b99d4530ca1be867a33da28fbcebd5548489de | 1,021 | jnxplus | MIT License |
runtime/runtime-core/common/src/aws/smithy/kotlin/runtime/retries/delay/StandardRetryTokenBucket.kt | awslabs | 294,823,838 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.smithy.kotlin.runtime.retries.delay
import aws.smithy.kotlin.runtime.retries.policy.RetryErrorType
import kotlinx.coroutines.delay
import kotlinx.coroutines.sync.Mutex
import kotlinx.corouti... | 30 | null | 16 | 28 | 6f68ac0fc38a2cf3e3ed8b27769d505af67b99b0 | 5,674 | smithy-kotlin | Apache License 2.0 |
platform/platform-impl/src/com/intellij/ui/dsl/gridLayout/JBGridImpl.kt | stroyerr | 401,048,382 | true | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ui.dsl.gridLayout
import java.awt.Dimension
import java.awt.Rectangle
import javax.swing.JComponent
import kotlin.math.max
import kotlin.ma... | 0 | null | 0 | 0 | 04f1339375633c0129929d05d7744bfdd1a93a9a | 14,368 | intellij-community | Apache License 2.0 |
serialization/src/main/kotlin/net/corda/serialization/internal/amqp/custom/OffsetDateTimeSerializer.kt | corda | 70,137,417 | false | {"Kotlin": 10675960, "Java": 275115, "C++": 239894, "Python": 37811, "Shell": 28324, "CSS": 23544, "Groovy": 14725, "CMake": 5393, "Dockerfile": 2574, "Batchfile": 1777, "PowerShell": 660, "C": 454} | package net.corda.serialization.internal.amqp.custom
import net.corda.core.KeepForDJVM
import net.corda.serialization.internal.amqp.CustomSerializer
import net.corda.serialization.internal.amqp.SerializerFactory
import java.time.LocalDateTime
import java.time.OffsetDateTime
import java.time.ZoneOffset
/**
* A serial... | 62 | Kotlin | 1090 | 3,989 | d27aa0e6850d3804d0982024054376d452e7073a | 1,198 | corda | Apache License 2.0 |
src/test/kotlin/aoc2015/ReindeerOlympicsTest.kt | komu | 113,825,414 | false | null | package komu.adventofcode.aoc2015
import komu.adventofcode.utils.readTestInput
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
class ReindeerOlympicsTest {
@Test
fun `part 1`() {
assertEquals(2696, reindeerOlympics1(readTestInput("/2015/ReindeerOlympics.txt")))
}
@Test
... | 0 | Kotlin | 0 | 0 | e59e8dec81de9ac6e7c9d6918eafb12353e87d75 | 436 | advent-of-code | MIT License |
app/src/main/java/eu/kanade/tachiyomi/source/manga/MangaSourceExtensions.kt | aniyomiorg | 358,887,741 | false | null | package eu.kanade.tachiyomi.source.manga
import android.graphics.drawable.Drawable
import eu.kanade.domain.source.service.SourcePreferences
import eu.kanade.tachiyomi.extension.manga.MangaExtensionManager
import eu.kanade.tachiyomi.source.MangaSource
import tachiyomi.domain.source.manga.model.MangaSourceData
import ta... | 180 | null | 315 | 4,992 | 823099f775ef608b7c11f096da1f50762dab82df | 1,507 | aniyomi | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/oauth2server/resource/api/UserControllerTest.kt | ministryofjustice | 118,512,431 | false | null | @file:Suppress("ClassName")
package uk.gov.justice.digital.hmpps.oauth2server.resource.api
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.assertThatThrownBy
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import org.mockito.ArgumentMatchers.anyString
imp... | 6 | null | 4 | 8 | 6b962b2a7c4b34195a9b4cbd3bb0e5ccdca53869 | 15,567 | hmpps-auth | MIT License |
dd-sdk-android/src/main/kotlin/com/datadog/android/v2/api/EventBatchWriter.kt | DataDog | 219,536,756 | false | null | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.api.storage
import androidx.annotation.W... | 52 | null | 60 | 86 | bcf0d12fd978df4e28848b007d5fcce9cb97df1c | 991 | dd-sdk-android | Apache License 2.0 |
app/src/main/java/vn/loitp/up/a/cv/tv/zoom/ZoomTextViewActivity.kt | tplloi | 126,578,283 | false | null | package vn.loitp.up.a.cv.tv.zoom
import android.os.Bundle
import com.loitp.annotation.IsFullScreen
import com.loitp.annotation.LogTag
import com.loitp.core.base.BaseActivityFont
import com.loitp.core.common.NOT_FOUND
import com.loitp.core.ext.setSafeOnClickListenerElastic
import vn.loitp.R
import vn.loitp.databinding.... | 1 | Kotlin | 1 | 9 | 1bf1d6c0099ae80c5f223065a2bf606a7542c2b9 | 1,142 | base | Apache License 2.0 |
utbot-rd/src/main/kotlin/org/utbot/rd/loggers/UtRdConsoleLogger.kt | UnitTestBot | 480,810,501 | false | null | package org.utbot.rd.loggers
import com.jetbrains.rd.util.*
import org.utbot.common.timeFormatter
import java.io.PrintStream
import java.time.LocalDateTime
class UtRdConsoleLogger(
private val loggersLevel: LogLevel,
private val streamToWrite: PrintStream,
private val category: String
) : Logger {
ove... | 396 | null | 31 | 91 | ca7df7c1665cdab2a5d8bc2619611e02e761a228 | 1,269 | UTBotJava | Apache License 2.0 |
health/connect/connect-client/src/main/java/androidx/health/platform/client/request/UnregisterFromDataNotificationsRequest.kt | androidx | 256,589,781 | false | null | /*
* 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 applica... | 29 | null | 937 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 1,397 | androidx | Apache License 2.0 |
data/src/test/java/com/hoc/flowmvi/data/UserRepositoryImplRealAPITest.kt | Kotlin-Android-Open-Source | 343,622,644 | false | null | package com.hoc.flowmvi.data
import android.util.Log
import com.hoc.flowmvi.core.dispatchers.AppCoroutineDispatchers
import com.hoc.flowmvi.domain.repository.UserRepository
import com.hoc.flowmvi.test_utils.rightValueOrThrow
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
import kotlin.test.Te... | 6 | null | 84 | 95 | 09d9ef5d45972c2b1f22459ffe07358013fca742 | 3,049 | Jetpack-Compose-MVI-Coroutines-Flow | MIT License |
library-mvvmlazy/src/main/java/com/rui/mvvmlazy/utils/constant/MemoryConstants.kt | jirywell | 418,722,038 | false | {"Kotlin": 779701, "Java": 48117} | package com.rui.mvvmlazy.utils.constant
import com.rui.mvvmlazy.utils.app.PathUtils.Companion.getExtStoragePath
import com.rui.mvvmlazy.utils.app.PathUtils.Companion.getExtDownloadsPath
import com.rui.mvvmlazy.utils.app.PathUtils.Companion.getExtPicturesPath
import com.rui.mvvmlazy.utils.app.PathUtils.Companion.getExt... | 0 | Kotlin | 7 | 27 | b37dcb02d8b93699299aada9ec98a1c3ae10e346 | 1,135 | MvvmLazy-kotlin | Apache License 2.0 |
src/main/kotlin/ua/pp/lumivoid/network/SendPacket.kt | Bumer-32 | 779,465,671 | false | {"Kotlin": 128264, "Java": 9764, "Groovy": 2980} | package ua.pp.lumivoid.network
import net.minecraft.server.network.ServerPlayerEntity
import ua.pp.lumivoid.Constants
object SendPacket {
private val logger = Constants.LOGGER
fun sendPacket(sendingClass: Record) {
logger.debug("Sending packet to server")
Constants.NET_CHANNEL.clientHandle()... | 0 | Kotlin | 1 | 2 | 3b71886ac917816ce72e5cd82da0afaedc36c569 | 548 | Redstone-Helper | Apache License 2.0 |
MapboxSearch/sample/src/main/java/com/mapbox/search/sample/api/OfflineSearchAlongRouteExampleActivity.kt | mapbox | 438,355,708 | false | null | package com.mapbox.search.sample.api
import android.Manifest
import android.content.Context
import android.content.pm.PackageManager
import android.os.Bundle
import android.util.Log
import android.view.View
import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputMethodManager
import android.wid... | 18 | null | 7 | 33 | d7307c6a874fac106806f2ccfcaba1a5654b6ed9 | 22,045 | mapbox-search-android | Apache License 2.0 |
app/src/main/java/com/solana/mwallet/ui/signpayload/SignPayloadFragment.kt | solana-mobile | 741,187,528 | false | {"Kotlin": 72999} | /*
* Copyright (c) 2022 Solana Mobile Inc.
*/
package com.solana.mwallet.ui.signpayload
import android.net.Uri
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.activityViewModels
impo... | 5 | Kotlin | 0 | 0 | ed0cab942f207eeff6b8a77cd612b43ba169f603 | 5,332 | mwallet | Apache License 2.0 |
shared/src/commonMain/kotlin/com/kashif/kmmnewsapp/data/repository/AbstractRepository.kt | khaled2252 | 532,294,800 | false | null | package com.kashif.kmmnewsapp.data.repository
import com.kashif.kmmnewsapp.data.remote.dto.HeadlinesDTO
import com.kashif.kmmnewsapp.domain.util.DataState
abstract class AbstractRepository {
abstract suspend fun getAllHeadlines(
page: Int,
pageSize: Int,
country: String
): DataState... | 0 | Kotlin | 0 | 0 | d8201ec4bfab9f2ea5dc02a68a6d2211ab432ac2 | 336 | TodoExcel | Apache License 2.0 |
src/jsMain/kotlin/css/KrontabPartsStylesheet.kt | InsanusMokrassar | 715,177,162 | false | null | package dev.inmo.krontab.predictor.css
import org.jetbrains.compose.web.ExperimentalComposeWebApi
import org.jetbrains.compose.web.css.*
import org.jetbrains.compose.web.css.keywords.auto
object KrontabPartsStylesheet : StyleSheet() {
val containerWidth = 600.px
val containerItemsGap = 16.px
val container... | 0 | null | 0 | 1 | 9cff838d8566ea221c943c1744614bd1a8af7df8 | 1,302 | KrontabPredictor | MIT License |
compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/TypeArgumentMapping.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.resolve.calls
import org.jetbrains.kotlin.fir.declarations.FirTypeParameterR... | 157 | null | 5209 | 42,102 | 65f712ab2d54e34c5b02ffa3ca8c659740277133 | 2,196 | kotlin | Apache License 2.0 |
app/src/main/java/com/mohmmed/mosa/eg/towmmen/data/local/db/migration/Migration_5_6.kt | M4A28 | 842,519,543 | false | {"Kotlin": 877792} | package com.mohmmed.mosa.eg.towmmen.data.local.db.migration
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
val migration_5_6 = object: Migration(5, 6){
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL(" ALTER TABLE invoice_items ADD COLUMN 'purchaseDa... | 0 | Kotlin | 0 | 0 | 37a6e192262f4995f599978957d1b39257fd88a9 | 584 | Towmmen | MIT License |
app/src/main/java/com/example/androidcurriculum/data/LoginDataSource.kt | rinnki30 | 805,174,014 | false | {"Kotlin": 35561} | package com.example.androidcurriculum.data
import android.database.Cursor
import com.example.androidcurriculum.Database.MyDatabaseHelper
import com.example.androidcurriculum.MyApplication
import com.example.androidcurriculum.data.model.LoggedInUser
/**
* Class that handles authentication w/ login credentials and ret... | 0 | Kotlin | 0 | 0 | 07e22511ed98fa4f949655fe93dd15986ad5fa57 | 1,793 | Android-Curriculum | Apache License 2.0 |
app/src/main/java/org/d3if2146/hitungbmi/ui/histori/HistoriViewModel.kt | naufalmng | 522,475,438 | false | {"Kotlin": 35041} | package org.d3if2146.hitungbmi.ui.histori
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import org.d3i... | 0 | Kotlin | 0 | 0 | 49a1660db7db23ea8c5bac69aab6a3d87d5c8312 | 1,519 | hitungBmi | Apache License 2.0 |
yabapi-core/src/commonMain/kotlin/moe/sdl/yabapi/data/live/commands/InteractWordCmd.kt | SDLMoe | 437,756,989 | false | null | @file:UseSerializers(BooleanJsSerializer::class)
package moe.sdl.yabapi.data.live.commands
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonElement
import kotlinx.s... | 0 | null | 1 | 26 | c8be46f9b5e4db1e429c33b0821643fd94789fa1 | 3,075 | Yabapi | Creative Commons Zero v1.0 Universal |
app/src/main/kotlin/se/bylenny/colorballs/models/Rect.kt | lennynilsson | 103,952,342 | false | null | package se.bylenny.colorballs.models
class Rect(
var x: Float = 0f,
var y: Float = 0f,
var w: Float = 0f,
var h: Float = 0f
) {
var x2: Float
set(value) { w = x2 - x }
get() = x + w
var y2: Float
set(value) { h = y2 - y }
get() = y + h
fun plus(other: Rect) ... | 0 | Kotlin | 0 | 0 | 6392cee0f39d67a07177f0af7919888c2860e059 | 458 | ColorBalls | Apache License 2.0 |
shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/placeholder/PlaceholderScreen.kt | msasikanth | 632,826,313 | false | {"Kotlin": 858776, "Swift": 8517, "JavaScript": 3432, "CSS": 947, "Shell": 227} | /*
* Copyright 2024 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 35 | Kotlin | 72 | 1,713 | e7b3f1057d8295e1d83a041df68aec7bfefcd6e8 | 3,273 | twine | Apache License 2.0 |
src/main/kotlin/sk/mkiss/algorithms/dynamic/LongestIncreasingSubsequence.kt | marek-kiss | 430,858,906 | false | null | package sk.mkiss.algorithms.dynamic
import kotlin.math.max
object LongestIncreasingSubsequence {
/**
* get the size of the longest increasing subsequence of the given sequence
* time complexity: Θ(n^2)
*
* @param sequence
* @return
*/
fun getSizeOfLIS(sequence: List<Int>): Int {... | 0 | Kotlin | 0 | 0 | 296cbd2e04a397597db223a5721b6c5722eb0c60 | 3,319 | algo-in-kotlin | MIT License |
lightbulb-easyrecyclerview/src/main/java/com/github/rooneyandshadows/lightbulb/easyrecyclerview/layout_managers/HorizontalFlowLayoutManager.kt | RooneyAndShadows | 424,519,760 | false | null | package com.github.rooneyandshadows.lightbulb.easyrecyclerview.layout_managers
import androidx.recyclerview.widget.RecyclerView
import com.github.rooneyandshadows.lightbulb.easyrecyclerview.EasyRecyclerView
import com.github.rooneyandshadows.lightbulb.recycleradapters.abstraction.EasyRecyclerAdapter
import com.github.... | 0 | Kotlin | 2 | 5 | 72e65f7d03fbd9bcef929e5ce59be930b786db1f | 3,026 | lightbulb-easyrecyclerview | Apache License 2.0 |
src/main/kotlin/me/sd_master92/customvoting/constants/enumerations/VotePartyType.kt | sanderderks | 306,723,396 | false | null | package me.sd_master92.customvoting.constants.enumerations
import me.sd_master92.customvoting.constants.interfaces.CarouselEnum
import me.sd_master92.customvoting.constants.interfaces.EnumCompanion
import java.util.*
enum class VotePartyType(private val label_: PMessage) : CarouselEnum
{
RANDOMLY(PMessage.ENUM_VO... | 0 | Kotlin | 1 | 0 | 7e1e23d09862390d05fe9aac92e46c9e5bf48a0d | 1,516 | CustomVoting | MIT License |
kotlin-in-action/src/annotation/kotlin_annoation/JvmNameTest.kt | chiclaim | 97,095,916 | false | null |
@file:JvmName("JavaClassName")
package annotation.kotlin_annoation
@JvmName("java_method_name")
fun javaMethodName(){
println("java method name")
}
fun main() {
//kotlin invoke
javaMethodName()
} | 0 | Kotlin | 10 | 25 | da08018c2fe20595293a4dbb1a08de75c3db3042 | 213 | KotlinTutorials | Apache License 2.0 |
library/resource-noexec-tor/src/nativeTest/kotlin/io/matthewnelson/kmp/tor/resource/noexec/tor/ResourceLoaderNoExecNativeUnitTest.kt | 05nelsonm | 734,754,650 | false | {"Kotlin": 322914, "Shell": 1152, "Java": 1086, "JavaScript": 14} | /*
* Copyright (c) 2024 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 13 | Kotlin | 0 | 1 | 54b305c97e9b5c8a959a65d4d1ee378afb3dd8f6 | 1,073 | kmp-tor-resource | Apache License 2.0 |
app/src/androidTest/java/com/noisyninja/androidlistpoc/modules/NetworkModuleTest.kt | LinxFae | 162,831,019 | true | {"Kotlin": 71084, "Java": 15779} | package com.noisyninja.androidlistpoc.modules
import android.support.test.runner.AndroidJUnit4
import com.noisyninja.androidlistpoc.BuildConfig
import com.noisyninja.androidlistpoc.BuildConfig.RESULT_COUNT
import com.noisyninja.androidlistpoc.layers.network.NetworkModule
import okhttp3.OkHttpClient
import okhttp3.logg... | 0 | Kotlin | 0 | 0 | 67a2bb55a1c7bc3ab6f259954d87ed4f38839b03 | 2,128 | AndroidArch | Apache License 2.0 |
app/shared/ktor-client/public/src/commonMain/kotlin/build/wallet/ktor/result/HttpBodyError.kt | proto-at-block | 761,306,853 | false | {"C": 10424094, "Kotlin": 7156393, "Rust": 2046237, "Swift": 700307, "Python": 331492, "HCL": 271992, "Shell": 111209, "TypeScript": 102700, "C++": 64770, "Meson": 64234, "JavaScript": 36227, "Just": 28071, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.ktor.result
import io.ktor.client.call.HttpClientCall
sealed class HttpBodyError : NetworkingError() {
/**
* [HttpClientCall.body] can be only called once. This error indicates that [HttpClientCall.body]
* was already called.
*/
data class DoubleReceiveError(
override val cause: ... | 0 | C | 10 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 670 | bitkey | MIT License |
src/fr/anisama/src/eu/kanade/tachiyomi/animeextension/fr/anisama/AniSamaFilters.kt | almightyhak | 817,607,446 | false | {"Kotlin": 4066862} | package eu.kanade.tachiyomi.animeextension.fr.anisama
import eu.kanade.tachiyomi.animesource.model.AnimeFilter
import eu.kanade.tachiyomi.animesource.model.AnimeFilterList
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.OkHttpClient
import org.jsoup.nodes.Document
import o... | 55 | Kotlin | 28 | 93 | 507dddff536702999357b17577edc48353eab5ad | 3,262 | aniyomi-extensions | Apache License 2.0 |
plugin/src/main/java/app/cash/paraphrase/plugin/model/ResourceFolder.kt | cashapp | 568,984,928 | false | {"Kotlin": 116632} | /*
* Copyright (C) 2023 Cash App
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 16 | Kotlin | 5 | 165 | b11af777ea4379724427aed1c64fadf81449fc37 | 841 | paraphrase | Apache License 2.0 |
kotlin-antd/src/main/kotlin/antd/button/Button.kt | oxiadenine | 206,398,615 | false | {"Kotlin": 1619835, "HTML": 1515} | @file:JsModule("antd/lib/button")
@file:JsNonModule
package antd.button
import antd.*
import antd.ReactNode
import antd.configprovider.SizeType
import org.w3c.dom.HTMLElement
import react.*
@JsName("default")
external object ButtonComponent : Component<ButtonProps, ButtonState> {
val Group: ButtonGroupComponent
... | 1 | Kotlin | 8 | 50 | e0017a108b36025630c354c7663256347e867251 | 1,443 | kotlin-js-wrappers | Apache License 2.0 |
kstore/src/main/kotlin/react/kstore/dependency/DependsOn5MergeBuilder.kt | minorbyte | 194,674,817 | false | null | @file:Suppress("UNCHECKED_CAST")
package react.kstore.dependency
import react.kstore.UpdateableStore
open class DependsOn5MergeBuilder<STATE : Any, D1 : Any, D2 : Any, D3 : Any, D4 : Any, D5 : Any>(
store: UpdateableStore<STATE>,
dependencies: Array<out Any>
) : DependsOnMergeArrayBuilder<STATE>(
... | 0 | Kotlin | 0 | 0 | b91a6a00d4e60a84dc8bceba5dd02c3aa352ca88 | 2,149 | kotlin-reactive-store | MIT License |
src/commonMain/kotlin/baaahs/client/document/DocumentManager.kt | baaahs | 174,897,412 | false | {"Kotlin": 4817815, "C": 1529197, "C++": 661363, "GLSL": 412779, "JavaScript": 61944, "HTML": 56277, "CMake": 30499, "CSS": 4340, "Shell": 2381, "Python": 1450} | package baaahs.client.document
import baaahs.DocumentState
import baaahs.PubSub
import baaahs.client.Notifier
import baaahs.doc.DocumentType
import baaahs.doc.FileType
import baaahs.io.Fs
import baaahs.io.RemoteFsSerializer
import baaahs.plugin.Plugins
import baaahs.show.mutable.EditHandler
import baaahs.sm.webapi.*
i... | 83 | Kotlin | 5 | 40 | 77ad22b042fc0ac440410619dd27b468c3b3a600 | 7,274 | sparklemotion | MIT License |
feature/timers/presentation/src/commonMain/kotlin/org/timemates/app/timers/ui/TimerItem.kt | timemates | 575,537,317 | false | null | package io.timemates.app.timers.ui
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
impo... | 21 | null | 0 | 27 | af5f6048c2cef30ac56d80754de54849650d78d2 | 4,722 | app | MIT License |
ethereumkit/src/test/java/io/horizontalsystems/ethereumkit/core/ExtensionsKtTest.kt | horizontalsystems | 152,531,605 | false | null | package io.horizontalsystems.ethereumkit.core
import org.junit.Test
class ExtensionsKtTest {
@Test
fun removeLeadingZeros() {
val testString1 = "0000F4545"
val testString2 = "0F4545"
val testString3 = "F454500"
assert(testString1.removeLeadingZeros() == "F4545")
asser... | 10 | null | 54 | 98 | 3d83900bc513f4df6575277519277f1a7cc77ab6 | 436 | ethereum-kit-android | MIT License |
app/src/main/java/com/robert/android/lostpets/domain/interactors/AdsInteractor.kt | robertene1994 | 303,119,114 | false | null | package com.robert.android.lostpets.domain.interactors
import com.robert.android.lostpets.domain.interactors.base.BaseCallbackInteractor
import com.robert.android.lostpets.domain.interactors.base.Interactor
import com.robert.android.lostpets.domain.model.Ad
/**
* Interfaz del interactor que se encarga de recuperar t... | 0 | Kotlin | 0 | 0 | a7af7de031d3ab4e2d14851a117d3729330cd875 | 1,009 | lostpets-android | MIT License |
app/src/main/java/com/videoengager/demoapp/Globals.kt | VideoEngager | 367,585,600 | false | null | //
// DemoPureCloud
//
// Copyright © 2021 VideoEngager. All rights reserved.
//
package com.videoengager.demoapp
import com.videoengager.sdk.VideoEngager
class Globals {
companion object {
var chat:VideoEngager?=null
var params:Params?=null
var agentName=""
}
} | 0 | Kotlin | 0 | 0 | b1da4439461aa46f65d22099a4c2069eb1d7339c | 296 | SmartVideo-Android-SDK-Demo-App | MIT License |
client_delivery/shared/src/commonMain/kotlin/presentation/login/composable/WrongPermissionBottomSheet.kt | TheChance101 | 671,967,732 | false | {"Kotlin": 2473455, "Ruby": 8872, "HTML": 6083, "Swift": 4726, "JavaScript": 3082, "CSS": 1436, "Dockerfile": 1407, "Shell": 1140} | package presentation.login.composable
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compo... | 4 | Kotlin | 55 | 572 | 1d2e72ba7def605529213ac771cd85cbab832241 | 2,828 | beep-beep | Apache License 2.0 |
src/main/kotlin/playground/common/idempotencyjpa/jpa/IdempotencyRecord.kt | dtkmn | 596,118,171 | false | {"Kotlin": 334372, "Dockerfile": 763} | package playground.common.idempotencyjpa.jpa
import jakarta.persistence.EmbeddedId
import jakarta.persistence.Entity
import jakarta.persistence.Lob
import jakarta.persistence.Table
import org.springframework.data.domain.Persistable
import playground.common.idempotencyjpa.jpa.IdempotencyPK
import java.time.Instant
@En... | 0 | Kotlin | 0 | 0 | 06b6e996d3d319a7ad390dab9b3f33132f5f0378 | 695 | kotlin-playground | MIT License |
app/src/main/java/com/spring/musk/antibloater/viewmodels/MainActivityViewModel.kt | springmusk026 | 793,017,854 | false | {"Kotlin": 26101, "CMake": 1652, "C++": 273} | package com.spring.musk.antibloater.viewmodels
import android.app.Application
import android.os.Build
import androidx.core.content.edit
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import android.preference.PreferenceManager
import androidx.ann... | 0 | Kotlin | 0 | 0 | 65ca33d01cba8ed10e9713569aa930f02a309f1d | 3,095 | AntiBloater | MIT License |
app/src/test/java/com/mustafa/movieguideapp/viewmodel/MovieSearchViewModelTest.kt | Mustafashahoud | 231,958,118 | false | null | package com.mustafa.movieguideapp.viewmodel
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer
import com.mustafa.movieguideapp.models.Resource
import com.mustafa.movieguideapp.models.entity.Movie
import com.mustafa.movieguide... | 2 | Kotlin | 10 | 98 | 5f12624e566610349ba31d1eece34a32b90aa344 | 3,378 | MoviesApp | Apache License 2.0 |
src/main/kotlin/dev/yjyoon/alreadyme/data/model/PullRequestResponse.kt | readme-generator | 519,125,238 | false | {"Kotlin": 58476} | package dev.yjyoon.alreadyme.data.model
import kotlinx.serialization.Serializable
@Serializable
data class PullRequestResponse(
val pullRequestUrl: String
)
| 0 | Kotlin | 7 | 45 | 5daff682957cff97ec0caa762e606116e3501d19 | 163 | alreadyme-desktop | Apache License 2.0 |
src/commonMain/kotlin/data/buffs/TheRestrainedEssenceOfSapphiron.kt | marisa-ashkandi | 332,658,265 | false | null | package data.buffs
import character.Ability
import character.Buff
import character.Stats
import sim.SimParticipant
class TheRestrainedEssenceOfSapphiron : Buff() {
override val id: Int = 28779
override val name: String = "The Restrained Essence of Sapphiron (static)"
override val icon: String = "inv_trin... | 21 | null | 11 | 25 | 9cb6a0e51a650b5d04c63883cb9bf3f64057ce73 | 1,426 | tbcsim | MIT License |
compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/input/UndoState.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 950 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 2,027 | androidx | Apache License 2.0 |
plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/language/classresolver/CodeWhispererPythonClassResolver.kt | aws | 91,485,909 | false | null | // Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.codewhisperer.language.classresolver
import com.intellij.openapi.application.runReadAction
import com.intellij.psi.PsiFile
import com.jetbrains.python.psi.... | 519 | null | 220 | 757 | a81caf64a293b59056cef3f8a6f1c977be46937e | 1,370 | aws-toolkit-jetbrains | Apache License 2.0 |
app-features/show-details/src/main/kotlin/com/thomaskioko/showdetails/SimilarShowsScreen.kt | c0de-wizard | 361,393,353 | false | null | package com.thomaskioko.showdetails
import androidx.compose.runtime.Composable
@Composable
fun SimilarShowsScreen() {
}
| 2 | Kotlin | 1 | 16 | d1f9432b58155a1f1e2deadc569aac122fcdbe83 | 122 | tv-maniac | Apache License 2.0 |
app/src/main/java/com/login/demo/appview/authentication/login/view/LoginFragment.kt | teamSolutionAnalysts | 507,778,254 | false | {"Kotlin": 114748, "Java": 1080} | package com.login.demo.appview.authentication.login.view
import android.os.Bundle
import android.view.View
import androidx.databinding.ViewDataBinding
import androidx.lifecycle.Observer
import com.login.base.base.BaseFragment
import com.login.base.base.IFragmentState
import com.login.base.model.Resource
import com.log... | 0 | Kotlin | 0 | 0 | a0b288cd96a406ba62aff9ca8344ff6b779954bf | 6,294 | android-snippet | Apache License 2.0 |
idea/idea-completion/testData/basic/java/ExtensionFromStandardLibrary.kt | BytesZero | 50,323,841 | true | {"Java": 15985622, "Kotlin": 12340628, "JavaScript": 177557, "Protocol Buffer": 42724, "HTML": 28743, "Lex": 16598, "ANTLR": 9689, "CSS": 9358, "Groovy": 6859, "Shell": 4638, "IDL": 4580, "Batchfile": 3703} | package first
import java.util.HashMap
fun firstFun() {
val a = HashMap<Int, String>()
a.toLinke<caret>
}
// INVOCATION_COUNT: 1
// EXIST: { lookupString:"toLinkedMap", itemText:"toLinkedMap", tailText:"() for Map<K, V> in kotlin" }
// NOTHING_ELSE
| 0 | Java | 0 | 1 | aca19ed27a751d7d6b0d276e7d2cfbf579fe1f87 | 256 | kotlin | Apache License 2.0 |
vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/unit/Async.kt | tsegismont | 136,018,012 | false | {"Maven POM": 7, "Ignore List": 1, "EditorConfig": 1, "Text": 1, "Markdown": 1, "JAR Manifest": 2, "Java": 200, "AsciiDoc": 66, "XML": 10, "Java Properties": 1, "Groovy": 14, "Ruby": 27, "Kotlin": 245, "JavaScript": 40, "FreeMarker": 1, "JSON": 1} | package io.vertx.kotlin.ext.unit
import io.vertx.ext.unit.Async
import io.vertx.kotlin.coroutines.awaitResult
/**
* Completion handler to receive a completion signal when this completions completes.
*
* @param completionHandler the completion handler
*
* <p/>
* NOTE: This function has been automatically generat... | 1 | null | 1 | 1 | 5bed3976c3e3a08efad73123dcf024e067825c98 | 515 | vertx-base-stack | Apache License 2.0 |
exercises/exercise_13/StepCounter/app/src/main/java/fi/tuni/sinipelto/stepcounter/UserPrompt.kt | sinipelto | 405,707,763 | false | {"Kotlin": 337051, "HTML": 6061, "Java": 1248} | package fi.tuni.sinipelto.stepcounter
import android.app.AlertDialog
import android.content.Context
import android.content.DialogInterface
// Class for creating yes-no, neutral, or non-interactive dialog prompts to the user.
// Allows for either accept-only or both accept/deny dialogs with caller-provided action call... | 0 | Kotlin | 0 | 0 | c91c376880f0d1be540266b84d1f57a3a86a8fd9 | 1,935 | android-dev | MIT License |
exercises/exercise_13/StepCounter/app/src/main/java/fi/tuni/sinipelto/stepcounter/UserPrompt.kt | sinipelto | 405,707,763 | false | {"Kotlin": 337051, "HTML": 6061, "Java": 1248} | package fi.tuni.sinipelto.stepcounter
import android.app.AlertDialog
import android.content.Context
import android.content.DialogInterface
// Class for creating yes-no, neutral, or non-interactive dialog prompts to the user.
// Allows for either accept-only or both accept/deny dialogs with caller-provided action call... | 0 | Kotlin | 0 | 0 | c91c376880f0d1be540266b84d1f57a3a86a8fd9 | 1,935 | android-dev | MIT License |
app/src/main/java/com/example/efpro/notizen/Activities/LoginActivity.kt | diegoestradaXO | 171,679,139 | false | null | package com.example.efpro.notizen.Activities
/*This is an activity from Firebase al copyrights reserved*/
/*We took these activity from Firebase and make some changes*/
import android.content.Intent
import android.os.Bundle
import android.text.TextUtils
import android.util.Log
import android.view.View
import android.v... | 0 | Kotlin | 0 | 0 | 27c280c3e013c97195609c394e561ec9519f2928 | 9,178 | Notizen-App | MIT License |
ktor-server/ktor-server-netty/jvm/src/io/ktor/server/netty/cio/NettyRequestQueue.kt | LloydFinch | 166,520,021 | false | null | package io.ktor.server.netty.cio
import io.ktor.server.netty.*
import kotlinx.coroutines.*
import kotlinx.coroutines.channels.*
import kotlinx.coroutines.internal.*
import java.util.concurrent.atomic.*
internal class NettyRequestQueue(internal val readLimit: Int, internal val runningLimit: Int) {
init {
r... | 0 | null | 0 | 2 | 9b9fc6c3b853c929a806c65cf6bf7c104b4c07fc | 1,867 | ktor | Apache License 2.0 |
kotlin.web.demo.server/examples/Kotlin in Action/Chapter 6/6.3/5_3_Arrays2.kt | arrow-kt | 117,599,238 | false | null | package ch06.ex3_5_3_Arrays2
fun main(args: Array<String>) {
val strings = listOf("a", "b", "c")
println("%s/%s/%s".format(*strings.toTypedArray()))
}
| 2 | null | 4 | 7 | 7165d9568d725c9784a1e7525f35bab93241f292 | 160 | try.arrow-kt.io | Apache License 2.0 |
app/src/test/java/com/example/adidaschallenge/models/ProductTest.kt | Mansourx | 364,721,597 | false | null | package com.example.adidaschallenge.models
import io.mockk.MockKAnnotations
import io.mockk.every
import io.mockk.impl.annotations.MockK
import org.assertj.core.api.Assertions.assertThat
import org.junit.After
import org.junit.Before
import org.junit.Test
/**
* Created by <NAME> on 5/8/21
* Dubai, UAE.
*/
class... | 0 | Kotlin | 0 | 1 | 08c60ebc9453a7a85c6acca778dc265e8f813cc2 | 3,029 | Adidas-App | Apache License 2.0 |
validk-micronaut/sample-project/src/main/kotlin/com/test/controller/rest/RestManualValidation.kt | cosmin-marginean | 632,603,727 | false | null | package com.test.controller.rest
import com.test.controller.CreateUserForm
import io.micronaut.http.HttpResponse
import io.micronaut.http.MediaType
import io.micronaut.http.annotation.*
import io.validk.micronaut.validateRequest
@Controller
class RestManualValidation {
@Post("/users/create/manual-validation")
... | 0 | Kotlin | 0 | 3 | 97d42924b219997e1c19cf5fb12fd43d03e5830c | 653 | validk | Apache License 2.0 |
server/src/ru/spbstu/gyboml/server/session/SessionListener.kt | zhenyatos | 240,080,036 | false | {"Java": 217578, "PLSQL": 19910, "Kotlin": 12390} | package ru.spbstu.gyboml.server.session
import com.esotericsoftware.kryonet.Connection
import com.esotericsoftware.kryonet.Listener
import ru.spbstu.gyboml.core.Player
import ru.spbstu.gyboml.core.PlayerType.FIRST_PLAYER
import ru.spbstu.gyboml.core.PlayerType.SECOND_PLAYER
import ru.spbstu.gyboml.core.net.SessionRequ... | 1 | Java | 0 | 2 | 7f9c05c8ed5af43405b7e6f2abf8358a5be47c5a | 4,144 | GYBoML | MIT License |
networksurvey/src/main/java/com/craxiom/networksurvey/ui/wifi/WifiSpectrumScreen.kt | christianrowlands | 156,117,885 | false | null | package com.craxiom.networksurvey.ui.wifi
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.fo... | 5 | null | 25 | 95 | 866b838da2d2fd74e343d6f153ab9f869a255e4a | 7,764 | android-network-survey | Apache License 2.0 |
src/main/kotlin/api/utils/Documents.kt | sszuev | 118,141,450 | false | null | package com.github.sszuev.ontconverter.api.utils
import com.github.owlcs.ontapi.OntFormat
import com.github.owlcs.ontapi.OntGraphDocumentSource
import org.apache.jena.graph.Graph
import org.semanticweb.owlapi.io.FileDocumentSource
import org.semanticweb.owlapi.io.IRIDocumentSource
import org.semanticweb.owlapi.io.OWLO... | 1 | Kotlin | 7 | 19 | eb2d0c6dc9f6fa3c2113f6003ff8f2fb3cbfcb76 | 1,720 | ont-converter | Apache License 2.0 |
app/src/main/java/com/mobjoy/gemini_tryout/MainActivity.kt | MohamedElattar22 | 737,571,461 | false | {"Kotlin": 4279} | package com.mobjoy.gemini_tryout
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.appcompat.app.AppCompatDelegate
import androidx.core.view.WindowCompat
import androidx.core.view.isVisible
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.lifecycleScope
impor... | 0 | Kotlin | 0 | 0 | 874d91b5b4ab86e3e48cf6b60e5582b04499ca5a | 1,631 | Gemini_Tryout | MIT License |
.teamcity/settings.kts | DTS-STN | 462,800,260 | false | {"JavaScript": 123975, "Kotlin": 15339, "Mustache": 1688, "Dockerfile": 1033, "CSS": 609, "Shell": 312} | import jetbrains.buildServer.configs.kotlin.v2019_2.*
import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.dockerCommand
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.script
import jetbrains.buildServer.configs.kotlin.v2019_2.... | 12 | JavaScript | 1 | 0 | 6f05e281e49294d7f3613248901cc790bca8a53a | 15,325 | Scrum-Poker | MIT License |
spark/src/main/kotlin/com/adevinta/spark/components/toggles/SwitchDefaults.kt | adevinta | 598,741,849 | false | null | /*
* Copyright (c) 2023 Adevinta
*
* 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, d... | 45 | null | 6 | 67 | bb0e00f2b574a3c57c5c3bd91969362c7c91c7fa | 3,507 | spark-android | MIT License |
src/test/kotlin/no/nav/syfo/pdl/client/TestData.kt | navikt | 238,714,111 | false | null | package no.nav.syfo.pdl.client
fun getTestData(): String {
return "{\n" +
" \"data\": {\n" +
" \"person\": {\n" +
" \"navn\": [\n" +
" {\n" +
" \"fornavn\": \"RASK\",\n" +
" \"mellomnavn\": null,\n" +
" \"etternavn\"... | 0 | Kotlin | 0 | 0 | 76b5aa68d376b85cef31905bdffe41dd2e387c0d | 1,777 | sykmeldinger-backend | MIT License |
src/test/kotlin/io/andrewohara/dynamokt/samples/BeanTableExtensions.kt | oharaandrew314 | 421,600,664 | false | {"Kotlin": 50709} | package io.andrewohara.dynamokt.samples
import io.andrewohara.dynamokt.DataClassTableSchema
import io.andrewohara.dynamokt.DynamoKtPartitionKey
import io.kotest.matchers.nulls.shouldNotBeNull
import io.kotest.matchers.shouldBe
import org.http4k.aws.AwsSdkClient
import org.http4k.connect.amazon.dynamodb.FakeDynamoDb
im... | 1 | Kotlin | 3 | 20 | cf9f6f1d2991b2c7ecbbe2f8836008855462db5f | 3,317 | dynamodb-kotlin-module | Apache License 2.0 |
app/src/main/kotlin/com/glodanif/bluetoothchat/data/model/MessagesStorageImpl.kt | Andrulko | 131,834,733 | true | {"Kotlin": 285127} | package com.glodanif.bluetoothchat.data.model
import android.content.Context
import android.os.Handler
import com.glodanif.bluetoothchat.data.database.Storage
import com.glodanif.bluetoothchat.data.database.MessagesDao
import com.glodanif.bluetoothchat.data.entity.ChatMessage
import java.io.File
import kotlin.concurre... | 1 | Kotlin | 0 | 0 | 5d99bba804bdf7d78c7c9a38e1209d38746bb34f | 1,641 | BluetoothChat | Apache License 2.0 |
dependency-guard/src/main/kotlin/com/dropbox/gradle/plugins/dependencyguard/internal/utils/DependencyListDiffResult.kt | dropbox | 469,908,487 | false | {"Kotlin": 90632} | package com.dropbox.gradle.plugins.dependencyguard.internal.utils
import java.io.File
internal sealed class DependencyListDiffResult {
internal class BaselineCreated(
projectPath: String,
configurationName: String,
baselineFile: File,
) : DependencyListDiffResult() {
private v... | 18 | Kotlin | 12 | 293 | 6ece4590df4728cd03250936ca0155392562a129 | 2,499 | dependency-guard | Apache License 2.0 |
plot-base-portable/src/commonMain/kotlin/jetbrains/datalore/plot/base/stat/StatUtil.kt | b7w | 397,769,862 | true | {"Kotlin": 5197304, "Python": 774830, "C": 2832, "CSS": 1948, "Shell": 1773, "JavaScript": 1121} | /*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.plot.base.stat
import jetbrains.datalore.plot.base.DataFrame
import jetbrains.datalore.plot.base.data.TransformVar
import jetbrains.datalore.plot.b... | 1 | null | 0 | 0 | d75d67cd94448b548c59520392385ec41de84bfe | 4,210 | lets-plot | MIT License |
feature_feed_url_hook/src/main/java/com/phicdy/mycuration/feedurlhook/FeedUrlHookPresenter.kt | phicdy | 24,188,186 | false | {"Kotlin": 688608, "HTML": 1307, "Shell": 1127} | package com.phicdy.mycuration.feedurlhook
import android.content.Intent
import com.phicdy.mycuration.data.repository.RssRepository
import com.phicdy.mycuration.domain.rss.RssParseExecutor
import com.phicdy.mycuration.domain.rss.RssParseResult
import com.phicdy.mycuration.domain.rss.RssParser
import com.phicdy.mycurati... | 43 | Kotlin | 9 | 30 | 6c8bafba7341c1003da2196bd618b9505f32e42c | 2,819 | MyCuration | MIT License |
kmp/remote/cloud/src/commonTest/kotlin/io/github/reactivecircus/kstreamlined/kmp/remote/mapper/FeedSourceMappersTest.kt | ReactiveCircus | 513,535,591 | false | {"Kotlin": 529824} | package io.github.reactivecircus.kstreamlined.kmp.remote.mapper
import io.github.reactivecircus.kstreamlined.graphql.FeedSourcesQuery
import io.github.reactivecircus.kstreamlined.graphql.type.FeedSourceKey
import io.github.reactivecircus.kstreamlined.kmp.remote.model.FeedSource
import kotlin.test.Test
import kotlin.te... | 3 | Kotlin | 0 | 4 | 3925f94003740930ff8af4648aea746d070459dc | 1,941 | kstreamlined-mobile | Apache License 2.0 |
blockball-bukkit-plugin/src/main/java/com/github/shynixn/blockball/bukkit/logic/business/extension/ExtensionMethods.kt | yoloyolicko | 184,437,057 | true | {"Kotlin": 1179158, "Java": 99604, "Shell": 2544} | @file:Suppress("unused", "DEPRECATION")
package com.github.shynixn.blockball.bukkit.logic.business.extension
import com.github.shynixn.blockball.api.business.enumeration.*
import com.github.shynixn.blockball.api.business.enumeration.GameMode
import com.github.shynixn.blockball.api.persistence.entity.*
import com.gith... | 0 | Kotlin | 0 | 0 | d64bdbb78fc730cfb52e7cb0d5c55808e69370ac | 14,392 | BlockBall | Apache License 2.0 |
src/test/kotlin/org/rust/ide/navigation/goto/RsGotoTypeDeclarationTest.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.navigation.goto
import com.intellij.openapi.actionSystem.IdeActions.ACTION_GOTO_TYPE_DECLARATION
import org.intellij.lang.annotations.Language
import org.rust.RsTestBase
class RsGotoTypeDec... | 1,841 | null | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 5,596 | intellij-rust | MIT License |
app/src/main/java/com/pri/architecture_boilerplate/binding/FragmentBindingAdapters.kt | priyanka-rani | 218,155,486 | false | null | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1 | null | 1 | 1 | 18a74203aebf027e66254925663023aefb6b685b | 4,062 | architecture_dagger_binding_pri | Apache License 2.0 |
src/main/kotlin/no/nav/helseidnavtest/edi20/EDI20DialogmeldingGenerator.kt | navikt | 754,033,318 | false | {"Kotlin": 156431} | package no.nav.helseidnavtest.edi20
import jakarta.xml.bind.Marshaller
import no.nav.helseidnavtest.dialogmelding.Fødselsnummer
import no.nav.helseidnavtest.dialogmelding.HerId
import no.nav.helseidnavtest.dialogmelding.Pasient
import no.nav.helseidnavtest.oppslag.person.PDLClient
import org.springframework.stereotype... | 2 | Kotlin | 0 | 0 | 3a0e2d517550c94bbe24eb90d4d2a196ecb06791 | 1,210 | helseid-nav-test | MIT License |
neo4j-store/src/main/resources/OnRegionApprovedAction.kts | ostelco | 112,729,477 | false | {"Gradle Kotlin DSL": 51, "YAML": 65, "Go": 13, "Go Checksums": 1, "Markdown": 48, "Shell": 48, "Text": 3, "Ignore List": 24, "Batchfile": 1, "Go Module": 1, "Kotlin": 372, "JSON": 24, "Dockerfile": 11, "XML": 28, "Java": 11, "Java Properties": 3, "Protocol Buffer": 2, "Python": 2, "SQL": 4, "PLpgSQL": 2, "GraphQL": 2,... | import arrow.core.Either
import arrow.core.extensions.fx
import org.ostelco.prime.auditlog.AuditLog
import org.ostelco.prime.dsl.WriteTransaction
import org.ostelco.prime.dsl.withId
import org.ostelco.prime.model.Customer
import org.ostelco.prime.storage.StoreError
import org.ostelco.prime.storage.graph.OnRegionApprove... | 23 | Kotlin | 13 | 37 | b072ada4aca8c4bf5c3c2f6fe0d36a5ff16c11af | 1,274 | ostelco-core | Apache License 2.0 |
fetch2/src/main/java/com/tonyodev/fetch2/database/migration/MigrationTwoToThree.kt | SanthosiBrt | 138,884,041 | false | {"Java Properties": 3, "YAML": 1, "Gradle": 11, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Text": 4, "Ignore List": 9, "Proguard": 8, "Java": 45, "XML": 142, "Kotlin": 100, "JSON": 109} | package com.tonyodev.fetch2.database.migration
import android.arch.persistence.db.SupportSQLiteDatabase
import com.tonyodev.fetch2.EnqueueAction
import com.tonyodev.fetch2.database.DownloadDatabase
class MigrationTwoToThree : Migration(2, 3) {
override fun migrate(database: SupportSQLiteDatabase) {
datab... | 1 | null | 1 | 1 | 5e4fcb0ae4d7037f0b949e947d1f2084383e2e3f | 517 | Fetch | Apache License 2.0 |
kaff4-core/kaff4-core-test/src/main/kotlin/net/navatwo/kaff4/UnderTest.kt | Nava2 | 555,850,412 | false | null | package net.navatwo.kaff4
import javax.inject.Qualifier
/**
* Defines a value that is provided from a test rule.
*/
@Target(
AnnotationTarget.PROPERTY,
AnnotationTarget.VALUE_PARAMETER,
AnnotationTarget.FUNCTION,
AnnotationTarget.FIELD,
)
@Qualifier
annotation class UnderTest
| 7 | Kotlin | 0 | 1 | b0df931c9be6378bd9fc7f6d182d1a35b3034c2f | 289 | kaff4 | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.