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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
material-prefs-colorpicker/src/main/java/com/imangazaliev/materialprefs/views/ColorCircleView.kt | ImangazalievM | 293,368,380 | false | {"Kotlin": 67071} | package com.imangazalievm.materialprefs.views
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.drawable.Drawable
import android.util.AttributeSet
import android.view.View
import androidx.annotation.ColorInt
import androidx... | 2 | Kotlin | 6 | 59 | 2ee8cc8e22b03da157e99b406457628efa4ba79e | 2,536 | material-prefs | Apache License 2.0 |
app/src/main/java/com/vodolazskiy/forecastapplication/core/di/modules/ServiceModule.kt | Denis10 | 180,340,842 | false | null | package com.vodolazskiy.forecastapplication.core.di.modules
import com.vodolazskiy.forecastapplication.domain.CurrentLocationService
import com.vodolazskiy.forecastapplication.domain.ForecastService
import com.vodolazskiy.forecastapplication.service.CurrentLocationServiceImpl
import com.vodolazskiy.forecastapplication... | 0 | Kotlin | 0 | 0 | e6e157d013259a8431b345c0c28d54cf9ecc1659 | 722 | Forecast | Apache License 2.0 |
mobile/src/androidTest/java/com/ashomok/lullabies/ui/main_activity/media_browser/MediaBrowserFragmentFavouritesTest.kt | ashomokdev | 179,253,799 | true | {"Gradle": 3, "Java Properties": 3, "Markdown": 2, "Shell": 2, "Text": 2, "Ignore List": 1, "Batchfile": 2, "Proguard": 1, "Java": 95, "XML": 92, "JSON": 6, "Kotlin": 20} | package com.ashomok.lullabies.ui.main_activity.media_browser
import android.content.Context
import androidx.appcompat.widget.AppCompatImageButton
import androidx.lifecycle.Lifecycle
import androidx.test.core.app.launchActivity
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActio... | 19 | Java | 1 | 1 | 8f6811e9566376fb66f45afcc1d6c7bc08821662 | 5,473 | lullabies-v3 | Apache License 2.0 |
mediapicker/src/main/java/com/lijojoseph/mediapicker/FontsConstants.kt | klijojoseph | 384,523,042 | false | null | package com.lijojoseph.mediapicker
object FontsConstants {
const val SEMI_BOLD = "Inter-UI-Medium.otf"
const val BOLD = "Inter-UI-SemiBold.otf"
} | 0 | Kotlin | 0 | 0 | ee2739254e3e7568aa10ab2a95218632ee339eb4 | 154 | MediaPicker | MIT License |
nugu-login-kit/src/test/java/com/skt/nugu/sdk/platform/android/login/auth/NuguOAuthTest.kt | nugu-developers | 214,067,023 | false | null | /**
* Copyright (c) 2021 SK Telecom Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 3 | null | 18 | 27 | 53ebf6b8b17afeff6fdb3a8741f345f2fbe0d649 | 24,307 | nugu-android | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/SirenOn.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.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.Mite... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,101 | icons | MIT License |
src/main/Main.kt | Clausr | 575,584,811 | false | {"Kotlin": 67769} | import com.github.kittinunf.fuel.Fuel
import com.github.kittinunf.fuel.core.Headers
import com.github.kittinunf.result.Result
import java.io.File
import java.nio.file.Files
import java.nio.file.Paths
fun main(args: Array<String>) {
val year = 2023
val day = 3
readInputFileFromInternet(year, day)
creat... | 3 | Kotlin | 0 | 0 | cc82ab4bc58b1491baf8c3c918386f739762def7 | 3,939 | advent_of_code | Apache License 2.0 |
beagle-noop/src/main/java/com/pandulapeter/beagle/BeagleNetworkInterceptor.kt | yexseven | 221,888,935 | true | {"Kotlin": 127153} | package com.pandulapeter.beagle
import com.pandulapeter.beagleCore.contracts.BeagleNetworkInterceptorContract
import okhttp3.Interceptor
import okhttp3.Response
object BeagleNetworkInterceptor : BeagleNetworkInterceptorContract {
override fun intercept(chain: Interceptor.Chain): Response = chain.proceed(chain.re... | 0 | null | 0 | 0 | f6f1d2c2372349c69c89fa4795d7682ad29c15bb | 330 | beagle | Apache License 2.0 |
10-building-a-dynamic-feature/projects/starter/features/sharing/src/main/java/com/raywenderlich/android/petsave/sharing/presentation/SharingFragmentViewModel.kt | raywenderlich | 279,673,021 | false | null | package com.raywenderlich.android.petsave.sharing.presentation
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.raywenderlich.android.petsave.common.domain.usecases.GetAnimalDetails
import com.raywenderlich.android.petsave.common.utils.DispatchersProvider
import com.raywenderlich... | 1 | Kotlin | 35 | 97 | a9d68daf38a4d5e093c44ef382be3d76d9dc7e74 | 1,460 | adva-materials | Apache License 2.0 |
src/main/kotlin/com/github/sukhinin/kflow/sink/FlowSink.kt | sukhinin | 250,091,757 | false | null | package com.github.sukhinin.kflow.sink
import com.github.sukhinin.kflow.Flow
interface FlowSink {
fun write(flow: Flow)
}
| 0 | Kotlin | 0 | 1 | f5e78100a5d9b9f53db30467ce6901f0a225b5ab | 128 | kflow | Apache License 2.0 |
utils/src/org/jetbrains/android/generator/test/generatorUtils.kt | fossabot | 106,286,350 | true | {"Kotlin": 1437454, "Java": 39912, "HTML": 1615} | /*
* Copyright 2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 0 | Kotlin | 0 | 0 | 37622fc1714cde2b5e81717bbb7b64344abe9b6f | 4,226 | anko | Apache License 2.0 |
node/src/integration-test/kotlin/net/corda/node/flows/AsymmetricCorDappsTests.kt | amangale | 166,518,885 | false | {"Gradle": 71, "INI": 27, "Markdown": 84, "Shell": 24, "Text": 13, "Ignore List": 10, "Java Properties": 3, "Batchfile": 5, "XML": 103, "Java": 130, "Kotlin": 1649, "YAML": 5, "Makefile": 2, "Python": 7, "Gherkin": 3, "Groovy": 2, "Dockerfile": 1, "RPM Spec": 1, "CSS": 10, "SVG": 4, "PowerShell": 1, "JSON": 2, "AppleSc... | package net.corda.node.flows
import co.paralleluniverse.fibers.Suspendable
import net.corda.core.flows.*
import net.corda.core.identity.Party
import net.corda.core.internal.concurrent.transpose
import net.corda.core.messaging.startFlow
import net.corda.core.utilities.getOrThrow
import net.corda.core.utilities.unwrap
i... | 1 | null | 1 | 1 | 4059966ccb15883022b4a069f9e8fedce7849dde | 3,716 | corda | Apache License 2.0 |
plugins/liquid/arrow-refined-types/src/commonMain/kotlin/arrow/refinement/digests/SHA512.kt | pstinghua | 409,558,986 | true | {"Kotlin": 1937232, "Java": 7034, "Shell": 195} | package arrow.refinement.digests
import arrow.refinement.Refined
import arrow.refinement.strings.HexString
import arrow.refinement.strings.Size
import kotlin.jvm.JvmInline
@JvmInline
value
/**
* [SHA512] constrains [String] to be a valid hexadecimal [String] of length 128
*
* # Safe nullable construction
*
* ```... | 2 | null | 0 | 0 | 9adbd026e54349e26f3987b97b3165241f5f282d | 1,898 | arrow-meta | Apache License 2.0 |
px-checkout/src/main/java/com/mercadopago/android/px/internal/features/checkout/PostPaymentUrlsMapper.kt | mercadopago | 49,529,486 | false | null | package com.mercadopago.android.px.internal.features.checkout
import android.net.Uri
import com.mercadopago.android.px.internal.extensions.isNotNullNorEmpty
import com.mercadopago.android.px.internal.mappers.Mapper
import com.mercadopago.android.px.model.IPaymentDescriptor
import com.mercadopago.android.px.model.Payme... | 38 | null | 69 | 94 | f5cfa00ea5963f9153a237c3f329af5d2d6cd87f | 2,692 | px-android | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/apigatewayv2/CfnIntegrationTlsConfigPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.apigatewayv2
import cloudshift.awscdk.common.CdkDslMarker
impo... | 3 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 1,790 | awscdk-dsl-kotlin | Apache License 2.0 |
src/main/kotlin/org/teamvoided/nullium/data/gen/loot/InjectionLootTablesProvider.kt | TeamVoided | 788,995,006 | false | {"Kotlin": 61140, "Java": 18442} | package org.teamvoided.nullium.data.gen.loot
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput
import net.fabricmc.fabric.api.datagen.v1.provider.SimpleFabricLootTableProvider
import net.minecraft.block.Blocks
import net.minecraft.block.CakeBlock
import net.minecraft.item.Items
import net.minecraft.loot.LootT... | 0 | Kotlin | 0 | 1 | 7423e7769d8888995d4129f6d329535ea809854b | 2,872 | Nullium | MIT License |
app/src/main/java/com/diplom/map/mvp/config/retrofit/backstage/GeoserverClientModule.kt | DonGlebon | 175,883,786 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 2, "Ignore List": 2, "Batchfile": 1, "Git Attributes": 1, "Proguard": 1, "XML": 55, "Kotlin": 78, "Java": 1} | package com.diplom.map.mvp.config.retrofit.backstage
import com.diplom.map.mvp.config.retrofit.GeoserverClient
import com.google.gson.GsonBuilder
import dagger.Module
import dagger.Provides
import io.reactivex.schedulers.Schedulers
import retrofit2.Retrofit
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
im... | 1 | null | 1 | 1 | 45f2e59eed6f228f42d0b2b45ad374746a7dc9d3 | 874 | Diplom | MIT License |
plugin/src/main/kotlin/io/github/addoncommunity/galactifun/api/objects/planet/PlanetaryWorld.kt | Slimefun-Addon-Community | 624,085,324 | false | {"Kotlin": 165422} | package io.github.addoncommunity.galactifun.api.objects.planet
import io.github.addoncommunity.galactifun.api.objects.PlanetaryObject
import io.github.addoncommunity.galactifun.impl.managers.PlanetManager
import org.bukkit.World
import org.bukkit.inventory.ItemStack
/**
* A planetary object that has a world. This i... | 1 | Kotlin | 2 | 5 | 1d1f713bb22786b614d28058079e9da643665b2d | 797 | Galactifun2 | Apache License 2.0 |
app/src/main/java/com/kuneosu/mintoners/ui/fragments/ProfileMainFragment.kt | Kuneosu | 823,904,157 | false | {"Kotlin": 199162} | package com.kuneosu.mintoners.ui.fragments
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import androi... | 0 | Kotlin | 0 | 0 | 3a290dcc803aa1d5ce1ad300c7cb3789280b1c74 | 1,900 | Mintoners | MIT License |
relateddigital-google/src/main/java/com/relateddigital/relateddigital_google/inapp/jackpot/JackpotCopyToClipboardInterface.kt | relateddigital | 570,038,292 | false | null | package com.relateddigital.relateddigital_google.inapp.jackpot
interface JackpotCopyToClipboardInterface {
fun copyToClipboard(couponCode: String?, link: String?)
} | 0 | Kotlin | 0 | 2 | 29e00b28a1a267ac43e992e626666f0ae4cc8df9 | 169 | relateddigital-google | Amazon Digital Services License |
platform/inspect/src/com/intellij/codeInspection/inspectionProfile/YamlInspectionProfileImpl.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.codeInspection.inspectionProfile
import com.intellij.codeHighlighting.HighlightDisplayLevel
import com.intellij.codeInspection.GlobalInspectionTool
import com.intellij.codeInspe... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 13,071 | intellij-community | Apache License 2.0 |
sources/gradle-e2e-test/testData/projects/cli-jvm-hello-world/src/main.kt | JetBrains | 709,379,874 | false | {"Kotlin": 1917051, "Java": 288926, "Shell": 107894, "Batchfile": 66223, "Lex": 16216, "Swift": 14457, "Ruby": 4736, "Dockerfile": 1327} | /*
* Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
fun main() {
println("Hello, World!")
}
| 0 | Kotlin | 30 | 988 | 6a2c7f0b86b36c85e9034f3de9bfe416516b323b | 173 | amper | Apache License 2.0 |
app/src/main/java/com/taqucinco/pokemon_sample/ui/route/home/HomeScreenUiState.kt | taqucinco-com | 735,229,218 | false | {"Kotlin": 113444} | package com.taqucinco.pokemon_sample.ui.route.home
import com.taqucinco.pokemon_sample.feature.pokemon.PokemonResource
data class HomeScreenUiState(
val pokemons: List<PokemonResource> = emptyList(),
val offset: Int = 0,
val loading: Boolean = false,
val remaining: Boolean = true,
val error: Throw... | 6 | Kotlin | 0 | 1 | c8e1ac968c331b832312ed36292855a097d54014 | 336 | pokemon_sample | Apache License 2.0 |
src/main/kotlin/com/github/czyzby/setup/config/configuration.kt | czyzby | 58,057,083 | false | null | package com.github.czyzby.setup.config
import com.badlogic.gdx.Gdx
import com.badlogic.gdx.scenes.scene2d.Actor
import com.github.czyzby.autumn.annotation.Component
import com.github.czyzby.autumn.annotation.Initiate
import com.github.czyzby.autumn.mvc.component.i18n.LocaleService
import com.github.czyzby.autumn.mvc.c... | 7 | null | 13 | 129 | da82263e56f671327d69b872a6a2fca1050b719a | 3,312 | gdx-setup | The Unlicense |
app/src/main/java/com/androgynousis/messenger/view/activities/Conversation.kt | kumarguaraw989 | 237,062,235 | true | {"Kotlin": 27709} | package com.androgynousis.messenger.view.activities
import android.os.Bundle
import android.view.Menu
import android.view.View
import android.widget.Button
import android.widget.EditText
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.androgynousis.me... | 0 | null | 0 | 1 | 01ab4b3839a2e7ecb56c0eeb4f4cfa0428a2a12a | 3,275 | messenger-design | MIT License |
2018/src/five/InventoryManagementChallengeTest.kt | Mattias1 | 116,139,424 | false | null | package five
import junit.framework.Assert
import junit.framework.TestCase
import org.junit.Test
class InventoryManagementChallengeTest : TestCase() {
private val challenge: InventoryManagementChallenge = InventoryManagementChallenge()
@Test
fun testChecksum() {
val input = listOf(
"a... | 0 | Kotlin | 0 | 0 | 6bcd889c6652681e243d493363eef1c2e57d35ef | 891 | advent-of-code | MIT License |
FreeLocationProvider/src/main/java/dev/pwar/freelocationprovider/mapper/SensorDataModelFromLogLine.kt | fcuringa | 619,291,328 | false | null | package dev.pwar.freelocationprovider.mapper
import dev.pwar.freelocationprovider.domain.SensorDataModel
import dev.pwar.freelocationprovider.domain.SensorType
import java.time.LocalDateTime
fun sensorDataModelFromLogLine(line: String): SensorDataModel {
if (line.contains("android.sensor")){
val elements ... | 0 | Kotlin | 0 | 2 | 632b713d9f7795394dfe148396f9b3b3fae5148a | 1,353 | FreeLocationProvider | Apache License 2.0 |
app/src/main/java/com/arcadone/pokestorie/presentation/HomeViewModel.kt | ArcaDone | 804,002,329 | false | {"Kotlin": 88338} | package com.arcadone.pokestorie.presentation
import android.util.Log
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.arcadone.pokestorie.domain.model.PokemonInfo
import com.arcadone.pokestorie.d... | 0 | Kotlin | 0 | 0 | b5cdf21b656222931531755081f9a5a68ea7ceb1 | 5,159 | pokeStorie | MIT License |
app/src/main/kotlin/io/wax911/challenge/koin/Modules.kt | wax911 | 457,808,380 | false | {"Kotlin": 140698} | package io.wax911.challenge.koin
import io.wax911.challenge.core.koin.helper.FeatureModuleHelper
import org.koin.androidx.fragment.dsl.fragment
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module
private val contentModule = module {
}
private val viewModelModule = module {
}
internal val ... | 0 | Kotlin | 0 | 0 | b975c8bbc266bd7a19abeadd585f94407bbb95ec | 398 | android-tech-task | Apache License 2.0 |
app/src/main/java/com/xtensolutions/weatherapp/ui/viewmodel/BaseViewModel.kt | riontech-xten | 345,582,958 | false | null | package com.xtensolutions.weatherapp.ui.viewmodel
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.ViewModel
import androidx.lifecycle.asLiveData
import com.xtensolutions.weatherapp.R
import com.xtensolutions.weatherapp.core.DataResult
import kotlinx.coroutines.flow.flow
import retrofit2.Respon... | 0 | Kotlin | 0 | 0 | baea739eb9789d3d803a4bb29084965f15cdae83 | 1,135 | Weather | Apache License 2.0 |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/document/FileCheckLine.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.remix.remix.document
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.S... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,303 | compose-icon-collections | MIT License |
shared/src/commonMain/kotlin/screens/create/AddTaskSheet.kt | big-jared | 721,852,180 | false | {"Kotlin": 79505, "Swift": 687, "Shell": 228} | package screens.create
import BottomSheetScreen
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.clickab... | 0 | Kotlin | 0 | 0 | 38e7ba115d706a8022e72071c47721e8ef1eeabb | 9,938 | Lolito | Apache License 2.0 |
app/src/main/java/cn/wthee/pcrtool/ui/tool/TweetList.kt | wthee | 277,015,110 | false | null | package cn.wthee.pcrtool.ui.tool
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fil... | 0 | null | 2 | 53 | 73b9331c3e15e9718177c64ef6725eea8582abe6 | 11,795 | pcr-tool | Apache License 2.0 |
domain/src/main/java/com/nyinyihtunlwin/domain/exception/NetworkException.kt | nyinyihtunlwin-codigo | 368,728,828 | false | {"Kotlin": 37585} | package com.nyinyihtunlwin.domain.exception
object NetworkException: Exception() | 0 | Kotlin | 0 | 1 | daf51d2c563325b57a56211b87d14bd2556666b3 | 81 | my-movies | Apache License 2.0 |
components/link-manager/src/test/kotlin/net/corda/p2p/linkmanager/sessions/StateManagerWrapperTest.kt | corda | 346,070,752 | false | null | package net.corda.p2p.linkmanager.sessions
import net.corda.libs.statemanager.api.MetadataFilter
import net.corda.libs.statemanager.api.State
import net.corda.libs.statemanager.api.StateManager
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.mockito.kotlin.any
import org.... | 50 | null | 25 | 55 | 00630a76507ef4610a50058480a911b3b77ca603 | 4,376 | corda-runtime-os | Apache License 2.0 |
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/chargepoint/view/createchargepoint/ChargePointForm.kt | monta-app | 789,343,716 | false | null | package com.monta.ocpp.emulator.v16.view.createchargepoint
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import andr... | 7 | null | 4 | 89 | 3ec9445ca517e97a0dba2f0a05b7ed38ac37faf5 | 15,243 | ocpp-emulator | Apache License 2.0 |
src/main/kotlin/one/digitalinnovation/digionebank/teste/TesteAutenticacao.kt | lucasgoncalvesbt | 425,162,689 | false | null | package one.digitalinnovation.digionebank.teste
import one.digitalinnovation.digionebank.Logavel
class TesteAutenticacao {
fun autentica(logavel: Logavel) = println(logavel.login())
} | 0 | Kotlin | 0 | 0 | 4bfb3f1e1bd2630ac16644e52f8753270cbd569d | 189 | dio-kotlin-oo | MIT License |
hexagon_core/src/test/kotlin/com/hexagonkt/helpers/JvmTest.kt | wanglaibao | 182,938,373 | true | {"Kotlin": 294183, "HTML": 22186, "Scala": 3558, "JavaScript": 2701, "Groovy": 2022, "Dockerfile": 1701, "CSS": 613} | package com.hexagonkt.helpers
import org.testng.annotations.Test
import java.net.Inet4Address
@Test class JvmTest {
@Test fun `'hostname' and 'ip' contains valid values` () {
assert(Jvm.hostname.isNotBlank())
assert(Jvm.ip.matches(Regex("\\d{1,3}(\\.\\d{1,3}){3}")))
assert(Inet4Address.ge... | 0 | Kotlin | 0 | 0 | 69b24328adcb32cca1b038128f544b437e324525 | 693 | hexagon | MIT License |
middleware/sisyphus-jdbc/src/main/kotlin/com/bybutter/sisyphus/middleware/jdbc/support/proto/filter/TableSqlBuilder.kt | ButterCam | 264,589,207 | false | null | package com.bybutter.sisyphus.middleware.jdbc.support.proto.filter
import com.bybutter.sisyphus.dsl.filtering.grammar.FilterParser
import com.bybutter.sisyphus.string.toCamelCase
import org.jooq.Condition
import org.jooq.DSLContext
import org.jooq.Field
import org.jooq.OrderField
import org.jooq.Record
import org.jooq... | 9 | null | 10 | 92 | 1f9851c7c45030fa08e018e961110851e029f940 | 3,000 | sisyphus | MIT License |
plugin/src/main/java/com/bumble/devicefarm/plugin/device/farm/DeviceFarm.kt | bumble-tech | 575,789,291 | false | {"Kotlin": 24616} | package com.bumble.devicefarm.plugin.device.farm
import com.android.build.api.dsl.Device
import org.gradle.api.provider.Property
import org.gradle.api.tasks.Input
interface DeviceFarm : Device {
@get:Input
val shards: Property<Int>
} | 0 | Kotlin | 3 | 6 | 9c0548344983d652d1c80af2f128b85d60403429 | 245 | Article_GradleManagedDevices | Apache License 2.0 |
app/src/main/java/com/amtgreenberg/thegame/MainApplication.kt | AdamMTGreenberg | 324,944,552 | false | null | package com.amtgreenberg.thegame
import android.app.Application
import com.amtgreenberg.thegame.di.component.AppComponent
import com.amtgreenberg.thegame.di.component.DaggerAppComponent
import com.amtgreenberg.thegame.di.module.AppModule
import com.amtgreenberg.thegame.di.module.LocalStorageModule
import com.facebook.... | 0 | Kotlin | 0 | 0 | ce8a3f510639cdd1c58cffd339f454b24e50d178 | 1,156 | thegame | MIT License |
mbingresskit/src/main/java/com/daimler/mbingresskit/implementation/network/LdssoAgreementTask.kt | Daimler | 199,818,813 | false | {"Gradle": 9, "Markdown": 6, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Proguard": 2, "Java": 7, "Kotlin": 220, "JSON": 7, "XML": 14} | package com.daimler.mbingresskit.implementation.network
import com.daimler.mbingresskit.common.LdssoUserAgreement
import com.daimler.mbingresskit.common.UserAgreementContentType
import com.daimler.mbingresskit.implementation.network.model.agreement.ApiAgreementsResponse
import com.daimler.mbingresskit.implementation.n... | 0 | Kotlin | 0 | 0 | 472fe1cdf4ae45989c9d0f1a9628292f5432b103 | 2,161 | MBSDK-IngressKit-Android | MIT License |
plugins/kotlin/idea/tests/testData/quickfix/convertToAnonymousObject/typeArgument2.kt | ingokegel | 72,937,917 | false | null | // "Convert to anonymous object" "true"
interface B<X, Y, Z> {
fun bar(a: Z, b: Y): X
}
val b = <caret>B { a: Int, b: Long -> "" }
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ConvertToAnonymousObjectFix | 233 | null | 4912 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 220 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/news/ui/home/main/adapter/item/NewsTextItem.kt | KotezMorovez | 756,865,346 | false | {"Kotlin": 237052} | package com.example.news.ui.home.main.adapter.item
import com.example.news.ui.common.delegate_adapter.IDelegateAdapterItem
class NewsTextItem (val ui: NewsUi) : IDelegateAdapterItem {
override fun id(): String {
return ui.id
}
override fun content(): NewsUi {
return ui
}
} | 0 | Kotlin | 0 | 0 | fde8a39b0ef6b6642261fcfe406d00ae3a5a2131 | 308 | News | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsaccreditedprogrammesapi/course/repositories/JpaCourseRepository.kt | ministryofjustice | 615,402,552 | false | {"Kotlin": 215257, "Shell": 10680, "Dockerfile": 1397} | package uk.gov.justice.digital.hmpps.hmppsaccreditedprogrammesapi.course.repositories
import org.hibernate.Hibernate
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component
import uk.gov.justice.digital.hmpps.hmppsaccreditedprogrammesapi.course.domain.Audience
impo... | 0 | Kotlin | 0 | 0 | f15f6d5030a8bd93970c82afd832c821de3f2c1e | 2,393 | hmpps-accredited-programmes-api | MIT License |
app/src/main/java/com/binlly/gankee/service/Services.kt | binlly | 110,812,581 | false | null | package com.binlly.gankee.service
import android.os.Handler
import android.os.Looper
import com.binlly.gankee.app.App
import com.binlly.gankee.service.account.AccountService
import com.binlly.gankee.service.account.AccountServiceImpl
import com.binlly.gankee.service.remoteconfig.RemoteConfigService
import com.binlly.... | 1 | null | 1 | 1 | fd315ad794de22e6213fbcb8c4fa45af1c24c8d4 | 1,475 | Gankee | MIT License |
app/src/main/java/in/developingdeveloper/timeline/settings/ui/SettingsContent.kt | 5AbhishekSaxena | 624,931,376 | false | null | package `in`.developingdeveloper.timeline.settings.ui
import android.content.res.Configuration
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Scaffold
import androidx.compose.material3.Surface
import androidx.compose.runtime.Com... | 9 | null | 3 | 18 | 44cbc20a430e0d012d982b4adb11ae626af1c404 | 2,148 | Timeline | Apache License 2.0 |
educational-core/src/com/jetbrains/edu/coursecreator/stepik/StepikCourseUploader.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.coursecreator.stepik
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.project.Project
import com.jetbrains.edu.coursecreator.CCNotificationUtils.showNotification
import com.jetbrains.edu.coursecreator.stepik.C... | 0 | null | 37 | 98 | 4b4b8b51517cd0fd1452bec9250a4c414b051caa | 5,095 | educational-plugin | Apache License 2.0 |
src/main/kotlin/no/nav/dagpenger/manuell/behandling/avklaring/AvklaringBehandling.kt | navikt | 767,735,518 | false | {"Kotlin": 30061, "Dockerfile": 213} | package no.nav.dagpenger.manuell.behandling.avklaring
import mu.KotlinLogging
import mu.withLoggingContext
import no.nav.dagpenger.manuell.behandling.hendelse.ManuellBehandlingAvklaring
import no.nav.helse.rapids_rivers.JsonMessage
import no.nav.helse.rapids_rivers.MessageContext
import java.time.LocalDateTime
import ... | 1 | Kotlin | 0 | 0 | f2cd3232ce5a21d75eea4c43b757d6f34ebaf020 | 2,480 | dp-manuell-behandling | MIT License |
project/core-bukkit/src/main/kotlin/io/github/itsflicker/sync/bukkit/core/PlayerDataHandler.kt | MeowRealms | 680,412,955 | false | null | package io.github.itsflicker.sync.bukkit.core
import io.github.itsflicker.sync.common.data.PlayerData
import org.bukkit.entity.Player
import taboolib.common.platform.Platform
import taboolib.common.platform.PlatformSide
import taboolib.module.configuration.ConfigNode
import java.util.*
import java.util.concurrent.Conc... | 1 | Kotlin | 0 | 0 | a0a9e1d2053590eec95bec51951b718f9e778918 | 789 | ItsSync | Creative Commons Zero v1.0 Universal |
project/core-bukkit/src/main/kotlin/io/github/itsflicker/sync/bukkit/core/PlayerDataHandler.kt | MeowRealms | 680,412,955 | false | null | package io.github.itsflicker.sync.bukkit.core
import io.github.itsflicker.sync.common.data.PlayerData
import org.bukkit.entity.Player
import taboolib.common.platform.Platform
import taboolib.common.platform.PlatformSide
import taboolib.module.configuration.ConfigNode
import java.util.*
import java.util.concurrent.Conc... | 1 | Kotlin | 0 | 0 | a0a9e1d2053590eec95bec51951b718f9e778918 | 789 | ItsSync | Creative Commons Zero v1.0 Universal |
app/src/main/java/fr/chatavion/client/db/entity/Community.kt | Minibuz | 596,173,565 | false | null | package fr.chatavion.client.db.entity
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
@Entity(
tableName = "community",
indices = [
Index(value = ["name", "address"], unique = true)
]
)
data class Community(
val name: String,
val address: String,
... | 0 | Kotlin | 1 | 1 | dbac7c48ee5ce52f01c0327809bc82bf1c2faac2 | 437 | ChatAvion-Client | MIT License |
app/src/main/java/com/polar/androidblesdk/HeartRateActivity.kt | LetMarq | 801,298,442 | false | {"Kotlin": 29140} | package com.polar.androidblesdk
import android.Manifest
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Button
import android.widget.TextView
imp... | 0 | Kotlin | 0 | 0 | 9f295e65a0e7a578f332517e8cc8fbc0ee0bc685 | 17,204 | MoveApp | MIT License |
core/ui/src/main/java/ru/aleshin/core/ui/views/CategoryMonogram.kt | v1tzor | 638,022,252 | false | null | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | 3 | null | 4 | 99 | 0762559e4dabea2971df1573472216f554ab8577 | 3,470 | TimePlanner | Apache License 2.0 |
app/src/main/java/org/xtras/daggerviewmodelfactory/viewmodel/TestViewModel.kt | victor5171 | 250,354,171 | false | null | package org.xtras.daggerviewmodelfactory.viewmodel
import androidx.lifecycle.ViewModel
import javax.inject.Inject
class TestViewModel @Inject constructor() : ViewModel()
| 0 | Kotlin | 1 | 1 | 20d47f8632a39429e01f3e8e68ac188f5209caa1 | 172 | dagger-viewmodelfactory | MIT License |
ktor-client/ktor-client-okhttp/jvm/src/io/ktor/client/engine/okhttp/OkHttpConfig.kt | RuiDTLima | 190,507,625 | true | {"Kotlin": 2537833, "Lua": 280, "HTML": 112} | /*
* Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.client.engine.okhttp
import io.ktor.client.engine.*
import okhttp3.*
import java.util.concurrent.*
/**
* Configuration for [OkHttp] client engine.
*/
class OkHttpConfig : H... | 0 | Kotlin | 0 | 1 | e0525a274d2c9958778fb649df39d59c44341b2b | 1,186 | ktor | Apache License 2.0 |
compiler/tests/org/jetbrains/kotlin/jvm/compiler/AbstractWriteSignatureTest.kt | staltz | 421,687,586 | true | {"Markdown": 34, "XML": 687, "Ant Build System": 40, "Ignore List": 8, "Git Attributes": 1, "Kotlin": 18510, "Java": 4307, "Protocol Buffer": 4, "Text": 4085, "JavaScript": 63, "JAR Manifest": 3, "Roff": 30, "Roff Manpage": 10, "INI": 7, "HTML": 135, "Groovy": 20, "Maven POM": 50, "Gradle": 71, "Java Properties": 10, "... | /*
* Copyright 2010-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1 | Java | 0 | 1 | ff00bde607d605c4eba2d98fbc9e99af932accb6 | 11,015 | kotlin | Apache License 2.0 |
library/renetik-android-ui/src/main/java/renetik/android/ui/extensions/view/View+Visibility.kt | rene-dohan | 69,289,476 | false | null | package renetik.android.ui.extensions.view
import android.view.View
import android.view.View.*
import androidx.appcompat.widget.ContentFrameLayout
import renetik.android.event.registration.CSMultiRegistration
import renetik.android.event.registration.CSRegistration
import renetik.android.ui.protocol.CSVisibility
impor... | 0 | Kotlin | 3 | 2 | e5bb388e7f2b0fb87585994283334dcce0371637 | 7,252 | renetik-library-android | MIT License |
model/src/main/java/com/freshdigitable/udonroad2/model/MediaEntity.kt | akihito104 | 149,869,805 | false | {"YAML": 4, "Gradle Kotlin DSL": 7, "JSON": 1, "Kotlin": 263, "Java Properties": 10, "Shell": 1, "Text": 1, "Ignore List": 17, "Batchfile": 1, "EditorConfig": 1, "Gradle": 12, "Proguard": 17, "XML": 147, "Java": 3, "INI": 7, "PlantUML": 3} | /*
* Copyright (c) 2019. Matsuda, Akihit (akihito104)
*
* 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 applic... | 22 | null | 1 | 1 | 7ec50f204fda79cf222b24623f22e80d05301555 | 1,747 | UdonRoad2 | Apache License 2.0 |
app/src/main/java/com/example/medellinplaces/ui/view/SplashScreenActivity.kt | sachih1ro | 428,084,945 | false | {"Kotlin": 18767} | package com.example.medellinplaces.ui.view
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import com.example.medellinplaces.databinding.ActivityPlacesMainBinding
import com.example.medellinplaces.databinding.ActivitySplashScreenBinding
class... | 0 | Kotlin | 0 | 0 | b201f088e0f2f1b112c1f67969ff064c836c8cd1 | 1,393 | MedellinPlacesApp-4MisionTIC2022 | MIT License |
camera/camera-camera2-pipe-integration/src/main/java/androidx/camera/camera2/pipe/integration/adapter/CameraControlAdapter.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2020 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 | 983 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 7,018 | androidx | Apache License 2.0 |
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/solid/FunnelDollar.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.fontawesomeicons.solid
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 4,502 | compose-icons | MIT License |
work/work-runtime/src/main/java/androidx/work/ListenableFuture.kt | androidx | 256,589,781 | false | {"Kotlin": 95878258, "Java": 67276414, "C++": 9121933, "AIDL": 629410, "Python": 308602, "Shell": 191832, "TypeScript": 40586, "HTML": 26377, "Svelte": 20307, "ANTLR": 19860, "C": 16935, "CMake": 14401, "Groovy": 13532, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2018 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... | 27 | Kotlin | 901 | 4,898 | e7c7c42655aba3f04cb7672f2eb02744bd24ce7f | 3,542 | androidx | Apache License 2.0 |
math-hammer-40k/src/main/kotlin/io/hsar/mathhammer/model/UnitProfile.kt | HSAR | 382,069,316 | false | null | package io.hsar.mathhammer.model
/**
* Each unit configuration makes multiple distinct offensive profiles, one per attacker type.
*/
data class UnitProfile(
val unitName: String,
val totalPointsCost: Double,
val offensiveProfiles: List<OffensiveProfile>
) | 0 | Kotlin | 0 | 0 | 6a51110c3158a61a0c5874a68214b0f51f566be2 | 270 | MathHammer | Apache License 2.0 |
WorkManagerSample/app/src/main/java/com/example/background/FilterActivity.kt | android | 90,792,131 | false | null | /*
* Copyright 2018 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... | 193 | null | 8331 | 23,109 | e849ce3004ccd1132a121cf513bbcb7996d95c30 | 4,453 | architecture-components-samples | Apache License 2.0 |
app/src/main/java/com/sirisdevelopment/swiftly/viewmodel/MainViewModel.kt | jim-spa | 301,162,871 | false | null | package com.sirisdevelopment.swiftly.viewmodel
import com.sirisdevelopment.swiftly.SwiftlyExample
import com.sirisdevelopment.swiftly.data.SwiftlyGrocerAPI
import com.sirisdevelopment.swiftly.data.SwiftlyRepository
import com.sirisdevelopment.swiftly.data.SwiftlyServiceGenerator
import kotlinx.coroutines.GlobalScope
i... | 0 | Kotlin | 0 | 0 | f3885b1c28c18e6cac7cdd1cf8d33d4a7d30b3e9 | 844 | swiftly-example | MIT License |
app/src/main/java/com/sirisdevelopment/swiftly/viewmodel/MainViewModel.kt | jim-spa | 301,162,871 | false | null | package com.sirisdevelopment.swiftly.viewmodel
import com.sirisdevelopment.swiftly.SwiftlyExample
import com.sirisdevelopment.swiftly.data.SwiftlyGrocerAPI
import com.sirisdevelopment.swiftly.data.SwiftlyRepository
import com.sirisdevelopment.swiftly.data.SwiftlyServiceGenerator
import kotlinx.coroutines.GlobalScope
i... | 0 | Kotlin | 0 | 0 | f3885b1c28c18e6cac7cdd1cf8d33d4a7d30b3e9 | 844 | swiftly-example | MIT License |
compiler-plugin-utils/src/main/kotlin/com/rnett/plugin/naming/FunctionFilter.kt | rnett | 334,825,195 | false | null | package com.rnett.plugin.naming
import org.jetbrains.kotlin.ir.declarations.IrFunction
import org.jetbrains.kotlin.ir.declarations.IrValueParameter
import org.jetbrains.kotlin.ir.util.isVararg
/**
* A filter for resolving IR functions
*/
@Deprecated("Will be superseded by reference generator")
public interface IFun... | 0 | Kotlin | 0 | 6 | e74bd3c52b82a4f3bcce9aefd1b06d656b927c67 | 3,630 | compiler-plugin-utils | Apache License 2.0 |
easyResult/src/main/java/com/yupfeg/result/permission/config/RequestPermissionConfig.kt | yuPFeG1819 | 447,441,136 | false | {"Kotlin": 108800} | package com.yupfeg.result.permission.config
import com.yupfeg.result.permission.dialog.PermissionRationaleDialogFragment
/**
* 动态权限请求dsl配置类
* @author yuPFeG
* @date 2021/10/15
*/
open class RequestPermissionConfig{
/**
* 请求的权限集合,集合为空则不会发起权限请求
* */
@JvmField
var permissions : Array<String>?... | 0 | Kotlin | 0 | 0 | 611597eeb69760ed0b855f60f1943d0e2435b5d9 | 1,275 | EasyResutAPI | Apache License 2.0 |
boxicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/boxicons/boxicons/regular/BxDetail.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.boxicons.boxicons.regular
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCa... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,982 | compose-icon-collections | MIT License |
compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/expressions/impl/IrFunctionExpressionImpl.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2019 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.ir.expressions.impl
import org.jetbrains.kotlin.ir.declarations.IrSimpleFunction... | 125 | null | 4903 | 39,894 | 0ad440f112f353cd2c72aa0a0619f3db2e50a483 | 1,318 | kotlin | Apache License 2.0 |
src/main/kotlin/no/nav/familie/ba/sak/ekstern/restDomene/RestUtvidetBehandling.kt | navikt | 224,639,942 | false | null | package no.nav.familie.ba.sak.ekstern.restDomene
import no.nav.familie.ba.sak.kjerne.behandling.domene.BehandlingKategori
import no.nav.familie.ba.sak.kjerne.behandling.domene.BehandlingResultat
import no.nav.familie.ba.sak.kjerne.behandling.domene.BehandlingStatus
import no.nav.familie.ba.sak.kjerne.behandling.domene... | 8 | Kotlin | 0 | 7 | d4a7ef6bc7ba6f0dfdbea1e0d7c7413a97891d55 | 1,719 | familie-ba-sak | MIT License |
src/jvmMain/kotlin/controller/ig/IgController.kt | hapifhir | 285,363,653 | false | null | package controller.ig
import model.PackageInfo
interface IgController {
suspend fun listIgs(): MutableList<PackageInfo>
} | 10 | Kotlin | 4 | 4 | f702b7432facec00c97ab72ee41f463cc2444974 | 127 | org.hl7.fhir.validator-wrapper | Apache License 2.0 |
app/src/main/java/me/hegj/wandroid/mvp/model/share/ShareByIdModel.kt | hegaojian | 206,478,384 | false | null | package me.hegj.wandroid.mvp.model.share
import android.app.Application
import com.google.gson.Gson
import com.jess.arms.integration.IRepositoryManager
import com.jess.arms.mvp.BaseModel
import com.jess.arms.di.scope.ActivityScope
import io.reactivex.Observable
import javax.inject.Inject
import me.hegj.wandroid.mvp.... | 1 | null | 100 | 713 | 622016c9695c01f3a134a23c4af1f76686aad6f1 | 1,964 | WanAndroid | Apache License 2.0 |
src/main/kotlin/org/plan/research/tga/coverage/CoverageInfo.kt | plan-research | 762,333,893 | false | {"Kotlin": 29709, "Python": 21144} | package org.plan.research.tga.coverage
data class CoverageInfo<T : Any>(
val coverage: Map<T, Boolean>
) {
val covered: UInt = coverage.count { it.value }.toUInt()
val total: UInt = coverage.size.toUInt()
val ratio = covered / total
}
data class LineId(val fileName: String, val lineNumber: UInt)
data ... | 0 | Kotlin | 0 | 0 | 7b8042b0de65d5dbf3da60f1dc121f4b33660184 | 1,409 | tga-pipeline | Apache License 2.0 |
network/src/test/java/com/bintang/network/ApiAbstract.kt | PiaggiPutra | 273,506,057 | false | null | package com.bintang.network
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import java.io.IOException
import java.nio.charset.StandardCharsets
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
import okhttp3.mockwebserver.RecordedRequest
import okio.buffer
import ... | 0 | Kotlin | 0 | 0 | 641770f129f649d144370639831c407b9903e87b | 2,016 | TestKitaBisaAndroid | Apache License 2.0 |
core/testing/src/main/java/io/github/droidkaigi/confsched/testing/data/TestDispatcherModule.kt | DroidKaigi | 776,354,672 | false | {"Kotlin": 1119401, "Swift": 211686, "Shell": 2954, "Makefile": 1314, "Ruby": 386} | package io.github.droidkaigi.confsched.testing.data
import dagger.Module
import dagger.Provides
import dagger.hilt.components.SingletonComponent
import dagger.hilt.testing.TestInstallIn
import io.github.droidkaigi.confsched.di.DispatcherModule
import io.github.droidkaigi.confsched.di.IoDispatcher
import kotlinx.corout... | 49 | Kotlin | 201 | 438 | 57c38a76beb5b75edc9220833162e1257f40ac06 | 826 | conference-app-2024 | Apache License 2.0 |
src/main/kotlin/io/luxus/jda/FileUtils.kt | Luxusio | 756,409,398 | false | {"Kotlin": 11869, "Java": 1260} | package io.luxus.jda
import java.io.File
val File.allFiles: List<File>
get() {
return if (isDirectory) {
listFiles()?.flatMap { it.allFiles } ?: listOf()
} else {
listOf(this)
}
}
| 1 | Kotlin | 0 | 1 | e1a99086f60c25bebc2f2d97bd323a4386bea947 | 238 | Java-Dependency-Analyzer | Apache License 2.0 |
src/test/kotlin/xyz/magentaize/dynamicdata/list/DynamicOrFixture.kt | Magentaize | 290,133,754 | false | null | package xyz.magentaize.dynamicdata.list
import xyz.magentaize.dynamicdata.list.test.asAggregator
import io.reactivex.rxjava3.core.Observable
import org.amshove.kluent.shouldBeEqualTo
import kotlin.test.Test
internal class DynamicOrFixture {
private val source1 = SourceList<Int>()
private val source2 = SourceL... | 0 | Kotlin | 0 | 3 | dda522f335a6ab3847cc90ff56e8429c15834800 | 3,129 | dynamicdata-kotlin | MIT License |
app/src/main/java/com/example/swd_application/Admin/Activities/EventAdminActivity.kt | Anirudhk07 | 336,242,117 | false | null | package com.example.swd_application.Admin.Activities
import android.app.DatePickerDialog
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.webkit.MimeTypeMap
import android.widget.*
import androidx.appcompat.app.AppCompatActivity
import com.example.swd... | 0 | Kotlin | 0 | 2 | 75a89d52dc9fa9d8b39e54f0b115323df08aac3d | 14,634 | SWD-Application | MIT License |
app/src/main/java/com/lodz/android/agiledevkt/modules/keyboard/KeyboardTestActivity.kt | LZ9 | 137,967,291 | false | {"Kotlin": 2174504} | package com.lodz.android.agiledevkt.modules.keyboard
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import com.lodz.android.agiledevkt.databinding.ActivityKeyboardTestBinding
import com.lodz.android.agiledevkt.modules.main.MainActivity
import com.lodz.and... | 0 | Kotlin | 3 | 11 | 926b9f968a984c42ade94371714ef4caf3ffbccf | 2,339 | AgileDevKt | Apache License 2.0 |
src/main/kotlin/io/datawire/loom/proto/model/NodeGroup.kt | datawire | 85,326,195 | false | {"Kotlin": 83440, "HCL": 12785, "Python": 3826, "Shell": 3210} | package io.datawire.loom.proto.model
data class NodeGroup(val name: String, val nodeCount: Int = 1, val nodeType: String = "t2.nano") | 16 | Kotlin | 5 | 52 | bccc8254fb0fca1746cf23857ab49aa924e7b4c4 | 135 | loom | Apache License 2.0 |
team/teamapi/src/main/java/it/laface/team/api/Const.kt | carlaf92 | 249,497,287 | false | null | package it.laface.team.api
import it.laface.domain.model.Team
object Const {
val teams: List<Team> by lazy {
listOf(
Team(
id = "1610612749",
key = "Milwaukee",
cityName = "Milwaukee",
code = "bucks",
nickname = "B... | 1 | Kotlin | 0 | 5 | ece5ed250b5f188b985fb546d24981077ef99866 | 8,621 | nba-app | MIT License |
packages/graalvm-js/src/main/kotlin/elide/runtime/gvm/globals.kt | elide-dev | 506,113,888 | false | null | package elide.runtime.gvm
import elide.runtime.js.require
/**
*
*/
internal val globalThis: dynamic = js("globalThis")
/**
*
*/
internal fun assign(name: String, target: dynamic) {
globalThis[name] = target
}
/**
*
*/
internal fun mount(pkg: String, path: String, name: String) {
var target: dynamic = requ... | 36 | Kotlin | 4 | 33 | 91800dbbf291e65a91d451ed50c9673d82efd174 | 513 | elide | MIT License |
projects/workforce-allocations-to-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/UserGenerator.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 4318635, "HTML": 70066, "D2": 42781, "Ruby": 25921, "Shell": 19356, "SCSS": 6370, "HCL": 2712, "Dockerfile": 2447, "JavaScript": 1372, "Python": 268} | package uk.gov.justice.digital.hmpps.data.generator
import uk.gov.justice.digital.hmpps.integrations.delius.user.LdapUser
import uk.gov.justice.digital.hmpps.integrations.delius.user.StaffUser
import uk.gov.justice.digital.hmpps.user.AuditUser
import javax.naming.ldap.LdapName
object UserGenerator {
val AUDIT_USE... | 7 | Kotlin | 0 | 2 | de3de53279e92b0ce8ae8639fe16cc0462b329be | 943 | hmpps-probation-integration-services | MIT License |
src/main/java/com/mineinabyss/mobzy/ecs/components/initialization/Equipment.kt | Paul1365972 | 327,421,137 | true | {"Kotlin": 160952} | package com.mineinabyss.mobzy.ecs.components.initialization
import com.mineinabyss.geary.ecs.api.autoscan.AutoscanComponent
import com.mineinabyss.idofront.serialization.SerializableItemStack
import kotlinx.serialization.Serializable
/**
* A component for adding equipment to spawned mobs.
*/
@Serializable
@Autoscan... | 0 | Kotlin | 0 | 0 | ba1cec1b06421bbfe67ea2c90bc7422a425f8a5a | 546 | Mobzy | MIT License |
src/behavioral/mediator/ChatRoom.kt | daolq3012 | 96,442,903 | false | null | package behavioral.mediator
import java.util.*
/**
* Created by framgia on 10/07/2017.
*/
class ChatRoom {
val users = arrayListOf<User>()
fun sendMessage(user: User, message: String) {
print("${Date()} [${user.name}]: Sending $message\n")
users
.filter { user != it }
... | 0 | Kotlin | 1 | 5 | 9c0e6a5f20e8297bf10f32e92048ff8704bea43b | 562 | KotlinDesignPattern | Creative Commons Attribution 4.0 International |
src/main/kotlin/strumbot/utils.kt | MinnDevelopment | 226,680,624 | false | null | /*
* Copyright 2019-present <NAME> and the Strumbot Contributors
*
* 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... | 1 | Kotlin | 4 | 9 | 53422fa7e3764f060e469a783a6568d09ed8c18b | 1,860 | strumbot | Apache License 2.0 |
app/src/main/java/com/stevdzasan/diaryapp/data/repository/MongoDB.kt | stevdza-san | 592,279,912 | false | null | package com.arzhang.mongo.repository
import android.annotation.SuppressLint
import android.os.Build
import androidx.annotation.RequiresApi
import com.arzhang.util.model.Diary
import com.arzhang.lifediary.model.RequestState
import com.arzhang.util.Constants.APP_ID
import com.arzhang.util.toInstant
import io.realm.kotli... | 0 | null | 30 | 86 | 55b54448d80e082cbf54e324d9616896a8da8622 | 6,962 | DiaryApp | The Unlicense |
app/src/main/java/good/damn/clientsocket/utils/ByteUtils.kt | GoodDamn | 780,553,871 | false | {"Kotlin": 38180} | package good.damn.clientsocket.utils
import java.io.ByteArrayOutputStream
import java.nio.charset.Charset
class ByteUtils {
companion object {
fun stringList(
list: List<String>,
charset: Charset,
offset: Int = 0
): ByteArray {
val baos = ByteArra... | 0 | Kotlin | 0 | 0 | dcd5474810b2a15eab373214c9e04a4ed591f8d9 | 1,674 | SocketClient | MIT License |
src/main/kotlin/application/controller/manager/PatientDigitalTwinManager.kt | SmartOperatingBlock | 614,385,819 | false | null | /*
* Copyright (c) 2023. Smart Operating Block
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
package application.controller.manager
import entity.patient.Patient
import entity.patient.PatientData
/** This ... | 1 | Kotlin | 0 | 1 | a1db7e3a036354fe2c2c501c32f3f6b0dd218289 | 928 | surgical-process-monitoring-microservice | MIT License |
login/src/main/java/com/fuusy/login/ui/LoginActivity.kt | fuusy | 362,828,165 | false | null | package com.fuusy.login.ui
import android.view.View
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.fuusy.common.base.BaseVmActivity
import com.fuusy.common.network.... | 3 | null | 98 | 545 | 9582767b442ed282dddb8b1b159350d0223c7246 | 2,586 | component-jetpack-mvvm | MIT License |
app/src/main/java/com/github/nytimesnewsapp/base/presentation/BaseViewHolder.kt | Edydaoud | 320,500,193 | false | null | package com.github.nytimesnewsapp.base.presentation
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.github.nytimesnewsapp.base.presentation.model.BaseUIModel
import kotlinx.android.extensions.LayoutContainer
abstract class BaseViewHolder<in T : BaseUIModel>(
itemView: View
) :... | 0 | Kotlin | 0 | 0 | 5ca2ca1156b37b5cff8e7a8d0daa84b70e6c5d96 | 557 | NYTimeNews | Apache License 2.0 |
app/src/main/java/com/puntogris/recap/feature_recap/presentation/create_recap/CreateRecapViewModel.kt | puntogris | 398,389,151 | false | null | package com.puntogris.recap.feature_recap.presentation.create_recap
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.puntogris.recap.feature_recap.domain.model.Recap
import com.puntogris.recap.feature_recap.domain.use_case.PublishRecapUseCase
i... | 0 | Kotlin | 0 | 0 | 960f3f6f3c876289cfc6e7edc76778af05dcdcd0 | 1,591 | recap | MIT License |
app/src/test/kotlin/pl/allegro/devskiller/domain/assessments/NotifierServiceTest.kt | Mixonn | 463,822,686 | false | {"Kotlin": 48184} | package pl.allegro.devskiller.domain.assessments
import io.mockk.every
import io.mockk.mockk
import io.mockk.slot
import io.mockk.verify
import pl.allegro.devskiller.config.simpleJavaApplicationConfig
import pl.allegro.devskiller.domain.assessments.notifier.AssessmentsInEvaluation
import pl.allegro.devskiller.domain.a... | 4 | Kotlin | 0 | 0 | 1bbd41bec8af3748e19e0d8673188eaf0b700e5a | 3,490 | devskiller-slack-plugin | Apache License 2.0 |
src/Day01.kt | ianredman26 | 572,914,381 | false | null | fun main() {
fun part1(input: List<String>): List<Pair<Int, Int>> {
val elves: MutableMap<Int, Int> = mutableMapOf()
var total = 0
input.map {
total = if (it.isEmpty()) {
elves[elves.size.plus(1)] = total
0
} else {
tota... | 0 | Kotlin | 0 | 0 | dcd9fae4531622cc974d2eb3d5ded94bf268ad1e | 864 | advent-of-code-2022 | Apache License 2.0 |
native/native.tests/testData/codegen/cinterop/kt63048.kt | JetBrains | 3,432,266 | false | null | // TARGET_BACKEND: NATIVE
// MODULE: cinterop_kt63048
// FILE: kt63048.def
language = Objective-C
headers = kt63048.h
// FILE: kt63048.h
#import "Foundation/NSString.h"
#import "Foundation/NSObject.h"
@interface WithClassProperty : NSObject
-(instancetype) init;
@property (class, readonly, copy) NSString * stringProp... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,219 | kotlin | Apache License 2.0 |
app/src/main/java/com/zzr/jetpacktest/kotlin_test/TrimDelegate.kt | zrzhong | 288,220,143 | false | {"Gradle Kotlin DSL": 2, "Java Properties": 2, "Gradle": 3, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 173, "XML": 104, "Java": 22, "HTML": 3, "INI": 1} | package com.zzr.jetpacktest.kotlin_test
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
/**
* @Author zzr
* @Desc
* @Date 2020/9/27
*/
class TrimDelegate : ReadWriteProperty<Any?, String> {
private var trimmedValue: String = ""
override fun getValue(thisRef: Any?, property: KP... | 1 | null | 1 | 1 | 7765544fd6df3d615dadbe03f7df1daaac7aa1ab | 502 | JetpackTest | Apache License 2.0 |
data/src/main/java/com/eoyeongbooyeong/data/dto/response/BookMarkDto.kt | Booyoungee | 819,817,364 | false | {"Kotlin": 333090} | package com.eoyeongbooyeong.data.dto.response
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class BookMarkDto(
@SerialName("bookmarkId")
val bookmarkId: Int,
) | 1 | Kotlin | 0 | 1 | 7e78e32a86aa36af068475b0730128ce9baa03dc | 224 | booyoungee-android | Apache License 2.0 |
src/test/kotlin/br/com/zup/lucasmiguins/pix/enums/EnumTipoDeChaveTest.kt | miguins | 385,259,217 | true | {"Kotlin": 84040, "Smarty": 2172, "Dockerfile": 171} | package br.com.zup.lucasmiguins.pix.enums
import io.micronaut.test.extensions.junit5.annotation.MicronautTest
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
@MicronautTest
internal class EnumTipoDeChaveTest {
@Nested
inner class CPF {
... | 0 | Kotlin | 0 | 0 | 40b9662f4983c779a2cc88a4914e6f7e9eb1287c | 2,478 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.