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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
paymentsheet-example/src/main/java/com/stripe/android/paymentsheet/example/playground/settings/CustomerSessionSettingsDefinition.kt | stripe | 6,926,049 | false | {"Kotlin": 13814299, "Java": 102588, "Ruby": 45779, "HTML": 42045, "Shell": 23905, "Python": 21891} | package com.stripe.android.paymentsheet.example.playground.settings
import com.stripe.android.paymentsheet.example.playground.model.CheckoutRequest
import com.stripe.android.paymentsheet.example.playground.model.CustomerEphemeralKeyRequest
internal object CustomerSessionSettingsDefinition : BooleanSettingsDefinition(... | 88 | Kotlin | 644 | 1,277 | 174b27b5a70f75a7bc66fdcce3142f1e51d809c8 | 1,265 | stripe-android | MIT License |
app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/utils/recyclerview/ViewHolderDependentItemDecorator.kt | wigr11 | 132,491,533 | true | {"Kotlin": 932984, "Java": 251617} | package io.github.feelfreelinux.wykopmobilny.utils.recyclerview
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Rect
import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.... | 0 | Kotlin | 0 | 0 | ae3395fa96817628614b185e7cf84e81b4d44b47 | 4,312 | WykopMobilny | MIT License |
src/main/java/com/sup/dev/java/libs/text_format/TextFormatter.kt | ZeonXX | 381,988,582 | false | null | package com.sup.dev.java.libs.text_format
import com.sup.dev.java.libs.debug.err
import com.sup.dev.java.tools.ToolsText
class TextFormatter(
val text: String
) {
companion object {
private val char_protector = '\\'
private val char_protector_word = '@'
private val char_no_format =... | 0 | Kotlin | 2 | 0 | 8128eaa51f93e312e4cf8daa6eba273bd0874d1d | 10,282 | DevSupJava | Apache License 2.0 |
backend/repo/cassandra/src/main/kotlin/ru/otus/opinion/repo/cassandra/dto/producers/CompletionStageOfUnitProducer.kt | otuskotlin | 378,047,392 | false | null | package ru.otus.opinion.repo.cassandra.dto.producers
import com.datastax.oss.driver.api.core.cql.Statement
import com.datastax.oss.driver.api.core.type.reflect.GenericType
import com.datastax.oss.driver.api.mapper.MapperContext
import com.datastax.oss.driver.api.mapper.entity.EntityHelper
import com.datastax.oss.drive... | 0 | Kotlin | 0 | 0 | ccde46da64355724add000dd88eb9e8b6fc3de7c | 1,602 | ok-202105-qa-mz | MIT License |
app/src/main/java/com/sunnyweather/android/ui/weather/WeatherActivity.kt | wo4188 | 271,054,380 | false | null | package com.sunnyweather.android.ui.weather
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Color
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.inputmethod.InputMetho... | 0 | Kotlin | 0 | 0 | db57fc4c20726d2b33302bfbad40ed443e954d2d | 6,034 | SunnyWeather | Apache License 2.0 |
app/src/main/java/com/classycode/windowwatcher/MainActivity.kt | classycodeoss | 436,695,668 | false | null | package com.classycode.windowwatcher
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.util.Log
import android.view.WindowManager
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.Image
import androidx.comp... | 0 | Kotlin | 0 | 1 | 96ba673d65d742c3f5a02681afb98f0d6343857c | 11,917 | windowwatcher | Apache License 2.0 |
ApplicationCases/CrazyRocketKotlin/app/src/main/java/com/huawei/crazyrocketkotlin/util/GameUtils.kt | HMS-Core | 265,994,353 | false | null | package com.huawei.crazyrocketkotlin.util
import android.annotation.SuppressLint
import android.content.Context
import android.hardware.Camera
import android.util.Log
import com.huawei.crazyrocketkotlin.camera.LensEnginePreview
import com.huawei.crazyrocketkotlin.util.transactor.FaceAnalyzerTransactor
import com.huawe... | 17 | Java | 120 | 334 | f2feae321c5813f59523cd0b118f55c898d99337 | 3,554 | hms-ml-demo | Apache License 2.0 |
collect_app/src/main/java/org/odk/collect/android/application/initialization/GoogleDriveProjectsDeleter.kt | dyesseyumba | 724,619,981 | true | {"Java": 3679468, "Kotlin": 2051387, "Shell": 2875, "JavaScript": 2830} | package org.odk.collect.android.application.initialization
import org.odk.collect.android.projects.ProjectDeleter
import org.odk.collect.projects.ProjectsRepository
import org.odk.collect.settings.SettingsProvider
import org.odk.collect.settings.keys.ProjectKeys
import org.odk.collect.upgrade.Upgrade
class GoogleDriv... | 0 | Java | 0 | 0 | b5558c6fbfa1657b6d848bf4a3528d93a1547d41 | 932 | collect | Apache License 2.0 |
app/src/main/java/my/dzeko/footapp/extension/Deque.kt | dzeko14 | 168,025,712 | false | null | package my.dzeko.footapp.extension
import java.util.*
fun <T> Deque<T>.popUpTo(item: T) {
if (!contains(item)) return
while (item != peek()) {
pop()
}
} | 0 | Kotlin | 0 | 0 | 654eed725a45d96c1d887382238746eef6ae8685 | 175 | foot-news-app-client | MIT License |
src/test/kotlin/com/newmcs/filive/test/MainTest.kt | Ruskonert | 233,437,084 | false | null | package com.newmcs.filive.test
import com.newmcs.filive.IObjectCollector
import com.newmcs.filive.Standard
import kotlin.random.Random
object MainTest
{
private val collector : IObjectCollector<MyEntity> = MyEntityCollector().create(Standard.STD_HANDLER)
@JvmStatic
fun main(args: Array<String>)
{
... | 0 | Kotlin | 0 | 0 | 3ce5eec21d6a6b36355981080a26d6895999edab | 599 | Filive | MIT License |
app/src/main/java/io/dhruv/movieapp/data/network/ApiClient.kt | dhruv036 | 847,972,752 | false | {"Kotlin": 23887} | package io.dhruv.weatherwise.data.network
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
object RetrofitInstance {
private
const val BASE_URL = "https://api.themoviedb.org/3/trending/movie/"
val api: ApiService by lazy {
val retrofit = Retrofit.Builder()
... | 0 | Kotlin | 0 | 0 | 43c2a34b29bc3ee514d5fd2c78b04571bc8bb4ac | 480 | MovieWise | MIT License |
app/src/main/java/com/example/im/ui/fragment/ContactFragment.kt | LixyAndroid | 197,615,265 | false | null | package com.example.im.ui.fragment
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import com.example.im.R
import com.example.im.adapter.ContactListAdapter
import com.example.im.adapter.EMContactListenerAdapter
import com.example.im.contract.ContactContract
import com.example.im.presen... | 0 | Kotlin | 1 | 5 | 3f2ee68e1dc29dacbde35d1b16f1b8d7a6b072b2 | 3,335 | IM | Apache License 2.0 |
app/src/main/java/com/gabor/cleanarchitecture/presentation/movies/MoviesPreviewParameterProvider.kt | gyorgygabor | 440,453,398 | false | {"Kotlin": 109509} | /*
* 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 applica... | 0 | Kotlin | 0 | 0 | 9f5828f70c6cfa21741b452f803b205ea1c4c6d3 | 1,616 | clean_architecture | Apache License 2.0 |
src/test/kotlin/biz/koziolek/adventofcode/year2023/day25/Day25Test.kt | pkoziol | 434,913,366 | false | {"Kotlin": 715025, "Shell": 1892} | package biz.koziolek.adventofcode.year2023.day25
import biz.koziolek.adventofcode.BiDirectionalGraphEdge
import biz.koziolek.adventofcode.SimpleGraphNode
import biz.koziolek.adventofcode.findInput
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Tag
import org.junit.jupiter.api.Test
@Tag("2023")... | 0 | Kotlin | 0 | 0 | 1b1c6971bf45b89fd76bbcc503444d0d86617e95 | 3,112 | advent-of-code | MIT License |
use-cases/src/main/kotlin/usecases/usecase/user/GetUser.kt | ESchouten | 361,840,995 | false | null | package usecases.usecase.user
import domain.entity.user.Authorities
import domain.repository.UserRepository
import usecases.dependency.Logger
import usecases.model.UserModel
import usecases.usecase.Query
import usecases.usecase.UsecaseA1
import kotlin.reflect.typeOf
@Query
class GetUser(
logger: Logger,
priva... | 2 | Kotlin | 22 | 280 | ae29f9c8b810e64b20730fe51ce54c560d145f37 | 643 | CleanArchitecture | MIT License |
src/main/kotlin/org/jetbrains/teamcity/rest/models/user/Token.kt | JetBrains | 321,975,548 | false | {"Kotlin": 638039} | /**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package org.jetbrains.teamcity.rest.models
import com.google.gson.annotations.SerializedName
import org.jetbrains.teamcity.rest.base.*
import org.jet... | 0 | Kotlin | 1 | 1 | 0e29bfb12d0d17c481c295d8ec89815a4a9fb0c2 | 1,098 | teamcity-rest-auto-kotlin-client | Apache License 2.0 |
for_student/src/test/java/com/yetk/for_student/FakeHomeworkRepoImpl.kt | RUD0MIR | 726,705,497 | false | {"Kotlin": 193197} | package com.yetk.for_student
import com.yetk.for_student.domain.model.Homework
import com.yetk.for_student.domain.repository.HomeworkRepository
import kotlinx.coroutines.flow.flow
class FakeHomeworkRepoImpl: HomeworkRepository {
override suspend fun insertHomework(homework: Homework) {
}
override suspend... | 0 | Kotlin | 0 | 0 | b0a78e4759eb5975ebb873af1e636c245773c045 | 516 | YETK-schedule | MIT License |
ColorConverter/src/main/java/com/colorconverter/ColorCache.kt | suraj-vaish9av | 324,433,527 | false | null | package com.colorconverter
import android.util.Log
import com.colorconverter.database.Color
/**
* ColorCache can store last accessed Color objects of given size,
* let's say ColorCache's size is 50, it means ColorCache can store maximum 50 elements of Color type
* when more items need to be added the it will remo... | 0 | Kotlin | 0 | 3 | 7f25308d5011648c56da55761c609e1eea0130e7 | 1,267 | color-converter | MIT License |
src/main/kotlin/fortos/model/constants/WorkloadConstants.kt | joaolrpaulo | 342,657,575 | false | null | package fortos.model.constants
object WorkloadConstants {
// Actions
const val RABBITMQ_PROCESSOR = "rabbitmq"
const val LOG_PROCESSOR = "logger"
// Timers
const val CONSTANT_TIME_PROCESSOR = "constant-time"
const val SINGLE_TIME_PROCESSOR = "single-time"
}
| 0 | Kotlin | 0 | 1 | 9ac926ab630b6d4528a085a50917f35e520ab3d5 | 284 | fortos | Apache License 2.0 |
app/src/main/java/cz/movapp/app/App.kt | cesko-digital | 478,685,113 | false | {"Kotlin": 224382, "Ruby": 3026, "Java": 78} | package cz.movapp.app
import android.app.Application
import android.content.Context
import android.os.StrictMode
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.cancel
const val TAG = "MOVAPP"
fun Application.appModule() = (this as App).appModule
class App : Application() {
lateinit var appModule... | 14 | Kotlin | 4 | 7 | 6271a2bcda417a8eebae1d3dcf1c10664735d927 | 867 | movapp-android | MIT License |
cinescout/anticipated/data/remote/src/commonMain/kotlin/cinescout/anticipated/data/remote/model/TraktTvShowAnticipatedMetadata.kt | fardavide | 280,630,732 | false | null | package cinescout.anticipated.data.remote.model
import cinescout.screenplay.domain.model.TmdbScreenplayId
import cinescout.screenplay.domain.model.TraktScreenplayId
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import screenplay.data.remote.trakt.model.TraktScreenplayType
import scr... | 11 | Kotlin | 2 | 6 | f2e3993816452afaf6c3f1e7c7a384eb9a66c06e | 825 | CineScout | Apache License 2.0 |
Chapter13/Exercise13.02/app/src/main/java/com/packt/android/MainScope.kt | PacktPublishing | 810,886,298 | false | {"Kotlin": 1045857} | package com.packt.android
import javax.inject.Scope
@Scope
@MustBeDocumented
@kotlin.annotation.Retention(AnnotationRetention.RUNTIME)
annotation class MainScope
| 0 | Kotlin | 2 | 2 | c06351e0dbb6280c31e551dcd76231c975e5d593 | 164 | How-to-Build-Android-Apps-with-Kotlin-Third-Edition | MIT License |
backend.native/tests/codegen/lateinit/notInitialized.kt | mano7onam | 122,908,795 | true | {"Kotlin": 4630329, "C++": 803727, "Groovy": 137600, "C": 119742, "Objective-C++": 66838, "Swift": 29084, "JavaScript": 19411, "Shell": 11621, "Batchfile": 7004, "Python": 4775, "Objective-C": 3532, "Pascal": 1698, "Java": 782, "HTML": 185} | package codegen.lateinit.notInitialized
import kotlin.test.*
class A {
lateinit var s: String
fun foo() = s
}
@Test fun runTest() {
val a = A()
try {
println(a.foo())
}
catch (e: RuntimeException) {
println("OK")
return
}
println("Fail")
} | 0 | Kotlin | 0 | 12 | d5169f2370a6b20ae91fc31999fe5ebefcb4344d | 299 | kotlin-native | Apache License 2.0 |
app/src/main/java/io/kamara/xkcd/daily/utils/InjectorUtils.kt | ernestkamara | 190,932,635 | false | null | package io.kamara.xkcd.daily.utils
import android.content.Context
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import com.google.gson.stream.JsonReader
import io.kamara.xkcd.daily.data.Comic
import io.kamara.xkcd.daily.data.ComicDao
import timber.log.Timber
object InjectorUtils {
fun seedD... | 0 | Kotlin | 0 | 0 | e72437806525965b1dda827a9a7c554b9efaa87f | 1,008 | xkcd-daily | Apache License 2.0 |
app/src/main/java/com/example/legostore_kt/domain/usecase/FirebaseRegisterUseCase.kt | proyeckt | 583,807,261 | false | null | package com.example.legostore_kt.domain.usecase
import com.example.legostore_kt.domain.repository.AuthRepository
import com.example.legostore_kt.util.Resource
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import javax.inject.Inject
class FirebaseRegisterUseCase @Inject constructor(
priva... | 0 | Kotlin | 0 | 0 | b6880ea524d4ba1b4c1ac8f54c7f0527b56df236 | 772 | lego-store-kt | Apache License 2.0 |
desktop/gui/src/main/kotlin/com/soyle/stories/theme/valueOppositionWebs/ValueOppositionWebsViewModel.kt | Soyle-Productions | 239,407,827 | false | null | package com.soyle.stories.theme.valueOppositionWebs
data class ValueOppositionWebsViewModel(
val valueWebs: List<ValueWebItemViewModel>,
val selectedValueWeb: ValueWebItemViewModel?,
val oppositionValues: List<OppositionValueViewModel>,
val errorMessage: String?,
val errorSource: String?
)
class V... | 45 | Kotlin | 0 | 9 | 1a110536865250dcd8d29270d003315062f2b032 | 633 | soyle-stories | Apache License 2.0 |
src/main/kotlin/io/github/aedans/katalyst/data/Nu.kt | aedans | 111,855,619 | false | null | package io.github.aedans.katalyst.data
import arrow.*
import arrow.core.Eval
import arrow.core.Eval.Now
import arrow.typeclasses.Functor
import io.github.aedans.katalyst.Coalgebra
import io.github.aedans.katalyst.typeclasses.*
/**
* Type level combinator for obtaining the greatest fixed point of a type.
* This type... | 1 | Kotlin | 1 | 22 | f6385ff282b1dc3ce8231b9506474f1621ada2fd | 1,398 | Katalyst | MIT License |
features-floating-view/src/main/kotlin/com/mindstix/floatingview/Util.kt | AbhijeetKMindstix | 875,198,323 | false | {"Kotlin": 312707} | package com.mindstix.floatingview
import android.content.Context
import android.content.res.Resources
import android.graphics.Bitmap
import android.graphics.Rect
import android.provider.Settings
import android.view.View
import android.view.ViewTreeObserver
import androidx.core.content.ContextCompat
import androidx.cor... | 0 | Kotlin | 0 | 0 | c0f5206e8ad3366f696fe6405923376db1e269ad | 2,528 | Alvin | MIT License |
opencola-server/core/model/src/main/kotlin/io/opencola/model/PostEntity.kt | johnmidgley | 441,008,781 | false | {"Kotlin": 1130580, "Java": 851281, "Dart": 181759, "Clojure": 111662, "CSS": 61393, "HTML": 42666, "Shell": 17124, "Swift": 14391, "JavaScript": 10218, "PowerShell": 8360, "Ruby": 1586, "Dockerfile": 654, "Objective-C": 38} | /*
* Copyright 2024 OpenCola
*
* 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 ... | 18 | Kotlin | 1 | 3 | b296f54f81e529bdb8bf7b01c36e20aa20f579ff | 1,657 | opencola | Apache License 2.0 |
orchestration/src/main/java/ru/flowernetes/orchestration/data/provider/LogFileNameProviderImpl.kt | b1nd | 252,335,785 | false | null | package ru.flowernetes.orchestration.data.provider
import org.springframework.stereotype.Component
import ru.flowernetes.entity.workload.Workload
import ru.flowernetes.util.file.DATE_TIME_FILE_FORMAT_PATTERN
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
@Component
class LogFileNameProviderI... | 0 | Kotlin | 1 | 2 | 8eef7e3324642fa4b26a69be69525d79a4873ea4 | 663 | flowernetes | MIT License |
lib/src/main/java/com/example/lib/models/expressions/ExpressionSyntax.kt | pako1 | 426,321,101 | false | {"Kotlin": 53180} | package com.example.lib.models.expressions
import com.example.lib.models.SyntaxNode
abstract class ExpressionSyntax : SyntaxNode() | 0 | Kotlin | 1 | 1 | 18ee512eebdcd60b439826b0f219f2b976d20859 | 132 | The_Calculator | Apache License 2.0 |
app/src/main/java/com/example/projetfinal/adapter/SettingsAdapter.kt | pietersdavid | 359,259,597 | false | null | package com.example.projetfinal.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.recyclerview.widget.RecyclerView
import com.example.p... | 0 | Kotlin | 0 | 0 | 001408f84585d5bca5aea5f294c17675c727f6a7 | 1,993 | ProjetFinal | MIT License |
game/domain/src/main/kotlin/com/delbel/bullscows/game/domain/core/Secret.kt | matiasdelbel | 252,494,245 | false | null | package com.delbel.bullscows.game.domain.core
data class Secret(
val first: Int,
val second: Int,
val third: Int,
val fourth: Int
) {
init {
val secret = listOf(first, second, third, fourth).distinct()
require(secret.count() == 4) { "The four-digit secret number must be all differe... | 4 | Kotlin | 0 | 0 | 3ecbbfc6d01793709434334a8a71e81cbc799023 | 461 | bulls-and-cows | Apache License 2.0 |
app/src/main/java/com/dinhlam/sharebox/dialog/folder/confirmpassword/FolderConfirmPasswordDialogFragment.kt | dinhlamvn | 532,200,939 | false | null | package com.dinhlam.sharebox.dialog.folder.confirmpassword
import android.content.DialogInterface
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.text.HtmlCompat
import androidx.core.view.isVisible
import androidx.core.widget.doAft... | 0 | Kotlin | 0 | 0 | 347aec31d96bf9a73bf293b86bc4c930a7199055 | 4,251 | sharebox | MIT License |
mobile/src/main/kotlin/io/ashdavies/cinnamon/android/TimeFormatter.kt | ashdavies | 90,190,822 | false | {"Kotlin": 28151, "Java": 16365} | package io.ashdavies.cinnamon.android
import io.ashdavies.cinnamon.R
import java.text.SimpleDateFormat
import java.util.*
import java.util.concurrent.TimeUnit
import javax.inject.Inject
internal class TimeFormatter private constructor(private val resolver: StringResolver, private val format: SimpleDateFormat) : Strin... | 0 | Kotlin | 2 | 0 | d1cd3077eb5a7049c4869e4b36b3d1015953fdcd | 954 | cinnamon | Apache License 2.0 |
mobile/src/main/kotlin/io/ashdavies/cinnamon/android/TimeFormatter.kt | ashdavies | 90,190,822 | false | {"Kotlin": 28151, "Java": 16365} | package io.ashdavies.cinnamon.android
import io.ashdavies.cinnamon.R
import java.text.SimpleDateFormat
import java.util.*
import java.util.concurrent.TimeUnit
import javax.inject.Inject
internal class TimeFormatter private constructor(private val resolver: StringResolver, private val format: SimpleDateFormat) : Strin... | 0 | Kotlin | 2 | 0 | d1cd3077eb5a7049c4869e4b36b3d1015953fdcd | 954 | cinnamon | Apache License 2.0 |
app/src/test/kotlin/ai/flowstorm/core/runtime/DialogueScriptTest.kt | flowstorm | 327,536,541 | false | {"Kotlin": 670822, "Shell": 4198, "Dockerfile": 697, "Batchfile": 207, "Python": 111} | package ai.flowstorm.core.runtime
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import ai.flowstorm.core.Input
import ai.flowstorm.core.dialogue.*
import ai.flowstorm.core.type.DateTime
import ai.flowstorm.core.type.Dynamic
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
internal class D... | 1 | Kotlin | 5 | 9 | 53dae04fa113963d632ea4d44e184885271b0322 | 3,563 | core | Apache License 2.0 |
intellij-plugin-verifier/verifier-intellij/src/main/java/com/jetbrains/pluginverifier/usages/internal/kotlin/KtInternalMethodUsage.kt | JetBrains | 3,686,654 | false | {"Kotlin": 2524497, "Java": 253600, "CSS": 1454, "JavaScript": 692} | /*
* Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.jetbrains.pluginverifier.usages.internal.kotlin
import com.jetbrains.pluginverifier.results.location.Location
import com.jetbrains.plu... | 6 | Kotlin | 38 | 178 | 4deec2e4e08c9ee4ce087697ef80b8b327703548 | 2,665 | intellij-plugin-verifier | Apache License 2.0 |
src/main/java/at/petrak/hexcasting/common/casting/mishaps/MishapNoSpellCircle.kt | Noobulus | 479,910,974 | false | null | package at.petrak.hexcasting.common.casting.mishaps
import at.petrak.hexcasting.api.spell.SpellDatum
import at.petrak.hexcasting.common.casting.CastingContext
import at.petrak.hexcasting.common.casting.colors.FrozenColorizer
import net.minecraft.network.chat.Component
import net.minecraft.world.item.DyeColor
class Mi... | 1 | null | 1 | 1 | fd206287f685261aa257957f6a4eb634db46630f | 768 | HexMod | MIT License |
vehicleMap/src/main/java/at/sunilson/vehicleMap/domain/GetVehicleLocations.kt | sunilson | 271,761,302 | false | null | package at.sunilson.vehicleMap.domain
import at.sunilson.chargetracking.domain.GetAllChargeTrackingPoints
import at.sunilson.core.usecases.FlowUseCase
import at.sunilson.vehiclecore.domain.entities.Location
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.map
import javax.inject.Inject
internal clas... | 0 | Kotlin | 0 | 5 | 75577b1923d2141f9724b9d7d6b1ddb34ec7e877 | 656 | Zoe | Apache License 2.0 |
compiler/testData/diagnostics/tests/checkArguments/twoLambdasFunction.fir.kt | android | 263,405,600 | false | null | // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER
// !WITH_NEW_INFERENCE
fun test(x: () -> Unit, y: () -> Unit) {
}
fun main() {
test {
1
} {
2
}
} | 0 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 182 | kotlin | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/implementations/OpModeRunner.kt | WHHSFTC | 210,018,554 | false | {"Java": 82689, "Kotlin": 66796} | package org.firstinspires.ftc.teamcode.implementations
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode
import com.qualcomm.robotcore.hardware.HardwareMap
import org.firstinspires.ftc.robotcore.external.Telemetry
import org.firstinspires.ftc.teamcode.interfaces.OpModeIF
abstract class OpModeRunner: LinearO... | 1 | null | 1 | 1 | 00e4e257d0cfcda55cae82fae606998735e3b091 | 753 | 19-20_season | MIT License |
src/test/kotlin/com/github/wfxr/geolocator/TestBase.kt | wfxr | 148,144,266 | false | {"Gradle": 2, "Shell": 2, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Java Properties": 1, "Kotlin": 17, "Java": 1, "XML": 1} | package com.github.wfxr.geolocator
typealias LocateFunctor = (Double, Double) -> Region<AdTag>?
internal abstract class TestBase {
companion object {
val CONCURRENCY = Runtime.getRuntime().availableProcessors() / 2 + 1
}
abstract val geoLocator: IGeoLocator<AdTag>
} | 0 | Kotlin | 0 | 1 | 372c015cc996aad561ea1713c3bed6277927a706 | 289 | geo-locator | MIT License |
airbyte-notification/src/test/kotlin/io/airbyte/notification/SendGridEmailNotificationSenderTest.kt | bleuproton | 623,861,576 | true | {"Java Properties": 2, "YAML": 195, "Dotenv": 6, "Ignore List": 24, "INI": 19, "Gradle": 43, "Shell": 59, "Markdown": 65, "EditorConfig": 1, "TOML": 2, "Batchfile": 1, "Text": 33, "XML": 29, "Java": 1133, "Dockerfile": 17, "JSON with Comments": 3, "JSON": 179, "JavaScript": 17, "NPM Config": 2, "HTML": 5, "Git Attribut... | package io.airbyte.notification
import com.sendgrid.Request
import com.sendgrid.Response
import io.micronaut.email.EmailException
import io.micronaut.email.EmailSender
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import jav... | 0 | Java | 0 | 0 | 3c0b1d857cca92b7c8413e3633b6251014450520 | 1,396 | airbyte-platform | MIT License |
src/main/kotlin/dev/shtanko/algorithms/leetcode/TwoOutOfThree.kt | ashtanko | 203,993,092 | false | null | /*
* Copyright 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 4 | null | 0 | 19 | 776159de0b80f0bdc92a9d057c852b8b80147c11 | 1,986 | kotlab | Apache License 2.0 |
app/src/main/java/com/example/studenchat/authentication/AuthenticationViewModel.kt | mourchidimfoumby | 726,650,487 | false | {"Kotlin": 91910} | package com.example.studenchat.authentication
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.studenchat.authentication.domain.LogInWithEmailPasswordUseCase
import com.example.studenchat.authentication.domain.SignUpUseCase
import com.e... | 8 | Kotlin | 0 | 0 | 4e799afe812be93f4b98ffd8c6275bef549eccca | 1,345 | studentchat | Apache License 2.0 |
app/src/main/java/com/halilkrkn/chatchef/presentation/FavoriteScreen/FavoriteItemDeletionDialog.kt | halilkrkn | 801,687,576 | false | {"Kotlin": 114335} | package com.halilkrkn.chatchef.presentation.FavoriteScreen
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
... | 0 | Kotlin | 5 | 0 | d995d1a5aa596f0a50bcf6c5e08c61461b941c09 | 2,070 | Papara-Group-Project | Apache License 2.0 |
appcues/src/test/java/com/appcues/AppcuesScopeTest.kt | appcues | 413,524,565 | false | null | package com.appcues
import com.appcues.rules.KoinScopeRule
import org.koin.core.component.KoinScopeComponent
import org.koin.core.scope.Scope
import org.koin.test.KoinTest
internal interface AppcuesScopeTest : KoinTest, KoinScopeComponent {
val koinTestRule: KoinScopeRule
override val scope: Scope
ge... | 5 | Kotlin | 2 | 9 | 142edcda6a0cfbc3d17356be18d99701f2790375 | 347 | appcues-android-sdk | MIT License |
app/src/main/java/io/tanlnm/my/weather/core/extension/CoroutinesExt.kt | tanlnm512 | 765,975,271 | false | {"Kotlin": 43380} | @file:JvmMultifileClass
@file:JvmName("CoroutinesExt")
package io.tanlnm.my.weather.core.extension
import android.os.Handler
import android.os.Looper
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModel
import androidx.lifecycle.lifecycleScope
import androidx.lifecycle.viewModelScope
import kotli... | 0 | Kotlin | 0 | 0 | 60361d57eefe3cc60d4f85e1b9f4939f40f4b93c | 887 | my_weather | Apache License 2.0 |
app/src/test/java/com/ditta/worldbeers/BeerModelUnitTest.kt | pierreNtakka | 594,388,214 | false | null | package com.ditta.worldbeers
import com.ditta.worldbeers.model.Beer
import com.ditta.worldbeers.model.GsonProvider
import com.ditta.worldbeers.model.Unit
import com.google.gson.reflect.TypeToken
import org.junit.Assert.assertEquals
import org.junit.Test
class BeerModelUnitTest {
@Test
fun fromJson() {
... | 0 | Kotlin | 0 | 0 | fa3674905f7f148b4c6824ec9798883c237b79ed | 2,544 | worldbeers | MIT License |
ActivityLifeCycleTest/app/src/main/java/com/example/activitylifecycletest/DialogActivity.kt | SummerEcchi | 520,792,948 | false | {"Kotlin": 129653} | package com.example.activitylifecycletest
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class DialogActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.dialog_activity)
}
} | 0 | Kotlin | 0 | 0 | ab13b01912b023119311603ec9e8ad33b8a5aaa1 | 318 | First-line-of-code | Apache License 2.0 |
source-code/final-project/app/src/main/java/com/droidcon/tinyinvoice/ui/business/BusinessListScreen.kt | droidcon-academy | 733,026,693 | false | {"Kotlin": 441934} | package com.droidcon.tinyinvoice.ui.business
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androi... | 0 | Kotlin | 0 | 0 | 4b2b45ef5bead5c7a68a9ffc01cb962c59b3ee99 | 3,905 | android-mc-sqldelight | Apache License 2.0 |
modules/wasm-binary/src/commonMain/kotlin/tree/instructions/SimdMinInstruction.kt | wasmium | 761,480,110 | false | {"Kotlin": 597834, "JavaScript": 203} | package org.wasmium.wasm.binary.tree.instructions
import org.wasmium.wasm.binary.tree.Opcode
import org.wasmium.wasm.binary.visitors.ExpressionVisitor
public class SimdMinInstruction(public override val opcode: Opcode) : NoneInstruction {
override fun accept(expressionVisitor: ExpressionVisitor) {
express... | 0 | Kotlin | 0 | 3 | 9664a7c5c9bf1652ee4e8dab1bbceffebd0869ca | 371 | wasmium-wasm-binary | Apache License 2.0 |
SharedCode/src/commonMain/kotlin/AdvancedSearchContract.kt | Peter4137 | 294,098,735 | true | {"Kotlin": 32316, "Swift": 17193} | package com.jetbrains.handson.mpp.mobile
import kotlinx.coroutines.CoroutineScope
interface AdvancedSearchContract {
interface View {
fun showAlertMessage(alertMessage: String)
fun submitAdvancedSearch()
}
abstract class Presenter: CoroutineScope {
abstract fun onViewTaken(view: V... | 0 | Kotlin | 0 | 0 | 04b20891fbe7f93d42e574f1817380d58a001b91 | 414 | mpp-ios-android | Apache License 2.0 |
app/src/main/java/com/example/tt_fooddelivery_2/data/repository/sharedpreferences/SharedPref.kt | ASkalashnikov | 778,309,435 | false | {"Kotlin": 23288} | package com.example.tt_fooddelivery_2.data.repository.sharedpreferences
import android.content.Context
import android.content.SharedPreferences
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class SharedPref @Inject constructor() {
private lateinit var sharedPreferences: SharedPreferences
... | 0 | Kotlin | 0 | 0 | 5b03be0aa69c96fd2009c088587180e3a3ce093e | 998 | FoodDelivery_2 | Apache License 2.0 |
app/src/main/java/com/example/foodexplore/utils/Constants.kt | esipiderman | 497,187,924 | false | {"Kotlin": 19450} | package com.example.foodexplore.utils
const val URL_PIC = "https://dunijet.ir/YaghootAndroidFiles/DuniFoodSimple/food" | 0 | Kotlin | 0 | 0 | 963183e848a99152adcd2b238a3f20fe31639c9b | 119 | food_explore | MIT License |
app/src/main/java/com/example/newtest/SplashActivity.kt | lingyun1120 | 647,204,607 | false | null | package com.example.newtest
import android.content.Intent
import android.os.Bundle
import android.widget.ImageView
import androidx.appcompat.app.AppCompatActivity
class SplashActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
se... | 0 | Kotlin | 0 | 0 | 49285d4a3dbf8e8d148b1bf61036ae5170975c0f | 664 | MyNewTest | Apache License 2.0 |
src/main/kotlin/org/mechdancer/filters/signal/EnergySignal.kt | MechDancer | 144,807,668 | false | null | package org.mechdancer.filters.signal
import org.mechdancer.algebra.core.Vector
import org.mechdancer.algebra.function.vector.div
import org.mechdancer.algebra.function.vector.times
import org.mechdancer.algebra.implement.vector.toListVector
import org.mechdancer.filters.algebra.Complex
import org.mechdancer.filters.a... | 0 | Kotlin | 0 | 1 | d266ccb7b4e704c90ffcba9a5b4a0fce55bd5be0 | 2,407 | filters | Do What The F*ck You Want To Public License |
src/main/java/com/littlelito/wzry/item/RiMian.kt | LittleLito | 395,302,530 | false | null | package com.littlelito.wzry.item
import com.google.common.collect.ImmutableMultimap
import com.google.common.collect.Multimap
import net.minecraft.client.item.TooltipContext
import net.minecraft.entity.EquipmentSlot
import net.minecraft.entity.attribute.EntityAttribute
import net.minecraft.entity.attribute.EntityAttri... | 0 | Kotlin | 0 | 0 | 4703b93fbd0b2deeae4e51f9fa04042412828643 | 2,464 | Wzry-Fabric | MIT License |
app/src/main/java/app/droidster/App.kt | rahulsainani | 204,154,398 | false | null | package app.droidster
import android.app.Application
import template.di.AppComponentProvider
import template.di.component.ApplicationComponent
import template.di.component.DaggerApplicationComponent
import timber.log.Timber
class App : Application(), AppComponentProvider {
private val applicationComponent by laz... | 0 | Kotlin | 1 | 19 | 05042ab2b78ab980b293db785faf643947b1cbd0 | 745 | android-template | Apache License 2.0 |
kotlin-source/src/test/kotlin/eloc/Main.kt | nitesh7sid | 133,824,467 | true | {"JavaScript": 10346712, "Kotlin": 126920, "HTML": 979, "Batchfile": 866} | package eloc
import com.wildfire.contract.PledgeContract
import com.wildfire.flow.CashFlow.Issue
import com.wildfire.flow.PledgeFlow.InitiatePledge
import com.wildfire.state.PledgeState
import net.corda.core.identity.CordaX500Name
import net.corda.core.messaging.startFlow
import net.corda.core.utilities.getOrThrow
imp... | 0 | JavaScript | 0 | 0 | 06b7b3ab27e91f2e48219958ac65060a8248c0be | 3,877 | LetterOfCredit | Apache License 2.0 |
src/main/java/ink/ptms/zaphkiel/api/Model.kt | Bkm016 | 228,311,359 | false | null | package ink.ptms.zaphkiel.api
import taboolib.library.configuration.ConfigurationSection
/**
* @author sky
* @since 2019-12-25 8:07
*/
class Model(val config: ConfigurationSection) | 1 | Kotlin | 13 | 20 | bc83c7eb794d444477f20778db43a6e5cc7c7084 | 185 | Zaphkiel | MIT License |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/submission/ui/testresults/negative/RATResultNegativeFragment.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.submission.ui.testresults.negative
import android.os.Bundle
import android.view.View
import androidx.appcompat.content.res.AppCompatResources.getDrawable
import androidx.core.text.bold
import androidx.core.text.buildSpannedString
import androidx.core.view.isGone
import androidx.fragment.ap... | 136 | Kotlin | 503 | 2,442 | a1110d3d0906273936ef1db7e8024ec581f8dfbc | 7,145 | cwa-app-android | Apache License 2.0 |
android/src/main/java/com/tangem/RNTangemSdk/RNTangemSdkModule.kt | XRPL-Labs | 316,205,012 | false | null | package com.tangem.RNTangemSdk
import android.app.Activity
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.nfc.NfcAdapter
import android.os.Handler
import android.os.Looper
import com.facebook.react.bridge.*
import... | 0 | Kotlin | 2 | 5 | 73f13612151744451178379350f2a9b972d11bb7 | 16,194 | tangem-sdk-react-native | MIT License |
feature-search/src/main/java/de/niklasbednarczyk/nbweather/feature/search/screens/overview/models/SearchOverviewLocationModel.kt | NiklasBednarczyk | 529,683,941 | false | {"Kotlin": 1402977} | package de.niklasbednarczyk.nbweather.feature.search.screens.overview.models
import de.niklasbednarczyk.nbweather.core.common.coordinates.NBCoordinatesModel
import de.niklasbednarczyk.nbweather.core.common.locale.NBCountryType
import de.niklasbednarczyk.nbweather.core.common.string.NBString
import de.niklasbednarczyk.... | 11 | Kotlin | 0 | 1 | 1c4618d2b2a00a1739f210cb2b067147e7635224 | 1,910 | NBWeather | MIT License |
src/test/kotlin/org/mechdancer/algebra/matrix/TestMatrixEquals.kt | MechDancer | 128,765,281 | false | null | package org.mechdancer.algebra.matrix
import org.junit.Assert
import org.junit.Test
import org.mechdancer.algebra.implement.matrix.ListMatrix
import org.mechdancer.algebra.implement.matrix.builder.*
class TestMatrixEquals {
@Test
fun testMatrixEquals() {
val a = matrix {
row(1, 2, 3)
row(3, 2, 1)
}
val... | 1 | null | 1 | 6 | 2cbc7e60b3cd32f46a599878387857f738abda46 | 1,328 | linearalgebra | Do What The F*ck You Want To Public License |
ComposeStarter/app/src/main/java/com/example/android/wearable/composestarter/presentation/MainActivity.kt | android | 192,007,253 | false | {"Kotlin": 376081, "Shell": 1164} | /*
* 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 applica... | 30 | Kotlin | 573 | 1,122 | 473b9ffe4866fe592d6944c419eaf498ed9efccc | 8,752 | wear-os-samples | Apache License 2.0 |
compose/foundation/foundation/src/skikoTest/kotlin/androidx/compose/foundation/copyPasteAndroidTests/textfield/TextFieldUndoTest.kt | VexorMC | 838,305,267 | false | {"Kotlin": 104238872, "Java": 66757679, "C++": 9111230, "AIDL": 628952, "Python": 306842, "Shell": 199496, "Objective-C": 47117, "TypeScript": 38627, "HTML": 28384, "Swift": 21386, "Svelte": 20307, "ANTLR": 19860, "C": 15043, "CMake": 14435, "JavaScript": 6457, "GLSL": 3842, "CSS": 1760, "Batchfile": 295} | /*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 2 | 9730aa39ce1cafe408f28962a59b95b82c68587f | 3,850 | compose | Apache License 2.0 |
feature-account-impl/src/main/java/io/novafoundation/nova/feature_account_impl/domain/startCreateWallet/StartCreateWalletInteractor.kt | novasamatech | 415,834,480 | false | {"Kotlin": 11112596, "Rust": 25308, "Java": 17664, "JavaScript": 425} | package io.novafoundation.nova.feature_account_impl.domain.startCreateWallet
import io.novafoundation.nova.feature_account_api.domain.interfaces.AccountRepository
import io.novafoundation.nova.feature_account_api.domain.model.AddAccountType
import io.novafoundation.nova.feature_account_impl.domain.account.add.AddAccou... | 14 | Kotlin | 30 | 50 | 166755d1c3388a7afd9b592402489ea5ca26fdb8 | 1,755 | nova-wallet-android | Apache License 2.0 |
src/main/kotlin/com/pretzel/core/ast/statement/Loop.kt | compiler-hacker-gal | 392,916,416 | false | null | /*
* Loop.kt
*
* Copyright 2021 apachejuice
* This file is part of Pretzel
*
* 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>
*
*... | 0 | Kotlin | 0 | 7 | bcdf776a064113b8128f03415a96fbcbea5813c5 | 871 | pretzel | Apache License 2.0 |
jsonSchema-to-taxi/src/test/java/lang/taxi/generators/jsonSchema/JsonSchemaTaxiGeneratorTest.kt | taxilang | 601,101,781 | false | null | package lang.taxi.generators.jsonSchema
import com.google.common.io.Resources
import com.winterbe.expekt.should
import lang.taxi.TaxiDocument
import lang.taxi.generators.GeneratedTaxiCode
import lang.taxi.generators.Logger
import lang.taxi.testing.TestHelpers
import org.everit.json.schema.loader.SchemaLoader
import or... | 8 | null | 5 | 75 | b94c71c7c8751c05c4f466c58c4483dac3f2e421 | 5,554 | taxilang | Apache License 2.0 |
monetisation/admob/src/main/kotlin/dev/teogor/ceres/monetisation/admob/formats/AdId.kt | teogor | 555,090,893 | false | {"Kotlin": 1313201} | /*
* Copyright 2023 teogor (<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 agree... | 3 | Kotlin | 4 | 61 | a75a53e70073e3969d1d7f418e142a2171423bd6 | 1,603 | ceres | Apache License 2.0 |
app/src/main/java/srthk/pthk/smsforwarder/services/ServiceBinding.kt | srthkpthk | 277,882,075 | false | null | package srthk.pthk.smsforwarder.services
import android.app.Service
import android.content.Intent
import android.os.IBinder
import android.widget.Toast
class ServiceBinding : Service() {
override fun onBind(p0: Intent?): IBinder? {
TODO("Not yet implemented")
}
override fun onStartCommand(intent:... | 0 | Kotlin | 3 | 4 | 9947e143cd2ecaec506851f7095fb5520d42db9f | 853 | SmsForwarder | MIT License |
src/main/kotlin/com/framstag/taskdown/config/ConfigLoader.kt | Framstag | 313,106,280 | false | null | package com.framstag.taskdown.config
import com.squareup.moshi.Moshi
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import java.nio.file.Files
import java.nio.file.Path
fun getConfigPath(): Path {
return when (System.getProperty("os.name")) {
"Linux" -> Path.of(System.getProperty("user.... | 10 | Kotlin | 0 | 2 | 7661958eca28798a5aa5af007e31c39fb6a7b956 | 834 | taskdown | Apache License 2.0 |
components/src/main/java/com/example/components/SearchUi.kt | prdp89 | 391,939,601 | false | null | package com.example.components
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.A... | 0 | Kotlin | 0 | 1 | 651bd0b582f4b8844181c253cd7a5018d096a648 | 4,999 | Trending-Git | MIT License |
app/src/main/java/be/digitalia/fosdem/viewmodels/LiveViewModel.kt | cbeyls | 15,915,146 | false | null | package be.digitalia.fosdem.viewmodels
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.switchMap
import androidx.paging.PagedList
import androidx.paging.toLiveData
import be.digitalia.fosdem.db.ScheduleDao
import be.digitalia.fosdem.livedata.LiveDataFactory
import be.di... | 16 | Kotlin | 93 | 123 | ace3e53bf4d9afa32959ed0279152608b016572e | 1,219 | fosdem-companion-android | Apache License 2.0 |
idea/testData/checker/regression/createInnerInstance.kt | erokhins | 44,854,854 | true | {"Markdown": 33, "XML": 665, "Ant Build System": 45, "Ignore List": 7, "Git Attributes": 1, "Kotlin": 20967, "Java": 4534, "Protocol Buffer": 7, "Text": 4663, "JavaScript": 63, "JAR Manifest": 3, "Roff": 46, "Roff Manpage": 11, "INI": 17, "HTML": 152, "Groovy": 23, "Java Properties": 14, "Maven POM": 49, "Gradle": 74, ... | object A {
class B
fun foo() = 1
object Bar{}
}
fun <T> test(a: T) {
val c = (a as A)
c.<error descr="[NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE] Nested class 'B' accessed via instance reference">B</error>()
} | 0 | Java | 0 | 1 | ff00bde607d605c4eba2d98fbc9e99af932accb6 | 225 | kotlin | Apache License 2.0 |
cli/src/main/kotlin/io/outfoxx/sunday/generator/CommonGenerateCommand.kt | outfoxx | 336,954,223 | false | null | /*
* Copyright 2020 Outfox, Inc.
*
* 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 ... | 5 | Kotlin | 0 | 0 | fc867b628645d071cffe9e891a909eb0c6011beb | 3,344 | sunday-generator | Apache License 2.0 |
app/src/main/kotlin/com/octo/mob/octomeuh/settings/screen/SettingsActivity.kt | rpradal | 61,704,332 | false | null | package com.octo.mob.octomeuh.settings.screen
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.MenuItem
import com.octo.mob.octomeuh.R
import com.octo.mob.octomeuh.settings.injection.SettingsComponent
import com.octo.mob.octomeuh.settings.model.RepetitionModeDescription
impo... | 2 | Kotlin | 1 | 1 | 28a873d52b9196e886eb42e44f30e28530d921b7 | 2,963 | OCTOMeuh | MIT License |
demo/src/main/java/com/bluelinelabs/conductor/demo/controllers/TransitionDemoController.kt | bluelinelabs | 54,057,611 | false | {"Gradle": 8, "INI": 6, "Markdown": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "EditorConfig": 1, "Text": 2, "TOML": 1, "XML": 42, "Java": 36, "Kotlin": 59, "YAML": 1, "Proguard": 2} | package com.bluelinelabs.conductor.demo.controllers
import android.os.Bundle
import android.view.Gravity
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import androidx.annotation.ColorRes
import androidx.annotation.DimenRes
import androidx.core.content.ContextCompat
import and... | 113 | Java | 343 | 3,897 | 56bff9a5cf93818c53fb38874834fbfcbe3e4eb9 | 5,240 | Conductor | Apache License 2.0 |
frogorecyclerview/src/main/java/com/frogobox/recycler/base/parent/ParentFrogoRecyclerViewHolder.kt | kaditya679 | 330,675,318 | true | {"Kotlin": 120886, "Java": 9765} | package com.frogobox.recycler.base.parent
import android.view.View
import androidx.recyclerview.widget.RecyclerView
/*
* Created by Faisal Amir
* =========================================
* FrogoRecyclerViewAdapter
* Copyright (C) 29/04/2020.
* All rights reserved
* ---------------------------------------... | 0 | null | 0 | 0 | 6345d2b3352222284e767d40eea88b153b6a267e | 1,315 | frogo-recycler-view | Apache License 2.0 |
noc-component/src/main/kotlin/dreamdiary/noc/shard/validation/Validation.kt | 9o-clock | 614,695,442 | false | {"Kotlin": 17529} | package pcloud.dp.shard.validation
import dreamdiary.noc.shard.exception.ValidationException
import jakarta.validation.ConstraintViolation
import kotlin.reflect.KClass
import kotlin.reflect.full.primaryConstructor
inline fun <T, reified X : RuntimeException> Set<ConstraintViolation<T>>.isNotEmptyToThrow(e: KClass<out... | 0 | Kotlin | 2 | 0 | 6bf38dcf450a994bc393d230d1741df6faf381f2 | 762 | 9o-clock-server | Apache License 2.0 |
apps/etterlatte-gyldig-soeknad/src/main/kotlin/no/nav/etterlatte/Application.kt | navikt | 417,041,535 | false | null | package no.nav.etterlatte
import no.nav.etterlatte.gyldigsoeknad.barnepensjon.FordeltSoeknadRiver
import no.nav.etterlatte.gyldigsoeknad.barnepensjon.GyldigSoeknadService
import no.nav.etterlatte.gyldigsoeknad.config.AppBuilder
import no.nav.etterlatte.gyldigsoeknad.omstillingsstoenad.InnsendtSoeknadRiver
import no.na... | 8 | null | 0 | 6 | 6985addd7f73fe6f0a42d8371daacc4620a47faf | 904 | pensjon-etterlatte-saksbehandling | MIT License |
Extensions/Cryptography/src/main/kotlin/net/sourcebot/module/cryptography/Cryptography.kt | TridiumX | 291,694,662 | true | {"Kotlin": 141837} | package net.sourcebot.module.cryptography
import net.sourcebot.Source
import net.sourcebot.api.module.SourceModule
import net.sourcebot.module.cryptography.commands.Base64Command
import net.sourcebot.module.cryptography.commands.OngCommand
import net.sourcebot.module.cryptography.commands.digest.*
class Cryptography ... | 0 | Kotlin | 0 | 0 | 13382f1b45c8056bb5b81247cedc5412373c713f | 714 | Source | MIT License |
core/src/main/kotlin/materialui/components/backdrop/enum/BackdropStyle.kt | subroh0508 | 167,797,152 | false | null | package materialui.components.backdrop.enum
@Suppress("EnumEntryName")
enum class BackdropStyle {
root,
invisible
} | 14 | Kotlin | 27 | 81 | a959a951ace3b9bd49dc5405bea150d4d53cf162 | 124 | kotlin-material-ui | MIT License |
agent-transport/src/jvmMain/kotlin/com/epam/drill/agent/transport/RetryingAgentMetadataSender.kt | Drill4J | 598,096,157 | false | {"Kotlin": 1590897, "C": 329462, "C++": 295093, "HTML": 5568} | /**
* Copyright 2020 - 2022 EPAM Systems
*
* 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 agree... | 3 | Kotlin | 0 | 1 | 18f114e4c13495f767b66d33f0a414550dd8ab53 | 2,519 | lib-jvm-shared | Apache License 2.0 |
src/main/kotlin/cash/andrew/hodlr/http/coinbase/model/PaymentMethod.kt | AndrewReitz | 217,333,127 | false | null | package cash.andrew.hodlr.http.coinbase.model
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class PaymentMethod(
val id: String,
val type: String,
val name: String,
val currency: String
) | 1 | Kotlin | 0 | 1 | 14ddb83727c4dfa4da8879cb961cef9b6208804e | 251 | hodlr | MIT License |
app/src/main/java/com/wikicious/app/core/providers/Translator.kt | wikicious | 717,459,357 | false | {"Kotlin": 4486264, "Shell": 6082, "Ruby": 1350} | package com.wikicious.app.core.providers
import androidx.annotation.StringRes
import com.wikicious.app.core.App
object Translator {
fun getString(@StringRes id: Int): String {
return App.instance.localizedContext().getString(id)
}
fun getString(@StringRes id: Int, vararg params: Any): String {
... | 0 | Kotlin | 0 | 0 | 158361905a41305ac04599180a0080f0a20817c9 | 397 | wikicious-wallet-android | MIT License |
app/src/main/java/com/tory/dmzj/utils/FileUtils.kt | ToryCrox | 126,707,444 | false | null | package com.tory.dmzj.utils
import android.content.Context
import android.os.Environment
import android.text.format.Formatter
import java.io.File
import java.util.ArrayList
import java.util.Arrays
import java.util.Collections
/**
* @Author: tory
* Create: 2017/9/2
*/
object FileUtils {
val SIZE_KB = 1024
... | 0 | Kotlin | 0 | 0 | 757716bd6e93e0576a69cc6c12f304795e8ff272 | 4,108 | Dmzj | Apache License 2.0 |
app/src/main/java/com/shopapp/ui/account/di/AuthComponent.kt | rubygarage | 105,554,295 | false | null | package com.shopapp.ui.account.di
import com.shopapp.ui.account.*
import dagger.Subcomponent
@Subcomponent(modules = [AuthModule::class])
interface AuthComponent {
fun inject(fragment: AccountFragment)
fun inject(activity: SignUpActivity)
fun inject(activity: SignInActivity)
fun inject(activity: F... | 6 | Kotlin | 100 | 148 | 133b0060626a064b437683c3f0182d2bb3066bdb | 493 | shopapp-android | Apache License 2.0 |
auth-ui/src/main/java/com/google/android/horologist/auth/ui/common/screens/streamline/StreamlineSignInScreen.kt | google | 451,563,714 | false | null | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 57 | Kotlin | 42 | 326 | ce831bc967787c6264e61d339d9ba51f768b2b4d | 2,953 | horologist | Apache License 2.0 |
store/hbase/src/commonMain/kotlin/maryk/datastore/hbase/helpers/setCountValue.kt | marykdb | 290,454,412 | false | {"Kotlin": 3323903, "JavaScript": 1004} | package maryk.datastore.hbase.helpers
import maryk.core.extensions.bytes.calculateVarByteLength
import maryk.core.extensions.bytes.writeVarBytes
import maryk.datastore.shared.TypeIndicator
fun countValueAsBytes(value: Int) = ByteArray(value.calculateVarByteLength() + 1).also { bytes ->
bytes[0] = TypeIndicator.No... | 1 | Kotlin | 1 | 8 | 4c3b0fe79975b9a3e2f8fa9e429f2734e3ace634 | 419 | maryk | Apache License 2.0 |
multiplatformchart/src/commonMain/kotlin/at/maximilianproell/multiplatformchart/common/Calculations.kt | maximilianproell | 601,025,311 | false | {"Kotlin": 60884, "Swift": 606} | package at.maximilianproell.multiplatformchart.common
import androidx.compose.ui.geometry.Size
internal fun xValueOffset(
xValue: Float,
minXData: Float,
maxXData: Float,
size: Size,
): Float {
val length = if (maxXData == minXData) 1f else maxXData - minXData
val normalizedX = (xValue - minXD... | 0 | Kotlin | 0 | 1 | bf6b4cd227f225fc9645124fa9918f829f1f770c | 371 | compose-multiplatform-chart | Apache License 2.0 |
test-suite-kotlin/src/test/kotlin/io/micronaut/docs/httpclientexceptionbody/BooksController.kt | swanandvk | 295,730,530 | true | {"Java": 8459831, "Groovy": 3832488, "Kotlin": 402935, "Shell": 31796, "HTML": 143} | /*
* Copyright 2017-2020 original 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 applicable law or agre... | 0 | null | 0 | 1 | 8c6c499ccf68085ccd2b303092c82c1444ae022d | 1,519 | micronaut-core | Apache License 2.0 |
app/src/androidTest/java/com/example/wigilabs/ui/main/movie/ScreenMovieTest.kt | rovargas15 | 504,692,026 | false | {"Kotlin": 102787} | package com.example.wigilabs.ui.main.movie
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.onAllNodesWithTag
import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.onNodeWithText
import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
import com.exa... | 0 | Kotlin | 0 | 0 | a052c045f501e7399a68e3cb4453716f1aadc097 | 5,554 | Wigilabs | Apache License 2.0 |
src/main/kotlin/me/adriianhdev/plutotems/module/internal/command/impl/ReloadCommand.kt | Adriianh | 590,503,165 | false | null | package me.adriianhdev.plutotems.module.internal.command.impl
import me.adriianhdev.plutotems.common.plugin.PluTotemsLoader
import org.bukkit.command.CommandSender
import taboolib.common.platform.command.subCommand
import taboolib.platform.util.sendLang
val reloadCommand = subCommand {
execute<CommandSender> { se... | 0 | Kotlin | 0 | 3 | bd7715df281afd48893324616e9efd5781673186 | 600 | PluTotems | Creative Commons Zero v1.0 Universal |
data/src/main/java/es/mnmapp/aolv/data/repository/images/ImagesDataRepository.kt | aolivafaura | 98,424,220 | false | null | /*
* Copyright 2018 @ https://github.com/aolivafaura
*
* 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 b... | 0 | Kotlin | 0 | 1 | a09e3dc3849f5630a90ccbee46e5deeba41eefd3 | 2,342 | meneameapp | Apache License 2.0 |
app/src/main/java/com/fireblocks/sdkdemo/log/filelogger/CommaFormatter.kt | fireblocks | 690,587,303 | false | {"Kotlin": 545776, "HTML": 788} | package com.fireblocks.sdkdemo.log.filelogger
import java.text.SimpleDateFormat
import java.util.*
/**
* Created by Fireblocks Ltd. on 18/09/2023
*/
class CommaFormatter private constructor() : LogFormatter {
companion object {
val instance = CommaFormatter()
}
override fun format(priority: Int... | 2 | Kotlin | 2 | 0 | 5f673ebecbcb206f646649bd0865567bd6da782d | 629 | android-ncw-demo | MIT License |
aesi/src/main/kotlin/com/virtlink/editorservices/syntaxcoloring/ISyntaxColoringService.kt | Virtlink | 90,153,785 | false | {"Git Config": 1, "Diff": 1, "Markdown": 1139, "Text": 2, "Ignore List": 19, "Makefile": 3, "YAML": 3, "Gradle": 21, "INI": 6, "Kotlin": 221, "Handlebars": 1, "Shell": 1, "ANTLR": 2, "XML": 5, "Maven POM": 7, "JAR Manifest": 4, "Java": 60, "Gemfile.lock": 1, "Ruby": 1, "SCSS": 1, "JSON with Comments": 2, "JSON": 6} | package com.virtlink.editorservices.syntaxcoloring
import com.virtlink.editorservices.ICancellationToken
import com.virtlink.editorservices.Span
import java.net.URI
/**
* Colors (part of) a document.
*/
interface ISyntaxColoringService {
/**
* Configures the service.
*/
fun configure(configuratio... | 1 | null | 1 | 1 | f7af2531913d9809f3429c0d8e3a82fb695d5ba4 | 783 | aesi | Apache License 2.0 |
src/main/java/dev/mikchan/mcnp/motd/events/creator/IEventManagerCreator.kt | MikChanNoPlugins | 723,544,621 | false | {"Kotlin": 22072} | package dev.mikchan.mcnp.motd.events.creator
import dev.mikchan.mcnp.motd.MOTDPlugin
import dev.mikchan.mcnp.motd.events.manager.IEventManager
interface IEventManagerCreator {
fun build(plugin: MOTDPlugin): IEventManager
}
| 0 | Kotlin | 0 | 0 | d8abc26d9863ecb3c460446301ee3efc7f4bfdf4 | 229 | MOTD | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.