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/main/kotlin/org/arend/ui/impl/query/TextFieldQuery.kt | JetBrains | 96,068,447 | false | {"Kotlin": 2655823, "Lex": 16187, "Java": 5894, "HTML": 2144, "CSS": 1108, "JavaScript": 713} | package org.arend.ui.impl.query
import com.intellij.ui.components.JBTextField
import org.arend.ext.ui.ArendQuery
class TextFieldQuery(text: String?) : ArendQuery<String> {
val textField = JBTextField(text)
override fun getResult(): String = textField.text
} | 36 | Kotlin | 12 | 90 | 7a6608a2e44369e11c5baad3ef2928d6f9c971b2 | 268 | intellij-arend | Apache License 2.0 |
src/main/kotlin/com/shimmermare/inviteroles/command/CommandSource.kt | Shimmermare | 210,840,446 | false | null | package com.shimmermare.inviteroles.command
import net.dv8tion.jda.api.entities.Guild
import net.dv8tion.jda.api.entities.Member
import net.dv8tion.jda.api.entities.TextChannel
class CommandSource(val guild: Guild, val channel: TextChannel, val member: Member) | 7 | Kotlin | 10 | 18 | fac29b46795d5bcd390cd03e144a1c100415b6b3 | 262 | InviteRoles | MIT License |
ratiogenerator/src/main/java/io/github/mikolasan/ratiogenerator/MinStorageUnits.kt | mikolasan | 140,800,532 | false | {"Kotlin": 293361, "Batchfile": 349, "CSS": 201} | package io.github.mikolasan.ratiogenerator
object MinStorageUnits : ImperialUnitCategory(
type = ImperialUnitType.STORAGE,
ratioList = listOf(
eq(x(1.0, ImperialUnitName.BYTE), x(8.0, ImperialUnitName.BIT)),
eq(x(1.0, ImperialUnitName.BLOCK), x(512.0, ImperialUnitName.BYTE)),
eq(x(1.0, ... | 1 | Kotlin | 0 | 1 | eef2113de074e8d68e84fdf808af459916f28254 | 494 | ForgottenStandards | MIT License |
app/src/main/java/com/actively/navigation/BottomBar.kt | actively-pw | 671,584,612 | false | {"Kotlin": 364808} | package com.actively.navigation
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import androidx.compose.material3.BottomAppBar
import androidx.compose.material3.Icon
import androidx.compose.material3.NavigationBarItem
import androidx.compose.material3.Text
import androidx.compose.runtime.Co... | 0 | Kotlin | 0 | 0 | 33c791dfa6ce82a6ccacb1b5cdb39d2a26302ef4 | 1,145 | actively-mobile | MIT License |
src/main/kotlin/org/teamvoided/nullium/config/module/BlacksmithCfg.kt | TeamVoided | 788,995,006 | false | {"Kotlin": 67511, "Java": 18414} | package org.teamvoided.nullium.config.module
import org.teamvoided.nullium.config.ConfigInstance
import org.teamvoided.nullium.config.data.BlacksmithData
class BlacksmithCfg : ConfigInstance<BlacksmithData> {
override val name: String = "Blacksmith"
override var data = BlacksmithData()
override fun serial... | 0 | Kotlin | 0 | 1 | 38e5b56855f1925aa3c2895966512251e1a97b9a | 359 | Nullium | MIT License |
feature/survey/src/main/java/com/wap/wapp/feature/survey/SurveyFormItemCard.kt | pknu-wap | 689,890,586 | false | {"Kotlin": 630901, "Shell": 233} | package com.wap.wapp.feature.survey
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation... | 4 | Kotlin | 1 | 11 | 16d34aa952ab0e94aa014c2f0abb5dac44c89c4b | 2,331 | WAPP | MIT License |
compiler/testData/diagnostics/tests/when/patternMatching/validityCheck.kt | HackerMadCat | 107,582,672 | true | {"Kotlin": 27812051, "Java": 9959754, "JavaScript": 157318, "HTML": 58583, "Lex": 18174, "Groovy": 14207, "ANTLR": 9797, "IDL": 8626, "Shell": 5436, "CSS": 4679, "Batchfile": 4437} | data class Pair<F, S>(val first: F, val second: S)
fun foo1(x: Any?) = <!NO_ELSE_IN_WHEN!>when<!> (<!DEBUG_INFO_SMARTCAST!>x<!>) {
is like Pair(val <!UNUSED_VARIABLE!>a<!>, val <!UNUSED_VARIABLE!>b<!>) -> 0
is <!NO_TYPE_ARGUMENTS_ON_RHS, DUPLICATE_LABEL_IN_WHEN!>Pair<!> -> 0
is like <!DUPLICATE_LABEL_IN_WH... | 0 | Kotlin | 0 | 0 | 4ecfac30bf5e91cdeea05543efc073b3e054b895 | 2,508 | kotlin | Apache License 2.0 |
compiler-plugin/src/test/kotlin/tech/mappie/testing/enums/ObjectWithEnumToObjectWithEnumWithSameEntriesTest.kt | Mr-Mappie | 808,724,827 | false | {"Kotlin": 358824, "CSS": 53049, "SCSS": 27835, "HTML": 19192, "JavaScript": 10475, "Nunjucks": 513} | package tech.mappie.testing.enums
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.io.TempDir
import tech.mappie.testing.compilation.compile
import tech.mappie.testing.loadObjectMappieClass
import java.io.File
class ObjectWithEnumToObjectWithEnumWithSame... | 9 | Kotlin | 1 | 21 | c0e5ca6870bc6ddf094d4a4cf10d3f35f1261823 | 2,384 | mappie | Apache License 2.0 |
src/main/kotlin/com/broeskamp/monorepo/gradle/plugin/base/BroestechBasePlugin.kt | broestech | 612,280,871 | false | null | package com.broeskamp.monorepo.gradle.plugin.base
import me.qoomon.gradle.gitversioning.GitVersioningPlugin
import me.qoomon.gradle.gitversioning.GitVersioningPluginExtension
import org.gradle.api.GradleException
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.Configuration
i... | 1 | Kotlin | 0 | 0 | 7e26d409448b99fbab4bb8a55254dff9e9117fc1 | 4,451 | monorepo_gradle_plugin | MIT License |
app/src/main/java/com/example/projecttolearn/model/Outer.kt | mtalhayerlikaya | 407,179,279 | false | null | package com.example.projecttolearn.model
import com.google.gson.annotations.SerializedName
class Outer {
@SerializedName("articles")
var article: List<Article>?=null
fun getData(): List<Article>? {
return article
}
} | 0 | Kotlin | 0 | 0 | 3a3b2a1c4b0766a9ad863cade0d4dcb51439d15b | 253 | newsapp | MIT License |
Coinz/app/src/androidTest/java/com/coinzgame/theoxo/coinz/CoinClassInstrumentedUnitTest.kt | theoxo | 163,798,481 | false | null | package com.coinzgame.theoxo.coinz
import android.support.test.filters.SmallTest
import android.support.test.runner.AndroidJUnit4
import org.json.JSONObject
import org.junit.Test
import org.junit.Assert.*
import org.junit.Before
import org.junit.runner.RunWith
import java.util.concurrent.ThreadLocalRandom
/**
* Tes... | 0 | Kotlin | 0 | 1 | 88b9420a223c657091647dab85522b4d49e435f5 | 1,469 | CoinzAndroidGame | MIT License |
app/src/main/java/com/alexrojasb/idpokemon/viewModels/FavoriteViewModel.kt | AlexRojasB | 389,037,969 | false | null | package com.alexrojasb.idpokemon.viewModels
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.viewModelScope
import com.alexrojasb.idpokemon.database.PokemonContext
import com.alexrojasb.idpokemon.database.PokemonEntity
import com.ale... | 0 | Kotlin | 0 | 0 | 5b28142ad2541934ee64f6179c706fc758b11ee0 | 983 | IDPokemon | MIT License |
objects/src/commonMain/kotlin/ru/krindra/vkkt/objects/groups/GroupsGroupTag.kt | krindra | 780,080,411 | false | {"Kotlin": 1336107} | package ru.krindra.vkkt.objects.groups
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
*
* @param id
* @param name
* @param color
* @param uses
*/
@Serializable
data class GroupsGroupTag (
@SerialName("id") val id: Int,
@SerialName("name") val name: String,
... | 0 | Kotlin | 0 | 1 | 58407ea02fc9d971f86702f3b822b33df65dd3be | 409 | VKKT | MIT License |
library/src/main/kotlin/uy/kohesive/injekt/Injekt.kt | null2264 | 859,590,182 | false | {"Kotlin": 8178} | package uy.kohesive.injekt
import uy.kohesive.injekt.api.InjektScope
import uy.kohesive.injekt.api.KoinRegistrar
import uy.kohesive.injekt.api.fullType
import uy.kohesive.injekt.api.get
@Volatile var Injekt: InjektScope = InjektScope(KoinRegistrar())
inline fun <reified T : Any> injectLazy(): Lazy<T> {
return la... | 0 | Kotlin | 0 | 0 | ee267b2e2763bf18abdc60de42c95b8ffc4ae3c9 | 687 | injekt-koin | MIT License |
src/main/kotlin/com/paulpanther/intellijsqueak/lang/references/message/SelfMessage.kt | Paulpanther | 566,530,127 | false | {"Kotlin": 129356} | package com.paulpanther.intellijsqueak.lang.references.message
import com.intellij.psi.PsiElement
import com.paulpanther.intellijsqueak.lang.SmalltalkExpr
import com.paulpanther.intellijsqueak.lang.SmalltalkLiteralExpr
import com.paulpanther.intellijsqueak.lang.util.classFile
class SelfMessage(
private val expres... | 3 | Kotlin | 0 | 2 | 670cca52d9f11fe923b174bc88f49b802ca679bd | 998 | intellij-squeak | MIT License |
src/test/kotlin/entity/TestPositionLinkingRule.kt | giacomoaccursi | 717,007,118 | false | {"Kotlin": 47272, "JavaScript": 1187, "Dockerfile": 103} | /*
* Copyright (c) 2023. Accursi Giacomo
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
package entity
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
class TestPositionLinkin... | 1 | Kotlin | 0 | 1 | b4850766715e4db04febf88b2ccf809aea622954 | 1,143 | Reactive-DES | MIT License |
app/src/main/java/com/nnn/footballclub/utils/base/BaseDetailContract.kt | rfnajid | 130,395,686 | false | null | package com.nnn.footballclub.utils.base
/**
* Created by ridhaaaaazis on 30/05/18.
*/
interface BaseDetailContract{
interface _View<M> : BaseView<_Presenter>{
fun loadData(data : M )
fun updateFavoriteLayout(boolean : Boolean)
}
interface _Presenter : BasePresenter{
fun onOpt... | 15 | Kotlin | 0 | 1 | 231fe313513ddde12704711ad095f832d299c568 | 390 | football | MIT License |
compiler/src/main/java/com/edwin/compiler/fragment/FragmentClass.kt | LiangLliu | 445,907,238 | false | {"Kotlin": 247539, "Java": 117126} | package com.edwin.compiler.fragment
import com.edwin.annotations.Builder
import com.edwin.compiler.basic.BasicClass
import java.util.*
import javax.lang.model.element.TypeElement
/**
* Created by benny on 1/29/18.
*/
class FragmentClass
private constructor(type: TypeElement, builder: Builder) : BasicClass(type, bui... | 0 | Kotlin | 0 | 0 | 7f828dedc343d3a5a19d052951692987bc714c5d | 1,280 | github-app | MIT License |
app/src/main/java/com/example/gamebuddy/data/remote/model/avatar/AvatarDto.kt | GameBuddyDevs | 609,491,782 | false | null | package com.example.gamebuddy.data.remote.model.avatar
import com.example.gamebuddy.domain.model.avatar.Avatar
data class AvatarDto (
val id: String,
val image: String,
){
fun toAvatar(): Avatar {
return Avatar(
id = id,
image = image,
)
}
} | 0 | Kotlin | 1 | 3 | 0a767229f5505e6a68e167aece41c10abb282e1b | 299 | GameBuddy-Android | MIT License |
app/src/main/java/com/tanjiajun/androidgenericframework/di/UserModule.kt | TanJiaJunBeyond | 198,204,295 | false | {"Kotlin": 119462} | package com.tanjiajun.androidgenericframework.di
import androidx.lifecycle.ViewModel
import com.tanjiajun.androidgenericframework.ui.user.activity.PersonalCenterActivity
import com.tanjiajun.androidgenericframework.ui.user.activity.RegisterAndLoginActivity
import com.tanjiajun.androidgenericframework.ui.user.fragment.... | 6 | Kotlin | 34 | 198 | 30c94d382e570076111417d24c154c9a53034eaa | 1,505 | AndroidGenericFramework | Apache License 2.0 |
src/kotlin/io/primera/serialization/adapters/RuneMateTypeAdapterFactory.kt | Torsm | 125,285,479 | false | null | package io.primera.serialization.adapters
import com.google.gson.Gson
import com.google.gson.TypeAdapter
import com.google.gson.TypeAdapterFactory
import com.google.gson.reflect.TypeToken
import com.runemate.game.api.hybrid.location.Area
import com.runemate.game.api.hybrid.location.Coordinate
object RuneMateTypeAdapt... | 0 | Kotlin | 0 | 2 | 63ee551a1bbf94155711f314f40d786b625668cf | 756 | runemate-typeadapters | MIT License |
tools/test_suite/src/main/java/com/grab/test/AllTests.kt | grab | 379,151,712 | false | {"Kotlin": 372586, "Starlark": 172838, "Java": 2517, "Smarty": 2052} | // Copyright 2014 The Bazel Authors. All rights reserved.
//
// 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 appl... | 13 | Kotlin | 14 | 38 | 0540712597f4346f7573bbd01dfe1bd93a7060bb | 1,193 | grab-bazel-common | Apache License 2.0 |
jdrfandroidbleparser/src/test/java/org/ehealthinnovation/jdrfandroidbleparser/encodedvalue/bgmmeasurement/FlagsTest.kt | ehealthinnovation | 144,159,341 | false | {"Kotlin": 123751} | package org.ehealthinnovation.jdrfandroidbleparser.encodedvalue.bgmmeasurement
import junit.framework.Assert
import org.ehealthinnovation.jdrfandroidbleparser.BaseTest
import org.ehealthinnovation.jdrfandroidbleparser.bgm.encodedvalue.bgmmeasurement.Flags
import org.junit.Assert.*
import org.junit.Test
import java.uti... | 2 | Kotlin | 0 | 0 | 9a3ba19f22ee8981a9e996747fe668f7780934a8 | 985 | JDRFAndroid | MIT License |
jdrfandroidbleparser/src/test/java/org/ehealthinnovation/jdrfandroidbleparser/encodedvalue/bgmmeasurement/FlagsTest.kt | ehealthinnovation | 144,159,341 | false | {"Kotlin": 123751} | package org.ehealthinnovation.jdrfandroidbleparser.encodedvalue.bgmmeasurement
import junit.framework.Assert
import org.ehealthinnovation.jdrfandroidbleparser.BaseTest
import org.ehealthinnovation.jdrfandroidbleparser.bgm.encodedvalue.bgmmeasurement.Flags
import org.junit.Assert.*
import org.junit.Test
import java.uti... | 2 | Kotlin | 0 | 0 | 9a3ba19f22ee8981a9e996747fe668f7780934a8 | 985 | JDRFAndroid | MIT License |
lib/src/main/kotlin/com/github/spliffone/client/AuthorizationInterceptor.kt | spliffone | 499,221,062 | false | null | package com.github.spliffone.client
import okhttp3.Interceptor
import okhttp3.Response
class AuthorizationInterceptor(private val token: String): Interceptor {
override fun intercept(chain: Interceptor.Chain): Response {
val request = chain.request().newBuilder()
.addHeader("Authorization", ba... | 0 | Kotlin | 0 | 0 | d95043952d36ad0037cc5a8491eec5782afbac08 | 488 | github-graphql | MIT License |
shared/src/main/kotlin/dev/fastmc/graphics/shared/opengl/BufferObject.kt | FastMinecraft | 447,964,530 | false | {"Kotlin": 812223, "Java": 295977, "GLSL": 19607} | package dev.fastmc.graphics.shared.opengl
import java.nio.ByteBuffer
sealed class BufferObject : IGLObject, IGLTargetBinding {
override val id = glCreateBuffers()
var size = 0; private set
open fun allocate(size: Int, flags: Int): BufferObject {
this.size = size
return this
}
op... | 1 | Kotlin | 1 | 61 | 74eb9d6af0d4829caa8a6069f39bb3e0fa168538 | 1,615 | fastmc-graphics | MIT License |
example/src/iosMain/kotlin/xyz/schwaab/example/KoinOS.kt | vitorhugods | 251,139,967 | false | null | package xyz.schwaab.example
import com.russhwolf.settings.AppleSettings
import org.koin.dsl.module
fun initKoin() = initKoin {}
actual val platformModule = module {
single { AppleSettings.Factory().create("EXAMPLE_SETTINGS") }
} | 0 | Kotlin | 0 | 0 | cc560a5f81cd35f911a8b38193e50b22b98ae30c | 234 | KotlinNativeMobileExample | Apache License 2.0 |
lib/src/commonMain/kotlin/com/wepin/cm/widgetlib/types/UpdateTermsAccepedResponse.kt | WepinWallet | 845,423,288 | false | {"Kotlin": 164934, "Ruby": 2982, "Swift": 580, "JSON": 463} | package com.wepin.cm.widgetlib.types
import kotlinx.serialization.Serializable
@Serializable
data class UpdateTermsAccepedResponse(
val termsAccepted: ITermsAccepted
)
| 0 | Kotlin | 0 | 0 | 2f575ff3ac86384ad55ac70ac9eb62a3f7530170 | 174 | wepin-compose-sdk-widget-v1 | Apache License 2.0 |
app/src/main/java/com/chrynan/androidsearch/ui/layout/BaseRenderLayout.kt | chRyNaN | 161,237,148 | false | null | package com.chrynan.androidsearch.ui.layout
import com.chrynan.androidsearch.util.AppContext
import com.chrynan.androidviews.layout.AndroidRenderLayout
import com.chrynan.inlinepixel.ContextScreenDimensionUnitConverter
import com.chrynan.inlinepixel.ScreenDimensionUnitConverter
abstract class BaseRenderLayout<T>(cont... | 0 | Kotlin | 0 | 0 | ade50a4bda75e3e71d86457565e63573feaf597b | 575 | Android-Search | Apache License 2.0 |
app/src/main/java/dorin_roman/app/kongfujava/ui/components/layout/IwEnLayout.kt | roma321m | 555,795,950 | false | {"Kotlin": 480911} | package dorin_roman.app.kongfujava.ui.components.layout
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.platform.LocalLayoutDirection
import androidx.compose.ui.unit.LayoutDirection
@Composable
fun IwEnLayout(content: @Composable () -> Un... | 0 | Kotlin | 1 | 2 | 3c4f89aae10ca3f86e2cb6c1b0ecef3cb47729cd | 641 | Kong-Fu-Java | Apache License 2.0 |
definitions/src/main/kotlin-gen/xyz/urbanmatrix/mavlink/definitions/common/WifiConfigAp.kt | urbanmatrix | 484,943,163 | false | null | package xyz.urbanmatrix.mavlink.definitions.common
import java.nio.ByteBuffer
import java.nio.ByteOrder
import kotlin.ByteArray
import kotlin.Int
import kotlin.String
import kotlin.Unit
import xyz.urbanmatrix.mavlink.api.GeneratedMavField
import xyz.urbanmatrix.mavlink.api.GeneratedMavMessage
import xyz.urbanmatrix.ma... | 1 | Kotlin | 4 | 9 | 8f480256eeaac5755a2ce5582c338a4b30c7e178 | 4,314 | mavlink-kotlin | Apache License 2.0 |
basick/src/main/java/com/mozhimen/basick/elemk/android/net/NetworkCallbackProxy.kt | mozhimen | 353,952,154 | false | null | package com.mozhimen.basick.elemk.android.net
import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
import android.net.NetworkRequest
import androidx.lifecycle.LifecycleOwner
import com.mozhimen.basick.lintk.optin.annors.ALintKOptIn_ApiInit_ByLazy
import com.mozhi... | 0 | Kotlin | 6 | 112 | efbc55d940b169511106a9b813513fc3f86df1fb | 1,221 | SwiftKit | Apache License 2.0 |
app/src/main/java/info/epifit/imageslideshow/MainActivity.kt | EPIFIT | 424,969,753 | true | {"Kotlin": 30142, "Java": 1150} | package info.epifit.imageslideshow
import android.os.Bundle
import android.view.View
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import info.epifit.imageslider.ImageSlider
import info.epifit.imageslider.constants.ActionTypes
import info.epifit.imageslider.constants.ScaleTypes
import in... | 0 | Kotlin | 0 | 0 | 1359abc94fec3cf6ecd5ce99e31598a715fb320b | 2,004 | ImageSlideshow | Apache License 2.0 |
domain/src/test/java/com/thomas/domain/UserDetailsStubs.kt | thomasmarquesbr | 807,823,363 | false | {"Kotlin": 108941} | package com.thomas.domain
import com.thomas.domain.model.UserDetailsModel
internal object UserDetailsStubs {
val userDetails = UserDetailsModel(
nickname = "nickname",
name = "name",
company = "company",
avatarUrl = "https://avatar.url",
location = "location",
follo... | 0 | Kotlin | 0 | 0 | c72724f8d69ea40cca0287d9d1724b86a9d48328 | 400 | github_android_app | The Unlicense |
server/src/main/kotlin/com/github/vyadh/teamcity/keyvault/server/TokenConnector.kt | vyadh | 151,857,824 | false | {"Kotlin": 60130, "Java": 2379} | package com.github.vyadh.teamcity.keyvault.server
import com.github.vyadh.teamcity.keyvault.common.TokenRequestSettings
interface TokenConnector {
fun requestToken(settings: TokenRequestSettings): TokenResponse
}
| 4 | Kotlin | 2 | 8 | 6ac296421d0273eaca7bc6e933b0a84869675061 | 219 | teamcity-azure-keyvault-plugin | Apache License 2.0 |
app/src/main/java/com/onemb/messengeros/pages/ConversationListScreen.kt | one-mb-rai | 751,007,119 | false | {"Kotlin": 29164} | package com.onemb.messengeros.pages
import SmsViewModel
import android.util.Log
import androidx.compose.foundation.background
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.found... | 0 | Kotlin | 0 | 0 | 74569f8007b7a21869ceec86fd98d10eb70c4678 | 4,477 | MessenGer | MIT License |
src/main/kotlin/com/example/springkotlintemplate/Log/LogInfo/Repository/LogInfoDocument.kt | Beamworks-Inc | 560,423,563 | false | null | package com.example.springkotlintemplate.Log.LogInfo.Repository
import com.example.springkotlintemplate.Log.Dto.LogInfoDto
import org.springframework.data.annotation.Id
import org.springframework.data.annotation.ReadOnlyProperty
import org.springframework.data.elasticsearch.annotations.Document
/**
* @Document 어노테이션... | 1 | Kotlin | 0 | 0 | 5ff6c7f43334450492424970a64d099b4dc53008 | 1,184 | User-Managerment-Server | Apache License 2.0 |
app/src/main/java/com/example/todolist/core/base/BaseViewModel.kt | bitua79 | 487,218,363 | false | {"Kotlin": 69845} | package com.example.todolist.core.base
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
abstract class BaseViewModel(
) : ViewModel() {
private val refreshing = MutableLiveData<Boolean>()
fun refresh() {
refreshing.value = true
}
} | 0 | Kotlin | 0 | 0 | a348a75c5876f6271ef20eefa10c26758e6e7089 | 286 | todo-list-app | MIT License |
home/src/main/java/com/kotlin/android/home/ui/toplist/TopListGameFragment.kt | R-Gang-H | 538,443,254 | false | null | package com.kotlin.android.home.ui.toplist
import androidx.fragment.app.viewModels
import androidx.recyclerview.widget.LinearLayoutManager
import com.kotlin.android.core.BaseVMFragment
import com.kotlin.android.app.data.entity.toplist.GameTopList
import com.kotlin.android.app.data.entity.toplist.IndexAppGameTopList
im... | 0 | Kotlin | 0 | 1 | e63b1f9a28c476c1ce4db8d2570d43a99c0cdb28 | 3,339 | Mtime | Apache License 2.0 |
teamcity-export/src/main/kotlin/org/gradle/devprod/collector/teamcity/TeamcityClientService.kt | gradle | 353,641,435 | false | {"Kotlin": 100519, "Java": 7385, "Procfile": 151} | package org.gradle.devprod.collector.teamcity
import com.fasterxml.jackson.databind.ObjectMapper
import io.micrometer.core.instrument.Counter
import io.micrometer.core.instrument.Gauge
import io.micrometer.core.instrument.MeterRegistry
import io.micrometer.core.instrument.Tags
import org.jetbrains.teamcity.rest.BuildI... | 3 | Kotlin | 5 | 7 | 87e9791670cb64518db4ad0144dab6bd714991eb | 9,485 | bt-dev-prod-data-collector | Apache License 2.0 |
sample/src/main/java/com/xingray/rotatelayoutmanager/sample/page/RotateRecyclerViewTestActivity.kt | XingRay | 190,392,611 | false | null | package com.xingray.rotatelayoutmanager.sample.page
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.view.View
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.RecyclerVie... | 0 | Kotlin | 0 | 0 | 3001b00b3ff983e4fb65b7ebb6b82e6e611a7a6e | 2,940 | RotateLayoutManager | Apache License 2.0 |
src/main/kotlin/osahner/service/AppAuthenticationManager.kt | osahner | 118,467,935 | false | null | package osahner.service
import org.springframework.security.authentication.AuthenticationManager
import org.springframework.security.authentication.BadCredentialsException
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken
import org.springframework.security.core.Authentication
impo... | 6 | null | 19 | 52 | 6c3f1411666926e025cbb544c37a87f73824e7e1 | 1,148 | kotlin-spring-boot-rest-jpa-jwt-starter | MIT License |
kittybot/src/main/kotlin/org/bezsahara/kittybot/telegram/classes/queries/results/InlineQueryResultLocation.kt | bezsahara | 846,146,531 | false | {"Kotlin": 752625} | package org.bezsahara.kittybot.telegram.classes.queries.results
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import org.bezsahara.kittybot.telegram.classes.keyboards.InlineKeyboardMarkup
import org.bezsahara.kittybot.telegram.classes.messages.input.InputMessageContent
/**
* Rep... | 0 | Kotlin | 1 | 5 | a0b831c9f4ad00f681b2bfba5376e321766a8cfe | 2,733 | TelegramKitty | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/riskprofiler/exception/PrisonException.kt | ministryofjustice | 166,393,369 | false | {"Kotlin": 260173, "Shell": 1499, "Dockerfile": 1087} | package uk.gov.justice.digital.hmpps.riskprofiler.exception
import java.util.function.Supplier
class PrisonException(message: String?) : RuntimeException(message), Supplier<PrisonException> {
override fun get(): PrisonException {
return PrisonException(message)
}
@Synchronized
override fun fillInStackTra... | 15 | Kotlin | 1 | 3 | 9bbfbe0b4daf412987969df1ef99c760bb307d7f | 1,034 | offender-risk-profiler | MIT License |
libs/task/main/libs/task/TaskService.kt | navikt | 797,896,421 | false | {"Kotlin": 81455} | package libs.task
import libs.postgres.concurrency.transaction
import libs.utils.appLog
import libs.utils.secureLog
object TaskService {
private fun <T> tryInto(data: T) = Ressurs.success(data)
suspend fun finnAntallTaskerSomKreverOppfølging(): Ressurs<Long> {
val result = runCatching {
... | 1 | Kotlin | 0 | 0 | d4cf8aefed24c63aac8da1ca02d71b8964b86355 | 3,900 | helved-libs | MIT License |
buildmetrics/src/main/java/com/nimroddayan/buildmetrics/cache/CacheManager.kt | Nimrodda | 217,775,239 | false | null | /*
* Copyright 2019 <NAME> nimroddayan.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... | 2 | Kotlin | 0 | 12 | 392cc022c82b16d12e42af8a970435257f9e74bc | 1,929 | buildmetrics-gradle-plugin | Apache License 2.0 |
app/src/main/java/dorin_roman/app/kongfujava/screens/login/child/ChildLoginStepState.kt | roma321m | 555,795,950 | false | {"Kotlin": 480911} | package dorin_roman.app.kongfujava.screens.login.child
enum class ChildLoginStepState {
CODE, NAME, AGE, IMAGE, FINAL
} | 0 | Kotlin | 1 | 2 | 3c4f89aae10ca3f86e2cb6c1b0ecef3cb47729cd | 124 | Kong-Fu-Java | Apache License 2.0 |
Conductor/app/src/main/kotlin/talks/conductor/commons/MainActivity.kt | esafirm | 113,326,270 | false | null | package talks.conductor.commons
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.ViewGroup
import android.widget.FrameLayout
import com.bluelinelabs.conductor.ChangeHandlerFrameLayout
import com.bluelinelabs.conductor.Router
import com.bluelinel... | 0 | Kotlin | 3 | 3 | 29a92839466c60be294eea06e6ea1441da0e9863 | 2,820 | talks-codes | MIT License |
libB/src/main/java/package_B_14/Foo_B_1414.kt | lekz112 | 118,451,085 | false | null | package package_B_14
class Foo_B_1414 {
fun foo0() {
var i=0
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.r... | 0 | Kotlin | 0 | 0 | 8182b7f6e92f9d65efb954c32ca640fe50ae6b79 | 584 | ModuleTest | Apache License 2.0 |
src/test/kotlin/structures/BinaryTreeTest.kt | DmitryTsyvtsyn | 418,166,620 | false | {"Kotlin": 223256} | package structures
import org.junit.Test
import org.junit.jupiter.api.Assertions.*
internal class BinaryTreeTest {
@Test
fun test_add() {
val tree = BinaryTree()
tree.add(5)
tree.add(10)
tree.add(4)
assertEquals(listOf(4, 5, 10), tree.traverseInOrder().sorted())
... | 0 | Kotlin | 135 | 767 | 7ec0bf4f7b3767e10b9863499be3b622a8f47a5f | 2,279 | Kotlin-Algorithms-and-Design-Patterns | MIT License |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/activities/editor/response/ResponseViewState.kt | Waboodoo | 34,525,124 | false | null | package ch.rmy.android.http_shortcuts.activities.editor.response
import ch.rmy.android.framework.utils.localization.Localizable
import ch.rmy.android.framework.viewmodel.viewstate.DialogState
import ch.rmy.android.http_shortcuts.data.enums.ResponseDisplayAction
import ch.rmy.android.http_shortcuts.data.models.Response... | 31 | Kotlin | 94 | 645 | c78059462ad78d382bc12ff56cd0432b5fa78c96 | 2,113 | HTTP-Shortcuts | MIT License |
alchemy-core/src/commonTest/kotlin/com/alchemy/sdk/Resource.kt | tguerin | 534,856,094 | false | null | package com.alchemy.sdk
expect object Resource {
fun readText(resourceName: String): String
}
| 4 | Kotlin | 0 | 3 | 9768a7ab07d9955e3036c32b1f4497527f237b34 | 99 | alchemy-sdk-kotlin | MIT License |
app/src/main/java/com/tensesapp/ui/screen/AboutScreen.kt | RanggaNf | 802,828,457 | false | {"Kotlin": 238849} | package com.tensesapp.ui.screen
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material.Icon
import androidx.compose.material.IconButton
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compo... | 0 | Kotlin | 1 | 1 | 84cc6594c945178544fa14c2be95a7dee8a1425d | 4,796 | TensesApp | MIT License |
v2-client/src/jvmTest/kotlin/com/bselzer/gw2/v2/client/unit/ProfessionTests.kt | Woody230 | 388,820,096 | false | {"Kotlin": 750899} | package com.bselzer.gw2.v2.client.unit
import com.bselzer.gw2.v2.model.profession.ProfessionId
import com.bselzer.gw2.v2.model.profession.track.SkillTrack
import com.bselzer.gw2.v2.model.profession.track.TraitTrack
import com.bselzer.gw2.v2.model.skill.SkillId
import com.bselzer.gw2.v2.model.trait.TraitId
import io.kt... | 2 | Kotlin | 0 | 2 | 32f1fd4fc4252dbe886b6fc0f4310cf34ac2ef27 | 1,655 | GW2Wrapper | Apache License 2.0 |
app/src/main/java/de/uni/hannover/hci/mi/team6/covidcheckin/model/RestaurantData.kt | fonok3 | 314,203,432 | false | null | package de.uni.hannover.hci.mi.team6.covidcheckin.model
import kotlinx.serialization.Serializable
/**
* Data class used for Personal Data of Customers
* @author Elias
*/
@Serializable
data class RestaurantData(
val restaurantName: String,
val ownerFirstName: String,
val ownerlastName: String,
val s... | 0 | Kotlin | 0 | 0 | 9dd9f075453d1122ad5c7dad27d636fc5103c86c | 441 | COVID-Check-In | MIT License |
gradle-plugins/core/src/main/kotlin/com/varabyte/kobweb/gradle/core/KobwebCorePlugin.kt | varabyte | 389,223,226 | false | null | package com.varabyte.kobweb.gradle.core
import com.varabyte.kobweb.gradle.core.extensions.KobwebBlock
import com.varabyte.kobweb.gradle.core.extensions.YarnLockChangedStrategy
import com.varabyte.kobweb.gradle.core.extensions.createYarnBlock
import com.varabyte.kobweb.gradle.core.extensions.yarn
import com.varabyte.ko... | 100 | Kotlin | 31 | 771 | fcda655ef9ba10512377c925ccde758517bf12ea | 3,376 | kobweb | Apache License 2.0 |
random-kt-data/src/main/java/de/alpharogroup/random/SecureRandomBuilder.kt | astrapi69 | 225,646,871 | false | null | /**
* The MIT License
*
* Copyright (C) 2015 <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, modi... | 0 | Kotlin | 0 | 0 | defbecfef76e4801afc1d9671c9a75d8928c3398 | 4,093 | randomizer-kt | MIT License |
app/src/androidTest/java/me/srodrigo/kotlinwars/testutils/CustomActivityTestRule.kt | srodrigo | 52,747,382 | false | null | package me.srodrigo.kotlinwars.testutils
import android.app.Activity
import android.content.Intent
import android.os.AsyncTask
import android.os.Handler
import android.os.Looper
import android.support.test.InstrumentationRegistry
import android.support.test.rule.ActivityTestRule
import me.srodrigo.kotlinwars.ApiServic... | 0 | Kotlin | 0 | 0 | a6cd2f71a3422ecebfda3cee2cb62c0ed86a0536 | 1,429 | Kotlin-Wars | MIT License |
app/src/main/java/com/example/newwriters/SliderActivity.kt | Gopa11313 | 363,574,585 | false | {"Kotlin": 143107} | package com.example.newwriters
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.ViewGroup
import android.widget.*
import androidx.core.content.ContextCompat
import androidx.core.view.get
import androidx.viewpager2.widget.ViewPager2
import com.ex... | 0 | Kotlin | 0 | 0 | 5e92557c4ca701868e8f9e86bdeec2391dde6eb4 | 4,837 | NewWriters-Android- | MIT License |
src/gaea/src/main/kotlin/com/synebula/gaea/domain/model/Entity.kt | synebula-myths | 205,819,036 | false | null | package com.synebula.gaea.domain.model
abstract class Entity<TKey> : IEntity<TKey>
| 0 | Kotlin | 0 | 0 | c39f9d77c3a3b2bdc308a724f2be19c1ec1bd00c | 84 | gaea | MIT License |
app/src/main/java/com/mburakcakir/cryptopricetracker/data/db/CryptoDatabase.kt | mburakcakir | 358,273,321 | false | null | package com.mburakcakir.cryptopricetracker.data.db
import androidx.room.Database
import androidx.room.RoomDatabase
import com.mburakcakir.cryptopricetracker.data.db.dao.CryptoDao
import com.mburakcakir.cryptopricetracker.data.db.entity.CoinMarketEntity
@Database(
entities = [CoinMarketEntity::class],
version ... | 0 | Kotlin | 3 | 9 | 7a1e0a0978e77fcd2c94b8431f39cb32450159bc | 442 | CryptoPriceTracker | Apache License 2.0 |
src/test/kotlin/com/github/rs3vans/krypto/mac.kt | SayyedF | 75,643,266 | true | {"Kotlin": 16062} | package com.github.rs3vans.krypto
import com.github.rs3vans.krypto.key.Key
import com.github.rs3vans.krypto.message.Mac
import com.github.rs3vans.krypto.util.decodeBase64
import com.github.rs3vans.krypto.util.encodeBase64String
import org.junit.Assert.assertEquals
import org.junit.Test
class MacTests {
val key =... | 0 | Kotlin | 0 | 0 | 2f4b29c1525eb9476dfe62fd12da3c598a89559d | 726 | krypto | MIT License |
src/main/kotlin/io/heartpattern/mcremapper/parser/csrg/MappingsCsrgParser.kt | finalchild | 276,054,970 | true | {"Kotlin": 50904} | package io.heartpattern.mcremapper.parser.csrg
import io.heartpattern.mcremapper.model.*
import io.heartpattern.mcremapper.model.ClassMapping
import io.heartpattern.mcremapper.parser.MappingsParser
object MappingsCsrgParser : MappingsParser {
override fun parse(raw: String): Mappings {
val lines = raw.lin... | 0 | Kotlin | 0 | 0 | d3bd912b48ca9f3fced8d219c08aba42aecb5016 | 2,304 | MC-Remapper | MIT License |
src/main/kotlin/org/rooftop/netx/engine/AbstractTransactionManager.kt | rooftop-MSA | 751,298,974 | false | {"Kotlin": 102910, "Java": 7142} | package org.rooftop.netx.engine
import org.rooftop.netx.api.Codec
import org.rooftop.netx.api.TransactionException
import org.rooftop.netx.api.TransactionManager
import org.rooftop.netx.engine.logging.info
import org.rooftop.netx.engine.logging.infoOnError
import org.rooftop.netx.engine.logging.warningOnError
import o... | 7 | Kotlin | 0 | 5 | 78d86e278130a24aa5f2420a4d93acccd10b6233 | 9,656 | Netx | Apache License 2.0 |
common-libs-backend/foundation/src/main/kotlin/com/github/francescojo/lib/text/ToStringHelper.kt | FrancescoJo | 534,724,231 | false | {"Kotlin": 252831, "Vim Snippet": 765} | /*
* kopringboot-multimodule-monorepo-template
* Distributed under MIT licence
*/
package com.github.francescojo.lib.text
/**
* @since 2024-08-23
*/
object ToStringHelper {
fun prettyToString(
toStringTarget: Any,
attributes: Map<String, Any?>,
printSignature: Boolean = true,
s... | 0 | Kotlin | 1 | 25 | 1e37077fd9e10a249f4319d0ec0016887ce06f63 | 565 | kopringboot-multimodule-template | MIT License |
libs/membership/membership-datamodel/src/main/kotlin/net/corda/membership/datamodel/MemberSignatureEntity.kt | corda | 346,070,752 | false | null | package net.corda.membership.datamodel
import net.corda.db.schema.DbSchema
import net.corda.v5.base.types.MemberX500Name
import java.util.Objects
import javax.persistence.Column
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.IdClass
import javax.persistence.Table
/**
* An entity... | 82 | Kotlin | 7 | 24 | 17f5d2e5585a8ac56e559d1c099eaee414e6ec5a | 1,541 | corda-runtime-os | Apache License 2.0 |
app/src/main/java/com/news/criticaltechworks/feature_news/presentation/home/components/ArticleCell.kt | abhikommen | 558,044,406 | false | {"Kotlin": 71239} | package com.news.criticaltechworks.feature_news.presentation.home.components
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Divider
import... | 1 | Kotlin | 0 | 0 | 82669a678a510f9368564359a4c9ba6e227a2bc1 | 4,479 | newzyy | Apache License 2.0 |
scriptgen/src/main/kotlin/info/benjaminhill/scriptgen/Script.kt | salamanders | 453,775,872 | false | null | package info.benjaminhill.scriptgen
import info.benjaminhill.utils.NormalVector2D
import mu.KLoggable
import org.apache.commons.math4.geometry.euclidean.twod.Line
import org.apache.commons.math4.geometry.euclidean.twod.Vector2D
import org.w3c.dom.Element
import java.awt.BasicStroke
import java.awt.Color
import java.aw... | 1 | Kotlin | 0 | 0 | 1e26547c2e2a5be709c9787ef3510ede45414488 | 6,040 | sketchy-ev3 | MIT License |
kotlin-uniffi-base/src/commonMain/kotlin/RustBuffer.kt | wireapp | 587,403,130 | false | null | import okio.Buffer
// TODO remove suppress when https://youtrack.jetbrains.com/issue/KT-29819/New-rules-for-expect-actual-declarations-in-MPP is solved
@Suppress("NO_ACTUAL_FOR_EXPECT")
expect class RustBuffer
@Suppress("NO_ACTUAL_FOR_EXPECT")
expect class RustBufferPointer
expect fun RustBuffer.toBuffer(): Buffer
... | 3 | Rust | 0 | 1 | d16bedd75ece357111d6e95c3148aed196b02161 | 542 | uniffi-kotlin-multiplatform-bindings | Apache License 2.0 |
rtsp-client/src/main/java/ir/am3n/utils/VideoCodecType.kt | am3n | 557,936,695 | false | {"Kotlin": 183115} | package ir.am3n.utils
enum class VideoCodecType {
H264, H265, UNKNOWN
} | 4 | Kotlin | 3 | 16 | f54b0cb2537f827fe1981d7ecbdbf5eea48c1934 | 76 | RTSP-Client-Android | Apache License 2.0 |
explosion-gradle-plugin/src/main/kotlin/lol/bai/explosion/gradle/internal/PlatformConfig.kt | badasintended | 697,683,788 | false | {"Kotlin": 23609} | package lol.bai.explosion.gradle.internal
import lol.bai.explosion.gradle.ExplosionPlatformConfig
import org.gradle.api.Transformer
import java.nio.file.Path
class PlatformConfig(
val id: String
) : ExplosionPlatformConfig {
var transformer: Transformer<Path, Path>? = null
override fun transformer(trans... | 1 | Kotlin | 0 | 2 | 97909605dcbb4856951c3b72f087bc4ab22dfdf7 | 402 | explosion | MIT License |
Meld-Module-Player/src/main/kotlin/io/github/daylightnebula/meld/player/packets/JavaDifficultyPacket.kt | DaylightNebula | 652,923,400 | false | null | package io.github.daylightnebula.meld.player.packets
import io.github.daylightnebula.meld.server.networking.common.AbstractReader
import io.github.daylightnebula.meld.server.networking.common.ByteWriter
import io.github.daylightnebula.meld.server.networking.java.JavaPacket
import io.github.daylightnebula.meld.server.n... | 0 | null | 0 | 1 | 2290a5266ae56ef2e59cad88fc1f38e825b2cc88 | 656 | Meld | Apache License 2.0 |
app/src/main/java/com/ead/project/dreamer/domain/apis/app/GetAppStatusVersion.kt | darkryh | 490,353,600 | false | {"Kotlin": 766116, "Java": 2316} | package com.ead.project.dreamer.domain.apis.app
import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.ead.project.dreamer.app.model.AppBuild
import com.ead.project.dreamer.data.AnimeRepository
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
import javax.inject.Inject
c... | 0 | Kotlin | 1 | 2 | 34fe195fe9fec58c7a2b71b8646c1e8c5988a281 | 1,314 | Dreamer | MIT License |
app/src/main/java/com/wb/contactapp/network/DefaultNetworkConnectivity.kt | waynils | 747,230,996 | false | {"Kotlin": 82427} | package com.wb.contactapp.network
import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
import android.net.NetworkRequest
import android.os.Build
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flo... | 0 | Kotlin | 0 | 0 | 1c0064b1a63d37d4cc3987b321a954c3f25ea95d | 2,486 | contactApp | Apache License 2.0 |
kotlin/2020/round-1b/join-the-ranks/src/main/kotlin/Solution.kt | ShreckYe | 345,946,821 | false | null | fun main() {
val T = readLine()!!.toInt()
repeat(T) { t ->
val (R, S) = readLine()!!.splitToSequence(' ').map(String::toInt).toList()
val ans = sortOps(R, S).toList()
println("Case #${t + 1}: ${ans.size}\n${ans.asSequence().map { "${it.a} ${it.b}" }.joinToString("\n")}")
}
}
data ... | 0 | Kotlin | 1 | 1 | 743540a46ec157a6f2ddb4de806a69e5126f10ad | 844 | google-code-jam | MIT License |
app/src/main/java/com/bristot/listinha/data/builder/RetrofitBuilder.kt | matheusbristot | 491,907,362 | false | {"Kotlin": 20016} | package com.bristot.listinha.data.builder
import com.jakewharton.retrofit2.converter.kotlinx.serialization.asConverterFactory
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.json.Json
import okhttp3.MediaType
import retrofit2.Retrofit
import javax.inject.Inject
private const val... | 0 | Kotlin | 0 | 1 | 6ed781c41283a71e064d59ec2b4890c107b7ebf6 | 766 | listinha | MIT License |
app/src/main/java/com/ozturksahinyetisir/cryptoapp/data/model/CryptoInfo.kt | ozturksahinyetisir | 787,775,514 | false | {"Kotlin": 32143} | package com.ozturksahinyetisir.cryptoapp.data.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import com.ozturksahinyetisir.cryptoapp.util.PlatformConverter
import com.ozturksahinyetisir.cryptoapp.util.QuoteConverter
import com.ozturksahinyetisir.cryptoapp.util.Tag... | 0 | Kotlin | 0 | 0 | da445918f77e417b8eb2a8d749f75c8d666cd0cc | 1,984 | CryptoApp | MIT License |
src/main/kotlin/org/snd/metadata/providers/nautiljon/model/SearchResult.kt | Snd-R | 463,859,568 | false | null | package org.snd.metadata.providers.nautiljon.model
import org.snd.metadata.model.Provider
import org.snd.metadata.model.SeriesSearchResult
import java.time.Year
data class SearchResult(
val id: SeriesId,
val title: String,
val alternativeTitle: String?,
val description: String?,
val imageUrl: Stri... | 11 | Kotlin | 9 | 99 | 0584078f460c5d8c7b740bbe77905fab1c0ad105 | 647 | komf | MIT License |
src/main/kotlin/me/ddivad/judgebot/dataclasses/Note.kt | ianagbip1oti | 318,310,236 | true | {"Kotlin": 134588, "Dockerfile": 282, "Shell": 178} | package me.ddivad.judgebot.dataclasses
import org.joda.time.DateTime
data class Note(val note: String,
val moderator: String,
val dateTime: Long,
val id: Int)
data class Info(val message: String,
val moderator: String,
val dateTime: Long... | 0 | Kotlin | 0 | 0 | 906112f13c19c52b4cdb15cfdc04446b5a550003 | 378 | JudgeBot | MIT License |
app/src/main/java/com/wonrax/mybk/network/utils/HttpUtils.kt | wonrax | 402,995,991 | false | {"Kotlin": 143985, "Shell": 182} | package com.wonrax.mybk.network.utils
object HttpUtils {
/**
* Turn an HTTP url to an HTTPS URL
* @param url The HTTP url to be converted
*/
fun httpToHttpsURL(url: String): String {
return url.substring(0, 4) + 's' + url.substring(4)
}
}
| 4 | Kotlin | 1 | 7 | 418854c5660f1a12d1027936a1197ef0313659f2 | 275 | mybk-mobile | MIT License |
app/src/main/java/com/ubaidmerchant/findamatch/data/local/dao/ResultsDao.kt | ubaid-merchant | 293,975,010 | false | null | package com.ubaidmerchant.findamatch.data.local.dao
import androidx.room.*
import com.ubaidmerchant.findamatch.model.ResultsModel
import kotlinx.coroutines.flow.Flow
/**
* Data Access Object (DAO) for [com.ubaidmerchant.findamatch.data.local.FamResultsDatabase]
*/
@Dao
interface ResultsDao {
/**
* Inserts... | 0 | Kotlin | 0 | 0 | fccb8cdb68e1fdf761ecbf2c5f5036ba18e23661 | 1,651 | FindAMatch | MIT License |
app/src/main/java/com/evourse/instaclone/adapters/delegateAdapter/VideoDelegateAdapter.kt | dayashanknar | 736,360,187 | false | {"Kotlin": 38103} | package com.evourse.NovaRaze.ui.adapters.delegateAdapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.media3.common.MediaItem
import androidx.media3.exoplayer.ExoPlayer
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.evourse.instaclone.R
i... | 0 | Kotlin | 0 | 0 | 72d4d9f1e711327c3cdf139ec935b9b82827f2ad | 3,421 | anonym | MIT License |
tensorflow-litex/src/main/java/com/dailystudio/tensorflow/litex/LiteUseCaseViewModel.kt | dailystudio | 267,263,865 | false | null | package com.dailystudio.tensorflow.litex
import android.app.Application
import androidx.lifecycle.*
import com.dailystudio.devbricksx.development.Logger
import com.dailystudio.devbricksx.preference.PrefsChange
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.launch
import org.tensorflow.lite.support.mo... | 1 | Kotlin | 12 | 47 | 1ce173bdc6dd2ac2a0c83197ff27ded3ed381df2 | 4,077 | tensorflow-lite-examples-android | Apache License 2.0 |
metrics-logic/src/test/kotlin/com/coach/flame/metrics/services/ClientsMetricsServiceImplTest.kt | FlameNutrition | 333,186,829 | false | null | package com.coach.flame.metrics.services
import com.coach.flame.jpa.entity.ClientStatus
import com.coach.flame.jpa.entity.maker.ClientBuilder
import com.coach.flame.jpa.entity.maker.ClientMaker
import com.coach.flame.jpa.entity.maker.CoachBuilder
import com.coach.flame.jpa.entity.maker.CoachMaker
import com.coach.flam... | 20 | Kotlin | 0 | 0 | 7c1c498be8afbb39848a2f6eb27e97099ebda58f | 2,186 | flame-coach-service | MIT License |
braintrust-kotlin-core/src/test/kotlin/com/braintrustdata/api/models/ProjectTagTest.kt | braintrustdata | 752,086,150 | false | {"Kotlin": 4261603, "Shell": 3646, "Dockerfile": 399} | // File generated from our OpenAPI spec by Stainless.
package com.braintrustdata.api.models
import java.time.OffsetDateTime
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
class ProjectTagTest {
@Test
fun createProjectTag() {
val projectTag =
ProjectTa... | 0 | Kotlin | 0 | 0 | cd9ea64cce736ac18071c0f4622aefd9e3d1b79c | 1,332 | braintrust-kotlin | Apache License 2.0 |
src/main/kotlin/su/sonoma/lostriver/client/renderer/ReaperArmorRenderer.kt | saddydead1 | 837,735,532 | false | {"Kotlin": 210174, "Java": 475} | package su.sonoma.lostriver.client.renderer
import net.minecraft.resources.ResourceLocation
import software.bernie.example.item.WolfArmorItem
import software.bernie.geckolib.model.DefaultedItemGeoModel
import software.bernie.geckolib.renderer.GeoArmorRenderer
import su.sonoma.lostriver.item.ReaperArmorItem
class Reap... | 0 | Kotlin | 0 | 2 | f6579c09f6661bbc244f392871ecbe08f86531c2 | 453 | lostriver | MIT License |
app/src/main/java/com/anamarin/bitcoinpricesapp/domain/repositories/BitcoinInfoRepository.kt | anamarin09041995 | 228,681,425 | false | null | package com.anamarin.bitcoinpricesapp.domain.repositories
import com.anamarin.bitcoinpricesapp.core.result.Outcome
import com.anamarin.bitcoinpricesapp.data.models.BitcoinChart
import com.anamarin.bitcoinpricesapp.data.models.BitcoinInfoModel
import io.reactivex.Single
interface BitcoinInfoRepository {
fun fetch... | 0 | Kotlin | 0 | 0 | 886261390e5bf1dedf24032bb9b2078512768664 | 446 | BitcoinPricesApp | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/theme/Type.kt | mlegy | 349,530,181 | 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 | 0 | 2 | 1a54c1421f4a1c4d7f4bf43cc44dbd467698fade | 2,257 | weather-app-compose-challenge | Apache License 2.0 |
src/main/kotlin/com/dvpermyakov/graph/visitors/InitMethodVisitor.kt | dvpermyakov | 271,186,666 | false | null | package com.dvpermyakov.graph.visitors
import com.dvpermyakov.graph.utils.Instance
import com.dvpermyakov.graph.utils.parseInstance
import com.dvpermyakov.graph.utils.parseMethodArguments
import com.dvpermyakov.graph.utils.printDependencies
import org.objectweb.asm.MethodVisitor
import org.objectweb.asm.Opcodes
import... | 0 | Kotlin | 0 | 0 | 7464e61cc55c464fc8b71b5355e8fbb9d49adfd0 | 5,491 | graph-gradle-plugin | MIT License |
src/main/kotlin/org/move/lang/core/psi/ext/MvStructLitField.kt | pontem-network | 279,299,159 | false | {"Kotlin": 2180391, "Move": 39421, "Lex": 5509, "HTML": 2114, "Java": 1275} | package org.move.lang.core.psi.ext
import com.intellij.lang.ASTNode
import org.move.lang.core.psi.*
import org.move.lang.core.resolve.ref.MvMandatoryReferenceElement
import org.move.lang.core.resolve.ref.MvPolyVariantReference
import org.move.lang.core.resolve2.ref.MvStructLitFieldReferenceImpl
val MvStructLitField.p... | 3 | Kotlin | 29 | 69 | 51a5703d064a4b016ff2a19c2f00fe8f8407d473 | 2,698 | intellij-move | MIT License |
src/dto/MassenstromResponse.kt | NOWUM | 358,732,934 | false | {"Kotlin": 245354, "TypeScript": 141516, "CSS": 4266, "HTML": 1721, "Dockerfile": 329} | package de.fhac.ewi.dto
data class MassenstromResponse(
val temperatures: List<Double>,
val flowInTemperatures: List<Double>,
val flowOutTemperatures: List<Double>,
val energyHeatDemand: DoubleArray,
val massenstrom: List<Double>
)
| 18 | Kotlin | 0 | 4 | 7c65a8c372df6e3e8b1f2e1c4bc5833ba3dda987 | 253 | grid-optimizer | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/visitscheduler/service/NotificationEventType.kt | ministryofjustice | 409,259,375 | false | {"Kotlin": 1429494, "PLpgSQL": 148899, "FreeMarker": 14114, "Dockerfile": 1541, "Shell": 238} | package uk.gov.justice.digital.hmpps.visitscheduler.service
enum class NotificationEventType(val reviewType: String) {
NON_ASSOCIATION_EVENT("Non-association"),
}
| 0 | Kotlin | 2 | 6 | 9ab9fe6020336f21bf879354326df2fef402abc4 | 166 | visit-scheduler | MIT License |
app/src/main/java/com/voidhash/hearthstonecodex/framework/di/PersistenceModule.kt | VoidHash | 726,691,141 | false | {"Kotlin": 88935} | package com.voidhash.hearthstonecodex.framework.di
import android.app.Application
import androidx.room.Room
import com.voidhash.hearthstonecodex.framework.local.dao.CardBackDao
import com.voidhash.hearthstonecodex.framework.local.dao.CardDao
import com.voidhash.hearthstonecodex.framework.local.dao.InfoDao
import com.v... | 0 | Kotlin | 0 | 0 | 7ff95f3f956b7f5de2e5debedd22fe5a9a409759 | 1,391 | hearthstone-codex | MIT License |
src/main/kotlin/measurements/MeasurementCollection.kt | mhert | 328,806,756 | false | null | package measurements
interface MeasurementCollection : Collection<Measurement> {
}
| 0 | Kotlin | 0 | 0 | d5375ada748662c887d0efded878e67c9d91d67a | 84 | house-measurement-logger | MIT License |
app/src/main/java/com/stanica/speedoxtream/ui/settings/TvCatchupEpgOffsetGuidedFragment.kt | Danini2308 | 587,394,185 | false | {"Java Properties": 13, "Gradle": 50, "Shell": 9, "Markdown": 7, "Batchfile": 8, "Text": 5, "Ignore List": 5, "JSON": 77, "Python": 1, "Proguard": 26, "XML": 397, "Java": 441, "Kotlin": 59, "SVG": 1, "HTML": 1} | package com.stanica.speedoxtream.ui.settings
import android.content.Context
import android.os.Bundle
import androidx.leanback.app.GuidedStepSupportFragment
import androidx.leanback.widget.GuidanceStylist
import androidx.leanback.widget.GuidedAction
import androidx.leanback.widget.GuidedActionsStylist
import android.te... | 1 | null | 1 | 1 | fc502b55a4cc434e9c04e2ce7e12f966ced4e07c | 2,832 | SpeedoXtream | Apache License 2.0 |
remote/src/main/java/com/erdemtsynduev/remote/model/turnserver/IceServer.kt | rohitnotes | 296,275,085 | false | {"Java": 101617, "Kotlin": 50006} | package com.erdemtsynduev.remote.model.turnserver
import androidx.annotation.Keep
@Keep
data class IceServer(
val credential: String,
val maxRateKbps: String,
val urls: List<String>,
val username: String
) | 1 | null | 1 | 1 | 235ffcc78f318e34048c51b5295f5b95ade0ba44 | 223 | project-sampleVideoRTC-androidApp | MIT License |
ui/src/test/kotlin/com/aptopayments/sdk/core/usecase/VerifyPasscodeUseCaseTest.kt | AptoPayments | 197,800,853 | false | null | package com.aptopayments.sdk.core.usecase
import com.aptopayments.mobile.functional.Either
import com.aptopayments.sdk.repository.AuthenticationRepository
import org.mockito.kotlin.mock
import org.mockito.kotlin.times
import org.mockito.kotlin.verify
import org.mockito.kotlin.whenever
import org.junit.jupiter.api.Asse... | 1 | Kotlin | 0 | 0 | 257af71aa439b3e90c150ae258c78eaa1a6ae817 | 1,504 | apto-ui-sdk-android | MIT License |
src/main/kotlin/org/i3biscotti/kotlin2ast/parser/KotlinParser.kt | i3biscotti | 736,031,193 | false | {"Kotlin": 627343, "Java": 23218, "ANTLR": 9453, "Dockerfile": 272} | package org.i3biscotti.kotlin2ast.parser
import org.i3biscotti.kotlin2ast.ast.mapping.toAst
import org.i3biscotti.kotlin2ast.ast.models.*
import org.i3biscotti.kotlin2ast.parser.models.LangError
import org.i3biscotti.kotlin2ast.validation.ProgramValidator
import java.io.*
data class KotlinParsingResult(val root: Prog... | 0 | Kotlin | 0 | 0 | bb87f5eff6f424bca654a0f5313ee9d9ce267281 | 1,275 | kotlin2ast-engine | Apache License 2.0 |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/areas/slayertower/spikey_chain.plugin.kts | 2011Scape | 578,880,245 | false | null | package gg.rsmod.plugins.content.areas.slayertower
on_obj_option(obj = Objs.SPIKEY_CHAIN, option = "climb-up") {
when (player.tile.height) {
1 -> { // Second Floor
if (player.skills.getCurrentLevel(Skills.AGILITY) > 70) {
player.handleLadder(height = 2)
} else {
... | 39 | null | 143 | 34 | e5400cc71bfa087164153d468979c5a3abc24841 | 1,348 | game | Apache License 2.0 |
database/src/commonMain/kotlin/com/opencritic/database/Realm.kt | MAX-POLKOVNIK | 797,563,657 | false | {"Kotlin": 374124, "Swift": 124848} | package com.opencritic.database
import io.realm.kotlin.Realm
import io.realm.kotlin.RealmConfiguration
fun createRealmConfiguration(): RealmConfiguration =
RealmConfiguration.create(
schema = setOf(
YourGameEntity::class,
),
)
fun createRealm(): Realm =
Realm.open(createRealmC... | 0 | Kotlin | 0 | 0 | 74cbff241fb867c819af1033fb009e4422b03a0c | 335 | OpenCritic | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.