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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/galaxysoftware/musicplayer/type/TabType.kt | GalaxyDGamer | 143,671,146 | false | null | package galaxysoftware.musicplayer.type
/**
* Defining Tab Type
*/
enum class TabType {
LIBRARY,
ALBUM,
ARTIST,
PLAYLIST
} | 0 | Kotlin | 0 | 0 | ed139670a7e4a5a18ec77b5d4f29f91e08e33955 | 141 | MusicPlayer | Apache License 2.0 |
src/main/java/site/hirecruit/hr/global/exception/model/ExceptionResponseEntity.kt | themoment-team | 473,691,285 | false | {"Kotlin": 205045, "Dockerfile": 1004, "Shell": 97} | package site.hirecruit.hr.global.exception.model
/**
* Exception발생시 클라이언트에 반환할 Response 객체입니다.
*
* 해당 클래스는 정적 팩토리 매서드로도 생성할 수 있습니다. 다음은 Spring RestControllerAdvice로 예외를 핸들링하는 예제입니다..
* ```kotlin
* @ExceptionHandler(HttpStatusCodeException::class)
* private fun httpStatusException(ex: HttpClientErrorException):... | 2 | Kotlin | 0 | 16 | 6dbf1779257a5ecde9f51c9878bc0cb8871f5336 | 746 | HiRecruit-server | MIT License |
app/src/main/java/com/dicoding/asclepius/view/MainActivity.kt | xirf | 791,855,561 | false | {"Kotlin": 38984} | package com.dicoding.asclepius.view
import android.Manifest
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.activ... | 0 | Kotlin | 0 | 0 | 74d5bfae46ec8328f7c02e05f3d7b6e7d698b2fe | 7,741 | asclepius | MIT License |
wow-opentelemetry/src/main/kotlin/me/ahoo/wow/opentelemetry/messaging/MessageTextMapSetter.kt | Ahoo-Wang | 628,167,080 | false | {"Kotlin": 1902621, "Java": 34050, "TypeScript": 31834, "HTML": 11619, "Lua": 3978, "JavaScript": 2288, "Dockerfile": 820, "SCSS": 500, "Less": 342} | /*
* Copyright [2021-present] [<NAME> <<EMAIL>> (https://github.com/Ahoo-Wang)].
* 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... | 6 | Kotlin | 10 | 98 | eed438bab2ae009edf3a1db03396de402885c681 | 1,358 | Wow | Apache License 2.0 |
kbloc_core/src/commonTest/kotlin/com/beyondeye/kbloc/bloc_overrides_test.kt | beyondeye | 509,066,769 | false | null | package com.beyondeye.kbloc
import com.beyondeye.kbloc.concurrency.EventTransformer_sequential
import com.beyondeye.kbloc.core.BlocObserver
import com.beyondeye.kbloc.core.BlocOverrides
import com.beyondeye.kbloc.core.EventTransformer
import kotlin.test.Test
import kotlin.test.assertTrue
class FakeBlocObserver<T:Any> ... | 0 | Kotlin | 0 | 9 | 3d5e4998c9215b1cef94f6d56db0a2c4eef8d676 | 4,569 | compose_bloc | Apache License 2.0 |
src/main/java/com/what3words/addressvalidator/javawrapper/addresslookupservice/swiftcomplete/What3WordsAddressValidatorSwiftComplete.kt | what3words | 538,914,401 | false | {"Kotlin": 115964} | package com.what3words.addressvalidator.javawrapper.addresslookupservice.swiftcomplete
import com.what3words.addressvalidator.javawrapper.What3WordsAddressValidator
import com.what3words.addressvalidator.javawrapper.model.address.W3WAddressValidatorLeafNode
import com.what3words.addressvalidator.javawrapper.model.add... | 0 | Kotlin | 0 | 0 | 27a9e74284e56338ab7574e228100b4d9eed31e1 | 5,134 | w3w-address-validator-java-wrapper | MIT License |
StockMonitor/app/src/main/java/com/system/stockmonitor/views/RegisterActivity.kt | enirsilvaferraz | 207,636,640 | false | null | package com.system.stockmonitor.views
import android.os.Bundle
import android.text.Editable
import android.text.InputFilter
import android.text.TextWatcher
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.room.Room
import com.google.android.material.textfield.TextInputEditTex... | 0 | Kotlin | 0 | 0 | e792045158f33caca2499d140fb5ed88f273a4fa | 5,001 | stockmonitor | Apache License 2.0 |
LudoSpringBoot/src/main/kotlin/hu/bme/aut/alkfejl/ludospringboot/web/GameController.kt | Kis-Benjamin | 693,261,151 | false | {"Kotlin": 123208, "Java": 182} | package hu.bme.aut.alkfejl.ludospringboot.web
import hu.bme.aut.alkfejl.ludospringboot.data.datasources.GameEntityRepository
import hu.bme.aut.alkfejl.ludospringboot.domain.model.*
import hu.bme.aut.alkfejl.ludospringboot.domain.services.Registrar
import org.springframework.web.bind.annotation.GetMapping
import org.sp... | 0 | Kotlin | 0 | 0 | 8593b3544705623dbbb363f36e9ccb03b5c7d5df | 1,658 | Ludo | Apache License 2.0 |
app/src/main/java/com/sakura/anime/data/remote/api/AnimeApi.kt | laqooss | 871,490,049 | false | {"Kotlin": 596746} | package com.sakura.anime.data.remote.api
import com.sakura.anime.data.remote.dto.AnimeBean
import com.sakura.anime.data.remote.dto.AnimeDetailBean
import com.sakura.anime.data.remote.dto.HomeBean
import com.sakura.anime.data.remote.dto.VideoBean
import com.sakura.anime.util.SourceMode
interface AnimeApi {
suspen... | 0 | Kotlin | 0 | 0 | a1f8ef588689c8d346196d43794bd9eda887a523 | 683 | projects | Apache License 2.0 |
app/src/free/java/com/capyreader/app/ui/settings/CrashReportingCheckbox.kt | jocmp | 610,083,236 | false | {"Kotlin": 674590, "Ruby": 1236, "Makefile": 1211} | package com.capyreader.app.ui.settings
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.tooling.preview.Preview
import com.capyreader.app.common.AppPreferences
import com.capyreader.app.setupCommonModules
impor... | 15 | Kotlin | 3 | 91 | f8ac7e8c4a6fccfe8f26f1b492261a4f5ce7dafa | 860 | capyreader | MIT License |
core/src/main/kotlin/com/github/haschi/dominium/haushaltsbuch/core/application/InventurApi.kt | haschi | 52,821,330 | false | null | package com.github.haschi.dominium.haushaltsbuch.core.application
import com.github.haschi.dominium.haushaltsbuch.core.model.commands.BeendeInventur
import com.github.haschi.dominium.haushaltsbuch.core.model.commands.BeginneInventur
import com.github.haschi.dominium.haushaltsbuch.core.model.commands.ErfasseInventar
im... | 11 | Kotlin | 2 | 4 | e3222c613c369b4a58026ce42c346b575b3082e5 | 679 | dominium | MIT License |
src/main/kotlin/cc/suffro/bpmanalyzer/bpmanalyzing/analyzers/startingposition/StartingPositionCacheAnalyzerParams.kt | xsoophx | 579,535,622 | false | {"Kotlin": 113450} | package cc.suffro.bpmanalyzer.bpmanalyzing.analyzers.startingposition
import cc.suffro.bpmanalyzer.bpmanalyzing.analyzers.AnalyzerParams
data class StartingPositionCacheAnalyzerParams(
val bpm: Double,
) : AnalyzerParams
| 0 | Kotlin | 0 | 0 | fd8db56ee5c8e4ce1d3770cbe5602c3bea6d2372 | 227 | BPM-Analyzer | MIT License |
app/src/main/java/br/com/github/domain/model/user/UserDetailModel.kt | petersongfarias | 642,393,181 | false | null | package br.com.github.domain.model.user
import kotlinx.parcelize.Parcelize
import kotlinx.parcelize.RawValue
@Parcelize
data class UserDetailModel(
override val login: String?,
override val id: Int?,
override val nodeId: String?,
override val avatarUrl: String?,
override val gravatarId: String?,
... | 0 | Kotlin | 0 | 0 | 845820dd6030199458efbf9ed4116a7a7ca315a1 | 1,107 | GitApp | Apache License 2.0 |
app/src/main/java/at/marki/daggerino/worker/AndroidWorkerInjectionModule.kt | markini | 260,060,195 | false | null | package at.marki.daggerino.worker
import androidx.work.Worker
import dagger.Module
import dagger.android.AndroidInjector
import dagger.multibindings.Multibinds
@Module
abstract class AndroidWorkerInjectionModule {
@Multibinds
abstract fun workerInjectorFactories(): Map<Class<out Worker>, AndroidInjector.Facto... | 0 | Kotlin | 0 | 0 | b65502a51c88347d60f0a22d0fcfc8409792c318 | 338 | Daggerino | MIT License |
backend/src/main/kotlin/com/oz/meow/controller/HomeController.kt | voncho-zero | 742,285,196 | false | {"Kotlin": 20777} | package com.oz.meow.controller
import com.fasterxml.jackson.databind.ObjectMapper
import com.oz.meow.domain.PageInfo
import com.oz.meow.domain.Tree
import com.oz.meow.domain.system.Cmd
import com.oz.meow.domain.system.Menu
import com.oz.meow.domain.system.User
import com.oz.meow.enums.Enable
import com.oz.meow.enums.U... | 0 | Kotlin | 0 | 0 | 51840046fdc8e1f3316e41e5e4ee620e4eaff1a2 | 1,062 | meow | Apache License 2.0 |
feature/blog/src/main/java/jp/mydns/kokoichi0206/blog/components/SkeletonBlogScreen.kt | android-project-46group | 408,417,203 | false | null | package jp.mydns.kokoichi0206.blog.components
import androidx.compose.animation.core.*
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.materia... | 14 | Kotlin | 0 | 2 | d69f08e815a4780bd93a0e1bf274dc770155b06e | 3,179 | android | MIT License |
app/src/main/java/com/task/noteapp/data/local/AppDatabase.kt | Hichamraf | 491,177,404 | false | {"Kotlin": 24919} | package com.task.noteapp.data.local
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.task.noteapp.model.Note
import com.task.noteapp.utils.Converters
@TypeConverters(Converters::class)
@Database(entities = [Note::class], version = 1, exportSchema = false)
... | 0 | Kotlin | 0 | 0 | 11d0afd5f64d8c408d45c754bfe7872c4589f09f | 403 | Notes | Apache License 2.0 |
core/src/commonTest/kotlin/maryk/core/aggregations/metric/StatsAggregatorTest.kt | marykdb | 290,454,412 | false | {"Kotlin": 3039791, "JavaScript": 1004} | package maryk.core.aggregations.metric
import maryk.test.models.TestMarykModel
import kotlin.test.Test
import kotlin.test.expect
class StatsAggregatorTest {
@Test
fun aggregate() {
val statsAggregator = StatsAggregator(
Stats(TestMarykModel { int::ref })
)
expect(
... | 1 | Kotlin | 1 | 8 | 287377518680ab59adeb3bb93d1e37f8329e5eb7 | 1,062 | maryk | Apache License 2.0 |
src/main/kotlin/com/lean/ciref/entities/RefactLocation.kt | leanresearchlab | 646,446,761 | false | null | package com.lean.ciref.entities
import gr.uom.java.xmi.LocationInfo.CodeElementType
class RefactLocation(val filePath:String,val startLine:Int,val endLine:Int,val startColumn:Int,val endColumn:Int,val codeElementType: CodeElementType,val description:String,val codeElement:String ) {
} | 0 | Kotlin | 1 | 1 | ce43b078907cd639f846b6130099bb1909e708b2 | 287 | ciref-refactor | MIT License |
src/main/kotlin/miragefairy2024/mod/magicplant/TraitCondition.kt | MirageFairy | 721,291,232 | false | {"Kotlin": 917715, "Java": 14611, "Shell": 751} | package miragefairy2024.mod.magicplant
import net.minecraft.text.Text
import net.minecraft.util.math.BlockPos
import net.minecraft.world.World
// api
interface TraitCondition {
val emoji: Text
val name: Text
fun getFactor(world: World, blockPos: BlockPos): Double
}
| 0 | Kotlin | 0 | 0 | 1bc8ce33e6ac9db06753be34e7f9d7d0a8790a56 | 281 | MirageFairy2024 | Apache License 2.0 |
ParkingPermitApp/app/src/main/java/com/example/parkingpermitapp/cameraview/RadioButtons.kt | ZeroTolerance225 | 789,532,216 | false | {"Kotlin": 127055, "HTML": 125618, "Python": 62253, "Java": 56037, "CSS": 10518, "Dockerfile": 217} | package com.example.parkingpermitapp.cameraview
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.fou... | 0 | Kotlin | 0 | 0 | 6895e28195b37cf8b6d6fda47a61c25bdece67aa | 3,874 | Capstone-License-Plate-Reader | Microsoft Public License |
material-web/src/jsMain/kotlin/material/web/component/List.kt | CharLEE-X | 762,328,281 | false | {"Kotlin": 145688} | package material.web.component
import androidx.compose.runtime.Composable
import com.varabyte.kobweb.compose.ui.Modifier
import com.varabyte.kobweb.compose.ui.toAttrs
import material.web.common.MdElement
import material.web.common.MdTagElement
import material.web.common.jsRequire
import org.jetbrains.compose.web.dom.A... | 0 | Kotlin | 0 | 0 | 1c0964e37ad6a75229acfdcb5a79816bdeb8bb6b | 1,312 | MaterialWeb-ComposeHtml | Apache License 2.0 |
src/main/kotlin/me/elliott/amethyst/commands/ListenerCommands.kt | the-programmers-hangout | 251,071,618 | false | {"Kotlin": 37591, "JavaScript": 3190, "Dockerfile": 546, "Shell": 181, "Batchfile": 123} | package me.elliott.amethyst.commands
import me.aberrantfox.kjdautils.api.dsl.CommandSet
import me.aberrantfox.kjdautils.api.dsl.commands
import me.aberrantfox.kjdautils.internal.command.arguments.WordArg
import me.elliott.amethyst.arguments.ChannelOrUserArg
import me.elliott.amethyst.arguments.ListenerArg
import me.el... | 0 | Kotlin | 0 | 1 | 830e3b006f8fc5632e797239815931815e39c99f | 2,075 | Amethyst | MIT License |
src/main/kotlin/T64.kt | KilluaSSR | 763,466,025 | false | {"Kotlin": 106189, "Go": 1048} | class SolutionT64 {
lateinit var memo : Array<IntArray>
fun minPathSum(grid: Array<IntArray>): Int {
memo = Array(grid.size*grid[0].size){ IntArray(grid[0].size){-666} }
return dp(grid.size,grid[0].size,grid)
}
fun dp(m:Int,n:Int,grid: Array<IntArray>):Int{
if(m==0&&n==0)return g... | 0 | Kotlin | 0 | 1 | 879d82d074d91dd3548aeaa94c5ea54bd8cada2c | 522 | LeetcodeKotlin | MIT License |
kradle-android/src/main/kotlin/io/github/lyxnx/kradle/android/AndroidApplicationPlugin.kt | Lyxnx | 688,171,299 | false | {"Kotlin": 48071} | package io.github.lyxnx.kradle.android
import com.android.build.api.dsl.ApplicationExtension
import com.android.build.api.variant.ApplicationAndroidComponentsExtension
import io.github.lyxnx.kradle.android.dsl.BuildType
import io.github.lyxnx.kradle.android.dsl.android
import io.github.lyxnx.kradle.android.dsl.android... | 0 | Kotlin | 0 | 0 | 0d91efecbb497213cee169060d052d938f374e43 | 1,992 | kradle | Apache License 2.0 |
app/src/main/java/com/dicoding/submission/machinelearning/adapter/PredictionAdapter.kt | hanyarui | 800,038,667 | false | {"Kotlin": 23169} | package com.dicoding.submission.machinelearning.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageButton
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.G... | 0 | Kotlin | 0 | 0 | a6a711d026d82ddbb3f64d92a27f262a0580e4d6 | 2,517 | BangkitAcademy_BPMLA_Submission | MIT License |
ShadhinMusicLibrary/src/main/java/com/myrobi/shadhinmusiclibrary/fragments/CreatePlaylistFragment.kt | shadhin-music | 589,150,241 | false | null | package com.myrobi.shadhinmusiclibrary.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.myrobi.shadhinmusiclibrary.R
import com.myrobi.shadhinmusiclibrary.fragments.base.BaseFragment
internal class CreatePlaylistFragment : BaseFra... | 0 | Kotlin | 0 | 0 | 99e11cc3a68fd68607401fca71e32003b638025c | 573 | MyRobiShadhinSDK | MIT License |
src/main/kotlin/io/github/lobodpav/spock/action/NewSpecificationAction.kt | lobodpav | 671,811,601 | false | {"Kotlin": 69613, "Groovy": 57060, "HTML": 886} | package io.github.lobodpav.spock.action
import com.intellij.ide.actions.CreateFileFromTemplateDialog
import com.intellij.ide.actions.JavaCreateTemplateInPackageAction
import com.intellij.openapi.actionSystem.DataContext
import com.intellij.openapi.actionSystem.LangDataKeys
import com.intellij.openapi.project.DumbAware... | 0 | Kotlin | 0 | 2 | f8acf0da8ef61c8d70681a16ab97473fcb84261d | 2,715 | spock-intellij-plugin | Apache License 2.0 |
app/src/main/java/com/mobdeve/gonzales/lee/ong/artemis/ViewOwnPostActivity.kt | memgonzales | 390,384,567 | false | null | package com.mobdeve.gonzales.lee.ong.artemis
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.res.ColorStateList
import android.graphics.drawable.BitmapDrawable
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view... | 0 | Kotlin | 0 | 0 | 9d92a5a2905afd1e9869854f2c5238bb860ba8cd | 28,599 | artemis-art-app | Apache License 1.1 |
tegro-bot/src/main/kotlin/money/tegro/bot/exceptions/AccountMinAmountException.kt | TegroTON | 607,921,195 | false | {"Kotlin": 492434, "Java": 37393, "Dockerfile": 341} | package money.tegro.bot.exceptions
import money.tegro.bot.objects.Account
class AccountMinAmountException(
val account: Account
) : RuntimeException() | 21 | Kotlin | 4 | 7 | 6e3419f3f4d870a6e7e5703a87d44a009b99e477 | 156 | Telegram-Cryptocurrency-Wallet-TON-Kotlin | MIT License |
data/src/main/java/com/mshaw/data/util/extensions/Response+Extensions.kt | michaeltheshah | 697,087,832 | false | {"Kotlin": 37602} | package com.mshaw.data.util.extensions
import com.mshaw.data.model.ErrorResponse
import com.mshaw.data.util.state.AwaitResult
import kotlinx.serialization.json.Json
import retrofit2.HttpException
import retrofit2.Response
fun <T> Response<T>.awaitResult(): AwaitResult<T> {
return try {
if (isSuccessful) {... | 0 | Kotlin | 0 | 0 | 094807e606fbac5f4b99ff0b69e2e6ff20b48afa | 1,056 | WeatherAppChase | Apache License 2.0 |
app/src/main/java/com/dartharrmi/weathery/base/BaseApp.kt | jArrMi | 303,480,302 | false | {"Kotlin": 88851} | package com.dartharrmi.weathery.base
import android.app.Application
import androidx.appcompat.app.AppCompatDelegate
import androidx.multidex.MultiDexApplication
import com.dartharrmi.weathery.di.DependencyContainer
/**
* Base [Application] for the current app, initializes the dependency injection.
*/
class BaseApp ... | 0 | Kotlin | 0 | 0 | cb7baa67ba30e7d76731df77a9eaf93be29e3396 | 529 | weathery | MIT License |
kzmq-tests/src/commonTest/kotlin/org/zeromq/tests/sockets/DealerRouterTests.kt | ptitjes | 386,722,015 | false | {"Kotlin": 332545} | /*
* Copyright (c) 2021-2024 <NAME> and Kzmq contributors.
* Use of this source code is governed by the Apache 2.0 license.
*/
package org.zeromq.tests.sockets
import io.kotest.core.spec.style.*
import io.kotest.matchers.*
import io.kotest.matchers.equals.*
import kotlinx.atomicfu.*
import kotlinx.coroutines.*
imp... | 21 | Kotlin | 1 | 16 | 6ed177d7e3859fda0c17ffdcd1e43b2d51a4cf1c | 3,922 | kzmq | Apache License 2.0 |
app/src/main/java/com/example/nordicnews/ui/shared/ErrorScreen.kt | avanisoam | 803,286,041 | false | {"Kotlin": 164967} | package com.example.nordicnews.ui.shared
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material3.Tex... | 0 | Kotlin | 0 | 0 | d73886238657919c1a7887e06eea8abbab1b3c82 | 1,047 | NordicNews | MIT License |
geary-commons/src/main/kotlin/com/mineinabyss/geary/commons/events/configurable/EventTriggerListener.kt | MineInAbyss | 388,677,224 | false | null | package com.mineinabyss.geary.commons.events.configurable
import com.mineinabyss.geary.annotations.AutoScan
import com.mineinabyss.geary.annotations.Handler
import com.mineinabyss.geary.commons.events.configurable.components.EventRun
import com.mineinabyss.geary.commons.events.configurable.components.EventRunBuilder
i... | 5 | Kotlin | 3 | 1 | 179d10613b13dd1df83fe169d1333d8b994d9ec8 | 1,222 | Geary-addons | MIT License |
ui_utils/src/main/java/com/artkachenko/ui_utils/views/ClippedLayout.kt | ArtemiyTkachenko | 471,678,076 | false | {"Kotlin": 267809} | package com.artkachenko.ui_utils.views
import android.content.Context
import android.util.AttributeSet
import android.view.ViewOutlineProvider
import android.widget.LinearLayout
import androidx.constraintlayout.widget.ConstraintLayout
class ClippedLinearLayout @JvmOverloads constructor(context: Context, attributeSet:... | 0 | Kotlin | 0 | 0 | d9042abe218533bbcdbf28f3c87438f2c24b679b | 835 | CalorieTrackerRefactored | Apache License 2.0 |
trustagent/src/com/google/android/libraries/car/trustagent/AssociatedCarEntity.kt | google | 415,118,653 | false | {"Kotlin": 865761, "Java": 244253} | // Copyright 2021 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 in ... | 1 | Kotlin | 5 | 18 | 912fd5cff1f08577d679bfaff9fc0666b8093367 | 1,874 | android-auto-companion-android | Apache License 2.0 |
src/iii_conventions/MyDate.kt | longlyPaul | 114,056,772 | true | {"Kotlin": 73652, "Java": 4952} | package iii_conventions
data class MyDate(val year: Int, val month: Int, val dayOfMonth: Int):Comparable<MyDate> {
override fun compareTo(other: MyDate): Int {
return when{
year != other.year -> year - other.year
month != other.month -> month - other.month
else -> dayOfMonth... | 0 | Kotlin | 0 | 0 | 9f1362a4a3d3875547ddc9579295608110c5c774 | 2,028 | kotlin-koans | MIT License |
app/src/main/java/com/example/animconer/data/local/entity/Favorite.kt | brandy-kay | 503,192,266 | false | {"Kotlin": 115710} | package com.example.animconer.data.local.entity
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "table_favorite")
data class Favorite(
@PrimaryKey
val malId: Int,
val title: String?,
val image: String?,
val rating: String?,
val isFavorite: Boolean,
)
| 2 | Kotlin | 6 | 16 | 92ebeb50edb46b5168eadc715e75c1b770c3ccc2 | 309 | AnimCorner | Apache License 2.0 |
next/kmp/pureCrypto/src/commonMain/kotlin/org/dweb_browser/pure/crypto/hash/SHA256.kt | BioforestChain | 594,577,896 | false | {"Kotlin": 3446191, "TypeScript": 818538, "Swift": 369625, "Vue": 156647, "SCSS": 39016, "Objective-C": 17350, "HTML": 16184, "Shell": 13534, "JavaScript": 3982, "Svelte": 3504, "CSS": 818} | package org.dweb_browser.pure.crypto.hash
expect suspend fun sha256(data: ByteArray): ByteArray
expect suspend fun sha256(data: String): ByteArray
expect fun sha256Sync(data: ByteArray): ByteArray
| 66 | Kotlin | 5 | 20 | 6db1137257e38400c87279f4ccf46511752cd45a | 198 | dweb_browser | MIT License |
app/src/main/java/com/ludovic/vimont/mangareader/helper/ViewHelper.kt | 1ud0v1c | 320,667,207 | false | null | package com.ludovic.vimont.mangareader.helper
import android.app.Activity
import android.graphics.Color
import android.view.View
import android.view.WindowManager
import androidx.core.content.ContextCompat
import com.ludovic.vimont.mangareader.R
object ViewHelper {
fun transparentStatusBar(activity: Activity, isT... | 0 | Kotlin | 0 | 0 | e3c0753cbcd34eaf0e64e9bdfe9b620fe293f501 | 1,352 | manga-reader | Apache License 2.0 |
final_project/app/src/main/java/juliano/correa/final_project/model/Character.kt | Juliano-OC | 523,030,629 | false | {"Kotlin": 128152, "Java": 2968} | package juliano.correa.final_project.model
import java.io.Serializable
data class Character(
val id: Int,
var name: String,
var race: String,
var age: Int,
var gender: String,
var primaryWeapon: String,
var HP: Double,
var MP: Double,
var height: Double,
var secondaryWeapon: St... | 0 | Kotlin | 0 | 0 | 6e4b95c03998edb825b7fd117dd51a52b6b2b9ec | 579 | AulasAndroid | MIT License |
app/src/main/kotlin/com/hyphenate/chatdemo/common/extensions/internal/ChatOptions.kt | easemob | 785,517,709 | false | {"Kotlin": 413106, "HTML": 35978, "Makefile": 917} | package com.hyphenate.chatdemo.common.extensions.internal
import android.content.Context
import android.content.pm.PackageManager
import com.hyphenate.easeui.common.ChatOptions
/**
* Check if set the app key.
*/
internal fun ChatOptions.checkAppKey(context: Context): Boolean {
if (appKey.isNullOrEmpty().not()) ... | 1 | Kotlin | 4 | 2 | dd157240fa4bf84a0fbcb24c1f133042206210eb | 814 | easemob-demo-android | Apache License 2.0 |
src/main/kotlin/net/fabricmc/bot/enums/Channels.kt | FabricMC | 272,279,496 | false | null | package net.fabricmc.bot.enums
/**
* An enum representing each type of channel that may be configured, for easier reference.
*
* @param value A human-readable representation of the given channel.
*/
enum class Channels(val value: String) {
/** The channel used for staff alerts (eg by filters). **/
ALERTS("... | 20 | Kotlin | 10 | 7 | 16622cffbc0622c6ca461bfb887f39849fa2b935 | 616 | kotlin-fabric-discord-bot | MIT License |
src/main/kotlin/org/agoranomic/assessor/lib/proposal/proposal_set/AbstractProposalSet.kt | AgoraNomic | 98,589,628 | false | {"Kotlin": 1667765, "HTML": 3937} | package org.agoranomic.assessor.lib.proposal.proposal_set
import org.agoranomic.assessor.lib.proposal.Proposal
import org.agoranomic.assessor.lib.proposal.ProposalDataMismatchException
import org.agoranomic.assessor.lib.proposal.ProposalNumbers
import org.randomcat.util.requireDistinct
abstract class AbstractProposal... | 0 | Kotlin | 1 | 1 | 85942ee111ea96b938d36079e736eb3d6cee2ceb | 2,372 | assessor | MIT License |
app/src/main/java/app/android/issue5101/LoginFragment.kt | dconeybe | 809,895,500 | false | {"Kotlin": 39529, "TypeScript": 4030, "JavaScript": 888} | /*
* 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... | 0 | Kotlin | 0 | 0 | e947c92480de2475c6edc204afad2cf5c197eac8 | 5,067 | android-issue-5101 | Apache License 2.0 |
src/main/kotlin/cz/opendatalab/captcha/task/templates/TemplateUtils.kt | opendatalabcz | 481,095,558 | false | null | package cz.opendatalab.captcha.task.templates
import java.util.*
object TemplateUtils {
fun toBase64Image(dataInBase64: String, imageFormat: String): String {
val prefix = "data:image/$imageFormat;base64,"
return prefix + dataInBase64
}
fun toBase64String(bytes: ByteArray): String {
... | 0 | Kotlin | 0 | 0 | ad09e9cef2401a6afa04d073f3cb9ad17fbf77f0 | 380 | czech-captcha | Apache License 2.0 |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/CommentOff.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.regular
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Regular.CommentOff: ImageVector
get() {
if (_commentOff != null) {
... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 2,380 | compose-fluent-ui | Apache License 2.0 |
shared/src/commonMain/kotlin/com/drahovac/weatherstationdisplay/viewmodel/SetupState.kt | drahovac | 667,016,953 | false | null | package com.drahovac.weatherstationdisplay.viewmodel
import dev.icerock.moko.resources.StringResource
data class SetupState(
val value: String? = null,
val error: StringResource? = null,
)
| 0 | Kotlin | 0 | 0 | ac4298318439c6c6cff7ad5630842b86f214d4cb | 199 | WeatherStationDataDisplay | MIT License |
CryptoCrazyComposeApp/app/src/main/java/com/example/cryptocrazycomposeapp/model/CryptoList.kt | dogukandmrl | 619,548,857 | false | null | package com.example.cryptocrazycomposeapp.model
class CryptoList : ArrayList<CryptoListItem>() | 0 | Kotlin | 0 | 0 | 5083a861210122adb7072785f6c0a67eaed4b977 | 95 | JetpackComposeSampleApps | MIT License |
examples/basics/src/test/kotlin/example/micronaut/basics/events/InMemoryBookEventPublisherTest.kt | test-automation-in-practice | 516,747,931 | false | {"Kotlin": 178} | package example.micronaut.basics.events
import example.micronaut.basics.Examples.record_cleanCode
import example.micronaut.basics.Examples.id_cleanCode
import example.micronaut.basics.books.core.BookEvent
import example.micronaut.basics.books.core.BookRecordCreatedEvent
import example.micronaut.basics.books.core.BookR... | 3 | Kotlin | 1 | 2 | 700e9b171200a71b7880e43b937b21bc05eb33f7 | 1,222 | cnt-micronaut | Apache License 2.0 |
common/ui/src/main/java/com/him/sama/spotifycompose/common/musicplayer/TabletMusicPlayer.kt | arohim | 762,735,266 | false | {"Kotlin": 251979} | package com.him.sama.spotifycompose.common.musicplayer
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose... | 0 | Kotlin | 0 | 0 | 826694a8a38dc6f53b48e3a337c8bd15a0f8549c | 6,487 | SpotifyJetpackCompose | Apache License 2.0 |
app/src/main/java/com/asadmshah/rplace/android/schedulers/SchedulersImpl.kt | asadmshah | 94,214,566 | false | null | package com.asadmshah.rplace.android.schedulers
import io.reactivex.Scheduler
import io.reactivex.android.schedulers.AndroidSchedulers
internal class SchedulersImpl: Schedulers {
override fun ui(): Scheduler = AndroidSchedulers.mainThread()
override fun io(): Scheduler = io.reactivex.schedulers.Schedulers.i... | 0 | Kotlin | 0 | 0 | 4165eee5e045510ffda80b919838484abe67346e | 326 | rplace-android | The Unlicense |
app/src/main/java/com/example/leetcode/string/reversestring.kt | vaibhavtripathi-bit | 781,967,732 | false | {"Kotlin": 65079} | package com.example.leetcode.string
class reversestring {
fun reverseString(s: CharArray): Unit {
var left = 0
var right = s.size - 1
while (left < right) {
val temp = s[left]
s[left] = s[right]
s[right] = temp
left++
right--
... | 0 | Kotlin | 0 | 0 | f6ae6d195a794989bf04a6bf47b858f2a5123c8f | 646 | algorithm | MIT License |
app/src/main/java/com/example/bonusapp/database/ReminderDatabase.kt | akinbojo | 732,840,757 | false | {"Kotlin": 30943} | package com.example.bonusapp.database
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.example.bonusapp.Reminder
@Database(entities = [Reminder::class], version=1)
@TypeConverters(ReminderTypeConverters::class)
abstract class ReminderDatabase : RoomDatabas... | 0 | Kotlin | 0 | 0 | 05eee081f72325428cb10f5df5c4f0016bcb9f48 | 371 | BonusApp1 | Apache License 2.0 |
src/main/kotlin/com/esop/constant/Constants.kt | AkankshaChaudhari24 | 619,495,405 | false | null | package com.esop.constant
val errors = mapOf(
"PHONENUMBER_EXISTS" to "User with given phone number already exists.",
"USERNAME_EXISTS" to "User with given username already exists",
"EMAIL_EXISTS" to "User with given email already exists",
"INVALID_EMAIL" to "Email id is not valid",
"INVALID_PHONE... | 0 | Kotlin | 0 | 0 | a0640610e9aca383905b02769ca0a71dd8af101d | 1,262 | esop-infra-cicd | Apache License 2.0 |
core/src/main/java/com/rcosteira/core/ui/BaseViewModel.kt | rcosteira79 | 105,062,893 | false | null | package com.rcosteira.core.ui
import androidx.lifecycle.ViewModel
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.cancelChildren
open class BaseViewModel : ViewModel() {
private val viewModelJob = SupervisorJob()
... | 0 | Kotlin | 5 | 34 | fbc34905496044a950862aee4dea16abfdad98a0 | 523 | AndroidMultiModuleCleanArchTemplate | Apache License 2.0 |
suspending/src/commonMain/kotlin/matt/collect/suspending/list/fake/fake.kt | mgroth0 | 532,378,323 | false | {"Kotlin": 201664} | package matt.collect.suspending.list.fake
import matt.collect.fake.toFakeMutableList
import matt.collect.suspending.SuspendCollection
import matt.collect.suspending.SuspendMutableIterator
import matt.collect.suspending.fake.SuspendFakeMutableIterator
import matt.collect.suspending.fake.SuspendFakeMutableListIterator
i... | 0 | Kotlin | 0 | 0 | fa34fe96b8ecd7cd731fd8e40d8ff6ad4951b36a | 3,589 | collect | MIT License |
zircon.core/src/commonMain/kotlin/org/hexworks/zircon/api/component/ComponentProperties.kt | ivso0001 | 314,132,961 | true | {"Kotlin": 1610663, "Java": 113787, "Shell": 51} | package org.hexworks.zircon.api.component
import org.hexworks.zircon.api.behavior.*
/**
* This interface contains all the common *properties* that a UI [Component]
* can have.
*/
interface ComponentProperties : CanBeDisabled, CanBeHidden, ThemeOverride, TilesetOverride
| 0 | null | 0 | 0 | 3c189da12de9da58c5555b2db9dd73af7562b5bf | 275 | zircon | Apache License 2.0 |
16.InheritanceOver/main.kt | StevenJokess | 383,575,169 | true | {"Kotlin": 6110} | import java.util.Arrays
open class Master {
open fun think () {
print("Kotlin Master Class ")
}
}
class Children: Master() {
override fun think()
{
print("Kotlin Children Class")
}
}
fun main(args: Array<String>) {
var a = Children()
a.think()
} | 0 | null | 0 | 0 | bff4f948656b4f814d461b6151b1b787d6b9009c | 282 | Introduction-to-Kotlin-Programming | MIT License |
composeApp/src/androidMain/kotlin/com/br/kmpdemo/compose/widget/forecast/WeatherWidget.kt | BottleRocketStudios | 663,198,654 | false | {"Kotlin": 238268, "Swift": 168} | package com.br.kmpdemo.compose.widget.forecast
import android.content.Context
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.unit.TextUnit
import androidx.compos... | 0 | Kotlin | 1 | 0 | a874592cab80eaa0f1534547250c38cdbf9f69dd | 12,196 | Kmp-demo | Apache License 2.0 |
build-logic/src/main/kotlin/extension/Project.kt | NeoUtils | 438,508,907 | false | {"Kotlin": 9027} | package extension
import model.Config
import org.gradle.accessors.dm.LibrariesForLibs
import org.gradle.api.Project
import org.gradle.kotlin.dsl.the
val config = Config(
app = Config.App(
major = 2,
minor = 0,
patch = 0,
phase = Config.Phase.ALPHA
),
android = Config.Androi... | 1 | Kotlin | 0 | 4 | 3fe6b1fd85b7fd6fa2372dcdcee1a3eacf658166 | 492 | NeoRegex | MIT License |
app/src/main/java/com/ahmedtikiwa/fxapp/network/models/NetworkCurrenciesResponse.kt | akitikkx | 371,123,034 | false | null | package com.ahmedtikiwa.fxapp.network.models
import com.google.gson.internal.LinkedTreeMap
data class NetworkCurrenciesResponse(
val currencies: LinkedTreeMap<String,String>
) | 0 | Kotlin | 0 | 0 | a782a5a5f6960b3926e670faa37d8f9b5f4355e1 | 181 | fx-app | MIT License |
src/main/kotlin/net/casualuhc/uhc/commands/UHCCommand.kt | CasualUHC | 334,382,250 | false | null | package net.casualuhc.uhc.commands
import com.mojang.brigadier.CommandDispatcher
import com.mojang.brigadier.arguments.BoolArgumentType
import com.mojang.brigadier.arguments.IntegerArgumentType
import com.mojang.brigadier.context.CommandContext
import net.casualuhc.arcade.commands.EnumArgument
import net.casualuhc.arc... | 0 | Kotlin | 0 | 3 | 3e4645fa33ea24584b0e9cf9c77008fa694f80d5 | 14,602 | UHC-Mod | MIT License |
Android/ghvzApp/app/src/androidTest/java/com/app/playhvz/testutils/TestUtil.kt | google | 95,704,578 | false | null | /*
* Copyright 2020 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 37 | Kotlin | 30 | 24 | 9e02fb706af61a336bda852f467a35f49bdcfec7 | 1,512 | playhvz | Apache License 2.0 |
presentation/src/main/java/com/cheise_proj/presentation/viewmodel/message/MessageViewModel.kt | marshall219 | 249,870,132 | true | {"Kotlin": 788935} | package com.cheise_proj.presentation.viewmodel.message
import androidx.lifecycle.LiveData
import androidx.lifecycle.toLiveData
import com.cheise_proj.domain.entity.message.MessageEntity
import com.cheise_proj.domain.usecase.message.GetMessageTask
import com.cheise_proj.domain.usecase.message.GetSentMessageTask
import ... | 0 | null | 0 | 0 | 0183ab6165a42be83691dd7281efc6d738ebe88c | 3,386 | Nagies-Edu-Center | Apache License 2.0 |
composeApp/src/commonMain/kotlin/App.kt | joshuaschori | 833,395,858 | false | {"Kotlin": 169079, "Swift": 594, "HTML": 336, "CSS": 102} | import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.widthIn
import androidx.compose.foundation.rememberScrollState
import andr... | 0 | Kotlin | 0 | 2 | c2298b4c4f638edb2ee582fa17af2242c268c55a | 9,927 | MagnumOpus | MIT License |
complete/src/test/kotlin/example/micronaut/HelloControllerSpec.kt | croudet | 271,086,122 | true | {"Kotlin": 2204, "Shell": 699, "Dockerfile": 128} | package example.micronaut
import io.micronaut.context.ApplicationContext
import io.micronaut.http.client.HttpClient
import io.micronaut.runtime.server.EmbeddedServer
import org.spekframework.spek2.Spek
import org.spekframework.spek2.style.specification.describe
import kotlin.test.assertEquals
object HelloControllerSp... | 0 | null | 0 | 0 | 31ee2e5de4f89c2993d925f48fd1d6a85d51e887 | 868 | creating-your-first-micronaut-app-kotlin | Apache License 2.0 |
src/main/kotlin/it/scoppelletti/spaceship/ApplicationException.kt | dscoppelletti | 263,568,278 | false | null | /*
* Copyright (C) 2008-2018 Dario Scoppelletti, <http://www.scoppelletti.it/>.
*
* 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
*
*... | 0 | Kotlin | 0 | 0 | be5079769d9846871b9fcfade047a0f808a233c9 | 2,044 | spaceship-stdlib | Apache License 2.0 |
sample/src/main/java/com/juul/pommel/sample/EnglishNameProvider.kt | JuulLabs | 281,788,612 | false | null | package com.juul.pommel.sample
import com.juul.pommel.annotations.SoloModule
import dagger.hilt.components.SingletonComponent
import javax.inject.Inject
import javax.inject.Named
@SoloModule(installIn = SingletonComponent::class, bindingClass = NameProvider::class)
@Named("NameProvider")
class EnglishNameProvider @In... | 1 | Kotlin | 2 | 21 | 73d94b064a3322aa31dc48e57c6d20114be671bf | 423 | pommel | Apache License 2.0 |
src/main/kotlin/org/tty/dailyset/dailyset_cloud/bean/UserState.kt | h1542462994 | 482,193,075 | false | null | /**
* create at 2022/4/16
* @author h1542462994
*/
@file:Suppress("OPT_IN_IS_NOT_ENABLED")
package org.tty.dailyset.dailyset_cloud.bean
import org.tty.dailyset.dailyset_cloud.bean.entity.User
import org.tty.dailyset.dailyset_cloud.bean.entity.UserActivity
import org.tty.dailyset.dailyset_cloud.bean.resp.UserState... | 0 | Kotlin | 0 | 0 | e3fe192c227da0c0a7c18c8bf3a2cd42a0de4e14 | 1,268 | dailyset_cloud | MIT License |
server/src/main/kotlin/io/liftgate/server/autoscale/AutoScaleTemplate.kt | liftgate | 525,014,392 | false | {"Kotlin": 63446} | package io.liftgate.server.autoscale
import kotlinx.serialization.Serializable
/**
* @author GrowlyX
* @since 8/16/2022
*/
@Serializable
data class AutoScaleTemplate(
val group: String,
val template: String,
val scaleUpMax: Int,
val minimumReplicas: Int,
val autoStart: Boolean,
val availabi... | 0 | Kotlin | 0 | 5 | c0f8c00008d2cb35c0da9b940ed299f6548588f6 | 507 | liftgate | MIT License |
app/src/main/java/io/aethibo/pxlart/data/remote/api/ApiService.kt | primepixel | 320,511,148 | false | null | package io.aethibo.pxlart.data.remote.api
import io.aethibo.pxlart.domain.MainResponse
import io.aethibo.pxlart.framework.utils.AppConst
import retrofit2.http.GET
import retrofit2.http.Query
import retrofit2.http.QueryMap
/**
* Service to fetch Pexels posts using end point [AppConst.baseUrl].
*/
interface ApiServic... | 0 | Kotlin | 0 | 1 | a36917702368d1cb83ce576fa02d007eb60085de | 1,479 | PxlArt | Apache License 2.0 |
src/geometry/Vector2D.kt | Pantonshire | 132,039,170 | false | null | package geometry
class Vector2D(var x: Double = 0.0, var y: Double = 0.0) {
constructor(angle: Angle, magnitude: Double = 1.0):
this(magnitude * angle.cos(), magnitude * angle.sin())
fun set(newX: Double = 0.0, newY: Double = 0.0): Vector2D {
x = newX
y = newX
return this... | 0 | Kotlin | 0 | 0 | 36c3f3ad956d7bb58ac5e368cd80c42d3f8f40d4 | 2,071 | TomsLib | MIT License |
HelloworldGwk/app/src/main/java/com/gwk/helloworldgwk/todpapp/data/source/local/ToDoDatabase.kt | cn-ansonkai | 159,456,863 | false | null | package com.gwk.helloworldgwk.todpapp.data.source.local
import android.arch.persistence.room.Room
import android.arch.persistence.room.RoomDatabase
import android.content.Context
abstract class ToDoDatabase: RoomDatabase() {
abstract fun taskDao(): TasksDao
companion object {
private var INSTANCE:... | 0 | Kotlin | 0 | 0 | a4edbf715df58b829a7e7d178593dcb569c511f5 | 766 | mobileomcapp_repo | Apache License 2.0 |
navigation/src/main/java/com/vkondrav/ram/navigation/KoinModule.kt | vkondrav | 481,052,423 | false | null | package com.vkondrav.ram.navigation
import com.vkondrav.ram.common.util.FlowWrapper
import com.vkondrav.ram.navigation.usecase.fetchAppBarStateUseCase
import com.vkondrav.ram.navigation.usecase.handleNavigationCommandsUseCase
import com.vkondrav.ram.navigation.usecase.navigateToRouteUseCase
import com.vkondrav.ram.nav... | 0 | Kotlin | 1 | 0 | 78c466563652800d8001a58504a533b764507461 | 882 | rick_and_morty_compose | MIT License |
day8/src/main/kotlin/com/nohex/aoc/day8/Solution.kt | mnohe | 433,396,563 | false | {"Kotlin": 105740} | package com.nohex.aoc.day8
import com.nohex.aoc.PuzzleInput
fun main() {
val uniqueDigitCount = getUniqueDigitCount(getInput("input.txt"))
println("day8, part 1: $uniqueDigitCount")
val allDigitSum = getDigitSum(getInput("input.txt"))
println("day8, part 2: $allDigitSum")
}
fun getInput(path: String... | 0 | Kotlin | 0 | 0 | 4d7363c00252b5668c7e3002bb5d75145af91c23 | 924 | advent_of_code_2021 | MIT License |
app/src/main/java/pe/fernan/animals/breeds/MainActivity.kt | FernanApps | 703,755,259 | false | {"Kotlin": 116913} | package pe.fernan.animals.breeds
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import pe.fernan.ui.AppNavigator
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
class MainActivity : ComponentActivity() {
override fun onCreate(savedI... | 0 | Kotlin | 0 | 0 | 4a65d349ee9d2c5ef2bc815a28c843cbd2b632d0 | 453 | AnimalBreeds | MIT License |
PuzzleGames/app/src/main/java/com/malkinfo/puzzlegames/TouchListener.kt | shnartho | 472,117,984 | false | {"Java": 83802, "Kotlin": 30097, "HTML": 6552, "JavaScript": 5252, "CSS": 3780} | package com.malkinfo.puzzlegames
import android.view.MotionEvent
import android.view.View
import android.view.View.OnTouchListener
import android.view.ViewGroup
import android.widget.RelativeLayout
class TouchListener(private val activity: PuzzleActivity) : OnTouchListener {
private var xDelta = 0f
private v... | 1 | null | 1 | 1 | 8d986cd2aa40e0dbe51e824e7a75d1c4138fd82f | 2,125 | Programming-Multimedia-Applications | MIT License |
railway-oriented-validation-kt/src/test/kotlin/ga/overfullstack/app/imperative/ImperativeValidation2Test.kt | overfullstack | 762,260,590 | false | {"Gradle Kotlin DSL": 11, "JSON": 1, "INI": 3, "TOML": 1, "Ignore List": 1, "EditorConfig": 1, "Markdown": 5, "XML": 23, "Kotlin": 27, "YAML": 1, "Java": 34} | /* gakshintala created on 4/13/20 */
package app.imperative
import app.common.eggCarton
import app.common.expectedImperativeValidationResults
import io.github.oshai.kotlinlogging.KotlinLogging
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class ImperativeValidation2Test {
@Test
fun `Oc... | 1 | Java | 0 | 1 | 95ab9896f1f5f1122555ff94310111e7e7fe64e7 | 687 | fcwfp-root | MIT License |
plugin-common/src/test/kotlin/ru/itbasis/jvmwrapper/core/vendor/JvmVendorTest.kt | itbasis | 143,887,823 | false | null | package ru.itbasis.jvmwrapper.core.vendor
import io.kotlintest.data.forall
import io.kotlintest.shouldBe
import io.kotlintest.shouldThrow
import io.kotlintest.specs.FunSpec
import io.kotlintest.tables.row
import ru.itbasis.jvmwrapper.core.jvm.JvmVendor.ORACLE
import ru.itbasis.jvmwrapper.core.jvm.toJvmVendor
import sa... | 8 | Kotlin | 0 | 2 | c9066a0147d979b66175ae8decf82307dea7f69d | 978 | jvm-wrapper-ide-plugins | MIT License |
app/src/main/java/com/koleff/kare_android/ui/compose/dialogs/BaseDialogs.kt | MartinKoleff | 741,013,199 | false | {"Kotlin": 1413112} | package com.koleff.kare_android.ui.compose.dialogs
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Button
import androidx.compose.materi... | 23 | Kotlin | 0 | 4 | 4ad6b9f320ff60e05b453375b9b855bd3e4a3483 | 3,667 | KareFitnessApp | MIT License |
src/typingAnimation/Typing.kt | jdvalenzuelah | 219,055,480 | false | null | @file:JsModule("react-typing-animation")
@file:JsNonModule
package typingAnimation
import react.*
@JsName("default")
external val Typing: RClass<TypingProps>
external interface TypingProps: RProps {
var className: String
var children: ReactElement
var onFinishedTyping: () -> Unit
var onBeforeType: (... | 0 | Kotlin | 0 | 0 | 9203a306f7748f51794e1818dd93c4b8bc692f54 | 385 | portafolio | MIT License |
app/src/main/java/com/hypertrack/android/models/MeasurementUnits.kt | hypertrack | 241,723,736 | false | null | package com.hypertrack.android.models
sealed class MeasurementUnits
object Unspecified : MeasurementUnits()
object Imperial : MeasurementUnits()
object Metric : MeasurementUnits()
| 1 | Kotlin | 17 | 31 | c5dd23621aed11ff188cf98ac037b67f435e9f5b | 181 | visits-android | MIT License |
src/main/kotlin/org/ocpp/server/entities/image/ImageRepository.kt | NLCProject | 497,246,900 | false | null | package org.ocpp.server.entities.image
import org.isc.utils.genericCrudl.services.RepositoryService
import org.isc.utils.models.CurrentUser
import org.ocpp.server.entities.image.interfaces.IImageRepository
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service
@Ser... | 0 | Kotlin | 0 | 0 | 8014bacd913760ea2d58e9a29006ad248c449728 | 842 | OcppServer | ISC License |
app/src/main/java/com/patel/programmingzone/pythontheory/ExercisePy.kt | lalit-patel | 456,964,451 | false | {"Kotlin": 44875} | package com.patel.programmingzone.pythontheory
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.RecyclerView
import com.patel.programmingzone.adapter.CustomAdapter
import android.os.Bundle
import android.view.View
import android.widget.Toast
import com.patel.programmingzone.R
import ... | 0 | Kotlin | 0 | 0 | 4d249af0d39b55487817068c01dda57415635606 | 1,173 | Programming-Zone | MIT License |
app/src/main/java/com/exorabeveragefsm/features/document/api/DocumentRepoProvider.kt | DebashisINT | 614,840,078 | false | null | package com.exorabeveragefsm.features.document.api
import com.exorabeveragefsm.features.dymanicSection.api.DynamicApi
import com.exorabeveragefsm.features.dymanicSection.api.DynamicRepo
object DocumentRepoProvider {
fun documentRepoProvider(): DocumentRepo {
return DocumentRepo(DocumentApi.create())
}... | 0 | Kotlin | 0 | 0 | 11801c2d74a940c23e66b51cf53fec14b1a8560b | 440 | ExoraBeverage | Apache License 2.0 |
3.3/LR_3_8+/app/src/main/java/ru/samsung/itschool/myapplication/Main2Activity.kt | Purpurum | 580,288,282 | false | null | package ru.samsung.itschool.myapplication
import android.os.Bundle
import android.view.Menu
import android.widget.Toast
import com.google.android.material.floatingactionbutton.FloatingActionButton
import com.google.android.material.snackbar.Snackbar
import com.google.android.material.navigation.NavigationView
import a... | 0 | Kotlin | 0 | 0 | cbb31dfec9eaf0169a12fa7368632138661ae034 | 2,755 | MD-NARFU | MIT License |
desktop/views/src/test/kotlin/prose/proseEditor/Prose Editor Text Area Unit Test.kt | Soyle-Productions | 239,407,827 | false | null | package com.soyle.stories.prose.proseEditor
import javafx.scene.Scene
import javafx.scene.input.KeyCode
import javafx.scene.layout.VBox
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import org.testfx.api.FxRobot
import org.testfx.api.FxToolkit
class `Prose Editor Text Area Uni... | 45 | Kotlin | 0 | 9 | 1a110536865250dcd8d29270d003315062f2b032 | 2,188 | soyle-stories | Apache License 2.0 |
plugin/src/main/kotlin/com/sanyavertolet/kotlinjspreview/config/PluginConfig.kt | sanyavertolet | 668,488,437 | false | {"Kotlin": 40557, "HTML": 369} | package com.sanyavertolet.kotlinjspreview.config
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.Service
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage
import com.intellij.openapi.components.service
import com.intellij.... | 0 | Kotlin | 0 | 6 | a186d0d4a58f8ff4b395759425bb8c181c449fea | 1,592 | kotlin-js-preview-idea-plugin | MIT License |
freya/src/main/kotlin/io/violabs/freya/controller/LibraryController.kt | violabs | 640,711,709 | false | null | package io.violabs.freya.controller
import io.violabs.freya.domain.Library
import io.violabs.freya.service.LibraryService
import kotlinx.coroutines.flow.Flow
import mu.KLogging
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframewo... | 8 | Kotlin | 0 | 1 | a0d58453016e2794f31b4ca7fca85f2d814c8b1a | 1,290 | vanir | Apache License 2.0 |
src/main/kotlin/com/github/imflog/schema/registry/config/ConfigTaskAction.kt | bspeakmon | 190,799,790 | true | {"Kotlin": 73111} | package com.github.imflog.schema.registry.config
import io.confluent.kafka.schemaregistry.client.SchemaRegistryClient
import io.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientException
import org.gradle.api.logging.Logging
class ConfigTaskAction(
private val client: SchemaRegistryClient,
priv... | 0 | Kotlin | 0 | 0 | 3313c9aa146a7deda83818c53fa16e92088e939d | 903 | schema-registry-plugin | Apache License 2.0 |
katarina-core/src/main/kotlin/com/hubtwork/riot/dto/cdn/championdetail/ChampionPassiveDTO.kt | adsad100 | 339,934,054 | false | null | package com.hubtwork.riot.dto.cdn.championdetail
import com.hubtwork.riot.dto.cdn.Image
/**
* DTO for Champion's Passive Skill
*
*/
data class ChampionPassiveDTO (
var name: String,
var description: String,
var image: Image
)
| 0 | Kotlin | 0 | 0 | 0db5e7d5c1b681a562392ded6182bffc72b91f7b | 249 | Katarina | MIT License |
src/jvmTest/java/com/codeborne/selenide/MatchTextConditionTest.kt | TarCV | 358,762,107 | true | {"Kotlin": 998044, "Java": 322706, "HTML": 46587, "XSLT": 7418} | package com.codeborne.selenide
import com.codeborne.selenide.Condition.Companion.matchText
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runBlockingTest
import org.assertj.core.api.WithAssertions
import org.junit.jupiter.api.Test
import org.mockito.Mockito
import org.openqa.seleniu... | 0 | Kotlin | 0 | 0 | c86103748bdf214adb8a027492d21765059d3629 | 1,932 | selenide.kt-js | MIT License |
src/main/kotlin/io/github/darefox/bot/Main.kt | DareFox | 573,069,850 | false | null | package io.github.darefox.bot
import io.github.darefox.bot.extensions.PingPongExtension
import io.github.darefox.bot.extensions.TempRoomCreatorExtension
import com.kotlindiscord.kord.extensions.ExtensibleBot
import dev.kord.gateway.Intents
import dev.kord.gateway.PrivilegedIntent
import org.litote.kmongo.KMongo
@OptI... | 0 | Kotlin | 0 | 0 | 7e29f03f3a45e672ea66b1b61366fbc5873e987e | 675 | TempRoomBot | MIT License |
src/main/kotlin/no/nav/toi/kandidatvarsel/altinnsms/AltinnVarsel.kt | navikt | 768,528,587 | false | {"Kotlin": 92600, "Dockerfile": 255} | package no.nav.toi.kandidatvarsel.altinnsms
import no.nav.toi.kandidatvarsel.*
import org.springframework.jdbc.core.simple.JdbcClient
import java.sql.ResultSet
import java.time.LocalDateTime
import javax.sql.DataSource
enum class AltinnStatus {
SENDT, UNDER_UTSENDING, IKKE_SENDT, FEIL
}
/** Gammel løsning sendte... | 0 | Kotlin | 0 | 0 | 5745dfd8430ee775675708eb089048340cf6d68a | 2,554 | rekrutteringsbistand-kandidatvarsel-api | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/Hiking.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.outline
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.Mite... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,396 | icons | MIT License |
hoon/HoonAlgorithm/src/main/kotlin/programmers/lv01/Lv1_PersonalityTypeTest.kt | boris920308 | 618,428,844 | false | {"Kotlin": 57019, "Swift": 40496, "Java": 2698, "Rich Text Format": 407} | /**
* 프로그래머스 Lv.1
* https://school.programmers.co.kr/learn/courses/30/lessons/118666
*/
fun main() {
val mSurvey = arrayOf("RT", "TR", "FC", "CF", "MJ", "JM", "AN", "NA")
// solution(mSurvey, intArrayOf(1,2,3,4,1,2,3,6))
solution(arrayOf("AN", "CF", "MJ", "RT", "NA"), intArrayOf(5, 3, 2, 7, 5))
solu... | 1 | Kotlin | 1 | 2 | 0e495912539ae3ba49e03880cb406bcb99f6457b | 3,085 | HoOne | Apache License 2.0 |
android-theme/src/main/kotlin/dev/jonpoulton/alakazam/theme/Constants.kt | jonapoul | 375,762,483 | false | null | package dev.jonpoulton.alakazam.theme
import dev.jonpoulton.alakazam.prefs.PrefPair
internal object Constants {
const val PREF_KEY = "app_theme"
val PREF_PAIR = PrefPair(PREF_KEY, AppTheme.SYSTEM.string)
}
| 0 | Kotlin | 0 | 0 | 14f111c8f1ea50be893a0af6f6eb21034cb574ee | 212 | alakazam | Apache License 2.0 |
app/src/main/java/com/example/marsphotos/model/MarsPhoto.kt | akbarbin | 737,496,550 | false | {"Kotlin": 31703} | /*
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Kotlin | 0 | 0 | 1c6085060cbb9dfdaa827bcbb8c96f3da8af7f09 | 4,029 | green-building-android | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.