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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
airsync-api/src/main/java/ffc/airsync/api/dao/Es.kt | porntipa | 125,967,174 | true | {"Kotlin": 89876, "Java": 34607} | /*
* Copyright (c) 2018 NECTEC
* National Electronics and Computer Technology Center, Thailand
*
* 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/... | 0 | Kotlin | 0 | 0 | 638796977b3d9f8253c8e237f9b91cfddabe1751 | 1,776 | airsync | Apache License 2.0 |
skulpt/src/main/java/org/skulpt/render/RenderPreviewPlaceholder.kt | timbrueggenthies | 461,235,201 | false | {"Kotlin": 29054} | package org.skulpt.render
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Mo... | 0 | Kotlin | 0 | 0 | 6e83bddfddcb98e3fc9e58730f6ec3afb639259d | 595 | skulpt | Apache License 2.0 |
resource-context/src/main/kotlin/com/mmolosay/resource/state/Failure.kt | mmolosay | 499,459,876 | false | {"Kotlin": 45539} | package com.mmolosay.resource.state
import com.mmolosay.resource.context.ResourceContext
/*
* Copyright 2022 <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://... | 0 | Kotlin | 0 | 7 | 6ef31468c741e4a0adacd51aceb12d452aefd7ac | 1,498 | Resource | Apache License 2.0 |
cogboard-app/src/main/kotlin/com/cognifide/cogboard/widget/type/zabbix/ZabbixWidget.kt | wttech | 199,830,591 | false | {"JavaScript": 338125, "Kotlin": 178733, "HTML": 2154, "Shell": 951, "Dockerfile": 433} | package com.cognifide.cogboard.widget.type.zabbix
import com.cognifide.cogboard.config.service.BoardsConfigService
import com.cognifide.cogboard.http.auth.AuthenticationType
import com.cognifide.cogboard.widget.AsyncWidget
import com.cognifide.cogboard.widget.Widget
import io.vertx.core.Vertx
import io.vertx.core.json... | 56 | JavaScript | 9 | 15 | fc2e392bc072ea5738b6172a5b1f01609b4e6f13 | 7,985 | cogboard | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/util/view/BottomSheetExtensions.kt | nekomangaorg | 182,704,531 | false | {"Kotlin": 3442643} | package eu.kanade.tachiyomi.util.view
import com.google.android.material.bottomsheet.BottomSheetBehavior
import com.google.android.material.bottomsheet.BottomSheetBehavior.STATE_COLLAPSED
import com.google.android.material.bottomsheet.BottomSheetBehavior.STATE_EXPANDED
import com.google.android.material.bottomsheet.Bo... | 83 | Kotlin | 119 | 2,261 | 3e0f16dd125e6d173e29defa7fcb62410358239d | 930 | Neko | Apache License 2.0 |
core/src/test/java/com/ebnrdwan/core/data/error/manager/ErrorManagerTest.kt | ebnrdwan | 236,335,124 | false | null | package com.ebnrdwan.core.data.error.manager
import com.ebnrdwan.core.data.error.Error
import com.ebnrdwan.core.data.error.mapper.ErrorMapper
import org.junit.Assert.assertEquals
import org.junit.Before
import org.junit.Test
class ErrorManagerTest {
lateinit var mapper: ErrorMapper
lateinit var manager: Erro... | 0 | Kotlin | 1 | 1 | 9090b4b9a1f6d6ee7541b86bc9610e97bad403fa | 556 | NY-Times | Apache License 2.0 |
src/main/kotlin/com/alongo/discordbot/domain/messagehandlers/qr/QrDecodeMessageHandler.kt | alongotv | 521,663,361 | false | {"Kotlin": 47457, "Dockerfile": 315} | package com.alongo.discordbot.domain.messagehandlers.qr
import com.alongo.discordbot.domain.messagehandlers.BaseMessageHandler
import com.alongo.discordbot.domain.usecase.ResolveQrCodeUseCase
import com.alongo.discordbot.utils.FileUtils
import com.google.zxing.NotFoundException
import dev.kord.core.behavior.reply
impo... | 0 | Kotlin | 1 | 3 | fb65c32e8c8fefc582b314dc3622bff6de4ad267 | 1,626 | Stroggs-Discord-Bot | MIT License |
src/main/kotlin/com/refinedmods/refinedstorage/container/transfer/InsertionResultType.kt | thinkslynk | 290,596,653 | true | {"Kotlin": 695976, "Shell": 456} | package com.refinedmods.refinedstorage.container.transfer
internal enum class InsertionResultType {
CONTINUE_IF_POSSIBLE, STOP
} | 1 | Kotlin | 0 | 2 | c92afa51af0e5e08caded00882f91171652a89e3 | 133 | refinedstorage | MIT License |
core/src/io/github/tozydev/patek/nbt/ReadWriteNBTs.kt | tozydev | 773,615,401 | false | {"Kotlin": 128971, "Java": 2674} | package io.github.tozydev.patek.nbt
import io.github.tozydev.patek.nbt.iface.ReadWriteNBT
import org.bukkit.inventory.ItemStack
import java.util.*
/**
* Sets the [value] associated with a given [key] in the NBT compound.
*
* @throws IllegalArgumentException if the value is of unsupported NBT type
* @see ReadWrite... | 0 | Kotlin | 0 | 1 | f5b0fd5ba40c51dd53934d3bb5b41052675fb205 | 1,180 | patek | MIT License |
app/src/main/java/com/dreamit/androidquiz/quizsolving/presenter/QuizSolvingPresenter.kt | mkAndroDev | 142,674,492 | false | null | package com.dreamit.androidquiz.quizsolving.presenter
import com.dreamit.androidquiz.data.quizSolve.QuizSolveRepository
import com.dreamit.androidquiz.quizsolving.QuizSolvingContract
import com.dreamit.androidquiz.quizsolving.model.QuizSolve
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.... | 0 | Kotlin | 0 | 0 | eabf29df22080fcb6c4656b638ef1f6c5cc004f4 | 1,191 | AndroidQuiz | MIT License |
android/src/main/kotlin/dev/tabhishekpaul/notification_listener/NotificationUtils.kt | tabhishekpaul | 874,947,728 | false | {"Kotlin": 22122, "Dart": 5591} | package dev.tabhishekpaul.notification_listener
import android.app.Notification
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.drawable.Drawable
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.core.app.NotificationCompat
import androidx.core.app.Rem... | 0 | Kotlin | 0 | 0 | 8188f2c7260bef77504cbd7ab443b7d6c1e5d803 | 2,338 | notification_listener | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/CaseAccessFactory.kt | ministryofjustice | 515,276,548 | false | {"Kotlin": 8262155, "Shell": 15359, "Dockerfile": 1667, "Mustache": 383} | package uk.gov.justice.digital.hmpps.approvedpremisesapi.factory
import io.github.bluegroundltd.kfactory.Factory
import io.github.bluegroundltd.kfactory.Yielded
import uk.gov.justice.digital.hmpps.approvedpremisesapi.model.deliuscontext.CaseAccess
import uk.gov.justice.digital.hmpps.approvedpremisesapi.util.randomStri... | 26 | Kotlin | 1 | 5 | 51e95acef683f6c9a2c1b654b8a31e095b21e38f | 1,427 | hmpps-approved-premises-api | MIT License |
src/en/mangarockteam/src/eu/kanade/tachiyomi/extension/en/mangarockteam/MangaRockTeam.kt | komikku-app | 720,497,299 | false | {"Kotlin": 6775539, "JavaScript": 2160} | package eu.kanade.tachiyomi.extension.en.mangarockteam
import eu.kanade.tachiyomi.multisrc.madara.Madara
class MangaRockTeam : Madara("Manga Rock Team", "https://mangarockteam.com", "en")
| 22 | Kotlin | 8 | 97 | 7fc1d11ee314376fe0daa87755a7590a03bc11c0 | 190 | komikku-extensions | Apache License 2.0 |
EZRecipes/app/src/main/java/com/abhiek/ezrecipes/data/terms/MockTermsService.kt | Abhiek187 | 502,751,240 | false | {"Kotlin": 215379, "Ruby": 11396} | package com.abhiek.ezrecipes.data.terms
import com.abhiek.ezrecipes.data.models.RecipeError
import com.abhiek.ezrecipes.data.models.Term
import com.abhiek.ezrecipes.utils.Constants
import okhttp3.ResponseBody.Companion.toResponseBody
import retrofit2.Response
// Send hardcoded recipe responses for tests
// Using an o... | 1 | Kotlin | 0 | 0 | 3eeaf0f07c8f349b70fe0375d2a17225dd018541 | 1,042 | ez-recipes-android | MIT License |
desktopApp/src/jvmMain/kotlin/eu/heha/ncfilerenamer/ui/MainViewModel.kt | sihamark | 737,350,096 | false | {"Kotlin": 30129} | package eu.heha.ncfilerenamer.ui
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import eu.heha.ncfilerenamer.ViewModel
import eu.heha.ncfilerenamer.model.FileController
import io.github.aakira.napier.Napier
import kotlinx.coroutines.laun... | 0 | Kotlin | 0 | 0 | 266204b1b2ac578b34dbd8b010d228b84a0d4f82 | 2,001 | NextCloudPhotoRenamer | Apache License 2.0 |
core/src/main/kotlin/com/samples/verifier/internal/utils/ParseHelper.kt | vmishenev | 353,425,739 | true | {"Kotlin": 34423, "HTML": 1691} | package com.samples.verifier.internal.utils
import com.samples.verifier.Code
import com.samples.verifier.FileType
import com.samples.verifier.model.Attribute
import com.samples.verifier.model.ParseConfiguration
import com.vladsch.flexmark.html.HtmlRenderer
import com.vladsch.flexmark.parser.Parser
import com.vladsch.f... | 0 | Kotlin | 0 | 0 | 2afcb374f091e67f502b22723f7ddc41cdb4eb3b | 2,434 | kotlin-samples-verifier | Apache License 2.0 |
shared/src/iosMain/kotlin/likco/likfit/services/stepscounter/StepsCounterServiceMock.kt | LikDan | 653,590,458 | false | null | package likco.likfit.services.stepscounter
import likco.likfit.services.StepsCounterService
import platform.posix.sleep
import kotlin.native.concurrent.TransferMode
import kotlin.native.concurrent.Worker
import kotlin.random.Random
actual object StepsCounterServiceNative {
private var stopped = true
actual f... | 0 | Kotlin | 0 | 0 | ab39c86e6380b8e7a5ad6975b986ef7f25660efd | 761 | LikFit | Apache License 2.0 |
feature/qr/src/main/java/com/prography/qr/LessonCertificationQrUiMachine.kt | prography-team8 | 799,143,036 | false | {"Kotlin": 459261} | package com.prography.qr
import NavigationEvent
import com.prography.qr.domain.GenerateGwasuwonQrUseCase
import com.prography.qr.domain.GenerateLessonCertificationQrUseCase
import com.prography.qr.domain.GenerateQrUseCase
import com.prography.usm.holder.UiStateMachine
import com.prography.usm.result.Result
import com.... | 0 | Kotlin | 0 | 0 | 964f14a6f1688b7c8e6f10a0f1ac45e831110d37 | 2,389 | gwasuwon-aos | Apache License 2.0 |
defitrack-common/src/main/java/io/defitrack/token/FungibleTokenWithAmount.kt | decentri-fi | 426,174,152 | false | null | package io.defitrack.token
import java.math.BigDecimal
class FungibleTokenWithAmount(
val amount: BigDecimal?,
address: String,
name: String,
decimals: Int,
symbol: String,
logo: String?,
type: TokenType
) : FungibleToken(address, name, decimals, symbol, logo, type)
| 16 | Kotlin | 6 | 5 | e4640223e69c30f986b8b4238e026202b08a5548 | 297 | defi-hub | MIT License |
src/main/kotlin/com/github/malayP/decorations/block/machine/machine/BlastFurnace.kt | MalayPrime | 379,254,123 | false | null | package com.github.malayP.decorations.block.machine.machine
import com.github.malayP.decorations.modResourcesLocation
import com.github.malayP.decorations.register.AllTileEntity.blastFurnaceType
import com.github.zomb_676.fantasySoup.block.HorizonBlockWithTileEntity
import com.mojang.blaze3d.matrix.MatrixStack
import ... | 0 | Kotlin | 1 | 1 | 111cf27428c1580b91602a384bb46cd0988415cd | 12,111 | rotarism-decorations | MIT License |
common/src/desktopMain/kotlin/com/numq/common/collector/Collector.kt | numq | 622,627,887 | false | {"Kotlin": 52598, "Java": 37229} | package com.numq.common.collector
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.produceState
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.collectLatest
import kotlin.coroutines.Emp... | 0 | Kotlin | 0 | 0 | 1e85bb7bd4ffeb65693153b7012216d7f80e6c22 | 795 | gifq | MIT License |
server/src/main/kotlin/dev/robocode/tankroyale/server/score/ScoreAndDamage.kt | robocode-dev | 457,523,927 | false | {"Kotlin": 494724, "Java": 418337, "C#": 406673, "SCSS": 1367, "TypeScript": 1071, "Shell": 83} | package dev.robocode.tankroyale.server.score
import dev.robocode.tankroyale.server.dev.robocode.tankroyale.server.model.TeamOrBotId
import dev.robocode.tankroyale.server.rules.RAM_DAMAGE
/** Bot record that tracks damage and survival of a bot, and can calculate score. */
class ScoreAndDamage {
private val bullet... | 3 | Kotlin | 13 | 80 | aa33bf2de5e392bd7bdc5c1feaac02e1d035b8ee | 3,534 | tank-royale | Apache License 2.0 |
Week3/MassAndWeight.kt | InfiniteExalt | 528,918,884 | false | {"Kotlin": 18434, "Roff": 397} | fun main(){
//User will imput the mass in newtons
println("Enter mass in newtons: ")
val mass = Integer.valueOf(readLine())
if (mass>1000) {
println("mass is too heavy.")
}else{
if (mass<10)
println("mass is too light")
}
//the weight equation for mass... | 0 | Kotlin | 0 | 2 | 673cd3f2dae1c7e7c18815e6b81dfab8552924d4 | 410 | KotlinFall22 | MIT License |
samples/src/main/java/com/google/ai/client/generative/samples/controlled_generation.kt | google-gemini | 727,310,537 | false | {"Kotlin": 297005, "Shell": 1948} | /*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 26 | Kotlin | 153 | 708 | b5d2e5610d19522ad10e6dc7e98236689aaa3587 | 3,466 | generative-ai-android | Apache License 2.0 |
app/src/main/java/com/example/lockunlockdetection/MainActivity.kt | alihaider78222 | 693,083,673 | false | {"Kotlin": 4797} | package com.example.lockunlockdetection
import android.app.admin.DevicePolicyManager
import android.content.ComponentName
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
class MainActivity : AppCompatActivity(... | 0 | Kotlin | 0 | 1 | cb5cec61c47dda264fc6c7169b9722845a356b9f | 2,335 | Lock-Unlock-Detection-POC | MIT License |
src/test/we/rashchenko/networks/controllers/ComplexControllerTest.kt | dimitree54 | 395,058,303 | false | null | package we.rashchenko.networks.controllers
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import we.rashchenko.base.Feedback
import we.rashchenko.neurons.ControlledNeuron
import we.rashchenko.neurons.SlowNeuron
import we.rashchenko.neuro... | 5 | Kotlin | 0 | 1 | 04c9f6eab98722e971194cd235bd84d35afd92b7 | 2,922 | ChNN-Library | MIT License |
src/main/java/site/hirecruit/hr/domain/auth/aop/UserSessionInfoUpdateAspect.kt | themoment-team | 473,691,285 | false | {"Kotlin": 205045, "Dockerfile": 1004, "Shell": 97} | package site.hirecruit.hr.domain.auth.aop
import mu.KotlinLogging
import org.aspectj.lang.annotation.AfterReturning
import org.aspectj.lang.annotation.Aspect
import org.aspectj.lang.annotation.Pointcut
import org.springframework.stereotype.Component
import site.hirecruit.hr.domain.auth.dto.AuthUserInfo
import site.hir... | 2 | Kotlin | 0 | 16 | 6dbf1779257a5ecde9f51c9878bc0cb8871f5336 | 1,851 | HiRecruit-server | MIT License |
app/src/main/java/com/andrii_a/muze/MuzeApplication.kt | andrew-andrushchenko | 655,902,633 | false | null | package com.andrii_a.muze
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class MuzeApplication : Application() | 0 | Kotlin | 0 | 2 | a3c327faa2c1aa5f30b6400187d7d3745508f99d | 154 | Muze | The Unlicense |
app/src/main/java/com/andrii_a/muze/MuzeApplication.kt | andrew-andrushchenko | 655,902,633 | false | null | package com.andrii_a.muze
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class MuzeApplication : Application() | 0 | Kotlin | 0 | 2 | a3c327faa2c1aa5f30b6400187d7d3745508f99d | 154 | Muze | The Unlicense |
share/src/main/java/com/kyawhut/atsycast/share/base/BaseBrowseSupportFragment.kt | kyawhtut-cu | 406,324,527 | false | null | package com.kyawhut.atsycast.share.base
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragmen... | 0 | Kotlin | 4 | 3 | 72d56fa28f5be7526f0a9848491ddd87cca3804d | 5,191 | atsy-cast | Apache License 2.0 |
app/src/main/java/me/zhaoweihao/hnuplus/Utils/HttpUtil.kt | zhaoweih | 128,950,368 | false | null | package me.zhaoweihao.hnuplus.Utils
import okhttp3.OkHttpClient
import okhttp3.Request
/**
* Created by Zhaoweihao on 2018/1/6.
*/
object HttpUtil {
fun sendOkHttpRequest(address: String, callback: okhttp3.Callback) {
val client = OkHttpClient()
val request = Request.Builder()
.... | 0 | Kotlin | 0 | 13 | 73f2e2b5467c0010f2cb8852c306b0fe0ef95617 | 416 | Nice-Trader | MIT License |
alarmscheduler/src/main/java/com/carterchen247/alarmscheduler/model/AlarmInfo.kt | CarterChen247 | 245,651,581 | false | null | package com.carterchen247.alarmscheduler.model
import com.carterchen247.alarmscheduler.AlarmIdProvider
data class AlarmInfo(
val alarmType: Int,
val triggerTime: Long,
var alarmId: Int = AlarmIdProvider.AUTO_GENERATE,
var dataPayload: DataPayload? = null
) | 1 | Kotlin | 1 | 8 | 8726177fb3ed121d396384d05489a8a6d5da347b | 274 | AlarmScheduler | The Unlicense |
app/src/main/kotlin/aoc2021/day05/Point.kt | dbubenheim | 435,284,482 | false | null | package aoc2021.day05
data class Point(val x: Int, val y: Int) {
operator fun rangeTo(point: Point): List<Point> {
val minY = minOf(y, point.y)
val maxY = maxOf(y, point.y)
val minX = minOf(x, point.x)
val maxX = maxOf(x, point.x)
return when {
// vertical line
... | 6 | Kotlin | 0 | 0 | aa6d15c339965d226670cc6b882f34153c7d52ee | 2,068 | advent-of-code-2021 | MIT License |
data/RF01998/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF01998"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
1 to 2... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 2,364 | Rfam-for-RNArtist | MIT License |
net/src/main/java/com/tans/tfiletransporter/netty/extensions/IPackageDataConverter.kt | Tans5 | 329,625,887 | false | {"Kotlin": 513053} | package com.tans.tfiletransporter.netty.extensions
import com.tans.tfiletransporter.netty.PackageData
interface IPackageDataConverter {
fun couldHandle(type: Int, dataClass: Class<*>): Boolean
fun <T> convert(type: Int, messageId: Long, data: T, dataClass: Class<T>): PackageData?
} | 0 | Kotlin | 20 | 96 | 061bf75ba02b48693e61fbc15af670dc24a4c2cf | 294 | tFileTransporter | Apache License 2.0 |
src/main/kotlin/icfp2019/model/Orientation.kt | bspradling | 193,332,580 | true | {"JavaScript": 797310, "Kotlin": 85937, "CSS": 9434, "HTML": 5859} | package icfp2019.model
enum class Orientation {
Up, Down, Left, Right
}
| 0 | JavaScript | 0 | 0 | 9f7e48cce858cd6a517d4fb69b9a0ec2d2a69dc5 | 77 | icfp-2019 | The Unlicense |
acl-demo/server/src/main/kotlin/net/corda/samples/acl/server/Main.kt | anniyanvr | 174,407,442 | true | {"Kotlin": 575108, "Java": 153918, "HTML": 55513, "JavaScript": 40046, "CSS": 2042} | package net.corda.samples.acl.server
import com.sun.net.httpserver.HttpExchange
import com.sun.net.httpserver.HttpHandler
import com.sun.net.httpserver.HttpServer
import net.corda.core.identity.CordaX500Name
import java.io.File
import java.net.InetSocketAddress
const val DEFAULT_ACL_FILE_NAME = "acl.txt"
class Acces... | 0 | Kotlin | 0 | 0 | bc5495a35f3b9647afa0d2be11ee4edcebb26a9d | 1,992 | samples | Apache License 2.0 |
feature/settings/src/main/java/com/kanyideveloper/settings/presentation/settings/SettingsViewModel.kt | joelkanyi | 554,742,212 | false | {"Kotlin": 566635, "Shell": 761, "Java": 595} | /*
* Copyright 2022 <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 ... | 2 | Kotlin | 9 | 70 | c07bf99afa8aa278ffa6cdde4572ba49f3798d42 | 3,691 | mealtime | Apache License 2.0 |
app/src/main/java/io/nosyntax/foundation/presentation/settings/SettingsScreen.kt | aelrahmanashraf | 683,553,348 | false | {"Kotlin": 192249, "Groovy": 3590, "HTML": 1491, "Batchfile": 1149, "Shell": 744} | package io.nosyntax.foundation.presentation.settings
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.... | 0 | Kotlin | 0 | 0 | 3314a7e3f8a3faed2b120868ffc81339dd04ddbe | 4,537 | nosyntax-foundation-android | MIT License |
funcify-feature-eng-tools/src/test/kotlin/funcify/feature/tools/extensions/PersistentListExtensionsTest.kt | anticipasean | 458,910,592 | false | null | package funcify.feature.tools.extensions
import funcify.feature.tools.extensions.PersistentListExtensions.reduceToPersistentList
import java.util.stream.Stream
import kotlinx.collections.immutable.PersistentList
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
internal class PersistentListExt... | 0 | Kotlin | 0 | 0 | 202a13324edc1d477c82b3de54a55a4cb72669ad | 1,694 | funcify-feature-eng | Apache License 2.0 |
telegram-bot/src/main/kotlin/com/theapache64/cs/utils/FeedbackParser.kt | shyamsunder0072 | 249,824,626 | true | {"Jupyter Notebook": 197971, "Python": 105096, "JavaScript": 42047, "Kotlin": 25543, "CSS": 16364, "HTML": 857, "Dockerfile": 408, "Java": 299} | package com.theapache64.cs.utils
import com.theapache64.cs.models.Feedback
object FeedbackParser {
private val feedbackRegEx = "(?<feedback>\\w)(?<documentId>\\d+)(?<question>.+)".toRegex()
fun parse(data: String): Feedback {
val match = feedbackRegEx.find(data)
val groups = match!!.groups
... | 0 | null | 0 | 0 | a8474955911db70438fb1ec0396ef5ce2e8ad213 | 492 | COVID-QA | Apache License 2.0 |
ui/galleries/android/impl/src/main/kotlin/com/adjectivemonk2/pixels/ui/galleries/android/impl/GalleriesInfoViewFactoryImpl.kt | Sripadmanabans | 300,346,280 | false | null | package com.adjectivemonk2.pixels.ui.galleries.android.impl
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.co... | 1 | Kotlin | 0 | 1 | b4e217a9da7b833989d806644348fa5caeb7e065 | 3,491 | Pixels | Apache License 2.0 |
dial-phone-api/src/commonMain/kotlin/de/mtorials/dialphone/api/model/mevents/todevice/MRoomKeyRequest.kt | mtorials | 272,526,016 | false | null | package de.mtorials.dialphone.api.model.mevents.todevice
import de.mtorials.dialphone.api.ids.UserId
import de.mtorials.dialphone.api.model.RequestedKeyInfo
import de.mtorials.dialphone.api.model.enums.KeyRequestAction
import de.mtorials.dialphone.api.model.mevents.EventContent
import de.mtorials.dialphone.api.model.m... | 1 | Kotlin | 0 | 6 | 1f78fed1af1287069fa8c6c585f868cd75e372f9 | 1,057 | dial-phone | Apache License 2.0 |
src/main/kotlin/kvmInternals/systemCalls/calls/readFile.kt | ChippyPlus | 850,474,357 | false | {"Kotlin": 74636} | package org.example.kvmInternals.systemCalls.calls
import org.example.data.registers.enumIdenifiers.SuperRegisterType
import org.example.fileDescriptors
import org.example.helpers.fullRegisterRead
import org.example.helpers.fullRegisterWrite
import org.example.helpers.writeRegisterString
import org.example.kvmInternal... | 0 | Kotlin | 0 | 1 | 86733d9aa14f896af295c1cc9b941d85a04d71a5 | 587 | MVM | MIT License |
src/main/kotlin/kvmInternals/systemCalls/calls/readFile.kt | ChippyPlus | 850,474,357 | false | {"Kotlin": 74636} | package org.example.kvmInternals.systemCalls.calls
import org.example.data.registers.enumIdenifiers.SuperRegisterType
import org.example.fileDescriptors
import org.example.helpers.fullRegisterRead
import org.example.helpers.fullRegisterWrite
import org.example.helpers.writeRegisterString
import org.example.kvmInternal... | 0 | Kotlin | 0 | 1 | 86733d9aa14f896af295c1cc9b941d85a04d71a5 | 587 | MVM | MIT License |
src/lang-xquery/main/uk/co/reecedunn/intellij/plugin/xquery/ast/xquery/XQueryDirElemConstructor.kt | rhdunn | 62,201,764 | false | null | /*
* Copyright (C) 2016-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 ... | 47 | Kotlin | 4 | 25 | d363dad28df1eb17c815a821c87b4f15d2b30343 | 1,210 | xquery-intellij-plugin | Apache License 2.0 |
src/test/kotlin/g2601_2700/s2679_sum_in_a_matrix/SolutionTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4870729, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g2601_2700.s2679_sum_in_a_matrix
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
internal class SolutionTest {
@Test
fun matrixSum() {
assertThat(
Solution().matrixSum(
arrayOf(
... | 0 | Kotlin | 20 | 43 | e8b08d4a512f037e40e358b078c0a091e691d88f | 653 | LeetCode-in-Kotlin | MIT License |
app/src/main/java/fr/gilles/riceattend/ui/widget/components/LineChartView.kt | Gilles-kpn | 498,005,092 | false | {"Kotlin": 442751} | package fr.gilles.riceattend.ui.widget.components
import androidx.compose.foundation.background
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.CircleShape
import androidx.com... | 0 | Kotlin | 0 | 1 | b75abaf8d21014bdfe79a2ab8db82bcb1f561bf8 | 6,665 | RiceAttend-Mobile | MIT License |
src/main/kotlin/mathfoundation/automaticdifferentiation/automatic_diff_multivar.kt | widi-nugroho | 397,121,501 | false | null | package mathfoundation.automaticdifferentiation
import ai.djl.engine.Engine
import ai.djl.ndarray.NDManager
fun main(){
var manager=NDManager.newBaseManager()
var x=manager.arange(4f)
var y=manager.arange(4f)
x.setRequiresGradient(true)
y.setRequiresGradient(true)
var gc=Engine.getInstance().... | 0 | Kotlin | 0 | 0 | 542c1084f327c930c19a73d6b9b2c904d725e4c6 | 582 | diveintodeeplearning | Apache License 2.0 |
src/main/kotlin/com/dataxow/helper/ImageHelper.kt | paulocoutinhox | 763,882,755 | false | {"Kotlin": 94338, "Vue": 12412, "JavaScript": 1759, "HTML": 1023, "SCSS": 154} | package com.dataxow.helper
import androidx.compose.ui.graphics.ImageBitmap
import androidx.compose.ui.graphics.asComposeImageBitmap
import com.google.zxing.BarcodeFormat
import com.google.zxing.qrcode.QRCodeWriter
import org.jetbrains.skia.Bitmap
import org.jetbrains.skia.Rect
class ImageHelper {
companion object... | 0 | Kotlin | 0 | 1 | 0c5d679e45680e37fb477d585e719a0aa516aec7 | 1,292 | dataxow | MIT License |
src/main/kotlin/io/kloudformation/specification/SpecificationGenerator.kt | hexlabsio | 137,217,471 | false | null | package io.kloudformation.specification
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.MapperFeature
import com.fasterxml.jackson.module.kotlin.readValue
import io.kloudformation.specification.SpecificationMerger.merge
import java.net.URL
import java.util.zip.GZIPInp... | 3 | Kotlin | 1 | 33 | 19b703f6f57f1f4b24ddc835c6d96d02d007b1cd | 1,847 | kloudformation | Apache License 2.0 |
src/test/kotlin/org/kalasim/examples/atm/Atm.kt | cybernetics | 328,781,400 | true | {"Jupyter Notebook": 476274, "Kotlin": 211305, "R": 3312} | //Atm.kt
import org.apache.commons.math3.distribution.ExponentialDistribution
import org.kalasim.*
import org.kalasim.misc.display
//https://youtrack.jetbrains.com/issue/KT-44062
fun main() {
createSimulation(false) {
val lambda = 1.5
val mu = 1.0
val rho = lambda / mu
println(... | 0 | null | 0 | 0 | 5d395ad27ae66eb4a06041325e29fa014990a012 | 1,106 | kalasim | MIT License |
core/src/test/kotlin/simulation/resources/StoreTest.kt | aarangop | 618,418,716 | false | null | /*
* Copyright (c) 2023. Andrés Arango Pérez <arangoandres.p@gmail.com>
*
* You may use, distribute and modify this code under the terms of the MIT license.
*/
package simulation.resources
import event.EventValueStatus
import event.StoreGetEvent
import event.StorePutEvent
import exceptions.StoreAlreadyInitialize... | 5 | Kotlin | 0 | 0 | 0424d803419e52da6abd6df957c4134f37c78e03 | 3,592 | k-DESim | MIT License |
app/src/main/java/com/ghstudios/android/ClickListeners/HelpExpandableClickListener.kt | theMaelstro | 513,896,693 | false | {"Kotlin": 747422, "Java": 406804} | package com.ghstudios.android.ClickListeners
import android.view.View
/**
* Simple ClickListener class to hide and show elements.
* Takes view element to be toggled as parameter.
* Universal, can be used outside of Help page.
*/
class HelpExpandableClickListener(private val element: View) :
View.OnClickListene... | 0 | Kotlin | 2 | 12 | 0e71fe8d60c937c22dc5111eceb3722be03575a2 | 542 | MHFZZDatabase | MIT License |
features/properties/presentation/src/main/java/com/danielwaiguru/tripitacaandroid/properties/presentation/propertieslisting/PropertiesUIState.kt | daniel-waiguru | 742,252,528 | false | {"Kotlin": 164708} | package com.danielwaiguru.tripitacaandroid.properties.presentation.propertieslisting
import androidx.compose.runtime.Stable
import com.danielwaiguru.tripitacaandroid.shared.models.Property
@Stable
data class PropertiesUIState(
val properties: List<Property> = emptyList(),
val filteredProperties: List<Property>... | 1 | Kotlin | 2 | 4 | 83f39b24b3a1c999052e1c24c6796f309ba89347 | 1,252 | QuickStay | MIT License |
src/main/java/com/github/shur/mariaquest/quest/QuestId.kt | SigureRuri | 374,370,450 | false | null | package com.github.shur.mariaquest.quest
class QuestId private constructor(private val id: String) {
init {
if (!id.matches(PATTERN))
throw IllegalArgumentException("id must match [a-z_0-9]+")
}
override fun toString(): String = id
override fun equals(other: Any?): Boolean {
... | 0 | Kotlin | 0 | 0 | a4443319f30758603d9044a0236894653dcb9c4e | 728 | MariaQuest | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/lambda/DestinationConfigDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.lambda
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.lambda.DestinationConfig
@Generated
public fun buildDestinationConfig(initializer: @AwsCdkDsl DestinationConfig.Builder.() -> Unit)... | 1 | Kotlin | 0 | 0 | b22e397ff37c5fce365a5430790e5d83f0dd5a64 | 401 | aws-cdk-kt | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/FloppyDiskCircleArrowRight.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,918 | icons | MIT License |
app/src/main/java/xyz/pokkst/pokket/lite/util/PaymentContent.kt | pokkst | 356,665,068 | false | null | package xyz.pokkst.pokket.lite.util
import org.bitcoinj.core.Coin
class PaymentContent(val addressOrPayload: String?, val amount: Coin?, val paymentType: PaymentType)
enum class PaymentType {
ADDRESS,
BIP70
} | 0 | Kotlin | 0 | 2 | 9a196e59d80ad03bc4718e97b0d411d418c5bbf6 | 219 | pokket.lite | MIT License |
app/src/main/java/com/brookes6/cloudmusic/ui/page/MyPage.kt | brokes6 | 428,601,432 | false | null | package com.brookes6.cloudmusic.ui.page
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.... | 0 | Kotlin | 3 | 15 | af5805f903107d61467eebbd9ddfb00a595f7319 | 2,500 | CloudMusic | Apache License 2.0 |
native/android/app/src/main/java/tuerantuer/app/integreat/fetcher/FetchResult.kt | digitalfabrik | 298,817,213 | false | {"TypeScript": 1686582, "JavaScript": 23047, "Ruby": 20883, "Kotlin": 12817, "CSS": 7280, "Swift": 7195, "EJS": 7183, "Shell": 5863, "Objective-C++": 3607, "Objective-C": 953} | package tuerantuer.app.integreat.fetcher
import java.util.Date
class FetchResult(
@JvmField val url: String,
@JvmField val lastUpdate: Date,
private val alreadyExisted: Boolean,
private val errorMessage: String?
) {
fun alreadyExisted(): Boolean {
return alreadyExisted
}
fun getEr... | 110 | TypeScript | 14 | 47 | b39c0e6c881e3ae53a7a2d13d93640d93649a338 | 380 | integreat-app | MIT License |
app/src/main/java/com/gchristensen/petfindingapp/AlertService.kt | grchristensen | 269,789,719 | false | null | package com.gchristensen.petfindingapp
import android.app.PendingIntent
import android.content.Intent
import android.util.Log
import com.google.firebase.messaging.FirebaseMessagingService
import com.google.firebase.messaging.RemoteMessage
/**
* Handles the receiving of alerts
* */
class AlertService: FirebaseMessag... | 0 | Kotlin | 0 | 0 | b7b2872b3d9a3de3960f971e005b98addb3320bb | 2,633 | StrayAlertHTNE | MIT License |
src/Main.kt | alfadur | 76,307,132 | false | null | import kotlin.browser.document
import kotlin.browser.window
enum class GameFlowState
{
DaySelection,
Ingame,
Feedback,
Pause
}
class Game
{
val screenWidth = 620
val screenHeight = 440
val renderer = PIXI.CanvasRenderer(screenWidth, screenHeight)
val scene = PIXI.Container()
var ... | 0 | Kotlin | 0 | 0 | cde79237592b4a7b5481e77c9684f97aa9e5915b | 4,268 | roomservice | MIT License |
core/domain/src/main/kotlin/org/sollecitom/chassis/core/domain/quantity/NonZeroCount.kt | sollecitom | 669,483,842 | false | {"Kotlin": 837953, "Java": 30834} | package org.sollecitom.chassis.core.domain.quantity
@JvmInline
value class NonZeroCount(val value: Int) : Comparable<NonZeroCount> {
init {
require(value > 0) { "value cannot be negative" }
}
override fun compareTo(other: NonZeroCount) = value.compareTo(other.value)
companion object
} | 0 | Kotlin | 0 | 2 | b1a566393c2b7735682c7956ce4808cd74c4e68b | 313 | chassis | MIT License |
cupertino-icons-extended/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/icons/outlined/QuoteOpening.kt | alexzhirkevich | 636,411,288 | false | {"Kotlin": 5215549, "Ruby": 2329, "Swift": 2101, "HTML": 2071, "Shell": 868} | /*
* Copyright (c) 2023-2024. Compose Cupertino project and open source contributors.
*
* 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... | 18 | Kotlin | 31 | 848 | 54bfbb58f6b36248c5947de343567903298ee308 | 3,912 | compose-cupertino | Apache License 2.0 |
src/main/kotlin/io/emeraldpay/dshackle/quorum/ValueAwareQuorum.kt | bitindi | 692,819,625 | false | {"Kotlin": 974369, "Groovy": 712181, "Java": 21948, "JavaScript": 5522, "Shell": 646} | /**
* Copyright (c) 2020 EmeraldPay, Inc
* Copyright (c) 2019 ETCDEV GmbH
*
* 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
*
* U... | 0 | Kotlin | 0 | 0 | 3dafa23728acfdfd046580dc0d1fcb9ba61718d4 | 2,729 | dshackle | Apache License 2.0 |
geeksmediapicker/src/main/java/com/geeksmediapicker/utils/ViewExtensions.kt | im-manisharma | 271,395,161 | false | null | package com.geeksmediapicker.utils
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import android.widget.Toast
import com.geeksmediapicker.R
internal fun View.visible() {
visibility = View.VISIBLE
}
internal fun View.gone() {
visibili... | 1 | Kotlin | 3 | 13 | e8eefc69dfc78574817bd6408f459755074529e0 | 816 | GeeksMediaPicker | MIT License |
src/main/kotlin/BMI.kt | Talnz007 | 728,051,979 | false | {"Kotlin": 7941, "JavaScript": 5597, "HTML": 1669, "CSS": 930} | open class BMI {
var WeightKg: Double = 0.0
var HeightM: Double = 0.0
open var HeightFeet: Double = 0.0
open var HeightInches: Double = 0.0
var HeightTotal: Double = 0.0
open var WeightLb: Double = 0.0
}
| 0 | Kotlin | 0 | 0 | ec3ca3d046a7dc32616962b7df1dc64e1bd77380 | 228 | BMI-CALCULATOR | Apache License 2.0 |
src/main/kotlin/com/projectcitybuild/features/warps/usecases/CreateWarpUseCase.kt | projectcitybuild | 42,997,941 | false | null | package com.projectcitybuild.features.warps.usecases
import com.projectcitybuild.core.utilities.Failure
import com.projectcitybuild.core.utilities.Result
import com.projectcitybuild.core.utilities.Success
import com.projectcitybuild.entities.CrossServerLocation
import com.projectcitybuild.entities.Warp
import com.proj... | 23 | Kotlin | 0 | 2 | 24c6a86aee15535c3122ba6fb57cc7ca351e32bb | 1,285 | PCBridge | MIT License |
src/main/kotlin/kz/btsd/messenger/bot/api/model/update/FormUpdate.kt | btsdigital | 195,374,563 | false | null | package kz.btsd.messenger.bot.api.model.update
import com.fasterxml.jackson.annotation.JsonSubTypes
import com.fasterxml.jackson.annotation.JsonTypeInfo
import io.swagger.annotations.ApiModel
import kz.btsd.messenger.bot.api.model.peer.Peer
@ApiModel(discriminator = "type", subTypes = [
FormClosed::class,
For... | 0 | Kotlin | 1 | 15 | 6279fd30b15e4896a6810d9ebda3436a90dd6781 | 948 | bot-api-contract | Apache License 2.0 |
core/src/commonMain/kotlin/org/kobjects/greenspun/core/func/ImportedFunc.kt | kobjects | 340,712,554 | false | {"Kotlin": 92759, "Ruby": 1673} | package org.kobjects.greenspun.core.func
import org.kobjects.greenspun.core.tree.CodeWriter
import org.kobjects.greenspun.core.type.FuncType
class ImportedFunc(
override val index: Int,
val module: String,
val name: String,
override val type: FuncType
) : FuncInterface {
override val localContext... | 0 | Kotlin | 0 | 0 | 1f55591687303d28af1acdc4d567f491281378c7 | 1,039 | greenspun | Apache License 2.0 |
showkase/src/main/java/com/airbnb/android/showkase/exceptions/ShowkaseException.kt | airbnb | 257,758,318 | false | {"Kotlin": 715619} | package com.airbnb.android.showkase.exceptions
import java.lang.Exception
/**
* Used to throw an exception for Showkase specific errors.
*/
internal class ShowkaseException(message: String): Exception(message)
| 50 | Kotlin | 106 | 2,073 | 9c3d6fc313d63b8f555fc65232ac15f798aede9a | 215 | Showkase | Apache License 2.0 |
Lemonade/app/src/main/java/com/example/lemonade/MainActivity.kt | correabuscar | 774,353,112 | false | {"Kotlin": 828886, "Shell": 2341} | /*
* Copyright (C) 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/LICENSE-2.0
*
* Unless required by app... | 0 | Kotlin | 0 | 0 | 059f1d543e4d07117698983e1f93c3106dd09a73 | 8,840 | android_projects_sandbox | Apache License 2.0 |
Lemonade/app/src/main/java/com/example/lemonade/MainActivity.kt | correabuscar | 774,353,112 | false | {"Kotlin": 828886, "Shell": 2341} | /*
* Copyright (C) 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/LICENSE-2.0
*
* Unless required by app... | 0 | Kotlin | 0 | 0 | 059f1d543e4d07117698983e1f93c3106dd09a73 | 8,840 | android_projects_sandbox | Apache License 2.0 |
circuitkt/src/main/kotlin/com/github/cybercodernaj/components/gates/Xnor.kt | cybercoder-naj | 567,041,894 | false | {"Kotlin": 6211} | package com.github.cybercodernaj.components.gates
/**
* Xnor gate's output is the inverted form of the Xor gate.
*
* @see Xor
*/
class Xnor : Gate() {
override fun simulate() {
if (inputs.size <= 1)
throw IllegalStateException()
val ones = inputs.count { it.current }
output... | 1 | Kotlin | 0 | 0 | 3ccb6f375081b1ffcf6bf535818c8b83c9a55ca6 | 402 | CircuitKt | MIT License |
app/src/main/java/net/pfiers/osmfocus/view/support/ViewFunctions.kt | ubipo | 310,888,250 | false | {"Kotlin": 276359, "Ruby": 583} | package net.pfiers.osmfocus.view.support
import android.content.res.Resources
import android.graphics.drawable.GradientDrawable
import android.util.TypedValue
import android.view.Gravity
import androidx.annotation.ColorInt
import net.pfiers.osmfocus.service.jts.toDecimalDegrees
import net.pfiers.osmfocus.service.tagbo... | 7 | Kotlin | 5 | 43 | 53cfdeff366aa23627ea2b6d824c949bc052f25c | 1,974 | osmfocus | Apache License 2.0 |
app/src/test/java/org/simple/clinic/reassignpatient/ReassignPatientUpdateTest.kt | resolvetosavelives | 132,515,649 | false | {"Gradle Kotlin DSL": 10, "Shell": 11, "Markdown": 37, "Java Properties": 1, "Text": 1, "Ignore List": 9, "Batchfile": 1, "YAML": 11, "Git Attributes": 1, "EditorConfig": 1, "JSON5": 1, "Kotlin": 2464, "XML": 365, "INI": 5, "Proguard": 4, "TOML": 1, "Python": 3, "JSON": 117, "HTML": 1} | package org.simple.clinic.reassignpatient
import com.spotify.mobius.test.NextMatchers.hasEffects
import com.spotify.mobius.test.NextMatchers.hasModel
import com.spotify.mobius.test.NextMatchers.hasNoEffects
import com.spotify.mobius.test.NextMatchers.hasNoModel
import com.spotify.mobius.test.UpdateSpec
import com.spot... | 1 | null | 1 | 1 | 73e215679850d3ecdbd4c7d7f1d46477941bd5d0 | 2,569 | redapp | MIT License |
src/main/kotlin/ui/HomeTab.kt | XiLaiTL | 813,186,648 | false | {"Kotlin": 90879, "ANTLR": 2191} | package ui
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.RowScope
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.*
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androi... | 0 | Kotlin | 0 | 0 | 42d6310fc931510561970ae2c0e379b462ba9ec0 | 3,075 | lambda-calculator | MIT License |
src/main/kotlin/me/nepnep/nepbot/message/command/commands/fun/Lmddgtfy.kt | NepNep21 | 332,348,863 | false | null | package me.nepnep.nepbot.message.command.commands.`fun`
import me.nepnep.nepbot.message.command.Category
import me.nepnep.nepbot.message.command.AbstractCommand
import net.dv8tion.jda.api.EmbedBuilder
import net.dv8tion.jda.api.entities.GuildMessageChannel
import net.dv8tion.jda.api.events.message.MessageReceivedEvent... | 0 | Kotlin | 1 | 1 | e46f9f06de4d31abc41e9795dff40ae421d42f51 | 843 | nepbot | MIT License |
investor/src/main/java/com/mityushov/investor/database/StockDatabase.kt | NikitaMityushov | 391,630,324 | false | null | package com.mityushov.investor.database
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.mityushov.investor.models.StockPurchase
@Database(entities = [StockPurchase::class], version = 1)
@TypeConverters(StockTypeConverter::class)
abstract class StockDataba... | 0 | Kotlin | 0 | 0 | 81c1ecacf09a8140d7bb325954cfea65f2f1c0e6 | 380 | AndroidClasses | MIT License |
crp-util-desktop/src/main/kotlin/com/x256n/desktop/crputil/component/ResultPanelScreen.kt | liosha2007 | 471,299,880 | false | null | package com.x256n.desktop.crputil.component
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material.Icon
impor... | 0 | Kotlin | 0 | 0 | 23ec8032fbe3719a6e9a6b5d80cfb88fa2a31a90 | 9,294 | crp-util | MIT License |
src/main/kotlin/com/ravishrajput/restapi/controller/UserController.kt | ravishrajput | 402,513,929 | false | {"Kotlin": 19744, "CSS": 16568, "FreeMarker": 6208, "Procfile": 68} | package com.ravishrajput.restapi.controller
import com.ravishrajput.restapi.database.DaoRepository
import com.ravishrajput.restapi.model.Response
import com.ravishrajput.restapi.model.User
import io.ktor.application.*
import io.ktor.request.*
import io.ktor.response.*
import io.ktor.routing.*
fun Route.routeUser(dao:... | 0 | Kotlin | 0 | 2 | 21500be0420b8e41de7e9efc9e905975ed1360f2 | 1,371 | ktor-rest-api-example | Apache License 2.0 |
data/src/main/java/com/foobarust/data/models/seller/SellerRatingCountDto.kt | foobar-UST | 285,792,732 | false | null | package com.foobarust.data.models.seller
import com.foobarust.data.constants.Constants.SELLER_RATING_COUNT_EXCELLENT_FIELD
import com.foobarust.data.constants.Constants.SELLER_RATING_COUNT_FAIR_FIELD
import com.foobarust.data.constants.Constants.SELLER_RATING_COUNT_GOOD_FIELD
import com.foobarust.data.constants.Consta... | 0 | Kotlin | 2 | 2 | b4358ef0323a0b7a95483223496164e616a01da5 | 1,038 | foobar-android | MIT License |
app/src/main/java/com/breezebengaldetergentproducts/app/domain/ContactActivityEntity.kt | DebashisINT | 863,405,964 | false | {"Kotlin": 15991783, "Java": 1032672} | package com.breezebengaldetergentproducts.app.domain
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.breezebengaldetergentproducts.app.AppConstant
@Entity(tableName = AppConstant.CONTACT_ACTIVITY)
data class ContactActivityEntity (
@PrimaryKey(autoGenerate = ... | 0 | Kotlin | 0 | 0 | 0cd8b29158b494893e3d7be77b87a725e3d49abf | 536 | BengalDetergentProducts | Apache License 2.0 |
libs/lib_threading/src/main/java/com/bael/executor/demo/lib/threading/executor/concurrent/contract/ConcurrentExecutor.kt | ErickSumargo | 291,285,538 | false | null | package com.bael.executor.demo.lib.threading.executor.concurrent.contract
/**
* Created by ErickSumargo on 01/09/20.
*/
interface ConcurrentExecutor {
suspend fun <T> run(block: suspend () -> T): T
}
| 0 | Kotlin | 3 | 12 | a1314a7e8278fba319029dfd7f758edc42c14e13 | 209 | Executor-Demo | MIT License |
app/src/main/kotlin/com/delicious/mvvm/di/component/AppComponent.kt | pzverkov | 181,941,661 | false | null | package com.delicious.mvvm.di.component
import com.delicious.mvvm.App
import dagger.Component
import dagger.android.AndroidInjectionModule
import com.delicious.mvvm.di.module.AppModule
import com.delicious.mvvm.di.module.BuildersModule
import com.delicious.mvvm.di.module.NetModule
import javax.inject.Singleton
@Singl... | 0 | Kotlin | 0 | 0 | 57191562cb2c940aa11e62d74d434f85359377f5 | 502 | FoodApp-Kotlin | MIT License |
lock/src/main/java/com/hzy/lock/util/PatternLockUtil.kt | huangziye | 176,403,059 | false | null | package com.hzy.lock.util
import com.hzy.lock.PatternLockView
import java.io.UnsupportedEncodingException
import java.math.BigInteger
import java.security.MessageDigest
import java.security.NoSuchAlgorithmException
import java.util.*
/**
*
* @author: ziye_huang
* @date: 2019/3/18
*/
object PatternLockUtil {
... | 0 | Kotlin | 0 | 0 | bb1de9c05317f8432f7a9e82587af3865618c1b4 | 9,665 | PatternLock | Apache License 2.0 |
lock/src/main/java/com/hzy/lock/util/PatternLockUtil.kt | huangziye | 176,403,059 | false | null | package com.hzy.lock.util
import com.hzy.lock.PatternLockView
import java.io.UnsupportedEncodingException
import java.math.BigInteger
import java.security.MessageDigest
import java.security.NoSuchAlgorithmException
import java.util.*
/**
*
* @author: ziye_huang
* @date: 2019/3/18
*/
object PatternLockUtil {
... | 0 | Kotlin | 0 | 0 | bb1de9c05317f8432f7a9e82587af3865618c1b4 | 9,665 | PatternLock | Apache License 2.0 |
common-ui/src/main/java/com/netease/yunxin/kit/common/ui/adapter/BaseFragmentAdapter.kt | netease-kit | 41,782,426 | false | {"Java": 3118605, "Kotlin": 75524} | /*
* Copyright (c) 2022 NetEase, Inc. All rights reserved.
* Use of this source code is governed by a MIT license that can be
* found in the LICENSE file.
*/
package com.netease.yunxin.kit.common.ui.adapter
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.fragment... | 0 | Java | 134 | 689 | 5ad0e61f2ba98eebb804c43f661bfa4b8c51697c | 1,403 | nim-uikit-android | MIT License |
main/java/com/app/chenyang/ussettings/utils/LogUtils.kt | yaoyang4346 | 133,810,257 | false | null | package com.app.chenyang.ussettings.utils
import android.util.Log
/**
* Created by chenyang on 2017/8/9.
*/
class LogUtils {
companion object {
val TAG = "UsSettings"
fun d(str:String){
Log.d(TAG,str)
}
}
} | 0 | Kotlin | 0 | 0 | fc0cb17df7ccceb66b3dc9b8124992cca57e89b8 | 254 | Kotlin-Settings | Apache License 2.0 |
app/src/main/java/com/wonium/helium/adapter/SlidingButtonAdapter.kt | wonium-ethan | 230,730,312 | false | null | /*
* Copyright (c) 2020. Ethan
*
* 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 ... | 0 | Kotlin | 0 | 0 | c1e16007fa0b6a9b2e0161525d8a9e1dc1d1e288 | 4,313 | Helium | Apache License 2.0 |
api/src/main/kotlin/com/google/prefab/api/PlatformInterface.kt | DanAlbert | 219,671,482 | true | {"Kotlin": 108330} | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | null | 0 | 1 | a0bc1ba22f8bfde0251a3098ac2d12fdafd5b14e | 2,024 | prefab | Apache License 2.0 |
src/main/kotlin/com/skhu/mypack/member/dao/MemberRepository.kt | My-Pack | 611,048,216 | false | null | package com.skhu.mypack.member.dao
import com.skhu.mypack.member.domain.Member
import org.springframework.data.domain.Pageable
import org.springframework.data.domain.Slice
import org.springframework.data.jpa.repository.JpaRepository
interface MemberRepository : JpaRepository<Member, Long> {
fun findByEmail(email:... | 2 | Kotlin | 0 | 0 | 4e80d44cd23570fcf61fd2854dc85866d6da103f | 501 | MyPack-Server | MIT License |
cordapp-contracts-states/src/test/kotlin/com/hmlr/contracts/LandTitleIssuanceTests.kt | LandRegistry | 158,533,826 | false | null | package com.hmlr.contracts
import com.hmlr.AbstractContractsStatesTestUtils
import com.hmlr.model.*
import com.hmlr.states.LandTitleState
import net.corda.finance.POUNDS
import net.corda.testing.node.MockServices
import net.corda.testing.node.ledger
import org.junit.Test
class LandTitleIssuanceTests : AbstractContrac... | 0 | Kotlin | 6 | 7 | 3c3b8f0c3bbd5927766d9df3113ecd951afd91b1 | 19,832 | digital-street-cordapp | MIT License |
ktfx-coroutines/src/ktfx/coroutines/scene/control/TreeTableView.kt | alilosoft | 182,138,993 | true | {"Kotlin": 364065, "HTML": 1385, "Java": 682} | @file:Suppress("PackageDirectoryMismatch")
package ktfx.coroutines
import javafx.scene.control.ScrollToEvent
import javafx.scene.control.SortEvent
import javafx.scene.control.TreeTableColumn
import javafx.scene.control.TreeTableView
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import... | 0 | Kotlin | 0 | 0 | f499c9d7abddb270f1946c0e9ffb9072e45cd625 | 1,510 | ktfx | Apache License 2.0 |
app/src/main/java/com/example/hellocowcow/app/di/viewModels/ViewModelUtils.kt | Elyt622 | 665,358,514 | false | {"Kotlin": 274991} | package com.example.hellocowcow.app.di.viewModels
import com.example.hellocowcow.ui.viewmodels.util.MySchedulers
import com.example.hellocowcow.ui.viewmodels.util.MySchedulersImpl
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(... | 0 | Kotlin | 0 | 0 | 72900bfe02b1527edb40d9abf40d553ac9b64e59 | 503 | Hello-Cowcow | Apache License 2.0 |
shared/src/commonMain/kotlin/com/ericktijerou/anticucho_detector/di/AnticuchoDetectorDatabaseWrapper.kt | ericktijerou | 382,207,681 | false | null | package com.ericktijerou.anticucho_detector.di
import com.ericktijerou.anticucho_detector.db.AnticuchoDetectorDatabase
class AnticuchoDetectorDatabaseWrapper(val instance: AnticuchoDetectorDatabase?) | 0 | Kotlin | 0 | 0 | 6e31f2c080ef267a49408dce7440d42372e48d43 | 201 | anticucho-detector-mobile | Apache License 2.0 |
model/src/main/java/org/ligi/kithub/model/GithubIssue.kt | MaTriXy | 106,587,325 | true | {"Kotlin": 8064} | package org.ligi.kithub.model
data class GithubIssue(val title: String,
val body: String,
val user: GithubUser,
val milestone: String?,
val pull_request: GithubPullRequest?,
val labels:List<String>,
... | 0 | Kotlin | 0 | 0 | fa85001f96602baa8f4912e31c0f37c46a61f03b | 367 | Kithub | MIT License |
model/src/main/java/org/ligi/kithub/model/GithubIssue.kt | MaTriXy | 106,587,325 | true | {"Kotlin": 8064} | package org.ligi.kithub.model
data class GithubIssue(val title: String,
val body: String,
val user: GithubUser,
val milestone: String?,
val pull_request: GithubPullRequest?,
val labels:List<String>,
... | 0 | Kotlin | 0 | 0 | fa85001f96602baa8f4912e31c0f37c46a61f03b | 367 | Kithub | MIT License |
example/src/main/kotlin/com/github/andrewoma/kwery/example/film/model/FilmModel.kt | aPureBase | 170,159,654 | true | {"Kotlin": 452423, "HTML": 7111, "Scala": 2252} | /*
* Copyright (c) 2015 Andrew O'Malley
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pub... | 12 | Kotlin | 0 | 4 | 8f0116eb96b655088dc2c06acb96507189bd73ed | 2,676 | kwery | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.