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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
domain/src/main/java/com/thelazybattley/domain/local/usecase/impl/GetLocationUseCaseImpl.kt | dellosaneil | 720,658,411 | false | {"Kotlin": 220688} | package com.thelazybattley.domain.local.usecase.impl
import com.thelazybattley.domain.local.usecase.GetLocationUseCase
import com.thelazybattley.domain.repository.WeatherRepository
import javax.inject.Inject
class GetLocationUseCaseImpl @Inject constructor(
private val repository: WeatherRepository
): GetLocation... | 0 | Kotlin | 0 | 0 | e4a5c6038257f3d172fe2c999fb88323ddf628c4 | 393 | weather-app | Apache License 2.0 |
app/src/main/java/io/github/stcksmsh/beogradplusplus/TopBar.kt | stcksmsh | 692,860,368 | false | {"Kotlin": 20891} | package io.github.stcksmsh.beogradplusplus
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.text.BasicTextField
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.com... | 3 | Kotlin | 0 | 0 | 0933321808de173a58b00fb9cb4f4aeb0e6bbc18 | 4,629 | BeogradPlusPlus | MIT License |
common/src/commonMain/kotlin/com.chrynan.video.common/repository/VideoRepository.kt | chRyNaN | 174,161,260 | false | null | package com.chrynan.video.common.repository
import com.chrynan.video.common.model.api.VideoDetails
import com.chrynan.video.common.model.core.ID
import com.chrynan.video.common.model.core.UriString
import kotlinx.coroutines.flow.Flow
interface VideoRepository {
fun getVideoDetails(providerUri: UriString, videoId... | 0 | Kotlin | 0 | 8 | 63456dcfdd57dbee9ff02b2155b7e1ec5761db81 | 348 | Video | Apache License 2.0 |
time-service/app/src/test/kotlin/com/example/marvel/domain/recordcollection/RecordCollectionDetailedViewDefaultTest.kt | soberich | 194,400,851 | false | null | package com.example.marvel.domain.recordcollection
import com.example.marvel.api.RecordDetailedView
import io.mockk.MockKAnnotations
import io.mockk.impl.annotations.MockK
import java.time.YearMonth
import org.junit.Before
class RecordCollectionDetailedViewDefaultTest {
private lateinit var cut: RecordCollectionD... | 0 | Kotlin | 1 | 6 | f737108d2fb4fdab4e003ba7aeae252e557d7b1f | 778 | marvel | MIT License |
app/src/main/java/com/laotoua/dawnislandk/screens/posts/PostsFragment.kt | dd-fantasy | 284,289,786 | true | {"Kotlin": 556259, "HTML": 16531} | /*
* Copyright 2020 Fishballzzz
* *
* * 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... | 0 | Kotlin | 0 | 0 | 80f8f28b499a41c84360a9201147df3b54bb9e77 | 12,993 | DawnIslandK | Apache License 2.0 |
src/main/kotlin/edu/csh/chase/kjson/JsonArray.kt | chaseberry | 42,316,899 | false | null | package edu.csh.chase.kjson
import java.io.IOException
import java.io.StringWriter
import java.io.Writer
import java.util.*
class JsonArray() : JsonBase(), Iterable<Any?> {
private val array = ArrayList<Any?>()
override val size: Int
get() {
return array.size
}
val indices: ... | 1 | Kotlin | 1 | 1 | 1adcd91adc93be3c6f628d61b703176a861ebe7c | 17,827 | KJson | Apache License 2.0 |
packages/connector/interface/src/entities/CollectionField.kt | onesuper | 383,790,225 | true | {"TypeScript": 1301636, "Kotlin": 78113, "Shell": 6335, "Mustache": 4893, "JavaScript": 3357, "HTML": 2613, "Dockerfile": 1275, "CSS": 782} | package io.tellery.entities
data class CollectionField(val collection: String, val schema: String?)
| 0 | null | 0 | 0 | a4b1b6bd9422226cc3abf1d61a16f57f88553db0 | 101 | tellery | Apache License 2.0 |
src/test/kotlin/utils/models/StateCheckableProcess.kt | NoGe4Ek | 618,101,180 | false | null | package utils.models
import ipc.Process
import kotlin.test.assertTrue
class StateCheckableProcess(name: String, port: Int) : Process(name, port) {
fun isTearDownCorrectly() {
assertTrue(clientSockets.all { it.isClosed } && serverSocket.isClosed)
assertTrue(clientThreads.all { it.isAlive.not() } &&... | 1 | Kotlin | 0 | 1 | a59e0aa15b04578befea3e81f6af09f484a49794 | 571 | BabyBlockchain | Apache License 2.0 |
feature/search/src/main/java/com/him/sama/spotifycompose/search/component/Header.kt | arohim | 762,735,266 | false | {"Kotlin": 251979} | package com.him.sama.spotifycompose.search.component
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.... | 0 | Kotlin | 0 | 0 | 826694a8a38dc6f53b48e3a337c8bd15a0f8549c | 2,445 | SpotifyJetpackCompose | Apache License 2.0 |
sample/src/main/java/com/fvalela/calendarjetpackcompose/sample/DefaultWithIncreasedVerticalPaddingCalendar.kt | fvalela1 | 348,388,275 | false | null | package com.fvalela.calendarjetpackcompose.sample
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillM... | 4 | Kotlin | 0 | 9 | b3d86ef07805c448afeb5d9f0bfff7675efd516a | 1,453 | CalendarJetpackCompose | Apache License 2.0 |
src/test/kotlin/g2501_2600/s2579_count_total_number_of_colored_cells/SolutionTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4870729, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g2501_2600.s2579_count_total_number_of_colored_cells
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
internal class SolutionTest {
@Test
fun coloredCells() {
assertThat(Solution().coloredCells(1), equalTo(1L))
}
@... | 0 | Kotlin | 20 | 43 | e8b08d4a512f037e40e358b078c0a091e691d88f | 419 | LeetCode-in-Kotlin | MIT License |
src/main/kotlin/ru/krindra/vknorthtypes/groups/GroupsGetRequestsFieldsResponse.kt | kravandir | 745,597,090 | false | {"Kotlin": 633233} | package ru.krindra.vknorthtypes.groups
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import ru.krindra.vknorthtypes.users.UsersUserFull
@Serializable()
data class GroupsGetRequestsFieldsRawResponse (
@SerialName("count") val count: Int,
@SerialName("items") val items: List<... | 0 | Kotlin | 0 | 0 | 508d2d1d59c4606a99af60b924c6509cfec6ef6c | 456 | VkNorthTypes | MIT License |
poreia-core/src/main/kotlin/io/github/smecsia/poreia/core/impl/BasicThreadPoolBuilder.kt | smecsia | 532,748,095 | false | {"Kotlin": 222991} | package io.github.smecsia.poreia.core.impl
import io.github.smecsia.poreia.core.api.ThreadPool
import io.github.smecsia.poreia.core.api.ThreadPoolBuilder
import java.util.concurrent.Executors.newFixedThreadPool
class BasicThreadPoolBuilder : ThreadPoolBuilder {
override fun build(size: Int): ThreadPool {
... | 0 | Kotlin | 0 | 1 | 16245df5f8431a730e4161dddf646e0c14432d51 | 721 | poreia | MIT License |
src/test/kotlin/com/boardgames/uno/exceptions/ValidationExceptionTest.kt | shiviraj | 463,034,209 | false | {"Kotlin": 83840, "Procfile": 96} | package com.boardgames.exceptions
import com.boardgames.exceptions.exceptions.ErrorResponse
import com.boardgames.exceptions.exceptions.ServiceError
import com.boardgames.exceptions.exceptions.ValidationErrorDetails
import com.boardgames.exceptions.exceptions.ValidationException
import io.kotest.matchers.shouldBe
impo... | 0 | Kotlin | 0 | 0 | a1bd2f4eab38e121f65c2e8bf798097f16e9e836 | 950 | boilerplate-backend | MIT License |
src/main/kotlin/dev/janssenbatista/pomodorotimer/utils/PreferenceUtils.kt | janssenbatista | 630,281,629 | false | null | package dev.janssenbatista.pomodorotimer.utils
import dev.janssenbatista.pomodorotimer.models.Preferences
import java.io.File
import java.io.FileInputStream
import java.io.FileOutputStream
import java.nio.file.Files
import java.nio.file.Path
import java.nio.file.Paths
import java.util.*
object PreferenceUtils {
... | 0 | Kotlin | 0 | 1 | cc87aa67e51b27558934a41ef98650e520f21f77 | 2,935 | desktop-pomodoro-timer | MIT License |
app/src/main/java/com/speakerboxlite/rxentity/Entity.kt | AlexExiv | 240,526,542 | false | null | package com.speakerboxlite.rxentity
interface Entity<Key: Comparable<Key>>
{
val _key: Key
}
typealias EntityInt = Entity<Int>
typealias EntityLong = Entity<Long>
typealias EntityString = Entity<String>
interface EntityBack<Key: Comparable<Key>>
{
val _key: Key
}
typealias EntityBackInt = EntityBack<Int>
ty... | 0 | Kotlin | 0 | 0 | d100c2a1bd34c0e791df6e812f30a611b6779725 | 546 | RxEntity-Kotlin | MIT License |
modules/services/core-ui/src/main/java/com/markettwits/core_ui/di/ProvideViewMoel.kt | MarketTwits | 689,047,730 | false | {"Kotlin": 242276} | package com.markettwits.core_ui.di
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewmodel.compose.LocalViewModelStoreOwner
import com.markettwits.core.di.ProvideViewModel
@Composable
inline fun <reified T : Vi... | 0 | Kotlin | 0 | 0 | 6d40b53a68a12cffc635027e6ff9f10f86f06bb2 | 531 | WaifuPics | MIT License |
app/src/main/java/com/renaisn/reader/ui/qrcode/QrCodeActivity.kt | RenaisnNce | 598,532,496 | false | null | package com.renaisn.reader.ui.qrcode
import android.content.Intent
import android.graphics.BitmapFactory
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import com.google.zxing.Result
import com.king.zxing.CameraScan.OnScanResultCallback
import com.renaisn.reader.R
import com.renaisn.rea... | 1 | Kotlin | 1 | 4 | 4ac03e214e951f7f4f337d4da1f7e39fa715d1c0 | 2,058 | Renaisn_Android | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/lightsail/CfnStaticIpPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.lightsail
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.lightsail.CfnStaticIpProps
@Generated
public fun buildCfnStaticIpProps(initializer: @AwsCdkDsl CfnStaticIpProps.Builder.() -> Un... | 1 | Kotlin | 0 | 0 | e08d201715c6bd4914fdc443682badc2ccc74bea | 402 | aws-cdk-kt | Apache License 2.0 |
app-backend/src/main/kotlin/link/kotlin/server/plugins/HTTP.kt | KotlinBy | 40,936,978 | false | null | package link.kotlin.server.plugins
import com.auth0.jwt.JWT
import com.auth0.jwt.algorithms.Algorithm
import io.ktor.application.Application
import io.ktor.application.call
import io.ktor.application.install
import io.ktor.auth.authentication
import io.ktor.auth.jwt.JWTPrincipal
import io.ktor.auth.jwt.jwt
import io.k... | 20 | Kotlin | 1127 | 9,869 | 38a336cb6953e0e7a1f0b511aee7902a3996fbb5 | 2,994 | awesome-kotlin | Apache License 2.0 |
cryptography-core/src/commonMain/kotlin/algorithms/Digest.kt | whyoleg | 492,907,371 | false | {"Kotlin": 1074574, "JavaScript": 318} | /*
* Copyright (c) 2023-2024 <NAME>. Use of this source code is governed by the Apache 2.0 license.
*/
@file:OptIn(CryptographyProviderApi::class)
package dev.whyoleg.cryptography.algorithms
import dev.whyoleg.cryptography.*
import dev.whyoleg.cryptography.operations.*
//simple hash algorithms, that can be used i... | 10 | Kotlin | 20 | 302 | 69b77a88b4b81109704475ed02be48d263d1a1c8 | 1,343 | cryptography-kotlin | Apache License 2.0 |
criminal-intent/src/main/java/com/bignerdranch/android/criminalintent/crimefragment/CrimeViewModel.kt | v43d3rm4k4r | 541,134,762 | false | null | package com.bignerdranch.android.criminalintent.crimefragment
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.bignerdranch.android.criminalintent.CrimeRepository
import com.bignerdranch.android.criminalintent.model.Crime
import java.io.File
... | 0 | Kotlin | 0 | 2 | b61a3976e89f60b36fcb49b89924423b1c06dc3a | 961 | BigNerdRanchAndroid | Apache License 2.0 |
src/main/kotlin/pl/exbook/exbook/category/adapter/mongodb/DatabaseCategoryRepository.kt | Ejden | 339,380,956 | false | null | package pl.exbook.exbook.category.adapter.mongodb
import org.springframework.stereotype.Component
import pl.exbook.exbook.category.domain.Category
import pl.exbook.exbook.shared.CategoryId
import pl.exbook.exbook.category.domain.CategoryRepository
import pl.exbook.exbook.category.domain.Image
@Component
class Databas... | 3 | Kotlin | 0 | 1 | 977fffb4e75b5850efd74d2d0165b09bb5740117 | 1,431 | exbook-backend | The Unlicense |
app/src/commonMain/kotlin/features/scan/ScanScreenModel.kt | JuulLabs | 293,729,751 | false | {"Kotlin": 85988, "Swift": 617, "HTML": 237} | package com.juul.sensortag.features.scan
import cafe.adriel.voyager.core.model.ScreenModel
import cafe.adriel.voyager.core.model.screenModelScope
import cafe.adriel.voyager.core.screen.Screen
import com.juul.kable.Bluetooth
import com.juul.kable.ExperimentalApi
import com.juul.kable.Peripheral
import com.juul.kable.Pl... | 2 | Kotlin | 14 | 54 | e6c4ec1d8d42f42d5a44b2ddc9fc211e7e6b9568 | 7,397 | sensortag | Apache License 2.0 |
selectiondialog/src/main/java/br/com/kamarugosan/selectiondialog/SelectionAdapter.kt | Kamarugo-san | 377,204,165 | false | null | package br.com.kamarugosan.selectiondialog
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import java.util.*
import kotlin.collections.ArrayList
class SelectionAdapter(
private val fullDataSet: List<SelectionOption>,
private val selectionListe... | 0 | Kotlin | 0 | 3 | 743403d998573fcfc6878b455cd3dab2e397271a | 3,747 | selection-dialog | Apache License 2.0 |
core/src/commonMain/kotlin/work/socialhub/kmastodon/api/FollowRequestsResource.kt | uakihir0 | 783,390,459 | false | {"Kotlin": 167667, "Ruby": 2191, "Shell": 2164, "Makefile": 319} | package work.socialhub.kmastodon.api
import work.socialhub.kmastodon.api.request.followrequests.FollowRequestsAuthorizeFollowRequestRequest
import work.socialhub.kmastodon.api.request.followrequests.FollowRequestsRejectFollowRequestRequest
import work.socialhub.kmastodon.api.response.Response
import work.socialhub.kma... | 0 | Kotlin | 0 | 1 | 8d3278cff7a164cbe9e9ad978a9b28e743d1c96d | 993 | kmastodon | MIT License |
aws/ses/src/main/kotlin/io/bluetape4k/aws/ses/model/MessageSupport.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.aws.ses.model
import software.amazon.awssdk.services.ses.model.Body
import software.amazon.awssdk.services.ses.model.Content
import software.amazon.awssdk.services.ses.model.Message
import software.amazon.awssdk.services.ses.model.MessageTag
import java.nio.charset.Charset
inline fun message(ini... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 1,540 | bluetape4k | MIT License |
src/main/kotlin/io/openfuture/chain/core/component/StatePool.kt | OpenFuturePlatform | 135,143,034 | false | {"Kotlin": 466643, "Dockerfile": 210, "Shell": 74} | package io.openfuture.chain.core.component
import io.openfuture.chain.core.model.entity.state.State
import io.openfuture.chain.crypto.util.HashUtils
import org.bouncycastle.pqc.math.linearalgebra.ByteUtils
import org.springframework.stereotype.Component
import java.util.concurrent.ConcurrentHashMap
@Component
class S... | 2 | Kotlin | 16 | 64 | f7e511b3ba17cc75d7f23618008dd89a7b83c4c0 | 785 | open-chain | MIT License |
dekorator-api/src/main/kotlin/io/github/mottljan/api/util/TryCoroutine.kt | mottljan | 391,745,665 | false | null | package io.github.mottljan.api.util
import kotlinx.coroutines.CancellationException
/**
* tryCoroutine/catch DSL enables to try/catch the exceptions thrown from the suspend functions
* exactly the same like by using standard try/catch blocks with the difference that it does not
* catch [CancellationException] and ... | 1 | Kotlin | 0 | 18 | 5f2f03dbbe82e943fcb96bac5639dedf50bf4c5b | 1,303 | grpc-dekorator | Apache License 2.0 |
multiplatform/src/commonMain/kotlin/com/vsevolodganin/clicktrack/utils/parcelable/Parcelable.kt | vganin | 293,315,190 | false | {"Kotlin": 627064, "C++": 4113, "Ruby": 2549, "Swift": 526, "CMake": 281} | @file:Suppress("DEPRECATION") // FIXME: Look into Parcelize not working with K2
package com.vsevolodganin.clicktrack.utils.parcelable
import com.arkivanov.essenty.parcelable.Parcelable
import com.arkivanov.essenty.parcelable.Parceler
// FIXME: Workarounds problems with K2: https://issuetracker.google.com/issues/3157... | 10 | Kotlin | 1 | 22 | e0de3d92ee1921eda2053064fd4ae082b831caa9 | 804 | click-track | Apache License 2.0 |
app/src/main/java/com/payment/app/utils/Rtc.kt | thearistotlemethod | 818,344,304 | false | {"Kotlin": 254976, "Java": 939} | package com.payment.app.utils
import java.util.Calendar
class Rtc {
var year: Byte = 0
var mon: Byte = 0
var day: Byte = 0
var hour: Byte = 0
var min: Byte = 0
var sec: Byte = 0
var dow: Byte = 0
companion object {
fun now(): Rtc {
val calendar = Calendar.getInstan... | 0 | Kotlin | 0 | 0 | 47035b2775e35a021c3891721810553ae8700413 | 698 | BasePosAppTemplate | Apache License 2.0 |
src/main/kotlin/com/nosuchdevice/XoneK2ExtensionDefinition.kt | thorinside | 449,010,008 | false | null | package com.nosuchdevice
import com.bitwig.extension.api.PlatformType
import com.bitwig.extension.controller.AutoDetectionMidiPortNamesList
import com.bitwig.extension.controller.ControllerExtension
import com.bitwig.extension.controller.ControllerExtensionDefinition
import com.bitwig.extension.controller.api.Controll... | 0 | Kotlin | 0 | 0 | 30ae6cef0991faab0c1cecd536e852245954366d | 1,950 | bitwig_xone_k2_kotlin | The Unlicense |
app/src/main/kotlin/ru/khiraevmalik/theguardiannews/mvi_base/CoroutinesMviViewModel.kt | Hiraev | 278,637,711 | false | null | package ru.khiraevmalik.theguardiannews.mvi_base
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import ru.khiraevmalik.theguardiannews.CoroutinesViewModel
import ru.khiraevmalik.theguardiannews.mvi_no_reactive.Store
import ru.khiraevmalik.theguardiannews.mvi_no_reactive.lifecycle.SingleLi... | 0 | Kotlin | 0 | 0 | 19ce6605f1d8c33def4d0a70340c8e75bd4c9a20 | 1,016 | TheGuardianNews | Apache License 2.0 |
core/src/commonMain/kotlin/work/socialhub/kbsky/util/json/JsonElementUtil.kt | uakihir0 | 735,265,237 | false | {"Kotlin": 221471, "Shell": 1425, "Makefile": 315} | package work.socialhub.kbsky.util.json
import kotlinx.serialization.json.JsonElement
import kotlinx.serialization.json.jsonObject
import kotlinx.serialization.json.jsonPrimitive
object JsonElementUtil {
fun JsonElement.type(): String? {
return jsonObject["\$type"]?.jsonPrimitive?.content
}
} | 3 | Kotlin | 1 | 7 | ff9e1649652acb85c3aabda7d1709a47e02ceb02 | 311 | kbsky | MIT License |
app/src/main/java/ru/haroncode/wordlearn/domain/repository/WordAssetRepository.kt | Hukumister | 182,296,995 | false | null | package ru.haroncode.wordlearn.domain.repository
import android.content.res.AssetManager
import de.siegmar.fastcsv.reader.CsvReader
import io.reactivex.Single
import javax.inject.Inject
import ru.haroncode.wordlearn.word.model.Word
/**
* @author HaronCode.
*/
interface WordAssetRepository {
fun findAllFor(categ... | 0 | Kotlin | 0 | 5 | 1b98049eace38ed832f1ff41ddccd50b37b0f611 | 687 | WordLearn | MIT License |
seskar/seskar-compiler-plugin/src/main/kotlin/seskar/compiler/key/extensions/DefaultKeyExtension.kt | turansky | 279,976,108 | false | {"Kotlin": 93979, "Shell": 286} | package seskar.compiler.key.extensions
import org.jetbrains.kotlin.backend.common.extensions.IrGenerationExtension
import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
import org.jetbrains.kotlin.ir.declarations.IrModuleFragment
import org.jetbrains.kotlin.platform.isJs
import seskar.compiler.key.back... | 0 | Kotlin | 5 | 41 | 6ef30dfce12e2ff8b98c616a9113719fa9d787db | 707 | seskar | Apache License 2.0 |
qchatkit/src/main/java/com/netease/yunxin/kit/qchatkit/repo/model/QChatSystemNotificationInfo.kt | shine2008 | 608,936,203 | true | {"Java Properties": 2, "Gradle Kotlin DSL": 5, "Shell": 1, "Markdown": 1, "Batchfile": 1, "INI": 2, "Proguard": 3, "Kotlin": 52, "Java": 206} | /*
* Copyright (c) 2022 NetEase, Inc. All rights reserved.
* Use of this source code is governed by a MIT license that can be
* found in the LICENSE file.
*/
package com.netease.yunxin.kit.qchatkit.repo.model
sealed class QChatSystemMessageToTypeInfo
object Server : QChatSystemMessageToTypeInfo()
object Channel :... | 0 | Java | 0 | 0 | 9058d04b2d04d8d2ffad9fdda4d0d377ab90e50b | 4,091 | qchat-uikit-android | MIT License |
src/main/kotlin/com/team2898/robot/subsystems/Climb.kt | TheFlyingHedgehogs | 446,919,594 | false | null | package com.team2898.robot.subsystems
import com.bpsrobotics.engine.controls.StallDetection
import com.bpsrobotics.engine.utils.Millis
import com.bpsrobotics.engine.utils.Volts
import com.bpsrobotics.engine.utils.plus
import com.bpsrobotics.engine.utils.seconds
import com.ctre.phoenix.motorcontrol.NeutralMode
import c... | 0 | Kotlin | 0 | 1 | 6e35698cf194d7cdbec05ecee8873f0c16fabeb5 | 5,900 | 2022-rapid-react | Apache License 2.0 |
app/src/main/java/me/kmmiller/theduckypodcast/main/surveys/ChartAdapter.kt | kmmiller10 | 156,945,292 | false | null | package me.kmmiller.theduckypodcast.main.surveys
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.github.mikephil.charting.charts.BarChart
import com.github.mikephil.charting.charts.PieChart
import me.kmmiller.theduckypodcast.R
import me.kmmil... | 7 | Kotlin | 1 | 1 | 7f00dbeacb9b96a783206647b0c7cc41bedff0c3 | 3,131 | TheDuckyPodcast | Apache License 2.0 |
app/src/main/java/me/kmmiller/theduckypodcast/main/surveys/ChartAdapter.kt | kmmiller10 | 156,945,292 | false | null | package me.kmmiller.theduckypodcast.main.surveys
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.github.mikephil.charting.charts.BarChart
import com.github.mikephil.charting.charts.PieChart
import me.kmmiller.theduckypodcast.R
import me.kmmil... | 7 | Kotlin | 1 | 1 | 7f00dbeacb9b96a783206647b0c7cc41bedff0c3 | 3,131 | TheDuckyPodcast | Apache License 2.0 |
app/src/test/kotlin/net/primal/android/networking/relays/RelaysManagerTest.kt | PrimalHQ | 639,579,258 | false | null | package net.primal.android.networking.relays
import io.mockk.every
import io.mockk.mockk
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.flowOf
import kotlinx.coroutines.test.runTest
import net.primal.android.core.coroutines.CoroutinesTestRule
import net.primal.android.test.advanceUn... | 23 | null | 6 | 75 | 28904131060311b08176729c5146feea39c549fc | 2,100 | primal-android-app | MIT License |
app/src/main/java/com/niedzwiecki/przemyslguide/ui/base/BaseViewModel.kt | niedzwiedz90 | 136,378,890 | false | null | package com.niedzwiecki.przemyslguide.ui.base
import android.databinding.BaseObservable
import android.os.Bundle
/**
* Created by niedzwiedz on 29.06.17.
*/
open class BaseViewModel<T : Navigator> : BaseObservable(), ViewModel {
internal var navigator: Navigator? = null
private var context: T? = null
... | 1 | null | 1 | 1 | 5b8ca41c275cb873a229a4c20110248f61e7b19a | 1,468 | CityGuide | Apache License 2.0 |
src/test/kotlin/just4fun/holomorph/mains/Discovery.kt | just-4-fun | 105,437,872 | false | null | package just4fun.holomorph.mains
import just4fun.holomorph.DefineSchema
import just4fun.holomorph.Type
import just4fun.holomorph.Types
import just4fun.holomorph.types.CollectionType
import just4fun.holomorph.mains.javas.Point4d
import just4fun.holomorph.measureTime
import java.util.*
import kotlin.reflect.KClass
impor... | 0 | Kotlin | 1 | 2 | 5cbeb6827417670626f083f5f71e31da5fa55eab | 4,269 | holomorph | Apache License 2.0 |
src/client/kotlin/xveon/roadmap/core/RoadmapScanner.kt | XVNexus | 633,999,690 | false | null | package xveon.roadmap
import net.minecraft.client.network.ClientPlayerEntity
class RoadmapScanner(val roadmap: Roadmap) {
fun scan(player: ClientPlayerEntity): Boolean {
// Used to keep track of which blocks are scanned and store a queue of blocks waiting to be scanned
val tracker = ScannedBlockTr... | 0 | Kotlin | 0 | 0 | a03d400c26459f4a5fd8190723648971011c7f0f | 2,578 | roadmap | Apache License 2.0 |
app/src/main/java/com/shhatrat/loggerek/models/Cache.kt | Shhatrat | 94,308,787 | false | null | package com.shhatrat.loggerek.models
/**
* Created by szymon on 7/1/17.
*/
data class Cache(
val name : String,
val location : String,
val type : String,
val recommendations : Int,
val founds : Int,
val req_passwd : Boolean){
} | 0 | Kotlin | 0 | 0 | cf9c633915faa5e622c4d2b9bc9fbace520bfc07 | 278 | Loggerek-old | Apache License 2.0 |
shared/src/main/java/de/loosetie/k8s/dsl/impls/Ingress.kt | loosetie | 283,145,621 | false | {"Kotlin": 12443871} | package de.loosetie.k8s.dsl.impls
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonPropertyOrder
import de.loosetie.k8s.dsl.K8sManifest
import de.loosetie.k8s.dsl.HasParent
import de.loosetie.k8s.dsl.manifests.*
@JsonPropertyOrder("apiVersion", "kind", "metadata", "spec",... | 0 | Kotlin | 0 | 1 | 3dd2d00220dbf71151d56b75b3bd7f26583b1fd3 | 1,905 | k8s-dsl | Apache License 2.0 |
owntracks-android-2.5/project/app/src/oss/java/org/owntracks/android/location/geofencing/GeofencingEvent.kt | wir3z | 737,346,188 | false | {"Kotlin": 928031, "Groovy": 374736, "Java": 12862, "Shell": 4540} | package org.owntracks.android.location.geofencing
import android.content.Intent
import android.location.Location
data class GeofencingEvent(
val errorCode: Int?,
val geofenceTransition: Int?,
val triggeringGeofences: List<Geofence>?,
val triggeringLocation: Location?
) {
fun hasError(): Boolean = tr... | 0 | Kotlin | 3 | 5 | ae982c61c5fcc5d809f4b29f0208c19cede61f5d | 618 | hubitat | Apache License 2.0 |
kubernetes/dsl/src/main/kotlin-gen/com/fkorotkov/kubernetes/eventTime.kt | duanwucui | 152,172,153 | true | {"Kotlin": 267756} | // GENERATED
package com.fkorotkov.kubernetes
import io.fabric8.kubernetes.api.model.Event
import io.fabric8.kubernetes.api.model.MicroTime
fun Event.`eventTime`(block: MicroTime.() -> Unit = {}) {
if(this.`eventTime` == null) {
this.`eventTime` = MicroTime()
}
this.`eventTime`.block()
}
| 0 | Kotlin | 0 | 0 | 4b9a21e59fad78ed7b79a94ac8993c1041623d18 | 305 | k8s-kotlin-dsl | MIT License |
app/src/main/java/com/eye/eye/ui/setting/AboutActivity.kt | HelloWorldFeng | 282,585,640 | false | null | package com.eye.eye.ui.setting
import android.content.Context
import android.content.Intent
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.Html
import com.eye.eye.R
import com.eye.eye.ui.common.ui.BaseActivity
import com.eye.eye.ui.common.ui.WebView... | 0 | Kotlin | 0 | 0 | 4ca1b3b66266366b3ad6a2b64d8341f3fd946324 | 2,011 | Eye | Apache License 2.0 |
app/src/main/java/com/eye/eye/ui/setting/AboutActivity.kt | HelloWorldFeng | 282,585,640 | false | null | package com.eye.eye.ui.setting
import android.content.Context
import android.content.Intent
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.Html
import com.eye.eye.R
import com.eye.eye.ui.common.ui.BaseActivity
import com.eye.eye.ui.common.ui.WebView... | 0 | Kotlin | 0 | 0 | 4ca1b3b66266366b3ad6a2b64d8341f3fd946324 | 2,011 | Eye | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/FunctionsOutlined.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/FunctionsOutlined")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val FunctionsOutlined: SvgIconComponent
| 12 | Kotlin | 5 | 983 | 372c0e4bdf95ba2341eda473d2e9260a5dd47d3b | 216 | kotlin-wrappers | Apache License 2.0 |
epoxyModels/src/main/java/de/mustafagercek/epoxybase_lib/util/ViewExtensions.kt | mustafagercek | 191,807,577 | false | null | package de.mustafagercek.epoxybase_lib.util
import android.content.Context
import android.util.TypedValue
fun Context.dpToPx(dp: Int): Int {
return TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_DIP,
dp.toFloat(),
resources.displayMetrics
).toInt()
} | 0 | Kotlin | 0 | 5 | 5bb19f874400764b632a47c7ca319fa8422ebb79 | 288 | epoxy-base | Apache License 2.0 |
app/src/main/java/com/codepath/apps/restclienttemplate/models/User.kt | farhatc100 | 469,560,153 | false | null | package com.codepath.apps.restclienttemplate.models
import org.json.JSONObject
class User {
var name: String = ""
var screeName: String = ""
var publicImageUrl: String = ""
companion object {
fun fromJson(jsonObject: JSONObject): User {
val user = User()
user.name = j... | 1 | Kotlin | 0 | 0 | 81c79022706a134c77f7c49209e96ae61034a3d5 | 538 | SimpleTweet | Apache License 2.0 |
src/main/kotlin/com/waicool20/skrypton/sikulix/ISikuliRegion.kt | waicool20 | 103,044,311 | false | null | /*
* The MIT License (MIT)
*
* Copyright (c) SKrypton by waicool20
*
* 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 ... | 0 | Kotlin | 0 | 8 | 0ec26e1858d36b4c829d45f17b1c22d35afcfc9c | 21,372 | SKrypton | MIT License |
library/src/main/java/tmg/utilities/extensions/LocalTimeExtensions.kt | thementalgoose | 164,951,044 | false | null | package tmg.utilities.extensions
import org.threeten.bp.LocalTime
import org.threeten.bp.format.DateTimeFormatter
import java.util.*
@JvmOverloads
fun LocalTime.format(format: String, locale: Locale = Locale.ENGLISH): String {
val dateTimeFormatter = DateTimeFormatter.ofPattern(format, locale)
return this.for... | 0 | Kotlin | 0 | 1 | be5964b88f932b6b3b54e1a51c8608299d25d909 | 344 | android-utilities | Apache License 2.0 |
src/test/kotlin/test/model/ProjectConfig.kt | opengood-aio | 314,074,661 | false | {"Kotlin": 192357} | package test.model
import io.opengood.gradle.constant.EnvVars
import io.opengood.gradle.enumeration.LanguageType
import io.opengood.gradle.enumeration.ProjectType
import io.opengood.gradle.enumeration.PublicationType
import test.enumeration.defaultFeatures
data class ProjectConfig(
val languageType: LanguageType,... | 0 | Kotlin | 0 | 0 | 3859fa32dfa3f748489d980830309d8a2ffe3f79 | 901 | config-gradle-plugin | MIT License |
app/src/main/java/lpzmrc/test/djungle/io/data/repository/GalleryRepository.kt | lpzmrc | 250,509,107 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 60, "XML": 36, "Java": 1} | package lpzmrc.test.djungle.io.data.repository
import lpzmrc.test.djungle.io.core.api.dto.Photo
import lpzmrc.test.djungle.io.core.api.service.GalleryService
import lpzmrc.test.djungle.io.core.network.ktx.toResource
import lpzmrc.test.djungle.io.core.network.model.Resource
import org.koin.core.KoinComponent
import org... | 1 | null | 1 | 1 | ec8529fa6e0ec7c9062527eb11ab7305f3d085e6 | 1,065 | test-djungle | The Unlicense |
ethereumtests/src/test/kotlin/GeneralStateTestCaseRunnerTest.kt | wjsrobertson | 424,259,165 | true | {"Kotlin": 493906, "Gherkin": 105660, "Java": 76369, "Solidity": 16962, "Shell": 871} | package org.kevem.ethereumtests
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import org.apache.http.client.methods.HttpPost
import org.apache.http.entity.ContentType
import org.apache.http.entity.StringEntity
import org.apache.http.impl.client.HttpClients
import org.apache.http.util.EntityUtils
impor... | 11 | Kotlin | 1 | 0 | a5652a063b5d168394af94b54fe5559dab712736 | 8,618 | kevem | Apache License 2.0 |
fifi-auth/src/commonMain/kotlin/com/paoapps/fifi/auth/di/Koin.kt | Paoapps | 684,655,570 | false | {"Kotlin": 141680} | package com.paoapps.fifi.auth.di
import com.paoapps.fifi.auth.AuthApi
import com.paoapps.fifi.auth.Claims
import com.paoapps.fifi.auth.IdentifiableClaims
import com.paoapps.fifi.auth.SettingsTokenStore
import com.paoapps.fifi.auth.TokenDecoder
import com.paoapps.fifi.auth.TokenStore
import com.paoapps.fifi.auth.api.Au... | 0 | Kotlin | 0 | 6 | 09393dd0bc6af21751ad41a9e4ba510da3c54af1 | 2,722 | fifi | MIT License |
spring/src/main/kotlin/tw/waterballsa/gaas/spring/repositories/dao/RoomDAO.kt | Game-as-a-Service | 623,554,204 | false | null | package tw.waterballsa.gaas.spring.repositories.dao
import org.springframework.data.mongodb.repository.MongoRepository
import org.springframework.stereotype.Repository
import tw.waterballsa.gaas.spring.repositories.data.RoomData
@Repository
interface RoomDAO : MongoRepository<RoomData, String> {
fun existsByHostI... | 25 | Kotlin | 5 | 22 | 2aef70e99d85e8f9cf5592da523c8acc42428122 | 350 | Lobby-Platform-Service | Apache License 2.0 |
feature-staking-impl/src/main/java/io/novafoundation/nova/feature_staking_impl/di/staking/dashboard/StakingDashboardModule.kt | novasamatech | 415,834,480 | false | null | package io.novafoundation.nova.feature_staking_impl.di.staking.dashboard
import dagger.Module
import dagger.Provides
import io.novafoundation.nova.common.data.network.NetworkApiCreator
import io.novafoundation.nova.common.di.scope.FeatureScope
import io.novafoundation.nova.core_db.dao.StakingDashboardDao
import io.nov... | 9 | Kotlin | 3 | 5 | 67bd23703276cdc1b804919d0baa679ada28db7f | 5,290 | nova-wallet-android | Apache License 2.0 |
android/src/main/java/com/hereexplore/features/polyline/PolylineViewManagerSpec.kt | ajakka | 723,753,715 | false | {"TypeScript": 41565, "Kotlin": 39672, "Swift": 23274, "Objective-C": 5287, "JavaScript": 4800, "Ruby": 4387, "Objective-C++": 810, "C": 103} | package com.mapshere.components.polyline
import android.view.ViewGroup
import com.facebook.react.bridge.ReadableArray
import com.facebook.react.uimanager.ViewGroupManager
abstract class PolylineViewManagerSpec<T : ViewGroup> : ViewGroupManager<T>() {
abstract fun setGeoPolyline(view: T, value: ReadableArray?)
a... | 2 | TypeScript | 6 | 84 | 23fadb2abafe10986d3490ee627d0929f62c06be | 799 | react-native-here-explore | MIT License |
Wave/src/main/java/com/example/wave/lib/Water_Wave.kt | yusufkhan08070817 | 775,579,032 | false | {"Kotlin": 6094} | package com.example.wave.lib
import android.animation.ObjectAnimator
import android.content.Context
import android.os.Handler
import android.os.Looper
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.widget.ImageView
import android.widget.RelativeLayout
impor... | 0 | Kotlin | 0 | 0 | 05de846cf5869b23b6eb2109b261e67cec7a48cb | 3,251 | WaterWave | MIT License |
src/main/kotlin/no/nav/omsorgspenger/overføringer/Grunnlag.kt | navikt | 293,469,365 | false | null | package no.nav.omsorgspenger.overføringer
import no.nav.omsorgspenger.fordelinger.FordelingGirMelding
import no.nav.omsorgspenger.midlertidigalene.MidlertidigAleneVedtak
import no.nav.omsorgspenger.overføringer.apis.SpleisetOverføringGitt
import no.nav.omsorgspenger.overføringer.meldinger.OverføreOmsorgsdagerMelding
i... | 9 | Kotlin | 0 | 2 | 1bf257bb4c5579855e801087d0aa44249389907d | 889 | omsorgspenger-rammemeldinger | MIT License |
processor/src/main/java/ru/unit/orchestra_features/processor/generator/code/feature/property/StateProperty.kt | why-iskra | 689,642,973 | false | {"Kotlin": 102496} | package ru.unit.orchestra_features.processor.generator.code.feature.property
import com.squareup.kotlinpoet.*
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import ru.unit.orchestra_features.processor.model.FeatureModel
import ru.unit.orchestra_features.common.support.Feature
import ru.... | 0 | Kotlin | 0 | 1 | 7b9b9301f4b377cae180d0025d03dbff86af8bfd | 1,473 | orchestra-features | MIT License |
vector/src/main/java/im/vector/app/features/call/conference/JitsiWidgetData.kt | tchapgouv | 340,329,238 | false | {"Kotlin": 15930464, "HTML": 68524, "Shell": 57406, "Java": 28010, "Python": 25875, "FreeMarker": 7662, "JavaScript": 6925, "Ruby": 1587} | /*
* Copyright (c) 2020 New Vector Ltd
*
* 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 agr... | 4 | Kotlin | 6 | 9 | b248ca2dbb0953761d2780e4fba756acc3899958 | 1,183 | tchap-android | Apache License 2.0 |
app/src/main/java/com/test/data/repository/FavoriteRepository.kt | ETSEmpiricalStudyKotlinAndroidApps | 496,716,943 | true | {"Kotlin": 111686, "Java": 1387} | package com.test.data.repository
import androidx.annotation.WorkerThread
import androidx.paging.Pager
import androidx.room.withTransaction
import com.test.data.database.EventsDb
import com.test.data.database.dao.FavoritesDao
import com.test.data.model.FavoriteEventsDTO
import com.test.data.repository.settings.PagingCo... | 0 | null | 0 | 0 | 4a06616b14298e4003fb0ed15b012f2f1b4cd19b | 958 | RoomPaging3TestProject | Apache License 2.0 |
feature/anime/core/source/local/api/src/main/java/com/lelestacia/hayate/feature/anime/core/source/local/api/entity/aired/AnimePropEntity.kt | gab-stargazer | 717,145,817 | false | {"Kotlin": 459698} | package com.lelestacia.hayate.feature.anime.core.source.local.api.entity.aired
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class AnimePropEntity(
@Json(name = "from")
val from: AnimePropFromEntity,
@Json(name = "to")
val to: AnimePropToE... | 0 | Kotlin | 0 | 4 | 892b443a225f787aa99631a3fb02fad517f7f19f | 328 | hayate | MIT License |
src/main/java/uk/ac/shef/tracker/core/utils/Validator.kt | oakgroup | 630,448,719 | false | {"Kotlin": 375304} | /*
* Copyright (c) 2023.
* This code was developed by <NAME>, The University of Sheffield.
* All rights reserved.
* No part of this code can be used without the explicit written permission by the author
*/
package uk.ac.shef.tracker.core.utils
import android.text.TextUtils
import android.util.Patterns... | 0 | Kotlin | 0 | 0 | 55d317e94e18d25c54843270cdcf50039cab6c49 | 1,058 | android-bhf-tracker | MIT License |
shared/src/commonMain/kotlin/org/nautilusapp/nautilus/scouting/analysis/models/crescendo/CrescendoAutoAverage.kt | nautilus-frc | 663,757,256 | false | {"Kotlin": 650874, "Swift": 118676} | package org.nautilusapp.nautilus.scouting.analysis.models.crescendo
data class CrescendoAutoAverage(
val leaveRate: Double,
val ampNotes: Double,
val speakerNotes: Double
) | 8 | Kotlin | 0 | 0 | 150fc63feeb0368e3e024f977eb50bd2d89c3e8c | 185 | companion | MIT License |
src/1/1546.kt | WhiteKr | 408,140,568 | false | null | import java.io.BufferedReader
import java.io.InputStreamReader
fun main() = with(BufferedReader(InputStreamReader(System.`in`))) {
val N: Int = readLine().toInt()
val scores: Array<String> = readLine().trim().split(' ').toTypedArray()
val data = IntArray(N)
var max: Int = scores.map { it.toInt() }.toIn... | 5 | Kotlin | 0 | 1 | 913fcc9f293c62a1b4e67bccb075820578e097ea | 542 | Baekjoon-grass | MIT License |
sdk/analytics/src/main/java/com/klaviyo/analytics/networking/requests/PushTokenApiRequest.kt | klaviyo | 282,284,680 | false | null | package com.klaviyo.analytics.networking.requests
import com.klaviyo.analytics.DeviceProperties
import com.klaviyo.analytics.model.Profile
import com.klaviyo.core.Registry
/**
* Defines the content of an API request to append a push token to a [Profile]
*
* Using legacy V2 API until push tokens are supported by a ... | 0 | Kotlin | 2 | 6 | a8b4f5751f5f204c0f5a9548148f4b6a138f5ce7 | 2,419 | klaviyo-android-sdk | MIT License |
sdk/analytics/src/main/java/com/klaviyo/analytics/networking/requests/PushTokenApiRequest.kt | klaviyo | 282,284,680 | false | null | package com.klaviyo.analytics.networking.requests
import com.klaviyo.analytics.DeviceProperties
import com.klaviyo.analytics.model.Profile
import com.klaviyo.core.Registry
/**
* Defines the content of an API request to append a push token to a [Profile]
*
* Using legacy V2 API until push tokens are supported by a ... | 0 | Kotlin | 2 | 6 | a8b4f5751f5f204c0f5a9548148f4b6a138f5ce7 | 2,419 | klaviyo-android-sdk | MIT License |
omh-core/src/main/java/com/openmobilehub/android/coreplugin/model/OMHExtension.kt | openmobilehub | 748,394,297 | false | {"Kotlin": 21313, "Shell": 524} | package com.openmobilehub.android.coreplugin.model
import com.openmobilehub.android.coreplugin.utils.ERROR_BUNDLES_BUT_NO_SERVICES
import com.openmobilehub.android.coreplugin.utils.ERROR_BUNDLES_WITHOUT_NAME
import com.openmobilehub.android.coreplugin.utils.ERROR_BUNDLES_WITH_INCORRECT_NAME
import javax.inject.Inject
... | 0 | Kotlin | 0 | 0 | 04254efbfdbd99c9dd8b681fac6d38838c03676d | 3,232 | android-omh-core | Apache License 2.0 |
app/src/main/java/com/mongodb/rchatapp/RChatApplication.kt | mongodb-developer | 362,073,912 | false | {"Kotlin": 55858, "Java": 2473} | package com.mongodb.rchatapp
import android.app.Application
import com.mongodb.rchatapp.di.koinModules
import io.realm.Realm
import io.realm.RealmConfiguration
import io.realm.log.LogLevel
import io.realm.log.RealmLog
import io.realm.mongodb.App
import io.realm.mongodb.AppConfiguration
import org.koin.android.ext.koin... | 0 | Kotlin | 0 | 0 | dd2f4d99efc814e1be6f8400141fc01aca974b17 | 1,313 | RChatApp | Apache License 2.0 |
epoxy-sample/src/main/java/com/airbnb/epoxy/sample/MainActivity.kt | SaitamaCodeAndroid | 611,679,030 | false | {"Markdown": 5, "Gradle": 23, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 20, "Batchfile": 1, "Kotlin": 211, "INI": 11, "Proguard": 10, "XML": 104, "Java": 531, "JSON": 3, "YAML": 1, "HTML": 1, "CSS": 2, "JavaScript": 1} | package com.airbnb.epoxy.sample
import android.animation.ArgbEvaluator
import android.animation.ValueAnimator
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Build
import android.os.Bundle
import android.os.Parcelable
import android.view.View
import androidx.annotation.Co... | 0 | Java | 0 | 0 | b4552866fb0170a5882ec920f41578a68db2af54 | 8,841 | Epoxy | Apache License 2.0 |
Chapter 12/02_mars_data.kt | bpbpublications | 649,604,575 | false | {"Kotlin": 94438, "Java": 3484, "Shell": 275} | data class MarsData(
val price: Int, // currency price (in dollars?)
val id: Int, // unique id number for the plot of land
val type: String, // either "buy" or "rent"
val img_src: String // a url of an image
)
| 0 | Kotlin | 0 | 1 | 3e8dfdb8ca03911063fe97d0e1e020f958e4dcdd | 226 | Scalable-Android-Applications-in-Kotlin | MIT License |
app/src/test/java/cz/palda97/lpclient/model/pipeline/PipelineViewTest.kt | Palda97 | 280,530,029 | false | null | package cz.palda97.lpclient.model.pipeline
import cz.palda97.lpclient.*
import cz.palda97.lpclient.model.entities.pipelineview.PipelineViewFactory
import org.junit.Test
import org.junit.Assert.*
class PipelineViewTest
: MockkTest() {
@Test
fun parse() {
val factory = PipelineViewFactory(SERVER, P... | 0 | Kotlin | 0 | 0 | e2e1c188a21dac4cd78d9242633dc094ba50ef64 | 2,667 | LinkedPipesAndroidClient | MIT License |
data/src/main/java/com/synrgyacademy/data/local/model/HistorySearchingEntity.kt | Synrgy-Academy-Final-Project | 738,116,027 | false | {"Kotlin": 429514, "Ruby": 1824} | package com.synrgyacademy.data.local.model
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.synrgyacademy.domain.model.airport.AirportDataModel
import com.synrgyacademy.domain.model.airport.HistoryDataModel
import com.synrgyacademy.domain.model.passenger.PassengerT... | 0 | Kotlin | 0 | 0 | d7fefca1200efd6eae4a33a34ef0511d90dfd54a | 1,848 | Android | MIT License |
feature-user-impl/src/main/java/jp/co/soramitsu/users/presentation/list/UsersAdapter.kt | ModeNode | 300,518,840 | true | {"Kotlin": 57393} | package jp.co.soramitsu.users.presentation.list
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import jp.co.soramitsu.feature_user_api... | 0 | null | 0 | 0 | 15d40658cc79c518e038f40531f56917cd9233e7 | 1,649 | fearless-Android | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/intentions/convertLambdaToReference/generic5.kt | ingokegel | 72,937,917 | true | null | // IS_APPLICABLE: false
// WITH_STDLIB
fun test() {
foo <caret>{ bar<Int>() }
}
fun foo(f: () -> Unit) {}
fun <T> bar(): T = TODO()
| 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 138 | intellij-community | Apache License 2.0 |
demo/frontend/src/main/kotlin/eu/rigeldev/uirig/demo/state/LoggedInState.kt | teyckmans | 154,056,343 | false | null | package eu.rigeldev.uirig.demo.state
import eu.rigeldev.uirig.update.Update
/**
* @author <NAME> <<EMAIL>>
*/
class LoggedInState private constructor(builder : LoggedInStateBuilder) {
val baseApiUrl : String
val username : String
val roles : List<String>
val warnings : List<String>
val pageName... | 1 | null | 0 | 0 | 42ee75a05b845dc7f589adf78c396a2df17d6be2 | 3,072 | ui-rig-examples | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/SignalBarsFair.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,994 | icons | MIT License |
src/main/kotlin/pl/jwizard/core/bot/BotEventHandler.kt | jwizard-bot | 512,298,084 | false | {"Kotlin": 272965} | /*
* Copyright (c) 2024 by JWizard
* Originally developed by <NAME> <https://miloszgilga.pl>
*/
package pl.jwizard.core.bot
import net.dv8tion.jda.api.events.channel.ChannelDeleteEvent
import net.dv8tion.jda.api.events.guild.GuildBanEvent
import net.dv8tion.jda.api.events.guild.GuildJoinEvent
import net.dv8tion.jda... | 1 | Kotlin | 0 | 2 | d177ef4ba3b65c87581afff5be8832bcef43012c | 3,735 | jwizard-core | Apache License 2.0 |
engine/src/main/kotlin/io/rsbox/engine/message/impl/SetMapFlagMessage.kt | TheProdigy94 | 199,138,033 | false | null | package io.rsbox.engine.message.impl
import io.rsbox.engine.message.Message
/**
* @author Tom <<EMAIL>>
*/
data class SetMapFlagMessage(val x: Int, val z: Int) : Message | 0 | Kotlin | 0 | 0 | b83537fb4cb39be1a9fb22354477b9063d518d0d | 173 | rsbox | Apache License 2.0 |
app/src/main/java/com/breezefieldkrishnatea/features/survey/GroupNameOnClick.kt | DebashisINT | 796,590,044 | false | {"Kotlin": 14426399, "Java": 1021853} | package com.breezefieldkrishnatea.features.survey
interface GroupNameOnClick {
fun grOnClick(data: String)
} | 0 | Kotlin | 0 | 0 | 4a1bcf05788be9bb1afdbf5922e9ec38d7f60f84 | 114 | HareKrishnaEntp | Apache License 2.0 |
library/src/main/kotlin/org/mjdev/libs/barcodescanner/bysquare/lzma/LenDecoder.kt | mimoccc | 804,873,510 | false | {"Kotlin": 244846, "Shell": 336} | package org.mjdev.libs.barcodescanner.bysquare.lzma
import org.mjdev.libs.barcodescanner.bysquare.lzma.RangeDecoder.Companion.initBitModels
import java.io.IOException
internal class LenDecoder {
private val choice = ShortArray(2)
private val lowCoder = arrayOfNulls<BitTreeDecoder>(Base.kNumPosStatesMax)
p... | 0 | Kotlin | 0 | 0 | 6f99b62284c335faeef849c5cee8771ffc760ed6 | 1,522 | barcodescanner | Apache License 2.0 |
app/src/main/java/com/yuvrajsinghgmx/shopsmart/datastore/instance.kt | yuvrajsinghgmx | 861,953,585 | false | {"Kotlin": 46964} | package com.yuvrajsinghgmx.shopsmart.datastore
import android.content.Context
import androidx.datastore.preferences.preferencesDataStore
val Context.dataStore by preferencesDataStore(name = "shopping_list") | 9 | Kotlin | 16 | 9 | 79fdfa2b7f305bae270f6f4e0402c81c7c178cee | 208 | ShopSmart | MIT License |
app/src/main/java/com/devspace/myapplication/common/model/RecipesResponse.kt | metaces | 833,882,487 | false | {"Kotlin": 36876} | package com.devspace.myapplication.common.model
data class RecipesResponse(
val recipes: List<RecipeDto>
)
| 0 | Kotlin | 0 | 0 | cbc092f05e0772c113b9e4692e525b9df6894c18 | 112 | easy-recipes | MIT License |
app/src/main/java/com/example/mobilliumcase/decorator/SimpleItemDecorator.kt | umitemre | 494,565,005 | false | null | package com.example.mobilliumcase.decorator
import android.content.Context
import android.graphics.Canvas
import android.graphics.drawable.Drawable
import android.util.TypedValue
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.RecyclerView
import kotlin.math.roundToInt
cl... | 0 | Kotlin | 0 | 0 | 7254bbca773d0da8e4b8d42776401f7253857752 | 1,375 | TMDB_Android_App | MIT License |
language-server/taxi-lang-server-app/src/main/java/lang/taxi/lsp/TaxiLanguageServerApp.kt | taxilang | 601,101,781 | false | {"Kotlin": 1614057, "ANTLR": 66122, "TypeScript": 7231, "JavaScript": 4324, "Shell": 1468, "Java": 1454, "MDX": 425} | package lang.taxi.lsp
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
@SpringBootApplication
class TaxiLanguageServerApp {
companion object {
@JvmStatic
fun main(args: Array<String>) {
val app = SpringApplication(Tax... | 8 | Kotlin | 5 | 75 | b94c71c7c8751c05c4f466c58c4483dac3f2e421 | 396 | taxilang | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/FireFlameSimple.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,177 | icons | MIT License |
src/test/kotlin/homework5/ParserTreeTest.kt | martilut | 342,898,976 | false | {"Kotlin": 107965} | package homework5
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.Arguments
import org.junit.jupiter.params.provider.MethodSource
import java.io.File
internal class ParserTreeTest {
companion object {
@JvmStatic
... | 0 | Kotlin | 0 | 0 | 091a57cbca3fca8869ea5b61d2e0f2f77ccdb792 | 1,959 | spbu_2021_kotlin_homeworks | Apache License 2.0 |
app/src/main/java/com/andrepassos/marvelheroes/network/api/MarvelService.kt | VoidHash | 754,655,410 | false | {"Kotlin": 54940} | package com.andrepassos.marvelheroes.network.api
import com.andrepassos.marvelheroes.BuildConfig
import com.andrepassos.marvelheroes.util.DataUtil
import okhttp3.HttpUrl
import okhttp3.Interceptor
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit... | 0 | Kotlin | 0 | 0 | c67ead84aad4bba9261f07c9e0e14fc04685a6b3 | 1,747 | marvel-compose-app | MIT License |
Kotlin/step2/src/main/kotlin/step2/App.kt | chaking | 84,820,596 | false | {"Text": 17, "XML": 12, "Markdown": 1, "JavaScript": 12, "HTML": 7, "JSON": 11, "Elm": 1, "C++": 9, "Kotlin": 13, "Python": 8, "Jupyter Notebook": 1, "Java": 4, "Makefile": 9, "Scala": 6, "INI": 6, "Swift": 13, "Ignore List": 7, "JSON with Comments": 2, "Git Attributes": 2, "EditorConfig": 2, "CSS": 2, "Gradle Kotlin D... | /*
* This Kotlin source file was generated by the Gradle 'init' task.
*/
package step2
import hello.kotlin.lib.Lib
fun main(args: Array<String>) {
println(Lib().greeting)
}
| 1 | null | 1 | 1 | a394f100155fa4eb1032c09cdc85816b7104804b | 181 | study | MIT License |
src/main/kotlin/com/template/blog/controller/BlogApiController.kt | Example-Collection | 378,571,820 | false | null | package com.template.blog.controller
import com.template.blog.dto.BlogDetailResponseDto
import com.template.blog.service.BlogService
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RestController
@Rest... | 0 | Kotlin | 0 | 0 | 6302b69acebb30eee2ddea3a34c8137112536f57 | 545 | Spring-Redis-Cache-Example | MIT License |
app/src/main/java/com/realtomjoney/pyxlmoose/fragments/colorpicker/hex/HexadecimalColorPickerFragment+variables.kt | realtomjoney | 419,545,692 | false | null | package com.realtomjoney.pyxlmoose.fragments.colorpicker.hex
import com.realtomjoney.pyxlmoose.databinding.FragmentHexadecimalColorPickerBinding
var binding_: FragmentHexadecimalColorPickerBinding? = null
val binding get() = binding_!!
| 15 | Kotlin | 2 | 30 | ecea3c6d807483c31fa61fbf8d127e9ed92d1258 | 239 | PyxlMoose | MIT License |
src/main/kotlin/io/foxcapades/lib/cli/builder/arg/BigIntegerArgument.kt | Foxcapades | 850,780,005 | false | {"Kotlin": 253956} | package io.foxcapades.lib.cli.builder.arg
import java.math.BigInteger
/**
* Argument type for containing [BigInteger] values.
*
* @since 1.0.0
*/
interface BigIntegerArgument : ScalarArgument<BigInteger>
| 8 | Kotlin | 0 | 0 | 457d895219666963b70ac10df70092a7b778ebea | 210 | lib-kt-cli-builder | MIT License |
app/src/main/java/com/nawrot/mateusz/compass/home/CompassActivity.kt | mateusz-nawrot | 111,402,545 | false | null | package com.nawrot.mateusz.compass.home
import android.Manifest
import android.content.pm.PackageManager
import android.os.Bundle
import android.view.View
import com.jakewharton.rxbinding2.view.RxView
import com.nawrot.mateusz.compass.R
import com.nawrot.mateusz.compass.base.*
import com.nawrot.mateusz.compass.home.de... | 0 | Kotlin | 0 | 1 | fca6ca190a3cf16141726bfb955bd2cff1a8bb33 | 4,367 | compass | Apache License 2.0 |
screen/main/src/main/kotlin/ru/maksonic/beresta/screen/main/ui/SnackBarKey.kt | maksonic | 580,058,579 | false | {"Kotlin": 1622432} | package ru.maksonic.beresta.screen.main.ui
/**
* @Author maksonic on 07.09.2023
*/
enum class SnackBarKey(val id: Long) {
REMOVED_NOTES(0)
} | 0 | Kotlin | 0 | 0 | 227b0a5f6c27b0f731b1f6e81b1fe2deeaa720aa | 147 | Beresta | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.