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/faranjit/meditory/features/home/presentation/adapter/story/StoriesAdapter.kt
faranjit
399,519,852
false
null
package com.faranjit.meditory.features.home.presentation.adapter.story import android.view.LayoutInflater import android.view.ViewGroup import com.faranjit.meditory.base.BaseRecyclerAdapter import com.faranjit.meditory.databinding.ListItemStoryBinding import com.faranjit.meditory.features.home.presentation.model.Story...
0
Kotlin
0
0
97c1b1f1388b51797fa98a0e24cbfa85dd6cab61
762
meditory
MIT License
app/src/main/java/com/faranjit/meditory/features/home/presentation/adapter/story/StoriesAdapter.kt
faranjit
399,519,852
false
null
package com.faranjit.meditory.features.home.presentation.adapter.story import android.view.LayoutInflater import android.view.ViewGroup import com.faranjit.meditory.base.BaseRecyclerAdapter import com.faranjit.meditory.databinding.ListItemStoryBinding import com.faranjit.meditory.features.home.presentation.model.Story...
0
Kotlin
0
0
97c1b1f1388b51797fa98a0e24cbfa85dd6cab61
762
meditory
MIT License
composeApp/src/desktopMain/kotlin/me/gustavolopezxyz/desktop/screens/overviewScreen/ExpensesSummaryCard.kt
gusaln
736,062,721
false
null
/* * Copyright (c) 2023. Gustavo López. All rights reserved. */ package me.gustavolopezxyz.desktop.screens.overviewScreen import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.RowScope import androidx.compose.foundation.layout.S...
0
null
0
1
d1e56bb6dce4a0d9c430a8d4f6bcf67b1249ea52
3,990
wimm
MIT License
src/main/kotlin/br/com/project/tasskfkotlin/exceptions/ResourceNotFoundException.kt
anekaroline
667,157,162
false
null
package br.com.project.tasskfkotlin.exceptions import org.springframework.http.HttpStatus import org.springframework.web.bind.annotation.ResponseStatus import java.lang.Exception @ResponseStatus(HttpStatus.NOT_FOUND) class ResourceNotFoundException(exception: String?): RuntimeException(exception)
0
Kotlin
0
0
be74b68f26e76ac28d1a1346cbdd8e66d8d77158
299
tasskf-kotlin
Apache License 2.0
bukkit/bukkit-core/src/main/kotlin/kingmc/platform/bukkit/impl/spigot/SpigotPlatform.kt
Kingsthere
599,960,106
false
null
package kingmc.platform.bukkit.impl.spigot import kingmc.platform.bukkit.impl.BukkitPlatform import kingmc.platform.driver.PlatformDriver import kingmc.util.Version /** * Spigot platform compatible */ @SpigotImplementation open class SpigotPlatform(minecraftVersion: Version, driver: PlatformDriver, identifiers: Arr...
0
Kotlin
0
0
deb953d7a31738f8f602fb89e592db299ee3010c
523
kingmc-platform
MIT License
app/src/main/java/com/setianjay/githubuser/utill/AppUtil.kt
setianjay
393,715,206
false
null
package com.setianjay.githubuser.utill import android.content.Context import android.widget.Toast object AppUtil { fun showToast(context: Context, message: String){ Toast.makeText(context, message, Toast.LENGTH_SHORT).show() } }
0
Kotlin
0
0
490919a7ee8555603f4c7e2446640cd491a8a6cc
247
GithubUser
MIT License
src/jsMain/kotlin/magneton/Application.kt
DaanVandenBosch
180,017,293
false
null
package magneton import magneton.nodes.Component import magneton.observable.ReactionDisposer import magneton.routing.Router import magneton.routing.defaultRouter import org.w3c.dom.Node as DomNode actual class Application( actual val rootComponent: Component, router: Router, private val domNod...
0
Kotlin
0
16
ff2d0cfb12db2173bdffb6bec689ddfd092c191d
1,311
magneton
MIT License
common/src/main/java/com/ishow/common/widget/viewpager/looping/indicator/DefaultLoopingIndicator.kt
i-show
62,766,394
false
null
package dev.hitools.common.widget.viewpager.looping.indicator import android.graphics.Canvas import android.graphics.Color import android.graphics.Paint import dev.hitools.common.utils.UnitUtils import dev.hitools.common.widget.viewpager.looping.ILoopingIndicator /** * Created by yuhaiyang on 2018/9/13. * 默认的 */ ...
1
null
1
1
0b823a69256345078a0c110798c8e9ac4ae2b565
3,011
android-Common
Apache License 2.0
src/test/kotlin/no/nav/k9brukerdialogapi/wiremock/SøkerResponseTransformer.kt
navikt
460,765,798
false
{"Kotlin": 835877, "Dockerfile": 103}
package no.nav.k9brukerdialogapi.wiremock import com.github.tomakehurst.wiremock.extension.ResponseTransformerV2 import com.github.tomakehurst.wiremock.http.Response import com.github.tomakehurst.wiremock.stubbing.ServeEvent import no.nav.k9brukerdialogapi.TestUtils class SokerResponseTransformer : ResponseTransforme...
0
Kotlin
0
0
d7c6b3126bf1cc4cd7fd7d5f429eb4634140b49f
2,130
k9-brukerdialog-api
MIT License
src/main/kotlin/io/reactiverse/kotlin/pgclient/pubsub/PgSubscriber.kt
mp911de
173,499,536
true
{"Java": 759864, "Kotlin": 35910, "PLpgSQL": 16765, "Shell": 829, "Dockerfile": 814}
package io.reactiverse.kotlin.pgclient.pubsub import io.reactiverse.pgclient.pubsub.PgSubscriber import io.vertx.kotlin.coroutines.awaitResult /** * Connect the subscriber to Postgres. * * @param handler the handler notified of the connection success or failure * @returna reference to this, so the API can be used...
0
Java
0
0
f04bdb41c0ed535c20a098e2759b02de68c4085b
614
reactive-pg-client
Apache License 2.0
android/sdk/src/main/java/clover/studio/sdk/call/RoomMessageHandler.kt
cloverstudio
381,606,636
false
null
package clover.studio.sdk.call import androidx.annotation.WorkerThread import org.json.JSONArray import org.json.JSONException import org.json.JSONObject import org.mediasoup.droid.Consumer import org.mediasoup.droid.Logger import org.protoojs.droid.Message import java.util.concurrent.ConcurrentHashMap internal open ...
0
Kotlin
0
2
3f7e7f4c88b0f95d914645ba235993c46560664b
4,000
SpikaBroadcast_old
MIT License
app/src/main/java/chat/rocket/android/app/RocketChatApplication.kt
gkganesh126
124,833,630
true
{"Kotlin": 386715, "Shell": 2737, "Java": 538}
package chat.rocket.android.app import android.app.Activity import android.app.Application import android.app.Service import chat.rocket.android.BuildConfig import chat.rocket.android.dagger.DaggerAppComponent import chat.rocket.android.helper.CrashlyticsTree import chat.rocket.android.server.domain.GetCurrentServerIn...
0
Kotlin
0
1
c1871a62843714c8fadffb3f97e8fa358b3c1efb
3,623
Rocket.Chat.Android
MIT License
fore-kt/fore-kt-network/src/main/java/co/early/fore/kt/net/apollo3/CallWrapperApollo3.kt
erdo
92,027,307
false
null
package co.early.fore.kt.net.apollo3 import co.early.fore.core.WorkMode import co.early.fore.kt.core.Either import co.early.fore.kt.core.coroutine.asyncMain import co.early.fore.kt.core.coroutine.awaitIO import co.early.fore.kt.core.delegate.Fore import co.early.fore.kt.core.logging.Logger import com.apollographql.apo...
3
null
4
46
1af5bd3ad9b2395a636fac12c40016fd2c815d0c
5,260
android-fore
Apache License 2.0
whynotimagecarousel/src/main/java/org/life4what/image4carousel/model/CarouselType.kt
life4what
583,161,309
false
{"Kotlin": 59692}
package org.life4what.image4carousel.model enum class CarouselType(val value: Int) { BLOCK(0), SHOWCASE(1) }
0
Kotlin
0
0
c62fd8601821a8e396df0a97bf10126cc16fecb0
118
image4Carousel
Apache License 2.0
modules/wasm-binary/src/commonMain/kotlin/verifier/TableSectionVerifier.kt
wasmium
761,480,110
false
{"Kotlin": 661510, "JavaScript": 203}
package org.wasmium.wasm.binary.verifier import org.wasmium.wasm.binary.ParserException import org.wasmium.wasm.binary.WasmBinary import org.wasmium.wasm.binary.tree.TableType import org.wasmium.wasm.binary.visitor.TableSectionVisitor public class TableSectionVerifier(private val delegate: TableSectionVisitor? = null...
0
Kotlin
0
3
dc846f459f0bda1527cad253614df24bbdea012f
1,482
wasmium-wasm-binary
Apache License 2.0
text_world/src/main/kotlin/cubes/shaders/Starfield1Shader.kt
sentinelweb
228,927,082
false
null
package cubes.shaders import cubes.CubesProcessingView.Companion.BASE_RESOURCES import processing.core.PApplet class Starfield1Shader constructor( p: PApplet ) : ShaderWrapper( p, "$BASE_RESOURCES/cubes/st_starfield_1.glsl" )
14
Kotlin
0
0
623fd9f4d860b61dfc5b5dfbc5a8f536d978d9f6
239
processink
Apache License 2.0
app/src/main/java/com/coffee/shop/domain/models/DomainCoffeeCategory.kt
fahadnasrullah109
797,161,686
false
{"Kotlin": 248481}
package com.coffee.shop.domain.models import android.os.Parcelable import kotlinx.parcelize.Parcelize @Parcelize data class DomainCoffeeCategory( val category: String, val items: List<DomainCoffee> ) : Parcelable
0
Kotlin
0
0
28ed5f7f101c36a19c89c29628a530945cc1d432
222
CoffeeShop
Apache License 2.0
android/src/main/java/com/splashscreen/SplashScreen.kt
huynq1175
851,282,431
false
{"Kotlin": 6257, "Ruby": 3312, "Objective-C++": 3258, "Objective-C": 2591, "JavaScript": 1613, "TypeScript": 1474, "C": 103, "Swift": 64}
package com.splashscreen import android.app.Activity import android.app.Dialog import android.os.Build import android.view.WindowManager import java.lang.ref.WeakReference object SplashScreen { private var mSplashDialog: Dialog? = null private var mActivity: WeakReference<Activity>? = null fun show(activity: A...
0
Kotlin
0
0
ca25364c0df30b8d6d9fd5ad71a52b5dab1928cf
1,842
react-native-splash-screen
MIT License
androidApp/src/main/java/com/muneeb_dev/medicinetime_cmp/android/BaseApplication.kt
muneeb36
737,341,589
false
{"Kotlin": 96355, "Ruby": 1878, "Swift": 897}
package com.muneeb_dev.medicinetime_cmp.android import android.app.Application import com.muneeb_dev.medicinetime_cmp.di.initKoin import org.koin.android.ext.koin.androidContext class BaseApplication(): Application() { override fun onCreate() { super.onCreate() initKoin{ androidContex...
0
Kotlin
1
10
548a6fba6d6cfdc3b67ef80362dc46a817a33d36
361
Medicine-Time-CMP
MIT License
common/src/commonMain/kotlin/com/niji/claudio/common/tool/VoicePlayerService.kt
GuillaumeMuret
718,024,230
false
{"Kotlin": 265351, "Shell": 4408, "Swift": 571, "HTML": 357, "CSS": 108}
package com.niji.claudio.common.tool expect object VoicePlayerService { fun play(byteArray: ByteArray) }
0
Kotlin
0
0
85f940518daed3df33e724b44a89533355e96ea3
109
claudio-app
Apache License 2.0
app/src/main/java/com/yenaly/han1meviewer/ui/fragment/home/WatchHistoryFragment.kt
YenalyLiew
524,046,895
false
null
package com.yenaly.han1meviewer.ui.fragment.home import android.os.Bundle import androidx.lifecycle.flowWithLifecycle import androidx.lifecycle.lifecycleScope import androidx.recyclerview.widget.ItemTouchHelper import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView imp...
1
Kotlin
3
71
7e84333d37871c1fee0ec262e697d65c1e68a409
4,490
Han1meViewer
Apache License 2.0
app/src/main/java/com/example/jokeappeasycoderu/JokeRealmModel.kt
blastka
568,419,344
false
null
package com.example.jokeappeasycoderu interface JokeRealmModel { }
0
Kotlin
0
0
5144bdbc9d423755753501779fed5abf5b1ea17b
67
joke_easyCodeRu
Apache License 2.0
DSLs/kubernetes/dsl/src/main/kotlin-gen/com/fkorotkov/kubernetes/autoscaling/v2/scaleTargetRef.kt
fkorotkov
84,911,320
false
null
// GENERATED package com.fkorotkov.kubernetes.autoscaling.v2 import io.fabric8.kubernetes.api.model.autoscaling.v2.CrossVersionObjectReference as v2_CrossVersionObjectReference import io.fabric8.kubernetes.api.model.autoscaling.v2.HorizontalPodAutoscalerSpec as v2_HorizontalPodAutoscalerSpec fun v2_HorizontalPodAut...
6
Kotlin
19
317
ef8297132e6134b6f65ace3e50869dbb2b686b21
545
k8s-kotlin-dsl
MIT License
domain/src/main/java/com/technicalassigments/movieapp/domain/repository/reviews/ReviewsRepository.kt
anang2602
380,973,246
false
null
package com.technicalassigments.movieapp.domain.repository.reviews import androidx.paging.Pager import androidx.paging.PagingConfig import androidx.paging.PagingData import com.technicalassigments.movieapp.domain.usecase.FetchReviewsUseCase import com.technicalassigments.movieapp.network.dto.ReviewsResponse import com...
0
Kotlin
0
0
2d746afeb8ca41c4ef78b78e0ba2e0af8c3c3163
855
movie-app
Apache License 2.0
server/src/main/kotlin/au/com/codeka/warworlds/server/world/StarSimulatorQueue.kt
codeka
12,893,073
false
{"Kotlin": 1027286, "HTML": 346676, "CSS": 256900, "JavaScript": 250865, "Python": 11974, "PHP": 2232, "Shell": 911}
package au.com.codeka.warworlds.server.world import au.com.codeka.warworlds.common.Log import au.com.codeka.warworlds.common.Time import au.com.codeka.warworlds.common.sim.SuspiciousModificationException import au.com.codeka.warworlds.server.store.DataStore import au.com.codeka.warworlds.server.store.StarsStore import...
56
Kotlin
202
291
536e37f83577b5cdad1e374a36281368ba868c83
3,331
wwmmo
MIT License
app/src/main/java/com/singhgeetgovind/notes/di/module/DatabaseModule.kt
singhgeetgovind
618,067,094
false
{"Kotlin": 88152}
package com.singhgeetgovind.notes.di.module import android.app.Application import androidx.room.Room import com.singhgeetgovind.notes.dao.NotesDao import com.singhgeetgovind.notes.database.Migration import com.singhgeetgovind.notes.database.NotesDatabase import com.singhgeetgovind.notes.repository.Repository import c...
0
Kotlin
1
2
e2ca545b18af5584fb26b485146a2eaba7665580
1,405
Notes
MIT License
core/domain/src/main/kotlin/com/xeladevmobile/medicalassistant/core/domain/GetAudioRecordUseCase.kt
Alexminator99
702,145,143
false
{"Kotlin": 534097}
package com.xeladevmobile.medicalassistant.core.domain import com.xeladevmobile.medicalassistant.core.data.repository.AudioRecordsRepository import javax.inject.Inject class GetAudioRecordUseCase @Inject constructor( private val audioRecordsRepository: AudioRecordsRepository, ) { operator fun invoke(audioId: ...
0
Kotlin
0
0
37a35835a2562b0c6b4129e7b86cfca081a24783
372
Medical_Assistant
MIT License
smart-form/src/main/java/com/teleclinic/kabdo/smartform/EditText/SmartEditText.kt
TeleClinic
115,118,851
false
null
package com.teleclinic.kabdo.smartform import android.content.Context import android.util.AttributeSet import android.util.Patterns import android.view.View import android.widget.FrameLayout import java.util.regex.Pattern import com.pawegio.kandroid.d import android.text.InputType import com.pawegio.kandroid.textWatch...
2
null
1
9
180a444afc48a1c98ffb2f2920a22959ebd0d88b
5,915
SmartForm
Apache License 2.0
skiko/src/jsWasmMain/kotlin/org/jetbrains/skiko/OsArch.js.kt
JetBrains
282,864,178
false
{"C++": 1770795, "Kotlin": 1745014, "Objective-C++": 43079, "JavaScript": 6932, "Dockerfile": 4676, "Shell": 4522, "C": 1440, "Java": 1235, "Objective-C": 471}
package org.jetbrains.skiko import org.jetbrains.skiko.w3c.window actual val hostOs: OS = detectHostOs() actual val hostArch: Arch = Arch.Unknown actual val hostId by lazy { "${hostOs.id}-${hostArch.id}" } actual val kotlinBackend: KotlinBackend get() = KotlinBackend.JS /** * A string identifying the pla...
23
C++
95
1,821
bbfaf62256fcf0255ac2b5846223f27c43dbfb00
1,771
skiko
Apache License 2.0
consumer/src/main/kotlin/au/com/dius/pact/consumer/dsl/PactDslJsonArrayContaining.kt
pact-foundation
15,750,847
false
null
package au.com.dius.pact.consumer.dsl import au.com.dius.pact.core.model.generators.Category import au.com.dius.pact.core.model.matchingrules.ArrayContainsMatcher import au.com.dius.pact.core.model.matchingrules.MatchingRuleCategory import au.com.dius.pact.core.model.matchingrules.MatchingRuleGroup import kotlin.math....
338
Kotlin
466
998
74cd39cc2d2717abce6b44025dd40fc86fc64a74
1,669
pact-jvm
Apache License 2.0
features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemReactionsLayout.kt
element-hq
546,522,002
false
null
/* * Copyright (c) 2023 New Vector Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
263
null
75
955
31d0621fa15fe153bfd36104e560c9703eabe917
10,274
element-x-android
Apache License 2.0
app/src/main/java/io/github/ytam/jetcoinlist/extensions/DateExtension.kt
ytam
428,447,176
false
{"Kotlin": 50515}
package io.github.ytam.jetcoinlist.data.remote.extensions import java.text.SimpleDateFormat import java.util.Calendar import java.util.Date import java.util.Locale fun Date.formatToTruncatedDateTime(): String { val sdf = SimpleDateFormat("yyyyMMddHHmmss", Locale.getDefault()) return sdf.format(this) } /** *...
0
Kotlin
5
20
0e865dced03932518dc9076c91120f9f85e4c528
1,056
Jet-CoinList
Apache License 2.0
Kotlin/Code/Kotlin-Encipher/src/main/java/me/ztiany/kotlin/encipher/06_AESCrypt.kt
hiloWang
203,300,702
false
null
package me.ztiany.kotlin.encipher import javax.crypto.Cipher import javax.crypto.spec.SecretKeySpec /** * AES加密解密 */ object AESCrypt { //AES加密 fun encrypt(input: String, password: String): String { //1.创建cipher对象 val cipher = Cipher.getInstance("AES") //2.初始化cipher:告诉cipher加密还是解密 ...
0
null
15
4
64a637a86f734e4e80975f4aa93ab47e8d7e8b64
1,358
notes
Apache License 2.0
src/jsMain/kotlin/com/github/doyaaaaaken/kotlincsv/client/CsvReader.kt
jsoizo
200,859,123
false
null
package com.github.doyaaaaaken.kotlincsv.client import com.github.doyaaaaaken.kotlincsv.dsl.context.CsvReaderContext import com.github.doyaaaaaken.kotlincsv.dsl.context.ICsvReaderContext /** * CSV Reader class * * @author doyaaaaaken */ actual class CsvReader actual constructor( private val ctx: CsvReaderCont...
8
null
50
638
19c28835a7bde791c808fe8a7b05818122e0e28d
883
kotlin-csv
Apache License 2.0
airback-web/src/main/java/com/airback/module/project/view/risk/IRiskAddView.kt
mng222n
246,276,311
false
{"Java": 5840305, "Kotlin": 1765034, "CSS": 412765, "FreeMarker": 52912, "Shell": 10186, "HTML": 6680, "JavaScript": 5560, "Batchfile": 3219, "Dockerfile": 540}
package com.airback.module.project.view.risk import com.airback.module.project.domain.SimpleRisk import com.airback.vaadin.mvp.IFormAddView import com.airback.vaadin.web.ui.field.AttachmentUploadField /** * @author airback Ltd * @since 7.0 */ interface IRiskAddView : IFormAddView<SimpleRisk> { fun getAttachUp...
9
null
1
1
782b1ac49b343d8c497d3dae5be3eb812d151772
356
airback
MIT License
data/reissuetoken/src/main/java/com/hankki/data/reissuetoken/service/ReissueTokenService.kt
Team-Hankki
816,081,730
false
{"Kotlin": 597927}
package com.hankki.data.reissuetoken.service import com.hankki.core.network.BaseResponse import com.hankki.data.reissuetoken.response.ReissueTokenResponseDto import retrofit2.http.Header import retrofit2.http.POST interface ReissueTokenService { @POST("/api/v1/auth/reissue") suspend fun postReissueToken( ...
1
Kotlin
0
43
959b647e3b42fe1ae96d85c87ea7cc7ebfb74266
417
hankki-android
Apache License 2.0
app/src/main/java/com/enginebai/project/di/AppModule.kt
enginebai
213,871,671
false
null
package com.enginebai.project.di import com.enginebai.project.utils.ExceptionHandler import com.google.gson.Gson import org.koin.dsl.module val appModule = module { single { Gson() } single(createdAtStart = true) { ExceptionHandler() } }
4
Kotlin
17
133
45093866c87c5ebacb3109ca5883cfff53545a46
247
AndroidBase
MIT License
app/src/main/java/com/android/example/popularmovies/ui/detail/DetailViewModel.kt
mowdownjoe
259,617,614
false
null
package com.android.example.popularmovies.ui.detail import android.app.Application import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.viewModelScope import com.android.example.popularmovies.database.FavMovieDatabase import c...
0
Kotlin
0
1
81830d6741a81037933cd536eb38492869c8972a
1,818
PopularMovies
Creative Commons Attribution 4.0 International
app/src/main/java/com/example/qrcodescanner/QRcodeMainActivity.kt
kodeflap
441,297,941
false
null
package com.example.qrcodescanner import android.Manifest import android.content.pm.PackageManager import android.os.Bundle import android.util.Size import androidx.activity.compose.rememberLauncherForActivityResult import androidx.activity.compose.setContent import androidx.activity.result.contract.ActivityResultCont...
0
Kotlin
0
0
7431a09a7325880407048fada1697337df52a195
5,233
QRCodeScanner
MIT License
src/main/kotlin/icu/windea/pls/script/codeInsight/ParadoxDefinitionDeclarationRangeHandler.kt
DragonKnightOfBreeze
328,104,626
false
null
package icu.windea.pls.script.codeInsight import com.intellij.codeInsight.hint.* import com.intellij.openapi.util.* import com.intellij.refactoring.suggested.* import icu.windea.pls.* import icu.windea.pls.script.psi.* /** * 定义成员的上下文信息(如:`definitionKey = {`)。 */ class ParadoxDefinitionDeclarationRangeHandler :Decla...
9
null
5
7
037b9b4ba467ed49ea221b99efb0a26cd630bb67
810
Paradox-Language-Support
MIT License
app/src/main/java/com/example/marketnews/data/repository/MarketNewsRepository.kt
KalpeshJadvani
746,054,539
false
{"Kotlin": 30532}
package com.example.marketnews.data.repository import com.example.marketnews.data.datasource.remote.ApiService import com.example.marketnews.data.model.ApiModel import com.example.marketnews.utils.network.DataState import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flow import javax.inject.Inject ...
0
Kotlin
0
0
0a12974f3ecfd791ab262baad7bd54d619f7af2f
757
MarketNews
MIT License
db/src/main/kotlin/no/nav/helsearbeidsgiver/inntektsmelding/db/InntektsmeldingRepository.kt
navikt
495,713,363
false
{"Kotlin": 740167, "Dockerfile": 68}
package no.nav.helsearbeidsgiver.inntektsmelding.db import io.prometheus.client.Summary import no.nav.helsearbeidsgiver.domene.inntektsmelding.Inntektsmelding import no.nav.helsearbeidsgiver.felles.EksternInntektsmelding import no.nav.helsearbeidsgiver.inntektsmelding.db.config.InntektsmeldingEntitet import no.nav.hel...
13
Kotlin
0
2
5ce627827059c5f7045943ff9f2eb421b7a1db65
3,919
helsearbeidsgiver-inntektsmelding
MIT License
src/commonMain/kotlin/dev/datlag/k2k/connect/ConnectionClient.kt
DatL4g
465,054,141
false
{"Kotlin": 28200}
package dev.datlag.k2k.connect import io.ktor.network.selector.SelectorManager import io.ktor.network.sockets.aSocket import dev.datlag.k2k.Dispatcher import dev.datlag.k2k.Host import dev.datlag.tooling.async.scopeCatching import dev.datlag.tooling.async.suspendCatching import io.ktor.network.sockets.InetSocketAddres...
1
Kotlin
0
20
e67077832fd74845fdb8d0c1dcc052d40eb58dc5
1,597
Klient2Klient
Apache License 2.0
main/src/commonTest/kotlin/org/ooverkommelig/ObjectlessLifecycleTest.kt
squins
74,140,237
false
null
package org.ooverkommelig import org.ooverkommelig.definition.ObjectlessLifecycle import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse import kotlin.test.assertSame import kotlin.test.assertTrue class ObjectlessLifecycleTest { @Test fun initIsNotInvokedWhenSubGraphDefinitionI...
1
Kotlin
0
1
fb1713f35a78f487da409f1e45ce446a5eb5461b
14,484
ooverkommelig
MIT License
compose/ui/ui-graphics/src/desktopMain/kotlin/androidx/compose/ui/graphics/DesktopCanvas.desktop.kt
RikkaW
389,105,112
false
null
/* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
6
null
950
7
6d53f95e5d979366cf7935ad7f4f14f76a951ea5
11,010
androidx
Apache License 2.0
sample/src/main/kotlin/pl/codesamurai/latte/sample/MainFragment.kt
malloth
198,045,075
false
{"Kotlin": 39223}
package pl.codesamurai.latte.sample import android.content.Intent import android.os.Bundle import android.view.View import android.widget.ArrayAdapter import androidx.fragment.app.Fragment import pl.codesamurai.latte.sample.databinding.FragmentMainBinding class MainFragment : Fragment(R.layout.fragment_main) { p...
0
Kotlin
0
6
38fa56a340db59869152c4c9c86b57490da4dedb
1,732
latte
Apache License 2.0
canvas/src/main/java/com/angcyo/canvas/core/component/ControlHandler.kt
angcyo
229,037,615
false
null
package com.angcyo.canvas.core.component import android.graphics.PointF import android.graphics.RectF import android.view.MotionEvent import androidx.core.graphics.contains import com.angcyo.canvas.CanvasDelegate import com.angcyo.canvas.core.CanvasViewBox import com.angcyo.canvas.core.ICanvasTouch import com.angcyo.c...
0
Kotlin
4
1
d36e194a268a40c63c23c6a3088661a4fd0e02aa
15,139
UICore
MIT License
src/main/java/com/vladsch/md/nav/vcs/GitHubLinkResolver.kt
vsch
32,095,357
false
{"Kotlin": 2420465, "Java": 2294749, "HTML": 131988, "JavaScript": 68307, "CSS": 64158, "Python": 486}
// Copyright (c) 2015-2020 <NAME> <<EMAIL>> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. @file:Suppress("MemberVisibilityCanBePrivate") package com.vladsch.md.nav.vcs import com.intellij.ide.BrowserUtil import com.intellij.openapi.file.exclude.ProjectPlainTextFi...
134
Kotlin
131
809
ec413c0e1b784ff7309ef073ddb4907d04345073
93,716
idea-multimarkdown
Apache License 2.0
plugins/dependencies/src/test/kotlin/de/fayard/refreshVersions/RemovedDependencyNotationsHistoryCorrectnessTest.kt
Splitties
150,827,271
false
{"Kotlin": 808317, "Shell": 2793, "Just": 1182, "Java": 89, "Groovy": 24}
package de.fayard.refreshVersions import io.kotest.assertions.withClue import io.kotest.matchers.ints.shouldBeGreaterThan import io.kotest.matchers.shouldBe import io.kotest.matchers.string.shouldContainOnlyOnce import io.kotest.matchers.string.shouldHaveMinLength import org.junit.jupiter.api.Test class RemovedDepend...
113
Kotlin
109
1,606
df624c0fb781cb6e0de054a2b9d44808687e4fc8
1,474
refreshVersions
MIT License
echo-swing/src/main/kotlin/io/github/andrewbgm/echo/swing/SwingNode.kt
AndrewBGM
458,292,305
false
{"Kotlin": 34288}
package io.github.andrewbgm.echo.swing interface SwingNode<out T : Any, in P : SwingProps> { val ref: T fun update( previousProps: P?, nextProps: P, ) { // NOOP } fun appendChild( child: Any, ) { // NOOP } fun removeChild( child: Any, ) { // NOOP } fun insertChild(...
0
Kotlin
0
2
437dae185785751a82e7e5929bc1002716dc5a5f
383
echo
MIT License
app/src/main/java/com/example/speedrun/domain/interactor/GetGameRunInteractor.kt
alejandromr92
171,358,320
false
null
package com.example.speedrun.domain.interactor import com.example.speedrun.domain.model.GameRunData interface GetGameRunInteractor { fun execute(gameId: String, onComplete: (GameRunData) -> Unit, onError: (Throwable) -> Unit) }
0
Kotlin
0
0
56654f13567957711e39b08405f3d305bb997dfc
233
SpeedRun
Apache License 2.0
src/main/java/top/fpsmaster/gui/element/RectangleType.kt
SuperSkidder
672,267,802
false
null
package top.fpsmaster.gui.element enum class RectangleType { ROUND, CIRCLE, NORMAL }
0
null
2
10
a0fefea67f46bf0d48ffca7de7238781ed92028f
89
FPSMasterOpenSourceProject
Apache License 2.0
plugins/src/main/kotlin/com/freeletics/gradle/setup/Gr8Setup.kt
freeletics
611,205,691
false
{"Kotlin": 154536, "Shell": 1815}
package com.freeletics.gradle.setup import com.gradleup.gr8.Gr8Extension import org.gradle.api.Project import org.gradle.api.attributes.Usage import org.gradle.api.attributes.Usage.JAVA_API internal fun Project.setupGr8() { val shadeConfiguration = configurations.create("shade") // make all shaded dependenci...
6
Kotlin
1
5
c962bfb0f9e2a4223de1ff1fa2b4afd0bfa582ed
2,469
freeletics-gradle-plugins
Apache License 2.0
src/main/java/com/github/housepower/jdbc/ClickHouseConnection.kt
Left
489,957,394
true
{"Kotlin": 231104}
package com.github.housepower.jdbc import com.github.housepower.jdbc.connect.PhysicalConnection import com.github.housepower.jdbc.connect.PhysicalInfo import com.github.housepower.jdbc.connect.PhysicalInfo.ServerInfo import com.github.housepower.jdbc.data.Block import com.github.housepower.jdbc.misc.Validate import co...
0
null
0
0
185b48569d980e4ee84e79f4c392bb4610f25e61
8,658
ClickHouse-Native-JDBC
Apache License 2.0
chess/src/main/java/com/ajcm/chess/game/GameSource.kt
jassielcastro
364,715,505
false
null
package com.ajcm.chess.game import com.ajcm.chess.data.Game import com.ajcm.chess.domain.Color import com.ajcm.chess.domain.Player import com.ajcm.chess.domain.board.Board import com.ajcm.chess.domain.board.Position import com.ajcm.chess.domain.piece.* class GameSource(private val playerOne: Player, private val playe...
0
Kotlin
0
5
313b2303116feea477b850b73dd23f7ecce0cb3e
4,699
ChessApp
MIT License
app/src/main/java/com/fkuper/metronome/MetronomeApplication.kt
fkuper
729,506,173
false
{"Kotlin": 142954}
package com.fkuper.metronome import android.app.Application import android.app.NotificationChannel import android.app.NotificationManager import android.content.ComponentName import android.content.Context import android.content.Intent import android.content.ServiceConnection import android.os.Build import android.os....
0
Kotlin
0
0
e76354d53990b1e114dc3c27d1ad444ea2eb3456
2,206
Metronome
MIT License
compiler/testData/diagnostics/tests/functionAsExpression/ReceiverByExpectedType.kt
IVIanuu
333,718,537
true
null
// !WITH_NEW_INFERENCE fun foo(<!UNUSED_PARAMETER!>f<!>: String.() -> Int) {} val test = foo(<!TYPE_MISMATCH{NI}, TYPE_MISMATCH{NI}, TYPE_MISMATCH!>fun <!EXPECTED_PARAMETERS_NUMBER_MISMATCH{NI}!>()<!> = <!UNRESOLVED_REFERENCE!>length<!><!>)
1
null
1
1
f49cf2d5cabf8fb9833ec95e1151a00b8b53d087
241
kotlin
Apache License 2.0
DataStructures/src/main/kotlin/Queue.kt
paulosabaini
320,322,636
false
null
import kotlin.system.exitProcess class Queue ( private val size: Int, private var head: Int = -1, private var tail: Int = -1, private var arr: IntArray = IntArray(size) ) { fun enqueue(x: Int) { if (head == -1) head ++ if (tail == size - 1) { println("Ove...
0
Kotlin
0
0
00f7fa16e502f15cec570c31f544c001cfe20934
1,597
kotlin-data-structures-algorithms
MIT License
DataStructures/src/main/kotlin/Queue.kt
paulosabaini
320,322,636
false
null
import kotlin.system.exitProcess class Queue ( private val size: Int, private var head: Int = -1, private var tail: Int = -1, private var arr: IntArray = IntArray(size) ) { fun enqueue(x: Int) { if (head == -1) head ++ if (tail == size - 1) { println("Ove...
0
Kotlin
0
0
00f7fa16e502f15cec570c31f544c001cfe20934
1,597
kotlin-data-structures-algorithms
MIT License
src/commonMain/kotlin/org/petitparser/core/parser/consumer/String.kt
petitparser
541,100,427
false
null
package org.petitparser.core.parser.consumer import org.petitparser.core.context.Input import org.petitparser.core.context.Output import org.petitparser.core.parser.Parser /** Returns a parser that accepts the [string]. */ fun string(string: String, message: String = "'$string' expected", ignoreCase: Boolean = false)...
1
null
1
5
349522c37813e7714f66af4ed27db0b5750dd6f0
896
kotlin-petitparser
MIT License
use-case-app/core/src/main/kotlin/de/gransoftware/core/usecase/UseCaseEngine.kt
gran-software-solutions
616,888,843
false
null
package de.gransoftware.core.usecase interface UseCase<in Input, out T : Any> { suspend operator fun invoke(input: Input): Outcome<T> } enum class ErrorType { WEATHER_API_ERROR, PLACE_INFO_API_ERROR } sealed class Outcome<out T : Any> { data class Success<out T : Any>(val value: T) : Outcome<T>() ...
0
Kotlin
0
0
7673af95a4b52bd04295d0dc333857dc076559af
1,396
code-samples
Apache License 2.0
htmlAnnotator-view/src/main/java/com/ravenl/htmlannotator/view/handler/MultipleSpanHandler.kt
RavenLiao
772,909,415
false
null
package com.ravenl.htmlannotator.view.handler import com.ravenl.htmlannotator.core.TextStyler import com.ravenl.htmlannotator.core.css.model.CSSDeclaration import com.ravenl.htmlannotator.core.handler.NewLineHandler import com.ravenl.htmlannotator.view.styler.SpannedStyler import org.jsoup.nodes.Node open class Multi...
0
null
0
3
b60aec48b44be2cfefb797376a74f05c52a98bce
917
HtmlAnnotator
Apache License 2.0
project/common-script-api/src/main/kotlin/ink/ptms/artifex/scripting/Backend.kt
TabooLib
492,563,163
false
null
package ink.ptms.artifex.scripting import taboolib.common.platform.ProxyCommandSender import taboolib.common.platform.ProxyPlayer import taboolib.common.platform.command.CommandContext import taboolib.common.platform.command.component.CommandComponent import taboolib.common.platform.command.component.CommandComponentD...
1
null
6
24
b6fe7716c0730a9b197ca009f22ee179041a22ec
1,432
artifex
Creative Commons Zero v1.0 Universal
src/main/java/ru/hollowhorizon/hollowengine/common/recipes/RecipeHelper.kt
HollowHorizon
586,593,959
false
{"Kotlin": 945627, "Java": 23246, "GLSL": 2628}
/* * MIT License * * Copyright (c) 2024 HollowHorizon * * 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, mo...
0
Kotlin
6
27
a81eb9337c22e97c950528d2e5b638ff81ce2d2e
1,562
HollowEngine
MIT License
app/src/main/java/org/mydaily/util/CalendarUtil.kt
TeamMyDaily
325,142,861
false
null
package org.mydaily.util import java.text.SimpleDateFormat import java.util.* object CalendarUtil { private val simpleDateFormat = SimpleDateFormat("yy년 MM월 dd일", Locale.KOREA) private val simpleDateFormatWithWeek = SimpleDateFormat("yy년 MM월 W주", Locale.KOREA) fun convertCalendarToString(calendar: Calend...
4
Kotlin
1
9
d820795fe1a6332de9ceb6b69ad1d137038d0910
1,495
4most-Android
Apache License 2.0
src/main/kotlin/icu/windea/pls/config/config/CwtConfigMatchType.kt
DragonKnightOfBreeze
328,104,626
false
null
package icu.windea.pls.config.config /** * CWT规则的匹配类型。 */ object CwtConfigMatchType { /** * 静态匹配:带参数、需要访问索引等场合,直接认为匹配。 */ const val STATIC = 0x01 /** * 非精确匹配:不需要匹配数字范围、作用域等。 */ const val NOT_EXACT = 0x02 /** * 需要访问文件路径索引。 * @see icu.windea.pls.core.index.ParadoxFilePathIndex */ const val FILE...
2
Kotlin
2
14
a3816071d500f8cf993240885895966be67ef5c8
1,054
Paradox-Language-Support
MIT License
app/src/main/java/bruhcollective/itaysonlab/cobalt/ui/theme/Theme.kt
iTaysonLab
529,265,880
false
{"Kotlin": 451014}
package bruhcollective.itaysonlab.jetisteam.ui.theme import android.os.Build import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.material3.MaterialTheme import androidx.compose.material3.darkColorScheme import androidx.compose.material3.dynamicDarkColorScheme import androidx.compose.material...
2
Kotlin
5
97
78a9d963893e0b675cb0e3b1a2b6b936c0be3d19
2,331
jetisteam
Apache License 2.0
server-testing/src/main/kotlin/com/lightningkite/lightningdb/test/models.kt
lightningkite
512,032,499
false
{"Kotlin": 2189721, "TypeScript": 38628, "Ruby": 873, "JavaScript": 118}
@file:UseContextualSerialization(UUID::class, Instant::class, ServerFile::class) package com.lightningkite.lightningdb.test import com.lightningkite.GeoCoordinate import com.lightningkite.lightningdb.* import com.lightningkite.lightningdb.HasId import kotlinx.serialization.Contextual import kotlinx.serialization.Seria...
3
Kotlin
1
5
f404cc57cbdbe2a90b4e59d4ecd5ad22e008a730
4,800
lightning-server
MIT License
app/src/main/java/com/example/bomber/presentation/GameViewModel.kt
dmitriismirnov
396,307,187
false
null
package com.example.bomber.presentation import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.example.bomber.domain.GameEngine import com.example.bomber.game.GameState import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.flow.SharingStarted import kotlinx.corou...
0
Kotlin
0
1
e732ccf9cffe4008d76949038d58f604059e2f0c
1,461
bomber
Apache License 2.0
compiler/tests-spec/testData/psi/linked/when-expression/p-7/neg/3.1.kt
tnorbye
162,147,688
false
null
/* * KOTLIN PSI SPEC TEST (NEGATIVE) * * SECTIONS: when-expression * PARAGRAPH: 7 * SENTENCE: [3] Contains test condition: containment operator followed by an expression. * NUMBER: 1 * DESCRIPTION: 'When' with bound value and 'when condition' with range expression, but without contains operator. */ fun case_1(...
0
null
2
2
b6be6a4919cd7f37426d1e8780509a22fa49e1b1
448
kotlin
Apache License 2.0
sample/src/androidTest/java/com/freeletics/rxredux/PopularRepositoriesActivityTest.kt
freeletics
138,705,451
false
null
package com.freeletics.coredux import android.content.Intent import android.support.test.espresso.Espresso import android.support.test.espresso.ViewAction import android.support.test.espresso.action.GeneralLocation import android.support.test.espresso.action.GeneralSwipeAction import android.support.test.espresso.acti...
10
Kotlin
6
572
6326055ac3097f5eea3f7262a5c312eee40d895d
3,617
RxRedux
Apache License 2.0
compiler/ir/ir.tree/gen/org/jetbrains/kotlin/ir/declarations/IrReturnTarget.kt
JetBrains
3,432,266
false
null
/* * Copyright 2010-2023 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. */ // This file was generated automatically. See compiler/ir/ir.tree/tree-generator/ReadMe.md. // DO NOT MODIFY I...
181
null
5771
49,172
33eb9cef3d146062c103f9853d772f0a1da0450e
824
kotlin
Apache License 2.0
shared/src/main/kotlin/xlitekt/shared/buffer/ByteBuffer.kt
runetopic
448,110,155
false
null
package xlitekt.shared.buffer import xlitekt.shared.toInt import java.nio.ByteBuffer /** * @author <NAME> * Extension functions for the ByteBuffer class for unpacking cache data. * Extension functions for the ByteBuffer class used for building packets. */ fun ByteBuffer.readStringCp1252NullTerminated() = String(r...
0
Kotlin
3
8
c896a2957470769a212961ba3e4331f04fc785df
6,788
xlitekt
MIT License
compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/compiler.kt
mogahed0118
142,181,323
true
{"Kotlin": 28617854, "Java": 7550039, "JavaScript": 153376, "HTML": 65397, "Lex": 18269, "ANTLR": 9797, "IDL": 8755, "Shell": 6769, "CSS": 4679, "Batchfile": 4437, "Groovy": 4358}
/* * 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.ir.backend.js import com.intellij.openapi.project.Project import org.jetbrains.kotlin.backend.common.lower.* import org.jetbra...
1
Kotlin
1
1
7b6df0a7cc8494dc43409535adce4880092ce393
4,798
kotlin
Apache License 2.0
payment-api/payment-domain/src/main/kotlin/org/collaborators/paymentslab/payment/domain/repository/TossPaymentsRepository.kt
f-lab-edu
665,758,863
false
{"Kotlin": 165334, "HTML": 1979, "Shell": 1679, "Dockerfile": 298}
package org.collaborators.paymentslab.payment.domain.repository import org.collaborators.paymentslab.payment.domain.entity.TossPayments interface TossPaymentsRepository { fun save(entity: TossPayments): TossPayments }
0
Kotlin
1
9
9455e02b6a962a363b5aaf32dbd4fbde7d52a477
223
payment-lab
MIT License
app/src/main/java/com/analytics/device/utils/UsageUtils.kt
niyiomotoso
662,027,110
false
null
package com.analytics.device.utils import android.app.usage.UsageEvents import android.app.usage.UsageStatsManager import android.content.Context import android.util.Log import androidx.appcompat.app.AppCompatActivity import com.analytics.device.helpers.DateTimeHelper import com.analytics.device.migrations.AppUsageDat...
0
Kotlin
0
0
3944728990dbbde2a7ec7bab5f1c71902c709de7
7,352
device-analytics
MIT License
lib/src/main/java/net/imoya/android/preference/controller/editor/list/MultiSelectionStringListFragmentEditor.kt
IceImo-P
392,544,118
false
null
/* * Copyright (C) 2022 IceImo-P * * 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
0
0
ca648efb181731411ed2f793497417fb2e94efc6
3,847
ImoyaAndroidPreferenceLib
Apache License 2.0
src/shmp/simulation/culture/group/request/ResourceRequest.kt
ShMPMat
212,499,539
false
null
package shmp.simulation.culture.group.request import shmp.simulation.culture.group.centers.Group import shmp.simulation.space.resource.Resource class ResourceRequest(private val resource: Resource, core: RequestCore) : Request(core) { override fun reducedAmountCopy(amount: Double) = ResourceRequest(r...
0
Kotlin
0
0
43fbb9f6db25f651cb7328408468513491296fb0
589
CulturesSim
MIT License
app/src/main/java/info/tuver/todo/ui/todo/todoTagSelect/TodoTagSelectAdapterViewHolderItem.kt
berkcosar
233,477,029
false
{"Kotlin": 89679}
package info.tuver.todo.ui.todo.todoTagSelect import androidx.databinding.ViewDataBinding import info.tuver.todo.model.TagSelectModel import kotlinx.android.synthetic.main.item_todo_tag_select.view.* class TodoTagSelectAdapterViewHolderItem(viewDataBinding: ViewDataBinding) : TodoTagSelectAdapterViewHolder(viewDataBi...
0
null
0
0
bc024f3fb49bc3c450aa6c7050a0d3696845f6a3
633
android-mvvm-todo
MIT License
app/src/main/java/top/easelink/lcg/ui/search/source/SearchService.kt
vivicai
238,866,992
true
{"Kotlin": 229971, "Java": 150577, "HTML": 656}
package top.easelink.lcg.ui.search.source import androidx.annotation.WorkerThread import org.jsoup.nodes.Element import org.jsoup.select.Elements import timber.log.Timber import top.easelink.lcg.R import top.easelink.lcg.network.ApiClient import top.easelink.lcg.ui.search.model.SearchResult import top.easelink.lcg.ui....
0
null
0
0
fed971cb745fa7845c799573c1d847d35a253bd0
2,858
lcg
MIT License
app/src/main/java/com/coding/zxm/wanandroid/login/LoginActivity.kt
ZhangXinmin528
283,199,248
false
null
package com.coding.zxm.wanandroid.login import android.app.Activity import android.text.TextPaint import android.text.TextUtils import android.text.style.ClickableSpan import android.view.View import android.widget.Toast import androidx.activity.viewModels import androidx.lifecycle.Observer import com.coding.zxm.core....
0
Kotlin
1
3
226f612382444b8853651590d6ef019363f536f1
3,875
WanAndroid
Apache License 2.0
2018/2018110901.kt
maku693
87,369,916
false
{"C++": 763488, "JavaScript": 136237, "CMake": 53855, "Go": 29487, "Jupyter Notebook": 28868, "HTML": 11927, "GLSL": 10187, "C": 4193, "CSS": 4155, "C#": 3754, "Kotlin": 1848, "TypeScript": 1840, "PowerShell": 1281, "Swift": 879, "HLSL": 774, "Clojure": 671, "Rust": 370, "Common Lisp": 263, "Processing": 256, "F#": 157...
import kotlin.math.sqrt data class Vec3(var x: Double, var y: Double, var z: Double) { fun unaryMinus() = Vec3(-x, -y, -z) fun plus(other: Vec3) = Vec3(x + other.x, y + other.y, z + other.z) fun minus(other: Vec3) = Vec3(x - other.x, y - other.y, z - other.z) infix fun scale(multiplier: Double) = Vec...
0
C++
0
0
53e3a516eeb293b3c11055db1b87d54284e6ac52
862
daily-snippets
MIT License
code/core/src/test/java/com/adobe/marketing/mobile/internal/util/EventDataMergerTests.kt
adobe
458,293,389
false
null
/* Copyright 2022 Adobe. All rights reserved. This file is licensed to you 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 la...
15
null
24
9
d3e61e63f80799942171e04e7d1b79a3a1a7c717
13,256
aepsdk-core-android
Apache License 2.0
idea/tests/org/jetbrains/kotlin/idea/debugger/MockSourcePosition.kt
damenez
189,964,139
true
{"Markdown": 56, "Gradle": 497, "Gradle Kotlin DSL": 215, "Java Properties": 12, "Shell": 11, "Ignore List": 10, "Batchfile": 9, "Git Attributes": 1, "Protocol Buffer": 12, "Java": 5238, "Kotlin": 43905, "Proguard": 7, "XML": 1594, "Text": 9172, "JavaScript": 239, "JAR Manifest": 2, "Roff": 209, "Roff Manpage": 34, "IN...
/* * Copyright 2010-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/LICENSE.txt file. */ package org.jetbrains.kotlin.idea.debugger import com.intellij.debugger.SourcePosition import com.intellij.openapi.editor.Editor import com.intellij.psi.Ps...
0
Kotlin
1
2
dca23f871cc22acee9258c3d58b40d71e3693858
1,655
kotlin
Apache License 2.0
src/main/kotlin/novah/data/PLabelMap.kt
stackoverflow
255,379,925
false
null
/** * Copyright 2021 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
0
Kotlin
1
9
f3f2b12e178c5288197f6c6d591e8d304f5baf5d
3,971
novah
Apache License 2.0
app/src/p_app/main/java/com/llj/architecturedemo/ui/module/MineFragmentModule.kt
liulinjie1990823
133,350,610
false
{"Gradle": 94, "Python": 7, "JSON": 2, "Java Properties": 40, "Shell": 54, "Text": 149, "JavaScript": 32, "Ignore List": 72, "Markdown": 59, "Java": 651, "INI": 17, "Proguard": 56, "XML": 352, "Groovy": 16, "CMake": 13, "C++": 49, "C": 704, "Kotlin": 304, "Roff Manpage": 30, "YAML": 11, "CSS": 6, "JAR Manifest": 1, "HT...
package com.llj.architecturedemo.ui.module import com.llj.architecturedemo.ui.fragment.MineFragment import com.llj.architecturedemo.ui.view.IMineView import dagger.Module import dagger.Provides /** * ArchitectureDemo. * describe: * author llj * date 2018/10/24 */ @Module class MineFragmentModule { @Provide...
1
null
1
1
7c5d7fe1e5e594baba19778e0ed857325ce58095
436
ArchitectureDemo
Apache License 2.0
packages/graalvm/src/main/kotlin/elide/runtime/gvm/VMFacade.kt
elide-dev
506,113,888
false
{"Kotlin": 4544382, "JavaScript": 1201497, "Java": 302542, "Protocol Buffer": 276092, "Shell": 84860, "Dockerfile": 51144, "Cap'n Proto": 35188, "Makefile": 30147, "CSS": 14730, "Python": 5989, "C": 4348, "Batchfile": 3016, "Ruby": 2474, "Handlebars": 1954, "HTML": 1010, "Rust": 525, "Swift": 23}
/* * Copyright (c) 2024 Elide Technologies, Inc. * * Licensed under the MIT license (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * https://opensource.org/license/mit/ * * Unless required by applicable law or agreed to in writing,...
75
Kotlin
15
86
bd9f5aed8523648256c9e9a29d87bd3c2b09ac54
2,706
elide
MIT License
alkemy/src/main/kotlin/io/alkemy/internals/system-properties.kt
cosmin-marginean
630,394,204
false
null
package io.alkemy.internals inline fun <reified T> sysProp(name: String, default: T): T { val sysProp = System.getProperty(name) ?: return default return when (T::class) { String::class -> sysProp as T Boolean::class -> sysProp.toBoolean() as T Int::class -> sysProp.toInt() as T ...
0
Kotlin
1
14
5e44af08c010170373651cc7ade9d4e209f1262b
645
alkemy
Apache License 2.0
src/main/kotlin/no/nav/paw/situasjon/repository/SituasjonRepository.kt
navikt
628,963,942
false
null
package no.nav.paw.situasjon.repository import kotliquery.Row import kotliquery.queryOf import kotliquery.sessionOf import no.nav.paw.situasjon.domain.Foedselsnummer import no.nav.paw.situasjon.domain.SituasjonDto import javax.sql.DataSource class SituasjonRepository(private val dataSource: DataSource) { fun hent...
0
Kotlin
0
0
258aa6a70b520e11a7cf8a7e6850d1f95336440c
963
paw-arbeidssoker-situasjon
MIT License
src/backend/job/boot-job-worker/src/main/kotlin/com/tencent/bkrepo/job/worker/JobWorkerApplication.kt
TencentBlueKing
548,243,758
false
{"Kotlin": 13657594, "Vue": 1261332, "JavaScript": 683823, "Shell": 124343, "Lua": 100415, "SCSS": 34137, "Python": 25877, "CSS": 17382, "HTML": 13052, "Dockerfile": 4483, "Smarty": 3661, "Java": 423}
package com.tencent.bkrepo.job.worker import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.boot.runApplication import org.springframework.data.mongodb.repository.config.EnableMongoRepositories @SpringBootApplication(scanBasePackages = ["com.tencent.bkrepo.job"]) @EnableMongoR...
363
Kotlin
38
70
54b0c7ab20ddbd988387bac6c9143b594681e73c
485
bk-repo
MIT License
app/src/main/java/chat/rocket/android/authentication/infraestructure/TokenMapper.kt
lucasmontano
128,559,523
true
{"Kotlin": 556415, "Shell": 2737}
package chat.rocket.android.authentication.infraestructure import chat.rocket.android.authentication.domain.model.TokenModel import chat.rocket.android.util.DataToDomain import chat.rocket.common.model.Token object TokenMapper : DataToDomain<Token, TokenModel> { override fun translate(data: Token): TokenModel { ...
0
Kotlin
0
3
83b14b60deade340b1b2b05e20f10fb7d3772280
381
Rocket.Chat.Android
MIT License
jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/TestingBuildLogger.kt
JetBrains
278,369,660
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...
181
null
5748
71
b6789690db56407ae2d6d62746fb69dc99d68c84
1,497
intellij-kotlin
Apache License 2.0
lol/app/src/main/java/com/tyhoo/android/lol/ui/ItemScreen.kt
cnwutianhao
600,592,169
false
null
package com.tyhoo.android.lol.ui import androidx.compose.foundation.Image import androidx.compose.foundation.layout.* import androidx.compose.material.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp import coil....
0
Kotlin
0
0
90797aa1c354092b72ed5fc910f2c4838f1e0577
1,935
android
MIT License
app/src/main/java/com/hfut/schedule/ui/Activity/success/search/Search/TotalCourse/CourseTotal.kt
Chiu-xaH
705,508,343
false
null
package com.hfut.schedule.ui.Activity.success.search.Search.TotalCourse import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer impo...
0
null
1
3
81117c0954b1853847ec09a10d55c55db4a8e284
5,328
HFUT-Schedule
Apache License 2.0
server/src/main/kotlin/org/kryptonmc/krypton/pack/PackType.kt
KryptonMC
255,582,002
false
null
/* * This file is part of the Krypton project, licensed under the Apache License v2.0 * * Copyright (C) 2021-2023 KryptonMC and the contributors of the Krypton 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 ...
27
Kotlin
11
233
a9eff5463328f34072cdaf37aae3e77b14fcac93
1,044
Krypton
Apache License 2.0
common/build/generated/sources/schemaCode/kotlin/main/io/portone/sdk/server/schemas/RegisterStoreReceiptBodyItem.kt
portone-io
809,427,199
false
{"Kotlin": 385115, "Java": 331}
package io.portone.sdk.server.schemas import kotlin.Long import kotlin.String import kotlinx.serialization.Serializable /** * 하위 상점 거래 정보 */ @Serializable public data class RegisterStoreReceiptBodyItem( /** * 하위 상점 사업자등록번호 */ public val storeBusinessRegistrationNumber: String, /** * 하위 상점명 */ pu...
0
Kotlin
0
2
f984c4cc31aa64aad5cd0fa0497bdd490a0fe33a
646
server-sdk-jvm
MIT License
app/src/main/java/com/ingjuanocampo/enfila/android/ui/common/Activity+Ext.kt
ingjuanocampo
387,043,993
false
{"Kotlin": 247926}
package com.ingjuanocampo.enfila.android.ui.common import android.app.Activity import android.content.Context import android.view.inputmethod.InputMethodManager fun Activity.hideKeyboard() { val inputMethodManager = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager inputMethodManager.hideS...
2
Kotlin
0
0
31011df678fd6379247957c74de1e4940b0ad2e6
373
EnFila-Android
MIT License
app/src/main/java/com/alpriest/energystats/ui/statsgraph/StatsDatePickerView.kt
alpriest
606,081,400
false
{"Kotlin": 878318}
package com.alpriest.energystats.ui.statsgraph import android.widget.CalendarView import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layou...
8
Kotlin
3
3
e4e6d594040924730408a6e8e9d4c8d919770d1f
12,630
EnergyStats-Android
MIT License
features/novel/novel_domain/src/main/kotlin/jp/sadashi/narou/reader/novel/domain/NovelCode.kt
sadashi-ota
193,362,372
false
null
package jp.sadashi.narou.reader.novel.domain inline class NovelCode(val value: String)
0
Kotlin
0
0
e1c0178f5cfdc8641a53834e7eddd19f2936266a
87
narou-reader
Apache License 2.0
src/main/kotlin/dev/kdrag0n/patreondl/external/patreon/Webhooks.kt
kdrag0n
353,524,278
false
{"Kotlin": 65248, "Handlebars": 4629, "CSS": 3200}
package dev.kdrag0n.patreondl.external.patreon import dev.kdrag0n.patreondl.config.Config import dev.kdrag0n.patreondl.external.telegram.TelegramInviteManager import io.ktor.http.* import io.ktor.server.application.* import io.ktor.server.request.* import io.ktor.server.response.* import io.ktor.server.routing.* impor...
2
Kotlin
3
23
f11d7edbe0db8f011a361912529de70ab2439676
1,990
earlypilot
MIT License