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
sample-xml/app/src/main/java/co/nimblehq/sample/xml/ui/screens/home/HomeViewModel.kt
nimblehq
101,353,301
false
null
package co.nimblehq.sample.xml.ui.screens.home import co.nimblehq.sample.xml.domain.usecase.* import co.nimblehq.sample.xml.model.UiModel import co.nimblehq.sample.xml.model.toUiModels import co.nimblehq.sample.xml.ui.base.BaseViewModel import co.nimblehq.sample.xml.ui.base.NavigationEvent import co.nimblehq.sample.xm...
23
Kotlin
21
63
f5288193d83de72333461b1e7d0495b9ed3943d7
1,963
android-templates
MIT License
PettCareAndroidApp/app/src/main/java/com/pettcare/app/bottomnav/BottomNavigation.kt
antelukic
767,127,442
false
{"Kotlin": 305258}
package com.pettcare.app.bottomnav import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.padding import androidx.compose.foundation.shape.CircleShape import androidx.compose.material.icons.Icons import androidx.compose.material.icons.automi...
0
Kotlin
0
0
e6210463d97ef1235a2f0d84c5658f251f857f9a
3,694
PettCareApp
Apache License 2.0
src/main/kotlin/uk/gov/justice/digital/hmpps/personrecord/seeding/PopulateFromPrison.kt
ministryofjustice
608,040,205
false
{"Kotlin": 215136, "PLpgSQL": 13812, "Shell": 2601, "Dockerfile": 1145, "Makefile": 160}
package uk.gov.justice.digital.hmpps.personrecord.seeding import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch import org.slf4j.LoggerFactory import org.springframework.beans.factory.annotation.Value import org.springframework.context.annotation.Profile import...
5
Kotlin
2
1
489b6d5c3d75bfc96bed2883a82b9990f97b92f9
2,898
hmpps-person-record
MIT License
common/src/main/kotlin/org/stardustmodding/interstellar/impl/config/InterstellarConfig.kt
StardustModding
703,282,326
false
{"Kotlin": 83772, "Shell": 5565, "Java": 2839, "GLSL": 2679}
package org.stardustmodding.interstellar.impl.config import me.shedaniel.autoconfig.annotation.Config import me.shedaniel.autoconfig.annotation.ConfigEntry import me.shedaniel.autoconfig.serializer.PartitioningSerializer @Config(name = "interstellar") class InterstellarConfig : PartitioningSerializer.GlobalData() { ...
0
Kotlin
1
3
6185d241e7ceae7ab29f8e344d0c19596ad84b05
421
Interstellar
MIT License
app/src/main/java/com/example/swiftbargain/ui/payments/PaymentsScreen.kt
ahmedfikry24
814,676,783
false
{"Kotlin": 480967}
package com.example.swiftbargain.ui.payments import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.lazy.LazyColumn import androi...
0
Kotlin
0
0
daee363e13ed78c20da30c54a45dfb9309338b33
4,082
SwiftBargain
MIT License
kotlin-remix-run-router/src/main/generated/remix/run/router/MemoryHistory.kt
JetBrains
93,250,841
false
null
@file:JsModule("@remix-run/router") @file:JsNonModule @file:Suppress( "NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE", "NAME_CONTAINS_ILLEGAL_CHARS", ) package remix.run.router /** * A memory history stores locations in memory. This is useful in stateful * environments where there is no web browser, such ...
20
Kotlin
162
1,140
75827d7f288fecb503092f644abd7c49e31d639b
492
kotlin-wrappers
Apache License 2.0
clients/kotlin-server/generated/src/main/kotlin/org/openapitools/server/models/SwapSpaceMonitorMemoryUsage2.kt
oapicf
90,140,540
false
{"Markdown": 2427, "YAML": 76, "Text": 16, "Ignore List": 61, "JSON": 514, "Makefile": 3, "JavaScript": 371, "F#": 195, "XML": 206, "Shell": 50, "Batchfile": 10, "Scala": 796, "INI": 31, "Dockerfile": 17, "Maven POM": 22, "Java": 2299, "Emacs Lisp": 1, "Haskell": 40, "Swift": 96, "Ruby": 215, "Cabal Config": 2, "OASv3-...
/** * <NAME> * Jenkins API clients generated from Swagger / Open API specification * * The version of the OpenAPI document: 2.0.1-pre.0 * Contact: <EMAIL> * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ p...
30
Java
12
19
277d791c0d363a4d93832bec8a581d4c01297b18
803
swaggy-jenkins
MIT License
app/src/main/java/com/github/hadilq/youtubeapp/di/AppModule.kt
hadilq
277,937,773
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 writing, so...
0
Kotlin
0
13
110bfadd44cc7cc5c46f7e1ff0dfa57cf5386935
1,331
youtube-app
Apache License 2.0
plugins/kotlin/refactorings/kotlin.refactorings.move.k2/src/org/jetbrains/kotlin/idea/k2/refactoring/move/K2MoveDescriptor.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.kotlin.idea.k2.refactoring.move import com.intellij.openapi.util.NlsContexts import com.intellij.refactoring.BaseRefactoringProcessor import com.intellij.ui.dsl.builder.* impor...
229
null
4931
2
b07eabd319ad5b591373d63c8f502761c2b2dfe8
4,430
intellij-community
Apache License 2.0
src/me/anno/gpu/shader/DepthTransforms.kt
AntonioNoack
456,513,348
false
null
package me.anno.gpu.shader import me.anno.engine.ui.render.RenderState import me.anno.gpu.GFX import me.anno.gpu.shader.builder.Variable import me.anno.utils.pooling.JomlPools import org.joml.Matrix4f import org.joml.Quaterniond import org.joml.Vector3d /** * helps loading and storing depth values in shaders from te...
0
null
3
24
013af4d92e0f89a83958008fbe1d1fdd9a10e992
4,771
RemsEngine
Apache License 2.0
Sushi/app/src/main/java/com/destructo/sushi/adapter/pagerAdapter/ForumCategoryAdapter.kt
destructo570
302,356,237
false
null
package com.destructo.sushi.adapter.pagerAdapter import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.destructo.sushi.databinding.ListItemForumCategoryBinding import com.destructo.sushi.model.mal.forum.Category class ForumCategoryAdapter( pri...
3
Kotlin
5
21
68317c04caa596103d3fd32b0f34fe43b189a721
1,474
Sushi-Unofficial-MAL-Client
Apache License 2.0
creator/src/jsMain/kotlin/ch/sourcemotion/tyr/creator/ui/file/NewfileCreator.kt
wem
617,579,274
false
null
package ch.sourcemotion.tyr.creator.ui.file import ch.sourcemotion.tyr.creator.dto.element.MimeTypeDto import ch.sourcemotion.tyr.creator.ui.coroutine.launch import ch.sourcemotion.tyr.creator.ui.global.FileUpload import ch.sourcemotion.tyr.creator.ui.global.GlobalMessageTrigger import ch.sourcemotion.tyr.creator.ui.g...
0
Kotlin
0
0
82aaee37798133bc81934933a1dc35a9e14ff8cb
3,371
tyr
MIT License
bsky/src/test/kotlin/com/millkcococa/info/milkyway/api/bsky/feed/GetTimelineTest.kt
milkcocoa0902
777,786,753
false
{"Kotlin": 61437}
package com.millkcococa.info.milkyway.api.bsky.feed import com.milkcocoa.info.milkyway.Milkyway import com.milkcocoa.info.milkyway.api.atproto.server.CreateSession import com.milkcocoa.info.milkyway.api.bsky import com.milkcocoa.info.milkyway.api.bsky.feed.GetTimeLine import com.milkcocoa.info.milkyway.domain.Domain i...
0
Kotlin
0
0
e8cf6757bc1041e3b3b381e4ad3ce5e64e869d19
1,402
Milkyway
MIT License
module_record/src/main/kotlin/life/chenshi/keepaccounts/module/record/repo/IndexRepo.kt
SMAXLYB
340,857,932
false
null
package life.chenshi.keepaccounts.module.record.repo import life.chenshi.keepaccounts.module.common.database.dao.AssetsAccountDao import life.chenshi.keepaccounts.module.common.database.dao.BookDao import life.chenshi.keepaccounts.module.common.database.dao.RecordDao import life.chenshi.keepaccounts.module.common.data...
0
Kotlin
0
2
389632d87e90588555c10682a5804f6fddba5278
1,114
KeepAccount
Apache License 2.0
app/src/main/java/com/taptrack/experiments/rancheria/ui/views/sendmessages/ConfigurationDialogGenerator.kt
TapTrack
109,749,769
false
{"Java": 624211, "Kotlin": 531819}
package com.taptrack.experiments.rancheria.ui.views.sendmessages import android.app.Activity import android.app.Dialog import android.content.Context import android.os.Build import android.os.Bundle import android.text.Editable import android.text.InputFilter import android.text.InputType import android.text.TextWatch...
2
Java
2
4
6a39211ec6b2ac549eed7e4d43595a330f0fb7cb
119,756
TCMPTappy-Android
Apache License 2.0
smartdoc-dashboard/src/main/kotlin/smartdoc/dashboard/model/doc/http/HistoryFieldDescription.kt
Maple-mxf
283,354,797
false
{"Kotlin": 3578500, "Java": 741741, "Dockerfile": 1079, "Shell": 1000, "Python": 714}
package smartdoc.dashboard.model.doc.http import org.springframework.data.annotation.Id import org.springframework.data.mongodb.core.index.HashIndexed import org.springframework.data.mongodb.core.mapping.Document import smartdoc.dashboard.util.IDUtil @Document(collection = "restdoc_history_field_description") data cl...
21
Kotlin
2
2
3cdf9de7593c78c819b3dadc9b583e736041d55f
968
rest-doc
Apache License 2.0
src/main/kotlin/com/fiap/selfordermanagement/SelfOrderManagementApplication.kt
FIAP-3SOAT-G15
686,372,615
false
{"Kotlin": 175722, "HCL": 5552, "Makefile": 653, "Dockerfile": 295}
package com.fiap.selfordermanagement import io.swagger.v3.oas.annotations.OpenAPIDefinition import io.swagger.v3.oas.annotations.info.Contact import io.swagger.v3.oas.annotations.info.Info import io.swagger.v3.oas.annotations.servers.Server import org.springframework.boot.autoconfigure.SpringBootApplication import org...
3
Kotlin
1
4
4d88e0bd81de2e83cbf3aa5d3224529adbd25529
1,123
tech-challenge
MIT License
subprojects/analysis-java-psi/src/main/kotlin/org/jetbrains/dokka/analysis/java/JavaAnalysisPlugin.kt
Kotlin
21,763,603
false
null
package org.jetbrains.dokka.analysis.java import com.intellij.lang.jvm.annotation.JvmAnnotationAttribute import com.intellij.openapi.diagnostic.Logger import com.intellij.openapi.project.Project import com.intellij.psi.PsiAnnotation import org.jetbrains.dokka.CoreExtensions import org.jetbrains.dokka.DokkaConfiguratio...
438
Kotlin
390
3,010
bec2cac91726e52884329e7997207e9777abaab7
3,883
dokka
Apache License 2.0
domain/src/main/java/com/maasbodev/marvelmd/domain/MyClass.kt
MaasboDev
632,318,883
false
null
package com.maasbodev.marvelmd.domain class MyClass { }
1
Kotlin
0
0
8a754ec52e20aa13b91cf75ebaa0a9615f4056e0
57
marvel-md
Apache License 2.0
project-system/testSrc/com/android/tools/idea/sdk/AndroidEnvironmentCheckerTest.kt
JetBrains
60,701,247
false
{"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19}
package com.android.tools.idea.sdk import com.android.testutils.MockitoKt.whenever import com.android.tools.idea.IdeInfo import com.google.common.truth.Truth.assertThat import com.intellij.facet.ProjectFacetManager import com.intellij.openapi.application.ApplicationManager import com.intellij.testFramework.DisposableR...
5
Kotlin
227
948
10110983c7e784122d94c7467e9d243aba943bf4
2,279
android
Apache License 2.0
compiler/testData/diagnostics/tests/callableReference/referenceInCycleInProperties.kt
JetBrains
3,432,266
false
null
// FIR_IDENTICAL // WITH_STDLIB abstract class Parser { open fun parseString(x: String): List<Int> = null!! fun parse(name: String): Int = null!! fun parse(name: String, content: String): Int = null!! } class Some(strings: List<String>) { val parser = object : Parser() { override fun parseStri...
181
null
5748
49,172
33eb9cef3d146062c103f9853d772f0a1da0450e
464
kotlin
Apache License 2.0
src/main/kotlin/tech/relaycorp/relaynet/CryptoUtils.kt
relaycorp
171,718,724
false
null
@file:JvmName("CryptoUtils") package tech.relaycorp.vera.crypto import java.security.MessageDigest import org.bouncycastle.jce.provider.BouncyCastleProvider fun getSHA256Digest(input: ByteArray): ByteArray { val digest = MessageDigest.getInstance("SHA-256") return digest.digest(input) } internal fun getSHA2...
10
null
0
2
2fe2212375641592a06f70a2219413168f6ffea5
469
awala-jvm
Apache License 2.0
src/main/kotlin/tech/relaycorp/relaynet/CryptoUtils.kt
relaycorp
171,718,724
false
null
@file:JvmName("CryptoUtils") package tech.relaycorp.vera.crypto import java.security.MessageDigest import org.bouncycastle.jce.provider.BouncyCastleProvider fun getSHA256Digest(input: ByteArray): ByteArray { val digest = MessageDigest.getInstance("SHA-256") return digest.digest(input) } internal fun getSHA2...
10
null
0
2
2fe2212375641592a06f70a2219413168f6ffea5
469
awala-jvm
Apache License 2.0
app/src/main/java/com/ky/android/library/sample/KyLogDemoActivity.kt
kekegdsz
351,718,403
false
{"Java": 29823, "Kotlin": 5403}
package com.ky.android.library.sample import android.os.Bundle import android.view.View import androidx.appcompat.app.AppCompatActivity import com.ky.android.library.R import com.ky.android.library.log.KyLog import com.ky.android.library.log.KyLogManager import com.ky.android.library.log.KyViewPrinter class KyLogDemo...
1
null
1
1
f62974c9e08f908e28bb945d25feebbfc241ce92
867
Ky-log
Apache License 2.0
http/src/main/java/com/yww/http/manager/parser/UrlParserSuper.kt
wavening
180,977,597
false
{"Gradle": 14, "Java Properties": 4, "Shell": 1, "Text": 9, "Ignore List": 12, "Batchfile": 1, "Markdown": 1, "Proguard": 11, "XML": 65, "Kotlin": 113, "Java": 2, "JSON": 12, "SQL": 2, "Motorola 68K Assembly": 3, "Unix Assembly": 1}
package com.yww.http.manager.parser import android.text.TextUtils import com.yww.http.manager.RetrofitUrlManager import com.yww.http.manager.RetrofitUrlManager.Companion.IDENTIFICATION_PATH_SIZE import com.yww.http.manager.cache.Cache import com.yww.http.manager.cache.LruCache import okhttp3.HttpUrl import java.util.*...
1
null
1
1
964e3eaa52e2aefdc10b883394910e61fdb2e467
4,530
KotlinLibs
Apache License 2.0
src/main/java/ui/RunningAbstractCanvasUI.kt
Acrylic125
306,867,175
false
null
package com.acrylic.ui import com.acrylic.threads.RunningLoop abstract class RunningAbstractCanvasUI : AbstractCanvasUI, RunningLoop { constructor(title: String?) : super(title) { startRunning() } constructor(title: String?, width: Int, height: Int) : super(title, width, height) { startR...
0
Kotlin
0
0
1319a81d4c4bd5ea64414ad662539e1154776fa2
386
AcrylicLib
MIT License
api/src/main/kotlin/de/jnkconsulting/e3dc/easyrscp/api/service/model/SystemInfo.kt
jnk-cons
691,762,451
false
{"Kotlin": 838569}
package de.jnkconsulting.e3dc.easyrscp.api.service.model import java.time.DayOfWeek import java.time.LocalDate import java.time.temporal.IsoFields /** * Contains the basic system information of a home power plant * * @param serialNumber Serial number of the home power plant * @param softwareVersion Currently inst...
5
Kotlin
0
1
d28657abdbad147810d0ea0bd9df581f9d2a49ff
2,953
easy-rscp
MIT License
domain/src/main/java/com/example/cleanarchitecture/domain/model/Transformer.kt
cucerdariancatalin
573,403,217
false
null
package com.example.cleanarchitecture.domain.model import io.reactivex.ObservableTransformer abstract class Transformer<T> : ObservableTransformer<T, T>
1
null
1
3
1346d7891b98289e7d5be895f656ed15ed30cb6c
154
CleanArchitecture
Apache License 2.0
phrecycler/src/main/java/dev/phlogiston/phrecycler/PhrecyclerViewHolder.kt
phlogistonCode
253,092,350
false
null
package dev.phlogiston.phrecycler import android.view.View import androidx.recyclerview.widget.RecyclerView abstract class PhrecyclerViewHolder<LT>(itemView: View) : RecyclerView.ViewHolder(itemView) { open val wholeClick = -1 open val viewClicks = mapOf<View, Int>() internal var wholeClickListener: Vie...
0
Kotlin
0
1
60c4e3864255cae5fb04f99e7a73d08b6c8e5924
894
phrecycler
Apache License 2.0
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/logos/InvisionFill.kt
walter-juan
868,046,028
false
{"Kotlin": 34345428}
package com.woowla.compose.icon.collections.remix.remix.logos import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.Stro...
0
Kotlin
0
3
eca6c73337093fbbfbb88546a88d4546482cfffc
4,225
compose-icon-collections
MIT License
app/src/main/java/com/stocksexchange/android/ui/transactions/fragment/TransactionItem.kt
libertaria-project
183,030,087
true
{"Kotlin": 2210140}
package com.stocksexchange.android.ui.transactions.fragment import android.text.SpannableString import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import androidx.cardview.widget.CardView import androidx.recyclerview.widget.RecyclerView import com.a...
0
Kotlin
0
0
35a7f9a61f52f68ab3267da24da3c1d77d84e9c3
9,997
Android-app
MIT License
kotlin-tanstack-table-core/src/main/generated/tanstack/table/core/CustomAggregationFns.kt
stefanthaler
440,580,782
true
{"Kotlin": 8815376, "JavaScript": 528}
// Automatically generated - do not modify! package tanstack.table.core import kotlinx.js.ReadonlyRecord typealias CustomAggregationFns = ReadonlyRecord<String, AggregationFn<*>>
0
Kotlin
0
0
fc27a2b5d98423c8db24f8a28d1c3a95dc682b0a
181
kotlin-wrappers
Apache License 2.0
core-api/src/main/kotlin/com/skufbet/core/api/bet/service/command/BetCreateCommand.kt
otto15
781,677,300
false
{"Kotlin": 115304, "Dockerfile": 65, "Shell": 59}
package com.skufbet.core.api.bet.service.command data class BetCreateCommand(val userId: Int, val lineId: Int, val resultId: Int, val amount: Int, val coefficient: Double, val status: String)
0
Kotlin
0
0
e1c59c6faa005690fda7c141a569f56fa5de9a9e
193
skufbet
MIT License
app/src/main/java/com/jmat/powertools/data/preferences/UserPreferencesSerializer.kt
jmalfara
439,202,008
false
null
package com.jmat.powertools.data.preferences import androidx.datastore.core.CorruptionException import androidx.datastore.core.Serializer import com.google.protobuf.InvalidProtocolBufferException import com.jmat.powertools.UserPreferences import java.io.InputStream import java.io.OutputStream object UserPreferencesSe...
0
null
0
2
0cb4d48a6ffda8107226d1c203c4c8aca3de3565
833
PowerTools
MIT License
sher-gil/src/main/java/com/kinnerapriyap/sugar/mediapreview/MediaPreviewFragment.kt
kinnerapriyap
266,549,787
false
null
package com.kinnerapriyap.sugar.mediapreview import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.fragment.app.activityViewModels import androidx.navigation.fragment.navArgs import com.google.android.mat...
18
Kotlin
1
5
cd5959a618a767d551f642f3244ef4afa2f6b9da
2,126
sher-gil
Apache License 2.0
src/main/kotlin/com/github/fe3dback/intellijgoarchlint/cmp/notifications/CommonNotification.kt
fe3dback
290,830,645
false
null
package com.github.fe3dback.intellijgoarchlint.cmp.notifications import com.intellij.notification.NotificationGroupManager import com.intellij.notification.NotificationType import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.application.ModalityState import com.intellij.openapi.proje...
0
Kotlin
0
0
f49c5d10974bf9f037bc785f142858480968afa4
1,081
intellij-go-arch-lint
Apache License 2.0
compiler/testData/diagnostics/tests/multiplatform/directJavaActualization/directJavaActualization_missingAnnotationOnJava.fir.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_KOTLIN_JVM_ANNOTATIONS // LANGUAGE:+DirectJavaActualization // MODULE: m1-common // FILE: common.kt <!KOTLIN_ACTUAL_ANNOTATION_MISSING{JVM}!>expect<!> class Foo<!KOTLIN_ACTUAL_ANNOTATION_MISSING{JVM}!>()<!> { fun <!KOTLIN_ACTUAL_ANNOTATION_MISSING{JVM}!>foo<!>() override fun equals(other: Any?): Boolea...
181
Kotlin
5748
49,172
33eb9cef3d146062c103f9853d772f0a1da0450e
615
kotlin
Apache License 2.0
mobile/android/app/src/main/java/com/nguyen/polyglot/util/UIState.kt
dtnguyn
368,055,944
false
null
package com.moderndev.polyglot.util sealed class UIState<T>(val errorMsg: String? = null, val value: T? = null){ class Initial<T>(initialValue: T?): UIState<T>(value = initialValue) class Loading<T>: UIState<T>() class Error<T>(errorMsg: String, value: T? = null): UIState<T>(errorMsg = errorMsg, value) ...
0
Kotlin
1
0
859f1ac2f23b5782f21824c8a3e6341bd093b5a1
389
Pawn
The Unlicense
subprojects/gradle/code-ownership/plugin/src/testFixtures/kotlin/com/avito/android/model/FakeOwners.kt
avito-tech
230,265,582
false
{"Kotlin": 3752627, "Java": 67252, "Shell": 27892, "Dockerfile": 12799, "Makefile": 8086}
package com.avito.android.model enum class FakeOwners : Owner { Speed, Messenger }
10
Kotlin
50
414
4dc43d73134301c36793e49289305768e68e645b
92
avito-android
MIT License
app/src/main/java/com/amp/video_trimmer_sample/MainActivity.kt
Amal92
272,075,455
false
null
package com.amp.video_trimmer_sample import android.Manifest import android.annotation.SuppressLint import android.app.Activity import android.content.Intent import android.content.pm.PackageManager import android.net.Uri import android.os.Bundle import android.provider.MediaStore import android.view.Menu import andro...
2
null
1
5
219cc279c35251bd383a0583d3d4c2e735935948
6,093
Trimmy
MIT License
src/main/kotlin/dev/koifysh/randomizer/registries/APItem.kt
KonoTyran
833,936,250
false
{"Kotlin": 124979, "Java": 8155}
package dev.koifysh.randomizer.registries import com.google.gson.annotations.SerializedName abstract class APItem { @SerializedName("id") var id: Long = 0 @SerializedName("type") var type: String = "" abstract fun grant() }
0
Kotlin
0
0
e4ad3c9f159d3147d32ab876fcb2dc3bbefa7d90
250
archipelago-randomizer-fabric
Creative Commons Zero v1.0 Universal
semver-project-gradle-plugin/main/kotlin/com/javiersc/semver/project/gradle/plugin/internal/Checkers.kt
JavierSegoviaCordoba
423,300,614
false
{"Kotlin": 257702, "CSS": 194}
package com.javiersc.semver.project.gradle.plugin.internal import com.javiersc.gradle.version.GradleVersion import org.gradle.api.Project internal fun Project.checkScopeCorrectness() { val scope = scopeProperty.orNull check(scope in Scope.values().map(Scope::invoke) || scope.isNullOrBlank()) { "`scope...
3
Kotlin
3
24
b0c1ff2b0f5d060d95b785b5e19ea76dc84a992e
742
semver-gradle-plugin
Apache License 2.0
app/src/main/java/com/example/marvel/app/views/CollectionView.kt
ahmeddyounes
842,107,601
false
{"Kotlin": 155384}
package com.example.marvel.app.views import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxSize import androidx.compose...
0
Kotlin
0
0
b03e737a6e2edbc86e1cfba7c58a8a3b4b273eeb
5,002
Marvel
MIT License
desktop/adapters/src/main/kotlin/com/soyle/stories/scene/sceneFrame/SetSceneFrameValueControllerImpl.kt
Soyle-Productions
239,407,827
false
null
package com.soyle.stories.scene.sceneFrame import com.soyle.stories.common.ThreadTransformer import com.soyle.stories.domain.scene.Scene import com.soyle.stories.domain.scene.SceneConflict import com.soyle.stories.domain.scene.SceneResolution import com.soyle.stories.usecase.scene.sceneFrame.SetSceneFrameValue class ...
45
Kotlin
0
9
1a110536865250dcd8d29270d003315062f2b032
1,011
soyle-stories
Apache License 2.0
app/src/main/java/vn/loitp/a/cv/layout/draggablePanel/DraggablePanelActivityFont.kt
tplloi
126,578,283
false
null
package vn.loitp.a.cv.layout.draggablePanel import android.content.res.Resources import android.os.Bundle import androidx.core.view.isVisible import com.loitp.annotation.IsFullScreen import com.loitp.annotation.LogTag import com.loitp.core.base.BaseActivityFont import com.loitp.core.ext.setSafeOnClickListenerElastic i...
0
Kotlin
0
10
333bebaf3287b1633f35d29b8adaf25b19c1859f
2,226
base
Apache License 2.0
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableBase.kt
cloudshiftinc
667,063,030
false
{"Kotlin": 140726596}
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") package io.cloudshiftdev.awscdk.services.dynamodb import io.cloudshiftdev.awscdk.Resource import io.cloudshiftdev.awscdk.common.CdkObject impo...
3
Kotlin
0
4
ddf2bfd2275b50bb86a667c4298dd92f59d7e342
22,105
kotlin-cdk-wrapper
Apache License 2.0
src/test/java/com/softwareforgood/pridefestival/test/TestData.kt
AndrewReitz
187,092,355
true
{"Kotlin": 182817}
package com.softwareforgood.pridefestival.test import com.softwareforgood.pridefestival.data.model.Event import com.softwareforgood.pridefestival.data.model.ParadeEvent import com.softwareforgood.pridefestival.data.model.Vendor import com.softwareforgood.pridefestival.data.model.VendorColor import com.softwareforgood....
0
Kotlin
0
2
d2afdb46eb9765f24c8753fde760b2e8cd558cbc
1,929
pride-android
MIT License
app/src/main/java/com/codersandeep/shopeaze/api/ProductsAPI.kt
coder-sandeep
685,632,917
false
{"Kotlin": 33597}
package com.codersandeep.shopeaze.api import com.codersandeep.shopeaze.models.ProductsItem import retrofit2.Response import retrofit2.http.GET import retrofit2.http.Path interface ProductsAPI { @GET("/products") suspend fun getAllProducts() : Response<List<ProductsItem>> @GET("/products/{productId}") ...
0
Kotlin
0
0
a4e4cd55568223563eb66e97ab633da5e8ed9553
427
ShopEaze
Apache License 2.0
app/src/main/java/com/codersandeep/shopeaze/api/ProductsAPI.kt
coder-sandeep
685,632,917
false
{"Kotlin": 33597}
package com.codersandeep.shopeaze.api import com.codersandeep.shopeaze.models.ProductsItem import retrofit2.Response import retrofit2.http.GET import retrofit2.http.Path interface ProductsAPI { @GET("/products") suspend fun getAllProducts() : Response<List<ProductsItem>> @GET("/products/{productId}") ...
0
Kotlin
0
0
a4e4cd55568223563eb66e97ab633da5e8ed9553
427
ShopEaze
Apache License 2.0
src/main/kotlin/com/example/graph/GraphQlConfiguration.kt
juliuskrah
288,965,100
false
{"Kotlin": 30191}
package com.example.graph import graphql.Scalars import graphql.scalars.ExtendedScalars import graphql.schema.idl.RuntimeWiring import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.graphql.execution.RuntimeWiringConfigurer /** * @au...
0
Kotlin
1
2
fcbc5e42b072895d13e2b338a50d7af4e633f9e3
645
graphql-demo
The Unlicense
app/src/main/java/com/shentu/paper/di/module/SettingMoreModule.kt
walkthehorizon
133,635,969
false
null
package com.shentu.paper.di.module import android.content.Context import com.shentu.paper.mvp.contract.SettingMoreContract import com.shentu.paper.mvp.model.SettingMoreModel import dagger.Module import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.android.components.ActivityComponent import dagger.hi...
1
Kotlin
1
3
47828dbae0e04331c46bee6773efbec331f3f167
877
MicroWallPager
Apache License 2.0
java/com/tdi/tmaps/FriendRequestActivity.kt
DigitalRealm2282
534,740,468
false
{"Kotlin": 372930}
package com.tdi.tmaps import android.content.Context import android.content.SharedPreferences import android.content.res.Resources import android.os.Bundle import android.text.Editable import android.text.TextWatcher import android.view.LayoutInflater import android.view.ViewGroup import android.widget.Toast import an...
0
Kotlin
0
0
51df7362986a48dfb1e4b592a56cf8e0e726500f
13,964
TMaps
MIT License
app/src/main/java/com/iamsmk/fynd/src/models/providers/ProductsProvider.kt
SelvamuthukumaranRajan
657,524,364
false
null
package com.iamsmk.fynd.src.models.providers import android.util.Log import androidx.lifecycle.MutableLiveData import com.iamsmk.fynd.src.models.ProductDetails import com.iamsmk.fynd.src.utils.retrofit.FyndAPI import com.iamsmk.fynd.src.utils.retrofit.FyndAPIClient import retrofit2.Call import retrofit2.Callback impor...
0
Kotlin
0
0
dfbd87aef2c59ce439260debb9eb9a3f3825cb6f
1,229
Fynd
MIT License
platform/external-system-impl/testSrc/com/intellij/openapi/externalSystem/util/ui/PropertyTestCase.kt
RemigiuszDudek
207,394,993
true
null
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.externalSystem.util.ui import junit.framework.TestCase import org.junit.Assert abstract class PropertyTestCase : TestCase() { private lateinit va...
1
null
1
1
d9a8be62acef732528ae7fb9dba69aa88e1e874a
1,271
intellij-community
Apache License 2.0
src/main/kotlin/io/titandata/titan/utils/CommandExecutor.kt
liquibase
401,796,662
false
null
/* * Copyright (c) 2021 by Titan Project Contributors.. All rights reserved. */ package io.titandata.titan.utils import io.titandata.titan.exceptions.CommandException import java.io.IOException import java.util.concurrent.TimeUnit import liquibase.Scope import liquibase.ui.UIService import org.apache.commons.lang3....
11
null
3
27
53a78db96548e2c1d2595d6bccefb5c6836c95e3
2,664
liquibase-data
Apache License 2.0
feature/history/src/main/java/com/ariefzuhri/gizee/feature/history/domain/usecase/HistoryInteractor.kt
ariefzuhri
388,739,293
false
null
package com.ariefzuhri.gizee.feature.history.domain.usecase import com.ariefzuhri.gizee.feature.history.domain.repository.IHistoryRepository import com.ariefzuhri.gizee.core.database.domain.model.History import kotlinx.coroutines.flow.Flow class HistoryInteractor(private val repository: IHistoryRepository) : HistoryU...
5
Kotlin
2
4
228e830857d6d2622282ef2146891dd7d76b6b03
618
Gizee
MIT License
src/commonTest/kotlin/io/github/sintrastes/stlk/LambdaAlgTest.kt
Sintrastes
512,471,764
false
{"Kotlin": 34928}
package io.github.sintrastes.stlk import io.kotest.core.spec.style.FunSpec import io.kotest.matchers.shouldBe import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json class LambdaAlgTest : FunSpec({ test("Test integer arithmetic interpreter") { val test = IntArithAlg.Interpreter ...
0
Kotlin
0
2
6a0e0c09a4e5556a6eded48df99cafccd9cf00bf
3,982
STLK
MIT License
app/src/main/java/id/co/dot/adapter/MainAdapter.kt
raismaulana
221,584,383
false
null
package id.co.dot.adapter import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import id.co.dot.databinding.ItemRvBinding import id.co.dot.entity.GalleryBatu class MainAdapter : RecyclerView.Adapter<MainAdapter.ViewHolder>() { private val listGalleryBa...
0
Kotlin
0
0
1d986a635f258862df81304d5d290cbe653c9c75
1,581
tesmagangdot
Apache License 2.0
app/src/main/java/com/example/fitfinder/viewmodel/exercise/UnfilledReportsViewModel.kt
OmriGawi
618,447,164
false
{"Kotlin": 207780}
package com.example.fitfinder.viewmodel.exercise import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import com.example.fitfinder.data.model.TrainingSession import com.example.fitfinder.data.repository.exercise.UnfilledReportsRepository import com.example.fi...
0
Kotlin
0
0
de07d58ccc2c354b00f212874914c9d84608fc84
1,339
FitFinder
MIT License
infra/src/fanpoll/infra/base/extension/KotlinExt.kt
csieflyman
359,559,498
false
null
/* * Copyright (c) 2021. fanpoll All rights reserved. */ package fanpoll.infra.base.extension import org.kpropmap.applyProps import org.kpropmap.deserialize import org.kpropmap.propMapOf import java.time.Duration import java.time.Instant import java.time.temporal.ChronoUnit import kotlin.reflect.KMutableProperty1 im...
1
null
9
58
0336a40bc9a5a8501b7e8cc6aeebd2112e6b4431
4,220
multi-projects-architecture-with-Ktor
MIT License
base/lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/C2dmDetector.kt
qiangxu1996
301,210,525
false
null
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
1
null
1
1
3411c5436d0d34e6e2b84cbf0e9395ac8c55c9d4
3,983
vmtrace
Apache License 2.0
build-tools/agp-gradle-core/src/main/java/com/android/build/gradle/internal/dependency/LibraryDependencyAnalyzerTransforms.kt
RivanParmar
526,653,590
false
{"Java": 48334972, "Kotlin": 8896058, "HTML": 109232, "Lex": 13233, "ReScript": 3232, "Makefile": 2194}
package com.android.build.gradle.internal.dependency import com.android.SdkConstants import com.android.builder.dexing.getSortedRelativePathsInJar import com.android.ide.common.resources.usage.getResourcesFromDirectory import com.android.ide.common.symbols.SymbolIo import org.gradle.api.artifacts.transform.CacheableTr...
0
Java
2
17
8fb2bb1433e734aa9901184b76bc4089a02d76ca
2,421
androlabs
Apache License 2.0
src/main/kotlin/com/giftandgo/assessment/features/ingress_filtering/ui/IngressFilter.kt
chrisdenman
747,156,131
false
{"Kotlin": 38894, "Shell": 191}
package com.giftandgo.assessment.features.ingress_filtering.ui import com.fasterxml.jackson.databind.ObjectMapper import com.giftandgo.assessment.features.ingress_filtering.uc.IngressService import jakarta.servlet.FilterChain import jakarta.servlet.ServletException import jakarta.servlet.http.HttpServletRequest import...
0
Kotlin
0
0
796b9cbfa56eb73bdadceab784f272b36b447e99
2,817
giftandgo
The Unlicense
data/src/main/java/com/pthw/data/feature/article/datasource/ArticleCacheDSource.kt
PhyoThihaWin
551,899,842
false
{"Kotlin": 328147, "Java": 3279}
package com.pthw.data.feature.article.datasource import androidx.paging.PagingData import com.pthw.data.feature.article.entity.ArticleEntity import kotlinx.coroutines.flow.Flow interface ArticleCacheDSource { fun getArticles(): Flow<PagingData<ArticleEntity>> }
1
Kotlin
1
4
f64626fb6e101659693ac76d8d9ca5489ac9e821
267
MyPagingThree
Apache License 2.0
ListVisibilityDemo/app/src/main/java/com/renyu/listvisibilitydemo/ListItem.kt
r17171709
23,950,456
false
{"Java": 796606, "Kotlin": 611868, "Dart": 421620, "Groovy": 32447, "C++": 31140, "CMake": 9722, "Python": 8028, "HTML": 4392, "Ruby": 1354, "Objective-C": 791, "C": 734, "Swift": 404}
package com.renyu.listvisibilitydemo /** * Created by Administrator on 2018/2/24 0024. */ interface ListItem { // 当前显示项中的某一项从不完全显示到完全显示时使用 fun setActive() // 当前显示项中的某一项从完全显示到不完全显示时使用 fun deActive() // 设置进度 fun setPercent(percent: Int) }
8
Java
333
612
ee75780c1187355d81bab329e62ecaad985d6832
263
StudyDemo
Apache License 2.0
mui-kotlin/src/jsMain/kotlin/mui/material/ListSubheader.ext.kt
karakum-team
387,062,541
false
{"Kotlin": 3059969, "TypeScript": 2249, "HTML": 724, "CSS": 86}
// Automatically generated - do not modify! package mui.material import seskar.js.JsValue import seskar.js.JsVirtual @Suppress( "NESTED_CLASS_IN_EXTERNAL_INTERFACE", ) @JsVirtual sealed external interface ListSubheaderColor { companion object { @JsValue("default") val default: ListSubheaderCo...
0
Kotlin
5
35
45ca2eabf1d75a64ab7454fa62a641221ec0aa25
470
mui-kotlin
Apache License 2.0
app/src/main/java/com/oristats/ui/main/Stopwatch_ViewModel.kt
OriStats
244,014,583
false
null
package com.oristats.ui.main import android.app.Application import android.content.Context import androidx.lifecycle.AndroidViewModel class Stopwatch_ViewModel(application: Application) : AndroidViewModel(application) { // Keep info/chrono even if app is closed. val stopwatch_save = application.getSharedPref...
0
Kotlin
1
3
8febeaaf04add4101f3774391dce9233147fae77
4,832
OriStats
Apache License 2.0
src/Day01.kt
bennguyen2412
572,970,438
false
{"Kotlin": 1254}
fun main() { fun part1(input: List<String>): Int { return input .joinToString(separator = "\n") .split("\n\n") .maxOfOrNull { it.split("\n").sumOf { value -> value.toInt() } }!! } fun part2(input: List<String>): Int { return input .joinToStrin...
0
Kotlin
0
0
6f7412288a1d1dc00c9d2831adeb8247b3bc2bf8
604
advent-of-code-kotlin
Apache License 2.0
src/main/kotlin/me/obsilabor/prismarin/command/commands/SettingsCommand.kt
Obsilabor
393,367,966
false
null
package me.obsilabor.prismarin.command.commands import me.obsilabor.prismarin.command.Command import me.obsilabor.prismarin.extensions.moduleByName import me.obsilabor.prismarin.module.ModuleSettings class SettingsCommand : Command("settings") { override fun handle(args: Array<String>) { ModuleSettings.ge...
0
Kotlin
0
0
e679a97b10dc84940659f74f8a56e0ae2e7ac47d
383
prismarin
MIT License
app/src/test/java/com/filipibrentegani/dependencyinjectionexample/presentation/MyViewModelTest.kt
filipibrentegani
368,715,889
false
null
package com.filipibrentegani.dependencyinjectionexample.presentation import androidx.arch.core.executor.testing.InstantTaskExecutorRule import junit.framework.TestCase import org.junit.Rule class MyViewModelTest : TestCase() { @get:Rule val instantTaskExecutorRule = InstantTaskExecutorRule() }
0
Kotlin
0
0
830f9779a4a76b184e7c662eb82873ccf3eb02e1
304
DependencyInjectionExamples
Apache License 2.0
ActionCards.kt
ncschroeder
281,853,024
false
{"Kotlin": 111413}
import kotlin.math.absoluteValue /* This file has the ActionCard abstract class and all its subclasses and objects that inherit from it. During a game when we handle landing on a Draw Action Card space, we access an ActionCard at the top of an ActionDeck and always display its message and then check its type and use ...
0
Kotlin
0
0
948a2e9acdcd072de5a1500d6917015f7bd852d1
2,178
Singletonopoly
MIT License
plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/services/caws/CawsResources.kt
aws
91,485,909
false
{"Kotlin": 7507266, "TypeScript": 132101, "C#": 97693, "Vue": 47529, "Java": 19596, "JavaScript": 12450, "HTML": 5878, "Python": 2939, "Shell": 2920, "Dockerfile": 2209, "SCSS": 2045, "CSS": 1827, "PowerShell": 386, "Batchfile": 77}
// Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package software.aws.toolkits.jetbrains.services.caws import software.amazon.awssdk.services.codecatalyst.CodeCatalystClient import software.aws.toolkits.jetbrains.core.ClientBackedCachedResource import j...
519
Kotlin
220
757
a81caf64a293b59056cef3f8a6f1c977be46937e
2,424
aws-toolkit-jetbrains
Apache License 2.0
compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/createMangling.kt
JetBrains
3,432,266
false
null
// WITH_STDLIB // WITH_COROUTINES import kotlin.coroutines.* import helpers.* var result = "FAIL" fun builder(c: suspend () -> Unit) { c.startCoroutine(handleExceptionContinuation { result = it.message!! }) } inline class IC(val s: String) var c: Continuation<Any>? = null fun box(): String { v...
181
null
5748
49,172
33eb9cef3d146062c103f9853d772f0a1da0450e
629
kotlin
Apache License 2.0
compiler/testData/codegen/bytecodeListing/cloneable.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 A : Cloneable interface I : Cloneable interface I2 : Cloneable { override fun clone(): Any } class C : I class OC : I { override fun clone(): OC = OC() } abstract class ACC : Cloneable abstract class ACI : I abstract class ACI2 : I2
181
Kotlin
5748
49,172
33eb9cef3d146062c103f9853d772f0a1da0450e
253
kotlin
Apache License 2.0
konan/library-reader/src/org/jetbrains/kotlin/konan/library/resolver/impl/KonanResolvedLibraryImpl.kt
cr8tpro
189,964,139
true
{"Kotlin": 37481242, "Java": 7489008, "JavaScript": 157778, "HTML": 74773, "Lex": 23159, "TypeScript": 21255, "IDL": 10895, "ANTLR": 9803, "CSS": 8084, "Shell": 7727, "Groovy": 6940, "Batchfile": 5362, "Swift": 2253, "Ruby": 668, "Objective-C": 293, "Scala": 80}
/* * Copyright 2010-2018 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.konan.library.resolver.impl import org.jetbrains.kotlin.konan.library.KonanLibra...
0
Kotlin
1
2
dca23f871cc22acee9258c3d58b40d71e3693858
1,417
kotlin
Apache License 2.0
sigfox/src/main/java/com/st/assetTracking/sigfox/SettingsSigfoxFragment.kt
STMicroelectronics
215,806,141
false
{"Java": 1879263, "Kotlin": 1551485, "HTML": 13728}
package com.st.assetTracking.sigfox import android.os.Bundle import android.view.View import android.widget.CheckBox import android.widget.TextView import android.widget.Toast import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels import androidx.lifecycle.Observer import com.google.android.mate...
0
Java
3
4
7d15d68a7b0e94baa69a2632ae3de37fb32178a8
14,935
STAssetTracking_Android
The Unlicense
jps-plugin/testData/comparison/jvmOnly/packageFacadeMultifileClassChanged/new1.kt
JakeWharton
99,388,807
false
null
@file:JvmName("Utils") @file:JvmMultifileClass package test public fun unchangedFun1() {} public fun publicAddedFun1() {} private fun addedFun1(): Int = 10 private val addedVal1: String = "A" private val changedVal1: String = "" private fun changedFun1(arg: String) {}
179
null
5640
83
4383335168338df9bbbe2a63cb213a68d0858104
275
kotlin
Apache License 2.0
platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/SEResultsEqualityProvider.kt
ingokegel
72,937,917
false
null
// Copyright 2000-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 file. package com.intellij.ide.actions.searcheverywhere import com.intellij.openapi.extensions.ExtensionPointName /** * Equality provider can be used to compare items found by differ...
233
null
4912
2
b07eabd319ad5b591373d63c8f502761c2b2dfe8
3,829
intellij-community
Apache License 2.0
src/app/src/main/kotlin/org/vaccineimpact/api/app/logic/HttpClient.kt
vimc
85,062,678
false
null
package org.vaccineimpact.api.app.logic import khttp.responses.Response interface HttpClient { @Throws(Exception::class) fun post(url: String, headers: Map<String, String>, json: Map<String, Any> = mapOf()): Response fun get(url: String, headers: Map<String, String>): Response } class KHttpClient : HttpC...
1
null
1
2
0b3acb5f22b71300d6c260c5ecb252b0bddbe6ea
738
montagu-api
MIT License
subprojects/gradle/slack/src/main/kotlin/com/avito/slack/SlackMessageUpdater.kt
avito-tech
230,265,582
false
{"Gradle Kotlin DSL": 149, "Java Properties": 2, "Shell": 30, "Text": 155, "Ignore List": 2, "Batchfile": 2, "EditorConfig": 1, "Makefile": 1, "TOML": 2, "INI": 16, "Java": 25, "Markdown": 50, "YAML": 6, "Dockerfile": 6, "Kotlin": 2083, "JSON": 5, "Proguard": 5, "XML": 49, "Gradle": 3}
package com.avito.slack import com.avito.android.Result import com.avito.notification.model.FoundMessage import com.avito.slack.model.SlackMessage public interface SlackMessageUpdater { public fun updateMessage(previousMessage: FoundMessage, newContent: String): Result<SlackMessage> }
6
Kotlin
47
403
ac723e600218c18767d047ee07880db42248d50c
293
avito-android
MIT License
app/src/main/java/cz/budikpet/bachelorwork/screens/settings/SettingsFragment.kt
budikpet
173,619,887
false
null
package cz.budikpet.bachelorwork.screens.settings import android.app.TimePickerDialog import android.arch.lifecycle.ViewModelProviders import android.content.SharedPreferences import android.os.Bundle import android.support.v7.app.AlertDialog import android.support.v7.app.AppCompatActivity import android.support.v7.pr...
0
Kotlin
0
0
df5c3d4720f7afe2d9217e03428ca0681d753f57
13,034
BachelorWork
MIT License
collect_app/src/main/java/org/odk/collect/android/application/initialization/UserPropertiesInitializer.kt
subhashishanand
403,289,521
true
{"Java": 4416809, "Kotlin": 726853, "XSLT": 142758, "HTML": 11799, "JavaScript": 2830, "Shell": 1304}
package org.odk.collect.android.application.initialization import org.odk.collect.analytics.Analytics import org.odk.collect.projects.ProjectsRepository class UserPropertiesInitializer(private val analytics: Analytics, private val projectsRepository: ProjectsRepository) { fun initialize() { val projectsC...
0
null
0
0
4f2a90ddc6dac33fac8095e30dd4332695ed0fbe
445
collect
Apache License 2.0
app/src/main/java/com/midas/music/ui/music/discover/artist/ArtistListContract.kt
rubydongle
303,091,747
false
{"Java Properties": 2, "Text": 2, "YAML": 1, "Markdown": 5, "Gradle": 3, "Shell": 1, "JSON": 1, "Batchfile": 1, "Ignore List": 2, "Proguard": 1, "Kotlin": 193, "Java": 144, "XML": 374, "AIDL": 2}
package com.midas.music.ui.music.discover.artist import com.cyl.musicapi.bean.SingerTag import com.midas.music.ui.base.BaseContract import com.midas.music.bean.Artist interface ArtistListContract { interface View : BaseContract.BaseView { fun showArtistList(artistList: MutableList<Artist>) fun s...
1
null
1
1
657f2ea9245dda7d1a3962ddfaac579c04b7b2bc
489
MusicLake
Apache License 2.0
pokemon-kotlin/src/test/kotlin/pokemon/AppTest.kt
nalbarr
182,335,045
false
{"Shell": 4, "Text": 1, "Ignore List": 4, "Batchfile": 4, "Markdown": 1, "Gradle Kotlin DSL": 6, "INI": 4, "Java": 2, "Kotlin": 2, "Scala": 3}
/* * This Kotlin source file was generated by the Gradle 'init' task. */ package pokemon import kotlin.test.Test import kotlin.test.assertNotNull class AppTest { @Test fun testAppHasAGreeting() { val classUnderTest = Main() assertNotNull(classUnderTest.greeting, "app should have a greeting") ...
1
null
1
1
653961cd21ce2b7f04495d32bc6827e4cb0d7c61
325
hello-luke-oop-fp
MIT License
imagepicker/src/main/java/com/pmm/imagepicker/LocalMediaLoader.kt
caoyanglee
76,165,205
false
null
package com.pmm.imagepicker import android.database.Cursor import android.net.Uri import android.os.Bundle import android.provider.MediaStore import android.util.Log import android.widget.Toast import androidx.fragment.app.FragmentActivity import androidx.loader.app.LoaderManager import androidx.loader.content.CursorL...
1
null
4
10
e506c864f01d3e49b3dc2215f44dd8027ec5abe0
8,410
ImagePicker
Apache License 2.0
api/src/main/java/com/vk/sdk/api/users/UsersService.kt
VKCOM
16,025,583
false
null
/** * The MIT License (MIT) * * Copyright (c) 2019 vk.com * * 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...
66
Kotlin
3
439
20d4c142c2ed65487429967d9fada6f91a1b2f00
13,408
vk-android-sdk
MIT License
lib/core/src/main/java/com/tongsr/core/extend/LocationEx.kt
ujffdi
628,844,063
false
{"Java": 1874289, "Kotlin": 463042, "Groovy": 31947}
package com.tongsr.core.extend import android.location.LocationManager import androidx.core.content.getSystemService import com.tongsr.core.util.Utils /** * @author Tongsr * @version 1.0 * @date 2023/1/12 * @email <EMAIL> * @description Location */ inline val isLocationEnabled: Boolean get() = try { ...
1
null
1
1
d5004ca96f384cb26dbc610617107c3f12f05211
479
Eyepetizer
Apache License 2.0
dagger/src/main/java/dev/drewhamilton/rxpreferences/dagger/RxPreferencesModule.kt
drewhamilton
160,934,908
false
{"Java": 61777, "Kotlin": 31612}
package dev.drewhamilton.rxpreferences.dagger import android.content.SharedPreferences import dagger.Module import dagger.Provides import dev.drewhamilton.rxpreferences.RxPreferences @Module internal object RxPreferencesModule { @JvmStatic @Provides internal fun rxPreferences(sharedPreferences: SharedPre...
1
Java
1
12
49eb4c8bdb8969ec86588cc3ba864dd2903f09ab
367
RxPreferences
Apache License 2.0
app/src/main/java/soraxas/taskw/WidgetService.kt
soraxas
230,214,927
false
{"Java": 296644, "Kotlin": 173927}
package soraxas.taskw import android.content.Intent import android.widget.RemoteViewsService import soraxas.taskw.ui.WidgetDataProvider class WidgetService : RemoteViewsService() { override fun onGetViewFactory(intent: Intent): RemoteViewsFactory { return WidgetDataProvider(this, intent) } overri...
1
null
1
1
82c260e5e097ae22adc392b7b56c13ddda48c0e1
413
taskwarriorandroid
MIT License
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/library/robot/systems/meet2/FullIntakeSystem.kt
EagleRobotics7373
537,861,182
false
{"Java": 150944, "Kotlin": 138225}
package org.firstinspires.ftc.teamcode.library.robot.systems.meet2 import com.qualcomm.robotcore.hardware.DcMotor import com.qualcomm.robotcore.hardware.DcMotorEx import com.qualcomm.robotcore.hardware.Servo import org.firstinspires.ftc.teamcode.library.functions.DashboardVar import kotlin.math.absoluteValue class Fu...
1
null
1
1
9cb45388a1ff592cda32ebb38cc9a420ed8e96e0
3,099
FtcRobotController_7373_Freight-Frenzy
MIT License
guide/src/test/kotlin/examples/example-validation-07.kt
arrow-kt
557,761,845
false
null
// This file was automatically generated from validation.md by Knit tool. Do not edit. package arrow.website.examples.exampleValidation07 import arrow.core.left import arrow.core.right import arrow.core.Either import arrow.core.NonEmptyList import arrow.core.toNonEmptyListOrNull import arrow.core.recover import arrow....
15
null
7
6
b27f53e4a2f28875cd2243d15f2d3624de67ca2c
1,547
arrow-website
Apache License 2.0
app/src/main/java/link/standen/michael/imagesaver/activity/CreditsActivity.kt
ScreamingHawk
191,445,625
false
null
package link.standen.michael.imagesaver.activity import android.app.Activity import android.content.pm.PackageManager import android.os.Bundle import android.text.method.LinkMovementMethod import android.widget.TextView import link.standen.michael.imagesaver.R import java.util.Locale import android.util.Log import an...
5
Kotlin
0
2
539408c53ee0f9162cb8e4edcb0846eefb397910
1,888
image-saver
MIT License
app/src/main/java/com/wit/jasonfagerberg/nightsout/constants/Constants.kt
fagerbergj
146,370,413
false
{"Gradle": 7, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "JSON": 1, "Proguard": 1, "XML": 78, "Kotlin": 64, "Java": 3}
package com.wit.jasonfagerberg.nightsout.constants import com.wit.jasonfagerberg.nightsout.utils.Converter import java.util.* class Constants { companion object { const val BACK_STACK = "BACK_STACK" const val FRAGMENT_ID = "FRAGMENT_ID" const val DB_NAME = "nights_out_db.db" const ...
1
Kotlin
4
2
c98988824b846e01b55782757f78d634b46d6c1d
2,659
NightsOut
The Unlicense
example/android/app/src/main/kotlin/com/example/AestheticDialogs_example/MainActivity.kt
rvndsngwn
405,848,277
false
null
package com.example.AestheticDialogs_example import io.flutter.embedding.android.FlutterActivity class MainActivity : FlutterActivity() { }
0
Kotlin
0
0
02a3b9b7f9dd198f2e26484ce24ea10061688a76
142
aestheticDialogs
MIT License
app/src/androidTest/java/dev/marcocattaneo/sleep/di/SleepifyApplicationTest.kt
mcatta
469,373,328
false
{"Kotlin": 201059}
/* * Copyright 2023 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
6
Kotlin
0
8
408630806c624b4c66f6f409a47d599c29ce52aa
1,235
sleep
Apache License 2.0
src/test/kotlin/craicoverflow89/romannumerals/RomanNumeralsTest.kt
CraicOverflow89
210,601,501
false
null
package craicoverflow89.romannumerals import java.lang.IllegalArgumentException //import org.hamcrest.CoreMatchers import org.junit.Assert import org.junit.Test class RomanNumeralsTest { @Test fun parseInt1() = with(fun(input: Int, expected: String) { Assert.assertEquals(expected, RomanNumerals.parse...
1
Kotlin
0
0
ebbf269add4315e600e9b90d5ec9f0271c7dace6
1,811
RomanNumerals
MIT License
src/main/kotlin/domain/models/UserInputModel.kt
burevestnik-png
343,217,096
false
null
package domain.models import domain.Equation import domain.UserInput import javafx.beans.property.DoubleProperty import javafx.beans.property.Property import domain.enums.CompMethodType import tornadofx.ItemViewModel class UserInputModel : ItemViewModel<UserInput>(UserInput().apply { leftBorder = -5.0 rightBo...
0
Kotlin
0
1
2d514935ee694ef183bf94b2db87b494cff8d6ef
767
comp-math-lab2
MIT License
generator/src/org/jetbrains/generator/grammar/Rule.kt
Atsky
12,811,746
false
null
package org.jetbrains.generator.grammar /** * Created by atsky on 11/7/14. */ class Rule(name : String, val variants : List<Variant>) : AbstractRule(name) { override fun toString(): String { val result = StringBuilder() result.append(name).append(" : ") for (variant in variants) { ...
47
Kotlin
22
205
a9be4e8c41202cba50f6f9aa72eb912f1fa92b8c
491
haskell-idea-plugin
Apache License 2.0
stream-rec/src/main/kotlin/github/hua0512/Application.kt
hua0512
756,063,189
false
{"Kotlin": 209504, "Dockerfile": 316}
/* * MIT License * * Stream-rec https://github.com/hua0512/stream-rec * * Copyright (c) 2024 hua0512 (https://github.com/hua0512) * * 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 w...
4
Kotlin
0
0
ec416063ac0fa36f850d167fad4f285e0273fb60
5,325
stream-rec
MIT License
app/src/main/kotlin/ru/maksonic/beresta/core/MainActivitySandbox.kt
maksonic
580,058,579
false
null
package ru.maksonic.beresta.core import ru.maksonic.beresta.elm.core.ElmUpdate import ru.maksonic.beresta.elm.core.Sandbox import ru.maksonic.beresta.ui.theme.AppTheme /** * @Author maksonic on 18.02.2023 */ private typealias UpdateResult = ElmUpdate<Model, Set<Cmd>, Set<Eff>> class MainActivitySandbox(mainActivit...
0
Kotlin
0
0
f01672d89b5772c250d237ce5f3db4f73e3af819
3,109
Beresta
MIT License