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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/leetcode/P78.kt | antop-dev | 229,558,170 | false | {"Maven POM": 1, "Text": 4, "Ignore List": 1, "Markdown": 1, "Java": 233, "Kotlin": 832, "Python": 10} | package com.leetcode
// https://github.com/antop-dev/algorithm/issues/268
class P78 {
private val answer = mutableListOf<List<Int>>()
fun subsets(nums: IntArray): List<List<Int>> {
dfs(nums, mutableListOf(), 0)
return answer
}
private fun dfs(nums: IntArray, pool: MutableList<Int>, i:... | 1 | Kotlin | 0 | 0 | ce932821ca5c3eb0822e0b77a32f608cd5401299 | 557 | algorithm | MIT License |
beetle/src/main/java/com/karacca/beetle/ext/Int.kt | karacca | 197,248,332 | false | null | package com.karacca.beetle.ext
import android.content.res.Resources
/**
* @user: omerkaraca
* @date: 2019-07-15
*/
val Int.dp: Int
get() = (this / Resources.getSystem().displayMetrics.density).toInt()
val Int.px: Int
get() = (this * Resources.getSystem().displayMetrics.density).toInt() | 6 | Kotlin | 4 | 48 | 84591931c3b665906dff96595bde45d4be018d7b | 301 | Beetle | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/TeleOp/ShooterTuner.kt | Lunerwalker2 | 298,631,196 | true | {"Gradle": 6, "Java Properties": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 7, "Text": 3, "YAML": 3, "XML": 21, "Java": 91, "Kotlin": 20} | package org.firstinspires.ftc.teamcode.TeleOp
import com.acmerobotics.dashboard.FtcDashboard
import com.acmerobotics.dashboard.config.Config
import com.acmerobotics.dashboard.telemetry.TelemetryPacket
import com.acmerobotics.roadrunner.control.PIDCoefficients
import com.acmerobotics.roadrunner.control.PIDFController
i... | 0 | Java | 0 | 0 | 455cfe28af1ac44eba7a846f33ee16f4c7c8975a | 4,688 | UltimateGoal1002 | MIT License |
app/src/main/java/com/joketng/timeline/AllProgressTestActivity.kt | joketng | 156,190,720 | false | null | package com.joketng.timeline
import android.content.Context
import android.graphics.BitmapFactory
import android.os.Bundle
import android.support.v4.content.ContextCompat
import android.support.v4.graphics.drawable.RoundedBitmapDrawableFactory
import android.support.v7.app.AppCompatActivity
import android.view.LayoutI... | 1 | Kotlin | 4 | 40 | 26b1ba388b4283b2744a657f8e31b7ab9f6f60c4 | 3,843 | TimeLineStepView | Apache License 2.0 |
module-kotlin/src/main/java/com/alibaba/android/arouter/demo/kotlin/KotlinTestActivity.kt | blundell | 699,780,626 | true | {"Java Properties": 2, "Markdown": 3, "YAML": 2, "Gradle": 12, "Shell": 1, "Batchfile": 1, "Text": 1, "Ignore List": 1, "INI": 4, "Java": 81, "XML": 25, "Kotlin": 11, "Proguard": 1, "HTML": 1} | package com.alibaba.android.arouter.demo.kotlin
import android.app.Activity
import android.os.Bundle
import android.widget.TextView
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
//import kotl... | 1 | null | 1 | 1 | 1b9adf4300ab8b6d701996c7977c330f55832de7 | 853 | ARouter | Apache License 2.0 |
modules/jooby-openapi/src/test/kotlin/kt/i2121/App2121.kt | jooby-project | 25,446,835 | false | null | package kt.i2121
import io.jooby.Kooby
class App2121 : Kooby({
coroutine {
mvc(Controller2121())
}
})
| 51 | null | 175 | 1,439 | 1a0252d5dac7d3730f3e7017008c65a9ae4e5dd3 | 113 | jooby | Apache License 2.0 |
src/lib/kotlin/slatekit-common/src/main/kotlin/slatekit/common/types/Email.kt | ColleenKeegan | 174,519,919 | false | {"Text": 22, "Ignore List": 25, "YAML": 1, "Markdown": 20, "Gradle": 44, "Shell": 27, "Batchfile": 27, "Java Properties": 17, "Kotlin": 690, "INI": 2, "Java": 4, "SQL": 1, "XML": 5, "HTML": 1, "CSS": 1, "JavaScript": 1, "Swift": 3} | /**
* <slate_header>
* url: www.slatekit.com
* git: www.github.com/code-helix/slatekit
* org: www.codehelix.co
* author: <NAME>
* copyright: 2016 CodeHelix Solutions Inc.
* license: refer to website and/or github
* about: A tool-kit, utility library and server-backend
* mantra: Simplicity above all else
* </s... | 1 | null | 1 | 1 | bd1d55f2191f729149e901be102c22d7c719793d | 1,613 | slatekit | Apache License 2.0 |
idea/testData/refactoring/rename/automaticRenamerParameterInExtension/after/main.kt | staltz | 51,743,245 | true | {"Java": 15969828, "Kotlin": 11078102, "JavaScript": 176060, "Protocol Buffer": 42992, "HTML": 26117, "Lex": 16668, "ANTLR": 9689, "CSS": 9358, "Groovy": 5204, "Shell": 4638, "Batchfile": 3703, "IDL": 3251} | package testing
interface Trait {
open fun Int.foo(aa: Int, b: String) {
}
}
open class Super {
open fun Int.foo(aa: Int, b: String) {
}
}
open class Middle : Super(), Trait {
override fun Int.foo(/*rename*/aa: Int, b: String) {
}
}
class Sub : Middle() {
override fun Int.foo(aa: Int, b:... | 0 | Java | 0 | 1 | ff00bde607d605c4eba2d98fbc9e99af932accb6 | 339 | kotlin | Apache License 2.0 |
ontrack-kdsl/src/main/java/net/nemerosa/ontrack/kdsl/spec/extension/queue/QueueSource.kt | nemerosa | 19,351,480 | false | {"Git Config": 1, "Gradle Kotlin DSL": 67, "Markdown": 46, "Ignore List": 22, "Java Properties": 3, "Shell": 9, "Text": 3, "Batchfile": 2, "Groovy": 145, "JSON": 31, "JavaScript": 792, "JSON with Comments": 4, "GraphQL": 79, "Kotlin": 3960, "Java": 649, "HTML": 269, "PlantUML": 25, "AsciiDoc": 288, "XML": 9, "YAML": 33... | package net.nemerosa.ontrack.kdsl.spec.extension.queue
import com.fasterxml.jackson.databind.JsonNode
/**
* Contains information about the source of a queue message.
*/
data class QueueSource(
val feature: String,
val id: String,
val data: JsonNode,
)
| 44 | Kotlin | 25 | 96 | fde26a48ea7b18689851fe579635f4ed72ad2c5a | 280 | ontrack | MIT License |
beagle/src/main/kotlin/br/com/zup/beagle/android/components/form/core/FormDataStoreHandler.kt | ZupIT | 391,144,851 | false | null | /*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 1 | null | 2 | 9 | 812a330777edd79a123495e9f678dc8f25a019f7 | 1,227 | beagle-android | Apache License 2.0 |
chris-app/src/main/java/it/barusu/chris/merchant/MerchantDefinition.kt | barusu-it | 195,362,983 | false | null | package it.barusu.chris.merchant
import it.barusu.chris.channel.config.ChannelDefinition
import it.barusu.chris.common.DefinitionStatus
import org.springframework.data.annotation.CreatedDate
import org.springframework.data.annotation.LastModifiedDate
import org.springframework.data.jpa.domain.support.AuditingEntityLis... | 1 | Kotlin | 1 | 1 | abcdabdddf18e9df53ec18db548119c08273cca8 | 2,290 | chris | Apache License 2.0 |
app/src/main/java/edu/uwp/appfactory/rusd/data/model/Contact.kt | jervan | 120,720,631 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 2, "XML": 29, "Kotlin": 48, "JSON": 2} | package edu.uwp.appfactory.rusd.data.model
import com.google.gson.annotations.SerializedName
import io.realm.RealmObject
import io.realm.annotations.PrimaryKey
import java.util.*
/**
* Created by dakota on 7/4/17.
* Edited by jeremiah on 7/18/17.
*
* A Model Class for Contact Objects
*/
open class Contact : Re... | 0 | Kotlin | 0 | 0 | 6cc24da4b3e18a7104d994d205cbba2281b19876 | 880 | rusd-android | MIT License |
plugin/src/main/kotlin/com/toolkit/plugin/ToolkitComposePlugin.kt | matheus-corregiari | 131,161,672 | false | {"Kotlin": 945823, "Java": 17024, "Shell": 5296} | package com.toolkit.plugin
import com.toolkit.plugin.util.androidApplication
import com.toolkit.plugin.util.libraries
import com.toolkit.plugin.util.requireAll
import com.toolkit.plugin.util.version
import org.gradle.api.Plugin
import org.gradle.api.Project
internal class ToolkitComposePlugin : Plugin<Project> {
... | 3 | Kotlin | 4 | 26 | 74ff8d1a4b8f88f8e667518ee60bde35cf1466f1 | 973 | arch-toolkit | Apache License 2.0 |
app/src/main/java/com/example/details_design/branch/Branch_Activity.kt | SawThanDar18 | 189,928,389 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 22, "XML": 38, "Java": 1} | package com.example.details_design.branch
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.RecyclerView
import android.widget.GridLayout.VERTICAL
import com.example.details_design.R
class Branch_Activity : AppC... | 0 | Kotlin | 0 | 0 | 486ab2a208e9ee0113f0c8d9775ddef4cb433808 | 1,487 | Details_Design | Apache License 2.0 |
app/src/main/java/com/finalhints/mymandirdemo/view/callbacks/FeedItemsActionListener.kt | Bhumik | 151,705,167 | false | {"Gradle": 3, "Java Properties": 2, "Ignore List": 2, "Markdown": 1, "Proguard": 1, "XML": 58, "Java": 8, "Kotlin": 42} | package com.finalhints.mymandirdemo.view.callbacks
import com.finalhints.mymandirdemo.datamodel.FeedItem
interface FeedItemsActionListener {
fun onHeaderClick(adapterPosition: Int, item: FeedItem)
fun onImageItemClick(adapterPosition: Int, item: FeedItem, itemPosition: Int)
fun onTextReadMoreClick(adapte... | 1 | null | 1 | 1 | 10c0f454a1064ac57e73c762dafe0ba23bf2956b | 354 | FeedSample | Apache License 2.0 |
subprojects/android-test/ui-testing-core/src/main/kotlin/com/avito/android/test/InteractionContext.kt | avito-tech | 230,265,582 | false | {"Kotlin": 3752627, "Java": 67252, "Shell": 27892, "Dockerfile": 12799, "Makefile": 8086} | package com.avito.android.test
import android.view.View
import com.avito.android.test.action.ActionsDriver
import com.avito.android.test.checks.ChecksDriver
import org.hamcrest.Matcher
public interface InteractionContext : ActionsDriver, ChecksDriver {
public fun provideChildContext(matcher: Matcher<View>): Inte... | 10 | Kotlin | 50 | 414 | 4dc43d73134301c36793e49289305768e68e645b | 337 | avito-android | MIT License |
app/src/main/java/br/com/edsilfer/android/starwarswiki/model/Character.kt | edsilfer | 82,405,787 | false | null | package br.com.edsilfer.android.starwarswiki.model
import br.com.edsilfer.android.starwarswiki.commons.util.SUID
import br.com.edsilfer.android.starwarswiki.model.dictionary.CharacterDictionary
import com.google.gson.annotations.SerializedName
import io.realm.RealmList
import io.realm.RealmObject
import io.realm.annot... | 0 | Kotlin | 0 | 4 | 18c0aa2bf3559ee90d1a7b95639b8966046802e5 | 3,110 | star-wars-wiki | Apache License 2.0 |
jeecg-boot/jeecg-boot-module-ilang/src/main/java/org/jeecg/modules/ilang/controller/MqttController.kt | Senriot | 354,268,458 | false | null | package org.jeecg.modules.ilang.controller
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
import io.swagger.annotations.Api
import me.chanjar.weixin.mp.api.WxMpDeviceService
import org.jeecg.modules.ilang.entity.Device
import org.jeecg.modules.ilang.mqtt.MqttGateway
import org.jeecg.modules.ilang.s... | 1 | null | 1 | 1 | 9e7f7732d2eb0689621a61f694c24a0332bfc53c | 2,064 | ilang-boot | Apache License 2.0 |
kt-extensions/src/main/kotlin/com/mindera/skeletoid/kt/extensions/rxjava/Single.kt | cmota | 173,693,992 | true | {"Java Properties": 2, "YAML": 1, "Gradle": 7, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Text": 1, "Ignore List": 6, "XML": 11, "Proguard": 5, "Java": 55, "Kotlin": 32} | @file:Suppress("NOTHING_TO_INLINE")
package com.mindera.skeletoid.kt.extensions.rxjava
import io.reactivex.Observable
import io.reactivex.Single
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers
fun <T : Any> Single<T>.subscribeOnIO(): Single<T>
= subscribeOn(... | 0 | Java | 0 | 0 | 3a80ffbf779637510947c1e9bcf5544e0d30767e | 1,019 | skeletoid | MIT License |
plugins/space/src/main/kotlin/com/intellij/space/vcs/review/list/SpaceReviewListFiltersPanel.kt | haarlemmer | 392,603,002 | false | null | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.space.vcs.review.list
import com.intellij.icons.AllIcons
import com.intellij.openapi.actionSystem.ActionPlaces
import com.intellij.openapi.actionSystem.Actio... | 1 | null | 1 | 1 | de80b70f5507f0110de89a95d72b8f902ca72b3e | 2,928 | Jvav-Studio-Community | Apache License 2.0 |
plugins/markdown/core/src/org/intellij/plugins/markdown/model/psi/MarkdownPsiUsage.kt | JetBrains | 2,489,216 | false | null | package org.intellij.plugins.markdown.model.psi
import com.intellij.find.usages.api.PsiUsage
import com.intellij.model.Pointer
import com.intellij.model.psi.PsiSymbolReference
import com.intellij.openapi.util.TextRange
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
import com.intellij.psi.SmartPoin... | 214 | null | 4829 | 15,129 | 5578c1c17d75ca03071cc95049ce260b3a43d50d | 1,694 | intellij-community | Apache License 2.0 |
mobile_app1/module346/src/main/java/module346packageKt0/Foo1155.kt | uber-common | 294,831,672 | false | null | package module346packageKt0;
annotation class Foo1155Fancy
@Foo1155Fancy
class Foo1155 {
fun foo0(){
module346packageKt0.Foo1154().foo5()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
fun foo4(){
foo3()
}
fun foo5(){
foo4()
}
} | 6 | Java | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 301 | android-build-eval | Apache License 2.0 |
jdroid-android-about/src/main/java/com/jdroid/android/about/analytics/FirebaseAboutAnalyticsTracker.kt | fwonly123 | 198,339,170 | false | null | package com.jdroid.android.about.analytics
import com.google.firebase.analytics.FirebaseAnalytics
import com.jdroid.android.firebase.analytics.AbstractFirebaseAnalyticsTracker
import com.jdroid.android.firebase.analytics.FirebaseAnalyticsParams
class FirebaseAboutAnalyticsTracker : AbstractFirebaseAnalyticsTracker(),... | 1 | null | 1 | 1 | 578194586fc7d7e71d3742756651d658cb498bd0 | 701 | jdroid-android | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsppudautomationapi/integration/client/DocumentManagementClientTest.kt | ministryofjustice | 709,230,604 | false | null | package uk.gov.justice.digital.hmpps.hmppsppudautomationapi.integration.client
import org.hibernate.validator.internal.util.Contracts.assertNotEmpty
import org.hibernate.validator.internal.util.Contracts.assertTrue
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import org.mockserver.matche... | 1 | null | 1 | 3 | f3ce2f5e9d2f4e7215f3877b23312d6ee5e76d04 | 5,792 | hmpps-ppud-automation-api | MIT License |
app/src/main/java/com/rcd27/playfm/discover/data/DiscoverItem.kt | rcd27 | 226,152,817 | false | null | package com.rcd27.playfm.discover.data
import com.rcd27.playfm.common.ViewObject
data class DiscoverItem(val header: String) : ViewObject | 1 | Kotlin | 0 | 1 | dfcb9742746a1d3ec8756aa6c5706de8eb1c07a6 | 139 | playfm | MIT License |
src/main/kotlin/example/examplemod/init/NeoUMisc.kt | TeamVoided | 793,062,053 | false | {"Kotlin": 57229, "Java": 1121} | package example.examplemod.init
import com.github.alexmodguy.alexscaves.server.block.ACBlockRegistry
import example.examplemod.misc.DispensableRebar
import example.examplemod.reg.CorrosionReg
import net.minecraft.world.level.block.DispenserBlock
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent
import ... | 0 | Kotlin | 0 | 0 | 61aac3187b5b83164b93fb4af0dfe2162e7ede62 | 707 | NeoUranus | MIT License |
ktor-io/jvm/test/io/ktor/utils/io/JvmByteChannelCloseTest.kt | ktorio | 40,136,600 | false | null | /*
* Copyright 2014-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.utils.io
import io.ktor.utils.io.core.*
import kotlinx.coroutines.channels.*
class JvmReadPacketWithExceptionByteChannelCloseTest : ByteChannelCloseTest(
ClosedReceiveCha... | 269 | null | 806 | 9,709 | 9e0eb99aa2a0a6bc095f162328525be1a76edb21 | 1,178 | ktor | Apache License 2.0 |
app/src/main/java/com/io/gazette/readingList/ReadLaterListScreenEvent.kt | efe-egbevwie | 475,847,896 | false | null | package com.io.gazette.readingList
sealed class ReadLaterListScreenEvent {
object CreateNewReadLaterList : ReadLaterListScreenEvent()
data class NewReadLaterListTitleChanged(val newListTitle: String) : ReadLaterListScreenEvent()
object GetUserReaLaterLists : ReadLaterListScreenEvent()
data class Add... | 0 | Kotlin | 1 | 0 | 0e552f8969bae45d04ded293ff3b01296e5090ef | 499 | Gazette | MIT License |
kommons-test/src/commonMain/kotlin/com/bkahlert/kommons/test/fixtures/UnicodeTextDocumentFixture.kt | bkahlert | 323,048,013 | false | null | package com.bkahlert.kommons.test.fixtures
/**
* A [TextResourceFixture] encompassing different line separators
* and at least one one-, two-, three, and four-byte UTF-8 encoded character.
*
* ```
* a // "LATIN SMALL LETTER A" + "NEXT LINE (NEL)"
* 𝕓 // "MATHEMATICAL DOUBLE-STRUCK SMALL B" + "CARRIAGE RETURN" +... | 0 | Kotlin | 0 | 13 | 35002a02e0702157c5fa906a0e087ff0576a53ca | 1,034 | kommons | MIT License |
scientific/src/commonMain/kotlin/unit/LuminousEnergyUnit.kt | splendo | 191,371,940 | false | null | /*
Copyright 2021 Splendo Consulting B.V. The Netherlands
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 appli... | 91 | Kotlin | 3 | 93 | cd0f3a583efb69464aa020d206f598c6d15a0899 | 1,564 | kaluga | Apache License 2.0 |
src/main/kotlin/no/mikill/kotlin_htmx/integration/LookupClient.kt | anderssv | 682,720,326 | false | {"Kotlin": 25482, "Dockerfile": 262} | package no.mikill.kotlin_htmx.integration
import io.ktor.client.*
import io.ktor.client.engine.cio.*
import no.mikill.kotlin_htmx.items
sealed class LookupResult {
data class Success(val response: String) : LookupResult()
data object NotFound : LookupResult()
data class InvalidInput(val message: String) :... | 0 | Kotlin | 0 | 4 | e7dde5cd64680797fd266f31689900d12b70b7d4 | 809 | kotlin-htmx | Apache License 2.0 |
app/src/main/java/com/brins/lightmusic/ui/activity/MusicPlayActivity.kt | BrinsLee | 193,304,333 | false | null | package com.brins.lightmusic.ui.activity
import android.annotation.SuppressLint
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.Color
import android.graphics.PorterDuff
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import android.graphics... | 1 | Kotlin | 3 | 20 | f0be073b901efdee40d38824bc3c0cc4d6aa426d | 17,525 | LightMusic | Apache License 2.0 |
app/src/main/kotlin/com/androidmess/helix/common/debug/TimberL.kt | Bartosz-Kozajda | 154,959,111 | true | {"Kotlin": 33280} | package com.androidmess.helix.common.debug
import com.androidmess.helix.common.app.AppConfig
import timber.log.Timber
import timber.log.Timber.DebugTree
class TimberL(private val appConfig: AppConfig) : L {
override fun init() {
if (appConfig.isDebug) {
Timber.plant(DebugTree())
}
... | 0 | Kotlin | 0 | 0 | 269c0da23167dcf745b9f39b728d4a84bacc8465 | 601 | Helix-Movie-Guide-Android | Apache License 2.0 |
app/src/main/java/com/romandevyatov/bestfinance/utils/service/BaseService.kt | RomanDevyatov | 587,557,441 | false | {"Kotlin": 672387} | package com.romandevyatov.bestfinance.utils.service
import android.app.Service
import android.content.Intent
import android.content.res.Resources
import android.os.Build
import androidx.annotation.CallSuper
import com.romandevyatov.bestfinance.BudgetApplication
import com.romandevyatov.bestfinance.utils.localization.L... | 0 | Kotlin | 0 | 1 | bacad4ca4c12fdef63d1e1e746439751cb891776 | 1,272 | BestFinance | Apache License 2.0 |
app/src/main/java/com/example/potterguide/model/Feitico.kt | DevLeonardoTissi | 557,347,534 | false | {"Kotlin": 74998} | package com.example.potterguide.model
class Feitico(val nome: String, val descricao : String) | 0 | Kotlin | 0 | 2 | 9ce1b84a45b204967fdf553f6ce1bea7c89b11a0 | 94 | PotterGuide | Apache License 2.0 |
network/core/src/jvmMain/kotlin/co/yml/network/core/NetworkCallAndroidExtension.kt | yml-org | 504,124,065 | false | null | package co.yml.network.core
import co.yml.network.core.response.DataResponse
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
/**
* Execute the network request in async manner i... | 1 | Kotlin | 2 | 5 | 2b5162b3e687d81546d9c7ce7a666b3a2b6df889 | 1,334 | ynetwork-android | Apache License 2.0 |
packages/graalvm-js/src/jsMain/kotlin/elide/frontend/ssr/ApplicationBuffer.kt | elide-dev | 506,113,888 | false | null | /*
* 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,... | 75 | null | 16 | 91 | eeb53cad4d1316c0be9f0c57315827051367b7f0 | 3,618 | elide | MIT License |
src/main/kotlin/dev/lunarcoffee/risako/framework/core/annotations/CommandGroup.kt | lunarcoffee | 191,968,430 | false | {"Kotlin": 283896} | package dev.lunarcoffee.risako.framework.core.annotations
annotation class CommandGroup(val name: String)
| 0 | Kotlin | 0 | 0 | 8ae6c0fa0f85c90725667055493276116a0c0870 | 107 | Risako | MIT License |
app/src/main/java/co/tiagoaguiar/course/instagram/main/view/MainActivity.kt | BHM871 | 526,628,708 | false | null | package co.tiagoaguiar.course.instagram.main.view
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.os.Environment
import android.provider.MediaStore
import android.util.Log
import android.view.MenuItem
import android.view.WindowInsetsController
import... | 0 | Kotlin | 0 | 0 | dca77e5b6dcf76491840b928fb5e6f3a9525f02a | 9,084 | Instagram | MIT License |
app/src/main/java/com/aliernfrog/lactool/ui/dialog/SaveWarningDialog.kt | aliernfrog | 344,576,839 | false | {"Kotlin": 472697, "AIDL": 714} | package com.aliernfrog.lactool.ui.dialog
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.Warning
import androidx.compose.material3.AlertDialog
import androidx.compose.mat... | 0 | Kotlin | 1 | 6 | ce25e8e4191f3560f88a60a2a0740cd977269a0d | 2,119 | lac-tool | MIT License |
decoder/wasm/src/commonTest/kotlin/io/github/charlietap/chasm/decoder/wasm/decoder/magic/BinaryMagicNumberValidatorTest.kt | CharlieTap | 743,980,037 | false | {"Kotlin": 1956874, "WebAssembly": 45705} | package io.github.charlietap.chasm.decoder.magic
import com.github.michaelbull.result.Err
import com.github.michaelbull.result.Ok
import io.github.charlietap.chasm.error.WasmDecodeError
import io.github.charlietap.chasm.ext.MAGIC_NUMBER
import io.github.charlietap.chasm.fixture.ioError
import io.github.charlietap.chas... | 3 | Kotlin | 2 | 46 | c97e268ad588fb50fa468241d9e57161e409898a | 1,384 | chasm | Apache License 2.0 |
domain/src/main/kotlin/io/github/wykopmobilny/domain/settings/di/SettingsDomainComponent.kt | otwarty-wykop-mobilny | 374,160,630 | true | {"Kotlin": 1326147, "HTML": 66896, "Java": 38599} | package io.github.wykopmobilny.domain.settings.di
import dagger.Subcomponent
import io.github.wykopmobilny.ui.settings.SettingsDependencies
@SettingsScope
@Subcomponent(modules = [SettingsModule::class])
interface SettingsDomainComponent : SettingsDependencies
| 13 | Kotlin | 4 | 47 | 85b54b736f5fbcd6f62305779ed7ae2085c3b136 | 263 | wykop-android | MIT License |
metadata/src/main/java/com/insidion/axon102/handlers/LoggingMetadataValueHandler.kt | Morlack | 364,887,911 | false | null | package com.insidion.axon102.handlers
import com.fasterxml.jackson.databind.ObjectMapper
import com.insidion.axon102.domain.events.ProfileCreatedEvent
import org.axonframework.config.ProcessingGroup
import org.axonframework.eventhandling.EventHandler
import org.axonframework.messaging.annotation.MetaDataValue
import o... | 0 | Kotlin | 0 | 1 | d0308669f18f1c63a68c6e88b370befaad07da3a | 825 | axon-102 | MIT License |
src/main/kotlin/no/nav/syfo/identhendelse/database/IdenthendelseQuery.kt | navikt | 424,518,784 | false | null | package no.nav.syfo.identhendelse.database
import no.nav.syfo.application.database.DatabaseInterface
import no.nav.syfo.application.database.toList
import no.nav.syfo.domain.PersonIdentNumber
import java.sql.Connection
import java.sql.PreparedStatement
const val queryUpdateTilfelleBit =
"""
UPDATE TILFELL... | 2 | Kotlin | 0 | 0 | 411e781305119bcff42872899c74aa75e7800150 | 2,530 | isoppfolgingstilfelle | MIT License |
bitcoincore/src/main/kotlin/io/horizontalsystems/bitcoincore/serializers/BlockHeaderParser.kt | SAFE-anwang | 442,092,599 | true | {"Kotlin": 932776, "C++": 130481, "Java": 89265, "CMake": 6608, "C": 220} | package io.horizontalsystems.bitcoincore.serializers
import android.util.Log
import io.horizontalsystems.bitcoincore.core.IHasher
import io.horizontalsystems.bitcoincore.extensions.toHexString
import io.horizontalsystems.bitcoincore.extensions.toReversedHex
import io.horizontalsystems.bitcoincore.io.BitcoinInputMarkab... | 0 | Kotlin | 1 | 0 | 1335e5f41c5b3cbcb77d29c72e5882dd0482ed85 | 1,463 | bitcoin-kit-android | MIT License |
app/src/main/java/com/azhar/translation/networking/ApiEndpoint.kt | AzharRivaldi | 343,645,309 | false | null | package com.azhar.translation.networking
/**
* Created by <NAME> on 24-02-2021
*/
object ApiEndpoint {
var BASEURL = "https://api-translate.azharimm.tk/translate?engine=google&text={text}&to={to}"
} | 0 | Kotlin | 1 | 9 | bebde2a5387e9b42b536b95edf6714e900a996b6 | 206 | Translate-App | Apache License 2.0 |
features/messenger/src/main/kotlin/app/dapk/st/messenger/state/MessengerState.kt | ouchadam | 434,718,760 | false | {"Kotlin": 461355, "JavaScript": 12445, "Shell": 1820} | package app.dapk.st.messenger.state
import app.dapk.st.core.Lce
import app.dapk.st.design.components.BubbleModel
import app.dapk.st.engine.MessengerPageState
import app.dapk.st.engine.RoomEvent
import app.dapk.st.matrix.common.RoomId
import app.dapk.st.navigator.MessageAttachment
import app.dapk.st.state.State
import ... | 36 | Kotlin | 4 | 139 | 5a391676d0d482596fe5d270798c2b361dba67e7 | 1,399 | small-talk | Apache License 2.0 |
idea/tests/testData/shortenRefs/extensionForObject.dependency.kt | JetBrains | 278,369,660 | false | null | package dependency
object AnObject
fun AnObject.extFun(){}
| 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 61 | intellij-kotlin | Apache License 2.0 |
src/main/kotlin/net/oskarstrom/lucuma/error/LucumaRuntimeError.kt | alphaqu | 428,633,559 | false | null | package net.oskarstrom.lucuma.error
class LucumaRuntimeError(string: String) : Exception(string) | 0 | Kotlin | 1 | 1 | 4673d46bdd003eaa0b4abeeed4602e6b22315c6b | 97 | Lucuma | MIT License |
src/client/kotlin/dev/hybridlabs/aquatic/client/render/entity/fish/DragonfishEntityRenderer.kt | hybridlabs | 661,391,321 | false | {"Kotlin": 892890, "Java": 69899} | package dev.hybridlabs.aquatic.client.render.entity.fish
import dev.hybridlabs.aquatic.client.model.entity.fish.DragonfishEntityModel
import dev.hybridlabs.aquatic.entity.fish.HybridAquaticFishEntity
import net.minecraft.client.render.entity.EntityRendererFactory.Context
class DragonfishEntityRenderer(context: Contex... | 6 | Kotlin | 0 | 4 | 82c3b26d6697d2e5666b173101ade38505a3fe4c | 431 | hybrid-aquatic | MIT License |
app/src/main/java/eu/kanade/presentation/browse/components/BrowseSourceCompactGrid.kt | AriaMoradi | 391,623,094 | true | {"Kotlin": 2487091} | package eu.kanade.presentation.browse.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.GridItemSpan
import androidx.compose.foundation.lazy.grid.La... | 0 | Kotlin | 0 | 1 | ba00d9e5d2c00b9cf415932bb2821bf9914fe248 | 3,116 | tachiyomi | Apache License 2.0 |
app/src/main/java/com/realestate/model/UserModel.kt | ChandanJana | 810,743,284 | false | {"Kotlin": 682645, "Java": 1802} | package com.realestate.model
import android.os.Parcel
import android.os.Parcelable
import kotlinx.android.parcel.Parceler
import kotlinx.android.parcel.Parcelize
/**
* Created by Chandan on 27/12/20
* Company: Endue Technologies Pvt. LTD
* Email: chandanjana@enduetechnologies.com
*/
@Parcelize
data class UserMode... | 0 | Kotlin | 0 | 0 | ef6c30983cdd9eb0534b4d59d0e99a47c27c5cd9 | 2,342 | android-Realstate | MIT License |
fashion-compose/src/main/kotlin/com/aiuta/fashionsdk/compose/tokens/icon/AiutaDrawableIcons.kt | aiuta-com | 759,918,511 | false | {"Kotlin": 644828, "Shell": 1462} | package com.aiuta.fashionsdk.compose.tokens.icon
import android.graphics.drawable.Drawable
/**
* Public class for providing drawable icons in the SDK.
*
* This class allows the host application to override the default drawable icons used by the SDK,
* enabling a more personalized user experience.
*
* The icons ... | 6 | Kotlin | 0 | 2 | 6390e487cecafc950d6288c1fb6bbd6b2288f1db | 1,962 | android-sdk | Apache License 2.0 |
allplay-daemon/src/main/kotlin/com/dicedmelon/allplay/daemon/Main.kt | arturdm | 268,165,314 | false | null | package com.dicedmelon.allplay.daemon
class Main {
companion object {
@JvmStatic
fun main(args: Array<String>) = App().main(args)
}
}
| 0 | Kotlin | 0 | 0 | 6c62e704f265909ea464b7e8afa471dad80ad96b | 159 | allplay-daemon | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/ui/screen/overview/child_composables/PetsList.kt | MarioNoll | 342,232,918 | false | {"Kotlin": 53802} | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | b93daf32c7f9888ea4e67134a8f60eaeb4da9cfa | 6,812 | android-dev-challenge-compose-week1 | Apache License 2.0 |
src/integrationTest/kotlin/de/bund/digitalservice/useid/home/HomeControllerIntegrationTest.kt | digitalservicebund | 475,364,510 | false | null | package de.bund.digitalservice.useid.home
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.web.reactive.server.WebTestClient
@SpringBootTest(webEnvironment = SpringBootTest.WebEnv... | 4 | Kotlin | 1 | 6 | af592ec6c839a4b4aa9912973028efe4a774fc6f | 728 | useid-backend-service | MIT License |
app/src/main/java/dev/elshaarawy/moviesii/MainActivity.kt | IAmShaarawy | 168,736,339 | false | {"Kotlin": 2117} | package dev.elshaarawy.moviesii
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.bottomnavigation.BottomNavigationView
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
private va... | 7 | Kotlin | 0 | 0 | cf195f57bba37eade63ccdc295fd1d6e2c138fad | 1,136 | Movies-ii | Apache License 2.0 |
book-network/src/main/kotlin/com/egi/book/security/JwtFilter.kt | EgiKarakashi | 792,352,694 | false | {"Kotlin": 60439, "HTML": 1566, "Dockerfile": 166} | package com.egi.book.security
import jakarta.servlet.FilterChain
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken
import org.springframework.security.core.context.SecurityContextHolder
i... | 0 | Kotlin | 0 | 0 | 01a919dd48ee0609722144841391a0f418fae804 | 2,089 | book-social-network | Apache License 2.0 |
data/settings/src/androidTest/java/com/google/jetpackcamera/settings/LocalSettingsRepositoryInstrumentedTest.kt | google | 591,101,391 | false | null | /*
* 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... | 47 | null | 26 | 96 | 4005d59356a80cd2d2e2b6056120f8646017361e | 5,844 | jetpack-camera-app | Apache License 2.0 |
demos/chat-demo-mpp/common/src/commonMain/kotlin/io/github/jan/supabase/common/ui/components/AlertDialog.kt | supabase-community | 495,084,592 | false | null | package io.github.jan.supabase.common.ui.components
import androidx.compose.runtime.Composable
@Composable
expect fun AlertDialog(text: String, close: () -> Unit) | 2 | Kotlin | 8 | 80 | 1a4d3803201ad4e10a65862b3ef40be66d03e47f | 164 | supabase-kt | MIT License |
pml-core/src/test/kotlin/com/luggsoft/pml/__pml.kt | dan-lugg | 398,328,973 | false | {"Kotlin": 79391, "HTML": 11490} | package com.luggsoft.pml
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import kotlin.random.Random
fun main()
{
loadTestNode("/TestNode1.json").also(::println)
}
| 0 | Kotlin | 0 | 1 | b1e04df112090475593b0144dae77e2f938a890e | 185 | luggsoft-pml | MIT License |
game/plugin/skills/runecrafting/src/Rune.kt | ultraviolet-jordan | 482,152,097 | false | null | package org.apollo.game.plugin.skill.runecrafting
import org.apollo.game.plugin.skill.runecrafting.Altar.*
interface Rune {
/**
* The item id of the rune.
*/
val id: Int
/**
* The [Altar] this rune must be crafted at.
*/
val altar: Altar
/**
* The runecrafting level requ... | 0 | null | 5 | 5 | 656755cca55b2ee4ed4288d051c2dfbb1b61386e | 2,180 | apollo | BSD Zero Clause License |
core/src/main/java/com/silencedut/core/provider/legend/LegendNotification.kt | SilenceDut | 148,289,794 | false | null | package com.silencedut.core.provider.legend
import com.silencedut.core.provider.legend.pojo.LegendBaseInfo
import com.silencedut.core.provider.legend.pojo.LegendPrice
import com.silencedut.core.provider.legend.pojo.LegendSkin
import com.silencedut.core.provider.legend.pojo.Legend
/**
* @author SilenceDut
* @date 20... | 1 | Java | 33 | 201 | 1c1f7d28726bf54dbf8afdaea105cf3c3506da65 | 666 | diffadapter | Apache License 2.0 |
src/main/kotlin/no/nav/sokos/spk/mottak/util/FileParser.kt | navikt | 758,019,980 | false | {"Kotlin": 99870, "Shell": 945, "Dockerfile": 111} | package no.nav.sokos.spk.mottak.util
import no.nav.sokos.spk.mottak.domain.RECTYPE_SLUTTRECORD
import no.nav.sokos.spk.mottak.domain.RECTYPE_STARTRECORD
import no.nav.sokos.spk.mottak.domain.RECTYPE_TRANSAKSJONSRECORD
import no.nav.sokos.spk.mottak.domain.record.EndRecord
import no.nav.sokos.spk.mottak.domain.record.S... | 1 | Kotlin | 0 | 0 | fb01c2071e47fdb52f83bbc80b3eaeae85288dcb | 3,640 | sokos-spk-mottak | MIT License |
feature-assets/src/main/java/io/novafoundation/nova/feature_assets/presentation/transaction/filter/TransactionHistoryFilterViewModel.kt | novasamatech | 415,834,480 | false | {"Kotlin": 8152538, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.feature_assets.presentation.transaction.filter
import androidx.lifecycle.viewModelScope
import io.novafoundation.nova.common.base.BaseViewModel
import io.novafoundation.nova.common.utils.checkEnabled
import io.novafoundation.nova.common.utils.filterToSet
import io.novafoundation.nova.com... | 13 | Kotlin | 6 | 9 | 404bd5141bf0e1bc4d09cae42d6ea9fa50d78975 | 2,994 | nova-wallet-android | Apache License 2.0 |
app/src/main/java/com/example/eyedemo/logic/network/api/MainPageService.kt | wuxiaoqi123 | 279,522,576 | false | null | package com.example.eyedemo.logic.network.api
import com.example.eyedemo.logic.model.*
import com.example.eyedemo.logic.network.ServiceCreator
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Url
interface MainPageService {
companion object {
const val DISCOVERY_URL = "${ServiceCreat... | 0 | Kotlin | 0 | 0 | b96a566a06678f91ce70c76dbe319c71575a5c76 | 1,325 | EyeDemo | Apache License 2.0 |
app/src/main/java/motiapps/melodify/core/data/source/Converters.kt | MotiElitzur | 661,282,488 | false | {"Kotlin": 117836} | package motiapps.melodify.core.data.source
import androidx.room.TypeConverter
import com.google.firebase.Timestamp
import java.util.Date
class Converters {
@TypeConverter
fun fromTimestamp(value: Long?): Timestamp? {
return value?.let { Timestamp(Date(it)) }
}
@TypeConverter
fun dateToTim... | 0 | Kotlin | 0 | 0 | 45549c4b1bdd37b007fa229bb6d7dfb9844bfa22 | 407 | Melodify | Apache License 2.0 |
kzmq-cio/src/commonMain/kotlin/org/zeromq/internal/message-utils.kt | ptitjes | 386,722,015 | false | null | /*
* Copyright (c) 2022-2024 <NAME> and Kzmq contributors.
* Use of this source code is governed by the Apache 2.0 license.
*/
package org.zeromq.internal
import org.zeromq.*
internal fun addPrefixAddress(message: Message, identities: List<ByteArray> = listOf()): Message =
Message(identities + ByteArray(0) + ... | 21 | null | 0 | 6 | 1e6c7a35b7dc93b34a8f6da9d56fd5b3335dd790 | 676 | kzmq | Apache License 2.0 |
FluentUI.Demo/src/androidTest/java/com/microsoft/fluentuidemo/demos/V2AvatarGroupActivityUITest.kt | anthonysidesap | 454,785,267 | true | {"Kotlin": 2243120, "Shell": 8996} | package com.microsoft.fluentuidemo.demos
import android.content.Intent
import androidx.compose.ui.test.*
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.test.core.app.ActivityScenario
import androidx.test.espresso.intent.Intents
import androidx.test.platform.app.InstrumentationRegistry
import ... | 43 | Kotlin | 92 | 7 | 2b0d10f7b754c189fea210d279487617e5661eaa | 3,187 | fluentui-android | MIT License |
libraries/core/src/test/kotlin/com/bumble/appyx/core/lifecycle/ChildLifecycleTest.kt | bumble-tech | 493,334,393 | false | null | package com.bumble.appyx.core.lifecycle
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
impor... | 68 | Kotlin | 45 | 754 | 1c13ab49fb3e2eb0bcd192332d597f8c05d3f6a9 | 8,279 | appyx | Apache License 2.0 |
app-examples/example-kt-03adapters/src/main/java/foo/bar/example/foreadapterskt/feature/playlist/immutable/ImmutablePlaylistModel.kt | erdo | 92,027,307 | false | {"Kotlin": 602726, "Java": 405950, "Shell": 1405} | package foo.bar.example.foreadapterskt.feature.playlist.immutable
import co.early.fore.adapters.Adaptable
import co.early.fore.adapters.immutable.Diffable
import co.early.fore.core.observer.Observable
import co.early.fore.kt.adapters.immutable.ImmutableListMgr
import co.early.fore.kt.core.logging.Logger
import foo.bar... | 2 | Kotlin | 3 | 46 | 1af5bd3ad9b2395a636fac12c40016fd2c815d0c | 2,924 | android-fore | Apache License 2.0 |
azure-communication-ui/demo-app/src/calling/java/com/azure/android/communication/ui/callingcompositedemoapp/CallLauncherViewModel.kt | Azure | 429,521,705 | false | {"Kotlin": 1926051, "Java": 97997, "Shell": 3964, "HTML": 1856} | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.android.communication.ui.callingcompositedemoapp
import android.content.Context
import androidx.lifecycle.ViewModel
import com.azure.android.communication.common.CommunicationTokenCredential
import com.az... | 10 | Kotlin | 24 | 22 | 1f2aabcc4c9cc88f0b58bc8c84c4d19dea761477 | 7,738 | communication-ui-library-android | MIT License |
app/src/main/kotlin/uk/co/ribot/androidboilerplate/data/local/DbOpenHelper.kt | viniciussoares | 68,934,428 | false | null | package br.com.maiconhellmann.pomodoro.data.local
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
import timber.log.Timber
import java.sql.SQLException
class DbOpenHelper constructor(val context: Context):
SQLiteOpenHelper(context, D... | 0 | null | 23 | 85 | 2879b2dc5d7c8ea454b4dc3adef06c3fb938dd2f | 1,066 | ribot-android-boilerplate-kotlin | Apache License 2.0 |
mbmobilesdk/src/main/java/com/daimler/mbmobilesdk/utils/MBMobileSDKFileProvider.kt | rafalzawadzki | 208,997,288 | true | {"Kotlin": 1297852, "Groovy": 4489} | package com.daimler.mbmobilesdk.utils
import androidx.core.content.FileProvider
class MBMobileSDKFileProvider : FileProvider() | 0 | null | 0 | 0 | 1a924f70fbde5d731cdfde275e724e6343ee6ebe | 128 | MBSDK-Mobile-Android | MIT License |
app/src/main/kotlin/com/example/myhealth/document/DocumentActivity.kt | odtheking | 728,720,204 | false | {"Kotlin": 72603} | package com.example.myhealth.document
import android.annotation.SuppressLint
import android.app.Activity
import android.app.AlertDialog
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.provider.MediaStore
import android.provider.OpenableColumns
import... | 0 | Kotlin | 0 | 0 | f6b733261db425f78ad12c2c1a97ab4c0f442872 | 7,823 | MyHealth | MIT License |
realtimedb/src/main/kotlin/de/sipgate/federmappe/realtimedb/DataSnapshotExt.kt | sipgate | 729,069,301 | false | {"Kotlin": 93513} | package de.sipgate.federmappe.realtimedb
import com.google.firebase.database.DataSnapshot
import de.sipgate.federmappe.common.ErrorHandler
import de.sipgate.federmappe.common.StringMapToObjectDecoder
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.KSerializer
import kotlinx.seria... | 2 | Kotlin | 0 | 0 | b751f83af504bc43cd0b6787a5f12d2240b5f058 | 1,681 | federmappe | Apache License 2.0 |
src/test/kotlin/com/viirrtus/queueOverHttp/e2e/FullTest.kt | viirtus | 163,073,246 | false | null | package com.viirrtus.queueOverHttp.e2e
import com.fasterxml.jackson.databind.ObjectMapper
import com.viirrtus.queueOverHttp.SpringContextTest
import com.viirrtus.queueOverHttp.controller.TestController
import com.viirrtus.queueOverHttp.dto.Consumer
import com.viirrtus.queueOverHttp.dto.Group
import com.viirrtus.queueO... | 0 | Kotlin | 0 | 6 | 3c4151e6ff221bf1e78a1de82642ffad17ae6985 | 7,276 | queue-over-http | MIT License |
src/main/kotlin/com/glinboy/test/lox/LoxApplication.kt | GLinBoy | 549,675,662 | false | {"Kotlin": 3908} | package com.glinboy.test.lox
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.context.annotation.Bean
import org.springframework.http.ResponseEntity
import org.springframework.integration.jdbc.lock.DefaultLockRepository
import... | 4 | Kotlin | 0 | 1 | 376a8b5825e43b9a9e9d3dd7a7e53cd94692b07c | 3,694 | spring-boot-cloud-lock-sample | MIT License |
app/src/main/java/ke/co/slick/researchapp/ResearchApplication.kt | vickz84259 | 141,360,885 | false | null | package ke.co.slick.researchapp
import android.app.Application
import ke.co.slick.researchapp.di.ContextModule
import ke.co.slick.researchapp.di.DaggerSingletonComponent
import ke.co.slick.researchapp.di.SingletonComponent
import timber.log.Timber
class ResearchApplication : Application() {
lateinit var componen... | 0 | Kotlin | 0 | 0 | cb04d73c73a1c1c4a3b0850572fa7461947d02ff | 607 | researchApp | MIT License |
shared/src/commonMain/kotlin/ru/blays/ficbook/reader/shared/components/authorProfileComponents/implementation/DefaultAuthorProfileComponent.kt | B1ays | 710,470,973 | false | {"Kotlin": 1542803} | package ru.blays.ficbook.reader.shared.components.authorProfileComponents.implementation
import com.arkivanov.decompose.ComponentContext
import com.arkivanov.decompose.childContext
import com.arkivanov.decompose.router.pages.*
import com.arkivanov.decompose.value.MutableValue
import com.arkivanov.decompose.value.Value... | 0 | Kotlin | 2 | 15 | 5e451e31d72a4f57eac50b346abf7306156a1c69 | 19,001 | ficbook-reader | MIT License |
Sprint 4 - Parking Manager/it.unibo.automatedcarparking.businesslogic/resources/itunibo/automatedcarparking/generator/GeneratorJsonTransportTrolleyConfiguration.kt | lorepersa | 452,723,466 | false | null | package itunibo.automatedcarparking.generator
import com.google.gson.GsonBuilder
import itunibo.automatedcarparking.transporttrolley.TransportTrolleyConfiguration
import itunibo.automatedcarparking.rolodex.TransportTrolleyRolodex
import java.io.File
fun generateJsonTransportTrolleyConfiguration() {
// json
val gso... | 0 | Kotlin | 0 | 0 | 3e910df1c53e89b5a66dd78f66ccc9d21480a491 | 816 | Automated-Car-Parking | MIT License |
src/main/java/org/reflections/predicates/Predicates.kt | baelec | 191,467,216 | true | {"Text": 1, "Maven POM": 1, "Ignore List": 1, "YAML": 1, "Markdown": 1, "Java": 48, "XML": 2, "Kotlin": 7} | @file:JvmName("Predicates")
package org.reflections.predicates
import java.util.*
import java.util.function.Predicate
fun <T> and(predicates: Array<Predicate<in T>>): Predicate<T> {
return Predicate { value -> Arrays.stream(predicates).allMatch { it.test(value)} }
}
fun <T> alwaysTrue() = Predicate<T> { true }
f... | 0 | Java | 0 | 0 | 85dbb11d67903556e600f075267cba5af8036cc8 | 548 | reflections | Do What The F*ck You Want To Public License |
server/src/main/kotlin/db.kt | marychatte | 356,868,888 | false | null | import java.sql.*
import java.util.*
private val TABLE_NAME = "Gallery"
private val DB_PATH = "gallery.db"
class DB {
private lateinit var connection: Connection
init {
try {
connection = DriverManager.getConnection("jdbc:sqlite:$DB_PATH")
println("Connection to SQLite has be... | 0 | Kotlin | 0 | 0 | d7f5e2fbe220404eaa0f770a4b67abb129ee5311 | 1,562 | Board-for-drawing | Apache License 2.0 |
cxrv/src/main/java/com/xiaocydx/cxrv/multitype/Type.kt | xiaocydx | 460,257,515 | false | null | package com.xiaocydx.cxrv.multitype
/**
* ViewType的映射类型
*
* @author xcc
* @date 2021/10/8
*/
data class Type<T : Any>
@PublishedApi internal constructor(
val clazz: Class<T>,
val delegate: ViewTypeDelegate<T, *>
) | 0 | Kotlin | 0 | 7 | 7283f04892a84661ff82f33eed377da2cc015874 | 227 | CXRV | Apache License 2.0 |
app/src/main/java/com/jxareas/xpensor/features/accounts/presentation/mapper/AccountUiMapper.kt | jxareas | 540,284,293 | false | {"Kotlin": 260827, "Python": 1602, "Shell": 695} | package com.jxareas.xpensor.features.accounts.presentation.mapper
import com.jxareas.xpensor.features.accounts.domain.model.Account
import com.jxareas.xpensor.features.accounts.presentation.model.AccountUi
fun Account.toAccountUi(): AccountUi =
AccountUi(
id = id,
name = name,
amount = amo... | 0 | Kotlin | 3 | 35 | c8639526a7fdd710e485668093ce627e0fa1e8e5 | 497 | Xpensor | MIT License |
graphglue-core/src/main/kotlin/io/github/graphglue/data/execution/NodeQueryOptions.kt | graphglue | 436,856,727 | false | null | package io.github.graphglue.data.execution
import io.github.graphglue.connection.order.IdOrder
import io.github.graphglue.connection.order.Order
/**
* Defines how a [NodeQuery] fetches data
*
* @param filters filters which are applied to filter out matched nodes
* @param orderBy the order in which nodes are order... | 0 | null | 2 | 2 | 19bdbcab27145e53f8de6f7b73f78f0e14eae101 | 1,737 | graph-glue | Apache License 2.0 |
app/src/test/java/com/avaliadorimovel/UnitTestStatisticalCalculator.kt | rolphmc | 350,545,871 | false | null | package com.avaliadorimovel
import com.avaliadorimovel.details.DetailsActivity
import com.avaliadorimovel.details.repository.SampleItem
import org.junit.Test
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/... | 0 | Kotlin | 0 | 0 | 4222503f4be7ec3c224b4e089d1c4bb39df982fa | 516 | projeto-quanto-custa-seu-imovel | MIT License |
feature-staking-impl/src/main/java/com/edgeverse/wallet/feature_staking_impl/presentation/validators/details/model/NominatorModel.kt | finn-exchange | 512,140,809 | false | {"Kotlin": 2956205, "Java": 14536, "JavaScript": 399} | package com.edgeverse.wallet.feature_staking_impl.presentation.validators.details.model
import java.math.BigInteger
class NominatorModel(
val who: ByteArray,
val value: BigInteger
)
| 0 | Kotlin | 1 | 0 | 03229c4188cb56b0fb0340e60d60184c7afa2c75 | 192 | edgeverse-wallet | Apache License 2.0 |
solanaj/src/main/java/org/p2p/solanaj/kits/transaction/TransactionDetailsType.kt | p2p-org | 306,035,988 | false | null | package org.p2p.solanaj.kits.transaction
enum class TransactionDetailsType(val typeStr: String) {
UNKNOWN("unknown"),
SWAP("swap"),
TRANSFER("transfer"),
CREATE_ACCOUNT("create"),
CLOSE_ACCOUNT("closeAccount");
}
| 16 | Kotlin | 6 | 14 | 9cf97a5edd8be594ed301c88788d71ea20483571 | 234 | p2p-wallet-android | MIT License |
solar/src/main/java/com/chiksmedina/solar/outline/electronicdevices/AirbudsRemove.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.outline.electronicdevices
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.StrokeJoin... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 7,845 | SolarIconSetAndroid | MIT License |
kotest-assertions/kotest-assertions-core/src/commonMain/kotlin/io/kotest/matchers/longs/ulong.kt | kotest | 47,071,082 | false | {"Kotlin": 4736924, "CSS": 352, "Java": 145} | package io.kotest.matchers.longs
import io.kotest.matchers.Matcher
import io.kotest.matchers.comparables.between
import io.kotest.matchers.shouldBe
@Deprecated(
"ULong-specific assertion is getting replaced with a new Comparable assertion of the same name.\nNote: If you perform the offered IDE autocorrection, you ... | 141 | Kotlin | 648 | 4,435 | 2ce83d0f79e189c90e2d7bb3d16bd4f75dec9c2f | 1,048 | kotest | Apache License 2.0 |
packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/defaultmodules/CoreModule.kt | expo | 65,750,241 | false | null | package expo.modules.kotlin.defaultmodules
import expo.modules.kotlin.modules.Module
import expo.modules.kotlin.modules.ModuleDefinition
class CoreModule : Module() {
override fun definition() = ModuleDefinition {
// Nothing so far, but eventually we will expose some common classes
// and maybe even the `mo... | 575 | null | 4219 | 22,731 | a7353085e6ef1d140e04ad67cef5e250e7e7d0cc | 346 | expo | MIT License |
tmp/arrays/youTrackTests/1280.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-24305
fun main(args: Array<String>) {
val n = 1
// repeat(1) {
class Foo {
constructor() { println("in constructor") }
fun bar() = n + 1
}
println(Foo::class.java.getDeclaredConstructor())
// }
}
| 1 | null | 11 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 237 | bbfgradle | Apache License 2.0 |
plugins/kotlin/project-wizard/core/src/org/jetbrains/kotlin/tools/projectWizard/moduleConfigurators/IOSModuleConfigurator.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.tools.projectWizard.moduleConfigurators
import org.jetbrains.annotations.NonNls
import org.jetbrains.kotlin.tools.projectWizard.Ko... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 7,205 | intellij-community | Apache License 2.0 |
wormhole-android-sdk/src/main/java/org/wormhole/android/sdk/internal/worker/Worker.kt | project-wormhole | 370,207,523 | false | null | /*
* Copyright 2020 The Matrix.org Foundation C.I.C.
*
* 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 ... | 0 | Kotlin | 0 | 2 | f3fef11bfdcb9208ff94138eb704d4122d131c8a | 1,003 | wormhole-android-sdk | Apache License 2.0 |
buildSrc/src/main/java/com/likethesalad/placeholder/models/PathIdentity.kt | SicMarcis | 309,424,251 | true | {"Kotlin": 226180} | package com.likethesalad.placeholder.models
data class PathIdentity(
val valuesFolderName: String,
val suffix: String
) | 0 | null | 0 | 0 | e2c134da29063833e7b024cb5a110e1d8a161c84 | 128 | android-string-reference | MIT License |
core/database/src/main/kotlin/ru/resodostudios/flick/core/database/model/MovieEntity.kt | f33lnothin9 | 565,400,839 | false | {"Kotlin": 167095} | package ru.resodostudios.flick.core.database.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.coroutines.runInterruptible
import ru.resodostudios.flick.core.model.data.FavoriteMovie
import ru.resodostudios.flick.core.model.data.Image
import ru.resodostudios.flick.core.model.data.Movie
i... | 0 | Kotlin | 3 | 70 | 70e1171d8c228620dffc93bf2a47c70087868e03 | 1,248 | flick | Apache License 2.0 |
app/src/main/java/io/github/tobyhs/timetalker/ScreenService.kt | tobyhs | 208,724,787 | false | {"Kotlin": 26521} | package io.github.tobyhs.timetalker
import android.app.Notification
import android.app.Service
import android.content.Intent
import android.content.IntentFilter
import android.os.IBinder
/**
* A service that registers {@link ScreenOnReceiver}
*/
class ScreenService : Service() {
private val screenOnReceiver = S... | 0 | Kotlin | 0 | 0 | e63dff6ccb2cb0cbf156349215034663aadf0ac0 | 1,315 | TimeTalker2 | MIT License |
src/main/kotlin/me/fzzyhmstrs/amethyst_imbuement/spells/pieces/boosts/DyeBoost.kt | fzzyhmstrs | 461,338,617 | false | null | package me.fzzyhmstrs.amethyst_imbuement.spells.pieces.boosts
import me.fzzyhmstrs.amethyst_core.boost.TagAugmentBoost
import me.fzzyhmstrs.amethyst_imbuement.AI
import net.minecraft.item.Item
import net.minecraft.registry.tag.TagKey
import net.minecraft.util.DyeColor
class DyeBoost(private val color: DyeColor, dyes:... | 14 | Kotlin | 7 | 3 | 2614d0138c139d378c27e460d9a141799565920c | 446 | ai | MIT License |
app/src/main/java/net/kibotu/dagger/demo/App.kt | kibotu | 277,508,344 | false | null | package net.kibotu.dagger.demo
import android.app.Application
import dagger.android.AndroidInjector
import dagger.android.HasAndroidInjector
import dagger.android.support.DaggerApplication
import net.kibotu.dagger.core.extensions.initStrictMode
import net.kibotu.dagger.demo.di.AppComponent
import net.kibotu.dagger.dem... | 0 | Kotlin | 0 | 0 | c9f826c65fe79e337e67107a412c69ddc935d43c | 849 | Dagger-Multi-Module-Sample | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.