path
stringlengths
4
280
owner
stringlengths
2
39
repo_id
int64
21.1k
879M
is_fork
bool
2 classes
languages_distribution
stringlengths
13
1.95k
content
stringlengths
7
482k
issues
int64
0
13.9k
main_language
stringclasses
121 values
forks
stringlengths
1
5
stars
int64
0
111k
commit_sha
stringlengths
40
40
size
int64
7
482k
name
stringlengths
1
100
license
stringclasses
93 values
src/test/kotlin/co/csadev/advent2022/Day01Test.kt
gtcompscientist
577,439,489
false
{"Kotlin": 252918}
/* * Copyright (c) 2022 by <NAME> */ package co.csadev.advent2022 import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test class Day01Test { private val input = """ 1000 2000 3000 4000 5000 6000 7000 8000 ...
0
Kotlin
0
1
43cbaac4e8b0a53e8aaae0f67dfc4395080e1383
863
advent-of-kotlin
Apache License 2.0
app/src/main/java/com/nab/weatherforecast/data/DailyForecastMapper.kt
phuongnguyen2302
517,059,024
false
null
package com.nab.weatherforecast.data import com.nab.weatherforecast.domain.DailyForecast import java.text.SimpleDateFormat import java.util.* object DailyForecastMapper { fun map(dailyForecastDto: DailyForecastDto): DailyForecast { val formatDate = SimpleDateFormat("EEE, dd MMM yyyy", Locale.ENGLISH) ...
0
Kotlin
0
0
76179d8c809481a633e4dab8084365d51e4d2cd4
696
weather_forecast
Apache License 2.0
composeApp/src/commonMain/kotlin/org/example/rammultiplatform/components/commons/SimpleToolBar.kt
vimi30
863,714,235
false
{"Kotlin": 112838, "Swift": 667}
package org.example.rammultiplatform.components.commons import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.founda...
0
Kotlin
0
0
fee830a016b3a559f4dce2d8832cbe0f4ceb7b8c
3,206
RickAndMorty
MIT License
app/src/main/java/com/tanjiajun/androidgenericframework/utils/FragmentExt.kt
TanJiaJunBeyond
198,204,295
false
{"Kotlin": 119462}
package com.tanjiajun.androidgenericframework.utils import androidx.fragment.app.Fragment import com.tanjiajun.androidgenericframework.ui.BaseActivity /** * Created by TanJiaJun on 2019-08-07. */ inline fun <reified T : BaseActivity<*, *>> Fragment.startActivity() = startActivity(android.content.Intent(cont...
6
Kotlin
34
198
30c94d382e570076111417d24c154c9a53034eaa
340
AndroidGenericFramework
Apache License 2.0
plugin/src/org/jetbrains/kannotator/plugin/ideaUtils/application.kt
JetBrains
5,904,223
false
null
package org.jetbrains.kannotator.plugin.ideaUtils import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.util.Computable import com.intellij.util.ActionRunner import com.intellij.util.ActionRunner.InterruptibleRunnableWithResult import com.intellij.util.ActionRunner.InterruptibleRunnabl...
1
null
15
34
ef10885ba0a7c84a04dc33aa24dc2eb50abd622f
1,620
kannotator
Apache License 2.0
app/src/main/java/com/example/newbiechen/ireader/model/bean/BookCommentBean.kt
EiChinn
157,148,636
false
{"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "XML": 132, "Proguard": 1, "Java": 3, "Kotlin": 283}
package com.example.newbiechen.ireader.model.bean /** * Created by newbiechen on 17-4-20. */ class BookCommentBean { /** * _id : 58f805798c8c193a414c6853 * title : 女朋友生气的奇葩理由我知道这里是女生区可我觉得好玩还是很想转 * author : {"_id":"553136ba70feaa764a096f6f","avatar":"/avatar/26/eb/26ebf8ede76d7f52cd377960bd66383b"...
1
null
1
1
ab465c2cfc5af98c8da0927a81e4f6f27930fd32
1,048
NovelReader
MIT License
chat_ui/src/main/kotlin/io.skygear.plugins.chat.ui/model/ImageMessage.kt
david90
148,086,046
false
null
package com.camerash.skygear.chat.ui.model import android.net.Uri import com.camerash.skygear.chatkit.commons.models.MessageContentType import org.json.JSONObject import io.skygear.plugins.chat.Message as ChatMessage /** * Created by carmenlau on 10/15/17. */ class ImageMessage : Message, MessageContentTyp...
1
null
1
1
9b08cf07a3bd2f273053ab200ada014cfc661cd2
1,649
skygear-chat-ui
Apache License 2.0
gravifon/src/main/kotlin/org/gravidence/gravifon/plugin/scrobble/lastfm/LastfmScrobblerStorage.kt
gravidence
448,136,601
false
null
package org.gravidence.gravifon.plugin.scrobble.lastfm import kotlinx.serialization.decodeFromString import kotlinx.serialization.encodeToString import mu.KotlinLogging import org.gravidence.gravifon.configuration.FileStorage import org.gravidence.gravifon.event.EventBus import org.gravidence.gravifon.orchestration.ma...
0
Kotlin
0
0
916f884e3c67172fb5e11caaf7b0c7ac0cf6f33b
3,462
gravifon
MIT License
solana/src/main/java/com/solana/actions/getTokenWallets.kt
ajamaica
378,984,962
false
null
package com.solana.actions import com.solana.api.getProgramAccounts import com.solana.core.PublicKey import com.solana.models.* import com.solana.models.buffer.AccountInfo import com.solana.programs.TokenProgram import com.solana.vendor.ContResult import com.solana.vendor.Result fun Action.getTokenWallets( accou...
12
Kotlin
14
38
248fb4f31d4595a499b877d8e9f797efef373943
1,383
Solana.kt
MIT License
spesialist-selve/src/test/kotlin/no/nav/helse/mediator/api/ApiErrorhandlingTest.kt
navikt
244,907,980
false
null
package no.nav.helse.mediator.api import io.ktor.application.* import io.ktor.features.* import io.ktor.http.* import io.ktor.jackson.* import io.ktor.routing.* import io.ktor.server.testing.* import no.nav.helse.installErrorHandling import no.nav.helse.objectMapper import org.junit.jupiter.api.Test import kotlin.test...
2
Kotlin
0
0
e221266ef6c7edfd3335717925094aea11385c60
1,049
helse-spesialist
MIT License
app/src/main/java/com/concept/stickyheader/utils/JsonUtils.kt
bigyanthapa
291,341,412
false
null
package com.concept.stickyheader.utils import android.content.Context import com.concept.stickyheader.data.Book import com.google.gson.GsonBuilder import com.google.gson.reflect.TypeToken import java.io.IOException object JsonUtils { private const val SOURCE_FILE_NAME = "sample_data.json" fun getItems(conte...
1
Kotlin
18
35
c475f0a2c7883e816f4595f1bdf9fe9ea5f24f16
761
Sample-Sticky-Header
Apache License 2.0
plugin/src/org/jetbrains/cabal/psi/PropertyValue.kt
ysnrkdm
28,970,223
true
{"Ant Build System": 2, "XML": 26, "Text": 53, "Ignore List": 1, "Markdown": 1, "Java": 54, "Kotlin": 321, "JFlex": 3, "Haskell": 29, "Cabal Config": 24, "Java Properties": 1}
package org.jetbrains.cabal.psi import com.intellij.extapi.psi.ASTWrapperPsiElement public trait PropertyValue: ASTWrapperPsiElement { public override fun getText(): String = getNode().getText()!! }
0
Kotlin
0
0
74b1055a5207d5910a05e68073fd4384eb4b44a3
206
haskell-idea-plugin
Apache License 2.0
bro/src/main/java/me/xx2bab/bro/core/base/IBroInterceptor.kt
2BAB
125,506,500
false
null
package me.xx2bab.bro.core.base import android.content.Context import android.content.Intent import me.xx2bab.bro.common.BroProperties import me.xx2bab.bro.common.IBroApi import me.xx2bab.bro.common.IBroModule interface IBroInterceptor { fun beforeFindActivity(context: Context, target: ...
9
Kotlin
0
9
4df07b25d728959d3ec5e65a4f9d5e78f0c5e271
994
Bro
Apache License 2.0
tools/sql_extraction/src/main/kotlin/output/Output.kt
GoogleCloudPlatform
201,975,309
false
null
package com.google.cloud.sqlecosystem.sqlextraction.output data class Output(val queries: List<Query>)
41
null
3
995
4bdddd7710212d3c1829c4583cec81ec3376b60e
103
bigquery-utils
Apache License 2.0
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/activities/editor/basicsettings/BasicRequestSettingsViewModel.kt
Waboodoo
34,525,124
false
null
package ch.rmy.android.http_shortcuts.activities.editor.basicsettings import android.app.Application import androidx.lifecycle.viewModelScope import ch.rmy.android.framework.viewmodel.BaseViewModel import ch.rmy.android.http_shortcuts.activities.editor.basicsettings.usecases.GetAvailableBrowserPackageNamesUseCase impo...
18
Kotlin
100
749
72abafd7e3bbe68647a109cb4d5a1d3b97a73d31
3,409
HTTP-Shortcuts
MIT License
app/src/main/java/br/com/alura/technews/repository/Resource.kt
Josue10599
204,558,088
false
null
package br.com.alura.technews.repository class Resource<T>( val dado: T?, val erro: String? = null ) fun <T> criaResourceDeFalha( resourceAtual: Resource<T?>?, erro: String? ): Resource<T> = if (resourceAtual != null) Resource(resourceAtual.dado, erro) else Resource(null, erro)
0
Kotlin
0
0
ae540ea41000ba26179ff0dcda79e8405d8ecaf3
296
TechNews-Kotlin
Apache License 2.0
app/src/main/java/com/anishuu/Apollo.kt
GeraldRosati
261,018,931
false
null
package com.anishuu import com.apollographql.apollo.ApolloClient val apolloClient: ApolloClient = ApolloClient.builder() .serverUrl("https://graphql.anilist.co/") .build()
0
Kotlin
0
0
b93ea638ac72897344efd4fa115bc924c854dd92
181
AniShuu
MIT License
PropertyManager.kt
ncschroeder
281,853,024
false
{"Kotlin": 111413}
/** * Used for querying and updating properties, though this object isn't the only thing that does those actions. */ object PropertyManager { init { /* The Board is an object declaration (singleton), just like the PropertyManager. Access a property on the Board here so that when we create ...
0
Kotlin
0
0
8ea0f882cc9db9c06e3aea972e531f4c375970a1
2,349
Singletonopoly
MIT License
transaction/src/main/kotlin/com/micro/transaction/utils/GeneralUtils.kt
fatemehSalem
667,229,490
false
null
package com.micro.account.utils import com.micro.account.entity.Results import com.micro.account.entity.model.Payload import com.micro.account.entity.response.GeneralResponse import com.micro.account.entity.response.TransactionResponse import org.json.JSONObject import org.springframework.http.HttpEntity import org.sp...
0
Kotlin
0
1
0e520444f0c949492744406b82a4b064c2c02ba6
3,328
Microservice
MIT License
app/src/main/java/co/specialforce/data/response/getExercise/GetExerciseResponse.kt
osamhack2020
303,081,543
false
null
package co.specialforce.data.response.getExercise data class GetExerciseResponse (val success: Boolean, val result: List<Exercise>)
0
Kotlin
0
4
683b8da58882a78fa583bdda276b906f9e4612c4
132
App_SpecialForces_SpecialWarrior
Apache License 2.0
sample/shared/src/commonMain/kotlin/com/r0adkll/kimchi/restaurant/theme/Color.kt
r0adkll
842,714,606
false
{"Kotlin": 143107, "Shell": 3091}
// Copyright (C) 2024 r0adkll // SPDX-License-Identifier: Apache-2.0 package com.r0adkll.kimchi.restaurant.theme import androidx.compose.ui.graphics.Color val primaryLight = Color(0xFF904B3F) val onPrimaryLight = Color(0xFFFFFFFF) val primaryContainerLight = Color(0xFFFFDAD4) val onPrimaryContainerLight = Color(0xFF3...
2
Kotlin
1
8
4c1b05096184ca4db4dac41104940ef2a70fc67a
10,967
kimchi
Apache License 2.0
Quiz/src/main/kotlin/furhatos/app/quiz/flow/parent.kt
FurhatRobotics
89,605,100
false
{"Text": 2, "Ignore List": 6, "Markdown": 10, "Gradle": 10, "Shell": 10, "Batchfile": 10, "Java Properties": 12, "INI": 8, "Kotlin": 168, "HTML": 5, "CSS": 10, "Java": 3, "JSON": 2, "JavaScript": 2}
package furhatos.app.quiz.flow import furhatos.app.quiz.RequestRules import furhatos.app.quiz.flow.main.Idle import furhatos.app.quiz.flow.main.NewQuestion import furhatos.app.quiz.flow.main.maxRounds import furhatos.app.quiz.setting.nextPlaying import furhatos.app.quiz.setting.playing import furhatos.app.quiz.setting...
6
Kotlin
30
25
4fb053997e643a4e105d051d7f394b2ad99c5a52
1,259
example-skills
MIT License
src/main/kotlin/com/hallila/trycatch/handler/LoggingHandler.kt
Xantier
66,157,355
false
{"JavaScript": 65953, "Kotlin": 49293, "CSS": 6035, "HTML": 572}
package com.hallila.trycatch.handler import com.hallila.trycatch.WithLogging import ratpack.handling.Context import ratpack.handling.Handler class LoggingHandler : WithLogging(), Handler { override fun handle(context: Context) { LOG.info("Received: ${context.request.uri}") context.next() } }
0
JavaScript
0
1
9a000dcf8e3e2019b5fe9326b5cecfbfba30f0bd
320
trycatch
MIT License
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/cur/_cur.kt
cloudshiftinc
667,063,030
false
{"Kotlin": 70198112}
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") package cloudshift.awscdk.dsl.services.cur import kotlin.String import kotlin.Unit import software.amazon.awscdk.services.cur.CfnReportDefinit...
3
Kotlin
0
3
256ad92aebe2bcf9a4160089a02c76809dbbedba
3,143
awscdk-dsl-kotlin
Apache License 2.0
src/main/kotlin/roundC2021/rockpaperscissors-prod.kt
kristofersokk
422,727,227
false
null
package roundC2021 fun main() { val days = readLine()!!.toInt() readLine() (1..days).forEach { dayIndex -> val (W, E) = readLine()!!.split(" ").map { it.toInt() } println("Case #$dayIndex: ${getSequence(W, E)}") } } private fun getSequence(W: Int, E: Int) = when (E) { W -> "RSPRSPR...
0
Kotlin
0
0
3ebd59df60ee425b7af86a147f49361dc56ee38d
618
Google-coding-competitions
MIT License
navigation/fragment/src/androidTest/java/androidx/navigation/fragment/ImmediateNavigationTest.kt
zdenda
161,359,597
false
null
/* * Copyright 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
0
null
0
3
ea83372a29278e9cb0acca4c330834ea09f905a3
3,024
aosp_platform_frameworks_support
Apache License 2.0
Scanner/src/main/java/com/vmb/scanner/Scanner.kt
aslamrathore9
535,687,042
false
{"Kotlin": 45344}
package com.vmb.scanner import android.Manifest import android.annotation.SuppressLint import android.app.Activity import android.content.Context import android.content.pm.PackageManager import android.content.res.AssetFileDescriptor import android.graphics.ImageFormat import android.media.MediaPlayer import android.o...
0
Kotlin
0
0
2bb824633b7fed571118aaf0373a1c595a9041bc
23,677
Scan-QR-Code-and-MLKIT-OCR
Apache License 2.0
domain/src/test/kotlin/cat/jorcollmar/domain/usecase/SchedulersFacadeTest.kt
jordicollmarin
301,751,792
false
null
package cat.jorcollmar.domain import cat.jorcollmar.domain.common.SchedulersFacade import io.reactivex.Scheduler import io.reactivex.schedulers.TestScheduler class SchedulersFacadeTest( private val scheduler: TestScheduler ) : SchedulersFacade { override fun getIo(): Scheduler = scheduler override fun g...
0
Kotlin
0
0
f65a05afbac84f71a6b4ca5674cfd283d04add32
367
SpotifyPanel
Apache License 2.0
app/src/main/java/lt/vilnius/tvarkau/navigation/FragmentTransactionExecutor.kt
vilnius
45,076,585
false
null
package lt.vilnius.tvarkau.navigation import android.support.v4.app.DialogFragment import android.support.v4.app.Fragment import android.support.v4.app.FragmentManager import lt.vilnius.tvarkau.R import lt.vilnius.tvarkau.interfaces.OnBackPressed class FragmentTransactionExecutor(private val fragmentManager: Fragment...
7
Kotlin
15
24
3d546e1e70b5b05514f47e7cb6c1c2e03a7da093
2,164
tvarkau-vilniu
MIT License
code/jvm/main/kotlin/com/isel/leic/ps/ionClassCode/utils/cypher/AESDecrypt.kt
i-on-project
607,828,295
false
null
package com.isel.leic.ps.ionClassCode.utils.cypher import java.security.MessageDigest import java.util.Base64 import javax.crypto.Cipher import javax.crypto.spec.IvParameterSpec import javax.crypto.spec.SecretKeySpec /** * Class that decrypts a string using a simple AES algorithm. */ class AESDecrypt { compani...
7
Kotlin
0
2
035adbcd1d8e0c00ae6d20fbfaf930b593616413
1,594
repohouse
Apache License 2.0
app/src/main/java/com/np/retrofit/practices/practical_7/api_provider/APICalls.kt
nirajphutane
795,627,485
false
{"Kotlin": 72999}
package com.np.retrofit.practices.practical_6.api_provider import retrofit2.Response import retrofit2.http.* interface APICalls { // Headers // Static Headers @Headers("Accept: application/json", "Content-Type: application/json") @GET("objects") suspend fun getWithStaticHeaders(): Response<Any> ...
0
Kotlin
0
0
691b996a47b539398ec6909fbc9c7136d477dd0d
776
Android-Retrofit
MIT License
defitrack-rest/defitrack-price/src/main/java/io/defitrack/price/external/DecentrifiUniswapV3PriceService.kt
decentri-fi
426,174,152
false
{"Kotlin": 1239769, "Java": 1948, "Dockerfile": 909}
package io.defitrack.price.external import io.defitrack.erc20.FungibleToken import io.defitrack.price.decentrifi.DecentrifiUniswapV3UnderlyingPriceRepository import org.slf4j.LoggerFactory import org.springframework.stereotype.Component import java.math.BigDecimal @Component class DecentrifiUniswapV3PriceService( ...
59
Kotlin
6
10
e2f58e1509de617974bf1907196f4af480d9fa89
1,116
defi-hub
MIT License
feature/autodiscovery/srvrecords/src/main/kotlin/app/k9mail/autodiscovery/srvrecords/SrvServiceDiscovery.kt
thunderbird
1,326,671
false
null
package com.fsck.k9.autodiscovery.srvrecords import com.fsck.k9.autodiscovery.api.ConnectionSettingsDiscovery import com.fsck.k9.autodiscovery.api.DiscoveredServerSettings import com.fsck.k9.autodiscovery.api.DiscoveryResults import com.fsck.k9.helper.EmailHelper import com.fsck.k9.mail.AuthType import com.fsck.k9.mai...
732
null
2437
8,885
ee9fa841e2e242435bc8e9957aa47deb4c209c3b
1,929
thunderbird-android
Apache License 2.0
src/test/kotlin/com/goldenberg/data/structure/tables/defaultImpl/table/DefaultTableRemoveColumnTest.kt
AlexGoldenbergDev
264,484,811
false
null
package com.goldenberg.data.structure.tables.defaultImpl.table import com.goldenberg.data.structure.tables.TableFactory import com.goldenberg.data.structure.tables.defaultImpl.DefaultColumn import com.goldenberg.data.structure.tables.defaultImpl.DefaultRow import com.goldenberg.data.structure.tables.defaultImpl.Defaul...
0
Kotlin
0
0
c8dd486c79df36d1eb3101a003d4b2947de88f92
2,776
eazy-data-kotlin
Apache License 2.0
src/test/java/examples/java/receiver/kotlinnonnullableparameter/Incorrect1.kt
cs125-illinois
584,154,962
false
{"Kotlin": 264477, "Java": 142525}
package examples.java.receiver.kotlinnonnullableparameter class Incorrect1(val value: String?) { init { @Suppress("UNUSED_VARIABLE") val unused = value!!.length } }
0
Kotlin
0
2
91ddb6431e7af559bab7843e8911fa9ac374ca08
190
jenisol
MIT License
src/jvmMain/kotlin/Main.kt
nursyah21
540,964,938
false
{"Kotlin": 24130, "Shell": 167}
import androidx.compose.ui.res.painterResource import androidx.compose.ui.unit.dp import androidx.compose.ui.window.Window import androidx.compose.ui.window.WindowState import androidx.compose.ui.window.application import com.google.common.base.Charsets import com.google.common.io.Resources import org.apache.logging.lo...
0
Kotlin
0
0
ceb65345b140dfbf3279544ba9503b5349d52bd8
1,007
ytdlDesktop
MIT License
app/src/main/java/app/devuniverse/chuck/MyApplication.kt
ubisofter
692,486,958
false
{"Kotlin": 17317}
package app.devuniverse.chuck import android.app.Application import dagger.hilt.android.HiltAndroidApp @HiltAndroidApp class MyApplication : Application() { val appComponent: AppComponent by lazy { DaggerAppComponent.builder() .appModule(AppModule()) .build() } override f...
0
Kotlin
0
1
a0f4ffd632b35dd251f338a9bb12c4e17b30e647
368
chuckJokes
MIT License
core/src/main/kotlin/com/github/haschi/dominium/haushaltsbuch/core/model/commands/BeginneInventur.kt
haschi
52,821,330
false
null
package com.github.haschi.dominium.haushaltsbuch.core.model.commands import com.github.haschi.dominium.haushaltsbuch.core.model.values.Aggregatkennung import org.axonframework.commandhandling.TargetAggregateIdentifier data class BeginneInventur(@TargetAggregateIdentifier val id: Aggregatkennung)
11
Kotlin
2
4
e3222c613c369b4a58026ce42c346b575b3082e5
299
dominium
MIT License
j2k/testData/fileOrElement/tryWithResource/Multiline.kt
JakeWharton
99,388,807
false
null
import java.io.* class C { @Throws(IOException::class) internal fun foo() { ByteArrayInputStream(ByteArray(10)).use { stream -> // reading something val c = stream.read() println(c) } } }
0
null
28
83
4383335168338df9bbbe2a63cb213a68d0858104
252
kotlin
Apache License 2.0
src/main/kotlin/com/imma/model/admin/UserGroup.kt
Indexical-Metrics-Measure-Advisory
344,732,013
false
null
package com.imma.model.admin import com.imma.model.CollectionNames import com.imma.model.Tuple import com.imma.persist.annotation.* import java.util.* @Entity(CollectionNames.USER_GROUP) data class UserGroup( @Id var userGroupId: String? = null, @Field("name") var name: String? = null, @Field("description") var...
0
Kotlin
0
1
c42a959826e72ac8cea7a8390ccc7825f047a591
701
watchmen-ktor
MIT License
app/src/main/java/com/a10miaomiao/bilimiao/entity/Dimension.kt
10miaomiao
142,169,120
false
null
package com.a10miaomiao.bilimiao.entity import android.os.Parcelable import kotlinx.android.parcel.Parcelize @Parcelize data class Dimension( val height: Int, val rotate: Int, val width: Int ): Parcelable
3
null
8
127
7fb43ddc56a19ab4f00e3e1a8d6e8f5a94271d14
218
bilimiao2
Apache License 2.0
src/main/kotlin/net/savagelabs/skyblockx/listener/SEditListener.kt
ryderbelserion
669,876,085
false
null
package net.savagelabs.skyblockx.listener import net.savagelabs.skyblockx.core.color import net.savagelabs.skyblockx.core.getIPlayer import net.savagelabs.skyblockx.persist.Message import net.savagelabs.skyblockx.sedit.Position import org.bukkit.event.EventHandler import org.bukkit.event.Listener import org.bukkit.eve...
0
Kotlin
0
0
23e430fd51a76e22f95847520e6976e2250058b3
1,243
Skyblock
MIT License
app/src/main/java/com/amitranofinzi/vimata/data/repository/WorkbookRepository.kt
Ggino11
788,949,158
false
{"Kotlin": 429310}
package com.amitranofinzi.vimata.data.repository import android.content.Context import android.net.ConnectivityManager import android.net.NetworkCapabilities import android.os.Build import android.util.Log import com.amitranofinzi.vimata.data.dao.CollectionDao import com.amitranofinzi.vimata.data.dao.ExerciseDao impor...
0
Kotlin
0
0
e864fc070b7343394457425601c7e276968a2ca6
9,269
ProgettoAmitranoFinzi-progMob
MIT License
src/main/kotlin/org/skellig/plugin/language/teststep/psi/formatter/SkelligTestStepBlock.kt
skellig-framework
309,154,374
false
{"Kotlin": 219539, "Lex": 2218}
package org.skellig.plugin.language.teststep.psi.formatter import com.intellij.formatting.* import com.intellij.lang.ASTNode import com.intellij.openapi.util.TextRange import com.intellij.psi.TokenType import com.intellij.psi.formatter.FormatterUtil import org.skellig.plugin.language.teststep.psi.SkelligTestStepAllVal...
0
Kotlin
0
1
1f99c61d6c5deb44d684e98a413d9f991b9b2da7
2,879
skellig-intellij-plugin
Apache License 2.0
android/repo/src/main/java/com/netnovelreader/repo/db/ReaderDatabase.kt
ya-b
117,229,339
false
null
package com.netnovelreader.repo.db import androidx.sqlite.db.SupportSQLiteDatabase import androidx.room.Database import androidx.room.Room import androidx.room.RoomDatabase import android.content.Context import com.netnovelreader.utils.ioThread @Database(entities = [BookInfoEntity::class, SiteSelectorEntity::class, C...
0
Kotlin
2
7
826914f10db007f2184c7f04ac9b897ba4f1291a
8,934
NetNovelReader
Apache License 2.0
composeApp/src/commonMain/kotlin/presentation/theme/Shapes.kt
samAricha
751,505,738
false
{"Kotlin": 63076}
package presentation.theme import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material3.Shapes import androidx.compose.ui.unit.dp internal val Shapes = Shapes( small = RoundedCornerShape(4.dp), medium = RoundedCornerShape(8.dp), large = RoundedCornerShape(12.dp), ) val Tx...
0
Kotlin
0
1
7f530a5cd83b1e878b21951f8ba688fd01430033
916
AIChatBotGemini
Apache License 2.0
src/yieldprobe/src/main/java/com/yieldlab/yieldprobe/exception/ExceptionNetworkResponseParsing.kt
yieldlab
260,030,269
false
null
package com.yieldlab.yieldprobe.exception /** * Exception for error while parsing response body. */ class ExceptionNetworkResponseParsing: ExceptionYieldprobe() { }
1
null
1
1
2de0f2342b78b4d0a9c21223fe59b294e06bab94
168
yieldprobe-sdk-android
Apache License 2.0
runtime/protocol/http-client-engines/test-suite/common/test/aws/smithy/kotlin/runtime/http/test/UploadTest.kt
smithy-lang
294,823,838
false
null
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ package aws.smithy.kotlin.runtime.http.test import aws.smithy.kotlin.runtime.content.ByteStream import aws.smithy.kotlin.runtime.hashing.sha256 import aws.smithy.kotlin.runtime.http.* import aws.smithy....
36
null
26
82
ad18e2fb043f665df9add82083c17877a23f8610
8,675
smithy-kotlin
Apache License 2.0
src/main/kotlin/de/maxbossing/poisonedplugin/manager/TrustedUserManager.kt
maxbossing
844,546,428
false
{"Kotlin": 48444}
/* * MIT License * * Copyright (c) 2023 Max Bossing * * 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, modi...
0
Kotlin
0
0
c8641eb07a83a9bbe3a8f2acc5d8b00ff2f41d45
2,488
PoisonedPlugin
MIT License
promise/src/test/kotlin/com/voxeet/testpromise/factory/PromiseDelegateHandlerFactoryTest.kt
voxeet
226,332,046
true
{"Gradle": 5, "XML": 13, "Shell": 3, "Markdown": 4, "Java Properties": 2, "Ignore List": 3, "Batchfile": 1, "YAML": 6, "Proguard": 2, "INI": 3, "Kotlin": 33, "Java": 22, "Text": 1, "Handlebars": 4, "JavaScript": 1}
package com.voxeet.testpromise.factory import com.voxeet.promise.HandlerFactory import com.voxeet.promise.Promise import com.voxeet.testpromise.mockedhandler import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.Test class PromiseDelegateHandlerFactoryTest { @Test fun `test initia...
0
Kotlin
0
0
cb43a9c25635064723066f126cd6a1ec8d7d3971
486
sdk-android-lib-promise
Apache License 2.0
src/main/kotlin/io/layercraft/packetlib/packets/v1_19_3/play/serverbound/SetCreativeSlotPacket.kt
Layercraft
531,857,310
false
null
package io.layercraft.packetlib.packets.v1_19_3.play.serverbound import io.layercraft.packetlib.packets.* import io.layercraft.packetlib.serialization.MinecraftProtocolDeserializeInterface import io.layercraft.packetlib.serialization.MinecraftProtocolSerializeInterface /** * Set Creative Mode Slot | 0x2b | play | se...
0
Kotlin
1
4
3491d690689369264101853861e1d5a572cde24f
1,120
PacketLib
MIT License
src/main/kotlin/com/baulsupp/oksocial/credentials/CredentialFactory.kt
fkorotkov
116,174,513
true
{"Kotlin": 375382, "Shell": 8328}
package com.baulsupp.oksocial.credentials import com.baulsupp.oksocial.output.util.PlatformUtil object CredentialFactory { fun createCredentialsStore(tokenSet: String?): CredentialsStore { return if (PlatformUtil.isOSX && OSXCredentialsStore.isAvailable()) { OSXCredentialsStore(tokenSet) } else { ...
0
Kotlin
0
0
f7e496f47500a1c3bb0b86d0ac239f4fb46e15f3
372
oksocial
Apache License 2.0
idea/testData/quickfix/deprecatedSymbolUsage/typeAliases/constructorUsageWithConflict1.kt
JakeWharton
99,388,807
false
null
// "Replace with 'NewClass(12)'" "true" @Deprecated("Use NewClass", replaceWith = ReplaceWith("NewClass")) class OldClass @Deprecated("Use NewClass(12)", level = DeprecationLevel.ERROR, replaceWith = ReplaceWith("NewClass(12)")) constructor() @Deprecated("Use New", replaceWith = ReplaceWith("New")) typealias Old = Ol...
1
null
28
83
4383335168338df9bbbe2a63cb213a68d0858104
406
kotlin
Apache License 2.0
src/main/kotlin/dev/the/mag/exchangebrokerbackend/exceptionhandler/ItemExceptionHandler.kt
7274-dev
509,121,024
false
null
package dev.the.mag.exchangebrokerbackend.exceptionhandler import dev.the.mag.exchangebrokerbackend.exceptions.NoSuchItemException import org.springframework.http.HttpStatus import org.springframework.http.ResponseEntity import org.springframework.web.bind.annotation.ExceptionHandler import org.springframework.web.bin...
0
Kotlin
0
0
40b3fda27ca378d3f937943a3b0caccd81f4fb72
618
exchange-broker-server
MIT License
mbcarkit/src/main/java/com/daimler/mbcarkit/network/model/ApiNormalizedProfileControlSupport.kt
Daimler
199,815,262
false
null
package com.daimler.mbcarkit.network.model import com.daimler.mbcarkit.business.model.vehicle.NormalizedProfileControlSupport import com.daimler.mbcarkit.network.model.ApiNormalizedProfileControlSupport.Companion.map import com.google.gson.annotations.SerializedName internal enum class ApiNormalizedProfileControlSupp...
1
Kotlin
8
15
3721af583408721b9cd5cf89dd7b99256e9d7dda
796
MBSDK-Mobile-Android
MIT License
zoomimage-core/src/commonTest/kotlin/com/github/panpf/zoomimage/core/test/subsampling/internal/SubsamplingUtilsTest.kt
panpf
647,222,866
false
{"Kotlin": 3004367, "Shell": 724}
package com.github.panpf.zoomimage.core.test.subsampling.internal import com.github.panpf.zoomimage.subsampling.internal.calculatePreferredTileSize import com.github.panpf.zoomimage.subsampling.internal.calculateTileGridMap import com.github.panpf.zoomimage.subsampling.internal.canUseSubsamplingByAspectRatio import co...
1
Kotlin
7
98
bdc00e862498830df39a205de5d3d490a5f04444
2,697
zoomimage
Apache License 2.0
teacher_app/app/src/main/java/io/github/kabirnayeem99/dumarketingadmin/presentation/view/faculty/UpsertFacultyFragment.kt
kabirnayeem99
360,781,364
false
null
package io.github.kabirnayeem99.dumarketingadmin.presentation.view.faculty import android.app.Activity.RESULT_OK import android.content.Intent import android.graphics.Bitmap import android.graphics.ImageDecoder import android.os.Build import android.os.Bundle import android.provider.MediaStore import android.view.View...
4
null
2
5
a12771fa50760e7d92fac49bd1174ae9ad99822d
9,377
du_marketing_sms
Apache License 2.0
korge-core/test@darwin/korlibs/io/lang/ThreadIdNativeTest.kt
korlibs
80,095,683
false
{"WebAssembly": 14293935, "Kotlin": 9728800, "C": 77092, "C++": 20878, "TypeScript": 12397, "HTML": 6043, "Python": 4296, "Swift": 1371, "JavaScript": 328, "Shell": 254, "CMake": 202, "CSS": 66, "Batchfile": 41}
package korlibs.io.lang import kotlin.native.concurrent.TransferMode import kotlin.native.concurrent.Worker import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertNotEquals class ThreadIdNativeTest { @Test fun testWorkerHaveDifferentThreadId() { val savedCurrentThreadId = cur...
444
WebAssembly
121
2,207
dc3d2080c6b956d4c06f4bfa90a6c831dbaa983a
689
korge
Apache License 2.0
sykepenger-mediators/src/main/kotlin/no/nav/helse/spleis/meldinger/ForkastSykmeldingsperioderRiver.kt
navikt
193,907,367
false
null
package no.nav.helse.spleis.meldinger import no.nav.helse.rapids_rivers.JsonMessage import no.nav.helse.rapids_rivers.RapidsConnection import no.nav.helse.spleis.IMessageMediator import no.nav.helse.spleis.meldinger.model.ForkastSykmeldingsperioderMessage internal class ForkastSykmeldingsperioderRiver( rapidsConn...
2
null
7
5
314d8a6e32b3dda391bcac31e0b4aeeee68f9f9b
895
helse-spleis
MIT License
bgw-core/src/main/kotlin/tools/aqua/bgw/dialog/DialogType.kt
Chasethechicken
403,624,117
true
{"Kotlin": 610676}
/* * Copyright 2021 The BoardGameWork Authors * SPDX-License-Identifier: Apache-2.0 * * 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/lic...
0
Kotlin
0
0
13ff98b359c5058a028bfa46fa1253a440810c27
2,645
bgw
Apache License 2.0
app/src/main/java/edu/skku/cs/final_project/MedicineDetailsActivity.kt
nicolaics
763,859,487
false
{"Kotlin": 42465}
package edu.skku.cs.final_project import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.widget.Button import android.widget.ImageView import android.widget.TextView import com.bumptech.glide.Glide class MedicineDetailsActivity: AppCompatActivity() { ...
0
Kotlin
0
0
6bc319cdf2ce33b8c3515afae3ab42af60b4cc23
4,226
medsearch
MIT License
plugins/kotlin/compiler-reference-index/tests/testData/customCompilerIndexData/testHierarchyJavaLibraryClass/Foo.kt
ingokegel
72,937,917
true
null
import java.util.AbstractList class Foo : AbstractList<String>() { override fun get(index: Int): String { TODO("Not yet implemented") } override val size: Int get() = TODO("Not yet implemented") }
1
null
1
2
b07eabd319ad5b591373d63c8f502761c2b2dfe8
226
intellij-community
Apache License 2.0
08-basicAuth-api/src/endpoint/routing/routingColor/RoutingColor.kt
vicboma1
225,186,902
false
null
package com.example.endpoint.routing.routingColor import com.example.endpoint.utils.ResourceUtils.getResourceAsFile import com.example.endpoint.utils.grayscaleImage import com.example.endpoint.utils.threadPool import io.ktor.application.call import io.ktor.html.respondHtml import io.ktor.locations.KtorExperimentalLoca...
0
Kotlin
5
24
12458e64cafa62aa0f54d660034a9ad97815ee90
1,608
ktor-API-examples
MIT License
src/main/kotlin/io/fixture/form/RegistrationForm.kt
martinlau
11,140,245
false
null
/* * #%L * fixture * %% * Copyright (C) 2013 <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...
6
Kotlin
0
0
a751ea312708bac231f01dbf66ed1859a79f684a
1,527
fixture
Apache License 2.0
jessie/src/main/java/cn/jessie/etc/AndroidVM.kt
androlua
227,565,051
true
{"Kotlin": 259239, "Java": 11121, "HTML": 996}
package cn.jessie.etc import android.annotation.SuppressLint import android.os.Build import java.util.* /** * @author 7hens */ @SuppressLint("PrivateApi") internal object AndroidVM { /** * 是否运行 ART 虚拟机 */ val isArt: Boolean by lazy { System.getProperty("java.vm.version", "")?.startsWith("2...
0
null
0
0
97df8fc44063770b8b4019f07e285b2ba9cf28b5
907
jessie
MIT License
kotlin-source/src/main/kotlin/com/example/api/ExampleApi.kt
ayinot
117,425,223
false
{"Java": 35709, "Kotlin": 28826, "HTML": 9612}
package com.example.api import com.example.flow.BidFlow import com.example.flow.BidFlow.Initiator import com.example.flow.SubmitBidFlow import com.example.flow.SubmitBidFlow.Acceptor import com.example.state.BidState import net.corda.core.identity.CordaX500Name import net.corda.core.identity.Party import net.corda.cor...
0
Java
0
0
b4917f694fe5ae908035919ca4fa3644d51ce5c6
6,517
Bidder-example
Apache License 2.0
src/commonMain/kotlin/mahjongutils/common/RegularHandSearcher.kt
ssttkkl
547,654,890
false
null
package mahjongutils.common import mahjongutils.models.* import mahjongutils.models.hand.RegularHandPattern // 这里用的编码和Tile.code不一样 private fun encode(t: Tile): Int { return t.type.ordinal * 9 + t.realNum - 1 } private fun decode(code: Int): Tile { val type = TileType.valueOf(code / 9) val num = code % 9 ...
2
Kotlin
2
9
571cebf84a5bf04337f162234e2f610954f99e8c
6,935
mahjong-utils
MIT License
src/main/kotlin/abc/181-d.kt
kirimin
197,707,422
false
null
package abc import utilities.debugLog import java.util.* fun main(args: Array<String>) { val sc = Scanner(System.`in`) val s = sc.next() println(problem181d(s)) } fun problem181d(s: String): String { val ss = s.groupBy { it } for (i in 1..125) { var tmp = (8 * i).toString() tmp = ...
0
Kotlin
1
5
c6e31eb2fb5b73456bdfac07b2528d401c6c884a
740
AtCoderLog
The Unlicense
mobile/src/test/java/com/aptopayments/mobile/repository/card/usecases/UnlockCardUseCaseTest.kt
ShiftFinancial
130,093,227
false
{"Kotlin": 696648}
package com.aptopayments.mobile.repository.card.usecases import com.aptopayments.mobile.UseCaseTest import com.aptopayments.mobile.data.TestDataProvider import com.aptopayments.mobile.extension.shouldBeRightAndEqualTo import com.aptopayments.mobile.functional.right import com.aptopayments.mobile.repository.UserSession...
0
Kotlin
0
5
f79b3c532ae2dfec8e571b315401ef03d8e507f9
1,631
shift-sdk-android
MIT License
theodolite/src/main/kotlin/rocks/theodolite/kubernetes/ExecutionModes.kt
cau-se
265,538,393
false
{"Java": 697319, "Kotlin": 405869, "Jupyter Notebook": 29366, "Shell": 12434, "Python": 10828, "Dockerfile": 7467, "Smarty": 2051}
package rocks.theodolite.kubernetes enum class ExecutionModes(val value: String) { OPERATOR("operator"), STANDALONE("standalone") }
2
Java
8
43
7f25b867314e05306bbe9205533a483a58486b11
140
theodolite
Apache License 2.0
app/src/main/kotlin/com/sanmer/geomag/repository/LocalRepository.kt
ya0211
583,580,288
false
null
package com.sanmer.geomag.repository import com.sanmer.geomag.database.dao.RecordDao import com.sanmer.geomag.database.entity.toEntity import com.sanmer.geomag.database.entity.toRecord import com.sanmer.geomag.model.Record import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.flow.map import kotlinx.coroutin...
0
Kotlin
2
16
60a08eec85411272d3a154f01ae507f1a001490f
1,430
Geomag
MIT License
stem-plugin/src/main/java/com/likethesalad/stem/modules/common/helpers/dirs/SourceSetsHandler.kt
LikeTheSalad
216,664,268
false
null
package com.likethesalad.stem.modules.common.helpers.dirs import com.likethesalad.stem.providers.AndroidExtensionProvider import java.io.File import javax.inject.Inject import javax.inject.Singleton @Singleton class SourceSetsHandler @Inject constructor(androidExtensionProvider: AndroidExtensionProvider) { priva...
2
Kotlin
7
134
60a1026ccb5f62a6bb90ddd91c56fa0efaf31e7c
617
android-string-reference
MIT License
app/src/main/java/com/montfel/pokfinder/presentation/profile/components/Evolution.kt
Montfel
489,497,209
false
null
package com.montfel.pokfinder.presentation.profile.components import androidx.compose.foundation.Image import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.* import androidx.compose.foundation.shape.CircleShape import androidx.compose.material.MaterialTheme import androidx.compose.mat...
24
Kotlin
2
8
9231d27521814ba3db15e43b324e2af4d36475de
4,291
pokfinder
MIT License
app/src/test/java/com/example/k2024_04_21_livedata_volley/UnitTests.kt
ignaciod25
793,827,818
false
{"Kotlin": 17883}
package com.example.k2024_04_21_livedata_volley import com.example.k2024_04_21_livedata_volley.models.JSON_MetMuseum import com.example.k2024_04_21_livedata_volley.view_models.UrlViewModel import org.junit.Test import org.junit.Assert.* import org.junit.Before import org.junit.Rule import org.junit.runner.RunWith imp...
0
Kotlin
0
0
03f16cb3cc088d40a15521230cc2fe0565bb6056
1,791
MET_Museum_API
MIT License
src/main/java/com/mineinabyss/mobzy/spawning/vertical/VerticalSpawn.kt
c-sig
387,629,883
true
{"Kotlin": 141406}
package com.mineinabyss.mobzy.spawning.vertical import org.bukkit.Location /** * A vertical strip inside a chunk, with x and z located at [loc], spanning from [minY] to [maxY]. * * Will generate a list of [SpawnArea]s, from all air gaps within this vertical strip. */ class VerticalSpawn(private val loc: Location,...
0
null
0
0
3e86eac6780c33ba629a251d05a3d13960c5bd19
2,666
Mobzy
MIT License
app/src/androidTest/java/com/example/loginsesame/TestAccountView.kt
sw21-tug
350,454,499
false
{"Kotlin": 112493}
package com.example.loginsesame import android.app.Activity import android.content.Context import androidx.arch.core.executor.testing.InstantTaskExecutorRule import androidx.lifecycle.LiveData import androidx.lifecycle.Observer import androidx.lifecycle.asLiveData import androidx.recyclerview.widget.RecyclerView impo...
19
Kotlin
5
1
684325336e50fad9482073faf56596f70732739f
10,434
Team_17
MIT License
app/src/main/java/com/example/photoeditor/CameraView.kt
N0MoreFun
652,654,558
false
null
package com.example.photoeditor import android.content.Context import android.net.Uri import android.util.Log import android.view.Surface import android.view.WindowManager import androidx.camera.core.CameraSelector import androidx.camera.core.ImageCapture import androidx.camera.core.ImageCaptureException import androi...
0
Kotlin
0
0
2f8886434279f0472eb34b696fb22d17b6fc92a4
7,676
Easy-Photo-Editor
MIT License
sdk/src/main/java/com/qonversion/android/sdk/dto/automations/Screen.kt
qonversion
224,974,105
false
null
package com.qonversion.android.sdk.dto.automations import com.squareup.moshi.Json import com.squareup.moshi.JsonClass @JsonClass(generateAdapter = true) data class Screen( @Json(name = "id") val id: String, @Json(name = "body") val htmlPage: String, @Json(name = "lang") val lang: String, @Json(name = ...
3
Kotlin
18
95
3b7e72ce9797bc009d8c4646ae491c3b82b96481
403
android-sdk
MIT License
api/src/commonMain/kotlin/lexi/JsonLogFormatterOptions.kt
aSoft-Ltd
592,348,487
false
{"Kotlin": 31984}
package lexi class JsonLogFormatterOptions( val tab: String = " ", val verbose: Boolean = true, val status: Boolean = true, val source: Boolean = false )
0
Kotlin
0
0
feedefc05192cacf1b106726c3d5cc723da6fd9f
171
lexi
MIT License
app/src/main/java/com/day/record/ui/day/DayTaskViewModel.kt
JereChen11
326,435,207
false
null
package com.day.record.ui.day import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.day.record.MyApp import com.day.record.data.entity.DayTask import com.day.record.utils.Utils import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.la...
0
Kotlin
0
0
81b142d9dbc20a197a5d4c156fe4c18559004897
2,269
Day_Record
Apache License 2.0
packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/AppTests.kt
realm
235,075,339
false
null
/* * Copyright 2021 Realm Inc. * * 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...
213
null
50
771
ba6d423f43a944decb00d16dea186ec742ea0aff
17,272
realm-kotlin
Apache License 2.0
doc-examples/example-kotlin/src/test/kotlin/example/ReaderExample.kt
micronaut-projects
294,406,641
false
null
package example import io.micronaut.pulsar.annotation.PulsarReader import jakarta.inject.Singleton import kotlinx.coroutines.future.await import org.apache.pulsar.client.api.Message import org.apache.pulsar.client.api.Reader @Singleton class ReaderExample { @PulsarReader(value = "persistent://public/default/messa...
3
null
7
19
9aee258153f4b9f30e3773275ca0cda42546efeb
534
micronaut-pulsar
Apache License 2.0
src/main/kotlin/me/zpp0196/mods/util/entity/CommandPermissionLevel.kt
zpp0196
379,344,623
false
null
package me.zpp0196.mods.util.entity /** * https://minecraft.fandom.com/wiki/Commands * @author zpp0196 */ object CommandPermissionLevel { const val EVERYONE = 0 const val EXECUTE = 2 const val ADMIN = 4 }
0
Kotlin
0
0
3d9466d04bfca08fb7eafe8a2032dd31282492f5
220
DeathNotify
Apache License 2.0
plugins/client/graphql-kotlin-client-generator/src/test/kotlin/com/expediagroup/graphql/plugin/client/generator/types/GenerateGraphQLCustomScalarTypeAliasIT.kt
DeanJain
345,823,865
true
{"Kotlin": 1525427, "Mustache": 6049, "JavaScript": 3941, "HTML": 2744, "CSS": 297}
/* * Copyright 2021 Expedia, Inc * * 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 t...
0
null
0
0
a9ad9fc2901370df8d32b3c229d8549172f796b2
3,442
graphql-kotlin
Apache License 2.0
src/main/kotlin/com/github/imflog/schema/registry/Exceptions.kt
ImFlog
132,165,857
false
null
package com.github.imflog.schema.registry class UnknownSchemaTypeException(schemaType: String) : Exception("Unknown schema type provider $schemaType") class SchemaParsingException(subject: String, type: SchemaType) : Exception("Could not parse schema $subject of type ${type.registryType}") class MixedReferenceExce...
5
Kotlin
22
97
ae392c576b2fbee12f1f12587764466ba9b2b4fe
383
schema-registry-plugin
Apache License 2.0
app/src/main/java/com/philsoft/metrotripper/app/state/transformer/ViewActionTransformer.kt
polson
29,316,612
false
null
package com.philsoft.metrotripper.app.state.transformer import com.philsoft.metrotripper.app.state.AppAction import com.philsoft.metrotripper.app.state.AppState abstract class ViewActionTransformer<T : AppAction> { protected val actions: ArrayList<T> = arrayListOf() protected abstract fun handleEvent(state:...
2
Kotlin
0
0
7ec1b14304e001a6c7653f7b2775245cadb43d01
576
MetroTripper
Apache License 2.0
app/src/main/java/com/example/androiddevchallenge/viewmodel/WeatherViewModel.kt
serbelga
348,768,502
false
null
/* * Copyright 2021 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
0
Kotlin
1
2
8894c67fee4d75c7b73a8a1830e2906d68dded9d
3,895
WeatherComposeApp
Apache License 2.0
dbinspector/src/main/kotlin/com/infinum/dbinspector/data/sources/memory/distance/LevenshteinDistance.kt
infinum
17,116,181
false
null
package com.infinum.dbinspector.data.sources.memory.distance import com.infinum.dbinspector.data.Sources import kotlin.math.min /** * Algorithm for measuring the difference between two Strings, also called a distance. * * It is the number of changes needed to change one String into another, * where each change is...
0
Kotlin
93
936
10b9ac5013ca01e602976a615e754dff7001f11d
3,016
android_dbinspector
Apache License 2.0
trixnity-clientserverapi/trixnity-clientserverapi-client/src/commonTest/kotlin/net/folivo/trixnity/clientserverapi/client/AppserviceApiClientTest.kt
benkuly
330,904,570
false
{"Kotlin": 4165934, "JavaScript": 5352, "TypeScript": 2906, "CSS": 1454, "Dockerfile": 1328}
package net.folivo.trixnity.clientserverapi.client import io.kotest.matchers.shouldBe import io.ktor.client.engine.mock.* import io.ktor.http.* import io.ktor.http.ContentType.* import kotlinx.coroutines.test.runTest import net.folivo.trixnity.clientserverapi.model.appservice.Ping import net.folivo.trixnity.testutils....
0
Kotlin
3
30
6dfadb2efa1843a33030fba9eb6be0bfecdfb94d
1,443
trixnity
Apache License 2.0
app/src/main/java/sk/devprog/firmy/ui/screen/search/widget/SelectOptionDialog.kt
yuraj11
637,130,066
false
null
package sk.devprog.firmy.ui.screen.search.widget import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose...
0
Kotlin
0
1
bd10f991ae17fdc1830b7dd79bdda177ff880527
3,142
firmy
Apache License 2.0
app/src/main/java/fr/azhot/ocseeker/network/api/ApiService.kt
Azhot
373,451,090
false
null
package fr.azhot.ocseeker.network.api import fr.azhot.ocseeker.network.model.SearchDto import retrofit2.http.GET import retrofit2.http.Query interface ApiService { @GET("contents?") suspend fun getSearch(@Query("search") search: String): SearchDto }
0
Kotlin
0
0
63536d1985b3ca9830afebc1782905ad5561617e
260
OCSeeker
MIT License
ontrack-extension-github/src/main/java/net/nemerosa/ontrack/extension/github/ingestion/ui/GQLGitHubRepository.kt
nemerosa
19,351,480
false
null
package net.nemerosa.ontrack.extension.github.ingestion.ui import graphql.schema.GraphQLObjectType import net.nemerosa.ontrack.extension.github.ingestion.processing.model.Repository import net.nemerosa.ontrack.graphql.schema.GQLType import net.nemerosa.ontrack.graphql.schema.GQLTypeCache import net.nemerosa.ontrack.gr...
57
Kotlin
27
97
7c71a3047401e088ba0c6d43aa3a96422024857f
1,317
ontrack
MIT License
app/src/main/java/zmuzik/taibike/App.kt
zmuzik
92,962,183
false
null
package zmuzik.taibike import android.app.Application import androidx.appcompat.app.AppCompatDelegate import com.squareup.leakcanary.LeakCanary import org.koin.android.ext.android.startKoin import timber.log.Timber class App : Application() { override fun onCreate() { super.onCreate() AppCompatD...
0
Kotlin
0
1
9b863ba18dedff4b2f9059160079d40e948f613f
604
taibike
Apache License 2.0
app/src/main/kotlin/com/softteco/template/data/profile/ProfileRepositoryImpl.kt
SoftTeco
644,768,318
false
{"Kotlin": 129021, "Shell": 354}
package com.softteco.template.data.profile import androidx.datastore.core.DataStore import androidx.datastore.preferences.core.Preferences import androidx.datastore.preferences.core.stringPreferencesKey import com.softteco.template.data.TemplateApi import com.softteco.template.data.base.error.ErrorEntity import com.so...
21
Kotlin
6
4
61807ab51b34272d62cf5f33be6dbd7f232ffd43
3,385
AndroidAppTemplate
MIT License
datasources/src/main/java/com/hopovo/mobile/android/prepexam/datasources/remote/authentication/AccessTokenInterceptor.kt
MilanZk
276,394,492
false
{"Kotlin": 192502, "Shell": 1098}
package com.hopovo.mobile.android.prepexam.datasources.remote.authentication import android.text.TextUtils import okhttp3.Interceptor import okhttp3.Response class AccessTokenInterceptor( private val tokenProvider: AccessTokenProvider ) : Interceptor { override fun intercept(chain: Interceptor.Chain): Respon...
0
Kotlin
0
1
24c7634eb76e720e45025e7142886b6834cbfb1d
777
chillupbox
MIT License
src/main/java/miyucomics/hexical/entities/specklikes/SpeckRenderer.kt
miyucomics
757,094,041
false
{"Kotlin": 324683, "Java": 27372, "GLSL": 1075, "Shell": 44}
package miyucomics.hexical.entities.specklikes import at.petrak.hexcasting.api.HexAPI.modLoc import com.mojang.blaze3d.systems.RenderSystem import miyucomics.hexical.utils.RenderUtils import net.minecraft.client.render.Frustum import net.minecraft.client.render.LightmapTextureManager import net.minecraft.client.render...
1
Kotlin
4
1
73aa2f95c19d429d9a9a936be8bd50cf80b96c57
2,383
hexical
MIT License
server/src/main/kotlin/com/pixapencil/server/controllers/CreationController.kt
tomdoeslinux
419,545,692
false
{"Kotlin": 24533, "TypeScript": 23028, "SQL": 2661, "FreeMarker": 884, "JavaScript": 436, "HTML": 366, "CSS": 255}
package com.pixapencil.server.controllers import com.pixapencil.server.services.CreationService import org.springframework.web.bind.annotation.GetMapping import org.springframework.web.bind.annotation.PathVariable import org.springframework.web.bind.annotation.PostMapping import org.springframework.web.bind.annotation...
3
Kotlin
26
164
1480ed75e1818e51aa4a2aeb4e2a32dd002157ac
1,235
PixaPencil
MIT License
src/jvmMain/kotlin/ru/tanexc/application/domain/use_cases/chat_use_cases/ChatGetByClientIdUseCase.kt
Tanexc
667,134,735
false
null
package ru.tanexc.application.domain.use_cases.chat_use_cases import domain.model.Chat import kotlinx.coroutines.flow.Flow import org.koin.core.component.KoinComponent import org.koin.core.component.inject import ru.tanexc.application.domain.repository.ChatRepository import util.State class ChatGetByClientIdUseCase: ...
0
Kotlin
0
3
27bc23f5ab9dbc8ec7da5fc7812555bbbcaeb0a7
496
ComposeWebCakes
Apache License 2.0
samples/sample-2-kotlin-todoservice/src/main/kotlin/com/nike/todoservice/error/ProjectApiErrorsImpl.kt
Nike-Inc
64,719,557
false
null
package com.nike.todoservice.error import com.nike.backstopper.apierror.ApiError import com.nike.backstopper.apierror.projectspecificinfo.ProjectSpecificErrorCodeRange import com.nike.backstopper.apierror.sample.SampleProjectApiErrorsBase import java.util.Arrays import javax.inject.Singleton /** * Returns the proj...
7
Java
34
118
14167df6ccf4974d5b6c1d1d3860e5d104f0fd15
1,615
riposte
Apache License 2.0
src/test/kotlin/react/SignalTest.kt
cdietze
90,423,402
false
null
/* * Copyright 2017 The React-kt Authors * * 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 ag...
0
Kotlin
0
1
afb412c9770b3d981ccb50dcedf004961d3fe90c
8,689
react-kt
Apache License 2.0