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/app/Launch.kt | ImSamhel | 340,679,268 | false | null | package app
import tornadofx.launch
fun main(args :Array<String>) {
launch<Application>()
} | 0 | Kotlin | 0 | 0 | 230e0c46751dc48bd0bdc3405c9dafb0061c3265 | 97 | Tornado-Sort | Apache License 2.0 |
src/test/kotlin/mcx/pass/ParseTests.kt | mcenv | 558,700,207 | false | null | package mcx.pass
import mcx.ast.ModuleLocation
import mcx.ast.Surface.Definition
import mcx.ast.Surface.Module
import mcx.ast.Surface.Term
import mcx.lsp.Ranged
import mcx.pass.frontend.Parse
import org.eclipse.lsp4j.Position
import org.eclipse.lsp4j.Range
import kotlin.test.Test
import kotlin.test.assertEquals
objec... | 74 | Kotlin | 0 | 4 | 9c0991d3041340cc28981afc61377f5e36a90997 | 1,620 | mcx | MIT License |
api/src/main/kotlin/nebulosa/api/atlas/SkyAtlasUpdateTask.kt | tiagohm | 568,578,345 | false | {"Kotlin": 2761408, "TypeScript": 508981, "HTML": 243110, "JavaScript": 120539, "SCSS": 11332, "Python": 2817, "Makefile": 290} | package nebulosa.api.atlas
import nebulosa.api.database.MainDatabaseMigrator
import nebulosa.api.database.SkyDatabaseMigrator
import nebulosa.api.message.MessageService
import nebulosa.api.preference.PreferenceService
import nebulosa.log.e
import nebulosa.log.i
import nebulosa.log.loggerFor
import okhttp3.OkHttpClient... | 23 | Kotlin | 2 | 4 | e144290464c5e6e2e18ad23a036526800428e7f9 | 3,936 | nebulosa | MIT License |
src/shmp/lang/generator/util/WordClusters.kt | ShMPMat | 240,860,070 | false | null | package shmp.lang.generator.util
import shmp.lang.language.lexis.Meaning
import shmp.random.UnwrappableSSO
import shmp.random.testProbability
import java.io.File
import kotlin.random.Random
data class WordClusterContainer(val clusters: List<WordCluster>)
data class WordCluster(val meanings: List<WordClusterInstance... | 0 | Kotlin | 0 | 1 | 1096dfa274f72282ff7286e2421ab5f43ac99147 | 1,372 | LanguageGenerator | MIT License |
rx-collection/src/main/kotlin/com/zyhang/rxcollection/FlowableSubscribeUnpacks.kt | izyhang | 108,808,937 | false | {"Kotlin": 63337, "Java": 750} | package com.zyhang.rxcollection
import io.reactivex.Flowable
import io.reactivex.annotations.CheckReturnValue
import io.reactivex.disposables.Disposable
/**
* ProjectName:RxCollection
* Description:
* Created by zyhang on 2017/10/30.下午3:18
* Modify by:
* Modify time:
* Modify remark:
*/
@CheckReturnValue
fun ... | 0 | Kotlin | 0 | 1 | 1bdf62fcba36a691e49b378b558acd80ef3ab1fe | 6,933 | RxCollection | Apache License 2.0 |
app/src/main/java/com/btm/swiftkt/mvp/model/LoginViewModel.kt | wangbolocojoy | 280,407,940 | false | {"Gradle": 4, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Kotlin": 70, "XML": 55, "Java": 4, "INI": 1, "JSON": 54} | package com.btm.swiftkt.mvp.model
import BaseResponse
import com.btm.swiftkt.bean.LoginModel
import com.btm.swiftkt.mvp.contract.LoginViewContract
import io.reactivex.Observable
import okhttp3.RequestBody
import java.util.*
/**
* @Auther: hero
* @datetime: 2020/7/17 23:52
* @desc:
* @项目: SwiftKt
*/
class LoginVi... | 1 | null | 1 | 1 | 4177a2a07955ec032e94fa33ba6d5ca47c825935 | 864 | SwiftKt | MIT License |
gcloud-logging-pubsub/src/main/kotlin/io/patiently/gcloud/pubsub/obj/LogEntry.kt | patiently | 364,315,058 | false | null | package io.patiently.gcloud.pubsub.obj
import com.google.gson.JsonObject
data class LogEntry(
val logName: String?,
val resource: MonitoredResource,
val timestamp: String?,
val receivedTimestamp: String?,
val severity: LogSeverity?,
val insertId: String?,
val httpRequest: HttpRequest?,
... | 0 | Kotlin | 1 | 3 | 3dda87fee2c67d939a9446f3b457bd1f479d297c | 1,752 | gcloud-slack-logger | MIT License |
src/Day06.kt | RichardLiba | 572,867,612 | false | null | fun main() {
fun findFirstUniqueIndex(length: Int, input: String): Int {
var foundMarker = ""
input.forEachIndexed { index, c ->
val temp = foundMarker + c
if (temp.toSet().size == length && temp.length == length) {
return index + 1
} else {
... | 0 | Kotlin | 0 | 0 | 6a0b6b91b5fb25b8ae9309b8e819320ac70616ed | 839 | aoc-2022-in-kotlin | Apache License 2.0 |
services/csm.cloud.project.project/src/main/kotlin/com/bosch/pt/iot/smartsite/project/project/shared/model/dto/NameByIdentifierDto.kt | boschglobal | 805,348,245 | false | {"Kotlin": 13156190, "HTML": 274761, "Go": 184388, "HCL": 158560, "Shell": 117666, "Java": 52634, "Python": 51306, "Dockerfile": 10348, "Vim Snippet": 3969, "CSS": 344} | /*
* ************************************************************************
*
* Copyright: <NAME> Power Tools GmbH, 2018 - 2022
*
* ************************************************************************
*/
package com.bosch.pt.iot.smartsite.project.project.shared.model.dto
import java.util.UUID
data... | 0 | Kotlin | 3 | 9 | 9f3e7c4b53821bdfc876531727e21961d2a4513d | 500 | bosch-pt-refinemysite-backend | Apache License 2.0 |
door-runtime/src/commonMain/kotlin/com/ustadmobile/door/jdbc/ext/ConnectionExt.kt | UstadMobile | 344,538,858 | false | {"Kotlin": 1047087, "JavaScript": 1100, "HTML": 430, "Shell": 89} | package com.ustadmobile.door.jdbc.ext
import com.ustadmobile.door.jdbc.Connection
inline fun <R> Connection.useConnection(
block: (Connection) -> R
) : R {
try {
return block(this)
}finally {
close()
}
}
| 5 | Kotlin | 1 | 162 | 4f1807ced7b418d9bc96fbbe0c0cbd821596e29c | 238 | door | Apache License 2.0 |
app/src/main/java/dev/adolar0042/libauth/repository/HomeRepository.kt | Adolar0042 | 683,256,950 | false | null | package dev.adolar0042.libauth.repository
interface HomeRepository {
fun loadData(): String
}
| 0 | Kotlin | 0 | 0 | 8a2bbbe2f05d9373867901f85b312a0d300207a3 | 99 | Libauth | MIT License |
app/src/main/java/com/senemyalin/jetpackcomposetraining/presentation/screens/categorycontent/CategoryContentViewModel.kt | senemyalin | 703,683,141 | false | {"Kotlin": 82780} | package com.senemyalin.jetpackcomposetraining.presentation.screens.categorycontent
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.senemyalin.jetpackcomposetra... | 0 | Kotlin | 0 | 0 | a260a882c613061d53b489c5b582bb5fb5324ef5 | 2,234 | JetpackComposeTraining | MIT License |
app/src/main/java/com/chen/newsplash/mainactivity/adapter/viewholder/PhotoViewHolder.kt | chenyaoyang | 199,146,520 | false | null | package com.chen.newsplash.mainactivity.adapter.viewholder
import android.animation.ObjectAnimator
import android.graphics.Color
import android.graphics.drawable.GradientDrawable
import android.view.View
import android.widget.ImageButton
import android.widget.ImageView
import android.widget.TextView
import androidx.re... | 0 | Kotlin | 0 | 0 | 84eac27555879262a2f7abb9dfd4e678f3fc7d8f | 2,793 | NewSplash | Apache License 2.0 |
app/src/main/java/com/hoc/comicapp/activity/SplashActivity.kt | hoc081098 | 170,987,604 | false | null | package com.hoc.comicapp.activity
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.hoc.comicapp.activity.main.MainActivity
class SplashActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInsta... | 9 | null | 46 | 286 | 77d75578220442762f2b199b619222e89aac974d | 519 | ComicReaderApp_MVI_Coroutine_RxKotlin_Jetpack | MIT License |
styringsinfo/src/test/kotlin/no/nav/helse/spre/styringsinfo/teamsak/UventedeHendelserTest.kt | navikt | 342,325,871 | false | {"Kotlin": 573342, "Dockerfile": 168} | package no.nav.helse.spre.styringsinfo.teamsak
import no.nav.helse.spre.styringsinfo.teamsak.behandling.Behandling.Behandlingstatus.AVSLUTTET
import no.nav.helse.spre.styringsinfo.teamsak.behandling.BehandlingId
import no.nav.helse.spre.styringsinfo.teamsak.hendelse.Tag
import org.junit.jupiter.api.Assertions.assertEq... | 0 | Kotlin | 2 | 0 | 46a4256d3d58459a18aba73e60d64cfe96d0bcc5 | 1,352 | helse-spre | MIT License |
app/src/main/java/com/example/movieapp/ui/favoritemovies/FavoriteMoviesViewModel.kt | jaumpelicon | 480,804,537 | false | {"Kotlin": 78030} | package com.example.movieapp.ui.favoritemovies
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.movieapp.data.db.DatabaseResult
import com.example.movieapp.data.db.entity.MovieEntity
import com.example.movieapp.data.repository.DatabaseRepository
import com.example.movieap... | 0 | Kotlin | 0 | 0 | 74a6b54f9c694de5885a92241c2604fa32475be7 | 2,080 | movie-app | MIT License |
app/src/test/java/app/trian/tudu/DatabaseTest.kt | trianapp | 452,765,555 | false | null | package app.trian.tudu
import app.trian.tudu.data.local.Category
import app.trian.tudu.data.local.Task
import app.trian.tudu.data.local.Todo
import app.trian.tudu.data.local.TuduDatabase
import app.trian.tudu.ui.theme.HexToJetpackColor
import dagger.hilt.android.testing.HiltAndroidRule
import dagger.hilt.android.testi... | 1 | Kotlin | 2 | 1 | 786d327cf4f6df39ba4cc14cc1adb8ff66ea59bc | 3,397 | tudu | Apache License 2.0 |
app/src/main/java/com/apaluk/wsplayer/ui/dashboard/DashboardMediaItem.kt | apaluk | 651,545,506 | false | null | @file:OptIn(ExperimentalFoundationApi::class, ExperimentalUnitApi::class)
package com.apaluk.streamtheater.ui.dashboard
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.foundation.ExperimentalFoundationApi
i... | 0 | Kotlin | 0 | 0 | aa3fb1bf6f958af2f658e377f1941f7da783460f | 8,168 | ws-player-android | MIT License |
platform/testGuiFramework/src/com/intellij/testGuiFramework/generators/ComponentCodeGenerator.kt | androidports | 115,100,208 | false | null | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* 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... | 6 | null | 1 | 4 | 6e4f7135c5843ed93c15a9782f29e4400df8b068 | 1,266 | intellij-community | Apache License 2.0 |
jvm-agent-common/src/main/kotlin/internal/classTransformer-jvm-agent-common.kt | Anamorphosee | 429,510,239 | false | {"Kotlin": 230504, "Java": 6288} | @file:Suppress("PackageDirectoryMismatch")
package dev.reformator.stacktracedecoroutinator.jvmagentcommon.internal
import dev.reformator.stacktracedecoroutinator.common.internal.BASE_CONTINUATION_CLASS_NAME
import dev.reformator.stacktracedecoroutinator.generator.internal.ClassBodyTransformationStatus
import dev.refo... | 1 | Kotlin | 5 | 192 | 3a9c3ff365735c239a902b66d4fe1a22603e285c | 4,500 | stacktrace-decoroutinator | Apache License 2.0 |
plugins/gradle/testSources/org/jetbrains/plugins/gradle/testFramework/fixtures/application/GradleProjectTestApplication.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.plugins.gradle.testFramework.fixtures.application
import com.intellij.openapi.application.invokeAndWaitIfNeeded
import com.intellij.openapi.roots.impl.libraries.LibraryTableTra... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 2,951 | intellij-community | Apache License 2.0 |
pandora/src/main/java/com/lodz/android/pandora/widget/menu/BottomMenuBar.kt | LZ9 | 137,967,291 | false | {"Kotlin": 2174504} | package com.lodz.android.pandora.widget.menu
import android.annotation.SuppressLint
import android.annotation.TargetApi
import android.content.Context
import android.graphics.Color
import android.os.Build
import android.text.InputFilter
import android.text.InputFilter.LengthFilter
import android.util.AttributeSet
impo... | 0 | Kotlin | 3 | 11 | 91c1f5697ab83e18b2f5531b590ed44f0a382568 | 13,018 | AgileDevKt | Apache License 2.0 |
app/src/main/java/com/example/swiftbargain/ui/offer/OfferScreen.kt | ahmedfikry24 | 814,676,783 | false | {"Kotlin": 480967} | package com.example.swiftbargain.ui.offer
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.founda... | 0 | Kotlin | 0 | 0 | c83e040911380b9f75e35007fff4d04433da7e1e | 4,677 | SwiftBargain | MIT License |
kotlinx-collections-immutable/src/main/kotlin/kotlinx/collections/immutable/implementations/persistentOrderedMap/PersistentOrderedMapBuilder.kt | Cottand | 202,986,565 | true | {"Kotlin": 434963} | /*
* Copyright 2016-2018 JetBrains s.r.o.
*
* 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 | Kotlin | 0 | 0 | a28dd106bdd2ee44fbab1eff43923cc51b13a9e0 | 4,055 | kotlinx.collections.immutable | Apache License 2.0 |
compiler/testData/diagnostics/tests/inner/enumInInnerClass.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | class Outer {
inner class Inner {
<!NESTED_CLASS_NOT_ALLOWED("Enum class")!>enum class TestNestedEnum<!>
}
} | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 124 | kotlin | Apache License 2.0 |
app/src/main/java/com/brandoncano/resistancecalculator/ui/screens/home/HomeComponents.kt | bmcano | 501,427,754 | false | {"Kotlin": 199785} | package com.brandoncano.resistancecalculator.ui.screens.home
import android.content.Context
import androidx.compose.foundation.Image
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.l... | 3 | Kotlin | 0 | 1 | 6e2a2a76fa9df6bf8beb0b3111ef2270e71713ed | 5,421 | ResistanceCalculatorApp | MIT License |
libraries/core/src/commonMain/kotlin/com/utsman/tokobola/core/navigation/Navigation.kt | utsmannn | 668,794,183 | false | null | package com.utsman.tokobola.core.navigation
import androidx.compose.runtime.compositionLocalOf
import com.utsman.tokobola.core.data.LatLon
interface Navigation {
fun back(): Boolean
fun goToDetailProduct(id: Int): Boolean
fun goToDetailCategory(categoryId: Int): Boolean
fun goToDetailBrand(brandId: I... | 0 | Kotlin | 0 | 10 | d3e6f4090e965d991effc55d1e78b6f9c85d6143 | 530 | tokobola | Apache License 2.0 |
core/src/main/java/com/github/offile/permissionshelper/runtime/NeverAskAgain.kt | offile | 338,356,908 | false | null | package com.github.offile.permissionshelper.runtime
import android.content.pm.PackageManager
import androidx.core.content.ContextCompat
import com.github.offile.activityresult.callback.PermissionsResultCallback
import com.github.offile.permissionshelper.core.NeverAskAgainScope
import com.github.offile.permissionshelpe... | 0 | Kotlin | 0 | 0 | 0d65bcb170f15a92f8227e0d348e63c089324dd0 | 2,270 | PermissionsHelper | Apache License 2.0 |
app/src/main/java/com/bangkit/travens/presentation/ui/model/RestaurantCardModel.kt | travens-id | 491,161,325 | false | null | package com.bangkit.travens.presentation.ui.model
import com.bangkit.travens.R
data class RestaurantCardModel(
val restaurantImage: Int,
val restaurantTitle: String
)
val RestaurantCardModelList = listOf(
RestaurantCardModel(
R.drawable.restaurant_1,
"<NAME>"
),
RestaurantCardMode... | 1 | Kotlin | 5 | 9 | 73951d74b48440ae9365d950be4dd1413f39abe8 | 569 | bangkit-mobile-development | MIT License |
kotlinextensions/src/main/java/com/crazylegend/kotlinextensions/misc/MiscExtensions.kt | WendyYanto | 268,332,897 | true | {"Kotlin": 1647884} | package com.crazylegend.kotlinextensions.misc
import android.content.Context
import android.content.pm.FeatureInfo
import androidx.fragment.app.Fragment
import java.util.*
/**
* Created by crazy on 2/25/20 to long live and prosper !
*/
/**
* Creates an [AutoClearedValue] associated with this fragment.
*/
fun <T... | 0 | null | 0 | 1 | b8d665b238fe689c82151d82b865683d78d222f2 | 1,417 | Set-Of-Useful-Kotlin-Extensions-and-Helpers | MIT License |
compiler/testData/diagnostics/testsWithJvmBackend/duplicateJvmSignature/jvmOverloads/jvmOverloads.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // WITH_STDLIB
// !DIAGNOSTICS: -UNUSED_PARAMETER
class A {
@kotlin.jvm.JvmOverloads <!CONFLICTING_JVM_DECLARATIONS!>fun foo(s: String = "") {
}<!>
<!CONFLICTING_JVM_DECLARATIONS!>fun foo() {
}<!>
}
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 217 | kotlin | Apache License 2.0 |
app/src/main/java/pl/mobilespot/futuremirror/presentation/settings/SettingsRoute.kt | susnil | 765,378,250 | false | {"Kotlin": 84624} | package pl.mobilespot.futuremirror.presentation.settings
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
@Composable
fu... | 0 | Kotlin | 0 | 3 | 7f9421f13f704a605568d34449a15150d860b9a4 | 668 | FutureMirror | Apache License 2.0 |
idea/testData/quickfix/migration/lambdaSyntax/afterParanthesizedParameters.kt | pawegio | 33,691,693 | true | {"Markdown": 32, "XML": 662, "Ant Build System": 34, "Ignore List": 8, "Kotlin": 17223, "Java": 4248, "Protocol Buffer": 4, "Text": 3580, "JavaScript": 61, "JAR Manifest": 3, "Roff": 30, "Roff Manpage": 10, "INI": 7, "HTML": 116, "Groovy": 20, "Maven POM": 47, "Gradle": 68, "Java Properties": 9, "CSS": 3, "JFlex": 2, "... | // "Migrate lambda syntax" "true"
val a = { a: Int -> } | 0 | Java | 0 | 0 | e0a394ec62f364a4a96c15b2d2adace32ce61e9e | 57 | kotlin | Apache License 2.0 |
fields/src/commonMain/kotlin/epsilon/FileOutput.kt | aSoft-Ltd | 690,856,749 | false | {"Kotlin": 42112, "HTML": 296, "JavaScript": 200} | @file:JsExport
package epsilon
import kotlinx.JsExport
data class FileOutput(
var url: String? = null,
var updated: Boolean = false,
var info: RawFileInfo? = null,
var file: RawFile? = null
) | 0 | Kotlin | 0 | 1 | 510c1a82f9714f2c0c970b3f6db6242cd1e3c913 | 209 | epsilon-client | MIT License |
library/src/main/java/nl/bryanderidder/themedtogglebuttongroup/ThemedToggleButtonGroup.kt | JENkt4k | 248,616,040 | true | {"Kotlin": 47660} | /**
*
* ThemedToggleButtonGroup
*
* Created by <NAME> on 15/3/20.
* Copyright (c) 2020 <NAME> (<EMAIL>)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, includi... | 0 | null | 0 | 0 | 453a3f263cca0ef6d4a60077fd6f167ca0a3fd98 | 7,134 | themed-toggle-button-group | MIT License |
shared/core/src/wasmJsMain/kotlin/com/paligot/confily/core/events/DbMappers.kt | GerardPaligot | 444,230,272 | false | {"Kotlin": 1068245, "Swift": 126158, "Shell": 1148, "Dockerfile": 576, "HTML": 338, "CSS": 102} | package com.paligot.confily.core.events
import com.paligot.confily.core.extensions.format
import com.paligot.confily.models.EventItemList
import com.paligot.confily.models.EventV3
import kotlinx.datetime.toInstant
import kotlinx.datetime.toLocalDateTime
fun EventV3.convertToModelDb(): EventDb = EventDb(
id = this... | 8 | Kotlin | 6 | 142 | 9e662dae42852915c9bd5a2f2fd1d51fe601eab5 | 1,233 | Confily | Apache License 2.0 |
kmongo-coroutine-core-tests/src/main/kotlin/org/litote/kmongo/coroutine/CoroutinePublisherTest.kt | Litote | 58,964,537 | false | null | /*
* Copyright (C) 2016/2022 Litote
*
* 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 ... | 42 | null | 74 | 797 | 4ee6939272ca54a342955130ae6d98eb947ace01 | 1,335 | kmongo | Apache License 2.0 |
core/src/main/java/dev/pinkroom/walletconnectkit/core/data/Account.kt | pink-room | 440,332,467 | false | {"Kotlin": 105157} | package dev.pinkroom.walletconnectkit.core.data
data class Account(
val topic: String,
val address: String,
val chainNamespace: String,
val chainReference: String,
val name: String? = null,
val icon: String? = null,
) {
val chainId: String get() = "$chainNamespace:$chainReference"
} | 15 | Kotlin | 12 | 71 | 363a4586c0808581945443c0c4028d906b9af309 | 312 | walletconnectkit-android | Apache License 2.0 |
embrace-android-core/src/main/kotlin/io/embrace/android/embracesdk/internal/clock/SystemClock.kt | embrace-io | 704,537,857 | false | {"Kotlin": 2863483, "C": 190133, "Java": 175321, "C++": 13140, "CMake": 4261} | package io.embrace.android.embracesdk.internal.clock
public class SystemClock : Clock {
override fun now(): Long {
return System.currentTimeMillis()
}
}
| 22 | Kotlin | 8 | 133 | e5b92a8e0ed1ea64602b68ec071780369e0ea915 | 170 | embrace-android-sdk | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/assessments/api/GPDetailsAnswerDtoTest.kt | ministryofjustice | 289,880,556 | false | null | package uk.gov.justice.digital.assessments.api
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import uk.gov.justice.digital.assessments.api.answers.GPDetailsAnswerDto
import uk.gov.justice.digital.assessments.restclient.deliusintegrationapi.Name
import uk.gov.justice.digital.assess... | 3 | Kotlin | 1 | 2 | cab6b5fc0cad427d021f49dfd2b47d80fba26d21 | 1,611 | hmpps-assessments-api | MIT License |
app/src/main/java/com/ojhdtapp/action/ui/dialog/VersionDialogFragment.kt | ojhdt | 425,239,290 | false | {"Kotlin": 414237} | package com.ojhdtapp.action.ui.dialog
import android.app.Dialog
import android.os.Bundle
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.DialogFragment
import com.ojhdtapp.action.R
import com.ojhdtapp.action.databinding.AboutDialogBinding
import android.content.pm.PackageManager
import android.... | 0 | Kotlin | 1 | 1 | 4fad043c6e30bf3392f5a7df75c02515db9f712d | 1,740 | Action | MIT License |
app/src/main/java/com/rodrigobresan/samplearchitcturecomponents/livedata/increment/IncrementViewModel.kt | rodrigobressan | 123,714,428 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 41, "XML": 28, "Java": 2} | package com.rodrigobresan.samplearchitcturecomponents.livedata
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.ViewModel
class IncrementViewModel : ViewModel() {
var counter: MutableLiveData<Int> = MutableLiveData()
init {
counter.value = 0
}
fun increment() {
... | 0 | Kotlin | 0 | 1 | 976c8bb0c248147e405ada3707fc3fb7925597cc | 370 | sample_android_architecture_components | Apache License 2.0 |
app/src/main/java/com/arrazyfathan/nytimes/presentation/MainActivity.kt | arrazyfathan | 479,168,487 | false | null | package com.arrazyfathan.nytimes.presentation
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.findNavController
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.fragment.findNavController
import com.arrazyfathan.nytimes.R
import dagger.h... | 0 | Kotlin | 0 | 0 | 611b85767b9e1b8625dcf98c87acdd305e6e8292 | 950 | nytimes-android | The Unlicense |
marudor-client/src/commonMain/kotlin/dev/schlaubi/hafalsch/marudor/entity/HafasJourneyMatch.kt | mikbot | 507,700,947 | false | null | package dev.schlaubi.hafalsch.marudor.entity
import kotlinx.datetime.Instant
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
public data class HafasJourneyMatchRequest(
val trainName: String,
val initialDepartureDate: Instant? = null,
@SerialName("jnyFltrL")... | 1 | Kotlin | 0 | 7 | 24d36aa74f3bdc3c19a4951ff1df93c3ee79f920 | 922 | hafalsch | MIT License |
app/src/main/java/org/stepic/droid/di/profile/ProfileComponent.kt | yogeshmanjhi1993 | 96,096,662 | true | {"Java": 1639224, "Kotlin": 676177, "CSS": 3721, "Shell": 663} | package org.stepic.droid.di.profile
import dagger.Subcomponent
import org.stepic.droid.di.streak.StreakModule
import org.stepic.droid.ui.fragments.ProfileFragment
@ProfileScope
@Subcomponent(modules = arrayOf(StreakModule::class, ProfileModule::class))
interface ProfileComponent {
@Subcomponent.Builder
inter... | 0 | Java | 0 | 0 | dd74a21930ed80afc3e22aac30cc0e24f558a453 | 431 | stepik-android | Apache License 2.0 |
domain/src/commonMain/kotlin/kosh/domain/models/wc/WcProposalAggregated.kt | niallkh | 855,100,709 | false | {"Kotlin": 1845307, "Swift": 768} | package kosh.domain.models.wc
import androidx.compose.runtime.Immutable
import kosh.domain.entities.NetworkEntity
import kosh.domain.serializers.ImmutableSet
import kotlinx.serialization.Serializable
@Serializable
@Immutable
data class WcProposalAggregated(
val proposal: WcProposal,
val networks: ImmutableSet... | 0 | Kotlin | 0 | 3 | 2be90c7ce7775a76d44fac4cae3a6777d6e9c7f7 | 392 | kosh | MIT License |
core/foundation/src/main/kotlin/dev/teogor/ceres/core/foundation/utils/SystemService.kt | teogor | 555,090,893 | false | {"Kotlin": 1324729} | /*
* Copyright 2023 teogor (Teodor Grigor)
*
* 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 o... | 2 | Kotlin | 4 | 62 | 48576bbf21c28c200d18167d0178125c2d5c239a | 1,136 | ceres | Apache License 2.0 |
room/room-compiler/src/test/test-data/kotlinCodeGen/queryResultAdapter_array.kt | androidx | 256,589,781 | false | null | import androidx.room.RoomDatabase
import androidx.room.util.getColumnIndexOrThrow
import androidx.room.util.performBlocking
import androidx.sqlite.SQLiteStatement
import javax.`annotation`.processing.Generated
import kotlin.Array
import kotlin.Int
import kotlin.Long
import kotlin.LongArray
import kotlin.Short
import ko... | 29 | null | 1011 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 5,414 | androidx | Apache License 2.0 |
android/Library/Owner/app/src/main/java/com/pradyotprakash/libraryowner/data/repositories/AppConfigRepositoryImplementation.kt | pradyotprksh | 385,586,594 | false | {"Kotlin": 2932498, "Dart": 1066884, "Python": 319755, "Rust": 180589, "Swift": 149003, "C++": 113494, "JavaScript": 103891, "CMake": 94132, "HTML": 57188, "Go": 45704, "CSS": 18615, "SCSS": 17864, "Less": 17245, "Ruby": 13609, "Dockerfile": 9772, "C": 8043, "Shell": 7657, "PowerShell": 3045, "Nix": 2616, "Makefile": 1... | package com.pradyotprakash.libraryowner.data.repositories
import com.pradyotprakash.libraryowner.data.services.appconfig.AppConfigService
import com.pradyotprakash.libraryowner.domain.repositories.AppConfigRepository
import kotlinx.coroutines.flow.Flow
class AppConfigRepositoryImplementation(
private val appConfi... | 0 | Kotlin | 11 | 24 | a31e612a63e1dc42ed4cf2f50db90b8613fb5177 | 467 | development_learning | MIT License |
sdk/src/main/java/com/pplink/pagecall/sdk/Pagecall.kt | pplink | 416,254,023 | false | {"Kotlin": 10279} | package com.pplink.pagecall.sdk
import android.Manifest
import android.app.Activity
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
impor... | 0 | Kotlin | 0 | 0 | 2e618e12c30b50c7608fd49066b152cb5247d0a7 | 6,504 | pagecall-android-sdk-legacy | Apache License 2.0 |
compiler/testData/codegen/bytecodeListing/inline/InlineReifiedMultifile.kt | JetBrains | 3,432,266 | false | null | // IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
@file:[JvmName("Foo") JvmMultifileClass]
package test
fun foo() {
inlineReified<String>()
}
public inline fun <reified T> inlineReified() {}
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 190 | kotlin | Apache License 2.0 |
plugins/gitlab/src/org/jetbrains/plugins/gitlab/api/dto/GitLabUserRestDTO.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.plugins.gitlab.api.dto
import com.intellij.openapi.util.NlsSafe
class GitLabUserRestDTO(
val id: String,
val username: String,
val name: @NlsSafe String,
val avatarUrl... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 353 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/android/hilt/di/NavigationModule.kt | PandaGeek1024 | 285,960,802 | false | null | package com.example.android.hilt.di
import android.content.Context
import androidx.room.Room
import com.example.android.hilt.data.AppDatabase
import com.example.android.hilt.data.User
import com.example.android.hilt.navigator.AppNavigator
import com.example.android.hilt.navigator.AppNavigatorImpl
import dagger.Binds
i... | 0 | Kotlin | 0 | 0 | f96febe8fe232997032516ad1e7e744905421ab6 | 1,017 | AndroidHilt | Apache License 2.0 |
alarmClockFeature/src/main/java/com/yes/alarmclockfeature/presentation/ui/datepicker/DatePickerAdapter.kt | Yeroshin | 561,680,210 | false | {"Kotlin": 655371} | package com.yes.alarmclockfeature.presentation.ui.datepicker
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.yes.alarmclockfeature.R
import java.util.Collections
class DatePickerAdapte... | 0 | Kotlin | 2 | 2 | b4389943c051917d3f3ab6c2fcdb534d9747d2da | 1,484 | YES_MusicPlayer | MIT License |
app/src/main/kotlin/com/mgaetan89/showsrage/fragment/SettingsServerApiKeyFragment.kt | codeworxzw | 55,804,458 | false | null | package com.mgaetan89.showsrage.fragment
import android.preference.Preference
import android.preference.PreferenceManager
import android.preference.PreferenceScreen
import android.support.v7.app.AlertDialog
import com.mgaetan89.showsrage.R
import com.mgaetan89.showsrage.model.ApiKey
import com.mgaetan89.showsrage.netw... | 1 | null | 1 | 1 | 762061cc752c213f902d510d3961b40c0c6acf8a | 2,933 | ShowsRage | Apache License 2.0 |
transferwise/src/main/java/com/transferwise/banks/quote/api/DefaultQuoteWebService.kt | JeroenMols | 335,055,882 | true | {"Kotlin": 448648} | /*
* Copyright 2019 TransferWise Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 0 | null | 0 | 1 | ea0aa12bca3f1c15fbaad29c62b36893d7ce09a6 | 977 | banks-reference-android | Apache License 2.0 |
server/src/test/kotlin/com/booleworks/boolerules/computations/modelenumeration/ModelEnumerationTest.kt | booleworks | 721,827,334 | false | {"Kotlin": 1495831, "JavaScript": 835976, "Vue": 132739, "TypeScript": 50565, "Java": 32652, "ANTLR": 15836, "Lex": 3646, "CSS": 2243, "Shell": 1735, "Dockerfile": 681, "Scheme": 505} | package com.booleworks.boolerules.computations.modelenumeration
import com.booleworks.boolerules.TestConfig
import com.booleworks.boolerules.TestWithConfig
import com.booleworks.boolerules.computations.generic.ComputationStatusBuilder
import com.booleworks.boolerules.computations.generic.ComputationVariant.LIST
import... | 0 | Kotlin | 0 | 1 | 5c7d858a5358adfa0ce3c274bb74eb6b181f5949 | 10,929 | boolerules | MIT License |
src/main/kotlin/io/verik/intellij/inspection/common/AbstractVerikInspection.kt | defvs | 479,306,908 | false | null | /*
* SPDX-License-Identifier: Apache-2.0
*/
package io.verik.intellij.inspection.common
import com.intellij.codeInspection.ProblemsHolder
import com.intellij.psi.PsiElementVisitor
import org.jetbrains.kotlin.idea.inspections.AbstractKotlinInspection
import org.jetbrains.kotlin.psi.KtFile
import org.jetbrains.kotlin... | 0 | Kotlin | 1 | 0 | e4fbc4e00457ac9a506467938510db9eee91a491 | 1,213 | verik-intellij | Apache License 2.0 |
android/app/src/main/java/bg/crc/roamingapp/notifications/NotificationForZone.kt | nelivanova | 443,035,318 | true | {"Kotlin": 308009, "Java": 259847, "TypeScript": 200185, "HTML": 95111, "JavaScript": 74716, "CSS": 4924, "PLpgSQL": 4314} | package bg.crc.roamingapp.notifications
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.app.TaskStackBuilder
import android.content.Context
import android.content.Intent
import android.media.AudioAttributes
import android.media.RingtoneManag... | 0 | null | 0 | 0 | afba722d8d25d2cd6bd1806378bc06a19b2c4c73 | 4,496 | crc-roaming | Apache License 2.0 |
app/src/main/java/bruhcollective/itaysonlab/jetisteam/ui/theme/Theme.kt | iTaysonLab | 529,265,880 | false | {"Kotlin": 665372} | package bruhcollective.itaysonlab.jetisteam.ui.theme
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.dynamicDarkColorScheme
import androidx.compose.material... | 2 | Kotlin | 4 | 87 | 04fb50f721342bbec5efea17cf681fba37114993 | 1,495 | jetisteam | Apache License 2.0 |
app/src/main/java/com/github/ferum_bot/podlodcrewcompose/core/models/SessionModel.kt | Ferum-bot | 362,139,914 | false | null | package com.github.ferum_bot.podlodcrewcompose.core.models
import com.squareup.moshi.Json
data class SessionModel(
@Json(name = "id")
val id: Int,
@Json(name = "date")
val date: String,
@Json(name = "description")
val description: String,
@Json(name = "imageUrl")
val imageUrl: Stri... | 0 | Kotlin | 0 | 0 | 029fd258c3341ef70a1cbfd45687684c3b445fc5 | 444 | PodlodkaCrewCompose | Apache License 2.0 |
app/src/main/java/com/anatideo/kotlingofpatterns/creational/abstractfactory/model/Message.kt | anatideo | 211,854,992 | false | null | package com.anatideo.kotlingofpatterns.creational.abstractfactory.model
class Message(
val id: Long,
val text: String
) | 0 | Kotlin | 0 | 0 | 20e7c95a43079b46c6268d03df59f1886be8dc04 | 128 | kotlingofpatterns | Apache License 2.0 |
app/src/main/java/net/cat_ears/kanmusuviewer/model/Start2.kt | veigr | 155,668,775 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Markdown": 2, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "Kotlin": 21, "XML": 23, "Java": 1} | package net.cat_ears.kanmusuviewer.model
import com.squareup.moshi.Json
import com.squareup.moshi.JsonEncodingException
import com.squareup.moshi.Moshi
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
data class Start2(
// @Json(name = "api_result") val apiResult: Int,
// @Json(name = "api_resu... | 0 | Kotlin | 0 | 0 | 95a9e5f7690db88c88726f39c5f868c44fe6e41c | 17,631 | KanMusuViewer.Android | Apache License 2.0 |
idea/idea-new-project-wizard/src/org/jetbrains/kotlin/tools/projectWizard/wizard/service/IdeaGradleWizardService.kt | Ndex471 | 236,524,761 | true | {"Kotlin": 43583583, "Java": 7648290, "JavaScript": 197545, "HTML": 75661, "Lex": 23805, "TypeScript": 21613, "Groovy": 11205, "CSS": 9144, "Shell": 7220, "Batchfile": 5362, "Swift": 2272, "Ruby": 1300, "Objective-C": 404, "Scala": 80} | /*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.tools.projectWizard.wizard.service
import com.intellij.openapi.actionSystem.Acti... | 0 | null | 0 | 1 | f7626d6474bff5fceba8506c37480e8918bd11cf | 2,206 | kotlin | Apache License 2.0 |
strictmodevm/src/release/java/org/bubenheimer/android/os/StrictModeVM.kt | bubenheimer | 76,136,955 | false | {"Kotlin": 7916} | /*
* Copyright (c) 2015-2019 <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 agree... | 0 | Kotlin | 0 | 0 | 8c2f0efa7dd84d561c7d393825a1320d1ef69047 | 1,351 | strictmodeutil | Apache License 2.0 |
00-Kotlin/examen_ib/src/main/kotlin/data/csv/CSVComponentDAO.kt | 2022B-Software-Computacion | 569,303,681 | false | null | package data.csv
import data.dao.ComponentDAO
import data.entities.Component
import java.io.File
import java.io.FileOutputStream
class CSVComponentDAO: ComponentDAO {
private val filePath: String = "src/main/resources/component.csv"
private fun getComponentsFromFile(): List<Component> {
val fileRead... | 0 | Kotlin | 0 | 0 | 47564429c2e7158b9d82735f3d4da10324a1c284 | 3,262 | lozano-estrada-andres-david-mobile-apps | MIT License |
Base/src/main/java/xy/xy/base/widget/photoview/InterpolatorProxy.kt | xiuone | 291,512,847 | false | null | package com.xy.base.widget.photoview
import android.view.animation.DecelerateInterpolator
import android.view.animation.Interpolator
class InterpolatorProxy : Interpolator {
var mTarget: Interpolator = DecelerateInterpolator()
override fun getInterpolation(input: Float): Float {
return mTarget.getInt... | 0 | Kotlin | 1 | 2 | f0778a53355f36d09bf01104d58458232872f223 | 345 | ajinlib | Apache License 2.0 |
Demos/Compose/src/main/kotlin/com/groupdocs/ui/comparison/compose/result/ResultState.kt | groupdocs-comparison | 65,550,714 | false | null | package com.groupdocs.ui.comparison.compose.result
import java.nio.file.Paths
data class ResultState(
val isInProgress: Boolean = true,
val errorMessage: String? = null,
val infoMessage: String? = null,
val sourcePath: String = "",
val targetPath: String = "",
val resultPath: String = "",
... | 5 | null | 9 | 7 | 4d289958d8fc6ab338bbcfca8e82d237b71838be | 446 | GroupDocs.Comparison-for-Java | MIT License |
avd/testSrc/com/android/tools/idea/avd/AdditionalSettingsPanelTest.kt | JetBrains | 60,701,247 | false | {"Kotlin": 52820362, "Java": 39727934, "HTML": 1217714, "Starlark": 1100459, "C++": 507658, "Python": 168311, "C": 71660, "Lex": 70309, "NSIS": 58238, "AIDL": 35382, "Shell": 29480, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2024 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... | 4 | Kotlin | 227 | 940 | bc21afa2fe3f88d1ed106d6d8cae000cf9aa94dd | 5,384 | android | Apache License 2.0 |
app/src/main/java/com/cjras/thepresentmovement/DatabaseExtensionFunctions.kt | jake1970 | 680,827,378 | false | {"Kotlin": 366785} | package com.cjras.thepresentmovement
import android.app.AlertDialog
import android.content.Context
import android.os.Bundle
import android.widget.Toast
import androidx.fragment.app.Fragment
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.google.firebase.auth.FirebaseAuth
import kotlinx.... | 0 | Kotlin | 0 | 0 | f6e20506e0f134be8c78246c37ff7a23e6c968f8 | 13,609 | ThePresentMovement | MIT License |
game/coroutines/src/test/kotlin/org/rsmod/game/coroutines/GameCoroutineSuspendTest.kt | rsmod | 293,875,986 | false | null | package org.rsmod.game.coroutines
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.launch
import kotlinx.coroutines.test.StandardTestDispatcher
import kotlinx.coroutines.test.advanceUntilIdle
import kotlinx.coroutines.test.runTest
import org.junit.j... | 0 | Kotlin | 49 | 55 | 5293efb07c833715f9bd9df4cad6ff9aa68143da | 4,106 | rsmod | ISC License |
app/src/main/java/com/fibelatti/photowidget/configure/PhotoWidgetTapActionPicker.kt | fibelatti | 709,530,733 | false | {"Kotlin": 412053, "Shell": 154} | package com.fibelatti.photowidget.configure
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.BitmapFactory
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
imp... | 5 | Kotlin | 7 | 122 | 3f57f23011117f97853870d1871572e9efb2678f | 15,308 | photo-widget | Apache License 2.0 |
app/src/main/java/pt/mf/ktboy/presentation/container/ContainerViewModel.kt | mferreira-dev | 652,282,974 | false | null | package pt.mf.ktboy.presentation.container
import androidx.lifecycle.ViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import pt.mf.ktboy.utils.empty
class ContainerViewModel : ViewModel() {
data class ContainerViewState(
val isLoading: Boolean = false,
val game... | 0 | Kotlin | 0 | 0 | aafff1b7a014f03bd6884b0bdb790ba08dd733a4 | 674 | ktboy | MIT License |
socket/src/commonMain/kotlin/com/gitee/xuankaicat/kmnkt/socket/utils/Thread.kt | xuankaicat | 466,456,845 | false | null | package com.gitee.xuankaicat.kmnkt.socket.utils
expect class Thread
expect fun mainThread(block: suspend () -> Unit) | 0 | Kotlin | 3 | 7 | 3e12eacecf86306626acf6d79f445a24a7f1c0c7 | 118 | kmnkt | MIT License |
app/src/main/java/com/kotlin/mvvm/repository/paging/PostsPagingDataSource.kt | ukheni50 | 378,783,779 | false | null | package com.kotlin.mvvm.repository.paging
import android.util.Log
import androidx.lifecycle.asLiveData
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.kotlin.mvvm.repository.api.Postservice
import com.kotlin.mvvm.repository.model.posts.Data
class PostsPagingDataSource(private val ser... | 0 | Kotlin | 0 | 0 | 6b85140197d1eacea8985832cc7667c89bb2de3a | 1,185 | kotlin-mvvm-base | MIT License |
app/src/main/kotlin/com/ceh9/portfolio/features/calculator/presentation/models/requests/SquareUiRequest.kt | CeH9 | 202,865,791 | false | null | package com.ceh9.portfolio.features.calculator.presentation.models.requests
/**
* Created by CeH9 on 27.10.2019
*/
data class SquareUiRequest(val first: String) | 0 | Kotlin | 0 | 0 | d4efdcffbee64a02cdb82d73d4f707f322964c40 | 163 | Portfolio | MIT License |
app/src/main/java/com/example/dropy/network/use_case/common/DirectionMineUseCase.kt | dropyProd | 705,360,878 | false | {"Kotlin": 3916897, "Java": 20617} | package com.example.dropy.network.use_case.common
import com.example.dropy.network.models.directions.DirectionRespnse
import com.example.dropy.network.repositories.commons.CommonRepository
import com.example.dropy.ui.utils.Resource
import com.google.android.gms.maps.model.LatLng
import kotlinx.coroutines.flow.Flow
cl... | 0 | Kotlin | 0 | 0 | 6d994c9c61207bac28c49717b6c250656fe4ae6b | 642 | DropyLateNights | Apache License 2.0 |
component-acgschedule/src/main/java/com/rabtman/acgschedule/mvp/presenter/ScheduleOtherPresenter.kt | Rabtman | 129,618,096 | false | {"Gradle": 19, "Text": 2, "Java Properties": 2, "Shell": 1, "Ignore List": 13, "Batchfile": 1, "Markdown": 2, "Proguard": 12, "XML": 163, "Kotlin": 225, "Java": 59, "Gradle Kotlin DSL": 1, "AIDL": 3} | package com.rabtman.acgschedule.mvp.presenter
import com.rabtman.acgschedule.mvp.contract.ScheduleOtherContract
import com.rabtman.acgschedule.mvp.model.jsoup.ScheduleOtherPage
import com.rabtman.business.base.CommonSubscriber
import com.rabtman.common.base.mvp.BasePresenter
import com.rabtman.common.di.scope.Activity... | 2 | Kotlin | 120 | 840 | 9150f3abe50e046afd83cc97cb4415a39b1f1bd1 | 2,919 | AcgClub | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/referenceExpression/enumEntryWithEnumQualifier.kt | JetBrains | 2,489,216 | false | {"Text": 9788, "INI": 517, "YAML": 423, "Ant Build System": 11, "Batchfile": 34, "Dockerfile": 10, "Shell": 633, "Markdown": 750, "Ignore List": 141, "Git Revision List": 1, "Git Attributes": 11, "EditorConfig": 260, "XML": 7904, "SVG": 4537, "Kotlin": 60205, "Java": 84268, "HTML": 3803, "Java Properties": 217, "Gradle... | // "Create enum constant 'A'" "true"
package p
fun foo() = X.<caret>A
enum class X {
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.createFromUsage.createClass.CreateClassFromUsageFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.quickFixes.createFromUsage.CreateKotlinClassAction | 1 | null | 1 | 1 | 0d546ea6a419c7cb168bc3633937a826d4a91b7c | 315 | intellij-community | Apache License 2.0 |
app/src/main/java/com/jagoancoding/tobuy/ui/tobuy/ToBuyFragment.kt | f4ww4z | 138,449,858 | false | {"Gradle": 3, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "JSON": 2, "Kotlin": 14, "XML": 22, "Java": 1, "SVG": 2} | package com.jagoancoding.tobuy.ui.tobuy
import android.app.Activity
import android.app.AlertDialog
import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProviders
import android.os.Bundle
import android.support.design.widget.FloatingActionButton
import android.support.v4.app.Fragment
import and... | 3 | Kotlin | 0 | 1 | 84e174ff8f4575e7e28cecfd5b19066416e24027 | 4,598 | tobuy | MIT License |
zoomimage-compose/src/commonTest/kotlin/com/github/panpf/zoomimage/compose/test/internal/ComposePlatformUtilsAlignmentTest.kt | panpf | 647,222,866 | false | {"Kotlin": 3004367, "Shell": 724} | package com.github.panpf.zoomimage.compose.test.internal
import androidx.compose.ui.Alignment
import androidx.compose.ui.unit.IntOffset
import androidx.compose.ui.unit.IntSize
import androidx.compose.ui.unit.LayoutDirection
import com.github.panpf.tools4j.test.ktx.assertThrow
import com.github.panpf.zoomimage.compose.... | 1 | Kotlin | 7 | 98 | bdc00e862498830df39a205de5d3d490a5f04444 | 7,226 | zoomimage | Apache License 2.0 |
main/src/main/kotlin/dev/younesgouyd/apps/spotifyclient/desktop/main/ui/addtracktofolder/AddTrackToFolderOption.kt | younesgouyd | 771,762,928 | false | {"Kotlin": 339134} | package dev.younesgouyd.apps.spotifyclient.desktop.main.ui.addtracktofolder
import dev.younesgouyd.apps.spotifyclient.desktop.main.ui.models.Folder
data class AddTrackToFolderOption(
val folder: Folder,
val added: Boolean
)
| 0 | Kotlin | 0 | 0 | 44aa44d83de68556df85687bb7d0d321457802ae | 234 | spotify-client-desktop | Apache License 2.0 |
home/ui/src/main/java/com/mitteloupe/whoami/home/ui/content/ConnectedContent.kt | EranBoudjnah | 662,551,018 | false | null | package com.mitteloupe.whoami.home.ui.content
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foun... | 0 | Kotlin | 32 | 73 | 360ab5b232427ecc4fdf20e272732eb0d3c65e39 | 4,865 | CleanArchitectureForAndroid | MIT License |
src/main/kotlin/com/chris/bullseye/system/mapper/AccountRoleMapper.kt | zhouhongxing16 | 399,052,088 | false | null | package com.chris.bullseye.system.mapper
import com.chris.bullseye.basemapper.MPBaseMapper
import com.chris.bullseye.system.pojo.AccountRole
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param
/**
* @author Chris
* @date 2020-12-10 16:06
*/
@Mapper
interface AccountRoleMapper:MPB... | 0 | Kotlin | 0 | 0 | 4e778e61507df96d9e07319c7381bdc616ad325d | 560 | bullseye-admin-kotlin | Apache License 2.0 |
js/js.libraries/src/stdlib/domCode.kt | zeesh49 | 67,883,175 | 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 kotlin.dom
import org.w3c.dom.Document
import org.w3c.dom.Node
deprecated("use declarations from org.w3c.dom instead: create document directly via constructor Document() or use document.implementation.createDocument")
public fun createDocument(): Document = Document()
deprecated("use member property outerHTM... | 0 | Java | 0 | 1 | ff00bde607d605c4eba2d98fbc9e99af932accb6 | 698 | kotlin | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/ec2/EnclaveOptionsPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.ec2
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.ec2.CfnLaunchTemplate
@Generated
public fun buildEnclaveOptionsProperty(initializer: @AwsCdkDsl
CfnLaunchTemplate.EnclaveOptionsPr... | 1 | Kotlin | 0 | 0 | e08d201715c6bd4914fdc443682badc2ccc74bea | 477 | aws-cdk-kt | Apache License 2.0 |
dotmimsync/src/main/java/com/mimetis/dotmim/sync/RowOverSizedException.kt | vunder | 425,091,264 | false | {"Kotlin": 437311} | package com.mimetis.dotmim.sync
class RowOverSizedException(finalFieldSize: String) : Exception("Row is too big ($finalFieldSize kb.) for the current DownloadBatchSizeInKB.") {
}
| 0 | Kotlin | 2 | 0 | dea5c08c78dbae1e74552fafa3d720468b7cfabf | 180 | dotmimsync | MIT License |
goProControllerAndroid/src/main/java/com/bortxapps/goprocontrollerandroid/infrastructure/ble/manager/BleManager.kt | neoBortx | 692,337,190 | false | {"Kotlin": 340760, "Java": 572} | package com.bortxapps.goprocontrollerandroid.infrastructure.ble.manager
import android.annotation.SuppressLint
import android.bluetooth.BluetoothDevice
import android.bluetooth.BluetoothGatt
import android.bluetooth.BluetoothGattCharacteristic
import android.bluetooth.BluetoothGattDescriptor
import android.bluetooth.B... | 0 | Kotlin | 0 | 0 | b79c87b5a8d1f7bccf9918460c4024e1bcf02388 | 15,637 | goProController | Apache License 2.0 |
app/src/main/java/com/alpriest/energystats/ui/flow/PowerFlowTabView.kt | alpriest | 606,081,400 | false | {"Kotlin": 482882} | package com.alpriest.energystats.ui.flow
import android.content.Context
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import ... | 8 | Kotlin | 3 | 3 | e730e5ec4efc4cd32e0aca8d2fbdb548174ffbb7 | 11,645 | EnergyStats-Android | MIT License |
cli/translation-cli/src/main/kotlin/net/thunderbird/cli/translation/LanguageCodeLoader.kt | thunderbird | 1,326,671 | false | null | package net.thunderbird.cli.translation
import net.thunderbird.cli.translation.net.Language
import net.thunderbird.cli.translation.net.Translation
import net.thunderbird.cli.translation.net.WeblateClient
class LanguageCodeLoader(
private val client: WeblateClient = WeblateClient(),
) {
fun loadCurrentAndroidL... | 846 | null | 2467 | 9,969 | 8b3932098cfa53372d8a8ae364bd8623822bd74c | 1,468 | thunderbird-android | Apache License 2.0 |
app/src/main/java/com/connectycube/messenger/viewmodels/CallViewModelFactory.kt | ConnectyCube | 198,286,170 | false | null | package com.connectycube.messenger.viewmodels
import android.app.Application
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.connectycube.messenger.data.UserRepository
class CallViewModelFactory(
private val applicationContext: Application,
private val userRepository... | 9 | null | 23 | 51 | 1b7a8942692791365a0c28140fd673eb7823b7cb | 543 | android-messenger-app | Apache License 2.0 |
src/main/kotlin/com/github/ooftf/androidmvvmgenerator/real/action/MVVMGeneratorAction.kt | ooftf | 328,535,323 | false | null | //
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package com.github.ooftf.androidmvvmgenerator.real.action
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.PlatformDa... | 5 | Kotlin | 1 | 3 | 7a9828f7c243bcca74e5ccaceb323f1b2e93d346 | 9,318 | MVVM-Generator-ooftf | MIT License |
core/src/test/kotlin/run/qontract/core/XMLMatching.kt | subodh2917 | 271,026,708 | true | {"Kotlin": 717956, "Gherkin": 2572} | package run.qontract.core
import run.qontract.core.pattern.StringPattern
import run.qontract.core.utilities.parseXML
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import run.qontract.core.pattern.NumberPattern
import run.qontract.core.value.NumberValue
import run.qontract.core.value.StringV... | 0 | null | 0 | 0 | e490138a11d11b870a23f3bb81885e094c9d3675 | 2,763 | qontract | MIT License |
app/src/main/java/com/example/hilt/dependencies/GasEngine.kt | sdadasdasdwa | 659,055,857 | false | null | package com.example.hilt.dependencies
import javax.inject.Inject
class GasEngine @Inject constructor(): Engine{
override fun start() {
println("Gas engine start.")
}
override fun shutdown() {
println("Gas engine shutdowns.")
}
} | 0 | Kotlin | 0 | 0 | c98186eb3ae1adb83f5dbeb9af43d401e7dc038a | 264 | Hilt | Apache License 2.0 |
app/src/main/java/com/github/corentinc/httpcodescats/ui/screens/httpcodedetails/HttpCodeDetailViewModel.kt | corentin-c | 832,720,683 | false | {"Kotlin": 49031} | package com.github.corentinc.httpcodescats.ui.screens.httpcodedetails
import androidx.lifecycle.ViewModel
import com.github.corentinc.httpcodescats.model.HttpCode
import com.github.corentinc.httpcodescats.repository.IHttpCodesRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.... | 0 | Kotlin | 0 | 0 | 2de22708df498680434c4a224ee0a88219a87eb8 | 1,022 | httpcodescats | MIT License |
spring/break/src/main/kotlin/com/project/break/BreakApplication.kt | lms2002 | 868,402,813 | false | {"Kotlin": 14640} | package com.project.`break`
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class BreakApplication
fun main(args: Array<String>) {
runApplication<BreakApplication>(*args)
}
| 0 | Kotlin | 0 | 0 | 29d78758454246b18ef6dbfcb53341e34c9d151d | 267 | break | Apache License 2.0 |
app/src/main/java/com/sevenpeakssoftware/vijay/presentation/util/NetworkBoundSource.kt | Patelvij05 | 340,574,240 | false | null | package com.sevenpeakssoftware.vijay.presentation.util
import androidx.annotation.MainThread
import androidx.annotation.WorkerThread
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
import io.reactivex.rxjava3.core.Flowable
import io.reactivex.rxjava3.core.Observable
import io.reactivex.rxjava3.schedul... | 0 | Kotlin | 0 | 0 | be11710beeed6259389db213c4b0e785ab2f6f88 | 2,123 | Clean-Cars | MIT License |
sample-baidu/src/main/java/com/melody/bdmap/myapplication/ui/MovementTrackScreen.kt | TheMelody | 543,049,561 | false | {"Kotlin": 1503767} | // MIT License
//
// Copyright (c) 2023 被风吹过的夏天
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, mer... | 2 | Kotlin | 5 | 60 | 8a867728136bdb97f156ce57381437864c196382 | 3,265 | OmniMap-Compose | MIT License |
app/src/main/java/com/theapache64/nemo/feature/productdetail/MoreDetailsAdapter.kt | theapache64 | 280,432,817 | false | null | package com.theapache64.nemo.feature.productdetail
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.theapache64.nemo.data.remote.Product
import com.theapache64.nemo.databinding.ItemMoreDetailsBinding
/**
* Created by theapache64 : Sep 17 Thu... | 7 | Kotlin | 6 | 25 | 0fd14ec3ba3e240f66fe2462ea0541608b69d9d2 | 1,062 | nemo | Apache License 2.0 |
app/src/main/java/com/example/snapchatt/userActivity.kt | ishar10 | 285,362,882 | false | null | package com.example.snapchatt
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.AdapterView
import android.widget.ArrayAdapter
import android.widget.ListView
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.database.ChildE... | 0 | Kotlin | 0 | 0 | 340b9d9bcb6e858446232e87e89b39e968deae54 | 2,524 | snapchat-project | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.