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
compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/ifExpressionInsideCoroutine.kt
JakeWharton
99,388,807
false
null
// IGNORE_BACKEND: JS_IR // IGNORE_BACKEND: JVM_IR // WITH_RUNTIME // WITH_COROUTINES // COMMON_COROUTINES_TEST import helpers.* import COROUTINES_PACKAGE.* import COROUTINES_PACKAGE.intrinsics.* val f = run { buildSequence { if (true) { yield("OK") } }.toList() } fun box(): String...
12
null
28
83
4383335168338df9bbbe2a63cb213a68d0858104
341
kotlin
Apache License 2.0
src/main/kotlin/org/yinwang/pysonar/CallStack.kt
lice-lang
110,064,855
false
{"Gradle": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Java Properties": 1, "Java": 57, "Python": 24, "CSS": 1, "JavaScript": 2, "Kotlin": 55, "JSON": 10}
package org.yinwang.pysonar import org.yinwang.pysonar.ast.Node import org.yinwang.pysonar.types.Type import java.util.HashSet class CallStack { private val stack = HashSet<Node>() fun push(call: Node, type: Type) = stack.add(call) fun pop(call: Node, type: Type) = stack.remove(call) fun contains(call: Node, typ...
1
null
1
1
1f8fd89c13d96919391887fbb5399ed6aba51f72
353
pysonar2
BSD Zero Clause License
jpm-tests/src/main/kotlin/dk/thrane/jolie/UserData.kt
DanThrane
76,953,158
false
{"Jolie": 191448, "Java": 73331, "Kotlin": 37858, "HTML": 14080, "Shell": 7780, "Batchfile": 102}
package dk.thrane.jolie import java.io.File import java.util.* private val random = Random() data class User(val name: String, val password: String) fun registerAndAuthenticate(name: String = "user", withRandomSuffix: Boolean = true): User { val username = name + (if (withRandomSuffix) random.nextInt(1000) else...
1
Jolie
1
1
36a4fed81b8769926a40e2dd6f0fd282b6e2bf03
741
jolie-packages
MIT License
zoomimage-compose-glide/src/androidTest/kotlin/com/github/panpf/zoomimage/compose/glide/test/GlideZoomAsyncImageTest.kt
panpf
647,222,866
false
{"Kotlin": 3674826, "Shell": 738}
package com.github.panpf.zoomimage.compose.glide.test import kotlin.test.Test class GlideZoomAsyncImageTest { @Test fun testGlideZoomAsyncImage(){ // TODO test } }
1
Kotlin
12
234
76f8f7f6928163c2ae88a5daef5e292fa7cb7966
186
zoomimage
Apache License 2.0
src/jvmMain/kotlin/utils/fileutils.kt
hapifhir
285,363,653
false
null
package utils import model.FileInfo import model.asString import model.isValid import org.slf4j.Logger const val INVALID_FILE = "Invalid file entry passed in -> %s" fun badFileEntryExists(logger: Logger, filesToValidate: MutableCollection<FileInfo>, silent: Boolean = false): Boolean { return filesToValidate.filt...
18
Kotlin
6
9
6c0eaacfd2afc6d5f95bed143e31b7338cb144f1
448
org.hl7.fhir.validator-wrapper
Apache License 2.0
geary-papermc-bridge/src/main/kotlin/com/mineinabyss/geary/papermc/bridge/conditions/location/BlockConditions.kt
MineInAbyss
592,086,123
false
{"Kotlin": 195226}
package com.mineinabyss.geary.papermc.bridge.conditions.location import com.mineinabyss.geary.events.CheckingListener import com.mineinabyss.geary.papermc.bridge.config.inputs.Input import com.mineinabyss.geary.systems.accessors.Pointers import kotlinx.serialization.Contextual import kotlinx.serialization.SerialName i...
2
Kotlin
0
1
519fe92c24bb73bbf22523903c5e14103dcabe00
1,013
geary-papermc
MIT License
presentation/src/test/java/com/androchef/presentation/movielist/mapper/MovieMapperTest.kt
happysingh23828
251,545,848
false
null
package com.androchef.presentation.movielist.mapper import com.androchef.domain.models.movies.Movie import com.androchef.presentation.factory.movies.PresentationMovieFactory import com.androchef.presentation.movielist.models.MovieView import org.junit.Assert.assertEquals import org.junit.Before import org.junit.Test i...
0
null
51
293
63777c3d98929b31294719a99c9bf0ae4d7cd616
1,312
Android-Clean-Architecture
MIT License
core/domain/src/main/kotlin/com/naveenapps/expensemanager/core/domain/usecase/settings/filter/daterange/SetDateRangesUseCase.kt
nkuppan
536,435,007
false
{"Kotlin": 1018021}
package com.naveenapps.expensemanager.core.domain.usecase.settings.filter.daterange import com.naveenapps.expensemanager.core.model.Resource import java.util.Date import javax.inject.Inject class SetDateRangesUseCase @Inject constructor( private val dateRangeFilterRepository: com.naveenapps.expensemanager.core.re...
4
Kotlin
2
94
5a5c790bea3f1ce4a720d7cffe6fe72a506507b7
523
expensemanager
Apache License 2.0
package/android/src/main/java/com/mrousavy/camera/types/LensFacing.kt
mrousavy
340,402,576
false
null
package com.mrousavy.camera.parsers import android.hardware.camera2.CameraCharacteristics enum class LensFacing(override val unionValue: String) : JSUnionValue { BACK("back"), FRONT("front"), EXTERNAL("external"); companion object { fun fromCameraCharacteristics(cameraCharacteristics: CameraCharacteristi...
83
null
954
6,407
b4ccee46798b8217cbe5e637b76f1357d6effd36
630
react-native-vision-camera
MIT License
compose/src/commonTest/kotlin/androidx/constraintlayout/core/OptimizationsTest.kt
Lavmee
711,725,142
false
null
/* * Copyright (C) 2015 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...
6
null
1
9
1109ad273c2434eecf2090299f10df50db0edb1c
72,861
constraintlayout-compose-multiplatform
Apache License 2.0
compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/ir/IrUtils.kt
neilvorster93
192,003,367
false
null
/* * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.backend.jvm.ir import org.jetbrains.kotlin.backend.jvm.codegen.isJvmInterface im...
1
null
1
1
a1e9259465e8cb8ac8ed6ac906538472eb57e31e
3,530
kotlin
Apache License 2.0
feature/re-password/src/main/java/com/goms/re_password/component/RePasswordText.kt
team-haribo
740,096,241
false
{"Kotlin": 621219}
package com.goms.re_password.component import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.font.FontWeight import com.goms.design_system.theme.GomsTheme.colors import com.goms...
5
Kotlin
0
9
32b6b960f997e282a05c8409d6e045e6f95822d5
669
GOMS-Android-V2
MIT License
network/src/main/kotlin/dev/atick/network/data/JetpackDataSourceImpl.kt
atick-faisal
433,148,965
false
null
/* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
3
Kotlin
0
2
b04c09d724c679c15d4ccb173463679ea14ba5ac
1,215
Jetpack-Compose-Starter
Apache License 2.0
protocol/osrs-225/src/main/kotlin/net/rsprox/protocol/game/outgoing/model/misc/client/HideObjOps.kt
blurite
822,339,098
false
{"Kotlin": 5997123, "HCL": 3626}
package net.rsprox.protocol.game.outgoing.model.misc.client import net.rsprox.protocol.game.outgoing.model.IncomingServerGameMessage /** * Hide obj ops packet is used to hide the right-click menu of all objs on the ground. * @property hidden whether to hide all the click options of objs. */ public class HideObjOps...
9
Kotlin
12
31
78fb08c23ec5bedd194371627586005b50b01ada
728
rsprox
MIT License
app/src/main/java/bry1337/github/io/creditnotebook/presentation/persontransaction/PersonTransactionFragment.kt
Bry1337
196,964,188
false
null
package bry1337.github.io.creditnotebook.presentation.persontransaction import android.content.Context import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.lifecycle.Observer import androidx.lifecycle.Vi...
0
Kotlin
0
1
7f486a4097aac180504751b67b2e0bbea63eb0cd
2,626
super-duper-giggle
MIT License
TheDailyNewscast/app/src/main/java/com/thenewsapp/activities/adapter/NewsListAdapter.kt
ArbeenaKhanum
326,688,659
false
null
package com.thenewsapp.thedailynewscast.activities.adapter import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.thenewsapp.thedailynewscast.activities.R import com.thenewsapp.thedailynewscast.activities.listener.RecyclerviewClickListener import co...
0
Kotlin
0
1
4e570cf694f3e7a88f0c9551ce39d7615f6ceeed
1,327
TheNewsApp
Apache License 2.0
displayinfo/src/main/java/io/github/eaglesakura/displayinfo/DPI.kt
eaglesakura
338,213,327
false
null
package io.github.eaglesakura.displayinfo import kotlin.math.min @Suppress("EnumEntryName") enum class DPI { ldpi, mdpi, tvdpi, hdpi, xhdpi, xxhdpi, xxxhdpi; companion object { internal fun parse(xdpi: Float, ydpi: Float): DPI { val dpi = min(xdpi, ydpi) ...
0
Kotlin
0
0
486118ac79758ab6780438e878caa75b8d028888
637
displayinfo
MIT License
nut/src/main/java/org/abanoubmilad/nut/ISyncFailure.kt
abanoubmilad
289,705,518
false
null
package org.abanoubmilad.nut import com.google.gson.Gson import java.io.Reader /* * * * * Created by <NAME> * * on 5/1/20 11:05 PM * * Last modified 5/1/20 11:05 PM * */ interface ISyncFailure { var errorBody: Reader? var code: Int companion object { const val TAG = "ISync_failure_nut...
0
Kotlin
0
1
3c45aa75340d9ca2fa98ce0bf35bf417fe67c3cc
903
nut
MIT License
kotlin-in-action/src/base/WhenTest.kt
chiclaim
97,095,916
false
null
package base import new_class.Color import new_class.Color.* // when with enum fun getMnemonic(color: Color) = when (color) { Color.RED -> "Richard" Color.ORANGE -> "Of" Color.YELLOW -> "York" Color.GREEN -> "Gave" Color.BLUE -> "Battle" Color.INDIGO -> "In" Color.VIOLET -> "Vain" } f...
0
Kotlin
10
25
da08018c2fe20595293a4dbb1a08de75c3db3042
971
KotlinTutorials
Apache License 2.0
src/main/kotlin/no/nav/familie/ef/sak/uttrekk/UttrekkFagsakMedAndelshistorikk.kt
navikt
206,805,010
false
{"Kotlin": 3583264, "Gherkin": 163891, "Dockerfile": 155}
package no.nav.familie.ef.sak.forvaltning.uttrekk import no.nav.familie.ef.sak.vedtak.historikk.AndelHistorikkDto import no.nav.familie.kontrakter.felles.Månedsperiode import java.time.YearMonth import java.util.UUID data class UttrekkFagsakMedAndelshistorikk(val fagsakId: UUID, val andelshistorikk: List<AndelHistori...
3
Kotlin
2
0
6334fed4ea795a48703b562f55ef3f207b60effc
1,494
familie-ef-sak
MIT License
uiagesturegen/src/androidTest/kotlin/com/pguardiola/uiagesturegen/StuffTest.kt
Guardiola31337
92,506,172
false
null
/* * Copyright (C) 2017 Pablo Guardiola Sánchez. * * 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 ...
12
Kotlin
2
17
6393445a5f74c8a4ce30b8b8a0eb482813bb2900
9,666
uiagesturegen
Apache License 2.0
libraries/tools/kotlin-tooling-core/src/test/kotlin/org/jetbrains/kotlin/tooling/core/ReifiedTypeSignatureTest.kt
touchlab-lab
503,951,673
true
{"Markdown": 134, "Gradle": 432, "Gradle Kotlin DSL": 665, "Java Properties": 18, "Kotlin": 42861, "Shell": 47, "Ignore List": 21, "Batchfile": 24, "Git Attributes": 9, "Dockerfile": 6, "INI": 166, "Java": 2885, "XML": 665, "Text": 14263, "JavaScript": 309, "JAR Manifest": 2, "Roff": 235, "Roff Manpage": 43, "Protocol ...
/* * Copyright 2010-2022 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.tooling.core import kotlin.test.Test import kotlin.test.assertEquals import kotl...
1
null
0
0
c2ae74c7cd8bb4d3a55382d227adf52a67e73b79
3,258
kotlin
Apache License 2.0
Chapter05/OperatorOverloading.kt
PacktPublishing
131,798,556
false
null
package quickstart.kotlin.chapter6 import java.math.BigInteger class Length(val value: Double) { operator fun plus(other: Length): Length { return Length(this.value + other.value) } operator fun plus(double: Double): Length { return Length(this.value + double) } operator fun plus...
1
Kotlin
8
9
5c781d2da36e8cb3407b8448c5cbff207fe34592
762
Kotlin-Quick-Start-Guide
MIT License
common/src/appleMain/kotlin/com/kashif/voyant_common/extensions/UIViewControllerWrapper.kt
Kashif-E
864,502,574
false
null
package com.kashif.voyant.extensions import kotlinx.cinterop.BetaInteropApi import kotlinx.cinterop.CValue import kotlinx.cinterop.ExperimentalForeignApi import kotlinx.cinterop.ObjCAction import kotlinx.cinterop.useContents import platform.CoreGraphics.CGFloat import platform.CoreGraphics.CGPoint import platform.Core...
0
null
1
31
ce1de2887aeebcf2ee16c316b8787881383da2b8
5,409
Voyant
MIT License
common/src/appleMain/kotlin/com/kashif/voyant_common/extensions/UIViewControllerWrapper.kt
Kashif-E
864,502,574
false
null
package com.kashif.voyant.extensions import kotlinx.cinterop.BetaInteropApi import kotlinx.cinterop.CValue import kotlinx.cinterop.ExperimentalForeignApi import kotlinx.cinterop.ObjCAction import kotlinx.cinterop.useContents import platform.CoreGraphics.CGFloat import platform.CoreGraphics.CGPoint import platform.Core...
0
null
1
31
ce1de2887aeebcf2ee16c316b8787881383da2b8
5,409
Voyant
MIT License
app/src/main/java/com/example/memoryexplorer/ui/screens/login/LoginScreen.kt
NiccoloBert0zzi
788,964,132
false
{"Kotlin": 100143}
package com.example.memoryexplorer.ui.screens.login import androidx.compose.foundation.Image import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.foun...
0
Kotlin
0
1
e1620dd968fc101a3152ba50d27880f158d2bbc5
6,218
MemoryExplorer
MIT License
sqllin-driver/src/nativeMain/kotlin/com/ctrip/sqllin/driver/ConnectionExtension.kt
ctripcorp
570,015,389
false
null
/* * Copyright (C) 2023 Ctrip.com. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
1
C
7
160
dfeecde0de893e91c079b883cad031bed46de5d7
2,058
SQLlin
Apache License 2.0
src/commonMain/kotlin/stick/brain/MovableStick.kt
tritus
164,013,192
false
null
package stick.brain interface MovableStick { val xOrigin: Float val angle: Float fun moveByXCm(dx: Float) }
0
Kotlin
0
0
fea9682acf82c50d4eee295124a362a4b28d0048
121
rl-kt
MIT License
ksp/src/main/java/io/redandroid/navigator/ksp/generator/screenbuilder/AddDestionationsToScreenBuilder.kt
RedAndroidIo
526,187,162
false
null
package io.redandroid.navigator.ksp.generator.screenbuilder import com.squareup.kotlinpoet.ClassName import com.squareup.kotlinpoet.FunSpec import com.squareup.kotlinpoet.KModifier import com.squareup.kotlinpoet.LambdaTypeName import com.squareup.kotlinpoet.ParameterSpec import com.squareup.kotlinpoet.PropertySpec imp...
0
Kotlin
0
0
ba7d40f8a2b9667b109f10ecac8d387807ed9f3f
1,652
navigator
Apache License 2.0
app/src/main/java/com/puutaro/commandclick/fragment_lib/terminal_fragment/ExecDownLoadManager.kt
puutaro
596,852,758
false
null
package com.puutaro.commandclick.fragment_lib.terminal_fragment import android.R import android.app.AlertDialog import android.app.DownloadManager import android.content.Context import android.content.DialogInterface import android.net.Uri import android.os.Environment import android.view.Gravity import android.webkit...
1
null
1
34
5d1a19b724b98946d9f2032f4490884cdf4b6044
4,069
CommandClick
MIT License
shared/src/commonMain/kotlin/data/SettingsManager.kt
ntietje1
672,375,249
false
{"Kotlin": 447416, "Swift": 839}
package data import com.russhwolf.settings.Settings import data.serializable.Card import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json class SettingsManager private constructor() { companion object { val instance: SettingsManager by lazy { SettingsManager() } } pri...
7
Kotlin
0
1
ad234691cb010f74a91756b82c386143b0a07b92
4,024
MTG_Life_Total_App
Apache License 2.0
app/src/main/java/amrabed/android/release/evaluation/tools/ItemTouchHandler.kt
amrabed
8,094,320
false
null
package amrabed.android.release.evaluation.tools import amrabed.android.release.evaluation.R import android.content.Context import android.graphics.Canvas import android.graphics.drawable.ColorDrawable import androidx.core.content.ContextCompat import androidx.recyclerview.widget.ItemTouchHelper import androidx.recycl...
7
Kotlin
0
3
8c89970f92fc955a423994d23f669afceacca8f6
4,220
MuslimDay
MIT License
app/src/main/java/give/away/good/deeds/ui/screens/main/post/PostModule.kt
hitesh-dhamshaniya
803,497,316
false
{"Kotlin": 273575}
package give.away.good.deeds.ui.screens.main.post import give.away.good.deeds.ui.screens.main.messages.detail.ChatViewModel import give.away.good.deeds.ui.screens.main.messages.list.ChatGroupViewModel import give.away.good.deeds.ui.screens.main.post.add.AddPostViewModel import give.away.good.deeds.ui.screens.main.post...
0
Kotlin
0
0
5da593d493a04319b3d53a537d3893ccde9ab47d
1,268
GiveAwayThings_GoodDeed
MIT License
lib/src/commonMain/kotlin/xyz/mcxross/ksui/model/Network.kt
mcxross
611,172,630
false
{"Kotlin": 269236, "Shell": 3152}
/* * Copyright 2024 McXross * * 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...
2
Kotlin
3
5
a05d4cd96077ea4ebd9e9c28a48cb8df0ad65771
757
ksui
Apache License 2.0
ssm-couchdb/ssm-couchdb-f2/src/main/kotlin/ssm/couchdb/f2/query/CouchdbSsmSessionStateListQueryFunctionImpl.kt
smartbcity
637,857,005
false
{"Kotlin": 327087, "MDX": 96630, "Gherkin": 18221, "Makefile": 3071, "HTML": 2659, "JavaScript": 1876, "Dockerfile": 728, "CSS": 102}
package ssm.couchdb.f2.query import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.map import ssm.chaincode.dsl.model.SsmSessionStateDTO import ssm.couchdb.client.CouchdbSsmClient import ssm.couchdb.dsl.model.DocType import ssm.couchdb.dsl.query.CouchdbSsmSessionStateListQueryDTO import ssm.couchdb.dsl.qu...
0
Kotlin
0
0
2d888159211115656e257c683043df2df2c819b1
1,221
fixers-ssm
Apache License 2.0
app/src/main/java/com/sulistyo/mypokemon/core/domain/usecase/PokemonInteractor.kt
sulistyow
618,244,792
false
null
package com.sulistyo.mypokemon.core.domain.usecase import androidx.paging.PagingData import com.sulistyo.mypokemon.core.data.local.entity.PokemonListEntry import com.sulistyo.mypokemon.core.data.remote.responses.ApiResponse import com.sulistyo.mypokemon.core.data.remote.responses.Pokemon import com.sulistyo.mypokemon....
0
Kotlin
0
1
222dbb008b46b7c9071b65be0e85f4d87de6a7bb
1,013
mypokemon
MIT License
app/src/main/java/com/uad/portal/views/SettingsView.kt
IRedDragonICY
767,423,190
false
{"Kotlin": 54493, "Java": 1283}
package com.uad.portal.views import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.material.icons.Icons import androidx.compose.material.icons.automirrored.filled.ArrowBack import androidx.compos...
0
Kotlin
0
0
4cea43f906f0e8b804cf72076ae659b359224830
1,059
portal-uad
MIT License
app/src/main/java/github/alexzhirkevich/studentbsuby/di/RoomModule.kt
geugenm
689,629,461
false
{"Kotlin": 505619}
package github.alexzhirkevich.studentbsuby.di import android.content.Context import androidx.room.Room import dagger.Module import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.android.qualifiers.ApplicationContext import dagger.hilt.components.SingletonComponent import github.alexzhirkevich.studentb...
3
Kotlin
0
6
a89ff407beb83aa9a6fb5c21c319e6bf84e75e2a
1,328
student-bsu-by
MIT License
src/main/kotlin/com/appifyhub/monolith/init/SchemaInitializer.kt
appifyhub
323,403,014
false
{"Kotlin": 860424, "Shell": 935, "Dockerfile": 853}
package com.appifyhub.monolith.features.init.domain import com.appifyhub.monolith.features.common.domain.model.Settable import com.appifyhub.monolith.features.creator.domain.model.Project import com.appifyhub.monolith.features.creator.domain.model.ProjectCreator import com.appifyhub.monolith.features.creator.domain.mo...
24
Kotlin
0
0
c81ab5d5775eeab08d8180aba64d7b40a01576c0
7,176
monolith
MIT License
src/test/kotlin/fr/nicopico/n2rss/service/RssServiceTest.kt
nicopico-dev
747,919,496
false
{"Kotlin": 222649, "HTML": 4482, "CSS": 3022, "JavaScript": 2724, "Shell": 2608}
/* * Copyright (c) 2024 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distri...
4
Kotlin
0
2
e8950911c05b41f1f1b662b5d241d9b880ddaffc
5,179
n2rss
MIT License
time-coroutine-ext/src/commonMain/kotlin/com/merseyside/merseyLib/time/coroutines/Extensions.kt
Merseyside
396,607,192
false
{"Kotlin": 107114, "Swift": 13697, "Ruby": 1888, "Shell": 119}
package com.merseyside.merseyLib.time.coroutines import com.merseyside.merseyLib.kotlin.coroutines.utils.repeatUntilCancel import com.merseyside.merseyLib.time.units.TimeUnit import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.debounce suspend fun delay(timeUnit: TimeUnit) = kotlinx.coroutines.delay(ti...
0
Kotlin
0
0
03ad897c5c471b4d2347ba3a5c5dcd05a444d2f3
593
mersey-kmp-time
Apache License 2.0
simple/src/main/kotlin/io/nichijou/dazzling/simple/MainActivity.kt
iota9star
154,461,017
false
null
package io.nichijou.dazzling.simple import android.graphics.Color import android.os.Bundle import android.util.TypedValue import android.widget.Button import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.widget.Toolbar import io.nichijou.color.isColorDark import io.nichijou.color.isColorLight impo...
0
Kotlin
2
3
9e65d6b635dd585cc929a8e10dc23e970ba40016
5,436
dazzling-android-kt
Apache License 2.0
app/src/main/java/com/nguyen/shelter/ui/main/MainActivity.kt
dtnguyn
292,352,460
false
null
package com.nguyen.shelter.ui.main import android.annotation.SuppressLint import android.graphics.drawable.TransitionDrawable import android.os.Bundle import android.view.View import android.view.inputmethod.InputMethodManager import androidx.activity.viewModels import androidx.appcompat.app.AppCompatActivity import a...
0
Kotlin
0
2
39bb09297edd9f999ed2710ee51608a53254aa8d
4,224
Shelter
The Unlicense
src/main/kotlin/com/notkamui/kourrier/imap/folder_listener.kt
notKamui
406,057,537
false
{"Kotlin": 45616}
package com.notkamui.kourrier.imap import java.util.EventListener /** * [EventListener] interface of [KourrierFolder] to listen to [KourrierIMAPMessage]s. */ interface KourrierFolderListener : EventListener { /** * Is launched when a [message] is received. */ fun onMessageReceived(message: Kourrie...
0
Kotlin
0
2
f91d538015ac8535adaef8a666d3a1d1ea20621e
1,277
Kourrier
MIT License
src/test/kotlin/no/nav/fia/arbeidsgiver/sporreundersokelse/api/vert/SpørreundersøkelseVertTest.kt
navikt
644,356,194
false
{"Kotlin": 197817, "Dockerfile": 214}
package no.nav.fia.arbeidsgiver.sporreundersokelse.api.vert import HEADER_VERT_ID import io.kotest.assertions.shouldFail import io.kotest.inspectors.forAll import io.kotest.matchers.collections.shouldContainInOrder import io.kotest.matchers.collections.shouldHaveSize import io.kotest.matchers.shouldBe import io.kotest...
0
Kotlin
0
0
fd90ba96f28583778865d69798cc12c4f8f52a82
22,989
fia-arbeidsgiver
MIT License
jps-plugin/testData/incremental/pureKotlin/inlineLinesChanged/inline.kt
JakeWharton
99,388,807
true
null
package inline inline fun f(): String = "inline.f()" inline fun g(): String = "inline.g()"
179
Kotlin
5640
83
4383335168338df9bbbe2a63cb213a68d0858104
108
kotlin
Apache License 2.0
domain/src/main/kotlin/domain/login/DomainAuthenticatedUser.kt
anirudh8860
144,851,679
true
{"Kotlin": 257579, "Shell": 5304, "IDL": 1080}
package domain.login data class DomainAuthenticatedUser(val apiKey: String)
0
Kotlin
0
1
ba8ead38f5bcefc857a6dc9cc344cd030ca5b22d
77
dinger
MIT License
untitled/src/main/kotlin/ativ_pratica/L2/l2q03.kt
leticiasaraivafontenele
765,887,801
false
{"Kotlin": 38029, "Java": 9595}
fun main() { try { var notas: Array<Double> = Array(6) { 0.0 } for (i in 0 until notas.size) { var cont = 0 do { if (cont > 0) { println("As notas nao podem ser maiores que 10 ou menores que 0") } println("Di...
0
Kotlin
0
0
8bbd3e7aa89ce1cb7e1ec213ad0197b87924d455
747
CursoIntroducao-Dev-Android
MIT License
app/src/main/java/com/example/mothercare/ui/scene/survey/article/ArticleItem.kt
ufuomaisaac
738,357,888
false
{"Kotlin": 79862}
package com.example.mothercare.ui.scene.article import androidx.annotation.DrawableRes import androidx.annotation.StringRes import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import and...
2
Kotlin
0
0
8a5af2fc91d43b563a7bb1b2a07595ef6dcf63cd
2,730
SC-24
MIT License
usage/src/main/kotlin/dev/android/playground/nova/usage/CoreSimpleGenerated.kt
kirill-grouchnikov
286,843,815
false
{"Gradle": 7, "Java Properties": 1, "Markdown": 4, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Kotlin": 53, "INI": 1, "Java": 9}
/* * Copyright 2020 Google LLC * * 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 i...
0
Kotlin
0
29
a866b14b14291e99f82f76b4a1dacc416413c6b1
2,922
nova
Apache License 2.0
transaction/src/main/kotlin/com/micro/transaction/entity/model/GenericJsonDeserializer.kt
fatemehSalem
667,229,490
false
null
package com.micro.account.entity.model import com.fasterxml.jackson.databind.ObjectMapper import org.apache.kafka.common.serialization.Deserializer class GenericJsonDeserializer<Any>(private val type: Class<Any>) : Deserializer<Any> { override fun configure(configs: MutableMap<String, *>?, isKey: Boolean) { ...
0
Kotlin
0
1
0e520444f0c949492744406b82a4b064c2c02ba6
738
Microservice
MIT License
app/src/main/java/kittoku/osc/negotiator/IpcpNegotiator.kt
kittoku
173,106,265
false
null
package kittoku.opensstpclient.negotiator import kittoku.opensstpclient.layer.IpcpState import kittoku.opensstpclient.layer.PppClient import kittoku.opensstpclient.misc.* import kittoku.opensstpclient.unit.* internal fun PppClient.tryReadingIpcp(frame: IpcpFrame): Boolean { try { frame.read(incomingBuffe...
4
Kotlin
29
90
f624698e87503624d87aae17491df7d187e416b2
5,339
Open-SSTP-Client
MIT License
SmartAgenda/app/src/main/java/com/example/smartagenda/model/Habit.kt
sebastianncraciun
637,143,304
false
null
package com.example.smartagenda.model data class Habit( val message: List<String> )
0
Kotlin
0
0
bbcea2a8c2a5e7845f44ffe155ca0b9a7194dc68
88
smart-collabortive-agenda
MIT License
brd-android/fabriik-common/src/main/java/com/fabriik/common/utils/validators/EmailValidator.kt
fabriik
489,117,365
false
null
package com.rockwallet.common.utils.validators import android.util.Patterns object EmailValidator : Validator { private val pattern = Patterns.EMAIL_ADDRESS override fun invoke(input: String) = pattern.matcher(input).matches() }
2
Kotlin
1
1
8894f5c38203c64e48242dae9ae9344ed4b2a61f
240
wallet-android
MIT License
android/app/src/main/java/com/elihimas/equations/ui/GameFragment.kt
elihimas
436,394,959
false
{"Kotlin": 13283}
package com.elihimas.equations.ui import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Button import androidx.fragment.app.Fragment import com.elihimas.equations.databinding.FragmentGameBinding import com.elihimas.equations.model.Equat...
0
Kotlin
0
0
523efa9bf010336691f6ffa99e3e73fc23003c03
3,097
equations
Apache License 2.0
app/src/main/java/com/novel/read/utils/LanguageUtils.kt
390057892
205,651,402
false
null
package com.novel.read.utils import android.content.Context import android.content.res.Configuration import android.content.res.Resources import android.os.Build import android.os.LocaleList import com.novel.read.constant.PreferKey import com.novel.read.utils.ext.getPrefString import java.util.* object LanguageUtils...
8
Kotlin
68
268
afd769d194011fdbadab8eefeb20f2cb5e1581dd
3,277
reader
Apache License 2.0
sdk/src/main/java/com/talent428/yougame/sdk/ApiService.kt
428talent
167,779,777
false
{"Gradle": 5, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "Java": 3, "Proguard": 1, "XML": 144, "Kotlin": 120}
package com.talent428.yougame.sdk import com.google.gson.GsonBuilder import okhttp3.OkHttpClient import retrofit2.Retrofit import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory import retrofit2.converter.gson.GsonConverterFactory import java.util.concurrent.TimeUnit class ApiService { companion object { ...
0
Kotlin
0
0
7220b15262652bd59f8c8b035c88bdb02f78f6e6
1,321
YouGame-Android
MIT License
data/local/src/main/java/com/escodro/local/provider/DatabaseProvider.kt
igorescodro
116,942,964
false
null
package com.escodro.local.provider import android.content.Context import androidx.room.Room import androidx.room.RoomDatabase import androidx.sqlite.db.SupportSQLiteDatabase import com.escodro.core.extension.getStringColor import com.escodro.local.R import com.escodro.local.TaskDatabase import com.escodro.local.migrat...
8
null
83
999
e64a652c6b62dd5ca80c2c128186ef4b8bf6cf63
2,236
alkaa
Apache License 2.0
ai/openai/plugin/src/examples/kotlin/addressbook/shared/GetMyAddress.kt
http4k
295,641,058
false
null
package addressbook.shared import org.http4k.contract.meta import org.http4k.core.Body import org.http4k.core.ContentType.Companion.TEXT_PLAIN import org.http4k.core.Method.GET import org.http4k.core.Request import org.http4k.core.Response import org.http4k.core.Status.Companion.NOT_FOUND import org.http4k.core.Status...
7
null
2
37
94e71e6bba87d9c79ac29f7ba23bdacd0fdf354c
982
http4k-connect
Apache License 2.0
src/test/kotlin/br/com/webbudget/utilities/fixture/RegistrationFixtures.kt
web-budget
354,665,828
false
null
package br.com.webbudget.utilities.fixture import br.com.webbudget.domain.entities.registration.CostCenter import br.com.webbudget.domain.entities.registration.MovementClass import br.com.webbudget.domain.entities.registration.Wallet import java.math.BigDecimal import java.util.UUID fun createWallet( id: Long? = ...
3
null
5
6
2e8eed9a5fb6f5d293bd67d81ab6319322fa0177
1,615
back-end
Apache License 2.0
src/main/kotlin/org/kotgll/rsm/grammar/RSMNonterminalEdge.kt
vadyushkins
617,518,633
false
null
package org.kotgll.rsm.grammar import org.kotgll.rsm.grammar.symbol.Nonterminal import java.util.* class RSMNonterminalEdge(val nonterminal: Nonterminal, val head: RSMState) : RSMEdge { override fun toString() = "RSMNonterminalEdge(nonterminal=$nonterminal, head=$head)" override fun equals(other: Any?): Boolean ...
0
null
1
4
bc4db20f5337e96032ec484e9fb47974f1bc41d0
615
kotgll
MIT License
src/test/kotlin/dev/pankowski/garcon/domain/PageSynchronizerTest.kt
apankowski
360,267,645
false
{"Kotlin": 198480, "Dockerfile": 1514}
package dev.pankowski.garcon.domain import io.kotest.core.spec.style.FreeSpec import io.mockk.every import io.mockk.mockk import io.mockk.verify class PageSynchronizerTest : FreeSpec({ "fetches, classifies and synchronizes posts" { // given val pageConfig = somePageConfig() val post = somePost() v...
4
Kotlin
0
3
8b007b958c7d1aa26d9441880c8c36d3e6cfc2a5
1,045
garcon
Apache License 2.0
core/src/main/java/com/marknjunge/core/model/LnmoRequest.kt
letya999
210,450,705
true
{"Kotlin": 167548}
package com.marknjunge.core.model import com.google.gson.annotations.SerializedName data class LnmoRequest( @SerializedName("amount") val amount: String, @SerializedName("phone") val phone: String, @SerializedName("customerId") val customerId: String, @Serialize...
0
Kotlin
0
0
5539f6a0de94745db190e212d6b8a31a19c6de7b
432
JustJava-Android
Apache License 2.0
spesialist-selve/src/main/kotlin/no/nav/helse/db/OppgaveRepository.kt
navikt
244,907,980
false
{"Kotlin": 2915264, "PLpgSQL": 29687, "HTML": 1741, "Dockerfile": 258}
package no.nav.helse.db import no.nav.helse.modell.gosysoppgaver.OppgaveDataForAutomatisering import no.nav.helse.modell.oppgave.Egenskap import java.util.UUID interface OppgaveRepository { fun finnOppgaveIdUansettStatus(fødselsnummer: String): Long fun finnUtbetalingId(oppgaveId: Long): UUID? fun finnO...
0
Kotlin
4
0
704c96dd56e535d3ab972fb7f968c56ef0e69b9b
2,371
helse-spesialist
MIT License
Robot/src/main/kotlin/ca/warp7/frc2019/actions/drive/unused/DriveStraightPID.kt
Team865
164,211,301
false
null
package ca.warp7.frc2019.actions.drive.unused import ca.warp7.frc.action.Action import ca.warp7.frc.control.PID import ca.warp7.frc.control.PIDControl import ca.warp7.frc.geometry.Pose2D import ca.warp7.frc2019.constants.DriveConstants import ca.warp7.frc2019.io.BaseIO import ca.warp7.frc2019.io.ioInstance import ca.w...
1
Kotlin
1
3
2e54e671b0622ed082677cf048d58e8deec3ec56
1,292
FRC-2019
MIT License
app-wasm/src/wasmJsMain/kotlin/Main.kt
mikepenz
19,025,014
false
{"Kotlin": 529145, "JavaScript": 12378, "CSS": 10378, "HTML": 8580, "Ruby": 2019, "Python": 1500, "Shell": 254}
import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.material.Scaffold import androidx.compose.material.Text import androidx.compose.material.TopAppBar import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.produceState import androidx.compose.runtime.remember import and...
6
Kotlin
419
3,604
e8a4fe3aa5b963205c986d1e0f768ca96ede3c86
3,116
AboutLibraries
Apache License 2.0
app/src/main/java/org/ohosdev/hapviewerandroid/view/NestedScrollView.kt
westinyang
654,763,769
false
{"Kotlin": 109657, "Java": 20212, "AIDL": 435, "HTML": 160}
package org.ohosdev.hapviewerandroid.view import android.content.Context import android.graphics.Rect import android.util.AttributeSet import androidx.core.widget.NestedScrollView as AndroiXNestedScrollView class NestedScrollView : AndroiXNestedScrollView { constructor(context: Context) : super(context) const...
0
Kotlin
0
6
f63105a22a1289162a1dd55a1e39af839f2936da
854
hap-viewer-android
Apache License 2.0
src/main/kotlin/org/openbroker/common/loancosts/LoanType.kt
open-broker
141,698,724
false
null
package org.openbroker.common.loancosts import java.math.BigDecimal interface LoanType { /** * Compute APR (annual percentage rate), sometimes referred to as * "effective interest rate" * @param loanAmount the amount loaned * @param nominalAnnualInterestRate the nominal interest rate on annual...
2
Kotlin
5
2
e5c4fe95b242bb288ddba3f1f4b6086c9bad61da
1,800
open-broker-jvm
MIT License
app/src/main/java/br/espartano/sampleaccessibilitylistselectable/MainActivity.kt
oliveiradev27
363,945,798
false
null
package br.espartano.sampleaccessibilitylistselectable import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import androidx.lifecycle.ViewModelProvider import androidx.recyclerview.widget.LinearLayoutManager import br.espartano.sampleaccessibilitylistselectable.databinding.ActivityMainBinding clas...
0
Kotlin
0
0
934bf57ae5b1719062a31a48e96a54b35cc5b529
1,256
Sample-Accessibility-Selectable-Single-Item-List
MIT License
feature/teacherschedule/src/main/java/com/wei/amazingtalker_recruit/feature/teacherschedule/schedule/ScheduleViewState.kt
azrael8576
584,299,514
false
null
package com.wei.amazingtalker_recruit.feature.teacherschedule.state import com.wei.amazingtalker_recruit.core.authentication.TokenManager import com.wei.amazingtalker_recruit.core.model.data.IntervalScheduleTimeSlot import com.wei.amazingtalker_recruit.core.base.Action import com.wei.amazingtalker_recruit.core.base.St...
1
null
0
6
bb7b3a8fd29fc2f595bb9520242a6f8c9bc55fe3
2,524
amazingtalker-recruit
Apache License 2.0
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KDocReferenceResolver.kt
JetBrains
3,432,266
false
null
/* * Copyright 2010-2022 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.analysis.api.fir.references import com.intellij.psi.util.PsiTreeUtil import org....
182
null
5617
47,637
d257153a50bdaa761d54bbc9fd1c5d78a3769f0f
22,194
kotlin
Apache License 2.0
src/main/kotlin/todo/TodoDomain.kt
ZengLawrence
640,224,866
false
null
package todo data class Todo( val id: Int, val description: String, val done: Boolean = false) private fun PTodo.toDomain() = Todo(this.id, this.description, this.done) class TodoDomain(private val persistence: TodoPersistence) { fun add(description: String): Int { return per...
0
Kotlin
0
0
46b2d236f79fee13132674e7089df295c724d3fe
698
kotlin-todo
MIT License
compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.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...
/* * 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 file. */ import kotlin.test.* fun box(): String { var x = 1 fun local1() { x++ } class A { fun bar() { local1() } } ...
181
Kotlin
5771
49,172
33eb9cef3d146062c103f9853d772f0a1da0450e
348
kotlin
Apache License 2.0
krate-moshi-core/src/main/kotlin/hu/autsoft/krate/moshi/optional/MoshiDelegate.kt
AutSoft
143,710,217
false
null
package hu.autsoft.krate.moshi.optional import com.squareup.moshi.JsonAdapter import hu.autsoft.krate.Krate import hu.autsoft.krate.moshi.realMoshiInstance import hu.autsoft.krate.moshi.util.edit import java.lang.reflect.Type import kotlin.properties.PropertyDelegateProvider import kotlin.properties.ReadWriteProperty ...
3
Kotlin
10
257
f36966d653e771dce32e2587f84b757dfe74f716
1,544
Krate
Apache License 2.0
src/main/kotlin/no/nav/familie/ba/sak/config/SchedulingConfig.kt
navikt
224,639,942
false
{"Kotlin": 6514101, "Gherkin": 993119, "PLpgSQL": 4478, "Shell": 3178, "Dockerfile": 522}
package no.nav.familie.ba.sak.config import org.springframework.context.annotation.Configuration import org.springframework.context.annotation.Profile import org.springframework.scheduling.annotation.EnableScheduling @Profile("prod", "preprod", "task-scheduling") @Configuration @EnableScheduling class SchedulingConfi...
13
Kotlin
1
9
ce534f2feb45a66b0b01ddda7edbd6646bae306b
322
familie-ba-sak
MIT License
app/src/main/java/com/example/androiddaggersample/AndroidDaggerSample.kt
Rapbong
193,915,494
false
null
package com.example.androiddaggersample import android.util.Log import com.example.androiddaggersample.di.DaggerAppComponent import dagger.android.AndroidInjector import dagger.android.DaggerApplication val TAG = "AndroidDaggerSample" class AndroidDaggerSample : DaggerApplication() { override fun applicationInj...
0
Kotlin
0
0
50bc8f28108982de68afb4ae1afba81cbe02e5a1
539
AndroidDaggerSample
Apache License 2.0
src/main/java/me/otie173/ahgui/listeners/InventoryClickListener.kt
otie173
716,197,506
false
{"Kotlin": 6885}
package me.otie173.ahgui.listeners import me.otie173.ahgui.AhGUI import me.otie173.ahgui.commands.globalPlayer import net.kyori.adventure.text.Component import org.bukkit.Material import org.bukkit.event.EventHandler import org.bukkit.event.Listener import org.bukkit.event.inventory.InventoryClickEvent class Inventor...
0
Kotlin
0
0
1d7c1bbec73097aac1b383c2e9a0a3b9c5398cfe
971
otieAH
MIT License
src/test/kotlin/days/Day5Test.kt
mir47
318,882,845
false
null
package days import org.hamcrest.MatcherAssert.assertThat import org.hamcrest.core.Is.`is` import org.junit.Test class Day5Test { private val dayFive = Day5() @Test fun testPartOne() { assertThat(dayFive.partOne(), `is`(820)) } @Test fun testPartTwo() { assertThat(dayFive.pa...
0
Kotlin
0
0
4c15e214f7164523f04d4b741102a279c38e2072
347
advent-of-code-2020
Creative Commons Zero v1.0 Universal
wave-core/src/main/kotlin/com/github/dhsavell/wave/core/data/IDLinkedProperties.kt
dhsavell
116,500,218
false
null
package com.github.dhsavell.wave.core.data import org.mapdb.DB import org.mapdb.Serializer import sx.blah.discord.handle.obj.IIDLinkedObject /** * A DomainBoundPropertyWrapper for storing an IDLinkedObject (i.e. Discord4J objects such as IUser, IChannel...) within an IGuild. * * @see DiscordObjectListProperty * @...
1
Kotlin
1
1
718b8faadf44c18f8485b6d7d8cc4d0d1196e06b
2,586
wave
MIT License
wave-core/src/main/kotlin/com/github/dhsavell/wave/core/data/IDLinkedProperties.kt
dhsavell
116,500,218
false
null
package com.github.dhsavell.wave.core.data import org.mapdb.DB import org.mapdb.Serializer import sx.blah.discord.handle.obj.IIDLinkedObject /** * A DomainBoundPropertyWrapper for storing an IDLinkedObject (i.e. Discord4J objects such as IUser, IChannel...) within an IGuild. * * @see DiscordObjectListProperty * @...
1
Kotlin
1
1
718b8faadf44c18f8485b6d7d8cc4d0d1196e06b
2,586
wave
MIT License
feature/album/info/src/main/java/ru/stresh/youamp/feature/album/ui/AlbumInfoScreen.kt
siper
783,330,609
false
{"Kotlin": 298994, "Ruby": 1617}
package ru.stresh.youamp.feature.album.ui import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.aspectRatio import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foun...
13
Kotlin
0
3
ca7bee64e1d5dade8407f3f11eb01fd778175ba9
6,966
YouAMP
MIT License
net.akehurst.kaf/service/logging-log4j2/src/jvm8Main/kotlin/logging.log4j2.kt
dhakehurst
166,023,488
false
null
/** * Copyright (C) 2019 Dr. <NAME> (http://dr.david.h.akehurst.net) * * 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...
0
Kotlin
0
0
f74c333396998ad2ead9e5cdd964f88ac4af44d4
2,559
net.akehurst.kaf
Apache License 2.0
src/main/java/example/mocks/apiv2/MockProxyExample.kt
Kurinnyi
154,029,997
false
null
package example.mocks.apiv2 import example.removeit.Dto import example.removeit.apiv2.ProxyOtherRestResourceInterface import example.removeit.apiv2.ProxyRestResourceInterface import ua.kurinnyi.jaxrs.auto.mock.apiv2.Mock class MockProxyExample : Mock<ProxyRestResourceInterface>({ mock -> //First parameter is not...
1
null
1
1
1a32376fc4e6747c9805686a0f96a924e5bebb12
1,688
Jax-Rs-Auto-Mock-Example
The Unlicense
app/src/main/java/com/app/missednotificationsreminder/payment/billing/domain/entities/BillingErrorCodes.kt
httpdispatch
45,973,237
false
{"Gradle Kotlin DSL": 4, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "XML": 84, "Java": 45, "Kotlin": 168}
package com.app.missednotificationsreminder.payment.billing.domain.entities object BillingErrorCodes { const val BILLING_UNAVAILABLE = 3 const val SERVICE_UNAVAILABLE = 2 const val ITEM_ALREADY_OWNED = 7 const val USER_CANCELED = 1 /** * The purchase payment is pending */ const val P...
46
Kotlin
22
73
8f8c012f6ebc63c8a6262ac0e7afbbd89f798355
343
MissedNotificationsReminder
Apache License 2.0
j2k/tests/testData/ast/literalExpression/dollarInsideString.kt
staltz
93,485,627
false
null
package demo class Test { fun test() { var name = "$$$$" name = name.replaceAll("\\$[0-9]+", "\\$") val c = '$' println(c) val C = '$' println(C) } }
0
null
0
1
88a261234860ff0014e3c2dd8e64072c685d442d
208
kotlin
Apache License 2.0
common-util/src/main/kotlin/taboolib/common/io/FileDeleteAsync.kt
TabooLib
120,413,612
false
null
@file:Isolated package taboolib.common.io import taboolib.common.Isolated import java.io.File import java.util.concurrent.Executors import java.util.concurrent.Future private val executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors())!! /** * Delete the directory and all its contents as...
9
null
90
307
41a840c2623b616607852c9e1343c662a4143216
1,747
taboolib
MIT License
src/me/anno/gpu/deferred/BufferQuality.kt
AntonioNoack
266,471,164
false
null
package me.anno.gpu.deferred enum class BufferQuality { LOW_8, MEDIUM_12, HIGH_16, HIGH_32; fun max(other: BufferQuality): BufferQuality { return if(other.ordinal > ordinal) other else this } }
0
Kotlin
1
8
421ba71c93c2b660476f96ffb6f4332fa07bd2b3
228
RemsStudio
Apache License 2.0
kotest-assertions/kotest-assertions-core/src/commonMain/kotlin/io/kotest/matchers/string/start.kt
busches
421,923,261
true
{"Kotlin": 3300619, "CSS": 352, "Java": 145}
package io.kotest.matchers.string import io.kotest.assertions.show.show import io.kotest.matchers.Matcher import io.kotest.matchers.MatcherResult import io.kotest.matchers.neverNullMatcher import io.kotest.matchers.should import io.kotest.matchers.shouldNot import kotlin.math.min infix fun <A : CharSequence?> A.shoul...
0
Kotlin
0
0
76cb2ccb5fb9f89e4ef5e5ff8d283419e8ea5736
1,096
kotest
Apache License 2.0
waltid-libraries/waltid-java-compat/src/main/kotlin/JavaResult.kt
walt-id
701,058,624
false
{"Kotlin": 3448224, "Vue": 474904, "TypeScript": 129086, "Swift": 40383, "JavaScript": 18819, "Ruby": 15159, "Dockerfile": 13118, "Python": 3114, "Shell": 1783, "Objective-C": 388, "CSS": 345, "C": 104}
/** * Wrapper that can hold a kotlin.Result, which makes it available to use from Java. * * A discriminated union that encapsulates a successful outcome with a value of type [T] * or a failure with an arbitrary [Throwable] exception. */ @Suppress("unused", "MemberVisibilityCanBePrivate") class JavaResult<T>(val re...
20
Kotlin
46
121
48c6b8cfef532e7e837db0bdb39ba64def985568
1,574
waltid-identity
Apache License 2.0
core/downloader/src/main/java/tm/alashow/datmusic/downloader/DownloaderModule.kt
vipulyaara
612,950,214
false
{"Kotlin": 635130, "JavaScript": 440999, "HTML": 11959, "CSS": 7888, "Shell": 2974}
/* * Copyright (C) 2021, <NAME> * All rights reserved. */ package tm.alashow.datmusic.downloader import android.content.Context import com.kafka.remote.config.RemoteConfig import com.kafka.remote.config.downloaderType import com.tonyodev.fetch2.Fetch import com.tonyodev.fetch2.FetchConfiguration import com.tonyodev...
5
Kotlin
5
86
fa64a43602eecac8b93ae9e8b713f6d29ba90727
2,117
Kafka
Apache License 2.0
core/src/main/java/com/featureflags/core/usecases/ChangeVariableUseCase.kt
bagadesh
661,526,573
false
null
package com.featureflags.core.usecases import com.featureflags.core.entity.Source import com.featureflags.core.entity.VariableSaveState import com.featureflags.core.repository.FeatureRepository import com.featureflags.core.request.ChangeVariableRequest /** * Created by bagadesh on 27/06/23. */ class ChangeVariableU...
0
Kotlin
0
0
c923ce5c2141089934f16f53664a047764a37f12
614
featureFlags
Apache License 2.0
libnavigation-base/src/main/java/com/mapbox/navigation/base/trip/model/alert/RestrictedAreaAlert.kt
zainriaz
341,444,057
true
{"Kotlin": 2515109, "Java": 89431, "Python": 11057, "Makefile": 5883, "JavaScript": 2362, "Shell": 1686}
package com.mapbox.navigation.base.trip.model.alert import com.mapbox.geojson.Point /** * Route alert type that provides information about restricted areas on the route. * * @see RouteAlert * @see RouteAlertType.RestrictedArea */ class RestrictedAreaAlert private constructor( coordinate: Point, distance:...
0
null
0
0
176366354fceac6bf7171371bd946b95f33a91c0
1,523
mapbox-navigation-android
MIT License
src/main/java/io/prometheus/agent/AgentMetrics.kt
junneyang
191,163,429
true
{"Kotlin": 195765, "Java": 19410, "Makefile": 1272, "Shell": 518}
/* * Copyright © 2019 <NAME> (<EMAIL>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
0
Kotlin
0
0
514b37202ddb947d5f48f425e7e94f7d1211505a
1,951
prometheus-proxy
Apache License 2.0
app/src/main/java/io/github/takusan23/chocodroid/tool/ClipboardTool.kt
takusan23
415,609,153
false
null
package io.github.takusan23.chocodroid.tool import android.content.ClipboardManager import android.content.Context /** クリップボードアクセス */ object ClipboardTool { /** * クリップボードからテキストを取得する * * @param context Context * @return コピーした内容 * */ fun getClipboardText(context: Context): String? { ...
0
Kotlin
0
1
c96390c806fc7249c4090e784efedb5ba62beebf
505
ChocoDroid
Apache License 2.0
app/src/main/java/dev/mokhtar0/upgur/data/db/AppDatabase.kt
mokhtarmoustafa
315,680,672
false
null
package dev.mokhtar0.upgur.data.db import androidx.room.Database import androidx.room.RoomDatabase import dev.mokhtar0.upgur.data.model.Album import dev.mokhtar0.upgur.data.model.AlbumImage @Database( entities = [Album::class, AlbumImage::class], version = 1, exportSchema = false ) abstract class AppDatabase ...
0
Kotlin
0
0
dce153815f9f038d1a3065c75aff4f07efb72d69
416
imageUpgur_master
The Unlicense
app/src/main/java/com/jerryokafor/tictactoe/TicTacToeScreen.kt
jerryOkafor
296,956,748
false
null
package com.jerryokafor.tictactoe import androidx.compose.foundation.BorderStroke import androidx.compose.foundation.Box import androidx.compose.foundation.Text import androidx.compose.foundation.layout.* import androidx.compose.material.* import androidx.compose.runtime.Composable import androidx.compose.runtime.muta...
1
Kotlin
4
8
b06886bb063ed2f04b56a8c8890645af49d23922
3,229
TicTacToe
MIT License
Zhidian/app/src/main/java/com/zhidian/application/logic/utils/Tools.kt
EricMoin
638,540,521
false
null
package com.zhidian.application.logic.utils object Tools { }
0
Kotlin
0
0
70912bec721dd55a3661211f76fd160f62036d7a
61
ZhiDianREP
Apache License 2.0
wework/src/main/java/com/wework/xposed/wework/util/ConversationUtil.kt
gtsigner
162,666,532
false
{"Kotlin": 121770, "Java": 8812}
package com.wework.xposed.wework.util import com.wework.xposed.common.bean.ContactGroup import com.wework.xposed.common.bean.GroupMember import com.wework.xposed.common.bean.Member import com.wework.xposed.core.Logger import com.wework.xposed.wework.hooker.MessageHooker import com.wework.xposed.wework.wxapi.MemberApi ...
2
Kotlin
47
65
d9aee1fe3c07443a18eb2fbbf47668effca17269
6,150
wework-hook-example
MIT License
server-core/src/main/kotlin/com/lightningkite/lightningserver/db/ModelInfo.kt
lightningkite
512,032,499
false
null
package com.lightningkite.lightningserver.db import com.lightningkite.lightningdb.FieldCollection import com.lightningkite.lightningdb.HasId import com.lightningkite.lightningserver.auth.AuthInfo import com.lightningkite.lightningserver.serialization.Serialization import kotlinx.serialization.KSerializer import kotlin...
1
Kotlin
0
3
fda1e66d82e8b1b4c7fb26826fb34dd9f6efa629
1,694
lightning-server
MIT License
src/main/java/me/shadowalzazel/mcodyssey/items/Runesherds.kt
ShadowAlzazel
511,383,377
false
{"Kotlin": 941899}
package me.shadowalzazel.mcodyssey.items import me.shadowalzazel.mcodyssey.constants.ItemModels import me.shadowalzazel.mcodyssey.rune_writing.RunewriterManager import me.shadowalzazel.mcodyssey.rune_writing.base.OdysseyRunesherd import net.kyori.adventure.text.Component import net.kyori.adventure.text.format.TextColo...
0
Kotlin
0
3
52d0a4b5c51e393b81462e58a13b144235775a14
1,180
MinecraftOdyssey
MIT License