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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
game/src/main/kotlin/org/rsmod/game/Game.kt | l3g4cy988 | 341,361,093 | true | {"Kotlin": 298889} | package org.rsmod.game
import com.github.michaelbull.logging.InlineLogger
import com.google.inject.Inject
import java.util.concurrent.TimeUnit
import kotlin.system.measureNanoTime
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.isActive
import kotlinx.coroutines.launc... | 0 | null | 0 | 0 | cf0fa8a546471bfa936559c643d7cc276e9f9d6c | 5,488 | rsmod | ISC License |
App4/app/src/main/java/com/example/app4/HomePage/DefaultFragment.kt | Ad12-Ad | 711,572,219 | false | {"Kotlin": 18306} | package com.example.app4.HomePage
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.app4.R
import com.example.app4.databinding.FragmentDefaultBinding
import com.example.app4.databinding.FragmentHom... | 0 | Kotlin | 0 | 8 | 261da68dd84db79a87b30e4c33e486501b26280b | 1,294 | Travel_App | MIT License |
ktor/src/jvmTest/kotlin/multiplatform/ktor/KtorApiClientTest.kt | juggernaut0 | 201,797,664 | false | {"Kotlin": 38536} | package multiplatform.ktor
import io.ktor.client.*
import io.ktor.client.engine.mock.*
import kotlinx.coroutines.runBlocking
import kotlinx.serialization.Serializable
import kotlinx.serialization.builtins.serializer
import kotlinx.serialization.json.Json
import multiplatform.api.ApiRoute
import multiplatform.api.Metho... | 0 | Kotlin | 0 | 0 | 4440a071d3475c3aef0b4db8fafe7cebdfae56b9 | 1,012 | multiplatform-utils | MIT License |
shi-microservice-common/src/main/kotlin/io/github/kaisery/shi/microservice/common/config/GeneralConfig.kt | KaiserY | 143,286,010 | false | null | package io.github.kaisery.shi.microservice.common.config
import org.modelmapper.ModelMapper
import org.modelmapper.convention.MatchingStrategies
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.Primary
@Configu... | 0 | Kotlin | 0 | 0 | 5d79153488566d6a12e98c6574a77c4cb1e4f27f | 657 | shi-microservice | MIT License |
core/src/main/kotlin/com/lowes/auditor/core/entities/constants/AuditorConstants.kt | lowes | 460,314,173 | false | null | package com.lowes.auditor.core.entities.constants
/**
* Contains constant values to be used across different modules
*/
const val AUDITOR = "auditor"
const val NOT_CONFIGURED = "NOT_CONFIGURED"
| 3 | Kotlin | 7 | 12 | 9e995377e5dd8669c96a13d79a196737a41cef2b | 197 | auditor | Apache License 2.0 |
app/src/main/java/com/zipdabang/zipdabang_android/module/comment/ui/components/CommentSubmit.kt | zipdabang | 666,457,004 | false | {"Kotlin": 1553856} | package com.zipdabang.zipdabang_android.module.comment.ui.components
import android.util.Log
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundat... | 6 | Kotlin | 1 | 2 | b9d7e17689afbc19231ba679412b7f390b4cbcfb | 5,869 | android | The Unlicense |
spesialist-modell/src/main/kotlin/no/nav/helse/modell/saksbehandler/handlinger/dto/OverstyrtInntektOgRefusjonDto.kt | navikt | 244,907,980 | false | {"Kotlin": 2666291, "PLpgSQL": 29508, "HTML": 1741, "Dockerfile": 195} | package no.nav.helse.modell.saksbehandler.handlinger.dto
import java.time.LocalDate
import java.util.UUID
import no.nav.helse.modell.vilkårsprøving.LovhjemmelDto
data class OverstyrtInntektOgRefusjonDto(
val id: UUID,
val aktørId: String,
val fødselsnummer: String,
val skjæringstidspunkt: LocalDate,
... | 1 | Kotlin | 1 | 0 | 9692e0ee1c0c27fa7fd944cde2910354b08d7435 | 848 | helse-spesialist | MIT License |
buildSrc/src/main/kotlin/Modules.kt | aydbtiko24 | 373,626,629 | false | null | object Modules {
const val domain = ":domain"
const val data = ":data"
const val sharedTest = ":sharedtest"
}
| 0 | Kotlin | 1 | 5 | e8d05a9e17782d39fad02f2f4a327b1003c2066e | 123 | movie-catalogue | Apache License 2.0 |
data/watchedshows/src/commonMain/kotlin/app/tivi/data/watchedshows/WatchedShowsDataSource.kt | chrisbanes | 100,624,553 | false | null | // Copyright 2023, Google LLC, <NAME> and the Tivi project contributors
// SPDX-License-Identifier: Apache-2.0
package app.tivi.data.watchedshows
import app.tivi.data.models.TiviShow
import app.tivi.data.models.WatchedShowEntry
fun interface WatchedShowsDataSource {
suspend operator fun invoke(): List<Pair<TiviSho... | 23 | null | 876 | 6,626 | e261ffbded01c1439b93c550cd6e714c13bb9192 | 344 | tivi | Apache License 2.0 |
Mobile/app/src/main/java/com/tzeentch/workfinder/ui/composables/components/CustomOutlinedTextField.kt | Tzeentch-Hack | 717,070,925 | false | {"Kotlin": 71120, "Python": 39440, "HTML": 37686, "Dockerfile": 229} | package com.tzeentch.energy_saver.ui.compose.components
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.KeyboardO... | 0 | Kotlin | 0 | 0 | f8a4ef4c2e27403ba6c3070065af1e0050b98327 | 2,028 | Work-Finder | MIT License |
app/src/main/java/com/dlong/networkdebugassistant/utils/AppUtils.kt | D10NGYANG | 225,984,624 | false | null | package com.dlong.networkdebugassistant.utils
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import org.json.JSONArray
import org.json.JSONObject
import java.io.Serializable
/**
* @author D10NG
* @date on 2019-11-27 11:32
*/
object AppUtils {
/**
* ... | 0 | Kotlin | 5 | 8 | beed4cb44c2dcea3ffe4258010da9c1aeffc7e57 | 2,059 | NetworkDebugAssistant | Apache License 2.0 |
frameworks/test.moco/src/main/kotlin/com/qomolangma/frameworks/test/moco/CustomizedMocoServerConfig.kt | highsoft-shanghai | 386,574,483 | false | null | package com.qomolangma.frameworks.test.moco
import com.qomolangma.frameworks.test.moco.MocoHit.hit
import com.github.dreamhead.moco.HttpServer
import com.github.dreamhead.moco.Moco.*
class CustomizedMocoServerConfig : MocoServerConfig {
override fun configure(): HttpServer {
val server = httpServer(hit())... | 0 | Kotlin | 2 | 4 | d2622ea653baccd9a68cedc0b3daf60957f00dae | 485 | qomolangma | MIT License |
frameworks/test.moco/src/main/kotlin/com/qomolangma/frameworks/test/moco/CustomizedMocoServerConfig.kt | highsoft-shanghai | 386,574,483 | false | null | package com.qomolangma.frameworks.test.moco
import com.qomolangma.frameworks.test.moco.MocoHit.hit
import com.github.dreamhead.moco.HttpServer
import com.github.dreamhead.moco.Moco.*
class CustomizedMocoServerConfig : MocoServerConfig {
override fun configure(): HttpServer {
val server = httpServer(hit())... | 0 | Kotlin | 2 | 4 | d2622ea653baccd9a68cedc0b3daf60957f00dae | 485 | qomolangma | MIT License |
features/call/impl/src/main/kotlin/io/element/android/features/call/impl/ui/LanguageTagProvider.kt | element-hq | 546,522,002 | false | {"Kotlin": 8692554, "Python": 57175, "Shell": 39911, "JavaScript": 20399, "Java": 9607, "HTML": 9416, "CSS": 2519, "Ruby": 44} | /*
* Copyright (c) 2024 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... | 263 | Kotlin | 129 | 955 | 31d0621fa15fe153bfd36104e560c9703eabe917 | 1,236 | element-x-android | Apache License 2.0 |
core/src/main/kotlin/Formats/JavaLayoutHtmlFormat.kt | cjbrooks12 | 212,929,394 | true | {"Kotlin": 540690, "Groovy": 7529, "CSS": 4374, "Java": 3014} | package org.jetbrains.dokka.Formats
import com.google.inject.Binder
import com.google.inject.Inject
import kotlinx.html.li
import kotlinx.html.stream.appendHTML
import kotlinx.html.ul
import org.jetbrains.dokka.*
import org.jetbrains.dokka.Samples.DefaultSampleProcessingService
import org.jetbrains.dokka.Utilities.bin... | 0 | null | 0 | 0 | 5d3540301722c994cc46f2ec85a42504a17b7e37 | 2,739 | dokka | Apache License 2.0 |
App/app/src/main/java/com/apps/travel_app/ui/pages/TripActivity.kt | robertodavinci | 427,414,757 | false | null | package com.apps.travel_app.ui.pages
/**File that incorporates both the activity definition and usage
* and composable functions for viewing trips. Has two main screens,
* the first one being just the image and the basing info of the trip,
* and another one having all of the details, the ability to duplicate the tri... | 0 | Kotlin | 0 | 1 | bf71efbc93c84f25492acbd0dd96d9d9a15bc0d4 | 36,266 | android-dev-travel-app | MIT License |
shared/src/commonMain/kotlin/com/example/depressionapp/local/DatabaseDriverFactory.kt | itzalpha | 584,945,231 | false | null | package com.example.depressionapp.local
import com.squareup.sqldelight.db.SqlDriver
expect class DatabaseDriverFactory {
fun createDriver(): SqlDriver
} | 0 | Kotlin | 0 | 0 | c8d60eed64180450af4cb27530f379355565c209 | 158 | LendingLogKMM | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/Archway.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.filled
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,819 | icons | MIT License |
app/src/main/java/com/projects/enzoftware/krazyposts/di/module/FragmentModule.kt | enzoftware | 157,811,786 | false | {"Kotlin": 25446} | package com.projects.enzoftware.krazyposts.di.module
import com.projects.enzoftware.krazyposts.api.ApiServiceInterface
import com.projects.enzoftware.krazyposts.ui.about.AboutContract
import com.projects.enzoftware.krazyposts.ui.about.AboutPresenter
import com.projects.enzoftware.krazyposts.ui.list.ListContract
import... | 0 | Kotlin | 0 | 1 | c5ac5e0e9dd91a79022b7f91c8d085ff38fda353 | 789 | dagger2-retrofit-rxjava2 | Apache License 2.0 |
app/src/main/java/com/juangm/randomusers/presentation/di/DomainModule.kt | juangranadilla | 182,758,014 | false | null | package com.juangm.randomusers.presentation.di
import com.juangm.randomusers.domain.usecase.DeleteLocalUsersUseCase
import com.juangm.randomusers.domain.usecase.GetFavoriteUserListUseCase
import com.juangm.randomusers.domain.usecase.GetUserListUseCase
import com.juangm.randomusers.domain.usecase.UpdateUserUseCase
impo... | 0 | Kotlin | 3 | 5 | 37ed5c2176b97845f6c3cb866cf1fb40f7da82b4 | 549 | RandomUsers | Apache License 2.0 |
elasticmagic-serde-jackson-json/src/jvmMain/kotlin/dev/evo/elasticmagic/serde/jackson/JsonSerializer.kt | anti-social | 344,848,222 | false | {"Kotlin": 929787} | package dev.evo.elasticmagic.serde.jackson
import com.fasterxml.jackson.core.util.DefaultIndenter
import com.fasterxml.jackson.core.util.DefaultPrettyPrinter
import com.fasterxml.jackson.core.util.MinimalPrettyPrinter
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.ObjectWriter... | 9 | Kotlin | 4 | 45 | cec06f1490ed6975c3c488d415a7759cd803cf9e | 1,664 | elasticmagic-kt | Apache License 2.0 |
app/src/main/java/com/example/inventory/AddItemFragment.kt | muhammadjordansky | 583,359,476 | false | {"Kotlin": 8967} | /*
* Copyright (C) 2021 The Android Open Source Project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Kotlin | 0 | 0 | 3196348a5392919b9bcdb45f1d8886dee5f698e1 | 2,179 | InventoryAppFinal | Apache License 2.0 |
src/main/kotlin/sschr15/aocsolutions/util/IterableUtils.kt | sschr15 | 317,887,086 | false | {"Kotlin": 184127, "TeX": 2614, "Python": 446} | @file:Suppress("NOTHING_TO_INLINE")
package sschr15.aocsolutions.util
import it.unimi.dsi.fastutil.objects.Object2IntMap
import it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.FlowCollector
import java.math.BigDecimal
import java.math.BigInteger
i... | 0 | Kotlin | 0 | 0 | e483b02037ae5f025fc34367cb477fabe54a6578 | 10,675 | advent-of-code | MIT License |
app/src/main/java/com/cyh128/hikari_novel/ui/view/main/home/completion/CompletionViewModel.kt | 15dd | 645,796,447 | false | {"Kotlin": 332962} | package com.cyh128.hikari_novel.ui.view.main.home.completion
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.cyh128.hikari_novel.data.model.Event
import com.cyh128.hikari_novel.data.model.LoadMode
import com.cyh128.hikari_novel.data.model.NovelCover
import com.cyh128.hikari_nove... | 1 | Kotlin | 12 | 400 | 402efc07ced528fc939d5d645e1f8a8f07636f40 | 1,754 | wenku8reader | MIT License |
src/main/kotlin/io/github/sgtsilvio/gradle/oci/platform/PlatformSelector.kt | SgtSilvio | 522,265,898 | false | {"Kotlin": 352442} | package io.github.sgtsilvio.gradle.oci.platform
import io.github.sgtsilvio.gradle.oci.internal.resolution.PlatformSet
/**
* @author Silvio Giebl
*/
sealed class PlatformSelector {
fun and(other: PlatformSelector): PlatformSelector = AndPlatformSelector(this, other)
fun or(other: PlatformSelector): Platfor... | 1 | Kotlin | 0 | 29 | 63238b3be46b441bb33336a36e7bec5b91e9d554 | 3,064 | gradle-oci | Apache License 2.0 |
app/src/main/java/com/tangao/tapermission/MainActivity.kt | taa1007 | 262,511,360 | false | null | package com.tangao.tapermission
import android.Manifest
import android.content.Intent
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.tangao.library.TAPermission
import kotlinx.android.synthetic.main.activity_main.*
/**
* autho... | 0 | Kotlin | 0 | 0 | 9fa27c9f8fa36261151c6f84e96d2b7a8d7ad15f | 1,277 | TAPermission | Apache License 2.0 |
src/main/kotlin/com/github/tompower/gradlesettingsactions/RunTestsUsing.kt | tom-power | 758,585,481 | false | {"Kotlin": 3786} | package com.github.tompower.gradlesettingsactions
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.project.DumbAware
import org.jetbrains.plugins.gradle.settings.GradleProjectSettings
import org.jetbrains.plugins.gradle.settings.Gradle... | 0 | Kotlin | 0 | 0 | bc278407e0556b8e213a6d01f5999e3e27af89d8 | 1,040 | intellij-gradle-settings-actions | MIT License |
src/main/kotlin/cn/gionrose/facered/genshinDrawcard2/api/manager/StarGradeContainerManager.kt | 13022631363 | 701,322,305 | false | {"Kotlin": 95378} | package cn.gionrose.facered.genshinDrawcard2.api.manager
import cn.gionrose.facered.genshinDrawcard2.api.card.Card
import cn.gionrose.facered.genshinDrawcard2.api.card.CardPool
import cn.gionrose.facered.genshinDrawcard2.api.card.StarGradeContainer
import com.skillw.pouvoir.api.manager.Manager
import taboolib.common5.... | 0 | Kotlin | 0 | 0 | 3e0fbbd563a44317f5b60521b9c2f9f1d35b5136 | 1,159 | GenshinDrawcard2 | Apache License 2.0 |
src/main/kotlin/com/equisoft/awsmocks/autoscaling/application/LaunchConfigurationService.kt | kronostechnologies | 192,785,938 | false | null | package com.equisoft.awsmocks.autoscaling.application
import com.amazonaws.services.autoscaling.model.LaunchConfiguration
import com.amazonaws.services.ec2.model.Tag
import com.equisoft.awsmocks.autoscaling.infrastructure.persistence.LaunchConfigurationRepository
import com.equisoft.awsmocks.common.infrastructure.pers... | 0 | Kotlin | 0 | 0 | 819798902aab012b06587f1b073dfcee58fec3e3 | 663 | aws-mocks | Apache License 2.0 |
core/domain/src/test/java/com/fappslab/core/domain/usecase/DeleteFavoriteUseCaseTest.kt | F4bioo | 708,171,476 | false | {"Kotlin": 210973} | package com.fappslab.core.domain.usecase
import com.fappslab.core.domain.repository.FavoriteRepository
import io.mockk.Runs
import io.mockk.coEvery
import io.mockk.coVerify
import io.mockk.just
import io.mockk.mockk
import kotlinx.coroutines.test.runTest
import org.junit.Test
internal class DeleteFavoriteUseCaseTest ... | 0 | Kotlin | 0 | 1 | 104d22a398cc98a9f229c69a5e75273bca346c42 | 743 | TMDBCompose | MIT License |
native/android/app/src/main/java/work/calmato/prestopay/util/AdapterGroupPlane.kt | calmato | 260,225,803 | false | {"Go": 321615, "Kotlin": 266100, "TypeScript": 86093, "Swift": 24138, "HCL": 18561, "Java": 17973, "Vue": 6512, "Makefile": 6357, "Ruby": 6299, "Shell": 4355, "Dockerfile": 2406, "JavaScript": 1850, "SCSS": 138} | package work.calmato.prestopay.util
import android.content.Context
import android.util.Log
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.ImageView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.recyclerview.widget.RecyclerView
import com.google.android... | 42 | Go | 0 | 3 | 4350bb99485e5a8c9edc2e833e78546a24240bb9 | 3,195 | presto-pay | MIT License |
core/usecases/src/main/kotlin/character/arc/section/changeCharacterArcSectionValue/ChangeOptionalCharacterArcSectionValue.kt | Soyle-Productions | 239,407,827 | false | null | package com.soyle.stories.usecase.character.arc.section.changeCharacterArcSectionValue
import com.soyle.stories.domain.character.Character
import com.soyle.stories.domain.character.CharacterArcTemplateSection
import com.soyle.stories.domain.character.PsychologicalWeakness
import com.soyle.stories.domain.theme.Characte... | 45 | Kotlin | 0 | 9 | 1a110536865250dcd8d29270d003315062f2b032 | 3,253 | soyle-stories | Apache License 2.0 |
app/src/main/java/and/drew/nkhukumanagement/userinterface/planner/PlannerViewModel.kt | andrewphiri | 645,083,820 | false | {"Kotlin": 809837} | package and.drew.nkhukumanagement.userinterface.planner
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
/**
* ViewModel th... | 0 | Kotlin | 0 | 0 | 2c06d6eb84e6edb6d2d8046a731cfd21f176a9c9 | 664 | Nkhuku_Management | Apache License 2.0 |
library/src/test/kotlin/kotlinx/serialization/csv/config/CsvNullStringTest.kt | brudaswen | 241,900,831 | false | null | package kotlinx.serialization.csv.config
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.csv.Csv
import kotlinx.serialization.csv.records.NullRecord
import kotlinx.serialization.test.assertEncodeAndDecode
import kotlin.test.Test
/**
* Test [Csv] with different [CsvConfig.nullSt... | 4 | Kotlin | 12 | 28 | 8b84be19abb11a526ed2cfda529827b638fcd8d8 | 1,056 | kotlinx-serialization-csv | Apache License 2.0 |
app/src/main/java/io/homeassistant/companion/android/settings/SettingsPresenterImpl.kt | home-assistant | 179,008,173 | false | null | package io.homeassistant.companion.android.settings
import android.content.Context
import android.util.Log
import androidx.preference.PreferenceDataStore
import io.homeassistant.companion.android.common.data.integration.IntegrationRepository
import io.homeassistant.companion.android.common.data.integration.impl.entiti... | 122 | Kotlin | 451 | 1,518 | 82d13d0b871a6976b0a2434b160c30ff9039ecae | 4,591 | android | Apache License 2.0 |
app/src/main/java/com/breezevasista/features/know_your_state/model/KnowYourStateListResponseModel.kt | DebashisINT | 838,760,375 | false | {"Kotlin": 15529082, "Java": 1025562} | package com.breezevasista.features.know_your_state.model
import com.breezevasista.base.BaseResponse
import java.io.Serializable
/**
* Created by Saikat on 27-11-2019.
*/
class KnowYourStateListResponseModel: BaseResponse(), Serializable {
var know_state_list: ArrayList<KnowYourStateListDataModel>? = null
} | 0 | Kotlin | 0 | 0 | 6102fe68932be32585f357415b0c527cddbd9a5d | 315 | VasistaPharmaChem | Apache License 2.0 |
src/test/kotlin/com/yo1000/kamel/util/KamelUtils_ChoiceTests.kt | yo1000 | 369,439,989 | false | null | package com.yo1000.kamel.util
import org.apache.camel.builder.RouteBuilder
import org.apache.camel.impl.DefaultCamelContext
import org.apache.camel.impl.DefaultExchange
import org.assertj.core.api.Assertions
import org.junit.jupiter.api.Test
class KamelUtils_ChoiceTests {
@Test
fun testChoice() {
val ... | 0 | Kotlin | 0 | 0 | 1b790bd55fc22618fcc7f6a2c0640ebd6b583520 | 1,925 | kamel-util | MIT License |
app/src/main/java/com/huangkai/sensors_android/Constants.kt | elegracer | 183,451,166 | false | null | @file:JvmName("Constants")
package com.huangkai.sensors_android
import android.Manifest
val REQUEST_VIDEO_PERMISSIONS = 1
val VIDEO_PERMISSIONS = arrayOf(Manifest.permission.CAMERA)
| 0 | Kotlin | 0 | 2 | b3f706e767b9b9ea60cc78f76d67b0597e22c6b9 | 185 | sensors-android | MIT License |
shared/nodes/src/commonMain/kotlin/io/edugma/features/nodes/data/NodesRepositoryImpl.kt | Edugma | 474,423,768 | false | {"Kotlin": 968327, "JavaScript": 2398, "Swift": 1255, "HTML": 228, "Ruby": 102} | package io.edugma.features.nodes.data
import io.edugma.core.api.repository.CacheRepository
import io.edugma.core.api.repository.SettingsRepository
import io.edugma.core.api.repository.getFlow
import io.edugma.core.api.repository.save
import io.edugma.core.api.utils.LceFlow
import io.edugma.data.base.consts.CacheConst
... | 1 | Kotlin | 0 | 2 | 85e342193f0d77d6199dc46a9b62a76c49c892ea | 1,814 | app | MIT License |
library/src/main/java/com/afollestad/recyclical/ItemDefinition.kt | morristech | 178,290,676 | true | {"Kotlin": 82310} | /**
* Designed and developed by <NAME> (@afollestad)
*
* 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... | 0 | Kotlin | 0 | 0 | dde794c376524c3fdffdebc786dfb08d1d4d5152 | 2,854 | recyclical | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/PuppiesList.kt | giolaq | 342,282,267 | false | {"Kotlin": 27470} | /*
* Copyright 2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 79987912353fa679fcee05b1aa6eb7d8ee8ef68c | 5,650 | puppy-pack | Apache License 2.0 |
LI61D/code/jvm/spring-demo/src/main/kotlin/pt/isel/daw/spring/demo/ExampleController.kt | isel-leic-daw | 347,182,700 | false | null | package pt.isel.daw.spring.demo
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController
@RestController
class ExampleController(
private val greetingsMessageService: GreetingsMessageService,
) {
@GetMapping("/examples/1")
fun get() = "Hello ... | 5 | null | 7 | 36 | 73225fff919054f5ce74cbcc077861129b28c99f | 583 | 2021v-public | Apache License 2.0 |
app/src/main/java/com/zdog/demo/ui/effects/sunny/RandomMover.kt | prostory | 211,052,399 | false | null | package com.zdog.demo.ui.effects.sunny
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import com.zdog.demo.ui.shapes.*
import com.zdog.library.render.*
import kotlin.random.Random
class RandomMover(
private val shape: Anchor,
private val bound: Vector,
private val spee... | 0 | Kotlin | 5 | 27 | 0e0027feccb0a27b4f9926e6eabf8c59200cc54b | 2,871 | AndroidZdog | MIT License |
library/src/test/java/com/shopapp/shopify/api/call/MutationCallWrapperTest.kt | rubygarage | 121,784,219 | false | null | package com.shopapp.shopify.api.call
import com.nhaarman.mockito_kotlin.*
import com.shopapp.gateway.ApiCallback
import com.shopapp.gateway.entity.Error
import com.shopify.buy3.GraphResponse
import com.shopify.buy3.Storefront
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Befo... | 4 | Kotlin | 31 | 51 | 33d10ee580d12ad94042566677a4607ab21d236b | 3,435 | shopapp-shopify-android | Apache License 2.0 |
app/src/main/java/com/kylecorry/trail_sense/navigation/domain/LocationMath.kt | weblate | 298,261,099 | true | {"Kotlin": 347567} | package com.kylecorry.trail_sense.navigation.domain
import com.kylecorry.trail_sense.shared.UserPreferences
import com.kylecorry.trailsensecore.domain.units.DistanceUnits
import com.kylecorry.trailsensecore.domain.units.UnitService
import kotlin.math.round
import kotlin.math.roundToInt
/**
* A helper object for coor... | 0 | null | 0 | 1 | 444f01313df210c2d323cc4780435193f1d0c00a | 3,247 | Trail-Sense | MIT License |
app/src/main/java/com/gabo/ble/activities/PermissionsActivity.kt | llanox | 252,307,411 | false | null | package com.gabo.ble.activities
import android.Manifest
import android.bluetooth.BluetoothAdapter
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app... | 0 | Kotlin | 2 | 12 | 24a124e3ed9795150b2433c469d29601c66681c4 | 3,263 | tracing-coronas | MIT License |
uploader-ui/src/jvmMain/kotlin/org/inquest/uploader/ui/main/initializer/StepsViewModel.kt | PeppsHabender | 710,503,169 | false | {"Kotlin": 223434} | package org.inquest.uploader.ui.main.initializer
import kotlinx.coroutines.CoroutineScope
import org.inquest.uploader.api.logs.GW2EIConfig
import org.inquest.uploader.api.logs.IGW2EIParser
import org.inquest.uploader.api.logs.ILogAnalyzer
import org.inquest.uploader.api.persistence.ISession
import org.inquest.uploader... | 0 | Kotlin | 0 | 0 | 3f91a66960f202c363599e312eb2caade7b75189 | 2,180 | InquestUploader | MIT License |
spring-stuff/vanilla-app/src/test/kotlin/de/zalando/vanilla/VanillaAppApplicationTests.kt | roskenet | 295,683,964 | false | {"HTML": 708028, "Jupyter Notebook": 571597, "TeX": 547996, "Java": 447619, "Makefile": 214272, "JavaScript": 204557, "CMake": 113090, "Kotlin": 88563, "TypeScript": 61333, "Clojure": 36776, "CSS": 25303, "C++": 19374, "Red": 13104, "Python": 12901, "Shell": 12248, "SCSS": 5588, "Go": 4797, "Dockerfile": 2073, "C": 168... | package de.zalando.vanilla
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class VanillaAppApplicationTests {
@Autowired
lateinit var t... | 0 | HTML | 1 | 0 | 39975a0248f2e390f799bdafde1170322267761b | 466 | playground | MIT License |
common/common-compose/src/commonMain/kotlin/ru/alexgladkov/common/compose/screens/CitiesScreen.kt | AlexGladkov | 409,687,153 | false | null | package ru.alexgladkov.common.compose.screens
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose... | 3 | Kotlin | 2 | 58 | be24a83ed944510078417936f9846f2e521a896f | 1,659 | Odyssey | MIT License |
thirdparty/ktfx-jfoenix-layouts/src/main/kotlin/com/jfoenix/controls/KtfxJfxNodesList.kt | hanggrian | 102,934,147 | false | {"Kotlin": 1146536, "CSS": 1653} | @file:JvmMultifileClass
@file:JvmName("JfoenixLayoutsKt")
package ktfx.jfoenix.layouts
import com.jfoenix.controls.JFXNodesList
import javafx.scene.Node
import ktfx.layouts.NodeContainer
/** [JFXNodesList] with dynamic-layout dsl support. Invoking dsl will add its children. */
open class KtfxJfxNodesList :
JFXNo... | 1 | Kotlin | 2 | 19 | 6e5ec9fedf8359423c31a2ba64cd175bc9864cd2 | 441 | ktfx | Apache License 2.0 |
kotlin-enigma-machine/src/main/kotlin/com/jacovanderbyl/enigmamachine/dsl/EnigmaIRotors.kt | jaco-vanderbyl | 725,663,536 | false | {"Kotlin": 120908} | package com.jacovanderbyl.enigmamachine.dsl
import com.jacovanderbyl.enigmamachine.Letter
import com.jacovanderbyl.enigmamachine.Ring
import com.jacovanderbyl.enigmamachine.RotorType
@Dsl
class EnigmaIRotors : Rotors() {
@Dsl fun rotorI(ringSetting: Ring? = null, position: Letter? = null) = addRotor(
Roto... | 0 | Kotlin | 0 | 0 | 9b81053c8a9986edbfe40aab07f13271cec6add0 | 933 | kotlin-enigma-machine | MIT License |
app/src/main/java/com/jeanloth/project/android/kotlin/feedme/features/command/data/mappers/AppClientEntityMapper.kt | Schtroumphy | 517,779,185 | false | {"Kotlin": 261610} | package com.jeanloth.project.android.kotlin.feedme.features.command.data.mappers
import com.jeanloth.project.android.kotlin.feedme.core.interfaces.Mapper
import com.jeanloth.project.android.kotlin.feedme.features.command.data.local.entities.simple.AppClientEntity
import com.jeanloth.project.android.kotlin.feedme.featu... | 0 | Kotlin | 0 | 0 | 27d52bffa1455c87c5b84bca2bbc1cb66cca13de | 880 | FeedMe | Apache License 2.0 |
app/src/main/java/com/my/todo/model/Task.kt | GowthamKt29 | 865,309,909 | false | {"Kotlin": 101635} | package com.my.todo.model
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "task")
data class Task(
@PrimaryKey(autoGenerate = true) var id: Int = 0,
val date: String,
val isScheduled: Boolean = false,
val name: String,
val description: String,
var startTime: St... | 0 | Kotlin | 0 | 0 | 300810ff89290c1bb15263b4cdb32f7033703ccd | 435 | TaskManagement | MIT License |
model/src/test/kotlin/hu/bme/mit/theta/interchange/jani/model/DistributionsTest.kt | ftsrg | 151,930,212 | false | null | /*
* Copyright 2018 Contributors to the Theta 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 applic... | 1 | Kotlin | 0 | 0 | 03b302e905396cd300b7c06d2a214d4dd8f9d0bc | 5,883 | theta-jani-interchange | Apache License 2.0 |
reagent/common/src/main/kotlin/reagent/operator/ignoreElements.kt | MaTriXy | 118,458,716 | true | {"Kotlin": 146969, "Java": 14263, "Shell": 935} | package reagent.operator
import reagent.Observable
import reagent.Task
fun Observable<*>.ignoreElements(): Task = ObservableIgnoreElements(this)
internal class ObservableIgnoreElements(
private val upstream: Observable<*>
): Task() {
override suspend fun run() {
upstream.subscribe { }
}
}
| 0 | Kotlin | 0 | 0 | 3f12d4227a62cf4623b9797739759bab390f28ab | 303 | Reagent | Apache License 2.0 |
app/src/main/java/com/gumbachi/ezra/model/Movie.kt | Gumbachi | 486,875,434 | false | null | package com.gumbachi.ezra.model
import com.gumbachi.ezra.data.remote.responses.movie.MovieDetails
import com.gumbachi.ezra.data.remote.responses.movie.MovieSearchResult
import com.gumbachi.ezra.utils.convertMinutesToRuntime
import com.gumbachi.ezra.utils.getCompleteTMDBPath
import kotlin.random.Random
data class Movi... | 0 | Kotlin | 0 | 0 | fe3db838c81ce3dcc040fc04e18be5bef4a4ca48 | 1,940 | Ezra | MIT License |
java/com/example/musicstream/models/SongModel.kt | smq2021 | 876,535,398 | false | {"Kotlin": 27135} | package com.example.musicstream.models
data class SongModel(
val id: String,
val title: String,
val subtitle: String,
val url: String,
val coverUrl: String,
)
{
constructor(): this("","","","","")
}
| 0 | Kotlin | 1 | 0 | af85e1bced564d27b4bf06bde665905d022844be | 224 | TuneHive-Curated-Music-Streaming | MIT License |
app/src/main/java/com/andreyyurko/dnd/data/characters/CharacterBriefInfo.kt | AndreyYurko | 538,904,654 | false | null | package com.andreyyurko.dnd.data.characters
data class CharacterBriefInfo(
val id: Int,
val name: String = "Марцелл",
val characterClass: String = "Чародей",
val level: String = "5",
) | 0 | Kotlin | 0 | 1 | 3eaa7d8833ea1968f2eec4338ad5b5a328c9e49d | 202 | DnD | MIT License |
DSLs/kubernetes/dsl/src/main/kotlin-gen/dev/forkhandles/k8s/autoscaling/v2/metadata.kt | fork-handles | 649,794,132 | false | {"Kotlin": 575626, "Shell": 2264, "Just": 1042, "Nix": 740} | // GENERATED
package dev.forkhandles.k8s.autoscaling.v2
import io.fabric8.kubernetes.api.model.ListMeta as model_ListMeta
import io.fabric8.kubernetes.api.model.ObjectMeta as model_ObjectMeta
import io.fabric8.kubernetes.api.model.autoscaling.v2.HorizontalPodAutoscaler as v2_HorizontalPodAutoscaler
import io.fabric8.k... | 0 | Kotlin | 0 | 9 | 68221cee577ea16dc498745606d07b0fb62f5cb7 | 777 | k8s-dsl | MIT License |
app/src/main/java/com/beebeeoii/paradestate/helper/CompanyParadeStateFormatter.kt | Beebeeoii | 324,745,047 | false | null | package com.beebeeoii.paradestate.helper
class CompanyParadeStateFormatter(private val date: String, private val paradeType: String, platoonCurrentStrengths: MutableList<Int>, platoonTotalStrengths: MutableList<Int>, platoonReportSicks: MutableList<String>, platoonMedicalStatuses: MutableList<String>, platoonOthers: M... | 0 | Kotlin | 0 | 1 | 9828c717f33fe90eeaca3925f58bde4d54fbf731 | 4,304 | saf_parade_state | MIT License |
app/src/main/java/com/gmail/hamedvakhide/instaclone/MyApp.kt | hamooo90 | 386,210,737 | false | null | package com.gmail.hamedvakhide.instaclone
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class MyApp: Application() {
} | 0 | Kotlin | 0 | 0 | 1e9c3bb3ec42cd63b7124029b729f7431402eaed | 163 | InstaClone_Kotlin_MVVM | Apache License 2.0 |
kzen-auto-jvm/src/main/kotlin/tech/kzen/auto/server/objects/script/browser/OpenBrowser.kt | alexoooo | 131,353,826 | false | null | package tech.kzen.auto.server.objects.script.browser
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.remote.RemoteWebDriver
import tech.kzen.auto.common.paradigm.common.model.ExecutionResult
impor... | 0 | Kotlin | 0 | 1 | a4cec899d18e17b157fd20ebe3dceca9a85ce262 | 2,810 | kzen-auto | MIT License |
app/src/main/java/com/flow/android/location/di/NetworkModule.kt | abhishekdubey331 | 540,536,123 | false | null | package com.flow.android.location.di
import com.flow.android.location.BuildConfig
import com.flow.android.location.api.VenuesService
import com.flow.android.location.common.Constants
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import okhttp3... | 0 | Kotlin | 4 | 6 | cb946fbf70526298639920a7762ab1480a0616a1 | 1,484 | NearBy-Places | Apache License 2.0 |
kotlin-antd/antd-samples/src/main/kotlin/samples/anchor/TargetOffset.kt | LuoKevin | 341,311,901 | true | {"Kotlin": 1549697, "HTML": 1503} | package samples.anchor
import antd.anchor.*
import kotlinx.browser.*
import react.*
import styled.*
private val anchorExample = functionalComponent<RProps> {
val (targetOffset, setTargetOffset) = useState<Number?>(null)
useEffect(emptyList()) {
setTargetOffset(window.innerHeight / 2)
}
ancho... | 0 | null | 0 | 0 | 9f57507607c3dd5d5452f3cbeb966b6db3d60c76 | 1,288 | kotlin-js-wrappers | Apache License 2.0 |
app/src/main/java/pl/skipcode/basekotlinapp/data/api/auth/LoginResponse.kt | Michax94 | 152,717,481 | false | null | package pl.skipcode.basekotlinapp.data.api.auth
import com.google.gson.annotations.SerializedName
data class LoginResponse(
@SerializedName("results")
val results: List<Result>)
data class Result(
@SerializedName("username")
val username: String,
@SerializedName("token")
... | 1 | Kotlin | 0 | 0 | ca757e617063825e3ce3939d0cb96c3c854458a1 | 342 | BaseKotlinApp | Apache License 2.0 |
seouling/src/main/java/mobile/seouling/com/framework/GsonFactory.kt | thisishoonlee | 208,585,721 | true | {"Gradle": 8, "Java Properties": 3, "Shell": 1, "Text": 1, "Ignore List": 7, "Batchfile": 1, "Proguard": 5, "Java": 57, "XML": 75, "Kotlin": 74, "JSON": 1} | package mobile.seouling.com.framework
import com.google.gson.Gson
import com.google.gson.GsonBuilder
object GsonFactory {
private val _gson: Gson by lazy {
GsonBuilder()
.create()
}
@JvmStatic
fun getGson(): Gson {
return _gson
}
@JvmStatic
val debugGson: Gso... | 0 | null | 2 | 0 | 7c7cfbf3170856546d5b0b804a37b642c222214a | 391 | seouling-android | Apache License 2.0 |
kotlin_prac/app/src/main/java/com/example/kotlin_prac/fireActivity.kt | sungdoolim | 238,624,065 | false | null | package com.example.kotlin_prac
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.google.firebase.database.FirebaseDatabase
import com.google.firebase.firestore.FirebaseFirestore
class fireActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... | 1 | null | 1 | 1 | dc08834dafcef20209ba15bcff114f9f55775913 | 2,666 | android_practice | Apache License 2.0 |
Android/dokit/src/main/java/com/didichuxing/doraemonkit/kit/alignruler/AlignRulerKit.kt | shaoxiongdu | 400,070,875 | true | {"Java": 4129504, "Objective-C": 1630492, "Kotlin": 1219942, "Dart": 256321, "C": 186598, "Vue": 149192, "JavaScript": 102252, "Swift": 39841, "Objective-C++": 12589, "HTML": 10284, "Shell": 7312, "Ruby": 6648, "CMake": 5926, "AIDL": 570, "Less": 372} | package com.didichuxing.doraemonkit.kit.alignruler
import android.app.Activity
import android.content.Context
import com.didichuxing.doraemonkit.DoKit.Companion.getDoKitView
import com.didichuxing.doraemonkit.DoKit.Companion.launchFloating
import com.didichuxing.doraemonkit.R
import com.didichuxing.doraemonkit.config.... | 0 | null | 0 | 1 | e2b97cf981fa67b378e048108687bb80278699ae | 1,754 | DoraemonKit | Apache License 2.0 |
android/app/src/main/kotlin/org/hyn/titan/wallet/KeyStoreUtil.kt | hyperion-hyn | 187,755,032 | false | {"Shell": 9, "Git Config": 1, "YAML": 2, "Text": 1, "Ignore List": 4, "Markdown": 2, "Dart": 774, "JSON": 11, "JavaScript": 5, "Gradle": 5, "Java Properties": 2, "Proguard": 3, "XML": 24, "Kotlin": 37, "Java": 18, "INI": 2, "Ruby": 2, "OpenStep Property List": 5, "Objective-C": 12, "Swift": 23, "Roff": 2, "C": 1} | package org.hyn.titan.wallet
import android.content.Context
import org.hyn.titan.utils.md5
import org.hyn.titan.utils.toHex
import org.hyn.titan.utils.toHexByteArray
import timber.log.Timber
import wallet.core.jni.CoinType
import wallet.core.jni.StoredKey
import wallet.core.jni.PrivateKey
import java.io.File
object K... | 1 | null | 1 | 1 | 8c68a99a155ea245b8d1ea26027f25a51ee9d5ae | 3,745 | titan_flutter | MIT License |
identity/src/main/java/com/android/identity/crypto/Algorithm.kt | openwallet-foundation-labs | 248,844,077 | false | null | package com.android.identity.crypto
/**
* Algorithm identifiers.
*
* All algorithm identifiers are from the
* [IANA COSE registry](https://www.iana.org/assignments/cose/cose.xhtml).
*/
enum class Algorithm(val coseAlgorithmIdentifier: Int) {
/** Used to indicate the algorithm is unset. */
UNSET(Int.MAX_V... | 97 | null | 69 | 135 | a39789f8d2b2c35a2eaa032f7827a3aa3ecda758 | 1,679 | identity-credential | Apache License 2.0 |
plugins/kotlin/j2k/shared/tests/testData/newJ2k/constructors/fieldsInitializedFromParams6.kt | JetBrains | 2,489,216 | false | null | internal class C(x: String) {
var x: Any = x
}
| 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 51 | intellij-community | Apache License 2.0 |
app/src/main/java/com/andrehaueisen/listadejanot/h_user_vote_list/dagger/UserVoteListScope.kt | AndreHaueisen | 88,384,506 | false | {"Gradle": 3, "Markdown": 1, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "JSON": 1, "Proguard": 1, "Java": 4, "XML": 75, "Kotlin": 60} | package com.andrehaueisen.listadejanot.h_user_vote_list.dagger
import javax.inject.Scope
/**
* Created by andre on 6/20/2017.
*/
@Scope
annotation class UserVoteListScope | 0 | Kotlin | 0 | 0 | 1dbbea34063da01635adcf3216122cddc3609ae3 | 174 | TheList | Apache License 2.0 |
app/src/test/kotlin/com/permissionnanny/dagger/MockActivityModule.kt | lgslegend | 82,944,527 | true | {"Java Properties": 4, "YAML": 1, "XML": 40, "Gradle": 9, "Shell": 1, "Markdown": 2, "Batchfile": 1, "Ignore List": 6, "Proguard": 5, "Text": 4, "Java": 101, "Kotlin": 84} | package com.permissionnanny.dagger
import android.support.v7.app.AppCompatActivity
import com.permissionnanny.ConfirmRequestBinder
import com.permissionnanny.ProxyExecutor
import com.permissionnanny.data.AppPermissionManager
import com.permissionnanny.missioncontrol.AppControlActivity
import com.permissionnanny.missio... | 0 | Java | 0 | 0 | 142774c651c2c80837b97f767b23ac6a19cc7566 | 1,158 | Permission-Nanny | RSA Message-Digest License |
sample/src/main/java/com/fjordnet/sample/tether/search/SearchAdapter.kt | Fjordnet | 146,340,571 | false | {"Gradle": 5, "Java Properties": 3, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Text": 2, "Markdown": 1, "Proguard": 1, "XML": 19, "Kotlin": 39, "Java": 1} | /*
* Copyright 2017-2018 Fjord
*
* 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 i... | 1 | null | 2 | 1 | 0e1089d52f0f35a992855ec54525afdca4220755 | 1,818 | tether | Apache License 2.0 |
airbyte-cdk/java/airbyte-cdk/core/src/main/kotlin/io/airbyte/cdk/integrations/base/spec_modification/SpecModifyingSource.kt | tim-werner | 511,419,970 | false | {"Java Properties": 8, "Shell": 57, "Markdown": 1170, "Batchfile": 1, "Makefile": 3, "JavaScript": 31, "CSS": 9, "Python": 4183, "Kotlin": 845, "Java": 723, "INI": 10, "Dockerfile": 27, "HTML": 7, "SQL": 527, "PLpgSQL": 8, "TSQL": 1, "PLSQL": 2} | /*
* Copyright (c) 2023 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.cdk.integrations.base.spec_modification
import com.fasterxml.jackson.databind.JsonNode
import io.airbyte.cdk.integrations.base.Source
import io.airbyte.commons.util.AutoCloseableIterator
import io.airbyte.protocol.models.v0.*
/**
* I... | 1 | null | 1 | 1 | b2e7895ed3e1ca7c1600ae1c23578dd1024f20ff | 1,702 | airbyte | MIT License |
app/src/main/java/com/joeracosta/covidtracker/viewmodel/CovidViewModel.kt | JayyyR | 263,769,003 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "JSON": 1, "Kotlin": 22, "XML": 24, "Java": 1} | package com.joeracosta.covidtracker.viewmodel
import android.annotation.SuppressLint
import android.content.res.ColorStateList
import android.content.res.Resources
import android.view.View
import androidx.core.content.res.ResourcesCompat
import androidx.databinding.Bindable
import com.github.mikephil.charting.data.Ent... | 1 | null | 1 | 1 | a7a8f37a4182bbf9ecc864ca52ff4358ded4f91d | 11,797 | SimpleCovidData | MIT License |
android/apolloui/src/main/java/io/muun/apollo/presentation/ui/select_bitcoin_unit/SelectBitcoinUnitView.kt | muun | 150,655,434 | false | null | package io.muun.apollo.presentation.ui.select_bitcoin_unit
import io.muun.apollo.domain.model.BitcoinUnit
import io.muun.apollo.presentation.ui.base.BaseView
interface SelectBitcoinUnitView: BaseView {
fun setBitcoinUnit(bitcoinUnit: BitcoinUnit)
} | 39 | null | 46 | 256 | 86048fe9f8059c9617f2e6d32e7d41c460dfb785 | 256 | apollo | MIT License |
android/BGXCommander/app/src/main/java/com/silabs/bgxcommander/enums/PasswordKind.kt | SiliconLabs | 145,628,775 | false | null | package com.silabs.bgxcommander.enums
enum class PasswordKind {
UnknownPasswordKind,
BusModePasswordKind,
OTAPasswordKind
} | 0 | null | 29 | 33 | 66138da0bdd4542fafda3534f216cee0b2923cf1 | 136 | wireless-xpress | Apache License 2.0 |
app/src/main/java/ir/easazade/dailynotes/di/AndroidModule.kt | easazade | 167,930,367 | false | null | package ir.easazade.dailynotes.di
import ir.easazade.dailynotes.R
import ir.easazade.dailynotes.screens.HomeFrag
import ir.easazade.dailynotes.sdk.BaseActivity
import ir.easazade.dailynotes.sdk.DataBindings
import ir.easazade.dailynotes.sdk.navigation.Navigator
import ir.easazade.dailynotes.sdk.navigation.ViewStateSta... | 1 | null | 1 | 1 | a742f57eff42f972c685345ff553615f6c9a19b2 | 1,167 | daily-notes | Apache License 2.0 |
browser/src/test/java/laurenyew/imagebrowser/browser/adapters/ImageBrowserRecyclerViewAdapterTest.kt | laurenyew | 130,925,684 | false | null | package laurenyew.imagebrowser.browser.adapters
import android.support.v7.util.DiffUtil
import android.view.View
import com.nhaarman.mockito_kotlin.*
import laurenyew.imagebrowser.base.BuildConfig
import laurenyew.imagebrowser.browser.adapters.data.ImagePreviewDataWrapper
import laurenyew.imagebrowser.browser.adapters... | 1 | null | 1 | 1 | 66dde9a063ef71fc11f3a40eae61537db7af445b | 3,645 | InstantAppImageBrowser | Apache License 2.0 |
src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/HistoryCommandAdapter.kt | project-chip | 244,694,174 | false | null | package com.google.chip.chiptool.clusterclient.clusterinteraction
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.... | 1,430 | C++ | 673 | 3,345 | 9fa5641ff331ab5dfa83227d4743c364319bf945 | 7,983 | connectedhomeip | Apache License 2.0 |
free-ethereum-core/src/test/java/org/ethereum/crypto/ECKeyTest.kt | loxal | 54,326,862 | true | {"Shell": 2, "Gradle": 3, "YAML": 2, "Markdown": 1, "Batchfile": 2, "Text": 2, "Ignore List": 1, "XML": 66, "Java Properties": 1, "Java": 307, "Kotlin": 299, "Gerber Image": 1, "Solidity": 1, "JSON": 20, "INI": 1} | /*
* The MIT License (MIT)
*
* Copyright 2017 Alexander Orlov <alexander.orlov@loxal.net>. All rights reserved.
* Copyright (c) [2016] [ <ether.camp> ]
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
... | 0 | Java | 1 | 5 | 9a62ac9e9893bfe3214bb9a2711ed3ce848c4cff | 16,457 | FreeEthereum | MIT License |
app/src/main/java/tw/tonyyang/englishwords/data/excel/local/ExcelLocalDataSource.kt | tonyydl | 166,625,004 | false | {"Gradle Kotlin DSL": 3, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "TOML": 1, "INI": 1, "Proguard": 1, "XML": 20, "Kotlin": 38} | package tw.tonyyang.englishwords.data.excel.local
import android.content.Context
import android.net.Uri
import jxl.Sheet
import jxl.Workbook
import tw.tonyyang.englishwords.App
import tw.tonyyang.englishwords.data.excel.ExcelDataSource
import tw.tonyyang.englishwords.database.entity.Word
import java.io.IOException
cl... | 0 | Kotlin | 1 | 0 | 91b62542c7a6d7cd4f9cb3e96e045b6f15f7d1af | 2,042 | EnglishWords | Apache License 2.0 |
wearapp/src/main/java/com/thewizrd/simpleweather/services/WidgetUpdaterWorker.kt | SimpleAppProjects | 82,603,731 | false | null | package com.thewizrd.simpleweather.services
import android.content.Context
import android.content.pm.ServiceInfo
import android.os.Build
import android.util.Log
import androidx.work.*
import com.thewizrd.shared_resources.utils.LiveDataUtils.awaitWithTimeout
import com.thewizrd.shared_resources.utils.Logger
import com.... | 2 | Java | 3 | 9 | 794bbaf5e1ea914781485cc5e10fce2f2308b4d2 | 5,534 | SimpleWeather-Android | Apache License 2.0 |
baselibrary/src/main/java/newtrekwang/com/baselibrary/common/BaseApplication.kt | Wangjiaxing123 | 119,262,875 | false | {"Gradle": 7, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 6, "Batchfile": 1, "Markdown": 1, "Proguard": 5, "XML": 76, "Kotlin": 80, "Java": 4} | package newtrekwang.com.baselibrary.common
import android.app.Application
import android.content.Context
import newtrekwang.com.baselibrary.injection.component.AppComponent
import newtrekwang.com.baselibrary.injection.component.DaggerAppComponent
import newtrekwang.com.baselibrary.injection.module.AppModule
/**
* Cr... | 0 | Kotlin | 0 | 0 | dad2cc48cd71c134a872bac151b7fe8a26a498b9 | 745 | KotlinMall | Apache License 2.0 |
kotlin-tests/src/main/kotlin/io/github/debop/kotlin/tests/containers/DatbaseExtensions.kt | debop | 187,949,869 | false | null | package io.github.debop.kotlin.tests.containers
import com.zaxxer.hikari.HikariConfig
import com.zaxxer.hikari.HikariDataSource
import org.slf4j.Logger
import org.testcontainers.containers.JdbcDatabaseContainer
/**
* [JdbcDatabaseContainer]를 사용하기 위한 [HikariDataSource]를 제공합니다.
*/
fun <T: JdbcDatabaseContainer<T>> Jd... | 1 | Kotlin | 4 | 24 | b9d1eb5309c6f9eab82dec676bfe6962428f36ce | 2,540 | kotlin-workshop | MIT License |
bee-core/src/main/java/com/benkkstudio/core/databases/sqlite/KeyValDb.kt | benkkstudios | 745,772,729 | false | {"Gradle Kotlin DSL": 9, "Java Properties": 2, "Shell": 1, "Text": 2, "Ignore List": 9, "Batchfile": 1, "Git Attributes": 2, "Markdown": 1, "Proguard": 7, "XML": 48, "Kotlin": 65, "Java": 60} | package com.benkkstudio.core.databases.sqlite
import android.content.ContentValues
import android.content.Context
import android.database.CursorIndexOutOfBoundsException
import com.google.gson.Gson
open class KeyValDb(
context: Context,
private var table: String = "default"
) {
private val db = context.o... | 0 | Java | 0 | 0 | cbbf291c0f3d66c4e07126bca95c4e86b0793143 | 2,686 | BENKKSTUDIOCORE | MIT License |
src/test/kotlin/org/wfanet/measurement/kingdom/service/api/v2alpha/RecurringExchangesServiceTest.kt | VideoAmp | 368,272,602 | true | {"Kotlin": 1266935, "Starlark": 227446, "C++": 158561, "Shell": 7082} | // Copyright 2021 The Cross-Media Measurement Authors
//
// 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... | 1 | null | 1 | 4 | 66fd8f1a81b7d93f23d769f7be76d529b6a8d222 | 2,123 | cross-media-measurement | Apache License 2.0 |
app/src/main/java/com/kaustavjaiswal/omdbsampleapp/ui/ShowViewHolder.kt | tapriandi | 462,808,078 | true | {"Kotlin": 37519} | package com.kaustavjaiswal.omdbsampleapp.ui
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.kaustavjaiswal.omdbsampleapp.R
import com.kaustavjaiswal.omdbs... | 0 | null | 0 | 0 | 1e44e5227652871adbe496c0dd4c66e694ab980a | 1,611 | OmdbSample | The Unlicense |
app/src/main/java/com/ick/kalambury/logging/CrashlyticsLogger.kt | radek606 | 459,264,828 | false | null | package com.ick.kalambury.logging
import com.google.firebase.crashlytics.BuildConfig
import com.google.firebase.crashlytics.ktx.crashlytics
import com.google.firebase.ktx.Firebase
import com.ick.kalambury.util.log.Log
import com.ick.kalambury.util.log.Logger
import kotlin.concurrent.getOrSet
class CrashlyticsLogger :... | 0 | Kotlin | 0 | 0 | 3dd2fe12e40ab3f9bac145ba15e9719d55e12b89 | 1,696 | Charades-Android | MIT License |
app/src/main/java/com/example/asm/travel/target/Caller.kt | bitristan | 381,868,050 | false | {"Kotlin": 22881} | package com.example.asm.travel.target
import android.util.Log
class Caller {
fun launch() {
Log.d(TAG, "execute launch")
}
companion object {
private const val TAG = "Caller"
}
} | 0 | Kotlin | 0 | 0 | 328be6af3500f366de0b43f0590c2253e7011247 | 214 | asm_travel | Apache License 2.0 |
app/src/main/java/xyz/gigashi/chatworkglancer/MainActivity.kt | gigashi | 208,624,051 | false | null | package xyz.gigashi.chatworkglancer
import android.app.AlertDialog
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.provider.Settings
import android.widget.TextView
import android.widget.Toast
import androidx.core.app.NotificationManagerCompat
import... | 0 | Kotlin | 0 | 0 | 904abb99cb4a9c10aa23a2cc9c0ee4ea1bb1648f | 2,097 | chatwork-glancer | MIT License |
app/src/main/java/and/drew/nkhukumanagement/auth/UserUiState.kt | andrewphiri | 645,083,820 | false | {"Kotlin": 824103} | package and.drew.nkhukumanagement.auth
data class UserUiState(
val email: String = "",
val password: String = "",
val isEnabled: Boolean = false
)
fun UserUiState.isValid(): Boolean {
return email.isNotBlank() &&
password.length >= 8
}
fun UserUiState.isPasswordValid(password: String): Bo... | 0 | Kotlin | 0 | 0 | 20ef4dbe75c53210cafef135459378a04a560b3b | 443 | Nkhuku_Management | Apache License 2.0 |
shared/src/commonMain/kotlin/dev/reprator/common/util/AppCoroutineDispatchers.kt | TheReprator | 639,905,884 | false | null | package dev.reprator.common.util
import kotlinx.coroutines.CoroutineDispatcher
interface AppCoroutineDispatchers {
val main: CoroutineDispatcher
val io: CoroutineDispatcher
val default: CoroutineDispatcher
val unconfined: CoroutineDispatcher
val immediateMain: CoroutineDispatcher
}
| 0 | Kotlin | 0 | 0 | 1e64c7daf7d4b12fc98d4b22bb28c1a0874d0d09 | 300 | Khatabook_KMP | Apache License 2.0 |
spesialist-api/src/main/kotlin/no/nav/helse/spesialist/api/snapshot/SnapshotMediator.kt | navikt | 244,907,980 | false | null | package no.nav.helse.spesialist.api.snapshot
import java.util.UUID
import no.nav.helse.spesialist.api.graphql.schema.Personinfo
import no.nav.helse.spleis.graphql.hentsnapshot.GraphQLBeregnetPeriode
import no.nav.helse.spleis.graphql.hentsnapshot.GraphQLPerson
import no.nav.helse.spleis.graphql.hentsnapshot.GraphQLUtb... | 9 | Kotlin | 1 | 1 | 9d4136c645cc48337f246413c4b0beb906839ffd | 1,927 | helse-spesialist | MIT License |
elastik/elastik-core/src/commonMain/kotlin/com/keyflare/elastik/core/render/Render.kt | keyflare | 701,713,018 | false | {"Kotlin": 116158, "Ruby": 6618} | package com.keyflare.elastik.core.render
interface SingleRender {
val content: Content
val transition: Transition?
interface Content
}
interface StackRender {
val container: Container
val transition: Transition?
val defaultChildrenTransition: Transition?
interface Container
}
object NoR... | 0 | Kotlin | 0 | 0 | add3fbde42c1919021706141ba9497fad33f8747 | 730 | elastik | MIT License |
KotlinSamples-master/src/main/kotlin/chapter8/debugging.kt | PacktPublishing | 142,565,876 | false | null | package chapter8
import kotlinx.coroutines.experimental.*
import java.util.*
// TODO: Add the VM param `-Dkotlinx.coroutines.debug` in order
// to see the expected logs
fun main(args: Array<String>) = runBlocking {
// Prints to the log using automatic naming
automaticNaming()
// Set a name for the corout... | 0 | Kotlin | 10 | 34 | b80e6baaab137696080b1698e235f2bfcc72de57 | 2,054 | Learning-Concurrency-in-Kotlin | MIT License |
offers/src/main/java/com/bed/offers/domain/alias/CoreTypealias.kt | bed72 | 734,532,408 | false | {"Kotlin": 46083} | package com.bed.offers.domain.alias
import arrow.core.Either
import kotlinx.coroutines.flow.Flow
import com.bed.offers.domain.entities.OfferEntity
import com.bed.shared.domain.entities.MessageEntity
typealias OffersType = Flow<Either<MessageEntity, List<OfferEntity>>>
| 0 | Kotlin | 0 | 0 | 49ce992afe79ce3e0424d5c56e52a4e8e1b5d478 | 274 | OhhFerta | MIT License |
src/test/kotlin/test2/WeatherDemonstratorTest.kt | al-volkov | 340,614,622 | false | {"Kotlin": 124832} | package test2
import org.junit.jupiter.api.Assertions.assertDoesNotThrow
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.Arguments
import org.junit.jupiter.params.provider.MethodSource
internal class WeatherDemonstratorTest {
companion object {
@JvmStatic
... | 0 | Kotlin | 0 | 0 | 5049681dd2a57625309584a6e50b9a6e0b65948a | 697 | spbu_2020_kotlin_homeworks | Apache License 2.0 |
app/src/main/java/pers/vaccae/mvidemo/ui/adapter/DrugsAdapter.kt | Vaccae | 492,745,597 | false | {"Kotlin": 37327} | package pers.vaccae.mvidemo.ui.adapter
import android.content.ClipData
import android.content.Intent
import android.view.View
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import pers.vaccae.mvidemo.R
import pers.vaccae.mvidemo.bean.CDrugs
/**
* ... | 0 | Kotlin | 4 | 3 | 02f0f56fdf45e0697e226edfb09c833217697465 | 900 | AndroidMVIDemo | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.