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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
client/src/test/java/com/evanisnor/handyauth/client/internal/secure/CodeGeneratorTest.kt | evanisnor | 440,957,182 | false | {"Kotlin": 81852} | package com.evanisnor.handyauth.client.internal.secure
import com.google.common.truth.Truth
import org.junit.Assert
import org.junit.Test
import kotlin.random.Random
class CodeGeneratorTest {
@Test
fun generatesCodeVerifier() {
val codeGenerator = CodeGenerator(
random = Random(0),
)
val codeV... | 0 | Kotlin | 0 | 0 | 3195ffb64ac4d6c520c8410a8e1af068e7b4678c | 1,292 | handyauth | MIT License |
src/main/kotlin/com/innopolis/innoqueue/rest/v1/QueueController.kt | Denisalik | 579,473,062 | false | {"Kotlin": 183931, "HTML": 2606, "Python": 1187, "Dockerfile": 799, "Shell": 440, "Procfile": 86} | package com.innopolis.innoqueue.rest.v1
import com.innopolis.innoqueue.dto.*
import com.innopolis.innoqueue.services.QueueService
import io.swagger.v3.oas.annotations.Operation
import io.swagger.v3.oas.annotations.tags.Tag
import org.springframework.http.HttpStatus
import org.springframework.http.ResponseEntity
import... | 0 | null | 0 | 0 | 1af526f659dadefe3635750b70436615bc807793 | 7,192 | Backend | MIT License |
plugins/world/minigame/party_room/partyRoomHandler.kts | luna-rs | 41,239,479 | false | {"Gradle Kotlin DSL": 2, "Java Properties": 1, "Markdown": 5, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Text": 8, "YAML": 2, "Kotlin": 209, "INI": 1, "Java": 342, "CSS": 1, "XML": 1, "JSON": 9, "SQL": 3} | package world.minigame.party_room
import api.predef.*
import io.luna.game.action.Action
import io.luna.game.action.RepeatingAction
import io.luna.game.event.impl.ServerLaunchEvent
import io.luna.game.model.Position
import io.luna.game.model.item.Item
import io.luna.game.model.mob.Animation
import io.luna.game.model.mo... | 52 | Java | 42 | 152 | 876bbe43345953a4f700c670eb999b761cc2a624 | 4,633 | luna | MIT License |
app/src/main/java/com/breezedealmatrix/features/attendance/model/AttendanceResponse.kt | DebashisINT | 865,411,090 | false | {"Kotlin": 15862964, "Java": 1029932} | package com.breezedealmatrix.features.attendance.model
import com.breezedealmatrix.base.BaseResponse
/**
* Created by Pratishruti on 30-11-2017.
*/
class AttendanceResponse:BaseResponse(){
var shop_list:List<AttendanceResponseData>?=null
} | 0 | Kotlin | 0 | 0 | 032400c3fce3853a1488e2b580bee07a8e447c90 | 246 | DealMatrixPvtLtd | Apache License 2.0 |
modules/feature_app_settings/src/main/java/kekmech/ru/feature_app_settings/screens/main/AppSettingsListConverter.kt | alexberdreal | 312,900,118 | true | {"Kotlin": 408124, "Shell": 46} | package kekmech.ru.feature_app_settings.screens.main
import kekmech.ru.coreui.items.*
import kekmech.ru.feature_app_settings.BuildConfig
import kekmech.ru.feature_app_settings.R
import kekmech.ru.feature_app_settings.screens.main.AppSettingsFragment.Companion.ITEM_GITHUB
import kekmech.ru.feature_app_settings.screens.... | 0 | null | 0 | 0 | 44324701b5e121bfca3fc854d3f84dffbe8ae90c | 3,647 | mpeiapp | MIT License |
buildSrc/src/main/java/com/likethesalad/placeholder/tasks/actions/GatherTemplatesAction.kt | SicMarcis | 309,424,251 | true | {"Kotlin": 226180} | package com.likethesalad.placeholder.tasks.actions
import com.likethesalad.placeholder.data.Constants
import com.likethesalad.placeholder.data.resources.ResourcesHandler
import com.likethesalad.placeholder.data.storage.FilesProvider
import com.likethesalad.placeholder.data.storage.IncrementalDataCleaner
import com.lik... | 0 | null | 0 | 0 | e2c134da29063833e7b024cb5a110e1d8a161c84 | 2,652 | android-string-reference | MIT License |
src/main/kotlin/com/enhe/endpoint/window/tree/EndpointNode.kt | dingshichen | 577,605,646 | false | {"Kotlin": 215117, "Java": 29200} | // @author ding.shichen
// @email <EMAIL>
// @date 2022-12-26
package com.enhe.endpoint.window.tree
import com.intellij.openapi.project.Project
import com.intellij.ui.treeStructure.SimpleNode
import com.intellij.util.net.HTTPMethod
import icons.MyIcons
import javax.swing.Icon
class EndpointNode(
val parent... | 0 | Kotlin | 2 | 3 | 23656796abebb24459ac9d20e415f47663cef6ee | 1,170 | enhe-endpoint | Apache License 2.0 |
utilk_android/src/test/java/com/mozhimen/basick/elemk/TestDelegate.kt | mozhimen | 798,079,717 | false | {"Kotlin": 1394332} | package com.mozhimen.basick.elemk
import com.mozhimen.kotlin.elemk.kotlin.properties.VarProperty_Set
import com.mozhimen.kotlin.elemk.kotlin.properties.VarProperty_SetSameNonnull
import com.mozhimen.kotlin.elemk.kotlin.properties.VarProperty_SetVaryNullable
import com.mozhimen.kotlin.utilk.kotlin.printlog
import org.j... | 0 | Kotlin | 1 | 0 | 60b657dc36c8c68fd11c200c02ab71fc2c7dfe3b | 1,325 | KUtilKit | MIT License |
Coroutines/Coroutine Dispatcher/Dispatcher.Unconfined/src/App.kt | anangkur | 200,490,004 | false | null | import kotlinx.coroutines.*
@ExperimentalCoroutinesApi
fun main() = runBlocking<Unit> {
launch(Dispatchers.Unconfined) {
println("Starting in ${Thread.currentThread().name}")
delay(1000)
println("Resuming in ${Thread.currentThread().name}")
}.start()
} | 0 | Kotlin | 1 | 0 | e2151c0a27075f47a1963f0c802ff6b834b3b849 | 285 | dicoding-basic-kotlin-submission | MIT License |
HTTPShortcuts/favicon_grabber/src/main/kotlin/ch/rmy/favicongrabber/utils/HttpUtil.kt | Waboodoo | 34,525,124 | false | {"Kotlin": 1970466, "HTML": 200869, "CSS": 2316, "Python": 1548} | package ch.rmy.favicongrabber.utils
import okhttp3.HttpUrl
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.ResponseBody
import java.io.File
import java.io.IOException
class HttpUtil(
private val client: OkHttpClient,
private val targetDirectory: File,
private val pageCache: MutableMap<Ht... | 26 | Kotlin | 87 | 999 | 34ec1652d431d581c3c275335eb4dbcf24ced9f5 | 2,199 | HTTP-Shortcuts | MIT License |
src/main/kotlin/com/muhron/kotlinq/inner/zipper.kt | RyotaMurohoshi | 53,187,022 | false | null | package com.muhron.kotlinq.inner
internal object Zipper {
fun <TFirst, TSecond, TResult> zip(first: Sequence<TFirst>, second: Sequence<TSecond>, resultSelector: (TFirst, TSecond) -> TResult): Sequence<TResult>
= first.zip(second, resultSelector)
} | 1 | Kotlin | 0 | 5 | 1bb201d7032cdcc302f342bc771ab356f1d96db2 | 264 | KotLinq | MIT License |
staging/solidblocks-cli/src/commonMain/kotlin/de/solidblocks/cli/workflow/commands/WorkflowErrorCommand.kt | pellepelster | 427,474,970 | false | {"Kotlin": 327110, "Shell": 145200, "HCL": 94738, "Python": 9981, "Dockerfile": 7516, "HTML": 4972} | package de.solidblocks.cli.workflow.commands
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.core.PrintHelpMessage
import com.github.ajalt.clikt.parameters.arguments.argument
import com.github.ajalt.clikt.parameters.arguments.multiple
class WorkflowErrorCommand(message: String) : CliktCo... | 4 | Kotlin | 5 | 25 | e63a6f13522e32ae2343fd75791f47e5777fd702 | 713 | solidblocks | MIT License |
shared/src/commonMain/kotlin/io/github/andremion/slidingpuzzle/domain/collections/Heap.kt | andremion | 750,744,594 | false | {"Kotlin": 81445, "Swift": 659} | /*
* Copyright 2024. <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 0 | Kotlin | 1 | 2 | 86c929ff7f816e9851644a4d4b194454347daa68 | 3,101 | SlidingPuzzle | Apache License 2.0 |
cinescout/tvshows/domain/src/commonMain/kotlin/cinescout/tvshows/domain/testdata/TvShowWithExtrasTestData.kt | 4face-studi0 | 280,630,732 | false | null | package cinescout.tvshows.domain.testdata
import arrow.core.some
import cinescout.tvshows.domain.model.TvShowWithExtras
object TvShowWithExtrasTestData {
val BreakingBad = TvShowWithExtras(
tvShowWithDetails = TvShowWithDetailsTestData.BreakingBad,
credits = TvShowCreditsTestData.BreakingBad,
... | 19 | Kotlin | 2 | 3 | d64398507d60a20a445db1451bdd8be23d65c9aa | 1,137 | CineScout | Apache License 2.0 |
examples/wa-user/src/main/java/com/anymore/wanandroid/user/UserApplicationWrapper.kt | anymao | 234,439,982 | false | null | package com.anymore.wanandroid.user
import android.app.Application
import com.anymore.andkit.lifecycle.application.AbsApplicationWrapper
import timber.log.Timber
/**
* Created by liuyuanmao on 2020/1/17.
*/
class UserApplicationWrapper(application: Application) : AbsApplicationWrapper(application) {
override f... | 0 | Kotlin | 0 | 5 | f0c89b016e16303840e61c60337c39e82bf8c872 | 529 | Andkit | MIT License |
src/test/kotlin/net/yested/core/properties/PropertyTest.kt | ipaste | 101,701,591 | true | {"JavaScript": 420699, "Kotlin": 140276, "CSS": 4991, "HTML": 2235} | package net.yested.core.properties
import org.junit.Test
import spec.*
import kotlin.js.Math
/**
* A test for [Property].
* @author Eric Pabst (epabst@gmail.com)
* Date: 9/29/16
* Time: 1:51 PM
*/
class PropertyTest {
@Test
fun onNext_shouldIgnoreSetWithSameValue() {
val property = 123.toProperty... | 0 | JavaScript | 0 | 0 | 7f9adc3d0aee7a611c6cf847d0208723c30a734d | 15,511 | yested_fw | MIT License |
showkase-processor-testing/src/test/resources/ShowkaseProcessorTest/color_property_inside_object_with_ShowkaseColor_annotation_compiles_ok/input/GeneratedTestComposables.kt | airbnb | 257,758,318 | false | {"Kotlin": 715619} | package com.airbnb.android.showkase_processor_testing
import androidx.compose.ui.graphics.Color
import com.airbnb.android.showkase.annotation.ShowkaseColor
public object ShowkaseObject {
@ShowkaseColor("name", "group")
public val color: Color = Color(0xffff0000)
} | 50 | Kotlin | 106 | 2,073 | 9c3d6fc313d63b8f555fc65232ac15f798aede9a | 274 | Showkase | Apache License 2.0 |
compiler/fir/resolve/src/org/jetbrains/kotlin/fir/extensions/RawUserTypeBuilder.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.extensions
import org.jetbrains.kotlin.fir.types.FirQualifierPart
import org... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,540 | kotlin | Apache License 2.0 |
backend/src/test/kotlin/com/github/davinkevin/podcastserver/cover/CoverServiceTest.kt | davinkevin | 13,350,152 | false | {"HTML": 15231888, "Kotlin": 1215645, "TypeScript": 162710, "JavaScript": 96744, "Java": 22047, "Less": 21773, "SCSS": 5172, "Shell": 3271, "Dockerfile": 2495} | package com.github.davinkevin.podcastserver.cover
import com.github.davinkevin.podcastserver.cover.DeleteCoverRequest.Item
import com.github.davinkevin.podcastserver.cover.DeleteCoverRequest.Podcast
import com.github.davinkevin.podcastserver.service.storage.FileStorageService
import org.junit.jupiter.api.AfterEach
imp... | 0 | HTML | 42 | 188 | 7f4272b889325a1689c9dd10c8bf43fbd9a2beb5 | 3,159 | Podcast-Server | Apache License 2.0 |
ceprace/src/main/java/com/engedu/ceprace/data/repository/AddressRepository.kt | EASY-CODES | 762,273,839 | false | {"Kotlin": 25946} | package com.engedu.ceprace.data.repository
import com.engedu.ceprace.data.model.OpenCepDTO
import com.engedu.ceprace.data.model.PostmonDTO
import com.engedu.ceprace.data.model.ViaCepDTO
import com.engedu.ceprace.data.model.WidnetDTO
internal interface AddressRepository {
suspend fun getAddressViaCep(cep: String):... | 0 | Kotlin | 0 | 1 | 511bbc366c64bf3e7d294d9ca61139d77998ae3b | 507 | ceprace | Apache License 2.0 |
app/src/main/java/com/jayasuryat/minesweeperjc/theme/Type.kt | jayasuryat | 426,077,797 | false | {"Kotlin": 364205, "Ruby": 1611} | /*
* Copyright 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 3 | Kotlin | 15 | 81 | 92ef8a0c17172c684af00c143fb72154aec0750c | 1,442 | minesweeper-j-compose | Apache License 2.0 |
app/src/main/java/com/example/matthias/mvvmcustomviewexample/mvvm/MvvmCustomViewModel.kt | matthias-siegmund | 172,164,035 | false | null | package com.example.matthias.mvvmcustomviewexample.mvvm
interface MvvmCustomViewModel<T: MvvmCustomViewState> {
var state: T?
} | 1 | Kotlin | 5 | 30 | b8ec749d8572058c3ed292c67cbfb45e6f0a54a9 | 132 | MVVMCustomViewExample | Apache License 2.0 |
common/src/main/java/info/dvkr/screenstream/common/DataStoreUtils.kt | dkrivoruchko | 63,582,643 | false | {"Kotlin": 429573, "Java": 59189, "HTML": 26393, "JavaScript": 15440} | @file:JvmName("DataStoreUtils")
package info.dvkr.screenstream.common
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.emptyPreferences
import com.elvishew.xlog.XLog
import kotlinx... | 17 | Kotlin | 304 | 1,469 | 92bcb07cf775af1ab39db14fcf17a5f75d68fa1e | 1,047 | ScreenStream | MIT License |
domain/src/main/java/com/wasin/domain/usecase/user/Logout.kt | wa-sin-sang-dam | 828,217,645 | false | {"Kotlin": 301042} | package com.wasin.domain.usecase.user
import com.wasin.data.data_api.UserRepository
import com.wasin.data.util.getErrorMessage
import com.wasin.domain.utils.Resource
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import javax.inject.Inject
class Logout @Inject constructor(
private val use... | 2 | Kotlin | 0 | 0 | 3931b34962fe857b8accd5f922b0f5df1add2595 | 860 | wasin-android | MIT License |
src/main/kotlin/me/camdenorrb/magicalcatz/ext/ClassExt.kt | camdenorrb | 95,954,918 | false | null | package me.camdenorrb.magicalcatz.ext
@Suppress("UNCHECKED_CAST")
inline fun <reified T : Any, R> getPrivateField(fieldName: String, obj: T? = null): R? {
val field = T::class.java.getDeclaredField(fieldName)
field.isAccessible = true
return field.get(obj) as? R
} | 0 | Kotlin | 0 | 0 | aacc3fcb20de31867a1ca7c63f641aa93b6390d9 | 269 | MagicalCatz | Apache License 2.0 |
core/src/commonTest/kotlin/pw/binom/TestStringUtils.kt | dragossusi | 277,504,821 | true | {"C": 13518997, "Kotlin": 569853, "C++": 546364, "Shell": 86} | package pw.binom
import kotlin.test.Test
import kotlin.test.assertEquals
class TestStringUtils {
@Test
fun `numbers`() {
val data = "123456".asUTF8ByteArray()
assertEquals(6, data.size)
}
@Test
fun `latin`() {
val data = "ABCDEF".asUTF8ByteArray()
assertEquals(6, ... | 0 | null | 0 | 0 | d16040b0f0d340104194014fc174858244684813 | 455 | pw.binom.io | Apache License 2.0 |
data/src/main/java/com/instaleap/data/remote/api/MovieApi.kt | rovargas15 | 845,909,506 | false | {"Kotlin": 255524, "Shell": 3714} | package com.instaleap.data.remote.api
import com.instaleap.data.remote.response.BaseResponse
import com.instaleap.data.remote.response.MovieDetailResponse
import com.instaleap.data.remote.response.MovieResponse
interface MovieApi {
suspend fun getMovies(
category: String = "",
page: Int = 1,
)... | 0 | Kotlin | 0 | 0 | 277fc502e04753aa81295f167523691033ae8fd0 | 495 | Instaflix | Apache License 2.0 |
src/main/kotlin/mkuhn/aoc/Day03.kt | mtkuhn | 572,236,871 | false | null | package mkuhn.aoc
import mkuhn.aoc.util.intersectAll
import mkuhn.aoc.util.readInput
fun main() {
val rucksacks = readInput("Day03")
println(day3part1(rucksacks))
println(day3part2(rucksacks))
}
fun day3part1(input: List<String>): Int =
input.map { it.take(it.length/2).toSet() to it.takeLast(it.lengt... | 0 | Kotlin | 0 | 1 | 89138e33bb269f8e0ef99a4be2c029065b69bc5c | 762 | advent-of-code-2022 | Apache License 2.0 |
web/src/jsMain/kotlin/component/TeamColourStripe.kt | vitorhugods | 529,968,253 | false | null | package component
import androidx.compose.runtime.Composable
import org.jetbrains.compose.web.css.*
import org.jetbrains.compose.web.dom.Div
import style.ContainerStyle
import xyz.schwaab.f1seats.dto.Team
@Composable
fun TeamColourStripe(team: Team, modifier: StyleScope.() -> Unit) {
Div({
classes(Contain... | 0 | Kotlin | 0 | 0 | 49266d78dca1074420afc8d0969215144c7d7ff1 | 487 | f1-musical-seats | Apache License 2.0 |
web/src/jsMain/kotlin/component/TeamColourStripe.kt | vitorhugods | 529,968,253 | false | null | package component
import androidx.compose.runtime.Composable
import org.jetbrains.compose.web.css.*
import org.jetbrains.compose.web.dom.Div
import style.ContainerStyle
import xyz.schwaab.f1seats.dto.Team
@Composable
fun TeamColourStripe(team: Team, modifier: StyleScope.() -> Unit) {
Div({
classes(Contain... | 0 | Kotlin | 0 | 0 | 49266d78dca1074420afc8d0969215144c7d7ff1 | 487 | f1-musical-seats | Apache License 2.0 |
build-common/src/org/jetbrains/kotlin/build/sourcesUtils.kt | tnorbye | 176,209,431 | true | {"Markdown": 56, "Gradle": 497, "Gradle Kotlin DSL": 215, "Java Properties": 12, "Shell": 11, "Ignore List": 10, "Batchfile": 9, "Git Attributes": 1, "Protocol Buffer": 12, "Java": 5238, "Kotlin": 43905, "Proguard": 7, "XML": 1594, "Text": 9172, "JavaScript": 239, "JAR Manifest": 2, "Roff": 209, "Roff Manpage": 34, "IN... | /*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.build
val DEFAULT_KOTLIN_SOURCE_FILES_EXTENSIONS = listOf("kt", "kts")
| 0 | Kotlin | 2 | 2 | b6be6a4919cd7f37426d1e8780509a22fa49e1b1 | 266 | kotlin | Apache License 2.0 |
features/currencyrates/data-impl/src/main/java/com/sapiest/vaultspace/feature/currencyrates/data/impl/local/database/models/CurrencyResource.kt | sapiest | 703,269,182 | false | {"Kotlin": 47638} | package com.sapiest.vaultspace.feature.currencyrates.data.impl.local.database.models
import androidx.room.Embedded
import androidx.room.Relation
import com.sapiest.vaultspace.feature.currencyrates.data.api.models.CurrencyModel
data class CurrencyResource(
@Embedded val currencyData: CurrencyDataEntity,
@Relat... | 0 | Kotlin | 0 | 0 | 7ed653b8dc93862d0865d746cb569159fc72f9a8 | 693 | VaultSpace | MIT License |
floatingwindow/src/main/java/me/bytebeats/floatingwindow/Initializer.kt | bytebeats | 426,862,978 | false | {"Kotlin": 5919} | package me.bytebeats.floatingwindow
import android.content.ContentProvider
import android.content.ContentValues
import android.database.Cursor
import android.net.Uri
/**
* Created by bytebeats on 2021/11/11 : 12:28
* E-mail: <EMAIL>
* Quote: Peasant. Educated. Worker
*/
class Initializer : ContentProvider() {
... | 0 | Kotlin | 0 | 2 | d142d0d2a5ca0fbe2dc6da22ae8b8ca1b24eff9e | 1,015 | FloatingWindow | MIT License |
core/core/src/jsMain/kotlin/zakadabar/core/browser/input/ZkCheckboxList.kt | spxbhuhb | 290,390,793 | false | {"Kotlin": 2348240, "HTML": 2835, "JavaScript": 1021, "Dockerfile": 269, "Shell": 253} | /*
* Copyright © 2020-2021, <NAME> and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package zakadabar.core.browser.input
import zakadabar.core.browser.ZkElement
import zakadabar.core.browser.form.zkFormStyles
import zakadabar.core.resource.ZkIcons
import zakadabar.core.util.PublicA... | 12 | Kotlin | 3 | 24 | 61ac92ff04eb53bff5b9a9b2649bd4866f469942 | 1,269 | zakadabar-stack | Apache License 2.0 |
app/src/main/java/uz/sicnt/eimzo/LoginActivityCons.kt | tdehqonov | 430,644,008 | false | null | package uz.sicnt.eimzo
import android.app.Activity
import android.content.Context
import android.content.Context.MODE_PRIVATE
import android.content.Intent
import android.content.SharedPreferences
import android.net.Uri
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widge... | 0 | Kotlin | 0 | 0 | 270b1e4cf059c4904796357da3957fc29f0ad90f | 9,632 | EDO | Apache License 2.0 |
prj-common/src/commonMain/kotlin/accesscontrol/Allowed.kt | simonegiacomelli | 473,571,649 | false | {"Kotlin": 330260, "HTML": 123796, "TSQL": 4632, "CSS": 1467, "Shell": 301} | package accesscontrol
import accesscontrol.Access.*
enum class Access(val status: Int) { // see https://stackoverflow.com/a/14713094/316766
Allowed(200),
/** Not authenticated, aka Unauthorized (even if it's kind of misleading) */
NoAuthentication(401),
/** Authenticated bud no permission, aka Forb... | 0 | Kotlin | 1 | 0 | 4977f6b96d9ade0b43300ce0256b6a55e0839b05 | 885 | kotlin-mpp-starter | Apache License 2.0 |
src/main/kotlin/archetypes/Archetype.kt | lucas-de-lima | 761,800,305 | false | {"Kotlin": 10520} | package org.dungeonCodeKotlinCrusade.archetypes
import org.dungeonCodeKotlinCrusade.types.EnergyType
abstract class Archetype(
private val name: String,
private var special: Int = 0,
private var cost: Int = 0
) {
abstract val energyType: EnergyType
companion object {
fun createArchetypeIn... | 0 | Kotlin | 0 | 0 | f553e61d6812bd6ed1d226c32211a92dfce933f4 | 412 | Dungeon-Code-Kotlin-Crusade | Apache License 2.0 |
src/main/kotlin/service/tributacao/ReajusteTributavel.kt | GabrielDragone | 594,284,484 | false | null | package service.tributacao
import java.math.BigDecimal
interface ReajusteTributavel: Reajuste { // Além de forçar a implementação de valorImpostoDeRenda, classes que implementarem essa interface terão que implementar Reajuste.
fun valorImpostoDeRenda(): BigDecimal
} | 0 | Kotlin | 0 | 0 | 6e9ab912d4fb05ceb634b702a5ab123a3341c4f2 | 274 | solid-kotlin-example | MIT License |
app/src/main/java/fr/uge/plutus/data/repository/TagRepository.kt | osmocode | 576,186,119 | false | null | package fr.uge.plutus.data.repository
import fr.uge.plutus.data.dao.TagDao
import fr.uge.plutus.data.interfaces.ITagRepository
import fr.uge.plutus.data.model.Tag
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class TagRepository @Inject constructor(
private val tagDao: TagDao
) : ITagRepository {... | 6 | null | 0 | 4 | 7fce9876bd3d8e3ee3a5f656bacc253de34541b0 | 761 | android-jetpack | MIT License |
src/main/kotlin/data/model/WeatherState.kt | aticiadem | 755,521,558 | false | {"Kotlin": 15172} | package data.model
import com.google.gson.annotations.SerializedName
import kotlinx.serialization.Serializable
@Serializable
data class WeatherState(
@SerializedName("coord")
val coord: Coord? = null,
@SerializedName("id")
val id: Int? = null,
@SerializedName("main")
val main: Main? = null,
... | 0 | Kotlin | 0 | 4 | d03d202bbc4c3b6e62f124b2ec82560d48251263 | 557 | WeatherDesktopApp | MIT License |
app/src/main/java/com/meryemarpaci/socialpet/adapter/FeedRecyclerAdapter.kt | meryemarpaci | 756,364,806 | false | {"Kotlin": 17899} | package com.meryemarpaci.socialpet.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.meryemarpaci.socialpet.databinding.RecyclerRowBinding
import com.meryemarpaci.socialpet.model.Post
import com.squareup.picasso.Picasso
class FeedRecyc... | 0 | Kotlin | 0 | 0 | 47abe748e92920e08e9dad46557e6223cde64d72 | 1,163 | SocialPet | MIT License |
app/src/main/java/com/meryemarpaci/socialpet/adapter/FeedRecyclerAdapter.kt | meryemarpaci | 756,364,806 | false | {"Kotlin": 17899} | package com.meryemarpaci.socialpet.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.meryemarpaci.socialpet.databinding.RecyclerRowBinding
import com.meryemarpaci.socialpet.model.Post
import com.squareup.picasso.Picasso
class FeedRecyc... | 0 | Kotlin | 0 | 0 | 47abe748e92920e08e9dad46557e6223cde64d72 | 1,163 | SocialPet | MIT License |
app/src/main/java/uz/boywonder/myrecipes/models/Recipes.kt | boy12hoody | 380,256,389 | false | null | package uz.boywonder.myrecipes.models
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class Recipes(
@Json(name = "results")
val results: List<Result>
) | 0 | Kotlin | 0 | 2 | 2093d208d85a3907abd0aae6afd4cb7f2f2155d6 | 226 | MyRecipes | MIT License |
src/main/java/org/codinjutsu/tools/nosql/commons/view/nodedescriptor/internal/DatabaseResultDescriptor.kt | michaelsiepmann | 110,033,938 | true | {"Gradle": 2, "Text": 3, "Shell": 2, "Ignore List": 1, "Batchfile": 1, "XML": 13, "Markdown": 1, "Kotlin": 232, "Java": 82, "JSON": 11, "INI": 1} | package org.codinjutsu.tools.nosql.commons.view.nodedescriptor.internal
import com.intellij.ui.ColoredTableCellRenderer
import com.intellij.ui.ColoredTreeCellRenderer
import org.codinjutsu.tools.nosql.commons.view.nodedescriptor.result.ResultDescriptor
internal class DatabaseResultDescriptor(collectionName: String) :... | 0 | Java | 2 | 4 | 68b6d376d54a388771279292dffd8b42134673f9 | 777 | nosql4idea | Apache License 2.0 |
Base/src/main/java/xy/xy/base/listener/EmptySuccessAndErrorListener.kt | xiuone | 291,512,847 | false | null | package xy.xy.base.listener
interface EmptySuccessAndErrorListener: EmptySuccessListener, EmptyErrorListener | 0 | Kotlin | 1 | 2 | 51bc46fde7d03484241b04cddc77236dbecf4469 | 109 | ajinlib | Apache License 2.0 |
app/src/main/java/com/force/codes/tracepinas/di/module/ActivityBuilderModule.kt | forceporquillo | 292,104,153 | false | {"Kotlin": 91521} | /*
* Created by <NAME> on 9/2/20 5:14 AM
*/
package com.force.codes.tracepinas.di.module
import com.force.codes.tracepinas.ui.activity.changecountry.ChangeCountryActivity
import com.force.codes.tracepinas.ui.activity.navhost.NavigationHostActivity
import dagger.Module
import dagger.android.ContributesAndroidInject... | 0 | Kotlin | 0 | 1 | ca6bb96a2ff0b148e28c71382d2ef64441a46759 | 621 | tracepinas-v2-android | Apache License 2.0 |
app/src/main/java/com/force/codes/tracepinas/di/module/ActivityBuilderModule.kt | forceporquillo | 292,104,153 | false | {"Kotlin": 91521} | /*
* Created by <NAME> on 9/2/20 5:14 AM
*/
package com.force.codes.tracepinas.di.module
import com.force.codes.tracepinas.ui.activity.changecountry.ChangeCountryActivity
import com.force.codes.tracepinas.ui.activity.navhost.NavigationHostActivity
import dagger.Module
import dagger.android.ContributesAndroidInject... | 0 | Kotlin | 0 | 1 | ca6bb96a2ff0b148e28c71382d2ef64441a46759 | 621 | tracepinas-v2-android | Apache License 2.0 |
app/src/main/java/com/avtestapp/android/androidbase/custom_views/OnboardingFormDropDown.kt | oyeleke | 290,141,811 | false | null | package com.avtestapp.android.androidbase.custom_views
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.FrameLayout
import android.widget.LinearLayout
import androidx.appcompat.widget.LinearLayoutCompat
import com.avtestapp.android.androidbase.R
import com.... | 0 | Kotlin | 0 | 0 | 41bb3bee8b77ee9143ab2f5a505742fcafef145f | 3,419 | av_test_app_android | Apache License 2.0 |
src/main/kotlin/org/randomcat/agorabot/listener/CommandParser.kt | cybernetics | 334,786,714 | true | {"Kotlin": 247212} | package org.randomcat.agorabot.listener
import kotlinx.collections.immutable.ImmutableList
import kotlinx.collections.immutable.toImmutableList
import net.dv8tion.jda.api.events.message.MessageReceivedEvent
import org.randomcat.agorabot.util.splitArguments
data class CommandInvocation(val command: String, val args: I... | 0 | null | 0 | 0 | 95e5dcf7e3baeb7a4ce35b37b32f922ad5d38016 | 3,457 | AgoraBot | MIT License |
java/com/tdi/tmaps/network/place/OpeningHours.kt | DigitalRealm2282 | 534,740,468 | false | null | package com.tdi.tmaps.network.place
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class OpeningHours {
@SerializedName("open_now")
@Expose
var openNow: Boolean? = null
@SerializedName("periods")
@Expose
var periods: List<Period>? = null
@Seri... | 0 | Kotlin | 0 | 0 | 7163b1de30d73ade59ae7c0851e6b943d3e4de54 | 402 | TMaps | MIT License |
app/src/main/java/ua/com/radiokot/osmanddisplay/features/track/view/ImportTrackActivity.kt | Radiokot | 575,442,818 | false | null | package ua.com.radiokot.osmanddisplay.features.track.view
import android.app.Activity
import android.content.Intent
import android.graphics.Bitmap
import android.os.Bundle
import android.view.View
import androidx.core.widget.addTextChangedListener
import com.google.android.material.progressindicator.CircularProgressIn... | 0 | Kotlin | 3 | 6 | a302532af8804e47633ec773f5af57e819ca4d2a | 7,441 | osmand-display-app | MIT License |
presentation/work/src/main/java/com/gyorgyzoltan/sprayApp/work/nozzlePicker/list/NozzlePickerListItem.kt | pandulapeter | 279,548,090 | false | null | package com.gyorgyzoltan.sprayApp.work.nozzlePicker.list
import com.gyorgyzoltan.sprayApp.main.shared.list.ListItem
internal interface NozzlePickerListItem : ListItem | 0 | Kotlin | 0 | 2 | 9a5238105eafc74373f496d26f97cf095daa4696 | 168 | spray-app | Apache License 2.0 |
data/src/main/java/com/mmb/happybox/data/database/HappyBoxRoomDatabase.kt | mmbehroozfar | 535,377,016 | false | null | package com.mmb.happybox.data.database
import androidx.room.Database
import androidx.room.RoomDatabase
import com.mmb.moveis.data.model.entities.HappyThingEntity
@Database(
entities = [
HappyThingEntity::class,
],
version = 1,
exportSchema = false
)
abstract class HappyBoxRoomDatabase : RoomDa... | 0 | Kotlin | 0 | 0 | cba2c48d20a56f470cb47fe8850659f12f39094a | 346 | Happy-Box | MIT License |
app/src/main/java/com/awilab/movieencyclopedia/ui/search/SearchPagingSource.kt | Chen-A-wi | 668,750,943 | false | {"Kotlin": 68253} | package com.awilab.movieencyclopedia.ui.search
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.awilab.domain.model.PaginatedData
import com.awilab.domain.model.movie.Movie
import com.awilab.domain.repository.SearchRepository
import com.awilab.network.response.common.Result
import com.... | 0 | Kotlin | 0 | 0 | 2f22a03878fe9b4f489355f1fe98b3dc4851a653 | 2,496 | MovieEncyclopedia | MIT License |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/twotone/Bank.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.twotone
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.StrokeCap
import androidx... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 5,779 | VuesaxIcons | MIT License |
shared/src/commonMain/kotlin/com/multiplatform/app/data/local/datastore/PreferencesRepository.kt | khalid64927 | 739,679,393 | false | {"Kotlin": 129295, "Ruby": 2334, "Swift": 1534} | package com.multiplatform.app.data.local.datastore
import kotlinx.coroutines.flow.Flow
interface PreferencesRepository {
val location: Flow<String>
suspend fun saveLocation(location: String)
suspend fun saveAccessToken(accessToken: String)
val accessToken: Flow<String>
}
| 0 | Kotlin | 0 | 0 | 706d18896c3eb6d21983c9c73e5927f584a278ca | 292 | kmp-tes-app | MIT License |
kotest-property/src/jvmTest/kotlin/com/sksamuel/kotest/property/shrinking/SetShrinkerTest.kt | kotest | 47,071,082 | false | {"Kotlin": 4736924, "CSS": 352, "Java": 145} | package com.sksamuel.kotest.property.shrinking
import io.kotest.assertions.throwables.shouldThrowAny
import io.kotest.core.annotation.EnabledIf
import io.kotest.core.annotation.enabledif.LinuxCondition
import io.kotest.core.spec.style.FunSpec
import io.kotest.extensions.system.captureStandardOut
import io.kotest.match... | 141 | Kotlin | 648 | 4,435 | 2ce83d0f79e189c90e2d7bb3d16bd4f75dec9c2f | 1,989 | kotest | Apache License 2.0 |
app/src/main/java/com/axondragonscale/compose/demo/slider/NumberSlider.kt | AxonDragonScale | 788,602,243 | false | {"Kotlin": 221351} | package com.axondragonscale.compose.demo.slider
import android.content.res.Configuration
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.g... | 8 | Kotlin | 0 | 0 | 6d6f83402f731c93b5a56924f076a9d8a718c991 | 8,015 | ComposeDemos | MIT License |
src/main/kotlin/com/example/voicecommands/dto/model/NoteDTO.kt | michaldomino | 354,768,156 | false | null | package com.example.voicecommands.dto.model
import com.example.voicecommands.enums.NoteType
data class NoteDTO(
val id: String? = null,
val name: String? = null,
val type: NoteType? = null,
val ownerId: String? = null
) | 0 | Kotlin | 0 | 0 | 3b83de8c91ad48a146ad8a03b54cace92668e33d | 237 | Voice-command-controlled-application-server | MIT License |
Myjava/projects/src/com/learn/day02/14. 默认参数和具名参数.kt | turbohiro | 158,934,823 | false | null | package com.learn.day02
fun main(args:Array<String>){
sendRequest("www.baidu.com") //具名参数
}
fun sendRequest(path:String,method:String="GET"){ //GET POST 默认参数
println("请求路径={$path},方法={$method}")
}
fun postRequest(path:String,method:String="POST"){
println("请求路径={$path},方法={$method}")
} | 1 | null | 1 | 1 | 55268b5c1c5e202641fd1acfce4e842d8567f9e0 | 308 | kotlin_learning | MIT License |
mixite.core/core/src/test/kotlin/org/hexworks/mixite/core/api/CoordinateConverterTest.kt | Blackdread | 220,013,651 | true | {"Kotlin": 113452} | package org.hexworks.mixite.core.api
import org.hexworks.mixite.core.api.CubeCoordinate.Companion.fromAxialKey
import org.hexworks.mixite.core.api.CubeCoordinate.Companion.fromCoordinates
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
class CoordinateConverterTest {
@T... | 0 | null | 0 | 0 | e13eb700f3ca60e98e88680018fad7874848cd32 | 2,293 | mixite | Apache License 2.0 |
pluto-plugins/plugins/datastore/lib-no-op/src/main/java/com/pluto/plugins/datastore/pref/PlutoDatastorePreferencesPlugin.kt | androidPluto | 390,471,457 | false | {"Kotlin": 744352, "Shell": 646} | package com.pluto.plugins.datastore.pref
@SuppressWarnings("UnusedPrivateMember")
class PlutoDatastorePreferencesPlugin @JvmOverloads constructor(identifier: String = ID) {
companion object {
const val ID = "datastore-preferences"
}
}
| 23 | Kotlin | 64 | 657 | 5562cb7065bcbcf18493820e287d87c7726f630b | 252 | pluto | Apache License 2.0 |
src/commonMain/kotlin/net/codinux/csv/reader/CsvRow.kt | codinux-gmbh | 674,390,307 | false | null | package net.codinux.csv.reader
import kotlinx.datetime.Instant
import kotlinx.datetime.LocalDateTime
/**
* Index based CSV-row.
*/
class CsvRow private constructor(
/**
* Returns the original line number (starting with 1). On multi-line rows this is the starting
* line number.
* Empty lines could be skip... | 0 | Kotlin | 0 | 0 | 5e2ee915d434e513bbc24d030110e9df2568b857 | 3,900 | kCSV | MIT License |
src/main/kotlin/indi/midreamsheep/app/tre/shared/render/manager/core/ManagerReadParser.kt | Simple-Markdown | 744,897,915 | false | {"Kotlin": 207304, "Java": 68622} | package indi.midreamsheep.app.tre.shared.render.manager.core
import indi.midreamsheep.app.tre.api.annotation.render.line.LineParserMap
import indi.midreamsheep.app.tre.shared.render.block.TREBlockState
import indi.midreamsheep.app.tre.shared.render.manager.TREBlockManager
import live.midreamsheep.frame.sioc.di.annotat... | 0 | Kotlin | 0 | 3 | afae6b49ebc92fbc2bbbcef51fca0bf6db3c79ec | 1,808 | SMarkdown | Apache License 2.0 |
feature/browser/src/main/java/com/pwillmann/moviediscovery/feature/browser/BrowserFragmentBuilder.kt | pwillmann | 149,355,278 | false | null | package com.pwillmann.moviediscovery.feature.browser
import androidx.lifecycle.ViewModel
import com.pwillmann.moviediscovery.core.dagger.viewmodel.ViewModelKey
import dagger.Binds
import dagger.Module
import dagger.android.ContributesAndroidInjector
import dagger.multibindings.IntoMap
@Module
abstract class BrowserFr... | 0 | Kotlin | 0 | 3 | dff67b5471902bcde67b0a0186877b86c25ad445 | 583 | moviedb-browser-android | MIT License |
modules/database/src/main/java/com/uogames/database/dao/CacheDAO.kt | Gizcerbes | 476,234,521 | false | {"Kotlin": 676334} | package com.uogames.database.dao
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.uogames.database.entity.CacheEntity
import kotlinx.coroutines.flow.Flow
@Dao
interface CacheDAO {
@Insert(onConflict = OnConflictStrategy.REPLACE)
susp... | 0 | Kotlin | 0 | 0 | ea694bd872c4ec2e76e761bb9735127a326fce8e | 847 | Remember | Apache License 2.0 |
src/main/kotlin/nav/kotlin/05-Arv.kt | navikt | 170,710,030 | false | null | package nav.kotlin
open class Person(val navn: String, val alder: Int) {
open fun siHei() = println("$navn sier hei")
}
class Student(navn: String, alder: Int, val fag: List<String>): Person(navn, alder) {
override fun siHei() = println("$navn sier hei på en studentaktig måte")
}
class Lærer(navn: String, alde... | 1 | Kotlin | 0 | 1 | 1890c176de77a02c616ff296ce35736e444640ce | 589 | nav-kotlin-intro | MIT License |
src/main/kotlin/com/example/kotlinjpainheritanceissue/KotlinJpaInheritanceIssueApplication.kt | jan-schumacher | 615,353,036 | false | null | package com.example.kotlinjpainheritanceissue
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class KotlinJpaInheritanceIssueApplication
fun main(args: Array<String>) {
runApplication<KotlinJpaInheritanceIssueApplication>(*... | 0 | Kotlin | 0 | 0 | 3adef1fdd7ae6e71cd41add027a46bf483c05e1b | 328 | KotlinJpaInheritanceIssue | Apache License 2.0 |
library/src/main/java/io/github/boguszpawlowski/composecalendar/util/YearMonthExtensions.kt | ZuperInc | 476,166,213 | true | {"Kotlin": 67805} | package io.github.boguszpawlowski.composecalendar.util
import org.threeten.bp.YearMonth
internal operator fun YearMonth.dec() = this.minusMonths(1)
internal operator fun YearMonth.inc() = this.plusMonths(1)
| 0 | Kotlin | 0 | 0 | 8fc8057a1e4d64da3844a89581563e66c2bd28d6 | 210 | ComposeCalendar | Apache License 2.0 |
libraries/analytics/analytics-api-no-op/src/main/java/io/github/reactivecircus/analytics/noop/NoOpAnalyticsApi.kt | DigitalKoi | 255,433,794 | true | {"Kotlin": 339346} | package io.github.reactivecircus.analytics.noop
import android.app.Activity
import io.github.reactivecircus.analytics.AnalyticsApi
object NoOpAnalyticsApi : AnalyticsApi {
override fun setCurrentScreenName(activity: Activity, name: String, className: String?) = Unit
override fun setEnableAnalytics(enable: B... | 0 | null | 0 | 1 | 58366bc4bd86a35b4825975120b6366d8273ae12 | 532 | streamlined | Apache License 2.0 |
cyklone/src/commonTest/kotlin/io/github/gmvalentino8/cyklone/mock/MockReducer.kt | wasabi-muffin | 425,690,673 | false | {"Kotlin": 77210} | package io.github.gmvalentino8.cyklone.mock
import io.github.gmvalentino8.cyklone.components.Reducer
import io.github.gmvalentino8.cyklone.contract.Event
import io.github.gmvalentino8.cyklone.contract.Result
import io.github.gmvalentino8.cyklone.contract.State
import io.github.gmvalentino8.cyklone.contract.ViewState
... | 0 | Kotlin | 0 | 4 | 32d23c7223e924943ead79247942c146c1091898 | 566 | Cyklone | Apache License 2.0 |
app/src/main/java/com/example/dessertclicker/data/Datasource.kt | DemisChan | 747,283,751 | false | {"Kotlin": 19079} | /*
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Kotlin | 0 | 0 | 2aea05b7d6aef49331bece39622d7169ff4d265c | 1,588 | compose-desert-clicker | Apache License 2.0 |
data/src/main/java/com/costular/atomtasks/data/tutorial/TutorialRepository.kt | costular | 379,913,052 | false | {"Kotlin": 566642, "HTML": 7918} | package com.costular.atomtasks.data.tutorial
import kotlinx.coroutines.flow.Flow
interface TutorialRepository {
fun shouldShowReorderTaskTutorial(): Flow<Boolean>
suspend fun reorderTaskShown()
}
| 0 | Kotlin | 0 | 9 | 98f781daebe30ed4b4439629b4d6215153f7fc89 | 206 | atom-tasks | Apache License 2.0 |
data/src/main/java/com/costular/atomtasks/data/tutorial/TutorialRepository.kt | costular | 379,913,052 | false | {"Kotlin": 566642, "HTML": 7918} | package com.costular.atomtasks.data.tutorial
import kotlinx.coroutines.flow.Flow
interface TutorialRepository {
fun shouldShowReorderTaskTutorial(): Flow<Boolean>
suspend fun reorderTaskShown()
}
| 0 | Kotlin | 0 | 9 | 98f781daebe30ed4b4439629b4d6215153f7fc89 | 206 | atom-tasks | Apache License 2.0 |
app/src/main/java/com/example/clubdeportivo/screens/LoginScreen.kt | tiago-appdev | 803,323,597 | false | {"Kotlin": 117688} | package com.example.clubdeportivo.screens
import android.widget.Toast
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Arrangement
import androidx.co... | 0 | Kotlin | 1 | 0 | aac165d58140d48196e925361faa92aad608c9dc | 10,565 | club-deportivo-android | MIT License |
app/src/main/java/com/example/photosapp/ChangePasswordFragment.kt | aav-98 | 796,190,792 | false | {"Kotlin": 104579} | package com.example.photosapp
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.EditorInfo
import a... | 0 | Kotlin | 0 | 0 | 7ed803d62db552ae8ba07b90e1b9b214b39d5746 | 4,604 | PhotoTaggingApp | MIT License |
core/src/commonMain/kotlin/net/orandja/ktm/composition/render/PartialRenderer.kt | L-Briand | 648,186,850 | false | {"Kotlin": 100678} | package net.orandja.ktm.composition.render
import net.orandja.ktm.base.MDocument
import net.orandja.ktm.base.MPool
import net.orandja.ktm.base.NodeContext
class PartialRenderer(private val spaces: String) : Renderer() {
override fun render(
document: MDocument,
context: NodeContext,
pool: ... | 0 | Kotlin | 0 | 3 | ac72f8b1283b2e2dc14b5e356839ce3bc3ced67b | 513 | KTM | MIT License |
subprojects/logger/logger/src/main/kotlin/com/avito/logger/handler/LoggingHandler.kt | v-rodionov | 386,629,124 | true | {"Kotlin": 3038448, "HTML": 121161, "Shell": 17508, "Python": 13778, "Makefile": 11144, "Dockerfile": 6353} | package com.avito.logger.handler
import com.avito.logger.LogLevel
import java.io.Serializable
public interface LoggingHandler : Serializable {
public fun write(level: LogLevel, message: String, error: Throwable? = null)
}
| 0 | Kotlin | 0 | 0 | 477e8b907e8d57c0ea9c764d31cd1788b37a52dd | 229 | avito-android | MIT License |
samples/android/src/main/java/cafe/adriel/voyager/sample/hiltIntegration/HiltMainActivity.kt | adrielcafe | 387,613,592 | false | null | package cafe.adriel.voyager.sample.hiltIntegration
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import cafe.adriel.voyager.navigator.Navigator
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
class HiltMainActivity : ComponentActivity()... | 31 | Kotlin | 39 | 945 | d7932b28cf8c2545fcd52c3883467a648f9d2888 | 504 | voyager | MIT License |
di/src/main/java/com/github/satoshun/example/feature/di/DiBuilder.kt | satoshun-android-example | 163,491,538 | false | null | package com.github.satoshun.example.feature.di
import com.github.satoshun.example.feature.sub1.Sub1Builder
import dagger.Module
@Module(
includes = [
Sub1Builder::class
]
)
interface DiBuilder
| 0 | Kotlin | 0 | 1 | ddb3c59d271bea70eae27ad40d00fccbcf52f303 | 203 | MultiActivityRouterExample | Apache License 2.0 |
src/main/kotlin/pl/pjagielski/punkt/melody/Chord.kt | MarcinMoskala | 294,188,707 | false | {"Gradle": 1, "Gradle Kotlin DSL": 1, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Kotlin": 41, "Java": 1, "SuperCollider": 2, "YAML": 1} | package pl.pjagielski.punkt.melody
sealed class Chord(
val degrees: List<Int>
) {
constructor(vararg degrees: Int) : this(degrees.toList())
object I : Chord( 0 , 2, 4)
object II : Chord( 1 , 3, 5)
object III : Chord( 2 , 4, -1)
object IV : Chord( 3 , 5, 0)
object V : Chord( 4 ,-1,... | 1 | null | 1 | 1 | 960c8f1fecad8d9e1ddf8aa2eee2008044d898d3 | 397 | punkt | Apache License 2.0 |
app/src/main/java/com/islamversity/reyan/service/NotificationDataType.kt | islamversity | 282,670,969 | false | null | package com.islamversity.reyan.service
import java.lang.reflect.GenericArrayType
enum class NotificationDataType(val raw : String) {
GENERIC("none"),
NEW_VERSION("new_version"),
FORCE_UPDATE("force_update");
companion object {
operator fun invoke(raw: String) :NotificationDataType =
... | 15 | Kotlin | 7 | 21 | ab825e4951facd7779e0c3fcb0e68720d68a0fa1 | 435 | Reyan | Apache License 2.0 |
app/src/main/java/com/ict/mito/justodo/ui/point/PointFragment.kt | mitohato14 | 138,590,438 | false | {"Kotlin": 43786, "HTML": 26657, "JavaScript": 5252, "CSS": 2695} | package com.ict.mito.justodo.ui.point
import androidx.fragment.app.Fragment
/**
* Created by mitohato14 on 2019-02-28.
*/
class PointFragment : Fragment() {
} | 40 | Kotlin | 0 | 0 | 64e8b5b5f478dd6af8bbc64a6e673936c2ec565a | 162 | JusToDo | Apache License 2.0 |
src/main/kotlin/com/github/justtofaith/lazy/services/MyProjectService.kt | JustToFaith | 544,997,520 | false | {"Kotlin": 7172} | package com.github.justtofaith.lazy.services
import com.intellij.openapi.project.Project
import com.github.justtofaith.lazy.MyBundle
class MyProjectService(project: Project) {
init {
println(MyBundle.message("projectService", project.name))
System.getenv("CI")
?: TODO("Don't forget t... | 0 | Kotlin | 0 | 0 | 80e8f2337f26844ba5e35816d2abec72e667d635 | 435 | lazy | Apache License 2.0 |
android/src/main/java/deckyfx/reactnative/printer/escposprinter/connection/tcp/TcpConnection.kt | deckyfx | 663,502,538 | false | null | package deckyfx.reactnative.printer.escposprinter.connection.tcp
import deckyfx.reactnative.printer.escposprinter.connection.DeviceConnection
import deckyfx.reactnative.printer.escposprinter.exceptions.EscPosConnectionException
import java.io.IOException
import java.net.InetAddress
import java.net.InetSocketAddress
im... | 0 | Kotlin | 0 | 0 | 80a065c7f4ce3f79d12fe864ba7102568de91a4d | 4,019 | react-native-printer | MIT License |
app/src/main/java/com/example/test/simplexml/mapper/ShortMapper.kt | sangbook96 | 298,768,137 | false | null | package com.example.test.simplexml.mapper
import org.xmlpull.v1.XmlPullParser
open class ShortMapper: XmlMapper<Short>() {
override fun parse(parser: XmlPullParser): Short? {
return parser.text.toShort();
}
} | 0 | Kotlin | 0 | 0 | a1bbfa0521e5031677fbab3c70d5c91551e514de | 226 | parsexml | Apache License 2.0 |
app/src/main/java/com/example/practice/adapters/OnItemClickListener.kt | MauHylian | 338,687,610 | false | null | package com.example.practice.adapters
import org.json.JSONObject
interface OnItemClickListener {
/**
* On item click
* @param item
*/
fun onItemClick(item: JSONObject)
} | 0 | Kotlin | 0 | 0 | a96ea0c5c869178a4a53f3b8272354c80318aa04 | 194 | vinyl-companion | MIT License |
src/main/kotlin/one/oktw/galaxy/internal/enums/SecurityLevel.kt | koru1130 | 119,349,323 | true | {"Kotlin": 32224} | package one.oktw.galaxy.internal.enums
enum class SecurityLevel {
MEMBER,
VISIT,
PUBLIC;
}
| 0 | Kotlin | 0 | 0 | 6566ddc2e26663c336374a5a50a638d0a5fd643d | 104 | oktw-galaxy | MIT License |
fluentcore/src/main/java/com/mcreater/fxfluent/controls/value/StateMap.kt | Jack253-png | 634,061,667 | false | {"Kotlin": 214452, "Groovy": 15797, "C": 10703, "CSS": 6681, "Batchfile": 318, "PowerShell": 312, "Python": 158, "C++": 20} | package com.mcreater.fxfluent.controls.value
import com.mcreater.fxfluent.brush.AbstractColorBrush
import com.mcreater.fxfluent.controls.state.StateType
import com.mcreater.fxfluent.xaml.ResourceDict
import java.util.function.Function
open class StateMap : HashMap<StateType?, Function<ResourceDict?, AbstractColorBru... | 0 | Kotlin | 0 | 1 | 93dc9c426aff1da4688108fbb3e1fa1ff823ed07 | 328 | fxfluent | MIT License |
examples/android/src/main/java/com/dropbox/core/examples/android/internal/api/DropboxCredentialUtil.kt | devPalacio | 523,938,851 | true | {"Java Properties": 4, "Markdown": 6, "Gradle": 17, "Shell": 7, "Text": 2, "Git Attributes": 1, "Batchfile": 2, "Ignore List": 14, "Git Config": 1, "Java": 146, "JSON": 9, "Proguard": 3, "Python": 2, "YAML": 3, "XML": 16, "Kotlin": 11} | package com.dropbox.core.examples.android.internal.api
import android.content.Context
import android.content.SharedPreferences
import androidx.appcompat.app.AppCompatActivity
import com.dropbox.core.android.Auth
import com.dropbox.core.oauth.DbxCredential
class DropboxCredentialUtil(appContext: Context) {
private... | 15 | Java | 0 | 0 | 897dfc9ab68d83e9f09ee3de756483a90992d176 | 1,589 | dropbox-sdk-java | MIT License |
clients/kotlin-spring/generated/src/main/kotlin/org/openapitools/model/ItemBatchRecord.kt | oapicf | 489,369,143 | false | {"Markdown": 13009, "YAML": 64, "Text": 6, "Ignore List": 43, "JSON": 688, "Makefile": 2, "JavaScript": 2261, "F#": 1305, "XML": 1120, "Shell": 44, "Batchfile": 10, "Scala": 4677, "INI": 23, "Dockerfile": 14, "Maven POM": 22, "Java": 13384, "Emacs Lisp": 1, "Haskell": 75, "Swift": 551, "Ruby": 1149, "Cabal Config": 2, ... | package org.openapitools.model
import java.util.Objects
import com.fasterxml.jackson.annotation.JsonProperty
import org.openapitools.model.ItemAttributes
import org.openapitools.model.ItemCreateBatchRecord
import org.openapitools.model.ItemDeleteBatchRecord
import org.openapitools.model.ItemDeleteDiscontinuedBatchReco... | 0 | Java | 0 | 2 | dcd328f1e62119774fd8ddbb6e4bad6d7878e898 | 2,459 | pinterest-sdk | MIT License |
app/src/main/java/com/vinilazzeri/projetowhatsappfirebase/fragments/ChatFragment.kt | vinilazzeri | 835,359,305 | false | {"Kotlin": 43792} | package com.vinilazzeri.projetowhatsappfirebase.fragments
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.DividerItemDecorat... | 0 | Kotlin | 0 | 0 | 07e409da8368c799de5c2a130b251553f0fcc9fd | 3,793 | whatsapp-firebase | MIT License |
runners/docker/src/test/kotlin/io/microkt/kontainers/docker/runner/DockerKontainerRunnerTest.kt | microkt | 464,678,346 | false | {"Kotlin": 153658} | package io.microkt.kontainers.docker.runner
import io.microkt.kontainers.docker.client.DockerFacade
import io.microkt.kontainers.domain.KontainerSpec
import io.microkt.kontainers.domain.KontainerSpecResources
import io.microkt.kontainers.domain.MB
import io.mockk.coEvery
import io.mockk.coVerify
import io.mockk.confir... | 3 | Kotlin | 0 | 2 | 1bac86c920f233bd92f26a0cff62222f4e146e5b | 2,308 | kontainers | Apache License 2.0 |
app/src/main/java/com/dokja/mizumi/presentation/history/HistoryScreen.kt | shrimpyvongue | 761,620,637 | false | {"Kotlin": 378034} | package com.dokja.mizumi.presentation.history
import androidx.compose.runtime.Composable
import androidx.hilt.navigation.compose.hiltViewModel
import com.dokja.mizumi.presentation.common.screens.EmptyScreen
@Composable
fun HistoryScreen() {
val viewModel: HistoryViewModel = hiltViewModel()
EmptyScreen(messag... | 0 | Kotlin | 1 | 1 | eabf20688848d6896430de4e271bec46fe6a0b98 | 350 | Mizumi | MIT License |
src/main/kotlin/io/github/fourlastor/modma/mods/ModsScreen.kt | fourlastor | 382,595,066 | false | null | package io.github.fourlastor.modma.mods
import androidx.compose.runtime.Composable
@Composable
fun ModsScreen() {
ModListScreen()
}
| 0 | Kotlin | 0 | 1 | 2dcfbde201d4be81ff02b042079b09912c8c7aa9 | 138 | modma | MIT License |
mmastripecardscan/src/main/java/com/mademediacorp/mmastripecardscan/cardimageverification/exception/StripeNetworkException.kt | egarroMADE | 661,099,433 | false | null | package com.mademediacorp.mmastripecardscan.cardimageverification.exception
class StripeNetworkException(message: String) : Exception(message)
| 0 | Kotlin | 0 | 0 | 5eafd70614c6c1f15082b78688058eae1232f8cb | 144 | MMAStripeCardScan | MIT License |
bot/src/main/kotlin/command/AutoComplete.kt | mikbot | 511,133,398 | false | null | package dev.nycode.regenbogenice.command
const val autoCompleteCode = """
if (autoCompleteCallback == null) {
autoComplete { with(converter) { onAutoComplete() } }
}
"""
| 8 | Kotlin | 0 | 7 | 65738ee9202382834d3accbe27a24c8fa3d7d63f | 193 | regenbogen-ice | MIT License |
app/src/main/java/com/oreyo/foodie/ui/detail/order/DetailOrderActivity.kt | KylixEza | 469,113,697 | false | null | package com.oreyo.foodie.ui.detail.order
import android.content.Intent
import androidx.lifecycle.lifecycleScope
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.bitmap.CenterCrop
import com.bumptech.glide.load.resource.bitmap.CenterInside
import com.bumptech.glide.load.resource.bitmap.RoundedCor... | 0 | Kotlin | 0 | 0 | 8195cf88cd07bdf25f87f5a3c71ea0782e3c5d8b | 4,297 | Foodie | MIT License |
rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/explorer/UnityExplorer.kt | jiadong-deng | 129,758,317 | true | {"C#": 1183093, "Kotlin": 140565, "ShaderLab": 70503, "Lex": 17789, "HLSL": 7370, "GLSL": 7015, "Java": 5237, "PowerShell": 2195, "CSS": 1370, "Batchfile": 216, "Shell": 140, "JavaScript": 68} | package com.jetbrains.rider.plugins.unity.explorer
import com.intellij.ide.projectView.ProjectView
import com.intellij.ide.util.treeView.AbstractTreeNode
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.DataKey
import com.intellij.openapi.actionSystem.DefaultActionGroup
i... | 0 | C# | 0 | 0 | 1e44cbde8604b385d94fe7d63a67d461e0c1930f | 4,636 | resharper-unity | Apache License 2.0 |
varp-core/src/main/kotlin/net/voxelpi/varp/warp/Warp.kt | VoxelPi | 869,165,536 | false | {"Kotlin": 262928, "Java": 2907} | package net.voxelpi.varp.warp
import net.voxelpi.varp.DuplicatesStrategy
import net.voxelpi.varp.exception.tree.WarpAlreadyExistsException
import net.voxelpi.varp.warp.path.NodeParentPath
import net.voxelpi.varp.warp.path.WarpPath
import net.voxelpi.varp.warp.state.WarpState
public class Warp internal constructor(
... | 0 | Kotlin | 0 | 0 | f9c616f84996d87363d37ba64eac4f89b9a32bd6 | 3,012 | Varp | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.