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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
feature/settings/src/main/kotlin/com/githukudenis/comlib/feature/settings/components/AppearanceItem.kt | DenisGithuku | 707,847,935 | false | {"Kotlin": 702830, "Java": 307129, "HTML": 145488, "Roff": 24734, "JavaScript": 10504, "CSS": 7560} |
/*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, soft... | 2 | Kotlin | 1 | 0 | f7cac6483c4d847fafd2777946798f683cf29533 | 3,038 | comlib-android-client | Apache License 2.0 |
modules/tak/compose/icons/src/main/kotlin/dev/jonpoulton/alakazam/tak/compose/icons/raptorx/DefaultHeadingTilt.kt | jonapoul | 375,762,483 | false | {"Kotlin": 2898393, "Shell": 670} | package dev.jonpoulton.alakazam.tak.compose.icons.raptorx
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJo... | 0 | Kotlin | 0 | 0 | 7769263ac0c6f0976facff732cf533dfd7ec44a3 | 7,262 | alakazam | Apache License 2.0 |
src/com/blackoutburst/wally/core/commands/DisplayPreference.kt | Blackoutburst | 296,468,102 | false | null | package com.blackoutburst.wally.core.commands
enum class DisplayPreference {
TEXT,
EMBED,
CANVAS
} | 0 | Kotlin | 4 | 4 | 9c075ab0c5dc8754b01d202055ca54a64473303c | 111 | Wally | Do What The F*ck You Want To Public License |
src/jsMain/kotlin/baaahs/app/ui/AppGlSharingContext.kt | baaahs | 174,897,412 | false | {"Kotlin": 4817609, "C": 1529197, "C++": 661363, "GLSL": 412779, "JavaScript": 61944, "HTML": 56277, "CMake": 30499, "CSS": 4340, "Shell": 2381, "Python": 1450} | package baaahs.app.ui
import baaahs.device.FixtureType
import baaahs.gl.GlBase
import baaahs.gl.SharedGlContext
import baaahs.gl.render.ComponentRenderEngine
import baaahs.gl.render.pickResultDeliveryStrategy
import js.objects.jso
import react.createContext
/**
* WebGL only allows up to 16 contexts per page, so we n... | 113 | Kotlin | 13 | 40 | e895b295f951668acdce0371b791e0316a633da6 | 1,016 | sparklemotion | MIT License |
src/jsMain/kotlin/baaahs/app/ui/AppGlSharingContext.kt | baaahs | 174,897,412 | false | {"Kotlin": 4817609, "C": 1529197, "C++": 661363, "GLSL": 412779, "JavaScript": 61944, "HTML": 56277, "CMake": 30499, "CSS": 4340, "Shell": 2381, "Python": 1450} | package baaahs.app.ui
import baaahs.device.FixtureType
import baaahs.gl.GlBase
import baaahs.gl.SharedGlContext
import baaahs.gl.render.ComponentRenderEngine
import baaahs.gl.render.pickResultDeliveryStrategy
import js.objects.jso
import react.createContext
/**
* WebGL only allows up to 16 contexts per page, so we n... | 113 | Kotlin | 13 | 40 | e895b295f951668acdce0371b791e0316a633da6 | 1,016 | sparklemotion | MIT License |
app/src/main/java/com/shicheeng/copymanga/data/webbookshelf/WebBookshelfItem.kt | shizheng233 | 475,870,275 | false | {"Kotlin": 796959, "Java": 9136} | package com.shicheeng.copymanga.data.webbookshelf
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import androidx.annotation.Keep
@Keep
@JsonClass(generateAdapter = true)
data class WebBookshelfItem(
@Json(name = "b_folder")
val bFolder: Boolean,
@Json(name = "comic")
val comic: Co... | 15 | Kotlin | 0 | 278 | 6057a27ca3d74daf5947b6c1c3974071cd9d186c | 533 | CopyMangaJava | MIT License |
presentation/src/main/java/org/lotka/xenonx/presentation/screen/activity/ActivityViewModel.kt | armanqanih | 841,268,386 | false | {"Kotlin": 224632} | package org.lotka.xenonx.presentation.screen.activity
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import okhttp3.internal.format
import java.text.SimpleDateFormat
import java.util.Locale
import javax.inject.Inject
import kotlin.reflect.jvm.internal.impl.descriptors.Visibiliti... | 0 | Kotlin | 0 | 0 | 5d75fbc8d7d6605ce7c1ab90839b40e7288f3561 | 413 | Instgram_App | Apache License 2.0 |
plot-base-portable/src/commonMain/kotlin/jetbrains/datalore/plot/base/stat/BinStatBuilder.kt | tchigher | 311,167,552 | true | {"Kotlin": 4345032, "Python": 257583, "CSS": 1842, "C": 1638, "Shell": 1590, "JavaScript": 1584} | /*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.plot.base.stat
import jetbrains.datalore.plot.base.Stat
class BinStatBuilder {
private var myBinCount = DEF_BIN_COUNT
private var myBinWi... | 0 | null | 0 | 0 | f6fd07e9f44c789206a720dcf213d0202392976f | 1,352 | lets-plot | MIT License |
trackeroo-core/src/main/java/ru/roansa/trackeroo_core/logging/transform/TimeTransformer.kt | crazytosser00 | 585,481,414 | false | {"Kotlin": 74545, "Java": 171} | package ru.roansa.trackeroo_core.logging.transform
import ru.roansa.trackeroo_core.logging.LogEntity
import java.text.SimpleDateFormat
import java.time.Instant
import java.util.Date
import java.util.Locale
/**
* @param locale - using for date formatting Locale.ENGLISH by default
*/
class TimeTransformer(locale: Loc... | 0 | Kotlin | 0 | 0 | 02d232829cf74e895ce95c82e7fbf549932f673a | 596 | trackeroo | Apache License 2.0 |
src/main/kotlin/al132/alchemistry/items/ItemBlockChemicalCombiner.kt | PlasGen | 172,050,722 | true | {"Kotlin": 234737} | package al132.alchemistry.items
import al132.alchemistry.ConfigHandler
import al132.alchemistry.compat.jei.Translator
import net.minecraft.block.Block
import net.minecraft.client.util.ITooltipFlag
import net.minecraft.item.ItemBlock
import net.minecraft.item.ItemStack
import net.minecraft.world.World
class ItemBlockC... | 0 | Kotlin | 0 | 0 | 1bae828c7874f2a63e7c4d890cf36b3864801e0c | 674 | alchemistry | MIT License |
mvp/src/main/java/com/snzflash/mvp/presenters/PresenterBase.kt | fmaxx | 113,942,920 | false | null | package com.snzflash.mvp.presenters
import com.snzflash.mvp.interfaces.IPresenter
import com.snzflash.mvp.interfaces.IView
/**
* Created by maxim on 12.12.2017.
*/
abstract class PresenterBase<V: IView>(protected var view: V? = null): IPresenter<V> {
override fun onViewCreated(view: V) {
this.view = vi... | 1 | null | 1 | 1 | 5458d17ed19e3b90824e69f3bdb6da9fea40521f | 505 | android-mvp-kotlin | MIT License |
app/src/main/java/com/fortie40/wordsfiltering/MainActivity.kt | elijahmurimi40 | 273,562,071 | false | null | package com.fortie40.wordsfiltering
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.View
import android.view.inputmethod.EditorInfo
import android.widget.SearchView
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
import... | 0 | Kotlin | 0 | 1 | 5db6182e2f4dbb12601ae9ed5356865ced5dac1f | 3,294 | Words-Filtering-SearchView-Kotlin | MIT License |
navigation/src/main/kotlin/com/amarcolini/joos/control/FeedforwardCoefficients.kt | 19279-M1C2 | 477,597,033 | true | {"Kotlin": 541606, "Java": 1396} | package com.amarcolini.joos.control
import com.amarcolini.joos.kinematics.Kinematics
/**
* Feedforward gains used by [Kinematics.calculateMotorFeedforward].
* @param kV velocity gain
* @param kA acceleration gain
* @param kStatic additive constant
*/
data class FeedforwardCoefficients @JvmOverloads constructor(
... | 0 | Kotlin | 0 | 0 | 9e65a6ac51025627c837e697fe648ab4f95c5169 | 433 | joos | MIT License |
src/main/kotlin/pl/wendigo/chrome/domain/tracing/TracingDomain.kt | yqy7 | 166,148,335 | true | {"Kotlin": 661039, "Go": 11452, "HTML": 6118, "Shell": 1510, "Groovy": 824} | package pl.wendigo.chrome.domain.tracing
/**
* TracingDomain represents remote debugger protocol domain.
*/
class TracingDomain internal constructor(private val connectionRemote : pl.wendigo.chrome.DebuggerProtocol) {
/**
* Stop trace events collection.
*/
fun end() : io.reactivex.Single<pl.wendigo... | 0 | Kotlin | 0 | 0 | be4e679384018724e133d3f8021bc1d1fa0c86f0 | 7,422 | chrome-reactive-kotlin | Apache License 2.0 |
ok-marketplace-be-repository-dynamodb/src/main/kotlin/ru/otus/otuskotlin/marketplace/backend/repository/dynamodb/dto/TechDetDtoDynamoDB.kt | otuskotlin | 323,966,359 | false | null | package ru.otus.otuskotlin.marketplace.backend.repository.dynamodb.dto
import ru.otus.otuskotlin.marketplace.common.backend.models.MpTechDetIdModel
import ru.otus.otuskotlin.marketplace.common.backend.models.MpTechDetModel
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbAttribute
import soft... | 0 | Kotlin | 0 | 1 | 5f05fe658504dfa5d7300e3f0f523d250ff6ce31 | 2,016 | 202012-otuskotlin-marketplace | MIT License |
app/src/main/java/com/sethchhim/kuboo_client/data/task/reader/Task_ReaderSingleToDual.kt | befora | 137,512,422 | false | null | package com.sethchhim.kuboo_client.data.task.reader
import android.arch.lifecycle.MutableLiveData
import com.sethchhim.kuboo_client.Constants.KEY_SINGLE
import com.sethchhim.kuboo_client.data.model.PageUrl
import com.sethchhim.kuboo_client.data.model.Progress
import com.sethchhim.kuboo_client.data.task.base.Task_Local... | 1 | null | 39 | 81 | 33e456344172eab96b136e30130c4125096f253d | 1,544 | Kuboo | Apache License 2.0 |
library/process/src/nativeTest/kotlin/io/matthewnelson/kmp/process/internal/FdCloseUnitTest.kt | 05nelsonm | 750,560,085 | false | {"Kotlin": 257886} | /*
* Copyright (c) 2024 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 2 | Kotlin | 0 | 3 | 6f1ef71d435f9ea1d34517f1d9506dcfe7aa27c8 | 1,688 | kmp-process | Apache License 2.0 |
paris/src/testDebug/java/com/airbnb/paris/proxies/ViewStyleExtensionsTest.kt | airbnb | 114,683,464 | false | null | package com.airbnb.paris.proxies
import android.content.Context
import android.view.View
import android.view.ViewStyleApplier
import com.airbnb.paris.R
import com.airbnb.paris.extensions.addDefault
import com.airbnb.paris.extensions.style
import com.airbnb.paris.extensions.viewStyle
import com.airbnb.paris.extensions.... | 56 | null | 91 | 1,897 | d8b5edbc56253bcdd0d0c57930d2e91113dd0f37 | 2,520 | paris | Apache License 2.0 |
src/main/kotlin/ru/inforion/lab403/swarm/io/BufferOutputStream.kt | xthebat | 315,958,386 | true | {"Kotlin": 47097} | package ru.inforion.lab403.swarm.io
import java.io.OutputStream
import java.nio.ByteBuffer
internal class BufferOutputStream(size: Int, directed: Boolean) : OutputStream() {
init {
require(size > 0) { "Negative initial size: $size" }
}
val buffer: ByteBuffer = if (directed) ByteBuffer.allocateDir... | 0 | Kotlin | 1 | 0 | 60693cf1bddaa3914009539a92eb9c4a551acb8f | 433 | swarm | MIT License |
light/src/test/kotlin/net/kotlinx/domain/ddb/repeatTask/RepeatTaskRepositoryTest.kt | mypojo | 565,799,715 | false | {"Kotlin": 1413758, "Jupyter Notebook": 13439, "Java": 9531} | package net.kotlinx.domain.ddb.repeatTask
import io.kotest.matchers.shouldBe
import net.kotlinx.domain.ddb.DdbBasic
import net.kotlinx.domain.ddb.DdbBasicGsi
import net.kotlinx.domain.ddb.DdbBasicRepository
import net.kotlinx.json.gson.GsonData
import net.kotlinx.kotest.KotestUtil
import net.kotlinx.kotest.initTest
im... | 0 | Kotlin | 0 | 1 | 84877b40d5007b3630c6222e1641799d7ab20d87 | 4,788 | kx_kotlin_support | MIT License |
app/src/main/kotlin/com/mohsenoid/themoviedb/presentation/view/trending/movie/TrendingMovieContract.kt | bhagya93dev | 458,115,589 | true | {"Kotlin": 88652} | package com.mohsenoid.themoviedb.presentation.view.trending.movie
import com.mohsenoid.themoviedb.presentation.base.BasePresenter
import com.mohsenoid.themoviedb.presentation.base.BaseView
import com.mohsenoid.themoviedb.presentation.model.MovieModel
interface TrendingMovieContract {
interface View : BaseView {
... | 0 | null | 0 | 0 | e608317a2be1a2170563436542a9aa5d748ef969 | 472 | TheMovieDb | Apache License 2.0 |
src/main/kotlin/com/approw/core/BaseClient.kt | Approw | 383,867,335 | false | {"Gradle": 3, "INI": 1, "Text": 1, "Ignore List": 1, "Markdown": 1, "Java": 13, "Kotlin": 38} | package com.approw.core
import com.approw.core.graphql.GraphQLCall
import com.approw.core.graphql.GraphQLRequest
import com.approw.core.graphql.GraphQLResponse
import com.approw.core.http.HttpCall
import com.approw.core.types.AuthMethodEnum
import com.approw.core.types.ProtocolEnum
import com.google.gson.GsonBuilder
i... | 1 | null | 1 | 1 | 451f6fcab834619a28a68f0d82f65ca465379d6b | 9,207 | Approw-Java-SDK | MIT License |
src/jvmTest/kotlin/com/jillesvangurp/jsondsl/readme/ReadmeGenerationTest.kt | jillesvangurp | 808,433,647 | false | {"Kotlin": 11662, "Shell": 417} | package com.jillesvangurp.jsondsl.readme
import com.jillesvangurp.kotlin4example.SourceRepository
import com.jillesvangurp.serializationext.DEFAULT_JSON
import com.jillesvangurp.serializationext.DEFAULT_PRETTY_JSON
import java.io.File
import kotlin.test.Test
import kotlinx.serialization.Serializable
import kotlinx.ser... | 0 | Kotlin | 0 | 0 | 403539de997f93b88b7b7f51433deac382ccd2f0 | 2,517 | kotlinx-serialization-extensions | MIT License |
api-server/src/main/kotlin/com/companimal/kms/domain/adapter/GetServerKeyAdapter.kt | roseoutz | 609,769,119 | false | null | package com.companimal.kms.domain.adapter
import com.companimal.kms.domain.dto.ServerKey
import com.companimal.kms.domain.persistence.ServerKeyReader
import com.companimal.kms.domain.port.GetServerKeyPort
import org.springframework.stereotype.Service
@Service
class GetServerKeyAdapter(
private val serverKeyReader... | 0 | Kotlin | 0 | 0 | e065faa6eedfc95d724cc00dfad3f7ae3488d241 | 455 | companimal | MIT License |
prime-router/src/main/kotlin/fhirengine/translation/hl7/schema/fhirTransform/FhirTransformSchemaReader.kt | CDCgov | 304,423,150 | false | {"Kotlin": 5417139, "CSS": 3370586, "TypeScript": 1881870, "Java": 1326278, "HCL": 282334, "MDX": 140844, "PLpgSQL": 77695, "Shell": 69067, "HTML": 68387, "SCSS": 66843, "Smarty": 51325, "RouterOS Script": 17080, "Python": 13724, "Makefile": 8166, "JavaScript": 8003, "Dockerfile": 3127} | package gov.cdc.prime.router.fhirengine.translation.hl7.schema.fhirTransform
import gov.cdc.prime.router.azure.BlobAccess
import gov.cdc.prime.router.fhirengine.translation.hl7.schema.ConfigSchemaReader
/**
* Read a fhirTransform schema [schemaName] from a file given the root [folder].
* @return the validated schem... | 1,458 | Kotlin | 39 | 71 | 81f5d3c284982ccdb7f24f36fc69fdd8fac2a919 | 729 | prime-reportstream | Creative Commons Zero v1.0 Universal |
libs/corda-sdk/src/test/kotlin/net/corda/sdk/preinstall/ReportTest.kt | corda | 346,070,752 | false | {"Kotlin": 20585393, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.sdk.preinstall
import net.corda.sdk.preinstall.report.Report
import net.corda.sdk.preinstall.report.ReportEntry
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
class ReportTest {
@Test
fun testPassingReport() {
val report = Report()
rep... | 14 | Kotlin | 27 | 69 | 0766222eb6284c01ba321633e12b70f1a93ca04e | 1,060 | corda-runtime-os | Apache License 2.0 |
app/src/main/java/com/example/notetaker/plcoding/cleanarchitecturenoteapp/feature_note/presentation/notes/components/NotesState.kt | Jaswanth-Pillella | 657,230,465 | false | null | package com.example.notetaker.plcoding.cleanarchitecturenoteapp.feature_note.presentation.notes.components
import com.example.notetaker.plcoding.cleanarchitecturenoteapp.feature_note.domain.model.Note
import com.example.notetaker.plcoding.cleanarchitecturenoteapp.feature_note.domain.util.NoteOrder
import com.example.n... | 0 | Kotlin | 2 | 2 | ef9b6e6ba451f59bd7234600f5fa77b45b50e13f | 579 | Note_Taker | MIT License |
app/src/main/java/com/example/fitnessbag/presentation/doing_workout/doing_exerise/AbstractDoingExerciseStrategy.kt | Dalvent | 474,658,573 | false | {"Kotlin": 124855} | package com.example.fitnessbag.presentation.doing_workout.doing_exerise
import com.example.fitnessbag.domain.models.Exercise
import com.example.fitnessbag.presentation.doing_workout.DoingWorkoutProgress
interface DoingExerciseStrategy {
fun pressedSpecialButton()
}
abstract class AbstractDoingExerciseStrategy<TE... | 0 | Kotlin | 0 | 0 | df3cdb012aab7cebbc1868fd827a7e7e6c687da2 | 546 | FitnessBag | MIT License |
examples/input/src/main/kotlin/main.kt | varabyte | 397,769,020 | false | null | import com.varabyte.konsole.foundation.input.Completions
import com.varabyte.konsole.foundation.input.input
import com.varabyte.konsole.foundation.input.onInputEntered
import com.varabyte.konsole.foundation.input.runUntilInputEntered
import com.varabyte.konsole.foundation.konsoleApp
import com.varabyte.konsole.foundati... | 30 | Kotlin | 3 | 59 | af08aaba5a68eb168b20fad0ffd0cc87d8a11bf8 | 830 | konsole | Apache License 2.0 |
io/http/src/main/kotlin/io/bluetape4k/http/hc5/http/Http1Config.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.http.hc5.http
import org.apache.hc.core5.http.config.Http1Config
inline fun http1Config(initializer: Http1Config.Builder.() -> Unit): Http1Config {
return Http1Config.custom().apply(initializer).build()
}
inline fun http1Config(
source: Http1Config,
initlializer: Http1Config.Builder... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 472 | bluetape4k | MIT License |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/filled/SquareF9.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.tabler.tabler.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.S... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 4,409 | compose-icon-collections | MIT License |
packages/graalvm/src/main/kotlin/elide/runtime/intrinsics/js/node/stream/Writable.kt | elide-dev | 506,113,888 | false | {"Kotlin": 4156801, "Rust": 130170, "Java": 51233, "Python": 7851, "JavaScript": 6037, "Ruby": 2474, "C": 1926, "RenderScript": 578, "Shell": 160, "Pkl": 102, "TypeScript": 78, "Swift": 23} | /*
* Copyright (c) 2024 Elide Technologies, Inc.
*
* Licensed under the MIT license (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://opensource.org/license/mit/
*
* Unless required by applicable law or agreed to in writing,... | 39 | Kotlin | 16 | 97 | 652036fb4e8394e8ad1aced2f4bbfaa9e00a5181 | 19,286 | elide | MIT License |
subprojects/android-test/ui-testing-core/src/main/kotlin/com/avito/android/test/matcher/IsRefreshingMatcher.kt | avito-tech | 230,265,582 | false | null | package com.avito.android.test.matcher
import android.view.View
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import androidx.test.espresso.matcher.BoundedMatcher
import org.hamcrest.Description
import org.hamcrest.Matcher
internal class IsRefreshingMatcher(val matcher: Matcher<Boolean>) :
BoundedM... | 10 | null | 50 | 414 | bc94abf5cbac32ac249a653457644a83b4b715bb | 682 | avito-android | MIT License |
media/audio-ui/src/main/java/com/google/android/horologist/audio/ui/components/animated/AnimatedSetVolumeButton.kt | google | 451,563,714 | false | null | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 71 | null | 93 | 565 | bde87db14f63338904550fc1827d0141ebe24d9a | 3,273 | horologist | Apache License 2.0 |
app/src/main/java/com/shopapp/ui/account/di/AuthModule.kt | rubygarage | 105,554,295 | false | null | package com.shopapp.ui.account.di
import com.shopapp.domain.interactor.account.*
import com.shopapp.domain.validator.FieldValidator
import com.shopapp.ui.account.contract.*
import dagger.Module
import dagger.Provides
@Module
class AuthModule {
@Provides
fun provideSignUpPresenter(formValidator: FieldValidato... | 6 | Kotlin | 100 | 148 | 133b0060626a064b437683c3f0182d2bb3066bdb | 2,069 | shopapp-android | Apache License 2.0 |
app/src/main/java/com/example/android/architecture/blueprints/beetv/modules/splash/SplashActivity.kt | nnphuong9718 | 346,229,636 | false | null | package com.example.android.architecture.blueprints.beetv.modules.splash
import android.Manifest
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.content.pm.PackageInfo
import android.content.pm.PackageManager
import android.location.Address
import andr... | 0 | Kotlin | 0 | 0 | d29bc55898d507807ba1d33507cdc4481cb82399 | 11,738 | beetv | Apache License 2.0 |
template-vertx-basic/src/test/kotlin/cc/chordflower/template/basic/application/DiscoveryListenerTest.kt | fossabot | 340,571,858 | false | null | package cc.chordflower.template.basic.application
import cc.chordflower.template.basic.application.config.Configuration
import cc.chordflower.template.basic.application.events.Event
import cc.chordflower.template.basic.application.utils.ContextObjects
import com.winterbe.expekt.expect
import io.kotest.core.spec.style.... | 0 | Kotlin | 0 | 1 | 54a32cb686105265079f1b8d68a75993edffce4b | 3,917 | template-3 | Apache License 2.0 |
samples/sandbox/src/main/kotlin/com/bumble/appyx/sandbox/client/interop/parent/routing/RibsParentChildBuilders.kt | bumble-tech | 493,334,393 | false | null | package com.bumble.appyx.sandbox.client.interop.parent.routing
import com.badoo.ribs.builder.Builder
import com.badoo.ribs.core.Rib
import com.bumble.appyx.core.builder.SimpleBuilder
import com.bumble.appyx.sandbox.client.container.ContainerBuilder
import com.bumble.appyx.sandbox.client.interop.child.RibsChildBuilder
... | 68 | Kotlin | 45 | 754 | 1c13ab49fb3e2eb0bcd192332d597f8c05d3f6a9 | 655 | appyx | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/twotone/Card.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.linear
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 | 2,964 | VuesaxIcons | MIT License |
src/test/kotlin/com/nils/marsrover/utils/OrientationUtilsUnitTest.kt | senoritadeveloper01 | 440,144,383 | false | {"Kotlin": 43033} | package com.nils.marsrover.utils
import com.nils.marsrover.model.type.OrientationType
import org.junit.Assert
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.test.context.junit4.SpringRunner
@RunWith(SpringRunner::class)
internal class OrientationUtilsUnitTest {
@Test
fun tes... | 0 | Kotlin | 0 | 0 | 671bc6ecbf0c159059a0b15d98a51e9d75577c29 | 2,431 | mars-rover-kotlin | MIT License |
ktlint-ruleset-standard/src/main/kotlin/com/pinterest/ktlint/ruleset/standard/NoConsecutiveBlankLinesRule.kt | JoeyTeng | 314,526,988 | true | {"Kotlin": 672799, "Ruby": 26332, "Python": 17637, "Shell": 3079} | package com.pinterest.ktlint.ruleset.standard
import com.pinterest.ktlint.core.Rule
import com.pinterest.ktlint.core.ast.nextLeaf
import org.jetbrains.kotlin.com.intellij.lang.ASTNode
import org.jetbrains.kotlin.com.intellij.psi.PsiWhiteSpace
import org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.LeafPsiElement... | 0 | null | 0 | 1 | 8e61aedbd0e5f3888ad4884af2741f4e2482a671 | 1,108 | ktlint | MIT License |
lib_base/src/main/java/com/example/lib_base/widget/SlideImageView.kt | TReturn | 399,864,608 | false | null | package com.example.lib_base.widget
import android.animation.ValueAnimator
import android.annotation.SuppressLint
import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import android.widget.LinearLayout
import com.example.lib_base.utils.qmui.QMUIDispla... | 0 | Kotlin | 1 | 1 | 2248dd2cb26c3e2d35530a5349f3f42a27f9fc86 | 5,035 | BaseApp | Apache License 2.0 |
src/main/kotlin/com/robotutor/iot/widgets/invoice/controllers/InvoiceController.kt | IOT-echo-system | 768,195,181 | false | {"Kotlin": 190037, "HTML": 428, "Shell": 151, "Dockerfile": 130} | package com.robotutor.iot.widgets.invoice.controllers
import com.robotutor.iot.utils.filters.annotations.RequirePolicy
import com.robotutor.iot.utils.models.BoardAuthenticationData
import com.robotutor.iot.utils.models.UserAuthenticationData
import com.robotutor.iot.utils.models.UserBoardAuthenticationData
import com.... | 0 | Kotlin | 0 | 0 | f8f314ba33164725e5f3586dcf7566ae16eaae37 | 5,053 | cloud-backend-service | MIT License |
app/src/main/java/com/aslansoft/deneme/CameraPreview.kt | muminkayaaslan | 729,128,668 | false | {"Kotlin": 184337, "CMake": 1814, "C++": 341} | package com.aslansoft.deneme
import android.annotation.SuppressLint
import androidx.camera.view.LifecycleCameraController
import androidx.camera.view.PreviewView
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.... | 0 | Kotlin | 0 | 0 | 5872b93ef195da4287b7f2a6e1c8d301e195c150 | 1,024 | gdscSocialMedia | MIT License |
app/src/main/java/ru/elron/weather/ui/city/CityEvent.kt | elronsmith | 308,734,188 | false | null | package ru.elron.weather.ui.city
import ru.elron.libcore.base.IEvent
sealed class CityEvent : IEvent {
data class ShowScreenForecast(val city: String): CityEvent()
}
| 0 | Kotlin | 0 | 0 | 4fbced552fd2cb51e0f7dc40a9f2d823f36676f1 | 172 | AppWeather | Apache License 2.0 |
3 Navigation/3.1_Fragment/app/src/main/java/com/example/android/navigation/MainActivity.kt | Android-SrA-2020 | 232,581,558 | false | null | /*
* Copyright 2018, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 0e13169ed36dd0aebf13aa28785e6c81ee211381 | 2,507 | homework-olenastepanova | MIT License |
app/src/main/kotlin/com/habits/app/habit/HabitViewModel.kt | habits-app | 241,181,214 | false | null | package com.habits.app.habit
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import at.florianschuster.control.Controller
import at.florianschuster.control.Mutator
import at.florianschuster.control.Reducer
import at.florianschuster.control.createController
import com.habits.app.Async
impor... | 0 | Kotlin | 0 | 0 | 26056bb9a613650e64c04d88a1bfab7e0842e78b | 1,747 | habits-android | Apache License 2.0 |
app/src/main/java/me/hgj/jetpackmvvm/demo/viewmodel/state/TodoViewModel.kt | mazihao66 | 282,839,778 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 2, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "INI": 1, "Proguard": 2, "XML": 102, "Kotlin": 207, "Java": 10, "JSON": 1} | package me.hgj.jetpackmvvm.demo.viewmodel.state
import me.hgj.jetpackmvvm.base.viewmodel.BaseViewModel
import me.hgj.jetpackmvvm.callback.databind.IntObservableField
import me.hgj.jetpackmvvm.callback.databind.StringObservableField
import me.hgj.jetpackmvvm.demo.data.model.enums.TodoType
/**
* 作者 : hegaojian
* 时间 :... | 1 | null | 1 | 1 | 47290a80ee17c3b8fb2b941261b9e5470ce075cf | 730 | JetpackMvvm | Apache License 2.0 |
collection-utils-core/src/test/java/com/guardanis/collections/adapters/actions/AdapterActionsManagerTests.kt | mattsilber | 48,820,964 | false | {"Java": 93592, "Kotlin": 40943} | package com.guardanis.collections.adapters.actions
import android.os.Build
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.guardanis.collections.adapters.Callback
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.ArgumentMatchers
import org.mockito.Mockito.*
import org.robolectri... | 5 | Java | 1 | 0 | 50853d4ed712d7b406cf51eb632e08834e8975dc | 1,728 | collection-utils | Apache License 2.0 |
src/backend/src/main/kotlin/org/icpclive/service/ServiceRoot.kt | icpc | 447,849,919 | false | null | package org.icpclive.service
import kotlinx.coroutines.CompletableDeferred
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.*
import kotlinx.coroutines.launch
import org.icpclive.api.*
import org.icpclive.cds.ContestDataSource
import org.icpclive.config
import org.icpclive.util.completeOrThrow
i... | 14 | Kotlin | 7 | 25 | 097ca5e9f6dcac7175d7242579a44dde723bd772 | 3,701 | live-v3 | MIT License |
miniapp/src/main/java/com/rakuten/tech/mobile/miniapp/MiniAppDisplay.kt | dineshkv | 254,309,891 | true | {"Kotlin": 100898} | package com.rakuten.tech.mobile.miniapp
import android.view.View
import androidx.lifecycle.LifecycleObserver
/**
* This represents the contract by which the host app can interact with the
* display unit of the mini app.
* This contract complies to Android's [LifecycleObserver] contract, and when made to observe
*... | 0 | null | 0 | 0 | d445176f4cc5823f65b30f2fe49e4307e25dd5d5 | 1,429 | android-miniapp | MIT License |
src/main/java/com/jagrosh/jmusicbot/commands/PauseCmd.kt | JellyBrick | 144,745,076 | true | {"Kotlin": 160880} | /*
* Copyright 2016 <NAME> <<EMAIL>>.
*
* 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... | 0 | Kotlin | 0 | 6 | 746b756aaa84f7fd27174d6cad3239dee402af1f | 1,539 | MusicBot-Kotlin | Apache License 2.0 |
src/test/kotlin/io/aesy/yumme/util/HTTP.kt | aesy | 152,150,112 | false | null | package io.aesy.yumme.util
import org.springframework.boot.test.web.client.TestRestTemplate
import org.springframework.http.HttpMethod
import org.springframework.http.ResponseEntity
object HTTP {
inline fun <reified T> TestRestTemplate.getList(path: String): ResponseEntity<List<T>> =
exchange(path, HttpMe... | 0 | Kotlin | 0 | 0 | 5fa5e0bbd852bd328e61a16f45473adf33159cac | 354 | yumme-server | MIT License |
server/src/main/kotlin/fi/vauhtijuoksu/vauhtijuoksuapi/server/impl/incentivecodes/IncentiveCodeService.kt | Vauhtijuoksu | 394,707,727 | false | null | package fi.vauhtijuoksu.vauhtijuoksuapi.server.impl.incentivecodes
import fi.vauhtijuoksu.vauhtijuoksuapi.database.api.GeneratedIncentiveCodeDatabase
import fi.vauhtijuoksu.vauhtijuoksuapi.database.api.VauhtijuoksuDatabase
import fi.vauhtijuoksu.vauhtijuoksuapi.exceptions.UserError
import fi.vauhtijuoksu.vauhtijuoksua... | 7 | null | 0 | 3 | 177cd5f19794fc3b7fbff8439070762753896168 | 3,097 | vauhtijuoksu-api | MIT License |
idea/testData/codeInsight/outOfBlock/InSuperTypeCallInLambaInBody.kt | JakeWharton | 99,388,807 | false | null | // OUT_OF_CODE_BLOCK: FALSE
open class A(a: () -> Unit)
class B: A({ "1"<caret> }) | 1 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 84 | kotlin | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/frauddetector/CfnDetectorModelPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.frauddetector
import io.cloudshiftdev.awscdkdsl.common.Cd... | 4 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 1,215 | awscdk-dsl-kotlin | Apache License 2.0 |
module_square/src/main/java/com/moyoi/module_square/ui/WxPublicFragment.kt | leo0228 | 392,571,636 | false | {"Gradle": 11, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 10, "Batchfile": 1, "INI": 1, "Markdown": 1, "Proguard": 8, "XML": 108, "Kotlin": 120, "Java": 8, "HTML": 1} | package com.moyoi.module_square.ui
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentStatePagerAdapter
import com.moyoi.library_base.base.BaseDataFragment
import com.moyoi.library_common.bean.TreeBean
import com.moyoi.library_common.databinding... | 1 | null | 1 | 1 | 785cd0feaef8cc82b2e2d1eddf08582ecb2acd04 | 1,700 | Kotlin_WanAndroid | Apache License 2.0 |
domain/coroutines/src/main/java/github/io/wottrich/coroutines/di/CoroutinesInjection.kt | Wottrich | 295,605,540 | false | null | package github.io.wottrich.coroutines.di
import github.io.wottrich.coroutines.dispatcher.AppDispatcher
import github.io.wottrich.coroutines.dispatcher.DispatchersProviders
import org.koin.dsl.module
val coroutinesModule = module {
single<DispatchersProviders> { AppDispatcher }
} | 6 | Kotlin | 0 | 6 | 553ac38fefc31f417543f60316fc9f43eb256e38 | 285 | android-smart-checklist | MIT License |
app/src/main/java/com/jrblanco/proyectoguachat/aplication/usecase/AllContactUserBDUseCase.kt | jrcosio | 639,589,605 | false | null | package com.jrblanco.proyectoguachat.aplication.usecase
import com.jrblanco.proyectoguachat.domain.model.Usuario
import com.jrblanco.proyectoguachat.domain.repository.DataBaseRepository
class AllContactUserBDUseCase(private val database: DataBaseRepository) {
operator fun invoke(idGoogle: String, onSuccess: (List... | 0 | Kotlin | 0 | 0 | 448f02acdc03905c280ee79fadf37cb7c7bd2a9d | 399 | proyectoguachat | MIT License |
tooling/plugins/src/main/kotlin/com/thomaskioko/tvmaniac/extensions/ComposeExtensions.kt | c0de-wizard | 361,393,353 | false | null | package com.thomaskioko.tvmaniac.extensions
import com.android.build.api.dsl.CommonExtension
import org.gradle.api.JavaVersion
import org.gradle.api.Project
import org.gradle.api.artifacts.VersionCatalogsExtension
import org.gradle.kotlin.dsl.dependencies
import org.gradle.kotlin.dsl.getByType
@Suppress("UnstableApi... | 9 | Kotlin | 13 | 98 | 8bc3853d84c58520dffe26ddb260a2e7b6482ae9 | 1,183 | tv-maniac | Apache License 2.0 |
app/src/main/java/com/example/secureauthentication/viewmodel/SignUpViewModel.kt | LibinMathew-ileaf | 567,704,538 | false | {"Kotlin": 26645} | package com.example.secureauthentication.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.secureauthentication.reposistory.DataStoreRepository
import com.example.secureauthentication.ut... | 0 | Kotlin | 0 | 0 | 799ca539a41952ed71306868aec34af40a94f19c | 1,300 | TestAuth | The Unlicense |
app/src/main/java/learn/app/quotes/data/repository/quotes/contracts/IQuoteLocalContract.kt | 008AjayRawat | 579,069,635 | false | null | package learn.app.quotes.data.repository.quotes.contracts
import learn.app.quotes.data.models.domain.QuoteDomain
import learn.app.quotes.data.models.local.QuotesLocal
import learn.app.quotes.utils.network.DataStatus
interface IQuoteLocalContract {
suspend fun getRandomQuote(): DataStatus<QuoteDomain>
suspen... | 0 | Kotlin | 1 | 0 | 7f337a784758c0248cd28fa9c5d92bc0d5bd9aaf | 362 | Quotes | Apache License 2.0 |
example/android/app/src/main/kotlin/com/codesfirst/safetynet_attestation_example/MainActivity.kt | CodesFirst | 418,285,420 | false | {"Dart": 16697, "Kotlin": 13965} | package com.codesfirst.safetynet_attestation_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 1 | Dart | 3 | 5 | a63af68579282c1455290c87c1836ffc41de28e6 | 149 | safetynet_attestation | Apache License 2.0 |
src/ktaf/old/ui/node/node.kt | exerro | 191,953,002 | false | null | package ktaf.ui.node
import geometry.plus
import geometry.vec2
import ktaf.core.*
import ktaf.ui.UIFocusEvent
import ktaf.ui.UIMouseEnterEvent
import ktaf.ui.UIMouseExitEvent
import ktaf.ui.UIUnFocusEvent
import ktaf.ui.layout.tl
fun UINode.absolutePosition(): vec2
= (parent.get()?.absolutePosition() ?: vec2(... | 8 | Kotlin | 0 | 0 | 3210f450651e68430d2442dc184253c0b5c40da2 | 1,407 | ktaf | MIT License |
app/src/main/java/com/sucho/kodeinexample/di/ServiceModule.kt | suchoX | 146,607,257 | false | null | package com.sucho.kodeinexample.di
import com.sucho.kodeinexample.data.model.GithubUser
import com.sucho.kodeinexample.data.services.ApiService
import com.sucho.kodeinexample.data.services.GithubApiService
import io.reactivex.Observable
import io.reactivex.schedulers.Schedulers
import org.kodein.di.Kodein
import org.k... | 1 | Kotlin | 11 | 27 | 29403cabe081ee522c1250be6a26662d7586f611 | 933 | Kodein-MVVM | Apache License 2.0 |
src/main/kotlin/net/mcbrawls/blueprint/structure/Blueprint.kt | mcbrawls | 716,153,443 | false | {"Kotlin": 56158, "Java": 3324} | package net.mcbrawls.blueprint.structure
import com.mojang.serialization.Codec
import com.mojang.serialization.codecs.RecordCodecBuilder
import net.mcbrawls.blueprint.region.serialization.SerializableRegion
import net.minecraft.block.Block
import net.minecraft.block.BlockState
import net.minecraft.nbt.NbtCompound
impo... | 0 | Kotlin | 0 | 3 | fdbbc001c31a7dadab45788f58cbd13c34d807a6 | 6,142 | blueprint | MIT License |
genesis-core/src/main/kotlin/com/github/kennarddh/mindustry/genesis/core/packets/exceptions/InvalidPacketHandlerMethodException.kt | kennarddh-mindustry | 727,669,980 | false | {"Kotlin": 145945, "Dockerfile": 256} | package com.github.kennarddh.mindustry.genesis.core.packets.exceptions
class InvalidPacketHandlerMethodException(message: String) : Exception(message) | 0 | Kotlin | 0 | 4 | ad25e6a976b0badf26d8e38dbf9b71cf15ee59e4 | 151 | genesis | MIT License |
src/main/kotlin/com/benbuzard/minecraft/protocol/S2CMCPacket.kt | CyberDie22 | 824,429,699 | false | {"Kotlin": 37435} | package com.benbuzard.minecraft.protocol
interface S2CMCPacket : MCPacket | 0 | Kotlin | 0 | 0 | 6354dc8f448b2c5f71c7bbb51cd1dac7db6ba196 | 74 | minecraft | Apache License 2.0 |
libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/ColorsLight.kt | vector-im | 546,522,002 | false | null | /*
* Copyright (c) 2023 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... | 12 | Kotlin | 5 | 38 | 6bc46027d9e6d43e7d2c441e41d8b4a9f0b73bbf | 3,068 | element-x-android | Apache License 2.0 |
bitgouel-api/src/main/kotlin/team/msg/domain/school/presentation/data/response/SchoolResponse.kt | School-of-Company | 700,741,727 | false | {"Kotlin": 519344, "Shell": 764, "Dockerfile": 206} | package team.msg.domain.school.presentation.data.response
import team.msg.domain.club.presentation.data.response.SchoolToClubResponse
data class SchoolResponse(
val id: Long,
val schoolName: String,
val clubs: List<SchoolToClubResponse>
)
data class SchoolsResponse(
val schools: List<SchoolResponse>
... | 4 | Kotlin | 0 | 14 | c68c5619de4fa1e025cb3b239e043dee7579122e | 321 | Bitgouel-Server | MIT License |
frontend/src/main/kotlin/de/uulm/se/couchedit/client/interaction/creationtool/RectangularCreationTool.kt | sp-uulm | 303,650,849 | false | null | package de.uulm.se.couchedit.client.interaction.creationtool
import com.google.inject.Inject
import de.uulm.se.couchedit.client.interaction.input.CanvasMouseEvent
import de.uulm.se.couchedit.client.interaction.pattern.InteractionPatternCallbacks
import de.uulm.se.couchedit.client.interaction.pattern.SelectRectangularR... | 0 | Kotlin | 0 | 0 | 595266c0bca8f2ee6ff633c4b45b91e5f3132cc4 | 2,514 | CouchEdit | Apache License 2.0 |
core/src/main/kotlin/testing/DefaultSimpleEdgeCases.kt | cs125-illinois | 182,325,979 | false | null | package edu.illinois.cs.cs125.answerable.testing
import edu.illinois.cs.cs125.answerable.ArrayWrapper
private val defaultIntSimpleCases = intArrayOf(-1, 1)
private val defaultByteSimpleCases = byteArrayOf(-1, 1)
private val defaultShortSimpleCases = shortArrayOf(-1, 1)
private val defaultLongSimpleCases = longArrayOf... | 1 | null | 1 | 7 | e688469a9bdbb23229c8b3519e78ce61788fc557 | 3,187 | answerable | MIT License |
source-code/starter-project/app/src/main/java/com/droidcon/easyinvoice/ui/home/invoices/manage/AddInvoiceItem.kt | droidcon-academy | 731,477,787 | false | null | /*
* Copyright (c) 2024. Droidcon
*
* 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... | 0 | Kotlin | 0 | 0 | df32960315a4a501893a478daf4f61ae4149cfb3 | 10,808 | android-room-database-course-materials | Apache License 2.0 |
compiler/testData/loadJava/compiledJavaCompareWithKotlin/kotlinSignature/propagation/typeParameter/UseParameterInUpperBoundWithKotlinSignature.kt | udalov | 10,645,710 | false | {"Java": 9931656, "Kotlin": 2142480, "JavaScript": 942412, "C++": 613791, "C": 193807, "Objective-C": 22634, "Shell": 12589, "Groovy": 1267} | package test
public trait UseParameterInUpperBoundWithKotlinSignature: Object {
public trait Super: Object {
public fun <A, B: List<A>> foo(p0: A, p1: B)
}
public trait Sub: Super {
override fun <B, A: List<B>> foo(p0: B, p1: A)
}
}
| 0 | Java | 1 | 6 | 3958b4a71d8f9a366d8b516c4c698aae80ecfe57 | 268 | kotlin-objc-diploma | Apache License 2.0 |
core-kotlin-modules/core-kotlin-6/src/test/kotlin/com/baeldung/singleton/Singleton2UnitTest.kt | Baeldung | 260,481,121 | false | {"Kotlin": 1855665, "Java": 48276, "HTML": 4883, "Dockerfile": 292} | package com.baeldung.singleton
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertSame
import org.junit.jupiter.api.Test
class Singleton2Test {
@Test
fun `When retrieving instance of singleton, Then same instance is retrieved`() {
val instance1 = Single... | 14 | Kotlin | 6 | 465 | f1ef5d5ded3f7ddc647f1b6119f211068f704577 | 502 | kotlin-tutorials | MIT License |
app/src/main/java/com/example/bookloverfinalapp/app/ui/general_screens/screen_progress/DayOfTheWeekFingerprint.kt | yusuf0405 | 484,801,816 | false | {"Kotlin": 1421124} | package com.example.bookloverfinalapp.app.ui.general_screens.screen_progress
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import com.joseph.ui.core.R as UiCore
import com.example.bookloverfinalapp.app.ui.general_screens.screen_progress.adapter.DayOfTheWe... | 1 | Kotlin | 1 | 3 | e1ecdb14efbf7a25643ded1319841712f5e12a3b | 2,188 | BookLoverFinalApp | Apache License 1.1 |
app/src/main/java/com/gojekgithub/trending/ui/callbacks/TrendingRetryListener.kt | anukalp | 302,643,538 | false | {"Kotlin": 100738} | package com.gojekgithub.trending.ui.callbacks
interface TrendingRetryListener {
fun fetchData()
} | 0 | Kotlin | 0 | 0 | 93de746bdeb186d083e5a0dfc017d4f9400557dd | 102 | GojekGithubSample | MIT License |
base/src/main/java/com/binkery/base/utils/SharedEditor.kt | binkery | 197,148,891 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 2, "Proguard": 3, "XML": 69, "Kotlin": 74, "Java": 11, "SVG": 1} | package com.binkery.base.utils
import android.content.Context
import android.content.SharedPreferences
class SharedEditor(private val name: String) {
private var shared : SharedPreferences ?= null
fun get(context: Context, key: String, defValue: String): String {
val shared = getShared(context, name... | 0 | Kotlin | 0 | 0 | 8836467f5e286a87900eb0cbf70d2059f68a6db6 | 762 | iTarget | Apache License 2.0 |
voodoo/src/main/kotlin/voodoo/Diff.kt | elytra | 119,208,408 | false | {"Markdown": 7, "Git Config": 1, "Gradle Kotlin DSL": 8, "INI": 4, "Shell": 15, "Text": 2, "Ignore List": 2, "Batchfile": 2, "Groovy": 1, "Java": 2, "Kotlin": 262, "Java Properties": 45, "YAML": 1, "JSON": 378, "XML": 3} | package voodoo
import com.eyeem.watchadoin.Stopwatch
import mu.KLogging
import voodoo.changelog.ChangelogBuilder
import voodoo.changelog.PackDiff
import voodoo.data.lock.LockPack
import voodoo.util.*
import java.io.File
object Diff : KLogging() {
// TODO: differentiate creating a diff for current version (and zi... | 1 | null | 1 | 1 | 5a4e0217b1f8d2af193e8c04d1bee0258fd1cc5a | 11,561 | Voodoo | MIT License |
airbyte-cdk/java/airbyte-cdk/core/src/main/kotlin/io/airbyte/cdk/integrations/destination/dest_state_lifecycle_manager/DestStateLifecycleManager.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.destination.dest_state_lifecycle_manager
import io.airbyte.protocol.models.v0.AirbyteMessage
import io.airbyte.protocol.models.v0.AirbyteStreamNameNamespacePair
import java.util.*
/**
* This class manages the lifecyc... | 1 | null | 1 | 1 | b2e7895ed3e1ca7c1600ae1c23578dd1024f20ff | 2,888 | airbyte | MIT License |
incubator/clients/kroviz/src/main/kotlin/org/apache/causeway/client/kroviz/ui/dialog/ResponseComparisonDialog.kt | apache | 6,935,442 | false | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 4 | null | 294 | 751 | cfb994d281118effa2363528c6d5cf74c8c64cae | 2,249 | causeway | Apache License 2.0 |
idea/tests/testData/codeInsight/renderingKDoc/propertyRendering.kt | JetBrains | 278,369,660 | false | null |
/**
* Hello darling
* @author <NAME>
*/
val prop = 2
/**
* Hello darling var
* @author Megavolt
*/
var prop = 2
class outherClass {
/**
* Hello darling instance
* @author <NAME>
*/
val instanceProp get() {
/**
* Hello darling local
* @author Launchpad McQuack
... | 1 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 1,664 | intellij-kotlin | Apache License 2.0 |
common/src/main/java/br/com/mindbet/common/custom_dialog/DialogCustomMessage.kt | luangs7 | 275,694,397 | false | null | package br.com.mindbet.common.custom_dialog
import android.app.Dialog
import android.content.Context
import android.view.Gravity
import android.view.ViewGroup
import br.com.mindbet.common.R
import kotlinx.android.synthetic.main.dialog_custom_message.*
class DialogCustomMessage(
val context: Context?,
val mess... | 1 | null | 1 | 1 | adffb2e30f6d2f678f7197277849e7aff86bac15 | 1,091 | Mindbet | MIT License |
native/objcexport-header-generator/testData/headers/superClassWithCovariantOverride/Foo.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | abstract class Bar {
abstract fun foo(): Any
}
class Foo : Bar() {
override fun foo(): String = error("stub")
}
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 121 | kotlin | Apache License 2.0 |
mbnetworkkit/src/main/java/com/daimler/mbnetworkkit/certificatepinning/CertificatePinningErrorProcessor.kt | Daimler | 199,815,262 | false | null | package com.daimler.mbnetworkkit.certificatepinning
interface CertificatePinningErrorProcessor {
fun onCertificatePinningError(error: Throwable)
} | 1 | null | 8 | 15 | 3721af583408721b9cd5cf89dd7b99256e9d7dda | 151 | MBSDK-Mobile-Android | MIT License |
tachikoma-grpc/src/main/kotlin/com/sourceforgery/tachikoma/identifiers/MessageIdFactoryImpl.kt | anuraaga | 232,056,047 | false | {"Gradle": 28, "Markdown": 4, "INI": 2, "Shell": 5, "Ignore List": 10, "YAML": 4, "Java": 9, "Kotlin": 202, "Java Properties": 1, "SQL": 1, "XML": 4, "JavaScript": 3, "Protocol Buffer": 15, "Java Server Pages": 1, "Dockerfile": 1, "Text": 1} | package com.sourceforgery.tachikoma.identifiers
import com.sourceforgery.tachikoma.tracking.TrackingConfig
import java.util.UUID
import javax.inject.Inject
class MessageIdFactoryImpl
@Inject
private constructor(
private val trackingConfig: TrackingConfig
) : MessageIdFactory {
override fun createMessageId() =... | 1 | null | 1 | 1 | 6a1d8e3d3e057a8c8c15ceed377c1e0519da5853 | 395 | tachikoma | Apache License 2.0 |
code/4diac-integration/src/integration-test/kotlin/org/fbme/ide/integration/fordiac/translator/lua/adapter/AdapterFBTypeTranslatorTest.kt | JetBrains | 267,360,098 | false | {"JetBrains MPS": 5551574, "Kotlin": 1343021, "C++": 54572, "Lua": 26921, "Tcl": 7529, "ANTLR": 4585} | package org.fbme.ide.integration.fordiac.translator.lua.adapter
import org.fbme.ide.integration.fordiac.translator.TranslatorTestBase
import org.fbme.ide.platform.testing.FBType.ADAPTER
import org.fbme.ide.platform.testing.TypeInfo
import org.junit.Test
class AdapterFBTypeTranslatorTest : TranslatorTestBase() {
@... | 12 | JetBrains MPS | 15 | 19 | 3198be65e4b63e4405ee7e523ec64f28d1231ba5 | 1,051 | fbme | Apache License 2.0 |
app/src/main/java/com/gatheringhallstudios/mhworlddatabase/components/SharpnessView.kt | gatheringhallstudios | 109,581,966 | false | {"Gemfile.lock": 1, "Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 3, "Text": 12, "Ruby": 2, "Proguard": 1, "JSON": 4, "Kotlin": 229, "XML": 404, "Java": 25, "YAML": 1} | package com.gatheringhallstudios.mhworlddatabase.components
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.util.AttributeSet
import android.view.View
import com.gatheringhallstudios.mhworlddatabase.R
/**
* Collection of colors
... | 5 | Kotlin | 22 | 54 | 7a81b4ccd9e5f898bf9373d7c60f85c6c8f85781 | 5,030 | MHWorldDatabase | MIT License |
app/src/main/java/org/tokend/template/features/localaccount/mnemonic/view/MnemonicPhraseDialog.kt | tokend | 192,905,357 | false | {"Kotlin": 1830732, "HTML": 58776, "Java": 21685} | package org.tokend.template.features.localaccount.mnemonic.view
import android.content.Context
import android.support.annotation.StyleRes
import android.support.v7.app.AlertDialog
import org.tokend.template.R
import org.tokend.template.view.ToastManager
import org.tokend.template.view.dialog.CopyDataDialogFactory
cla... | 1 | Kotlin | 1 | 6 | 05bb971859713830a9c229206dc9f525ce80f754 | 1,358 | conto-android-client | Apache License 2.0 |
core/base/src/nativeMain/kotlin/nl/adaptivity/xmlutil/core/impl/multiplatform/OutputStream.kt | pdvrieze | 143,553,364 | false | {"Kotlin": 3481762} | /*
* Copyright (c) 2024.
*
* This file is part of xmlutil.
*
* This file is licenced to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You should have received a copy of the license with the source distribution.
* Alternatively, y... | 35 | Kotlin | 31 | 378 | c4053519a8b6c90af9e1683a5fe0e9e2b2c0db79 | 1,419 | xmlutil | Apache License 2.0 |
codegen/swift/swift-entities/src/main/kotlin/com/stanfy/helium/handler/codegen/swift/entity/filegenerator/SwiftEquatableFilesGeneratorImpl.kt | Intelity | 89,471,367 | true | {"Groovy": 497899, "Java": 207740, "Kotlin": 106702, "Mustache": 21328, "CSS": 4243, "Shell": 3436, "HTML": 730, "Ruby": 55} | package com.stanfy.helium.handler.codegen.swift.entity.filegenerator
import com.stanfy.helium.handler.codegen.swift.entity.SwiftGenerationOptions
import com.stanfy.helium.handler.codegen.swift.entity.entities.SwiftEntity
import com.stanfy.helium.handler.codegen.swift.entity.entities.SwiftEntityEnum
import com.stanfy.h... | 11 | Groovy | 1 | 4 | 33e00b9beee755ccd2ffc77e1784fc53046df215 | 1,732 | helium | Apache License 2.0 |
build-tools/gradle-core-configuration/configuration-cache/src/main/kotlin/org/gradle/configurationcache/serialization/codecs/ArrayCodecs.kt | RivanParmar | 526,653,590 | false | null | /*
* Copyright 2021 the original author or 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 applica... | 1 | null | 2 | 17 | 8fb2bb1433e734aa9901184b76bc4089a02d76ca | 4,753 | androlabs | Apache License 2.0 |
src/main/kotlin/com/jetbrains/snakecharm/lang/psi/stubs/SmkModuleNameIndex.kt | JetBrains-Research | 165,259,818 | false | {"Gradle Kotlin DSL": 2, "YAML": 47, "Markdown": 4, "Java Properties": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Python": 60, "Text": 111, "INI": 2, "Gherkin": 118, "Kotlin": 253, "Java": 5, "XML": 3, "SVG": 7, "HTML": 44, "Snakemake": 116, "JFlex": 1, "Roff": 2} | package com.jetbrains.snakecharm.lang.psi.stubs
import com.intellij.openapi.project.Project
import com.intellij.psi.search.GlobalSearchScope
import com.intellij.psi.search.ProjectScope
import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndex
import com.intellij.psi.stubs.StubIndex... | 111 | Python | 7 | 61 | ac0d9c4a246b287f99b857865a24378eeaad5419 | 862 | snakecharm | MIT License |
plugins/ksp/src/org/jetbrains/kotlin/ksp/processor/ClassKindsProcessor.kt | android | 263,405,600 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.ksp.processor
import org.jetbrains.kotlin.ksp.getClassDeclarationByName
import o... | 1 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 1,853 | kotlin | Apache License 2.0 |
key_value_storage/src/main/java/com/shevelev/comics_viewer/key_value_storage/storages/StorageBase.kt | AlShevelev | 232,800,756 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Java": 4, "XML": 137, "Kotlin": 385, "JSON": 1} | package com.shevelev.comics_viewer.key_value_storage.storages
import timber.log.Timber
/** Base class for storage */
abstract class StorageBase: Storage, StorageOperationsInstance {
/** Read data from storage */
override fun <T>read(readFunc: (StorageReadOperations) -> T): T = readFunc(createReadOperationsIns... | 1 | null | 1 | 1 | 91ef2b9bd5c19043104734b588940841fa6f9f4f | 932 | ginger-money | MIT License |
app/src/main/java/org/fossasia/openevent/general/auth/ResetPasswordResponse.kt | fossasia | 34,847,604 | false | null | package org.fossasia.openevent.general.auth
import com.github.jasminb.jsonapi.LongIdHandler
import com.github.jasminb.jsonapi.annotations.Id
class ResetPasswordResponse(
@Id(LongIdHandler::class)
val id: Long? = null,
val email: String? = null,
val name: String? = null
)
| 73 | null | 562 | 1,942 | e3214589f83c155e477f9e727370d7bbef8fd915 | 290 | open-event-attendee-android | Apache License 2.0 |
modules/fbs-core/math-parser/src/main/kotlin/de/thm/ii/fbs/mathParser/ast/Ast.kt | thm-mni-ii | 145,119,531 | false | null | package de.thm.ii.fbs.mathParser.ast
import java.lang.StringBuilder
data class Ast(val root: Expr) {
fun toDot(): String = "strict graph {\nrankdir=BT\n${StringBuilder().let {root.toDot(it, 0); return@let it.toString()}}}"
}
| 239 | null | 9 | 19 | 73630e17e587a8bbf51e033817ef8f53a9f2499f | 231 | feedbacksystem | Apache License 2.0 |
instrumentation/core/src/main/java/de/mannodermaus/junit5/condition/EnabledIfBuildConfigValue.kt | igorwojda | 338,582,588 | true | {"Gradle": 1, "Shell": 3, "Text": 1, "Ignore List": 2, "Batchfile": 3, "Markdown": 3, "Gradle Kotlin DSL": 12, "Java": 30, "Kotlin": 83, "XML": 20, "INI": 2, "YAML": 2, "TOML": 5, "Java Properties": 1, "Groovy": 1} | package de.mannodermaus.junit5.condition
import org.junit.jupiter.api.extension.ExtendWith
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.RUNTIME)
@ExtendWith(EnabledIfBuildConfigValueCondition::class)
annotation class EnabledIfBuildConfigValue(val named: String, val matches... | 0 | null | 0 | 0 | b6a1d91e73bb77bf179d8d41089cdfd24052e8c9 | 330 | android-junit5 | Apache License 2.0 |
app/src/main/java/fi/aalto/roopepalomaki/distanceawarebarcode/ColorUtilsOneBit.kt | aaltodawcode | 299,862,649 | false | null | package fi.aalto.roopepalomaki.distanceawarebarcode
class ColorUtilsOneBit {
companion object {
private const val MAJORITY = .75
private const val MINORITY= .35
private const val EXISTENCE = .05
private const val BLACK_THRESHOLD = 0.2
// indices in the order of the hue ci... | 1 | null | 1 | 1 | 5c57a73af51c2fee40837d246396db3586108dad | 7,071 | dawcode-android | Apache License 2.0 |
android-lang-databinding/src/com/android/tools/idea/lang/databinding/model/ModelClassResolvable.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2019 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... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 2,133 | android | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.