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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/lbdev/bazinga/DetectActivity.kt | lakshaybomotra | 740,570,358 | false | {"Kotlin": 62829} | package com.lbdev.bazinga
import android.appwidget.AppWidgetManager
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.Bundle
import android.util.Base64
import android.util.Log
import a... | 0 | Kotlin | 0 | 1 | 3e17d2389ee4003509bbb1a26e0950acb85ccbd6 | 9,291 | Bazinga | MIT License |
domain/src/main/kotlin/com/k0d4black/theforce/domain/models/Result.kt | odaridavid | 227,998,628 | false | null | /*
*
* Copyright 2020 <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 writi... | 23 | Kotlin | 109 | 635 | 641213f53fc148b154465727d4c3246194a11542 | 676 | Clean-MVVM-ArchComponents | Apache License 2.0 |
vapi4k-core/src/test/kotlin/CallExample.kt | vapi4k | 867,257,277 | false | {"Kotlin": 923800, "JavaScript": 12815, "CSS": 8320, "Mermaid": 1873, "Makefile": 623, "HTML": 51} | /*
* Copyright © 2024 Matthew Ambrose (mattbobambrose@gmail.com)
*
* 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... | 0 | Kotlin | 0 | 0 | f219629ada847ecf166d60ace966adbf254214de | 1,663 | vapi4k | Apache License 2.0 |
inapppurchasessubscription-lib/src/main/java/com/example/inapppurchasessubscription_lib/InAppBillingMessaging.kt | muhammad-ahmed-lib | 843,496,556 | false | {"Kotlin": 33427} | package com.example.inapppurchasessubscription_lib
import com.android.billingclient.api.InAppMessageResult
interface InAppBillingMessaging {
fun onNoActionNeeded(inAppMessageResult: InAppMessageResult)
fun onSubscriptionStatusUpdated(inAppMessageResult: InAppMessageResult)
fun onFailedToReceiveMessages(er... | 0 | Kotlin | 0 | 2 | 8f54de5633ec7d7c35b0eea78b4491a14e9b12d8 | 330 | PlayBillingLibrary | MIT License |
realpack/src/main/java/com/nsyw/realpack/service/Runtime.kt | verygameyth | 775,855,402 | false | {"Kotlin": 38093} | package com.nsyw.realpack.service
object Runtime {
/** 需要过滤自己发的红包 */
var NeedFilterSelf = true
/** 已经授权辅助功能 */
var IsConnected = false
// /** 已暂停 */
// var IsPaused = false
/** 已经授权辅助功能 */
var IsNotificationConnected = false
// /** 已暂停 */
// var IsNotificationPaused = false
}
| 0 | Kotlin | 0 | 0 | c6ebbdb2ec7373e55f795f7275f0b978162eb08f | 318 | RedPackage | Apache License 2.0 |
module/src/main/kotlin/org/ksharp/module/bytecode/FunctionInfoSerializer.kt | ksharp-lang | 573,931,056 | false | null | package org.ksharp.module.bytecode
import org.ksharp.common.add
import org.ksharp.common.io.*
import org.ksharp.common.listBuilder
import org.ksharp.common.mapBuilder
import org.ksharp.common.put
import org.ksharp.module.FunctionInfo
import org.ksharp.module.FunctionVisibility
import org.ksharp.typesystem.annotations.... | 5 | Kotlin | 0 | 0 | ae07aa39eb9bdf13f0b179013ab25a93d289a682 | 2,988 | ksharp-kt | Apache License 2.0 |
app/src/main/java/com/walker/war/ui/home/HomeViewModelFactory.kt | walker0406 | 383,407,541 | false | null | package com.walker.war.ui.home
import android.app.Application
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.walker.war.data.MainRepository
import com.walker.war.newwork.NetworkHelper
/**
* Created by admin on 2021/7/21.
*/
class HomeViewModelFactory(var key: MainReposito... | 0 | Kotlin | 0 | 0 | 495fa94d9a53a64f11ae6adee4c094ae58482555 | 515 | war | Apache License 2.0 |
app/src/main/java/com/workfort/pstuian/app/ui/donors/viewmodel/DonorsViewModel.kt | arhanashik | 411,942,559 | false | {"Kotlin": 1116286} | package com.workfort.pstuian.app.ui.donors.viewmodel
import android.text.TextUtils
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.workfort.pstuian.app.data.local.pref.Prefs
import com.workfort.pstuian.app.data.repository.DonationRepository
import com.workfort.pstuian.app.ui.don... | 0 | Kotlin | 0 | 2 | 9c51ec4d4d477ae739b922c49127ac69844f4d6e | 3,992 | PSTUian-android | Apache License 2.0 |
app/src/main/java/com/example/mycommish/core/presentation/MyCommishApplication.kt | moaliyou | 786,551,198 | false | {"Kotlin": 130836} | package com.example.mycommish.core.presentation
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class MyCommishApplication: Application() | 2 | Kotlin | 1 | 1 | 852aec200d10514ed9fcf7744b4fa0179373899e | 180 | My-Commish | MIT License |
core/src/main/java/rs/rocketbyte/wifisilencer/core/di/RingerWifiModule.kt | izpakla | 584,018,000 | false | null | package rs.rocketbyte.wifisilencer.core.di
import android.app.Application
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import rs.rocketbyte.wifisilencer.core.manager.WifiConnectionListener
import rs.rocketbyte.wifisilencer.core.manager.WifiSi... | 0 | Kotlin | 0 | 0 | 4d75212f2ee904f1e0e6be7623179dd78351e2e1 | 1,796 | wifi-silencer | Apache License 2.0 |
shared/feature/src/commonMain/kotlin/com/moviearchive/feature/presentation/detail/widget/TitleWidget.kt | Adnan9011 | 742,366,441 | false | {"Kotlin": 131984, "Swift": 574} | package com.moviearchive.feature.presentation.detail.widget
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.requiredHeig... | 0 | Kotlin | 1 | 12 | 71895140edd28ee13691a0fbe1fd49baf262a6cc | 1,545 | movie_archive_kmp | MIT License |
rxandroidextensions/src/main/java/com/yxf/rxandroidextensions/lifecycle/ObservableAutoDispose.kt | dqh147258 | 405,631,358 | false | {"Kotlin": 40888} | package com.yxf.rxandroidextensions.lifecycle
import com.yxf.rxandroidextensions.runOnMainThreadSync
import io.reactivex.Observable
import io.reactivex.ObservableSource
import io.reactivex.Observer
import io.reactivex.disposables.Disposable
class ObservableAutoDispose<T>(private val disposeSource: DisposeSource, priv... | 0 | Kotlin | 0 | 3 | 58f8e7ddddbfa99cbdd9f1ee2d02cd71bb750dfc | 1,810 | RxAndroidExtensions | Apache License 2.0 |
app/src/androidTest/java/com/programmergabut/solatkuy/ui/main/view/CompassFragmentTest.kt | jnkforks | 277,870,202 | true | {"Kotlin": 278346} | package com.programmergabut.solatkuy.ui.main.view
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.IdlingRegistry
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.*
import androidx.test.ext.junit.runners.AndroidJUnit4
import an... | 0 | null | 0 | 0 | 0476c527a1f7e6b82ac968e1710ae2bce9154188 | 2,026 | Solat-Kuy-Android-MVVM-with-Coroutine | The Unlicense |
apps/etterlatte-behandling/src/main/kotlin/tilgangsstyring/AzureGroup.kt | navikt | 417,041,535 | false | {"Kotlin": 6875395, "TypeScript": 1696355, "Handlebars": 25499, "Shell": 12687, "HTML": 1734, "CSS": 598, "PLpgSQL": 556, "Dockerfile": 547} | package no.nav.etterlatte.tilgangsstyring
import no.nav.etterlatte.libs.common.EnvEnum
enum class AzureGroup(
val envKey: AzureKey,
) {
ATTESTANT(AzureKey.AZUREAD_ATTESTANT_GROUPID),
ATTESTANT_GJENNY(AzureKey.AZUREAD_ATTESTANT_GJENNY_GROUPID),
SAKSBEHANDLER(AzureKey.AZUREAD_SAKSBEHANDLER_GROUPID),
... | 9 | Kotlin | 0 | 6 | bfc4d2a6577eb204d0859288a180fa873a75a370 | 1,018 | pensjon-etterlatte-saksbehandling | MIT License |
day12/src/main/kotlin/Main.kt | HallerPatrick | 433,816,900 | false | {"Python": 7980, "Nim": 4825, "D": 4824, "Swift": 4036, "Kotlin": 3777, "Java": 3657, "JavaScript": 3655, "PHP": 3620, "Groovy": 3139, "Scala": 3031, "Ruby": 2468, "Zig": 2302, "TypeScript": 2232, "Haskell": 2114, "C++": 2113, "Dart": 1471} | import java.io.File
import kotlin.system.exitProcess
fun main() {
var main = Main()
main.main()
}
class Main {
private var i: Int = 0
private fun readInInput(): List<List<String>> {
val file = "input.txt"
val lines: List<List<String>> = File(file).useLines { it.toList() }.map { i... | 0 | Python | 0 | 0 | 4df56c940f5fcd0b9967e3f8d8f7a80ef251217e | 3,777 | aoc-2021 | MIT License |
core_impl/src/main/java/com/artkachenko/core_impl/usecase/UseCaseModule.kt | ArtemiyTkachenko | 471,678,076 | false | {"Kotlin": 267809} | package com.artkachenko.core_impl.usecase
import com.artkachenko.core_api.usecases.*
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@InstallIn(SingletonComponent::class)
@Module
abstract class UseCaseModule {
@Binds
abstract fun bindConv... | 0 | Kotlin | 0 | 0 | d9042abe218533bbcdbf28f3c87438f2c24b679b | 1,318 | CalorieTrackerRefactored | Apache License 2.0 |
applications/schedule-jdbc-sql-app/src/main/kotlin/com/vmware/tanzu/data/schedule/jdbc/ScheduleJdbcSqlApp.kt | Tanzu-Solutions-Engineering | 353,470,254 | false | null | package com.vmware.tanzu.data.schedule.jdbc
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class ScheduleJdbcSqlApp
fun main(args: Array<String>) {
runApplication<ScheduleJdbcSqlApp>(*args)
} | 1 | null | 1 | 4 | 9b361f369b06ffe41b4617edb124f79d173944b2 | 286 | IoT-connected-vehicles-showcase | Apache License 2.0 |
lib-common-kotlin/src/main/kotlin/com/leovp/kotlin/exts/NumericExt.kt | yhz61010 | 329,485,030 | false | null | package com.leovp.kotlin.exts
/**
* Author: <NAME>
* Date: 2022/5/30 09:08
*/
// https://zh.wikipedia.org/wiki/%E8%BC%BE%E8%BD%89%E7%9B%B8%E9%99%A4%E6%B3%95
// https://stackoverflow.com/a/4009247/1685062
/**
* Compute the greatest common divistor of two values.
* @param a one value
* @param b another value
* ... | 0 | null | 4 | 9 | 680ec6b101c4089bf6263f4ae42837c8b6e65a26 | 1,383 | android | MIT License |
app-wan/src/main/java/com/wanandroid/ui/tab/ShellsActivity.kt | AsaLynn | 302,626,261 | false | {"Gradle": 9, "Java Properties": 2, "Shell": 1, "Text": 2, "Ignore List": 5, "Batchfile": 1, "Markdown": 1, "Proguard": 4, "Kotlin": 334, "XML": 209, "Java": 15, "Gradle Kotlin DSL": 1, "INI": 1} | package com.wanandroid.ui.tab
import android.content.Context
import com.wanandroid.R
import com.wanandroid.base.MyBaseActivity
import com.zxn.mvvm.ext.jumpInTo
import kotlinx.android.synthetic.main.activity_shells.*
/**
* 积分.
* Created by zxn on 2021/5/19.
*/
class ShellsActivity : MyBaseActivity() {
compan... | 1 | null | 1 | 1 | bb42c08a0eeaf5052fe8deef84068fe5c3b2fef6 | 1,284 | jetpackmvvm | Apache License 2.0 |
svc-compiler/src/main/kotlin/com/naver/android/svc/compiler/processor/screen/ScreenExtendsGenerator.kt | BansookNam | 191,271,813 | true | {"Gradle": 9, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 5, "Batchfile": 1, "Kotlin": 91, "YAML": 1, "Markdown": 4, "Proguard": 2, "XML": 17, "Java": 1} | /*
* Copyright 2018 NAVER Corp.
*
* 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 ... | 0 | Kotlin | 1 | 8 | 51bb125b60564015f13009c9f46e8512d58a9ab8 | 3,195 | svc | Apache License 2.0 |
app/src/main/java/com/github/malitsplus/shizurunotes/data/ClanBattleBoss.kt | danteehome | 243,690,661 | false | null | package com.github.malitsplus.shizurunotes.data
import com.github.malitsplus.shizurunotes.R
import com.github.malitsplus.shizurunotes.common.I18N
import com.github.malitsplus.shizurunotes.common.Statics
import com.github.malitsplus.shizurunotes.db.DBHelper
import kotlin.properties.Delegates
class ClanBattleBoss(
... | 1 | null | 1 | 1 | 3acf58c09cab3c58174148f0040efe87dfa4cdb2 | 2,066 | ShizuruNotes | Apache License 2.0 |
src/main/kotlin/Chapter03/sealedClassesEx1.kt | PacktPublishing | 143,155,611 | false | {"Gradle": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "XML": 5, "Java Properties": 1, "Kotlin": 97, "Java": 8} | package Chapter3
abstract class Shape(val name: String) {
init {
println("Drawing $name")
}
abstract fun draw()
abstract fun getArea():Double
}
class Circle (rad : Double, name: String) : Shape(name) {
val PI = 3.1415
var radius = rad
init { require(radius > 0) {"Radius value is ... | 0 | Kotlin | 14 | 23 | 1d36b576b8763387645a505cb8566c679c1e522b | 1,045 | Hands-On-Object-Oriented-Programming-with-Kotlin | MIT License |
app/src/test/kotlin/com/permissionnanny/dagger/MockComponentFactory.kt | lgslegend | 82,944,527 | true | {"Java Properties": 4, "YAML": 1, "XML": 40, "Gradle": 9, "Shell": 1, "Markdown": 2, "Batchfile": 1, "Ignore List": 6, "Proguard": 5, "Text": 4, "Java": 101, "Kotlin": 84} | package com.permissionnanny.dagger
/**
*/
object MockComponentFactory {
val appComponent: AppComponent
get() = DaggerAppComponent.builder()
.appModule(MockAppModule())
.build()
val contextComponent: MockContextComponent
get() = DaggerMockContextComponent.buil... | 0 | Java | 0 | 0 | 142774c651c2c80837b97f767b23ac6a19cc7566 | 728 | Permission-Nanny | RSA Message-Digest License |
idea/src/org/jetbrains/kotlin/idea/inspections/SetterBackingFieldAssignmentInspection.kt | haerulmuttaqin | 156,727,010 | false | null | /*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.inspections
import com.intellij.codeInspection.*
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiE... | 0 | null | 1 | 2 | 8f2117685f9f1b76b7f61ef67c0f58431bbf2f0e | 4,199 | kotlin | Apache License 2.0 |
src/main/kotlin/juuxel/adorn/block/entity/DrawerBlockEntity.kt | modindex | 214,723,737 | true | {"Gradle Kotlin DSL": 3, "Gradle": 1, "fish": 1, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Git Attributes": 1, "EditorConfig": 1, "Markdown": 3, "JSON": 1682, "INI": 1, "Kotlin": 176, "Java": 10, "JSON5": 4} | package juuxel.adorn.block.entity
import juuxel.adorn.block.DrawerBlock
import juuxel.adorn.gui.controller.DrawerController
import net.minecraft.container.BlockContext
import net.minecraft.entity.player.PlayerInventory
class DrawerBlockEntity : BaseInventoryBlockEntity(DrawerBlock.BLOCK_ENTITY_TYPE, 15) {
overrid... | 0 | null | 0 | 0 | 9941d7de7de66fc1dce4edeb29e3b2dcd78e0c2f | 477 | Adorn | MIT License |
idea/testData/resolve/additionalLazyResolve/anonymousObjectInClassInitializer.kt | staltz | 38,581,975 | true | {"Java": 15450397, "Kotlin": 8578737, "JavaScript": 176060, "HTML": 22810, "Lex": 17327, "Protocol Buffer": 13024, "ANTLR": 9689, "CSS": 9431, "Shell": 3931, "IDL": 3257, "Groovy": 3010, "Batchfile": 2831} | package test
open class A
class MyClass() {
{
val a = object: A() {
}
}
}
//package test
//internal open class A defined in test
//public constructor A() defined in test.A
//internal final class MyClass defined in test
//public constructor MyClass() defined in test.MyClass
//val a: test.MyCl... | 1 | Java | 0 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 556 | kotlin | Apache License 2.0 |
src/test/kotlin/com/salesforce/ant/DeployTaskAdapterTestCase.kt | DreamOps | 79,238,782 | true | {"Gradle": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "YAML": 2, "Markdown": 1, "Ant Build System": 1, "XML": 10, "Apex": 8, "Java Properties": 1, "Kotlin": 32, "Java": 1, "CSS": 2, "JavaScript": 2} | package com.salesforce.ant
import com.aquivalabs.force.ant.metadataConnection
import com.aquivalabs.force.ant.randomString
import com.nhaarman.mockito_kotlin.*
import com.sforce.soap.metadata.AsyncResult
import org.testng.Assert.assertEquals
import org.testng.Assert.assertTrue
import org.testng.annotations.Test
import... | 0 | Kotlin | 0 | 1 | 81169d801873416dc9e4b809cf466488a66c8ebf | 2,323 | antforce | Apache License 2.0 |
compiler/testData/diagnostics/testsWithStdLib/smartcasts/letChangesToNotNull.kt | JakeWharton | 99,388,807 | true | null | // FIR_IDENTICAL
// KT-9051: Allow smart cast for captured variables if they are not modified
fun foo(y: String?) {
var x: String? = null
y?.let { x = it }
x<!UNSAFE_CALL!>.<!>length // Smart cast is not possible
}
| 181 | Kotlin | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 228 | kotlin | Apache License 2.0 |
idea/idea-frontend-fir/testData/components/expressionType/returnExpression.kt | BradOselo | 367,097,840 | true | null | fun x(): Int {
<expr>return 1</expr>
}
// RESULT
// expression: return 1
// type: kotlin.Nothing
| 1 | null | 1 | 3 | 58c7aa9937334b7f3a70acca84a9ce59c35ab9d1 | 102 | kotlin | Apache License 2.0 |
livedata/src/main/java/com/numeron/stateful/livedata/StatefulLiveData.kt | muxi166 | 293,675,918 | false | null | package com.numeron.stateful.livedata
import android.os.Looper
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
import com.numeron.common.State
class StatefulLiveData<T> @JvmOverloads constructor(
private val loading: String = "正在加载",
private val failure: String = "加载失败"
)... | 1 | null | 1 | 1 | a2f0be0fba82487b03f2d849b9a5ed2439304339 | 2,335 | stateful | Apache License 2.0 |
idea/tests/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/runningReduceIndexed.kt | JetBrains | 278,369,660 | false | null | // WITH_RUNTIME
fun test(list: List<Int>) {
list.<caret>filter { it > 1 }.runningReduceIndexed { _, acc, i -> acc + i }
} | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 126 | intellij-kotlin | Apache License 2.0 |
app/src/main/java/com/patryk/springer/cashmanager/di/modules/ApplicationModule.kt | Gralls | 191,911,673 | false | null | package com.patryk.springer.cashmanager.di.modules
import android.app.Application
import android.content.Context
import dagger.Binds
import dagger.Module
/**
* Created by <NAME> on 2019-06-14.
*/
@Module
abstract class ApplicationModule {
@Binds
internal abstract fun bindContext(application: Application): C... | 2 | Kotlin | 0 | 0 | 88c166d3e6b976db3ad7716da9d09efd2d22cb01 | 329 | Cash-Manager | MIT License |
kex-runner/src/main/kotlin/org/jetbrains/research/kex/state/transformer/NullityAnnotator.kt | vorpal-research | 204,454,367 | false | null | package org.jetbrains.research.kex.state.transformer
import org.jetbrains.research.kex.state.ChoiceState
import org.jetbrains.research.kex.state.PredicateState
import org.jetbrains.research.kex.state.StateBuilder
import org.jetbrains.research.kex.state.predicate.Predicate
import org.jetbrains.research.kex.state.predic... | 7 | null | 20 | 9 | a4fae9fd800a3972434843bf1e06d09c57cf52d4 | 1,965 | kex | Apache License 2.0 |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/MoodWrrr.kt | walter-juan | 868,046,028 | false | {"Kotlin": 20416825} | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector... | 0 | Kotlin | 0 | 1 | b037895588c2f62d069c724abe624b67c0889bf9 | 2,973 | compose-icon-collections | MIT License |
debug-panel/src/main/kotlin/io/github/ilyapavlovskii/feature/toggle/debug/panel/DebugPanelActivity.kt | IlyaPavlovskii | 580,842,175 | false | null | package io.github.ilyapavlovskii.feature.toggle.debug.panel
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionS... | 0 | Kotlin | 0 | 7 | eccf7715f3da43cd168567e65180a1c142315ee6 | 8,838 | FeatureToggle | Apache License 2.0 |
bluetape4k/coroutines/src/main/kotlin/io/bluetape4k/coroutines/flow/extensions/takeUntil.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | @file:JvmMultifileClass @file:JvmName("FlowExtensionsKt")
package io.bluetape4k.coroutines.flow.extensions
import io.bluetape4k.coroutines.flow.exception.STOP
import io.bluetape4k.coroutines.flow.exception.StopFlowException
import kotlinx.atomicfu.atomic
import kotlinx.coroutines.CoroutineStart
import kotlinx.corouti... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 1,842 | bluetape4k | MIT License |
versioning-gradle-plugin/src/main/kotlin/fr/cvlaminck/gradle/versioning/manager/ArtifactIdUpdaterManager.kt | cyr62110 | 117,947,295 | false | null | package fr.cvlaminck.gradle.versioning.manager
import fr.cvlaminck.gradle.versioning.manager.updater.ArtifactIdUpdater
import fr.cvlaminck.gradle.versioning.model.ArtifactIdTemplate
import org.gradle.api.Project
class ArtifactIdUpdaterManager {
private val updaters: MutableSet<ArtifactIdUpdater> = mutableSetOf()... | 0 | Kotlin | 0 | 0 | f282ed46378ecc104c30a33d0a222178c4f872f7 | 668 | versioning-gradle-plugin | Apache License 2.0 |
samples/modules/bar/src/main/java/zlc/season/bar/ComposeScreenC.kt | ssseasonnn | 452,103,571 | false | null | package zlc.season.bar
import androidx.compose.foundation.layout.*
import androidx.compose.material.Button
import androidx.compose.material.Checkbox
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.comp... | 5 | null | 16 | 215 | 42475a7a4387c6bf0b9fbf5214bc5302d894fa7a | 3,576 | Butterfly | Apache License 2.0 |
app/src/main/java/br/com/alura/todo/model/Task.kt | alexfelipe | 327,061,964 | false | null | package br.com.alura.todo.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.*
@Entity
class Task(
@PrimaryKey
val id: String = UUID.randomUUID().toString(),
val title: String,
val description: String
)
| 0 | Kotlin | 0 | 0 | 3de7f848c7982b89d61581ef63f9f3cd0dad402a | 253 | Todo | MIT License |
demo-app/src/main/java/uz/pentoligy/smartbackgroundmanagerdemo/presentation/fragment/browse/MainBrowseFragment.kt | ChandrakantOmn | 153,090,813 | true | {"Kotlin": 61161, "Java": 7154} | /*
* Copyright (c) 2018 Sanjar Khodjaev
* 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 a... | 0 | Kotlin | 0 | 1 | af919077fe5f5a3464a12069506af762298aad93 | 3,237 | SmartBackgroundManager | Apache License 2.0 |
generator/bin/main/com/laidpack/sourcerer/generator/generators/delegates/SingleAttributeAndMultiSettersGenerator.kt | dpnolte | 151,090,095 | false | null | package com.laidpack.sourcerer.generator.generators.delegates
import com.laidpack.sourcerer.generator.generators.delegates.statements.*
import com.laidpack.sourcerer.generator.target.Attribute
import com.laidpack.sourcerer.generator.target.AttributeTypesForSetter
import com.laidpack.sourcerer.generator.target.CodeBloc... | 8 | Kotlin | 1 | 0 | 9513bbc54768e9248c450b0aba125b433c447e68 | 4,269 | sourcerer | Apache License 2.0 |
app/src/main/java/com/example/cs4518_project/HistoryTypeConverters.kt | afsimoneau | 401,757,041 | false | {"Kotlin": 45455} | package com.example.cs4518_project
import android.net.Uri
import androidx.room.TypeConverter
import java.util.*
class HistoryTypeConverters {
@TypeConverter
fun fromDate(date: Date?): Long? {
return date?.time
}
@TypeConverter
fun toDate(millisSinceEpoch: Long?): Date? {
return m... | 0 | Kotlin | 0 | 0 | b9dcde897cd434d9abc3e78ef50794562583e2b4 | 769 | cs4518-projects | MIT License |
library/src/main/java/com/sozo/nicehttp/Session.kt | Sozo-app | 702,850,697 | false | {"Kotlin": 789146} | package com.sozo.nicehttp
import okhttp3.Cookie
import okhttp3.CookieJar
import okhttp3.HttpUrl
import okhttp3.OkHttpClient
class Session(
client: OkHttpClient
) : Requests() {
init {
this.baseClient = client
.newBuilder()
.cookieJar(CustomCookieJar())
.build()
... | 0 | Kotlin | 5 | 22 | 50c65f924489bb94632b40ab840a15377e846686 | 698 | Sozo | MIT License |
app/src/main/java/com/kieronquinn/app/discoverkiller/ui/screens/settings/backgroundpicker/SettingsBackgroundPickerAdapter.kt | KieronQuinn | 273,963,637 | false | null | package com.kieronquinn.app.discoverkiller.ui.screens.settings.backgroundpicker
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.kieronquinn.app.discoverkiller.components.splash.RemoteSplashLoader
import java.io.Serializable
clas... | 2 | null | 8 | 98 | 9d27d0b5c8f73268d683732bb7f4f3b3c4e0deef | 810 | DiscoverKiller | Apache License 2.0 |
alfresco-promena-core/src/main/kotlin/pl/beone/promena/alfresco/module/core/configuration/external/node/MemoryOrFileDataConverterContext.kt | BeOne-PL | 235,078,324 | false | {"Markdown": 15, "Text": 1, "Maven POM": 10, "Shell": 10, "Ignore List": 7, "Java": 13, "Kotlin": 204, "XML": 53, "Java Properties": 34, "INI": 12, "Dockerfile": 10, "YAML": 7} | package pl.beone.promena.alfresco.module.core.configuration.external.node
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import pl.beone.promena.alfresco.module.core.external.node.MemoryOrFileD... | 3 | Kotlin | 0 | 0 | e981f383fbec1dd65538f101b26dc1dc3b8a6b38 | 1,331 | promena-alfresco | Apache License 2.0 |
service/src/main/kotlin/no/nav/su/se/bakover/service/klage/KlageService.kt | navikt | 227,366,088 | false | {"Kotlin": 9359409, "Shell": 4372, "TSQL": 1233, "Dockerfile": 1211} | package no.nav.su.se.bakover.service.klage
import arrow.core.Either
import behandling.klage.domain.KlageId
import no.nav.su.se.bakover.common.domain.PdfA
import no.nav.su.se.bakover.common.ident.NavIdentBruker
import no.nav.su.se.bakover.domain.klage.AvsluttetKlage
import no.nav.su.se.bakover.domain.klage.AvvistKlage
... | 5 | Kotlin | 1 | 1 | f187a366e1b4ec73bf18f4ebc6a68109494f1c1b | 3,212 | su-se-bakover | MIT License |
idea/tests/testData/intentions/simplifyBooleanWithConstants/positiveZeroNegativeZero3.kt | JetBrains | 278,369,660 | false | null | fun foo() {
+0.0f <caret>== +0.0f
} | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 39 | intellij-kotlin | Apache License 2.0 |
src/main/kotlin/io/github/neyb/shoulk/matcher/NoneMatcher.kt | neyb | 73,757,047 | false | null | package io.github.neyb.shoulk.matcher
internal class NoneMatcher<in T>(private val matcher: Matcher<T>)
: SimpleMatcher<Iterable<T>>("contain no item matching ${matcher.description}") {
override fun doesMatch(actual: Iterable<T>) = actual.none { matcher.match(it).success }
override fun getDismatchDescri... | 0 | Kotlin | 0 | 0 | 88e34988b5b1764bd58c5126d132e09e45b8fc9a | 647 | shoulk | Apache License 2.0 |
NavigationRail/src/main/java/com/microsoft/device/display/samples/navigationrail/ui/components/ContentDrawer.kt | microsoft | 329,091,156 | false | null | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
package com.microsoft.device.display.samples.navigationrail.ui.components
import android.graphics.RectF
import androidx.compose.foundation.background
import androidx.compose.foundation.gestures.Orientation
import an... | 2 | null | 9 | 59 | 1ae8ef33490227dbd311fdc261d3cf270ccb2853 | 8,346 | surface-duo-compose-samples | MIT License |
src/pl/shockah/aoc/y2019/Day9.kt | Shockah | 159,919,224 | false | null | package pl.shockah.aoc.y2019
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.DynamicTest
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.TestFactory
import pl.shockah.aoc.expects
import java.util.*
class Day9: Intcode.AdventTask<Long, Long>(2019, 9, instructions) {
companion obj... | 0 | Kotlin | 0 | 0 | 9abb1e3db1cad329cfe1e3d6deae2d6b7456c785 | 1,616 | Advent-of-Code | Apache License 2.0 |
app/src/main/java/com/example/android/marsrealestate/detail/DetailFragment.kt | Patrik-Kovac | 581,242,775 | false | null |
package com.example.android.marsrealestate.detail
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.example.android.marsrealestate.databinding.FragmentDetailBinding
/**
* This [Fragment] will show the d... | 0 | Kotlin | 0 | 0 | 29e8332cf9beea34e91eb36bad1f327193b9bb39 | 807 | MobilniTechnologie3 | Apache License 2.0 |
app/src/main/java/cc/sovellus/vrcaa/ui/screen/feed/components/FeedItem.kt | Nyabsi | 745,635,224 | false | {"Kotlin": 256899} | package cc.sovellus.vrcaa.ui.screen.feed.components
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.ListItem
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignmen... | 0 | Kotlin | 2 | 12 | 1ff5557612b0ffbecd0c07d29f44dd57a8d7872b | 2,012 | VRCAA | Apache License 2.0 |
app/src/main/java/com/llastkrakw/nevernote/feature/note/datas/dao/NoteDao.kt | llastkrakw | 349,524,573 | false | null | package com.llastkrakw.nevernote.feature.note.datas.dao
import androidx.room.*
import com.llastkrakw.nevernote.core.constants.NOTE_LAST_UPDATE
import com.llastkrakw.nevernote.core.constants.NOTE_TITLE
import com.llastkrakw.nevernote.core.constants.TABLE_NOTE
import com.llastkrakw.nevernote.feature.note.datas.entities.... | 0 | Kotlin | 0 | 35 | 03a6061e4d7c09c2bbf504b2f85e6253c02fc4fa | 1,373 | NeverNote | MIT License |
src/main/kotlin/com/eve/engine/esi4k/model/CorporationTitles.kt | EveEngine | 254,506,280 | false | null | package com.eve.engine.esi4k.model
import com.fasterxml.jackson.annotation.JsonProperty
import javax.management.relation.Role
open class CorporationTitles (
@JsonProperty("grantable_roles") val grantableRoles: List<CharacterRoles>? = null,
@JsonProperty("grantable_roles_at_base") val grantableRolesAtBase: Lis... | 0 | Kotlin | 0 | 0 | 6aba2e43a8dc11b2c435d08b91dc9ed4baf9ea9b | 967 | esi4k | Apache License 2.0 |
keywordfragment/src/main/kotlin/com/searchbox/vastgui/OnKeyWordClickListener.kt | SakurajimaMaii | 742,760,795 | false | {"Kotlin": 30474} | /*
* Copyright 2024 VastGui
*
* 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 writi... | 0 | Kotlin | 0 | 0 | 1cd80b7139f9010f8469bd3a78a05244400f5499 | 1,231 | KeywordFragment | Apache License 2.0 |
app/src/main/java/ninja/sakib/rapunzel/android/ui/activities/RegistrationActivity.kt | s4kibs4mi | 122,465,682 | false | null | package ninja.sakib.rapunzel.android.ui.activities
import android.content.Intent
import android.os.Bundle
import android.view.MenuItem
import android.widget.Button
import android.widget.EditText
import ninja.sakib.rapunzel.android.R
import ninja.sakib.rapunzel.android.models.error.ApiError
import ninja.sakib.rapunzel.... | 0 | Kotlin | 0 | 1 | 5914265c1896a4290d7512fbad5228a2328be31a | 4,216 | rapunzel-blog-android | Apache License 2.0 |
client-misk-hibernate/src/main/kotlin/app/cash/backfila/client/misk/hibernate/PrimaryKeyCursorAdapter.kt | cashapp | 209,384,085 | false | {"Kotlin": 952510, "TypeScript": 78934, "Java": 14790, "Shell": 4170, "JavaScript": 1107, "HTML": 990, "Dockerfile": 486} | package app.cash.backfila.client.misk.hibernate
import okio.ByteString
/**
* Converts primary key values to [ByteString] representations to persist as cursors in backfills.
*
* Any primary key type that is used with Backfila must be convertible to and from [ByteString]s
* to facilitate cursor persistence and disp... | 50 | Kotlin | 49 | 31 | 5d9f39a12fd4dc95533889978d70b043a817b287 | 483 | backfila | Apache License 2.0 |
examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/CameraScreen.kt | JetBrains | 293,498,508 | false | {"Kotlin": 1921608, "Shell": 12615, "Dockerfile": 6720, "JavaScript": 5187, "Swift": 2823, "Ruby": 2627, "Java": 1964, "HTML": 1834, "PowerShell": 1708, "Groovy": 1415} | package example.imageviewer.view
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import an... | 64 | Kotlin | 1174 | 16,150 | 7e9832f6494edf3e7967082c11417e78cfd1d9d0 | 1,402 | compose-multiplatform | Apache License 2.0 |
tangem-sdk-core/src/main/java/com/tangem/crypto/hdWallet/bip32/serialization/ExtendedKeySerializer.kt | tangem | 218,994,149 | false | {"Kotlin": 1222315, "Java": 13485, "Ruby": 911} | package com.tangem.crypto.hdWallet.bip32.serialization
import com.tangem.crypto.NetworkType
class ExtendedKeySerializer {
enum class Version {
Public, Private;
// https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#serialization-format
// Because of the choice of the version by... | 4 | Kotlin | 38 | 64 | 2ea3795fd521f23ecc6414913ab5d207c256fe84 | 1,042 | tangem-sdk-android | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsworkload/integration/responses/workforceAllocationsToDelius/AllocationDetailsResponse.kt | ministryofjustice | 378,843,394 | false | {"PLpgSQL": 472290, "Kotlin": 436140, "Dockerfile": 1715} | package uk.gov.justice.digital.hmpps.hmppsworkload.integration.responses.workforceAllocationsToDelius
import uk.gov.justice.digital.hmpps.hmppsworkload.integration.domain.AllocationDetailIntegration
fun allocationDetailsResponse(allocationDetails: List<AllocationDetailIntegration>): String = """
{
"cases": [
... | 14 | PLpgSQL | 0 | 0 | 93ad98d7641fa391aae2753b3cefd38b543f1e74 | 891 | hmpps-workload | MIT License |
Demo/Module2/src/main/java/com/xiaojinzi/component2/service/TestInterfaceImpl.kt | xiaojinzi123 | 144,542,661 | false | null | package com.xiaojinzi.component2.service
import android.widget.Toast
import com.xiaojinzi.component.Component
import com.xiaojinzi.component.anno.ServiceAnno
import com.xiaojinzi.component.support.Utils
/**
* time : 2018/12/06
*
* @author : xiaojinzi
*/
@ServiceAnno(value = [TestInterface::class], singleTon = f... | 8 | null | 206 | 2,869 | f4a9f37dd647867f71faff0a964f340ae5fa1887 | 654 | Component | Apache License 2.0 |
app/src/main/java/com/tomergoldst/faceemotion/model/Face.kt | tomergoldst | 239,549,203 | false | null | package com.tomergoldst.faceemotion.model
import android.graphics.Bitmap
data class Face(val bitmap: Bitmap, val emotion: Emotion) | 0 | Kotlin | 0 | 1 | 405802cfd661a3fe3cfd673c79987014b53ee88d | 132 | FaceEmotion | Apache License 2.0 |
app/src/main/java/net/radityalabs/alquran/di/component/GenericComponent.kt | radityagumay | 101,471,194 | false | {"Gradle": 6, "Java Properties": 2, "Shell": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "Proguard": 3, "Java": 3, "XML": 23, "Kotlin": 35} | package net.radityalabs.alquran.di.component
import dagger.Component
import net.radityalabs.alquran.data.di.component.HttpComponent
import net.radityalabs.alquran.data.di.module.HttpModule
import net.radityalabs.alquran.di.component.base.AppComponent
import net.radityalabs.alquran.di.module.AppModule
import javax.inje... | 0 | Kotlin | 1 | 4 | 5c80e10dcae8541ee49e3e5d144b5c64384892ba | 468 | android-clean-architecture | Apache License 2.0 |
app/src/main/java/com/example/armcokenyalimited/HOMETHEATRES/HomeTheatres.kt | David-Kasilia | 641,657,460 | false | null | package com.example.armcokenyalimited.HOMETHEATRES
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.example.armcokenyalimited.R
class HomeTheatres : AppCompatActivity() {
pr... | 0 | Kotlin | 0 | 1 | 5d6e922b85155c223845962939d3d651f9330a97 | 4,833 | online_store_kotlin_app | MIT License |
src/main/kotlin/io/kotest/plugin/intellij/utils.kt | jpm86 | 249,272,922 | true | {"Kotlin": 106702, "HTML": 454} | import com.intellij.execution.RunManager
import com.intellij.execution.junit.JUnitConfigurationType
import com.intellij.openapi.project.Project
// nuke any junit ones left lurking
fun removeJUnitRunConfigs(project: Project, specName: String) {
val runManager = RunManager.getInstance(project)
runManager.getConfigur... | 0 | Kotlin | 0 | 0 | d4e7a139cb306992068a8ee2df03a0c71ff63707 | 457 | kotest-intellij-plugin | Apache License 2.0 |
attribution/src/main/java/com/affise/attribution/events/predefined/RateEvent.kt | affise | 496,592,599 | false | null | package com.affise.attribution.events.predefined
import com.affise.attribution.events.NativeEvent
import org.json.JSONObject
/**
* Event Rate use
*
* @property rate the JSON Object describing the meaning of the event.
* @property timeStampMillis the timestamp event in milliseconds.
* @property userData any custo... | 0 | Kotlin | 0 | 3 | ed6209e9eff536569c2ce618945365e63c9419fd | 960 | sdk-android | The Unlicense |
app/src/main/java/com/antonioleiva/tictactoe/model/TicTacToe.kt | antoniolg | 579,979,844 | false | null | package com.antonioleiva.tictactoe.model
data class TicTacToe(
val board: List<List<Char>> = List(3) { List(3) { ' ' } },
val currentPlayer: Char = 'X'
) {
fun move(moveRow: Int, moveColumn: Int): TicTacToe {
val newBoard = board.mapIndexed { rowIndex, row ->
row.mapIndexed { columnInde... | 0 | Kotlin | 0 | 1 | 12b94a38f278d8286feb1ec7a4584069ddbbe448 | 577 | TicTacToe | Apache License 2.0 |
app/src/main/java/com/red_velvet/yumhub/ui/recipeDetails/RecipeInformationFragment.kt | Red-velvet-cake | 646,910,557 | false | {"Kotlin": 322415} | package com.red_velvet.yumhub.ui.recipeDetails
import android.os.Bundle
import android.view.View
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.findNavController
import com.red_velvet.yumhub.R
import com.red_velvet.yumhub.databinding.FragmentRecipeI... | 4 | Kotlin | 7 | 10 | 9b01e06754ee1dae4e12f004df4e7b6264a55006 | 3,031 | yumhub | MIT License |
VCL/src/main/java/io/velocitycareerlabs/api/entities/VCLGenerateOffersDescriptor.kt | velocitycareerlabs | 525,006,413 | false | {"Kotlin": 652139} | /**
* Created by <NAME> on 10/05/21.
*
* Copyright 2022 Velocity Career Labs inc.
* SPDX-License-Identifier: Apache-2.0
*/
package io.velocitycareerlabs.api.entities
import io.velocitycareerlabs.impl.extensions.toJsonArray
import org.json.JSONObject
data class VCLGenerateOffersDescriptor(
val credentialMani... | 0 | Kotlin | 0 | 2 | 160e938b2a3a676800e65aabec95c7badffbb4a6 | 1,099 | WalletAndroid | Apache License 2.0 |
src/test/kotlin/transit/ticketing/bpp/protocol/protocol/common/factories/ContextFactorySpec.kt | beckn | 429,839,624 | false | {"Kotlin": 211108, "Jinja": 3205} | package transit.ticketing.bpp.protocol.protocol.common.factories
import io.kotest.core.spec.style.DescribeSpec
import io.kotest.matchers.shouldBe
import transit.ticketing.bpp.protocol.protocol.common.City
import transit.ticketing.bpp.protocol.protocol.common.Country
import transit.ticketing.bpp.protocol.protocol.commo... | 0 | Kotlin | 1 | 1 | 71f44acf28654612f40a002bdc45c24c3e9c0feb | 2,093 | transit-ticketing-bpp-protocol-adaptor | MIT License |
app/src/test/java/com/msoula/catlife/feature_note/presentation/NoteViewModelTest.kt | morganesoula | 729,071,618 | false | {"Kotlin": 527401} | package com.msoula.catlife.feature_note.presentation
import com.msoula.catlife.feature_inventory.data.state.UiActionEvent
import com.msoula.catlife.feature_inventory.presentation.util.CoroutineTestRule
import com.msoula.catlife.feature_note.data.repository.FakeNoteDataSource
import com.msoula.catlife.feature_note.doma... | 0 | Kotlin | 0 | 0 | 648fceea2ead8d264c5e0e1ee51cb8830105d75a | 3,243 | Cat_Life | MIT License |
xpicker/src/main/java/cn/cheney/xpicker/view/LoadingDialog.kt | wangshuwen1107 | 264,126,091 | false | {"Kotlin": 148767, "Java": 68715} | package cn.cheney.xpicker.view
import android.app.Dialog
import android.content.Context
import android.view.Gravity
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import cn.cheney.xpicker.R
class LoadingDialog(context: Context) : Dialog(context, R.style.XPicker_LoadingDialog) {
... | 0 | Kotlin | 0 | 9 | b89f6124d500a859183feb0c02426fcf87ea55d1 | 1,035 | XPicker | Apache License 2.0 |
connection/src/main/java/com/fzm/arch/connection/type/ConfirmType.kt | txchat | 507,831,442 | false | {"Kotlin": 2234450, "Java": 384844} | package com.fzm.arch.connection.type
/**
* @author zhengjy
* @since 2022/01/21
* Description:
*/
enum class ConfirmType { SUCCESS, FAIL, ABORT } | 0 | Kotlin | 1 | 1 | 6a3c6edf6ae341199764d4d08dffd8146877678b | 149 | ChatPro-Android | MIT License |
fuzzer/fuzzing_output/crashing_tests/verified/minimized/kt3903.kt-2043994693.kt_minimized.kt | ItsLastDay | 102,885,402 | false | null | class Foo {
fun bar(): String {
fun <T> foo(t: (() -> T)): T = t()
foo((({}) ?: ({})))
return "OK"
}
} | 2 | null | 1 | 6 | 56f50fc307709443bb0c53972d0c239e709ce8f2 | 102 | KotlinFuzzer | MIT License |
7_kyu/Growth_of_a_Population.kt | UlrichBerntien | 439,630,417 | false | {"Go": 293606, "Rust": 191729, "Python": 184557, "Lua": 137612, "Assembly": 89144, "C": 76738, "Julia": 35473, "Kotlin": 33204, "R": 27633, "C#": 20860, "Shell": 14326, "Forth": 3750, "PLpgSQL": 2117, "C++": 122} | package growth
/**
* Calculates number of years until population p is reached.
*
* @param pp0 start population in year 0.
* @param percent yearly grow in percentage
* @param aug yearly absolute population change
* @param p polulation to reach
* @return year until population p reached.
*/
fun nbYear(pp0: Int, p... | 0 | Go | 0 | 0 | 034d7f2bdcebc503b02877f2241e4dd143188b43 | 556 | Codewars-Katas | MIT License |
app/src/main/java/com/brandoncano/inductancecalculator/model/vtc/InductorVtcRepository.kt | bmcano | 837,294,286 | false | {"Kotlin": 101222} | package com.brandoncano.inductancecalculator.model.vtc
import android.content.Context
import com.brandoncano.inductancecalculator.components.SharedPreferences
class InductorVtcRepository(context: Context) {
private val application = context
companion object {
private var instance: InductorVtcReposit... | 1 | Kotlin | 0 | 1 | d54c0ee936957250b6b38ca6ded0e367b4854fc6 | 1,450 | InductorCalculatorApp | MIT License |
app/src/main/java/com/minimalisttodolist/pleasebethelastrecyclerview/ui/components/CustomDropdownMenu.kt | darkBlueLemon | 817,727,500 | false | {"Kotlin": 218593} | package com.minimalisttodolist.pleasebethelastrecyclerview.ui.components
import android.util.Log
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foun... | 0 | Kotlin | 1 | 0 | a9fbdae3e307c529dd1878497c9f373156012b21 | 7,035 | MinimalistTodoListV4 | MIT License |
idea/tests/testData/shortenRefs/classInCompanionObject.dependency.kt | JetBrains | 278,369,660 | false | null | package dependency
class C {
companion object {
class Nested
}
} | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 81 | intellij-kotlin | Apache License 2.0 |
log-in/src/main/java/com/wo1f/login/LogInState.kt | adwardwolf | 387,865,580 | false | null | package com.wo1f.login
sealed class LogInState {
object Success : LogInState()
class Error(val errorMessage: String) : LogInState()
object Loading : LogInState()
object Empty : LogInState()
}
| 0 | Kotlin | 0 | 2 | d9372ab26a0f74ff32e196ffc7457258f1d7270c | 209 | the-earth | Apache License 2.0 |
example/src/main/kotlin/com/vmloft/develop/app/example/ui/guide/GuideActivity.kt | lzan13 | 78,939,095 | false | {"Kotlin": 759701, "Java": 45897, "HTML": 2434, "C": 2090, "Makefile": 967} | package com.vmloft.develop.app.example.ui.guide
import android.view.View
import androidx.fragment.app.Fragment
import androidx.viewpager.widget.ViewPager.OnPageChangeListener
import com.didi.drouter.annotation.Router
import com.vmloft.develop.library.base.BActivity
import com.vmloft.develop.library.base.router.CRout... | 0 | Kotlin | 14 | 34 | c6eca3fb479d82ca14ca3bdcc3fb5f5494a4db0c | 3,021 | VMLibrary | MIT License |
buildSrc/src/main/kotlin/ktsSupport/AppConfig.kt | GiacomoPis | 493,531,078 | false | {"Kotlin": 44747} | package ktsSupport
import com.android.build.api.dsl.ApplicationBuildType
import com.android.build.api.dsl.ApplicationDefaultConfig
import com.android.build.api.dsl.LibraryDefaultConfig
object AppConfig {
private const val applicationId = "it.icemangp.shakenetworklog"
private const val minSdkVersion = 21
... | 1 | Kotlin | 1 | 4 | 3eb08cd26ccff521bd88ac49abffffb5c0416422 | 2,186 | shakenetworklog | Apache License 2.0 |
idea/src/org/jetbrains/kotlin/idea/intentions/MoveMemberOutOfCompanionObjectIntention.kt | JakeWharton | 99,388,807 | false | null | /*
* Copyright 2010-2016 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 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 5,123 | kotlin | Apache License 2.0 |
LR7/src/main/kotlin/Task1V2.kt | Kirchberg | 602,987,232 | false | null | // В тексте найти все пары слов, из которых одно является обращением другого.
// Create a class Word to represent a word in the text
class Word(val text: String, val position: Int)
// Create a class PairOfWords to represent a pair of words
class PairOfWords(val word1: Word, val word2: Word) {
// Method to check ... | 0 | Kotlin | 0 | 0 | b6a459a30ef20b0f38c4869d0949e22f4239183e | 1,733 | BigDataPL | MIT License |
zircon.core/common/src/main/kotlin/org/hexworks/zircon/api/component/Button.kt | KKasbarian | 160,043,699 | true | {"Kotlin": 1068949, "Java": 16867, "CSS": 1525} | package org.hexworks.zircon.api.component
interface Button : Component {
val text: String
}
| 0 | Kotlin | 0 | 0 | b45b190c216543ac9f3992fe36ceb096fbea7baf | 98 | zircon | MIT License |
feature/listing/src/main/java/com/utsman/listing/ui/activity/SearchAppActivity.kt | irmansyah | 317,537,024 | true | {"Kotlin": 124069} | /*
* Created by <NAME> on 28/11/20 3:54 PM
* Copyright (c) 2020 . All rights reserved.
*/
package com.utsman.listing.ui.activity
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.viewbinding.library.activity.viewBinding
import androidx.appcompat.app.AppCompatActivity
imp... | 0 | null | 0 | 0 | 6e3ed614f5fcfb81a0c879e5aa96e4e4d2a63e68 | 3,976 | store-apps-mvvm-clean-architecture | Apache License 2.0 |
src/main/kotlin/com/dokapegroup/dokapebackend/repositories/ProductRepository.kt | DokapeTeam | 427,817,087 | false | null | package com.dokapegroup.dokapebackend.repositories
import com.dokapegroup.dokapebackend.models.DBProduct
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Repository
@Repository
interface ProductRepository : JpaRepository<DBProduct, Long> {
fun findAllByShopIdAndDr... | 0 | Kotlin | 0 | 0 | 9831118923ad5a433e1204bf9a0a6d02f2a7ac59 | 365 | DokapeBackend | MIT License |
app/src/main/java/vinova/henry/com/androidversionretro/model/AndroidVersion.kt | henryduong26 | 128,314,643 | false | null | package vinova.henry.com.androidversionretro.model
data class AndroidVersion(val name: String, val ver: String, val api: String) | 0 | Kotlin | 0 | 0 | 8bc8c7af68c99069bf09feeebe6f298eac3fbd2e | 129 | AndroidVersionRetro | Apache License 2.0 |
library/core/stereotyped/src/main/kotlin/de/lise/fluxflow/stereotyped/step/StepExtensions.kt | lisegmbh | 740,936,659 | false | {"Kotlin": 732949} | package de.lise.fluxflow.stereotyped.step
import de.lise.fluxflow.api.step.Step
/**
*
*/
fun <TStepModel> Step.bind(): TStepModel? {
val definition = this.definition as? ReflectedStatefulStepDefinition ?: return null
@Suppress("UNCHECKED_CAST")
return definition.instance as? TStepM... | 20 | Kotlin | 0 | 7 | b7caae962301480df123da2c541004829d5572fd | 326 | fluxflow | Apache License 2.0 |
mobile_app1/module346/src/main/java/module346packageKt0/Foo635.kt | uber-common | 294,831,672 | false | null | package module346packageKt0;
annotation class Foo635Fancy
@Foo635Fancy
class Foo635 {
fun foo0(){
module346packageKt0.Foo634().foo5()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
fun foo4(){
foo3()
}
fun foo5(){
foo4()
}
} | 6 | null | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 297 | android-build-eval | Apache License 2.0 |
src/main/kotlin/no/nav/familie/ef/sak/felles/integration/dto/EgenAnsatt.kt | navikt | 206,805,010 | false | null | package no.nav.familie.ef.sak.felles.integration.dto
data class EgenAnsattRequest(val ident: String)
data class EgenAnsattResponse(val erEgenAnsatt: Boolean) | 8 | Kotlin | 2 | 0 | d5a30e3058c8ee588d1a348df395a52446bbf02b | 159 | familie-ef-sak | MIT License |
src/main/kotlin/no/nav/familie/ef/sak/felles/integration/dto/EgenAnsatt.kt | navikt | 206,805,010 | false | null | package no.nav.familie.ef.sak.felles.integration.dto
data class EgenAnsattRequest(val ident: String)
data class EgenAnsattResponse(val erEgenAnsatt: Boolean) | 8 | Kotlin | 2 | 0 | d5a30e3058c8ee588d1a348df395a52446bbf02b | 159 | familie-ef-sak | MIT License |
app/src/main/kotlin/no/nav/tilbakemeldingsmottak/rest/feilogmangler/service/FeilOgManglerService.kt | navikt | 397,956,011 | false | {"Kotlin": 334875, "Handlebars": 2765, "Mustache": 1617, "Dockerfile": 199} | package no.nav.tilbakemeldingsmottak.rest.feilogmangler.service
import no.nav.tilbakemeldingsmottak.consumer.email.aad.AzureEmailService
import no.nav.tilbakemeldingsmottak.model.MeldFeilOgManglerRequest
import no.nav.tilbakemeldingsmottak.rest.common.epost.HtmlContent
import org.slf4j.LoggerFactory
import org.springf... | 2 | Kotlin | 0 | 0 | fae6e93829b42a422ab022083dd1deb1c4d66211 | 1,433 | tilbakemeldingsmottak-api | MIT License |
app/src/main/java/ir/ghararemaghzha/game/fragments/ContactsFragment.kt | ShahabGT | 279,053,168 | false | null | package ir.ghararemaghzha.game.fragments
import android.Manifest
import android.app.AlertDialog
import android.content.ContentResolver
import android.content.DialogInterface
import android.content.Intent
import android.content.pm.PackageManager
import android.database.Cursor
import android.net.Uri
import android.os.Bu... | 0 | Kotlin | 0 | 1 | c4f6bfa6d61ebf2781d939ee04c2f2acb1483efb | 11,630 | GharareMaghzha | Apache License 2.0 |
app/src/main/java/com/core/app/injector/module/GsonModule.kt | raxden | 165,669,612 | false | {"Gradle": 8, "Java Properties": 2, "Shell": 2, "Ignore List": 5, "Batchfile": 1, "Markdown": 2, "Proguard": 20, "Kotlin": 182, "XML": 41, "JSON": 5, "INI": 1, "Java": 1, "Text": 3} | package com.core.app.injector.module
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import dagger.Module
import dagger.Provides
import javax.inject.Named
import javax.inject.Singleton
/**
* Provides application-wide dependencies.
*/
@Module
object GsonModule {
@JvmStatic
@Provides
@Sing... | 1 | null | 1 | 1 | 9ad3b3d2fffdaa7abdf567320e8d6d9f98a67746 | 806 | android-core | Apache License 2.0 |
src/kotlin/de/monticore/lang/montisecarc/completion/MSAKeywordCompletionContributor.kt | MontiSecArc | 82,662,403 | false | null | package de.monticore.lang.montisecarc.completion
import com.intellij.codeInsight.completion.CompletionContributor
import com.intellij.codeInsight.completion.CompletionParameters
import com.intellij.codeInsight.completion.CompletionResultSet
import com.intellij.codeInsight.completion.CompletionType
import com.intellij.... | 0 | Kotlin | 2 | 1 | 82d80a3d587a3f47e961034cf7e496f7149fd912 | 4,926 | intellij_msa_language_plugin | Apache License 2.0 |
src/main/kotlin/com/msg/gcms/domain/user/domain/entity/User.kt | GSM-MSG | 592,816,374 | false | null | package com.msg.gcms.domain.user.domain.entity
import com.fasterxml.jackson.annotation.JsonIgnore
import com.msg.gcms.domain.applicant.domain.entity.Applicant
import com.msg.gcms.domain.auth.domain.Role
import com.msg.gcms.domain.club.domain.entity.Club
import com.msg.gcms.domain.clubMember.domain.entity.ClubMember
im... | 6 | Kotlin | 0 | 8 | f2b79e643bc72c41e8845e519e5939ac1a9cfe3d | 1,517 | GCMS-BackEnd | MIT License |
src/main/kotlin/net/brutus5000/orcap/shared/PathResolver.kt | Brutus5000 | 429,435,516 | false | {"Kotlin": 22185} | package net.brutus5000.orcap.shared
import net.brutus5000.orcap.OrcapProperties
import org.springframework.stereotype.Component
import java.nio.file.Path
import kotlin.io.path.isDirectory
import kotlin.jvm.Throws
@Component
class PathResolver(
val orcapProperties: OrcapProperties
) {
@Throws(IllegalPathExcept... | 5 | Kotlin | 0 | 2 | 3044d86bd2982d10c79ed3faf3c5ded3ff13d297 | 996 | orcap | MIT License |
src/main/kotlin/com/pierre2803/functionapp/EnumExtensions.kt | pjmbusnel | 725,140,432 | false | {"Kotlin": 48591} | package com.pierre2803.functionapp
inline fun <reified T : Enum<T>> safeValueOf(name: String): T? {
return try {
java.lang.Enum.valueOf(T::class.java, name.uppercase())
} catch (e: IllegalArgumentException) {
null
}
} | 0 | Kotlin | 0 | 0 | 1b03760dd107e7ef6c6f728682d9bfe47b798c9a | 246 | ProductFunctionApp | MIT License |
kategory-core/src/main/kotlin/kategory/instances/FreeInstances.kt | JcMinarro | 110,547,619 | false | null | package kategory
@instance(Free::class)
interface FreeFunctorInstance<S> : Functor<FreeKindPartial<S>> {
override fun <A, B> map(fa: FreeKind<S, A>, f: (A) -> B): Free<S, B> = fa.ev().map(f)
}
@instance(Free::class)
interface FreeApplicativeInstance<S> : FreeFunctorInstance<S>, Applicative<FreeKindPartial<S>> {
... | 0 | null | 0 | 5 | a88e4d11bb87f39684d1f2d4db434153e0b33ffc | 1,775 | kategory | Apache License 2.0 |
models/src/main/java/com/tink/model/time/Period.kt | tink-ab | 245,144,086 | false | {"Gradle Kotlin DSL": 7, "Gradle": 4, "Java Properties": 2, "Markdown": 2, "Shell": 9, "Text": 2, "Ignore List": 5, "Batchfile": 1, "YAML": 1, "INI": 4, "Proguard": 3, "Kotlin": 252, "XML": 4, "CODEOWNERS": 1, "OASv2-json": 2, "Java": 1} | package com.tink.model.time
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
import java.time.Instant
sealed class Period : Parcelable {
abstract val identifier: String
abstract val start: Instant
abstract val end: Instant
}
@Parcelize
data class YearPeriod(
val year: Int,
ove... | 1 | null | 6 | 1 | e2202bb6892e5310feaf5fa51a35714302ddb7b0 | 1,184 | tink-core-android | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.