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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/iottwinmaker/PropertyPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.iottwinmaker
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.iottwinmaker.CfnEntity
@Generated
public fun buildPropertyProperty(initializer: @AwsCdkDsl
CfnEntity.PropertyProperty.Bui... | 1 | Kotlin | 0 | 0 | a1cf8fbfdfef9550b3936de2f864543edb76348b | 435 | aws-cdk-kt | Apache License 2.0 |
data/src/main/java/com/study/data/model/common/algorithm/Emoji.kt | joog-lim | 382,022,630 | false | null | package com.study.data.model.common.algorithm
data class Emoji(
val idx: Int
) | 2 | Kotlin | 0 | 8 | 13d892f3f867c1c3b064cac61d7a4f1fe9290280 | 83 | bamboo-android | Apache License 2.0 |
core/common/src/main/java/com/z1/comparaprecos/common/extensions/Extensions.kt | zero1code | 748,829,698 | false | {"Kotlin": 441569} | package com.z1.comparaprecos.common.extensions
import java.math.BigDecimal
import java.math.RoundingMode
import java.text.NumberFormat
import java.text.SimpleDateFormat
import java.util.Date
import java.util.Locale
fun Long.toDataLegivel(): String {
val sdf = SimpleDateFormat("E, dd MMM HH:mm", Locale.getDefault(... | 0 | Kotlin | 0 | 0 | 5ebdc6500b51f809963696934db6d4a61d4ec2d3 | 1,446 | Compara-precos | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/linear/Forwarditem1.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.linear
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 3,633 | VuesaxIcons | MIT License |
app/src/test/java/org/indiv/dls/onerepmax/data/StatsCalculatorTest.kt | diana-seattle | 397,479,260 | false | null | package org.indiv.dls.onerepmax.data
import kotlinx.coroutines.runBlocking
import org.junit.Assert.*
import org.junit.Before
import org.junit.Test
import java.time.LocalDate
import kotlin.math.roundToInt
class StatsCalculatorTest {
companion object {
private val day1 = LocalDate.of(2020, 1, 2)
pr... | 0 | Kotlin | 0 | 0 | 725c6e6f8c24dece69f414b7e20b2bf99575b3c4 | 6,133 | one-rep-max | Apache License 2.0 |
src/test/kotlin/com/terminaltabtailor/util/TerminalTabsUtilTest.kt | romaindalichamp | 750,147,000 | false | {"Kotlin": 51020} | package com.terminaltabtailor.util
import com.intellij.openapi.project.Project
import com.intellij.openapi.wm.ToolWindow
import com.intellij.openapi.wm.ToolWindowManager
import com.intellij.ui.content.Content
import com.intellij.ui.content.ContentManager
import com.terminaltabtailor.enum.TabNameSortEnum
import com.ter... | 1 | Kotlin | 0 | 9 | 421483479b4a04f14f68198a1d1926f4f2bb1f3f | 7,715 | TerminalTabTailor | Apache License 2.0 |
app/src/main/kotlin/com/gasparaitis/owncommunity/domain/alerts/usecase/AlertsUseCase.kt | ownevery | 666,709,725 | false | null | package com.gasparaitis.owncommunity.domain.alerts.usecase
import com.gasparaitis.owncommunity.domain.alerts.model.AlertItem
import com.gasparaitis.owncommunity.domain.alerts.model.AlertItemSection
import com.gasparaitis.owncommunity.domain.alerts.model.AlertItemType
import com.gasparaitis.owncommunity.presentation.al... | 2 | Kotlin | 0 | 1 | 9587fd8af7611f84e76374218b071347310fee78 | 2,935 | owncommunity | MIT License |
src/main/kotlin/com/bolyartech/forge/server/jetty/ForgeJettyConfigurationLoader.kt | ogrebgr | 530,593,311 | false | null | package com.bolyartech.forge.server.jetty
import com.bolyartech.forge.server.config.ForgeConfigurationException
interface ForgeJettyConfigurationLoader {
@Throws(ForgeConfigurationException::class)
fun load(): ForgeJettyConfiguration
} | 0 | Kotlin | 0 | 0 | 2ac63d3642a126323224036045af791a6490b360 | 245 | forge-server-ktl-jetty | Apache License 2.0 |
kafkistry-prometheus-metrics-export/src/main/kotlin/com/infobip/kafkistry/metric/webapp/RequestMetricsFilter.kt | infobip | 456,885,171 | false | {"Kotlin": 2628950, "FreeMarker": 812501, "JavaScript": 297269, "CSS": 7204} | package com.infobip.kafkistry.metric.webapp
import com.infobip.kafkistry.metric.MetricHolder
import com.infobip.kafkistry.metric.config.PrometheusMetricsProperties
import io.prometheus.client.Summary
import org.slf4j.LoggerFactory
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
import org... | 1 | Kotlin | 6 | 42 | 62403993a76fdf60b4cae3a87c5be0abe4fb3a88 | 2,651 | kafkistry | Apache License 2.0 |
src/ShortCircuiting.kt | GeekLord04 | 748,716,491 | false | {"Kotlin": 36395} | fun main(){
var i = 10
var j = 11
var result = i == 10 || j++ == 12
println(result)
println(i)
println(j)
}
/* Output -
10
11
Explanation - [value of j is not printed as 12, this is called Short circuiting because
when i == 10 is true then j++ == 12 is not evaluated. It is only ... | 0 | Kotlin | 1 | 4 | 16a981b0dfb5e499fc3b922c3099999278a29c0f | 401 | Basics-of-Kotlin | MIT License |
app/src/main/java/uz/sicnt/eimzo/view/HomeFragment.kt | tdehqonov | 430,644,008 | false | null | package uz.sicnt.eimzo.view
import android.annotation.SuppressLint
import android.content.Context
import android.content.SharedPreferences
import android.content.res.Configuration
import android.net.ConnectivityManager
import android.net.NetworkInfo
import android.os.Bundle
import android.os.Handler
import android.vie... | 0 | Kotlin | 0 | 0 | 270b1e4cf059c4904796357da3957fc29f0ad90f | 10,068 | EDO | Apache License 2.0 |
src/main/kotlin/com/namju/simple_todo/todo/controller/TodoController.kt | cmsong111 | 689,422,737 | false | {"Kotlin": 15592, "HTML": 12892} | package com.namju.simple_todo.todo.controller
import com.namju.simple_todo.todo.dto.TodoForm
import com.namju.simple_todo.todo.service.TodoSerivce
import org.springframework.security.access.prepost.PreAuthorize
import org.springframework.stereotype.Controller
import org.springframework.ui.Model
import org.springframew... | 0 | Kotlin | 0 | 0 | e4eaf8123cb805b6fa67a1d70e01e288b1235ac9 | 1,300 | Simple_todo | MIT License |
src/main/kotlin/app/extractors/ObjectiveCExtractor.kt | Prism-Labs | 204,548,945 | false | null |
package app.extractors
class ObjectiveCExtractor : ExtractorInterface {
companion object {
const val LANGUAGE_NAME = Lang.OBJECTIVEC
val importRegex = Regex("""^([^\n]*[#@](import|include))\s[^\n]*""")
val commentRegex = Regex("""^([^\n]*//)[^\n]*""")
val sharpImportIncludeRegex =... | 1 | Kotlin | 0 | 0 | 8b77812b91935fcefa6fdfadae2383889fc9ed21 | 1,231 | xpo-source-app | MIT License |
app/src/main/java/com/codepunk/skeleton/util/loginator/Handleinator.kt | codepunk | 778,937,591 | false | {"Kotlin": 20930} | package com.codepunk.skeleton.util.loginator
import android.util.Log
import java.util.logging.*
/**
* A class that handles log messages from a [Logger] by writing to the Android Logger.
*/
@Suppress("Unused")
class Handleinator(formatter: Formatter? = Formatinator()) : Handler() {
// region Companion object
... | 0 | Kotlin | 0 | 0 | da96846b7d1f7ddaa54abf049ed4ec096ae8ac45 | 2,495 | codepunk-android-app-core-2024-03 | Apache License 2.0 |
src/main/kotlin/plotting/plot.kt | widi-nugroho | 280,354,028 | false | null | package plotting
import jetbrains.datalore.base.values.Color
import jetbrains.letsPlot.geom.geom_hline
import jetbrains.letsPlot.geom.geom_point
import jetbrains.letsPlot.geom.geom_vline
import jetbrains.letsPlot.ggplot
import jetbrains.letsPlot.label.ggtitle
import jetbrains.letsPlot.lets_plot
import jetbrains.letsPl... | 0 | Kotlin | 0 | 0 | a1166092e50303dcd6da9ee3146696c64f6d1bcf | 1,751 | kotlin-statistics | Apache License 2.0 |
feature/dialogs/src/main/kotlin/com/lillicoder/android/feature/dialogs/DialogsViewModel.kt | lillicoder | 323,515,594 | false | {"Kotlin": 103993} | /*
* Copyright 2024 Scott Weeden-Moody
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this project 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 ... | 0 | Kotlin | 0 | 0 | e001b58f3042090be437eb5c2e4b2a5d66d36595 | 3,553 | swwm-app-android | Apache License 2.0 |
example/src/main/java/ch/allianceswisspass/beaconsdk/example/home/AppVersion.kt | SchweizerischeBundesbahnen | 795,434,542 | false | {"Kotlin": 155349} | package ch.allianceswisspass.beaconsdk.example.home
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modif... | 1 | Kotlin | 0 | 1 | e33094266988110fc0674b2331f915fbb13e2d6d | 940 | beacon-sdk-android | MIT License |
src/main/kotlin/CheckStyleIssue.kt | uzzu | 287,894,667 | false | null | package co.uzzu.danger.plugins.checkstyle
/**
* Entity class for checkstyle issue reports
*/
data class CheckStyleIssue(
val filename: String,
val line: Int,
val column: Int?,
val severity: Severity,
val message: String,
val source: String
)
| 1 | Kotlin | 0 | 3 | fc0a38bf4913dacfa5c7ac9310acfbba6548cc3b | 269 | danger-checkstyle-plugin | Apache License 2.0 |
app/src/main/java/com/aowen/monolith/data/BuildDto.kt | heatcreep | 677,508,642 | false | {"Kotlin": 650523} | package com.aowen.monolith.data
import com.google.gson.annotations.SerializedName
import kotlinx.serialization.Serializable
@Serializable
data class BuildDto(
val id: Int,
val title: String,
val description: String?,
@SerializedName("hero_id")
val heroId: Int,
val role: String,
@Serialized... | 11 | Kotlin | 0 | 2 | 44324f4bdef1e2bf9b0cad925ef7a90d9044d645 | 1,418 | predecessor-monolith | MIT License |
dispatch-core/src/main/java/dispatch/core/DispatcherProvider.kt | RBusarow | 206,223,913 | false | null | /*
* Copyright (C) 2021 <NAME>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 27 | null | 6 | 128 | a9b5f3aa0156b8cbd6402173f0b33edaa1622d81 | 3,333 | Dispatch | Apache License 2.0 |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/IntegerPartitions.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: IntegerPartitions
*
* Full name: System`IntegerPartitions
*
* IntegerPartitions[n] give... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,722 | mathemagika | Apache License 2.0 |
app/src/main/java/com/example/vladyslavromanikdemo/data/db/mapper/DbToDomainMapper.kt | ROMVL | 455,194,678 | false | {"Kotlin": 31300} | package com.example.vladyslavromanikdemo.data.db.mapper
import com.example.vladyslavromanikdemo.data.db.model.ProductDataBaseModel
import com.example.vladyslavromanikdemo.domain.model.ProductDomainModel
fun List<ProductDataBaseModel>.toDomain(): List<ProductDomainModel> = this.map {
ProductDomainModel(
id... | 0 | Kotlin | 0 | 0 | dfe61eb5609351c130917d29ab5453881cd40bc6 | 420 | VladyslavRomanikDemo | Apache License 2.0 |
src/test/java/com/example/springboot/http/甘肃/一张图接口/用户设置.kt | DoubleDD | 747,076,483 | false | {"Kotlin": 302923, "Java": 116617} | package com.example.springboot.http.甘肃.一张图接口
import com.example.springboot.http.common.BaseTest
import com.example.springboot.http.common.ServerApi
import org.intellij.lang.annotations.Language
import org.junit.jupiter.api.Test
import org.springframework.http.MediaType
class 用户设置 : BaseTest() {
override fun getSe... | 0 | Kotlin | 0 | 0 | 0a7cb7c5a9241c7931dc79cef3052c5cf4cd62dd | 914 | api-unit-test | MIT License |
case-study/src/main/kotlin/org/arnhold/dmpeval/casestudy/evaluation/qualityOfActionsCategoryEvaluators/FujiService.kt | larnhold | 695,175,294 | false | {"Kotlin": 179546, "Jupyter Notebook": 62908, "Java": 11111} | package org.arnhold.dmpeval.casestudy.evaluation.qualityOfActionsCategoryEvaluators
import org.arnhold.dmpeval.casestudy.evaluation.qualityOfActionsCategoryEvaluators.model.fuji.FujiRoot
interface FujiService {
fun evaluateResource(resource: String): FujiRoot?
} | 0 | Kotlin | 0 | 2 | 8551cab14415f90af8a91e6325814e9c0dd6e6a9 | 269 | maDMP-Assesment | MIT License |
test-framework/src/main/kotlin/com/epam/drill/e2e/plugin/Logging.kt | Mazel-Tovr | 317,261,194 | true | {"Kotlin": 321848, "Java": 720} | package com.epam.drill.e2e.plugin
import com.epam.drill.logger.api.*
object SimpleLogging : LoggerFactory {
override fun logger(name: String): Logger = name.namedLogger(
logLevel = { LogLevel.TRACE },
appender = ::appendLog
)
}
@Suppress("UNUSED_PARAMETER")
internal fun appendLog(name: String... | 0 | null | 0 | 0 | ce0685d5ea417d02344f7392763f7b200f1b5ec4 | 464 | admin | Apache License 2.0 |
data/src/main/java/zero/friends/data/di/NetworkModule.kt | ZeroFriends | 412,748,430 | false | null | package zero.friends.data.di
import com.jakewharton.retrofit2.converter.kotlinx.serialization.asConverterFactory
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serializati... | 0 | Kotlin | 1 | 13 | f3faf45cdaf496fe0d06bb73ca813e2097de96a6 | 1,867 | GoStopCalculator | Apache License 2.0 |
verik-compiler/src/main/kotlin/io/verik/compiler/cast/TypeCaster.kt | frwang96 | 269,980,078 | false | null | /*
* Copyright (c) 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 3 | 70f9d58061350ca01db0e7c226de50d3b532229e | 2,673 | verik | Apache License 2.0 |
src/main/kotlin/ru/ereshkin_a_v/deanerybackend/auth/service/AuthService.kt | AlexEreh | 793,810,424 | false | {"Kotlin": 55276} | package ru.ereshkin_a_v.deanerybackend.auth.service
import com.fasterxml.jackson.databind.ObjectMapper
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
import org.springframework.http.HttpHeaders
import org.springframework.security.authentication.AuthenticationManager
impo... | 0 | Kotlin | 0 | 0 | d4e4dcb831d3c9653caa90725a85ba406deae32d | 4,454 | deanery-backend | Do What The F*ck You Want To Public License |
week2/Cookie.kt | InfiniteExalt | 528,918,884 | false | {"Kotlin": 18434, "Roff": 397} | import java.util.Scanner
fun main() {
val sc = Scanner(System.`in`)
print("Enter how many cookies you ate: ")
val cookieCount = sc.nextInt()
val servingSize = 40 / 10
val caloriesPerCookie = 300 / servingSize
val totalCalories = cookieCount * caloriesPerCookie
... | 0 | Kotlin | 0 | 2 | 673cd3f2dae1c7e7c18815e6b81dfab8552924d4 | 378 | KotlinFall22 | MIT License |
webView/src/main/java/com/dyn/webview/BaseWebView.kt | dynsxyc | 420,926,305 | false | {"Kotlin": 734969, "Java": 431273, "JavaScript": 17765, "HTML": 9209, "CSS": 2719, "AIDL": 961} | package com.dyn.webview
import android.content.Context
import android.text.TextUtils
import android.util.AttributeSet
import android.util.Log
import android.view.MotionEvent
import android.webkit.ValueCallback
import android.webkit.WebView
import com.dyn.webview.jsbridge.*
import com.dyn.webview.remotewebview.javascri... | 0 | Kotlin | 0 | 0 | 8fdac563ca591f0c86d3a02370c64012d398198f | 8,252 | AndroidCommonProject | Apache License 2.0 |
src/main/kotlin/dev/dfreer/contacts/database/Database.kt | danielfreer | 510,142,986 | false | {"Kotlin": 35009} | package dev.dfreer.contacts.database
import dev.dfreer.contacts.api.v1.Contact
import dev.dfreer.contacts.api.v1.ContactWithId
import dev.dfreer.contacts.api.v1.Id
class Database(private val idGenerator: IdGenerator) {
private val contactsById = mutableMapOf<Id, Contact>()
fun create(contact: Contact): Id {
... | 0 | Kotlin | 0 | 0 | 472a00f00dffdedcf27e566a666558c689e569c5 | 970 | contacts | MIT License |
app/src/jvmMain/kotlin/net/longbowxxx/playground/preference/PreferenceBase.kt | LongbowXXX | 635,781,333 | false | {"Kotlin": 248122} | /*
* Copyright (c) 2023 LongbowXXX
*
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
package net.longbowxxx.playground.preference
import java.io.Closeable
import java.io.File
import java.util.Properties
import javax.crypto.Cipher
import javax.crypto.spec.Sec... | 0 | Kotlin | 1 | 0 | 8066188fcbf09e255e64f3ee0b42c87db637880a | 4,831 | PlaygroundL | MIT License |
src/MastermindDriver.kt | ginestra | 125,407,258 | false | {"Kotlin": 11700} | object MastermindDriver {
// Example - change as you need to...
@JvmStatic
fun main(args: Array<String>) {
var g = Factory.getInstance(Game::class.java, true)
g.runGames()
}
} | 3 | Kotlin | 0 | 1 | d90bfc6f52ce2c4ccafe7ba728fad898a1af9b6c | 209 | sdp-mastermind | MIT License |
wasabi-core/src/test/main/kotlin/org/wasabifx/wasabi/test/FileUploadSpec.kt | wasabifx | 9,009,498 | false | null | package org.wasabifx.wasabi.test
import okhttp3.*
import org.wasabifx.wasabi.app.FileUpload
import org.wasabifx.wasabi.protocol.http.StatusCodes
import java.io.File
import org.junit.Test as spec
class FileUploadSpec: TestServerContext() {
@spec fun fileupload_works() {
val testTitle = "test title"
... | 20 | Kotlin | 58 | 510 | 9148843ca0aa9c4f79ca1228df8f36d590d0a24b | 1,370 | wasabi | Apache License 2.0 |
app/src/main/java/com/yablunin/shopnstock/presentation/toasts/ErrorToast.kt | yabluninn | 702,962,028 | false | {"Kotlin": 73043} | package com.yablunin.shopnstock.presentation.toasts
import android.content.Context
import android.view.Gravity
import android.view.LayoutInflater
import android.widget.TextView
import android.widget.Toast
import com.yablunin.shopnstock.R
class ErrorToast(var context: Context, var message: String, var duration: Int, v... | 0 | Kotlin | 0 | 2 | 3a1f65b1e742783db3a14d94cf9293f4c1e4ad8b | 726 | shopnstock | MIT License |
App/StepByStep/app/src/main/java/fr/oworld/stepbystep/datas/model/APIService.kt | olivierbernal | 500,761,961 | false | null | package fr.oworld.stepbystep.datas.model
import android.content.Context
import android.util.Log
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.Retrofit
import retrofit2.converter.scalars.ScalarsConverterFactory
import retrofit2.http.GET
import retrofit2.http.Streaming
import java.io.*
/*
Data comi... | 0 | Kotlin | 0 | 0 | ca08f79f3671123bb67c9923988cbaf012697616 | 2,473 | StepByStep | Apache License 2.0 |
core/src/test/kotlin/org/rewedigital/katana/ComponentDependsOnTests.kt | matrixxun | 162,943,129 | true | {"Kotlin": 76892} | package org.rewedigital.katana
import org.amshove.kluent.shouldBeInstanceOf
import org.amshove.kluent.shouldEqual
import org.amshove.kluent.shouldThrow
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.describe
import org.jetbrains.spek.api.dsl.it
import org.jetbrains.spek.api.dsl.xit
import org.jun... | 0 | Kotlin | 0 | 0 | d1d94c215725ad3a5ff165efc74d3f4a6c936419 | 5,729 | katana | MIT License |
src/test/resources/examples/parameterNameClash/client/ApiClient.kt | cjbooms | 229,844,927 | false | null | package examples.parameterNameClash.client
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.jacksonTypeRef
import examples.parameterNameClash.models.SomeObject
import okhttp3.Headers
import okhttp3.HttpUrl
import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.MediaType.... | 34 | Kotlin | 41 | 99 | 7055b109bf174b9d2efd6283ea182d5ef65eb190 | 2,608 | fabrikt | Apache License 2.0 |
src/main/kotlin/io/kstud/gui/Shader.kt | minecraft-simon | 724,721,438 | false | {"Kotlin": 7544, "Java": 508} | package io.kstud.gui
import org.lwjgl.opengl.GL20.*
/**
* The class that represents an OpenGL shader as a Kotlin object.
* ChatGPT generated this for me, so I'm not sure how it works or if we need to change it.
*/
class Shader(
type: Int,
source: String
) {
var id: Int = glCreateShader(type)
init ... | 0 | Kotlin | 0 | 1 | 3a531ff9759bf0c1e6fa77faa1a7a66588b37ee7 | 608 | kgl-dev | Creative Commons Zero v1.0 Universal |
client/src/test/kotlin/no/nav/su/se/bakover/client/oppdrag/avstemming/GrensesnittavstemmingDataBuilderTest.kt | navikt | 227,366,088 | false | null | package no.nav.su.se.bakover.client.oppdrag.avstemming
import arrow.core.NonEmptyList
import arrow.core.nonEmptyListOf
import io.kotest.matchers.shouldBe
import no.nav.su.se.bakover.common.UUID30
import no.nav.su.se.bakover.common.april
import no.nav.su.se.bakover.common.desember
import no.nav.su.se.bakover.common.ida... | 6 | Kotlin | 0 | 0 | 2ed4ed4aa002a19d14ce7dd37c27271a227668a8 | 8,568 | su-se-bakover | MIT License |
app/src/main/java/info/tuver/todo/ui/todo/todoList/TodoTagListAdapterActions.kt | berkcosar | 233,477,029 | false | {"Kotlin": 89679} | package info.tuver.todo.ui.todo.todoList
import info.tuver.todo.model.TagModel
import info.tuver.todo.ui.base.BaseAdapterActions
interface TodoTagListAdapterActions : BaseAdapterActions {
fun onTodoTagClicked(tag: TagModel)
} | 0 | null | 0 | 0 | bc024f3fb49bc3c450aa6c7050a0d3696845f6a3 | 233 | android-mvvm-todo | MIT License |
src/main/java/net/ccbluex/liquidbounce/ui/client/hud/designer/EditorPanel.kt | Rmejia39 | 733,988,804 | false | {"Kotlin": 2304965, "Java": 1271227, "GLSL": 13515, "JavaScript": 8926} | /*
* FDPClient Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge by LiquidBounce.
* https://github.com/SkidderMC/FDPClient/
*/
package net.ccbluex.liquidbounce.ui.client.hud.designer
import net.ccbluex.liquidbounce.FDPClient
import net.ccbluex.liquidbounce.i... | 3 | Kotlin | 0 | 0 | b48c4e83c888568111a6665037db7fd3f7813ed3 | 18,099 | FDPClient | MIT License |
src/main/kotlin/com/devexperts/openhack2022/cell_sandbox/game/updater/CellActionUpdater.kt | david-d25 | 535,279,284 | false | {"Kotlin": 89571, "Java": 100} | package com.devexperts.openhack2022.cell_sandbox.game.updater
import com.devexperts.openhack2022.cell_sandbox.game.*
import com.devexperts.openhack2022.cell_sandbox.geom.Vector2.Companion.unit
import kotlin.math.PI
import kotlin.math.abs
import kotlin.math.sqrt
class CellActionUpdater : Updater {
override fun upd... | 14 | Kotlin | 0 | 0 | c31450204acc42be2d5d6776d802c61a3b559f6f | 6,811 | cell-sandbox | MIT License |
app/src/main/kotlin/org/jdc/template/ux/about/samples/Components.kt | jeffdcamp | 12,853,600 | false | null | package org.jdc.template.ux.about.samples
/*
* 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
*
* http://www.apache.org/licenses/L... | 0 | Kotlin | 38 | 96 | 290d8de22dcf000df9e656eb70896cf764c4be1f | 6,842 | android-template | Apache License 2.0 |
app/src/main/java/com/example/noteapp/ui/navigation/NotesNavHost.kt | duygucalik | 740,647,806 | false | {"Kotlin": 51016} | package com.example.noteapp.ui.navigation
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.navigation.NavGraph.Companion.findStartDestination
import androidx.navigation.NavHostControlle... | 0 | Kotlin | 0 | 0 | ad8e8a9a6bea8f36a97d74373f02f1ee476b8b9b | 3,164 | NoteApp | MIT License |
fatman/app/src/main/java/com/project/fat/retrofit/api_interface/UserService.kt | UMC-Fat-Man | 665,170,583 | false | {"Kotlin": 169588} | package com.project.fat.retrofit.api_interface
import com.project.fat.data.dto.AuthorizeResponse
import com.project.fat.data.dto.SignInRequest
import com.project.fat.data.dto.SignInResponse
import com.project.fat.data.dto.SignUpRequest
import com.project.fat.data.dto.SocialLoginRequest
import com.project.fat.data.dto.... | 3 | Kotlin | 0 | 0 | fa3940e9341b33713cb41ebfba8df89c2a8dbf04 | 1,631 | FatMan-Android | Apache License 2.0 |
app/src/main/java/lab/maxb/dark/data/local/room/converters/CollectionsConverter.kt | MaxBQb | 408,174,279 | false | null | package lab.maxb.dark.data.local.room.converters
import androidx.room.TypeConverter
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import java.lang.reflect.Type
class CollectionsConverter {
@TypeConverter
fun fromList(list: List<String>?) = list?.let {
gson.toJson(list, typeList... | 0 | Kotlin | 0 | 3 | 15885b8ec13bc58d78c14a69e1c2f06f84ca4380 | 905 | TheDarkApp.Client | MIT License |
app/src/main/java/com/brandoncano/inductancecalculator/components/DropdownLists.kt | bmcano | 837,294,286 | false | {"Kotlin": 101222} | package com.brandoncano.inductancecalculator.components
import com.brandoncano.inductancecalculator.constants.Colors
import com.brandoncano.inductancecalculator.constants.Symbols
/**
* Job: Holds the list of items for each dropdown
*/
object DropdownLists {
val NUMBER_LIST = listOf(
DropdownItem(Color... | 1 | Kotlin | 0 | 1 | d54c0ee936957250b6b38ca6ded0e367b4854fc6 | 1,600 | InductorCalculatorApp | MIT License |
src/it/aniplay/src/eu/kanade/tachiyomi/animeextension/it/aniplay/AniPlayFilters.kt | aniyomiorg | 360,630,872 | false | null | package eu.kanade.tachiyomi.animeextension.it.aniplay
import eu.kanade.tachiyomi.animesource.model.AnimeFilter
import eu.kanade.tachiyomi.animesource.model.AnimeFilterList
object AniPlayFilters {
open class QueryPartFilter(
displayName: String,
val vals: Array<Pair<String, String>>
) : AnimeF... | 362 | null | 155 | 394 | 8ffc21113bfd75f683dfd444cf38147337ac9053 | 21,151 | aniyomi-extensions | Apache License 2.0 |
app/src/main/java/com/jarvislin/drugstores/page/news/NewsAdapter.kt | jarvislin | 238,508,346 | false | null | package com.jarvislin.drugstores.page.news
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.text.HtmlCompat
import androidx.recyclerview.widget.RecyclerView
import com.google.firebase.analytics.Firebas... | 1 | Kotlin | 10 | 39 | 0f45d84d524fed54af0e3f7efb9925b8773eb004 | 2,462 | drugstores | Apache License 1.1 |
src/main/kotlin/BaselineCli.kt | qodana | 701,263,031 | false | {"Kotlin": 16580} | import com.jetbrains.qodana.sarif.SarifUtil
import com.jetbrains.qodana.sarif.baseline.BaselineCalculation
import com.jetbrains.qodana.sarif.model.SarifReport
import java.nio.file.Files
import java.nio.file.Path
object BaselineCli {
fun process(map: Map<String, String>, cliPrinter: (String) -> Unit): Int {
... | 0 | Kotlin | 0 | 0 | 17620bbc63664678934b8f5fbefeeef70d7f3d26 | 2,944 | baseline-cli | Apache License 2.0 |
src/test/kotlin/org/wfanet/measurement/duchy/db/computation/ReachOnlyLiquidLegionsSketchAggregationV2ProtocolEnumStagesTest.kt | world-federation-of-advertisers | 349,561,061 | false | {"Kotlin": 10143809, "Starlark": 951001, "C++": 627937, "CUE": 193010, "HCL": 162357, "TypeScript": 101485, "Python": 77600, "Shell": 20877, "CSS": 9620, "Go": 8063, "JavaScript": 5305, "HTML": 2489} | // Copyright 2023 The Cross-Media Measurement 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 applic... | 98 | Kotlin | 11 | 36 | ba2d2d8d3d4527d844e6d168273b1c2fabfd5d4e | 3,717 | cross-media-measurement | Apache License 2.0 |
ksrpc/src/commonTest/kotlin/RpcSubserviceTest.kt | Monkopedia | 305,151,870 | false | null | /*
* Copyright 2021 Jason Monk
*
* 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 ... | 0 | Kotlin | 0 | 6 | a48494a7111736fecce7a6a4d739d453d61984d1 | 2,724 | ksrpc | Apache License 2.0 |
src/main/kotlin/one/devos/yiski/Yiski.kt | devOS-Sanity-Edition | 563,672,490 | false | null | package one.devos.yiski
import dev.minn.jda.ktx.coroutines.await
import dev.minn.jda.ktx.events.listener
import dev.minn.jda.ktx.generics.getChannel
import dev.minn.jda.ktx.jdabuilder.default
import dev.minn.jda.ktx.jdabuilder.intents
import kotlinx.coroutines.runBlocking
import net.dv8tion.jda.api.JDA
import net.dv8t... | 0 | Kotlin | 0 | 0 | bab1664753e5c30299faa4fe106e8a7270cd004e | 6,086 | yiski6 | MIT License |
src/main/kotlin/insyncwithfoo/ryecharm/CommandRunners.kt | InSyncWithFoo | 849,672,176 | false | {"Kotlin": 264146, "Python": 3171, "HTML": 624} | package insyncwithfoo.ryecharm
import com.intellij.execution.process.ProcessOutput
import com.intellij.openapi.project.Project
import insyncwithfoo.ryecharm.configurations.HasTimeouts
import insyncwithfoo.ryecharm.configurations.PanelBasedConfigurable
import kotlinx.coroutines.CoroutineScope
internal typealias Milli... | 0 | Kotlin | 0 | 7 | c1a04b622fbfb02a2fb155d8c9aa069520eda23e | 1,828 | ryecharm | MIT License |
core/database/src/main/java/com/keisardev/samples/apps/notenest/core/database/dao/NewsResourceDao.kt | shaharKeisarApps | 710,775,973 | false | {"Kotlin": 639044, "Shell": 10235} |
package com.keisardev.samples.apps.notenest.core.database.dao
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Transaction
import androidx.room.Upsert
import com.keisardev.samples.apps.notenest.core.database.model.NewsResourc... | 0 | Kotlin | 0 | 0 | 2fec43637b1bdfffbba4c1c7e156e8ba31f0a6d9 | 3,535 | NoteNest | Apache License 2.0 |
app/src/main/java/com/flowfoundation/wallet/cache/AccountCacheManager.kt | Outblock | 692,942,645 | false | {"Kotlin": 2429248, "Java": 104150} | package com.flowfoundation.wallet.cache
import androidx.annotation.WorkerThread
import com.flowfoundation.wallet.manager.account.Account
import com.flowfoundation.wallet.utils.*
import kotlinx.serialization.builtins.ListSerializer
import kotlinx.serialization.json.Json
import java.io.File
object AccountCacheManager{
... | 62 | Kotlin | 5 | 0 | 8ad633b7bccc02ae6b3005ca3989379ed8fb248d | 1,339 | FRW-Android | Apache License 2.0 |
randomgenkt/src/main/java/com/mitteloupe/randomgenkt/builder/IncompleteBuilderField.kt | EranBoudjnah | 154,015,466 | false | {"Kotlin": 252028, "Java": 1056} | package com.mitteloupe.randomgenkt.builder
import com.mitteloupe.randomgenkt.FieldDataProvider
import com.mitteloupe.randomgenkt.FieldDataProviderFactory
import com.mitteloupe.randomgenkt.RandomGen
import com.mitteloupe.randomgenkt.builder.IncompleteBuilderField.InitializeType.WITH_INSTANCE_PROVIDER
import com.mittelo... | 0 | Kotlin | 0 | 36 | 31e45696a73c12c2db93dd24b504d7726fd61ecf | 3,956 | RandomGenKt | MIT License |
server/src/main/kotlin/com/thoughtworks/archguard/scanner/domain/scanner/javaext/checkstyle/StyleScanner.kt | archguard | 460,910,110 | false | {"Kotlin": 1763628, "Java": 611399, "TypeScript": 11395, "C#": 5593, "Dockerfile": 2549, "C": 1223, "Shell": 926, "JavaScript": 400, "Go": 291, "Scala": 97, "Python": 42, "Rust": 32} | package com.thoughtworks.archguard.scanner.domain.scanner.javaext.checkstyle
import com.thoughtworks.archguard.scanner.domain.analyser.ArchitectureDependencyAnalysis
import com.thoughtworks.archguard.scanner.domain.config.model.ToolConfigure
import com.thoughtworks.archguard.scanner.domain.scanner.Scanner
import com.t... | 1 | Kotlin | 89 | 575 | 049f3cc8f2c0e2c34e65bb0049f645caa5be9bf8 | 3,051 | archguard | MIT License |
service_restaurant/src/main/kotlin/org/thechance/service_restaurant/api/endpoints/RestaurantRoutes.kt | TheChance101 | 671,967,732 | false | null | package org.thechance.service_restaurant.api.endpoints
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.request.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import org.koin.ktor.ext.inject
import org.thechance.service_restaurant.api.models.BasePaginationResponseDto
... | 4 | null | 55 | 572 | 1d2e72ba7def605529213ac771cd85cbab832241 | 5,733 | beep-beep | Apache License 2.0 |
model/src/main/kotlin/org/digma/intellij/plugin/model/lens/CodeLens.kt | digma-ai | 472,408,329 | false | null | package org.digma.intellij.plugin.model.lens
data class CodeLens(
val codeObjectId: String,
val lensTitle: String,
val importance: Int,
) {
var lensDescription: String = ""
var lensMoreText: String = ""
var anchor: String = ""
// generated code. hashCode and equals on top of codeObjectId ... | 264 | Kotlin | 4 | 7 | ec199eb6f3eca60536282b9fe2c9fbca3e581b45 | 772 | digma-intellij-plugin | MIT License |
linea/src/commonMain/kotlin/compose/icons/lineaicons/arrows/SquareRight.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.lineaicons.arrows
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.g... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,016 | compose-icons | MIT License |
z2-kotlin-plugin/testData/box/schematic/entityStore.kt | spxbhuhb | 665,463,766 | false | {"Kotlin": 1432826, "CSS": 166164, "Java": 7879, "HTML": 1560, "JavaScript": 975} | package foo.bar
import hu.simplexion.z2.schematic.entity.SchematicEntity
import hu.simplexion.z2.schematic.entity.SchematicEntityStore
import hu.simplexion.z2.services.Service
import hu.simplexion.z2.services.getService
import hu.simplexion.z2.util.UUID
class TestEntity : SchematicEntity<TestEntity>() {
override ... | 5 | Kotlin | 0 | 1 | e129678d92a30685319fb3273326717b0de32608 | 1,172 | z2 | Apache License 2.0 |
data/repository/city/cityrepo-impl/src/main/kotlin/com/francescsoftware/weathersample/data/repository/city/impl/CityRepositoryModule.kt | fvilarino | 355,724,548 | false | {"Kotlin": 617969, "Shell": 60} | package com.francescsoftware.weathersample.data.repository.city.impl
import com.francescsoftware.weathersample.core.injection.AppScope
import com.francescsoftware.weathersample.core.injection.SingleIn
import com.jakewharton.retrofit2.converter.kotlinx.serialization.asConverterFactory
import com.squareup.anvil.annotati... | 3 | Kotlin | 4 | 57 | 12c86141807cbd3aa2623a693b93233264ac99e6 | 2,230 | Weather-Sample | Apache License 2.0 |
shared/feature/geminio-sdk/src/main/kotlin/ru/hh/plugins/geminio/sdk/template/mapping/widgets/parameters/WidgetsParametersMapper.kt | hhru | 159,637,875 | false | null | package ru.hh.plugins.geminio.sdk.template.mapping.widgets.parameters
import ru.hh.plugins.geminio.sdk.recipe.models.widgets.RecipeParameter
import ru.hh.plugins.geminio.sdk.template.aliases.AndroidStudioTemplateParameter
import ru.hh.plugins.geminio.sdk.template.models.GeminioTemplateParameterData
/**
* Mapping fr... | 17 | Kotlin | 11 | 97 | 2d6c02fc814eff3934c17de77ef7ade91d3116f5 | 887 | android-multimodule-plugin | MIT License |
app/src/main/java/com/takusemba/jethub/ui/item/RepositoryItem.kt | balao7 | 241,266,325 | true | {"Kotlin": 120166} | package com.takusemba.jethub.ui.item
import android.view.View
import android.widget.Toast
import android.widget.Toast.LENGTH_SHORT
import com.takusemba.jethub.R
import com.takusemba.jethub.databinding.ItemRepositoryBinding
import com.takusemba.jethub.model.Repository
import com.takusemba.jethub.viewmodel.UserViewModel... | 0 | null | 0 | 0 | 4a77523525cd48d51dc208229a20e7728d31d2ec | 1,532 | JetHub | Apache License 2.0 |
data/src/main/kotlin/za/co/itschools/dev/data/login/usecase/LoginUseCase.kt | wax911 | 378,948,770 | false | null | package za.co.itschools.dev.data.login.usecase
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.filterNotNull
import kotlinx.coroutines.launch
import timber.log.Timber
import za.co.itschools.dev.domain.common.D... | 3 | Kotlin | 0 | 1 | 6bff5e69b73780cf84a44c78e6132d8487b64395 | 2,119 | technical-assignment | Apache License 2.0 |
bin/main/the_worst_one/cfg/Reloadable.kt | JohnTing | 372,577,081 | true | {"Kotlin": 388332, "Batchfile": 1620} | package the_worst_one.cfg
import mindustry_plugin_utils.Enums
import mindustry_plugin_utils.Json
import java.io.File
interface Reloadable {
fun reload()
var configPath: String
val view get() = try {
File(configPath).readText()
} catch (e: Exception) {
"unsupported"
}
fun modi... | 0 | Kotlin | 0 | 0 | 923d7d0ef5aea8a5d33cff6570739d87e3a6516b | 841 | the-worst-midustry-plugin | MIT License |
app/src/main/java/com/example/estacionapp/MapsActivity.kt | UTN-FRBA-Mobile | 298,070,301 | false | null | package com.example.estacionapp
import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.content.pm.PackageManager
import android.location.Address
import android.location.Geocoder
import android.location.Loc... | 0 | Kotlin | 0 | 1 | b322fe50660f4e8ea93df12a58152089066c9518 | 18,265 | EstacionApp | MIT License |
source_code/app/src/main/java/com/example/eksamen_store_app/screens/product_details/ProductDetailsViewModel.kt | TianhiD | 851,324,720 | false | {"Kotlin": 89059} | package com.example.eksamen_store_app.screens.product_details
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.eksamen_store_app.data.Cart
import com.example.eksamen_store_app.data.Favorite
import com.example.eksamen_store_app.data.Product
import com.example.eksamen_store... | 0 | Kotlin | 0 | 0 | 068c9565dd2907c17124ddbb12c2f24951d20154 | 2,246 | AndroidClothingApp | Apache License 2.0 |
app/src/main/java/br/com/myworkout/repository/CategoryRepositoryImpl.kt | joaldotavares | 851,943,534 | false | {"Kotlin": 53490} | package br.com.myworkout.repository
import br.com.myworkout.data.SelectCategory
import br.com.myworkout.repository.source.CategoryDataSource
class CategoryRepositoryImpl(
private val dataSource: CategoryDataSource
) : CategoryRepository {
override fun getCategories(): SelectCategory {
return dataSourc... | 4 | Kotlin | 0 | 0 | 38c0221778e9b834394fe9fec02359855f006f2a | 346 | MyWorkout | MIT License |
app/src/main/java/snpefk/github/io/taxi/presentation/ui/order/OrderListFragment.kt | snpefk | 166,794,893 | false | null | package snpefk.github.io.taxi.presentation.ui.order
import android.annotation.SuppressLint
import android.os.Bundle
import android.support.design.widget.Snackbar
import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
imp... | 0 | Kotlin | 0 | 0 | f963e63fb455ad7164f9a92b5d56e947e87776f9 | 4,256 | TaxiApp | Apache License 2.0 |
0170.Two Sum III - Data structure design.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | internal class TwoSum {
private val cnt: Map<Int, Int> = HashMap()
fun add(number: Int) {
cnt.merge(number, 1) { a: Int, b: Int -> Integer.sum(a, b) }
}
fun find(value: Int): Boolean {
for (e in cnt.entrySet()) {
val x: Int = e.getKey()
val v: Int = e.getValue()
val y = value - x
... | 0 | Kotlin | 0 | 0 | 17a80985d970c8316fb694e4952692e598d700af | 586 | kotlin-leetcode | MIT License |
src/main/kotlin/org/teamvoided/dusk_autumn/util/ModelHelper.kt | TeamVoided | 737,359,498 | false | {"Kotlin": 361125, "Java": 3800} | package org.teamvoided.dusk_autumn.util
import it.unimi.dsi.fastutil.ints.Int2ObjectFunction
import it.unimi.dsi.fastutil.ints.Int2ObjectMap
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap
import net.minecraft.block.AbstractLichenBlock
import net.minecraft.block.Block
import net.minecraft.block.Blocks
import n... | 0 | Kotlin | 0 | 0 | ad953436fb5aa692d897d635c052b646a94a5aa9 | 36,314 | DuskBlocks | MIT License |
lib/src/main/java/fi/epicbot/toster/extension/StringExtension.kt | alexander-kulikovskii | 445,319,766 | false | null | package fi.epicbot.toster.extension
internal fun CharSequence.throwExceptionIfBlank(message: String) {
if (this.isBlank()) {
throw IllegalArgumentException(message)
}
}
internal fun CharSequence.throwExceptionIfNotEmptyButBlank(message: String) {
if (this.isNotEmpty() && this.isBlank()) {
... | 7 | Kotlin | 0 | 29 | 271e75b89800fbc3154e1260a279b6840397624d | 699 | toster | Apache License 2.0 |
mainActivity/src/main/java/com/sierrawireless/avphone/task/DeleteSystemProgress.kt | AirVantage | 33,366,147 | false | {"Gradle": 4, "Markdown": 3, "Ignore List": 1, "Erlang": 1, "XML": 55, "Kotlin": 109, "Java": 1} | package com.sierrawireless.avphone.task
import com.sierrawireless.avphone.R
enum class DeleteSystemProgress(val stringId: Int, val value: Int) {
// There is no "CREATING_SYSTEM', since it is done
// in the single 'ensureApplicationExists' method
CHECKING_RIGHTS(R.string.progress_checking_rights, 0),
C... | 1 | null | 1 | 1 | aa24ec92f16a705435b1fbc0f65f5423cf92e713 | 604 | av-phone-android | MIT License |
deprecated/Tools/DaggerPlayground/app/src/main/java/six/ca/dagger101/seventh/SunModule.kt | songzhw | 57,045,008 | false | {"Java": 363640, "Kotlin": 128659, "JavaScript": 2528, "Groovy": 417} | package six.ca.dagger101.seventh
import dagger.Module
import dagger.Provides
import javax.inject.Singleton
@Module
class SunModule {
@Singleton
@Provides
fun getSun(): Sun {
return Sun()
}
} | 1 | null | 1 | 1 | 8c4d47221a56b2e9d96e20419013900de20ec77c | 218 | AndroidArchitecture | Apache License 2.0 |
src/main/kotlin/de/igorakkerman/demo/deviceconfig/api/rest/springmvc/DeviceController.kt | igorakkerman | 358,964,336 | false | null | package de.igorakkerman.demo.deviceconfig.api.rest.springmvc
import com.fasterxml.jackson.core.JsonProcessingException
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import de.igorakkerman.demo.deviceconfig.application.Computer
import de.igorakkerman... | 0 | Kotlin | 0 | 1 | 4494294e75cb15a806c86a2aa087d0e5ed1ec98a | 7,062 | springboot-kotlin-demo | MIT License |
src/test/kotlin/eu/thesimplecloud/clientserverapi/directorysync/DirectorySyncTest.kt | theSimpleCloud | 271,379,161 | false | {"Kotlin": 315780, "Java": 8090} | /*
* MIT License
*
* Copyright (C) 2020 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merg... | 0 | Kotlin | 0 | 1 | 6b5989f646a1986261a8b0faa1a78691a23a5ebf | 3,352 | clientserverapi | MIT License |
app/src/main/java/com/steleot/jetpackcompose/playground/compose/foundation/ClickableScreen.kt | Vivecstel | 338,792,534 | false | null | package com.steleot.jetpackcompose.playground.compose.foundation
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
im... | 2 | null | 46 | 346 | 0161d9c7bf2eee53270ba2227a61d71ba8292ad0 | 1,545 | Jetpack-Compose-Playground | Apache License 2.0 |
nodecore-p2p/src/main/kotlin/nodecore/p2p/PeerSocketHandler.kt | VeriBlock | 179,742,374 | false | null | // VeriBlock Blockchain Project
// Copyright 2017-2018 VeriBlock, Inc
// Copyright 2018-2021 Xenios SEZC
// All rights reserved.
// https://www.veriblock.org
// Distributed under the MIT software license, see the accompanying
// file LICENSE or http://www.opensource.org/licenses/mit-license.php.
package nodecore.p2p
i... | 72 | null | 16 | 12 | ef06c51c1410ba59da13403b65e367b21dcfed21 | 8,551 | nodecore | MIT License |
shared/src/commonMain/kotlin/com/osisupermoses/contactlistapp/contacts/presentation/ContactListScreen.kt | osisupermoses | 671,894,293 | false | null | package com.osisupermoses.contactlistapp.contacts.presentation
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillM... | 0 | Kotlin | 0 | 0 | 6b2037ca8b51f85febeb9ad51e0865cc913645a9 | 3,392 | contact-list-app | Apache License 2.0 |
eux-nav-rinasak-datasync-model/src/main/kotlin/eux/nav/rinasak/datasync/model/InitiellFagsak.kt | navikt | 690,514,430 | false | {"Kotlin": 74609, "HTML": 20594, "CSS": 1860, "Makefile": 140, "Dockerfile": 128} | package eux.nav.rinasak.datasync.model
import eux.nav.rinasak.datasync.model.SyncStatus.PENDING
import jakarta.persistence.Entity
import jakarta.persistence.EnumType
import jakarta.persistence.Enumerated
import jakarta.persistence.Id
import java.time.LocalDateTime
import java.time.LocalDateTime.now
import java.util.*
... | 0 | Kotlin | 0 | 0 | df52c44a0d590cc5d6128c46e29dde31868ea827 | 720 | eux-nav-rinasak-datasync | MIT License |
gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/spiral_abyss/run/TowerMiddleLevelChangeTeamNotify.kt | Anime-Game-Servers | 642,871,918 | false | {"Kotlin": 1651536} | package org.anime_game_servers.multi_proto.gi.data.spiral_abyss.run
import org.anime_game_servers.core.base.Version.GI_0_9_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.Prot... | 0 | Kotlin | 2 | 6 | 7639afe4f546aa5bbd9b4afc9c06c17f9547c588 | 427 | anime-game-multi-proto | MIT License |
fasttext/src/main/java/com/mayabot/nlp/fasttext/train/TrainExamples.kt | heaofei | 231,542,276 | true | {"INI": 1, "Shell": 1, "Markdown": 3, "Batchfile": 1, "Java": 208, "Kotlin": 104, "Java Properties": 2} | package com.mayabot.nlp.fasttext.train
import com.google.common.base.Splitter
import java.io.BufferedReader
import java.io.File
import java.io.FileNotFoundException
class TrainSample(val words: List<String>)
/**
* Iterable<TrainSample>
*/
class TrainSampleList(val file: File) : Iterable<TrainSample> {
override... | 0 | null | 0 | 0 | 68d443cfe8ab39ee8e17dc62b1e9cd48dc3fa774 | 3,980 | mynlp | Apache License 2.0 |
app/src/main/java/com/github/wanderwise_inc/app/model/location/ItineraryPreferences.kt | WanderWise-Inc | 775,382,316 | false | {"Kotlin": 269362} | package com.github.wanderwise_inc.app.model.location
/**
* @param tags
* @brief Represents user preferences for itinerary queries
*/
data class ItineraryPreferences(
val tags: List<Tag>,
)
| 4 | Kotlin | 0 | 1 | f93aec977758f0bf1fb618e992195d6763957f7b | 197 | app | MIT License |
app/src/main/java/com/example/codepathmail/WishlistFetcher.kt | Nrodriguez23 | 705,961,996 | false | {"Kotlin": 12142} | package com.example.codepathmail
class WishlistFetcher {
companion object {
var senders = ""
var title = ""
var summary = ""
fun getEmails(): MutableList<Wishlist> {
var emails : MutableList<Wishlist> = ArrayList()
for (i in 0..9) {
}
... | 0 | Kotlin | 0 | 0 | 19488f6ec8c1c0434c7a61370247893149b5ff60 | 1,030 | ppppq | Apache License 2.0 |
domain/src/main/java/com/hoc/comicapp/domain/Result.kt | hoc081098 | 170,987,604 | false | null | // ktlint-disable filename
package com.hoc.comicapp.domain
import arrow.core.Either
import com.hoc.comicapp.domain.models.ComicAppError
typealias DomainResult<T> = Either<ComicAppError, T>
| 9 | null | 46 | 286 | 77d75578220442762f2b199b619222e89aac974d | 192 | ComicReaderApp_MVI_Coroutine_RxKotlin_Jetpack | MIT License |
glance/glance-appwidget/integration-tests/demos/src/main/java/androidx/glance/appwidget/demos/ProgressIndicatorAppWidget.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2022 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... | 23 | Kotlin | 740 | 4,353 | 3492e5e1782b1524f2ab658f1728c89a35c7336d | 2,296 | androidx | Apache License 2.0 |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/appconfig/CovidCertificateConfig.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.appconfig
import de.rki.coronawarnapp.appconfig.mapping.ConfigMapper
import okio.ByteString
import org.joda.time.Duration
interface CovidCertificateConfig {
val testCertificate: TestCertificate
val expirationThreshold: Duration
val blockListParameters: List<BlockedChunk>
... | 153 | Kotlin | 516 | 2,493 | aa450b97e701f6481019681cc6f5a03b7dcc6e86 | 604 | cwa-app-android | Apache License 2.0 |
tezos-michelson/src/test/kotlin/it/airgap/tezos/michelson/internal/coder/MichelineBytesCoderTest.kt | airgap-it | 460,351,851 | false | null | package it.airgap.tezos.michelson.internal.coder
import io.mockk.MockKAnnotations
import io.mockk.unmockkAll
import it.airgap.tezos.core.Tezos
import it.airgap.tezos.core.internal.coreModule
import it.airgap.tezos.michelson.coder.decodeFromBytes
import it.airgap.tezos.michelson.coder.decodeFromString
import it.airgap.... | 0 | Kotlin | 2 | 1 | c5af5ffdd4940670bd66842580d82c2b9d682d84 | 37,953 | tezos-kotlin-sdk | MIT License |
app/src/main/kotlin/dev/sjaramillo/pedometer/ui/stats/StatsViewModel.kt | sjaramillo10 | 404,937,396 | false | {"Kotlin": 67719} | package dev.sjaramillo.pedometer.ui.stats
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import dev.sjaramillo.pedometer.data.StepsRepository
import dev.sjaramillo.pedometer.util.DateUtil
import dev.sjaramillo.pedometer.util.FormatUtil
im... | 26 | Kotlin | 0 | 2 | 9ad9db2740a9f6fa861330937abec7077ad38515 | 3,244 | Pedometer | Apache License 2.0 |
app/src/main/java/io/cricket/app/ui/modules/easy_steps/easy_step_completed/EasyStepsCompletedVM.kt | amirishaque | 375,128,729 | false | null | package io.cricket.app.ui.modules.easy_steps.easy_step_completed
import android.os.Bundle
import io.cricket.app.base.BaseViewModel
import io.cricket.app.preference.DataStoreManager
import io.cricket.app.ui.modules.easy_steps.steps_finished.StepsFinishedFragment
import io.cricket.app.ui.modules.welcome.WelcomeFragment
... | 0 | Kotlin | 0 | 0 | 42808ddd775b5ac6f7bff0d8cf518091588df844 | 1,493 | Cricklub_livecode | MIT License |
core/register/src/main/kotlin/dev/teogor/ceres/core/register/Register.kt | teogor | 555,090,893 | false | {"Kotlin": 1325679} | /*
* Copyright 2023 teogor (<NAME>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 2 | Kotlin | 4 | 62 | d7381c48a88dd5f887fb41e0ad13475a47589e87 | 2,068 | ceres | Apache License 2.0 |
LV4/LV4/src/main/java/ba/unsa/etf/rma/elvircrn/rma17_17455/MyService.kt | elvircrn | 85,687,101 | false | null | package ba.unsa.etf.rma.elvircrn.rma17_17455
import android.app.IntentService
import android.content.Intent
import android.os.Bundle
import android.support.v4.os.ResultReceiver
import android.util.Log
import com.google.gson.Gson
import com.google.gson.JsonObject
import com.google.gson.JsonParser
import java.io.Buffe... | 0 | Kotlin | 0 | 0 | 232b5845b6a1bfab451acf6265c60e475b2d2112 | 1,959 | RMA | Beerware License |
src/main/kotlin/dev/kdrag0n/patreondl/external/patreon/PatreonApi.kt | kdrag0n | 353,524,278 | false | null | package dev.kdrag0n.patreondl.external.patreon
import com.google.common.cache.CacheBuilder
import com.patreon.PatreonAPI
import com.patreon.resources.User
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import java.time.Duration
class PatreonApi {
// Token -> User mapping
private v... | 2 | Kotlin | 3 | 18 | 67c10ce9b58748a42ed6241ad678aa5a44e2f9c2 | 1,354 | patreon-dl-server | MIT License |
app/src/main/java/com/enesk/foodrecipes/data/source/network/model/ExtendedIngredient.kt | kocerenes | 546,274,556 | false | {"Kotlin": 94687} | package com.enesk.foodrecipes.data.source.network.model
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Parcelize
data class ExtendedIngredient(
@SerializedName("amount")
val amount: Double?,
@SerializedName("consistency")
val consist... | 0 | Kotlin | 0 | 8 | 4692dff9908b6c4885c7e6a0c215ba8d2b3163e7 | 621 | FoodRecipes | Apache License 2.0 |
app/src/main/java/de/wvvh/stayhomeapp/util/NotificationHelper.kt | Paulpanther | 248,829,723 | false | null | package de.wvvh.stayhomeapp.util
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.os.Build
import androidx.core.app.NotificationCompat
import de.wvvh.stayhomeapp.R
import de.wvvh.st... | 0 | Kotlin | 0 | 1 | 4ad97aaafd2d0059bb84016cb7a5c5643c3178b5 | 1,965 | StayhomeApp | MIT License |
Collections/GroupBy/src/Task.kt | rodionGra | 319,132,984 | false | null | // Build a map that stores the customers living in a given city
fun Shop.groupCustomersByCity(): Map<City, List<Customer>> =
customers.groupBy{ it.city }.toMap()
| 0 | Kotlin | 0 | 0 | b5ca2cb2493a66645b5dbb7dd0e374ce906610cf | 170 | Kotlin_Koans | MIT License |
app/src/main/java/com/example/pi_sniffsnap_garciafernandezmarta/settings/AboutActivity.kt | Glootie-MGF | 789,872,926 | false | {"Kotlin": 102620} | package com.example.pi_sniffsnap_garciafernandezmarta.settings
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.pi_sniffsnap_garciafernandezmarta.databinding.ActivityAboutBinding
class AboutActivity : AppCompatActivity() {
private lateinit var binding: ActivityAboutBind... | 0 | Kotlin | 0 | 0 | 332b18b3dbb817a174c18ad4023b741c53c0b062 | 613 | PI_SniffSnap_GarciaFernandezMarta | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.