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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
utilify/src/main/java/com/boryans/utilify/date/DateFormatter.kt | borYans | 542,781,458 | false | {"Kotlin": 25440} | package com.boryans.utilify.date
import android.content.Context
import android.os.Build
import androidx.annotation.RequiresApi
import java.text.SimpleDateFormat
import java.time.LocalDate
import java.time.format.DateTimeFormatter
import java.util.*
fun Calendar.addToCalendar(type: Int, amount: Int): Calendar {
add... | 3 | Kotlin | 0 | 0 | adf98ca6442bf9f3271a6ea4c31715db2322e5cb | 4,166 | Utilify | The Unlicense |
src/main/kotlin/com/tankobon/utils/CallToFile.kt | fopwoc | 445,686,330 | false | null | package com.tankobon.utils
import com.tankobon.api.BadRequestError
import io.ktor.server.application.ApplicationCall
import java.io.File
fun callToFile(call: ApplicationCall, initialPath: File): File {
val idTitle = call.parameters["id-title"]
val idVolume = call.parameters["id-volume"]
val idPage = call.... | 1 | Kotlin | 0 | 4 | 3007c8c711a3b5982b710cff58ca6923b49bead0 | 572 | tankobon-backend-kotlin | MIT License |
countrypicker/src/commonMain/kotlin/io/androidpoet/countrypicker/Country.kt | AndroidPoet | 857,442,535 | false | {"Kotlin": 77704} | /*
* Designed and developed by 2024 androidpoet (<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 applica... | 1 | Kotlin | 1 | 7 | 4cc21b7813d501ddb5c663163fcfa8460a9b8751 | 950 | CountryPicker | Apache License 2.0 |
src/main/java/com/extollit/gaming/ai/path/model/Element.kt | LeoDog896 | 336,321,014 | true | {"Kotlin": 229776, "Java": 187571} | package com.extollit.gaming.ai.path.model
import kotlin.experimental.and
import kotlin.experimental.inv
import kotlin.experimental.or
/**
* Passibility of blocks is stored in nibbles by an occlusion field. The lower two bits of this nibble indicates
* the material and basic passibility of the block. This is deter... | 0 | Kotlin | 0 | 0 | e8df64d2fee76bf70d567032871d8cd9019cfe77 | 4,041 | hydrazine-path-finding | Apache License 2.0 |
src/main/kotlin/de/bybackfish/avomod/WynncraftMod.kt | byBackfish | 510,866,399 | false | {"Kotlin": 65429, "Java": 1232} | package de.bybackfish.avomod
import de.bybackfish.avomod.commands.dev.GetItemNBTCommand
import de.bybackfish.avomod.commands.dev.SetSettingCommand
import de.bybackfish.avomod.commands.dev.TestCommand
import de.bybackfish.avomod.commands.dev.ToggleCommand
import de.bybackfish.avomod.commands.util.OnlineMembers
import d... | 0 | Kotlin | 0 | 0 | d82639e486fc5d892890038f0c41b15a8854ce7b | 2,656 | AvoMod-Recode | MIT License |
basic/src/main/java/com/mozhimen/composek/basic/runtime/external/kotlinx/collections/immutable/implementations/immutableList/TrieIterator.kt | mozhimen | 695,569,271 | false | {"Kotlin": 864315, "Java": 1272} | package com.mozhimen.composek.basic.runtime.external.kotlinx.collections.immutable.implementations.immutableList
/**
* @ClassName TrieIterator
* @Description TODO
* @Author Mozhimen / <NAME>
* @Date 2024/10/20 0:05
* @Version 1.0
*/
internal class TrieIterator<out E>(root: Array<Any?>,
... | 0 | Kotlin | 0 | 0 | a7c6d1e306638af40f41c2b89958c7335ebe8806 | 2,734 | AComposeKit | Apache License 2.0 |
app/src/main/java/uk/ac/warwick/postroom/services/ItemService.kt | UniversityofWarwick | 242,980,422 | false | null | package uk.ac.warwick.postroom.services
import android.graphics.Bitmap
import com.github.kittinunf.fuel.core.FuelError
import com.github.kittinunf.result.Result
import uk.ac.warwick.postroom.domain.ItemResult
import uk.ac.warwick.postroom.domain.MiniRecipient
import uk.ac.warwick.postroom.vm.AddItemViewModel
import ja... | 0 | Kotlin | 0 | 1 | fa0be72f7a727fa4abaa0502f2add6313b1dd916 | 533 | postroom-android | ISC License |
crowdin/src/main/java/com/crowdin/platform/CrowdinPreferences.kt | crowdin | 193,449,073 | false | {"Kotlin": 447819, "MDX": 27738, "Java": 4715, "JavaScript": 3829, "CSS": 1107} | package com.crowdin.platform
import android.content.Context
import android.content.SharedPreferences
import android.util.Log
import androidx.core.content.edit
import com.google.gson.Gson
import java.lang.reflect.Type
private const val SHARED_PREF_NAME = "com.crowdin.platform.string.preferences"
private const val LAST... | 5 | Kotlin | 38 | 104 | 5580be6d9c4b844094b8869ac6fb4e0921e14a98 | 2,124 | mobile-sdk-android | MIT License |
crowdin/src/main/java/com/crowdin/platform/CrowdinPreferences.kt | crowdin | 193,449,073 | false | {"Kotlin": 447819, "MDX": 27738, "Java": 4715, "JavaScript": 3829, "CSS": 1107} | package com.crowdin.platform
import android.content.Context
import android.content.SharedPreferences
import android.util.Log
import androidx.core.content.edit
import com.google.gson.Gson
import java.lang.reflect.Type
private const val SHARED_PREF_NAME = "com.crowdin.platform.string.preferences"
private const val LAST... | 5 | Kotlin | 38 | 104 | 5580be6d9c4b844094b8869ac6fb4e0921e14a98 | 2,124 | mobile-sdk-android | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/PesetaSign.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.bold
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
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,912 | icons | MIT License |
common/src/main/java/com/ably/tracking/common/AblyModels.kt | ably | 313,556,297 | false | null | package com.ably.tracking.common
import com.ably.tracking.Resolution
data class PresenceMessage(val action: PresenceAction, val data: PresenceData, val clientId: String)
enum class PresenceAction {
PRESENT_OR_ENTER, LEAVE_OR_ABSENT, UPDATE;
}
data class PresenceData(val type: String, val resolution: Resolution?... | 83 | Kotlin | 2 | 4 | e30dc588ca13e8b4ceed2af79d833350ba423667 | 364 | ably-asset-tracking-android | Apache License 2.0 |
api/src/main/kotlin/nebulosa/api/alignment/polar/darv/DARVPolarAlignmentEvent.kt | tiagohm | 568,578,345 | false | {"Kotlin": 1894356, "TypeScript": 276399, "HTML": 135660, "SCSS": 7279, "JavaScript": 1164} | package nebulosa.api.alignment.polar.darv
import nebulosa.api.sequencer.SequenceJobEvent
import nebulosa.indi.device.camera.Camera
import nebulosa.indi.device.guide.GuideOutput
sealed interface DARVPolarAlignmentEvent : SequenceJobEvent {
val camera: Camera
val guideOutput: GuideOutput
val state: DARVP... | 1 | Kotlin | 0 | 1 | 31e59b5215fc54a9330357cd7ae0733ab94ec2fb | 341 | nebulosa | MIT License |
src/main/kotlin/Comachine.kt | teneko | 674,096,200 | true | {"Kotlin": 96417} | package de.halfbit.comachine
import de.halfbit.comachine.dsl.ComachineBlock
import kotlinx.coroutines.CompletableDeferred
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.launch
import kotlin.reflect.KClass
fun <State : Any, Event : A... | 0 | Kotlin | 0 | 0 | 7aa8fde20045dcd6594bd379a76e57d44b770f4d | 1,370 | comachine | Apache License 2.0 |
packages/react-native/android/src/main/java/com/breezsdkliquid/BreezSDKLiquidMapper.kt | breez | 756,472,870 | false | {"Rust": 1086459, "Dart": 828821, "Swift": 189485, "Kotlin": 133118, "C": 52134, "C++": 28861, "CMake": 23355, "TypeScript": 22683, "Java": 15818, "Makefile": 10685, "Ruby": 8199, "Objective-C": 7187, "Shell": 4502, "Objective-C++": 4456, "Just": 3453, "Python": 1614, "JavaScript": 1118, "HTML": 985, "Starlark": 602} | package com.breezsdkliquid
import breez_sdk_liquid.*
import com.facebook.react.bridge.*
import java.util.*
fun asAesSuccessActionDataDecrypted(aesSuccessActionDataDecrypted: ReadableMap): AesSuccessActionDataDecrypted? {
if (!validateMandatoryFields(
aesSuccessActionDataDecrypted,
arrayOf(
... | 44 | Rust | 3 | 13 | 44ee969e433af90100b192e75c03dcfd79dbab4e | 92,746 | breez-sdk-liquid | MIT License |
src/main/kotlin/com/dood/kotlin/basicstuff/classesAndSuch/4_CustomAccessors.kt | coderdude1 | 164,117,770 | false | null | package com.dood.kotlin.basicstuff.classesAndSuch
/**
* declare a class with 2 properties, and add a custom accessor (isSquare) method. This example uses an accessor
* (get) vs a function on the class itself.
*/
class Rectangle(val height: Int, val width: Int) {
val isSquare: Boolean
get() {
... | 0 | Kotlin | 0 | 0 | 5f5dcb954152b81f458bf614c79a5116dd554385 | 356 | KotlinBasicExperiments | Apache License 2.0 |
app/src/main/java/com/techchallange/app/ui/activities/login/LoginActivityViewModel.kt | hasankucuk | 209,618,765 | false | null | package com.techchallange.app.ui.activities.login
import com.techchallange.app.base.BaseViewModel
class LoginActivityViewModel : BaseViewModel() {
} | 0 | Kotlin | 1 | 6 | 8204cc8ce3e2cae24da7056a94ecd1dbb31a562f | 150 | Android-Developer-Tech-Challenge | Apache License 2.0 |
data/src/main/java/com/codewithfk/data/network/NetworkServiceImpl.kt | furqanullah717 | 850,539,879 | false | {"Kotlin": 18319} | package com.codewithfk.data.network
import com.codewithfk.data.model.DataProductModel
import com.codewithfk.domain.model.Product
import com.codewithfk.domain.network.NetworkService
import com.codewithfk.domain.network.ResultWrapper
import io.ktor.client.HttpClient
import io.ktor.client.call.body
import io.ktor.client.... | 0 | Kotlin | 0 | 6 | 2c4539b975e80b4a7db23709e00be4da10c8d3e6 | 2,670 | Shopper-compose | Apache License 2.0 |
lib/src/main/kotlin/de/unisaarland/pcdfanalyser/eventStream/PCDFEventExtensions.kt | udsdepend | 404,319,499 | false | {"Kotlin": 108306} | package de.unisaarland.pcdfanalyser.eventStream
import pcdfEvent.PCDFEvent
import pcdfEvent.events.obdEvents.obdIntermediateEvents.multiComponentEvents.*
import pcdfEvent.events.obdEvents.obdIntermediateEvents.reducedComponentEvents.FuelRateReducedEvent
import pcdfEvent.events.obdEvents.obdIntermediateEvents.reducedCo... | 0 | Kotlin | 0 | 0 | d6d8ada844ac374835f11705103ba3590d6b862e | 6,224 | pcdf-analyser | MIT License |
src/commonMain/kotlin/com.adamratzman.spotify/http/Endpoints.kt | LDuncAndroid | 245,807,017 | true | {"Kotlin": 532839} | /* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2020; Original author: <NAME> */
package com.adamratzman.spotify.http
import com.adamratzman.spotify.SpotifyApi
import com.adamratzman.spotify.SpotifyClientApi
import com.adamratzman.spotify.SpotifyException
import com.adamratzman.spotify.SpotifyException.BadReques... | 0 | null | 0 | 0 | e02d96cd57cb35fca8ee4e15e135c671b36f47d9 | 8,043 | spotify-web-api-kotlin | MIT License |
app/src/main/java/com/example/gymtracker/ui/logHistoryScreen/LogHistoryFragment.kt | EduDA92 | 595,563,950 | false | null | package com.example.gymtracker.ui.logHistoryScreen
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.fragment.app.viewModels
import androidx.lifecycle.Lifecycle
imp... | 0 | Kotlin | 0 | 1 | bf47b0af7f4abf6502964d4b1cd966359a61215d | 2,707 | GymTracker | MIT License |
model/src/main/java/org/ligi/kithub/model/GithubIssueCloseEvent.kt | komputing | 92,964,439 | false | {"Kotlin": 12622} | package org.ligi.kithub.model
data class GithubIssueCloseEvent(val action: String,
val issue: GithubIssue,
val sender: GithubUser,
val repository: GithubRepository,
val installation: Gith... | 6 | Kotlin | 2 | 6 | 64b29affbe1d3aadde5747e3ad39f6fc90518083 | 339 | Kithub | MIT License |
src/main/kotlin/com/teknologiumum/commons/ResponseDTO.kt | teknologi-umum | 454,398,376 | false | null | package com.teknologiumum.commons
import kotlinx.serialization.Serializable
@Serializable
class ResponseDTO(
val success: Boolean,
val statusCode: Int,
val requestDuration: Long
)
| 0 | Kotlin | 0 | 1 | 2b2e918c76c5ab7dd5a040d0159904143ff7df9d | 195 | ohana | Apache License 2.0 |
ktmidi/src/jvmTest/kotlin/dev/atsushieno/ktmidi/MidiReaderWriterTest.kt | atsushieno | 340,913,447 | false | null | package dev.atsushieno.ktmidi
import kotlin.test.Test
import kotlin.test.assertContentEquals
import kotlin.test.assertEquals
class MidiReaderWriterTest {
@Test
fun readMusicFromResource() {
val music = MidiMusic()
val stream = javaClass.getResource("/mugene-fantasy-suite/1-das-stromreiters.mid... | 9 | Kotlin | 3 | 36 | 787994bd0a0bd9f44ac98b935261ede747c45e21 | 1,228 | ktmidi | MIT License |
app/src/main/java/com/example/nifasku/TipsMasaNifas.kt | mochasep | 213,590,667 | false | null | package com.example.nifasku
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import com.example.nifasku.deskripsiA.*
import kotlinx.android.synthetic.main.content_tips_masa_nifas.*
class TipsMasaNifas : AppCompatActivity() {
override fun onCreate(savedInstanc... | 0 | Kotlin | 0 | 0 | 837d5ef6d7c2d3d658ab10d31d6a0980756afe1e | 1,443 | Nifasku | MIT License |
app/src/test/java/org/simple/clinic/summary/bloodpressures/BloodPressureSummaryViewUiRendererTest.kt | abhishekvermax | 238,414,803 | true | {"Kotlin": 3095300, "C": 680052, "Java": 8206, "Shell": 1878, "Makefile": 635} | package org.simple.clinic.summary.bloodpressures
import com.nhaarman.mockito_kotlin.mock
import com.nhaarman.mockito_kotlin.verify
import com.nhaarman.mockito_kotlin.verifyNoMoreInteractions
import com.nhaarman.mockito_kotlin.verifyZeroInteractions
import org.junit.Test
import org.simple.clinic.bp.BloodPressureMeasure... | 0 | null | 0 | 0 | 458730f232eab371dd8f3ddaa3d46b1a0a22d8bc | 4,080 | simple-android | MIT License |
gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/gallery/GetAllSceneGalleryInfoRsp.kt | Anime-Game-Servers | 642,871,918 | false | {"Kotlin": 1651536} | package org.anime_game_servers.multi_proto.gi.data.gallery
import org.anime_game_servers.core.base.Version.GI_1_4_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
... | 0 | Kotlin | 2 | 6 | 7639afe4f546aa5bbd9b4afc9c06c17f9547c588 | 552 | anime-game-multi-proto | MIT License |
data/preferences/session/src/commonTest/kotlin/dev/alvr/katana/data/preferences/session/di/module.kt | alvr | 446,535,707 | false | {"Kotlin": 450399, "Swift": 594} | package dev.alvr.katana.data.preferences.session.di
import androidx.datastore.core.DataStoreFactory
import androidx.datastore.core.handlers.ReplaceFileCorruptionHandler
import androidx.datastore.core.okio.OkioStorage
import dev.alvr.katana.data.preferences.base.encrypt.PreferencesEncrypt
import dev.alvr.katana.data.pr... | 4 | Kotlin | 0 | 52 | 36977eaf91cef21fce4ac88d7d587a74fbb2ec6c | 2,812 | katana | Apache License 2.0 |
app/src/main/java/com/example/joren/partynightplanner/domain/User.kt | JDevbois | 156,414,710 | false | null | package com.example.joren.partynightplanner.domain
data class User(val id: String, val name: String) | 0 | Kotlin | 0 | 0 | d485e7bd84927d7e313702f4a7a7dfb57474846c | 101 | PartyNightPlanner | MIT License |
core/src/main/kotlin/com/github/bkhablenko/outreach/proxx/game/Game.kt | bkhablenko | 631,917,403 | false | null | package com.github.bkhablenko.outreach.proxx.game
import com.github.bkhablenko.outreach.proxx.arrays.Array2D
import com.github.bkhablenko.outreach.proxx.exception.GameOverException
/**
* State of the game.
*/
class Game(private val board: GameBoard) {
var isOver: Boolean = false
private set
var is... | 0 | Kotlin | 0 | 0 | 7d0463323280414cde101ed29d7eba0ece76f76f | 1,091 | outreach-proxx | MIT License |
app/src/main/java/com/an/github/datasource/factory/GithubDataFactory.kt | Fenscode | 176,228,829 | false | null | package com.an.github.datasource.factory
import androidx.lifecycle.MutableLiveData
import androidx.paging.DataSource
import com.an.github.datasource.GithubDataSource
import com.an.github.model.Repository
class GithubDataFactory: DataSource.Factory<Long, Repository>() {
val mutableLiveData: MutableLiveData<Githu... | 0 | Kotlin | 0 | 0 | 8dc6cb8f3d8a187b7d1e6f4d0c63fe8704a337ca | 556 | GitHub-MVVM-ArchCompoments-Sample | Apache License 2.0 |
src/test/kotlin/no/nav/pensjon/kalkulator/simulering/client/pen/map/SimuleringMapperTest.kt | navikt | 596,104,195 | false | {"Kotlin": 405035, "Java": 1630, "Dockerfile": 132} | package no.nav.pensjon.kalkulator.simulering.client.pen.map
import no.nav.pensjon.kalkulator.general.Alder
import no.nav.pensjon.kalkulator.general.Uttaksgrad
import no.nav.pensjon.kalkulator.mock.DateFactory
import no.nav.pensjon.kalkulator.mock.PersonFactory.pid
import no.nav.pensjon.kalkulator.person.Sivilstand
imp... | 0 | Kotlin | 0 | 0 | 66132839e1da3a162eb78e8ad4bf842ced680995 | 1,633 | pensjonskalkulator-backend | MIT License |
src/main/kotlin/no/nav/yrkesskade/meldingmottak/services/ArbeidsfordelingService.kt | navikt | 413,400,372 | false | null | package no.nav.yrkesskade.meldingmottak.services
import com.expediagroup.graphql.generated.enums.AdressebeskyttelseGradering
import com.expediagroup.graphql.generated.hentperson.Adressebeskyttelse
import com.expediagroup.graphql.generated.hentperson.Person
import no.nav.familie.kontrakter.felles.arbeidsfordeling.Enhet... | 1 | Kotlin | 0 | 0 | 6ab936e3d9b2bd55f559bdc282009aada1bd10ca | 3,378 | yrkesskade-melding-mottak | MIT License |
app/src/main/java/com/masterplus/trdictionary/core/shared_features/select_list/list_menu_dia/SelectListMenuState.kt | Ramazan713 | 634,957,286 | false | {"Kotlin": 1110654} | package com.masterplus.trdictionary.core.shared_features.select_list.list_menu_dia
import com.masterplus.trdictionary.core.shared_features.select_list.constants.SelectListMenuEnum
data class SelectListMenuState(
val listMenuItems: List<SelectListMenuEnum> = emptyList(),
val isFavorite: Boolean = false,
va... | 0 | Kotlin | 0 | 1 | 5c096081d631a769ba3a6390c298611c70295ccc | 484 | Turkce-ve-Osmanlica-Sozluk | Apache License 2.0 |
BluetoothLowEnergyLibrary/src/main/java/com/sscl/bluetoothlowenergylibrary/enums/BleConnectTransport.kt | JackiePenghe | 576,202,844 | false | null | package com.sscl.bluetoothlowenergylibrary.enums
import androidx.annotation.RequiresApi
import android.os.Build
import android.bluetooth.BluetoothDevice
/**
* GATT 连接到远程双模设备的首选传输方式
*
* [BluetoothDevice.TRANSPORT_AUTO]
* [BluetoothDevice.TRANSPORT_BREDR]
* [BluetoothDevice.TRANSPORT_LE]
*
* @author pengh
*/
@R... | 0 | Kotlin | 0 | 0 | 629d489e6f6c94afd66c9c84184fbea819b08bd7 | 667 | ble-library-for-kotlin | Apache License 2.0 |
kludge-api/src/main/kotlin/kludge/api/transform/BaseTransform.kt | Zhupff | 374,409,210 | false | null | package kludge.api.transform
import com.android.build.api.transform.*
import com.android.build.gradle.internal.pipeline.TransformManager
import com.android.utils.FileUtils
import kludge.api.common.Logln
import kludge.api.common.i
/**
* Author: Zhupf
* Description: transform 处理流程基类。
*/
abstract class BaseTransform(... | 0 | Kotlin | 0 | 0 | d5b5eb3c94733625c3c9dddb2473960ccc9667eb | 3,356 | kludges | Apache License 2.0 |
application/src/main/kotlin/business/textCustomization.kt | JingfeiPeng | 490,572,392 | false | null | package business
import androidx.compose.runtime.MutableState
import androidx.compose.ui.text.TextRange
import androidx.compose.ui.text.input.TextFieldValue
import androidx.compose.ui.text.input.getSelectedText
import androidx.compose.ui.text.input.getTextAfterSelection
import androidx.compose.ui.text.input.getTextBef... | 0 | Kotlin | 1 | 0 | 34828da38f92baf48c73ae7a8343b803e8ad9e97 | 3,061 | NoteDown | MIT License |
app/src/main/java/com/krykun/movieapp/feature/person/view/EmptyView.kt | JekaK | 508,341,591 | false | {"Kotlin": 470505} | package com.krykun.movieapp.feature.person.view
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.size
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValu... | 0 | Kotlin | 0 | 7 | b46b296c16e23a6394e382a7d30b34176d443d90 | 1,470 | MoviesApp | Apache License 2.0 |
Android/BLUR/domain/src/main/java/com/blur/blur/domain/usecase/main/home/SendMessage/GetMessageUseCase.kt | kim-do-hyeon | 752,461,840 | false | {"Kotlin": 365399, "Swift": 75215, "Python": 66512, "JavaScript": 41759, "CSS": 6957, "HTML": 2674, "Shell": 176} | package com.blur.blur.domain.usecase.main.home.SendMessage
interface GetMessageUseCase {
suspend operator fun invoke(
username:String,
): Result<String>
} | 0 | Kotlin | 2 | 6 | f350b6d1bc1a7630cb787107713ed47f50a7e84b | 172 | 2024-jj-capstone-design | MIT License |
app/src/main/java/org/mixitconf/model/dao/TalkDao.kt | mixitconf | 123,981,169 | false | null | package org.mixitconf.model.dao
import androidx.room.*
import org.mixitconf.model.entity.Talk
@Dao
interface TalkDao {
@Insert
fun create(talk: Talk)
@Query("select * from Talk")
fun readAll(): List<Talk>
@Query("select * from Talk where speakerIds like '%' || :id || '%'")
fun readAllBySpeak... | 1 | Kotlin | 1 | 2 | ba39fdb7f0767c112fff91e888a0dc86b3fa8c40 | 657 | mixit-android | Apache License 2.0 |
langsmith-java-core/src/main/kotlin/com/langsmith/api/models/AnnotationQueueSchema.kt | langchain-ai | 774,515,765 | false | {"Kotlin": 2288977, "Shell": 1314, "Dockerfile": 305} | // File generated from our OpenAPI spec by Stainless.
package com.langsmith.api.models
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
impor... | 1 | Kotlin | 0 | 2 | 922058acd6e168f6e1db8d9e67a24850ab7e93a0 | 7,003 | langsmith-java | Apache License 2.0 |
src/Day12.kt | joy32812 | 573,132,774 | false | {"Kotlin": 62766} | import java.util.LinkedList
fun main() {
fun toKey(x: Int, y: Int) = x * 10000 + y
fun toCord(key: Int) = key / 10000 to key % 10000
fun shortestPath(grid: Array<CharArray>, edgeMap: Map<Int, MutableSet<Int>>, sx: Int, sy: Int, tx: Int, ty: Int): Int {
val m = grid.size
val n = grid[0].size
val an... | 0 | Kotlin | 0 | 0 | 5e87958ebb415083801b4d03ceb6465f7ae56002 | 2,888 | aoc-2022-in-kotlin | Apache License 2.0 |
src/main/kotlin/com/between_freedom_and_space/mono_backend/popular/service/model/PopularPeriod.kt | Between-Freedom-and-Space | 453,797,438 | false | {"Kotlin": 614504, "HTML": 8733, "Dockerfile": 503, "Shell": 166} | package com.between_freedom_and_space.mono_backend.popular.service.model
enum class PopularPeriod {
HOUR,
DAY,
WEEK,
MONTH;
} | 0 | Kotlin | 0 | 1 | 812d8257e455e7d5b1d0c703a66b55ed2e1dcd35 | 142 | Mono-Backend | Apache License 2.0 |
My_Jetpack/app/src/main/java/com/laioffer/my_jetpack/lesson1_lifecycle/tools/Utils.kt | yuanuscfighton | 557,023,117 | false | null | package com.laioffer.my_jetpack.lesson1_lifecycle.tools
import android.util.Log
/**
* @description lifecycle工具类
* @date 2022/10/31 10:54 下午
*/
object Utils {
private const val TAG = "[l1-lifecycle] "
fun logMessage(tag: String, message: String) {
Log.e(TAG, tag + message)
}
} | 0 | Kotlin | 0 | 0 | 7b8e3cf83a0f815fdbe6412f8ed1d356fa1c8f3c | 300 | nice-android-job | MIT License |
android/app/src/main/java/com/emergetools/hackernews/features/login/LoginScreen.kt | EmergeTools | 682,684,464 | false | {"Kotlin": 174590, "Swift": 30430, "Ruby": 5422} | package com.emergetools.hackernews.features.login
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.fillMaxSize
import androidx.comp... | 16 | Kotlin | 8 | 72 | 2cc224a3ee355f4b0044bbae74b20b6a3f820dd7 | 4,932 | hackernews | MIT License |
src/main/kotlin/days/Day06.kt | julia-kim | 435,257,054 | false | {"Kotlin": 15771} | package days
import readInput
fun main() {
fun part1(input: List<String>): Long {
val school = input[0].split(",").map { it.toInt() }.toMutableList()
var iterator: MutableListIterator<Int>
var days = 80
while (days > 0) {
iterator = school.listIterator()
whi... | 0 | Kotlin | 0 | 0 | 5febe0d5b9464738f9a7523c0e1d21bd992b9302 | 954 | advent-of-code-2021 | Apache License 2.0 |
app/src/main/java/xyz/daijoubuteam/foodshoppingappadmin/ui/orders/adapter/OrderAdapter.kt | phuquang147 | 491,842,785 | false | {"Kotlin": 121240} | package xyz.daijoubuteam.foodshoppingappadmin.ui.orders.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import kotlinx.android.synthetic.main.item_order... | 0 | Kotlin | 0 | 0 | cb429e624c42cfea866e4c4fc5f716e0da37ae3f | 2,321 | FoodShoppingAppAdmin | MIT License |
Desktop/src/jvmMain/kotlin/io/nacular/doodle/theme/native/NativeSliderBehavior.kt | nacular | 108,631,782 | false | {"Kotlin": 3150677} | package io.nacular.doodle.theme.native
import io.nacular.doodle.controls.range.Slider
import io.nacular.doodle.controls.theme.range.SliderBehavior
import io.nacular.doodle.core.View
import io.nacular.doodle.drawing.Canvas
import io.nacular.doodle.drawing.impl.CanvasImpl
import io.nacular.doodle.event.PointerEvent
impo... | 5 | Kotlin | 26 | 613 | f7414d4c30cdd7632992071234223653e52b978c | 8,717 | doodle | MIT License |
tw-data/src/main/kotlin/com/github/ljufa/sma/tw/server/main.kt | ljufa | 563,332,997 | false | null | package com.github.ljufa.sma.tw.server
import com.github.ljufa.sma.tw.server.api.TopTweetsService
import com.github.ljufa.sma.tw.server.db.DataSource
import com.github.ljufa.sma.tw.server.db.DbRepository
import com.github.ljufa.sma.tw.server.incoming.MessageHandler
import io.grpc.ServerBuilder
import org.slf4j.LoggerF... | 0 | Kotlin | 0 | 0 | 9a3a398bd8169886569ff1c456226268d97653b2 | 1,766 | sma | MIT License |
app/src/main/java/me/artspb/android/kids/wall/clock/Util.kt | artspb | 256,951,220 | false | null | package me.artspb.android.kids.wall.clock
import java.util.*
internal fun combine(hours: Int, minutes: Int) = hours * 60 + minutes
internal fun Int.split(): Pair<Int, Int> = Pair(this / 60, this % 60)
internal fun Int.toDate(): Calendar {
val (hours, minutes) = split()
val date = Calendar.getInstance()
... | 0 | Kotlin | 0 | 0 | 11df4e21981080ff3fb7275eca31272ad9e27bfb | 1,059 | KidsWallClock | Apache License 2.0 |
app/src/main/java/ar/com/play2play/model/truco/message/TrucoActionMessage.kt | UTN-FRBA-Mobile | 365,641,042 | false | null | package ar.com.play2play.model.truco.message
import com.fasterxml.jackson.annotation.JsonTypeName
import ar.com.play2play.model.base.message.Message
import ar.com.play2play.model.truco.TeamPlayer
import ar.com.play2play.presentation.truco.actions.TrucoAction
@JsonTypeName(value = TrucoActionMessage.TYPE)
data class T... | 0 | Kotlin | 1 | 0 | 3212cb762824af2e12d3a7492ef66cc72326f3d0 | 477 | Play2Play | MIT License |
DSLs/kubernetes/dsl/src/main/kotlin-gen/com/fkorotkov/openshift/gcp.kt | fkorotkov | 84,911,320 | false | null | // GENERATED
package com.fkorotkov.openshift
import io.fabric8.openshift.api.model.GCPPlatformSpec as model_GCPPlatformSpec
import io.fabric8.openshift.api.model.GCPPlatformStatus as model_GCPPlatformStatus
import io.fabric8.openshift.api.model.PlatformSpec as model_PlatformSpec
import io.fabric8.openshift.api.model.P... | 4 | Kotlin | 19 | 301 | fa0b20b5a542cb332430fa85b1035456939a2ca6 | 717 | k8s-kotlin-dsl | MIT License |
app/src/main/java/dev/harshdalwadi/nasaapp/base/BaseRecyclerViewAdapter.kt | dalwadi2 | 533,047,238 | false | null | package dev.harshdalwadi.nasaapp.base
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.recyclerview.widget.RecyclerView
abstract class BaseRec... | 0 | Kotlin | 0 | 0 | 6fd3348bc1034ee95e8e346388d74cc9e0c3a1d6 | 1,184 | NasaApp | Apache License 2.0 |
src/main/kotlin/com/github/wenpiner/tron/block/data/transaction/contract/BeanAccountCreateContract.kt | Wenpiner | 689,049,588 | false | {"Kotlin": 46764} | package com.github.wenpiner.tron.block.data.transaction.contract
import com.github.phish.tron.block.data.Address
import com.github.phish.tron.block.enums.AccountType
import com.github.phish.tron.block.serializer.StringToAddressAdapter
import com.google.gson.annotations.JsonAdapter
import com.google.gson.annotations.Se... | 0 | Kotlin | 0 | 1 | f717d4eba045cfb75a6b24dfa7a339040efa18e0 | 625 | TronApi | MIT License |
base/src/main/kotlin/com/tuanhv/mvvmarch/base/db/post/PostsLocalDataSource.kt | tuanhv-0226 | 295,288,304 | false | {"Kotlin": 104121} | package com.tuanhv.mvvmarch.base.db.post
import javax.inject.Inject
import javax.inject.Singleton
/**
* Created by hoang.van.tuan on 2/2/18.
*/
@Singleton
class PostsLocalDataSource @Inject constructor() {
}
| 0 | Kotlin | 1 | 0 | 6e93d618e29eb2f9f607c746e305e79b662cc9ac | 213 | mvvm_arch_base | MIT License |
src/main/kotlin/io/github/serpro69/kfaker/provider/StrangerThings.kt | jianfang-kso | 204,592,729 | true | {"Kotlin": 189205, "Groovy": 1142} | package io.github.serpro69.kfaker.provider
import io.github.serpro69.kfaker.*
import io.github.serpro69.kfaker.dictionary.*
/**
* [FakeDataProvider] implementation for [CategoryName.STRANGER_THINGS] category.
*/
class StrangerThings internal constructor(fakerService: FakerService) : AbstractFakeDataProvider(fakerSe... | 0 | Kotlin | 0 | 0 | 36a77fb520f82a1a0b43cf6cd08c54c2c7b9d6d6 | 539 | kotlin-faker | MIT License |
app/src/main/java/com/app/jetpack/core/BundleContants.kt | ldk123456 | 648,167,522 | false | null | package com.app.jetpack.core
const val KEY_FEED_TYPE = "feedType"
const val KEY_FEED = "key_feed"
const val KEY_CATEGORY = "key_category"
const val KEY_ITEM_ID = "key_item_id"
const val KEY_PREVIEW_PATH = "key_preview_path"
const val KEY_IS_VIDEO = "key_is_video"
const val KEY_SHOW_ACTION_BTN = "key_show_action_btn"
c... | 0 | Kotlin | 0 | 0 | 5631f4b6d681374dc7d8fccc3574f9cca4795476 | 598 | JetpackApp | Apache License 2.0 |
smartnotifications/src/main/java/com/kunalapk/smartnotifications/AppController.kt | Kunalapk | 329,026,547 | false | {"Kotlin": 22457, "JavaScript": 91} | package com.kunalapk.smartnotifications
class AppController {
} | 0 | Kotlin | 0 | 3 | 483da289f7cb3d04568f00063127a9c366cd38de | 64 | SmartNotifications | Apache License 2.0 |
domain/src/main/java/com/ujizin/leafy/domain/usecase/alarm/implementation/UpdateAlarmImpl.kt | ujizin | 442,024,281 | false | {"Kotlin": 327053} | package com.ujizin.leafy.domain.usecase.alarm.implementation
import com.ujizin.leafy.domain.model.Alarm
import com.ujizin.leafy.domain.repository.AlarmRepository
import com.ujizin.leafy.domain.usecase.alarm.UpdateAlarm
class UpdateAlarmImpl(
private val repository: AlarmRepository,
) : UpdateAlarm {
override... | 7 | Kotlin | 0 | 1 | 52cb750b08ecfc1f751f0171b110bbc26868caf4 | 380 | Leafy | Apache License 2.0 |
src/main/kotlin/cn/inrhor/imipetcore/common/option/SkillOption.kt | inrhor | 518,004,091 | false | {"Kotlin": 201847} | package cn.inrhor.imipetcore.common.option
/**
* 技能配置
*/
class SkillOption(var id: String = "null", val name: String = "null", val script: String = "",
val tree: TreeSkillOption = TreeSkillOption(),
val coolDown: String = "0", val icon: ItemElement = ItemElement())
/**
* 技能树配置
... | 3 | Kotlin | 3 | 9 | 3eb73fe92e5aaedfd907be4705ecaf0b379d8895 | 497 | imipetCore | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/peruapps/christopher_elias/entity/User.kt | ChristopherME | 189,524,605 | false | null | package com.peruapps.christopher_elias.entity
/**
* Created by <NAME> on 29-may-2019
* <EMAIL>
* Lima, Perú
* Copyright (c) 2019 All rights reserved.
*/
data class User(val name: String = "",
val email: String = "") | 0 | Kotlin | 0 | 0 | 785b1e3938a69936b0c0732f82cb6b40fbfc8d0b | 239 | senior-test | Apache License 2.0 |
src/lox/ModuleInfo.kt | Pawel-Parma | 803,926,420 | false | {"XML": 1, "Text": 1, "Ignore List": 1, "Markdown": 1, "Java": 16, "Kotlin": 6} | package lox
import lox.token.Token
import lox.token.TokenType
class ModuleInfo(
val name: String,
) {
@JvmField var hadError: Boolean = false
@JvmField var hadRuntimeError: Boolean = false
fun error(line: Int, message: String) {
report(line, "", message)
}
fun error(token: Token, mes... | 0 | Java | 0 | 0 | e1b3d1e5e55e4c1691735b6784dcf2993508127b | 1,189 | lox-java | MIT License |
lawnchair/src/app/lawnchair/allapps/SearchResultText.kt | LawnchairLauncher | 83,799,439 | false | null | package app.lawnchair.allapps
import android.content.Context
import android.provider.SearchRecentSuggestions
import android.util.AttributeSet
import android.widget.Button
import android.widget.LinearLayout
import android.widget.TextView
import androidx.core.view.ViewCompat
import app.lawnchair.font.FontManager
import ... | 109 | null | 2 | 8,138 | eeb901dc64186353a8f7fc44bf460432731f35e7 | 2,817 | lawnchair | Apache License 2.0 |
lawnchair/src/app/lawnchair/allapps/SearchResultText.kt | LawnchairLauncher | 83,799,439 | false | null | package app.lawnchair.allapps
import android.content.Context
import android.provider.SearchRecentSuggestions
import android.util.AttributeSet
import android.widget.Button
import android.widget.LinearLayout
import android.widget.TextView
import androidx.core.view.ViewCompat
import app.lawnchair.font.FontManager
import ... | 109 | null | 2 | 8,138 | eeb901dc64186353a8f7fc44bf460432731f35e7 | 2,817 | lawnchair | Apache License 2.0 |
NetClinet/src/main/java/com/mimimi/netclinet/net/download/GZipTask.kt | Aoyihala | 414,897,860 | false | {"Java": 124244, "Kotlin": 98641} | package com.mimimi.netclinet.net.download
import android.content.Context
import androidx.work.Worker
import androidx.work.WorkerParameters
import android.os.FileUtils
import android.util.Log
import androidx.work.Data
import com.blankj.utilcode.util.ZipUtils
import org.greenrobot.eventbus.EventBus
import java.io.File
i... | 1 | null | 1 | 1 | 1226d7b58fefbdf55569e232229785a4ce0f03b9 | 1,308 | navoldemo | Apache License 2.0 |
clientes/android/app/src/main/java/com/lopez/guillen/dogfeeder/LoginActivity.kt | Sysop81 | 788,097,361 | false | {"Text": 1, "Ignore List": 7, "Markdown": 1, "Gradle Kotlin DSL": 3, "Java Properties": 2, "Shell": 2, "Batchfile": 1, "Proguard": 1, "Kotlin": 24, "XML": 65, "Python": 2, "Maven POM": 1, "Java": 29, "SQL": 3} | package com.lopez.guillen.dogfeeder
import android.app.Activity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import com.lopez.guillen.dogfeeder.model.FragmentInteractionListener
/**
* Clase LoginActivity
* Repre... | 0 | Java | 0 | 0 | 041a3e1e97d4b7caf967a4fa178fceddf2b41da3 | 3,404 | PROYECTO_FINAL_DOGFEEDER | MIT License |
buildSrc/src/main/kotlin/ReleaseSupportPlugin.kt | jebnix | 565,612,684 | true | {"Java Properties": 13, "Gradle Kotlin DSL": 75, "YAML": 66, "Shell": 4, "Text": 15, "EditorConfig": 2, "Markdown": 73, "Batchfile": 4, "Ignore List": 4, "Java": 972, "XML": 22, "reStructuredText": 36, "Python": 54, "INI": 6, "TOML": 2, "Makefile": 2, "Scala": 89, "CSS": 10, "SVG": 7, "HTML": 4, "JSON5": 1, "Kotlin": 5... | /*
* Copyright (C) 2022 Dremio
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | null | 0 | 0 | 2f5274fc54804b35c550310413539b28b41741b5 | 3,430 | nessie | Apache License 2.0 |
composeApp/src/commonMain/kotlin/io/github/taalaydev/doodleverse/ui/components/BrushPicker.kt | TaalayDev | 870,037,542 | false | {"Kotlin": 231243, "Swift": 621, "HTML": 337, "CSS": 102} | package io.github.taalaydev.doodleverse.ui.components
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.l... | 0 | Kotlin | 0 | 0 | 0bc6cd83b6fa9a9228f2da9b756e26e9da61ce81 | 7,664 | DoodleVerse-ComposeMultiplatform | MIT License |
sdk/src/main/kotlin/GetApp/Client/models/NewBugReportResDto.kt | getappsh | 735,551,269 | false | {"Kotlin": 788107, "Java": 8139, "Python": 589} | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package GetApp.Client.models
import com.square... | 0 | Kotlin | 1 | 1 | d9d3e9317175babb5f9726e568dc17ab1ce8187e | 602 | getmap-android-sdk | Apache License 2.0 |
src/test/kotlin/com/trankimtung/spring/data/jpa/filterable/repository/support/ValueResolverTest.kt | trankimtung | 374,366,678 | false | null | package com.trankimtung.spring.data.jpa.filterable.repository.support
import com.trankimtung.spring.data.jpa.filterable.test.TestEnum
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import java.math.BigDecimal
import java.time.*
import java.util.*
internal class ValueResolverTes... | 0 | Kotlin | 0 | 1 | f82180bd74e03016298752872e34aff3e08a4080 | 2,277 | spring-data-jpa-filterable | MIT License |
spoogle-backend/src/main/kotlin/no/nav/helse/spoogle/microsoft/AzureAd.kt | navikt | 636,249,373 | false | {"Kotlin": 93189, "TypeScript": 7882, "CSS": 693, "HTML": 358, "JavaScript": 310, "Dockerfile": 181} | package no.nav.helse.spoogle.microsoft
import no.nav.security.token.support.v2.IssuerConfig
class AzureAD private constructor(private val config: Config) {
internal fun issuer(): String = "AAD"
internal fun issuerConfig(): IssuerConfig =
IssuerConfig(
name = issuer(),
discover... | 2 | Kotlin | 0 | 0 | fe48d3fd8abadd59ad7c13b4f56a363fe2535a5b | 1,702 | helse-spoogle | MIT License |
src/main/kotlin/com/github/brainage04/togglesprint/gui/EntityTracker.kt | brainage04 | 703,531,886 | false | {"Kotlin": 40434, "Java": 12667} | package com.github.brainage04.togglesprint.gui
import com.github.brainage04.togglesprint.ToggleSprintMain
import com.github.brainage04.togglesprint.gui.core.RenderGuiData
import net.minecraft.client.Minecraft
import net.minecraft.entity.EnumCreatureType
object EntityTracker {
private val guiElements get() = Toggl... | 0 | Kotlin | 1 | 1 | fa865fdd8cddbb98ef21ea11dde63eb5d34ce1e5 | 2,384 | ToggleSprint | The Unlicense |
app/src/main/java/com/example/testapp/di/module/ViewModelModule.kt | agesa3 | 499,420,513 | false | {"Kotlin": 12646} | package com.example.testapp.di.module
import com.example.testapp.ui.viewmodel.MainViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module
val viewModelModule = module {
viewModel {
MainViewModel(get(), get())
}
} | 0 | Kotlin | 0 | 1 | bb5519b00ece81317b93d9cc4030d6256a5132fc | 261 | Users | Apache License 2.0 |
src/commonTest/kotlin/io/github/hansanto/kault/auth/approle/payload/GenerateSecretIDPayloadTest.kt | Hansanto | 712,104,593 | false | {"Kotlin": 231989} | package io.github.hansanto.kault.auth.approle.payload
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.shouldBe
class GenerateSecretIDPayloadTest : FunSpec({
test("metadata from empty map") {
val payload = GenerateSecretIDPayload()
payload.metadata(emptyMap())
payload.me... | 2 | Kotlin | 0 | 0 | 2f94d0df208211ddd078e3c65e71e19b08b861dc | 817 | kault | Apache License 2.0 |
src/test/kotlin/no/nav/sokos/prosjektnavn/ApplicationTest.kt | navikt | 509,000,535 | false | null | package no.nav.sokos.prosjektnavn
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.shouldBe
class ApplicationTest : FunSpec ({
test("my first test") {
1 + 1 shouldBe 2
}
test("my second test") {
2 + 2 shouldBe 4
}
test("my third test") {
3 + 3 shouldBe... | 1 | Kotlin | 0 | 0 | abcfa5b7927128df8c502603a74a32d014ac0156 | 333 | sokos-ktor-template | MIT License |
AndroidLint-4.1.0/lint-checks/lintChecker/src/main/java/com/easelint/detector/ParseDetector.kt | Western-parotia | 642,632,046 | false | null | package com.easelint.detector
import com.android.tools.lint.detector.api.*
import com.intellij.psi.PsiMethod
import com.easelint.utils.createWithMj
import org.jetbrains.uast.UCallExpression
import org.jetbrains.uast.UTryExpression
import org.jetbrains.uast.getParentOfType
class ParseDetector : Detector(), SourceCodeS... | 0 | Kotlin | 2 | 14 | a9e3988f1b0d3399a8343bb72fecc14fd71db4fe | 4,637 | EaseLint | MIT License |
AndroidLint-4.1.0/lint-checks/lintChecker/src/main/java/com/easelint/detector/ParseDetector.kt | Western-parotia | 642,632,046 | false | null | package com.easelint.detector
import com.android.tools.lint.detector.api.*
import com.intellij.psi.PsiMethod
import com.easelint.utils.createWithMj
import org.jetbrains.uast.UCallExpression
import org.jetbrains.uast.UTryExpression
import org.jetbrains.uast.getParentOfType
class ParseDetector : Detector(), SourceCodeS... | 0 | Kotlin | 2 | 14 | a9e3988f1b0d3399a8343bb72fecc14fd71db4fe | 4,637 | EaseLint | MIT License |
core/common/src/main/kotlin/com/boswelja/smartwatchextensions/core/FeatureDataExt.kt | boswelja | 103,805,743 | false | {"Kotlin": 496889} | package com.boswelja.smartwatchextensions.core
inline fun <T> FeatureData<T>?.fold(
success: (T) -> Unit,
error: (Throwable) -> Unit,
disabled: () -> Unit,
loading: () -> Unit
) {
when (this) {
is FeatureData.Success -> success(data)
is FeatureData.Disabled -> disabled()
is ... | 11 | Kotlin | 0 | 25 | ec7e9ad4c98e18a9a4b5c07f1d39f6c0b1fbfd65 | 392 | SmartwatchExtensions | Apache License 2.0 |
app/src/main/java/com/github/iielse/imageviewer/demo/business/TestActivity.kt | HelloPeng | 309,860,000 | false | null | package com.github.iielse.imageviewer.demo.business
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.github.iielse.imageviewer.demo.R
import com.github.iielse.imageviewer.demo.utils.toast
import kotlinx.android.synthetic.main.activity_test.*
class TestActivity : AppCompatActivity() ... | 0 | Kotlin | 2 | 1 | c56a3e8b21fc3f71005dd721397bc6d6d1d6383e | 911 | ImageViewer | MIT License |
domain/src/main/java/com/xquare/domain/usecase/schedules/FixSchedulesUseCase.kt | team-xquare | 478,925,648 | false | {"Kotlin": 447887} | package com.xquare.domain.usecase.schedules
import com.xquare.domain.entity.schedules.FixSchedulesEntity
import com.xquare.domain.repository.schedules.SchedulesRepository
import com.xquare.domain.usecase.UseCase
import javax.inject.Inject
class FixSchedulesUseCase @Inject constructor(
private val schedulesReposit... | 16 | Kotlin | 1 | 25 | f9bc5d0bc3ed2957705dc6db53d0139f62827649 | 495 | xquare-android | MIT License |
thimman-backend/src/main/kotlin/yotkaz/thimman/backend/model/Meeting.kt | yotkaz | 56,866,821 | false | null | package yotkaz.thimman.backend.model
import yotkaz.thimman.backend.app.JPA_EMPTY_CONSTRUCTOR
import java.time.LocalDateTime
import java.util.*
import javax.persistence.*
@Entity
data class Meeting(
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
var id: Long? = null,
var subject:... | 0 | Kotlin | 0 | 3 | 743f56b675d24662d80f6a333185f93f1a3c6dce | 934 | thimman | Apache License 2.0 |
domain/src/main/java/com/depromeet/threedays/domain/entity/mate/Mate.kt | depromeet12th | 548,194,728 | false | null | package com.depromeet.threedays.domain.entity.mate
import java.time.LocalDateTime
data class Mate(
val id: Long,
val habitId: Long,
val memberId: Long,
val title: String,
val createAt: LocalDateTime?, // TODO: null로 들어와서 임시 조치
val level: Int,
val reward: Int,
val rewardHistory: List<Re... | 0 | Kotlin | 1 | 15 | 1cc08fcf2b038924ab0fe5feaaff548974f40f4d | 566 | three-days-android | MIT License |
app/src/main/java/com/ar/musicplayer/screens/home/AdaptiveHomeScreen.kt | AjayDhattarwal | 811,499,243 | false | {"Kotlin": 742820} | @file:kotlin.OptIn(ExperimentalFoundationApi::class)
package com.ar.musicplayer.screens.home
import android.app.Activity
import androidx.annotation.OptIn
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androi... | 0 | Kotlin | 0 | 0 | 5a549720e34d93b5cb588856d9d01f1d640fb045 | 2,711 | MusicPlayer | MIT License |
widgets/src/androidMain/kotlin/dev/icerock/moko/widgets/factory/DefaultLinearWidgetViewFactory.kt | MaTriXy | 228,468,295 | true | {"Kotlin": 311344} | /*
* Copyright 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.moko.widgets.factory
import android.util.DisplayMetrics
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import dev.icerock.moko.widgets.LinearWidget
im... | 0 | null | 0 | 0 | 15318995f432351762def5ddc291b9696ac87516 | 3,761 | moko-widgets | Apache License 2.0 |
src/main/kotlin/com/daveme/chocolateCakePHP/Settings.kt | dmeybohm | 95,393,362 | false | {"Kotlin": 366147, "Java": 17401, "PHP": 268, "HTML": 257} | package com.daveme.chocolateCakePHP
import com.daveme.chocolateCakePHP.cake.PluginEntry
import com.intellij.openapi.components.*
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.guessProjectDir
import com.intellij.openapi.vfs.VirtualFile
import java.io.File
import java.lang.ref.WeakRefer... | 15 | Kotlin | 0 | 16 | 5964682e85746d537870d81d1dbe2c531009c9b5 | 7,710 | chocolate-cakephp | MIT License |
src/main/kotlin/com/tuk/oriddle/global/message/StompMessage.kt | Team-Oriddle | 731,663,342 | false | {"Kotlin": 169575} | package com.tuk.oriddle.global.message
interface StompMessage | 0 | Kotlin | 1 | 0 | cbca02a877b748d2ec4c8e872e4852c0248a4d8d | 62 | oriddle-backend | MIT License |
src/main/java/space/impact/impact_compat/common/worldgen/CompatWorldGenSphere.kt | GT-IMPACT | 658,419,880 | false | null | package space.impact.impact_compat.common.worldgen
import net.minecraft.block.Block
import net.minecraft.util.MathHelper
import net.minecraft.world.World
import net.minecraft.world.chunk.IChunkProvider
import space.impact.impact_compat.common.worldgen.WorldGenHelper.replaceableBlocks
import java.util.*
class CompatWo... | 0 | Kotlin | 0 | 0 | 18ab2a6b7a88a76eb90a4edef9a8ce9db207f3c7 | 4,796 | Impact-compat | MIT License |
Kernl.Consumer/src/test/kotlin/associativememorycache/impl/SingleComplexParamPrimitiveReturnTest.kt | mattshoe | 825,957,770 | false | {"Kotlin": 344588, "Shell": 1045} | package associativememorycache.impl
import org.mattshoe.shoebox.kernl.runtime.cache.associativecache.AssociativeCacheKernl
import org.mattshoe.shoebox.kernl.models.ServiceRequest
import kernl.org.mattshoe.shoebox.kernl.associativememorycache.SingleComplexParamPrimitiveReturnKernl
import associativememorycache.Associat... | 10 | Kotlin | 1 | 9 | 9682fcafeb1dccd468443e1265eab55c05757e52 | 1,068 | kernl | Apache License 2.0 |
app/src/main/kotlin/space/reul/ticketmasterchallenge/app/MainActivity.kt | reul | 764,954,876 | false | {"Kotlin": 53026} | package space.reul.ticketmasterchallenge.app
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.fo... | 0 | Kotlin | 0 | 0 | 7ca0c967da83b3704894b19c27dad666cf440936 | 3,287 | tiago-reul-ticketmaster-challenge | The Unlicense |
imageclassifier_test/src/main/java/com/mozhimen/tfloader/imageclassifier/test/MainActivity.kt | mozhimen | 504,380,742 | false | {"Kotlin": 93845} | package com.mozhimen.tfloader.imageclassifier.test
import android.view.View
import com.mozhimen.kotlin.utilk.android.content.startContext
import com.mozhimen.bindk.bases.viewbinding.activity.BaseActivityVB
import com.mozhimen.tfloader.imageclassifier.test.databinding.ActivityMainBinding
class MainActivity : BaseActiv... | 1 | Kotlin | 8 | 2 | 304a9bf6d7eb17f9d9f8b5fc329d78f9bcda08f8 | 554 | ATFLiteLoader | Apache License 2.0 |
src/commonMain/kotlin/com.mfrancza.jwtrevocation/rules/conditions/DateTimeCondition.kt | mfrancza | 585,426,278 | false | null | package com.mfrancza.jwtrevocation.rules.conditions
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonClassDiscriminator
@OptIn(ExperimentalSerializationApi::class)
@Serializable
@JsonClassDiscriminator("operation")
sealed class D... | 1 | Kotlin | 0 | 0 | bae90e8b3abbf9f08071c70be3fd3ef05505e928 | 354 | jwt-revocation-rules | Apache License 2.0 |
backend/src/main/kotlin/com/pwarss/api/UserController.kt | KhvanKonstantin | 139,948,396 | false | {"TypeScript": 43701, "Kotlin": 39875, "HTML": 1680} | // Created by <NAME> on 7/9/18 5:22 PM
package com.pwarss.api
import com.pwarss.model.User
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestControlle... | 21 | TypeScript | 0 | 0 | d3198fca4f955729c4ef7cbd3a3533ef419bb20a | 565 | pwarss | Apache License 2.0 |
settings-core/src/main/java/com/michaelflisar/settings/core/decorator/CardGroupDecorator.kt | MFlisar | 256,263,996 | false | null | package com.michaelflisar.settings.core.decorator
import android.graphics.Canvas
import android.graphics.Rect
import android.util.Log
import android.view.View
import android.view.ViewGroup
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.recyclerview.widget.RecyclerView
import androidx.recycler... | 0 | Kotlin | 0 | 2 | 5fc5264a9b2bfc108aab03e8925244d665c6a9d4 | 15,800 | Settings | Apache License 2.0 |
Hilt/app/src/main/java/com/example/hilt/MainActivity4.kt | fairoozp | 356,848,633 | false | null | package com.example.hilt
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.EditText
import android.widget.ImageView
import android.widget.TextView
import androidx.activity.viewModels
import androidx.core.widget.doOn... | 0 | Kotlin | 0 | 1 | 09bfb87ce91f6ccb6f8b08534b127f77116a5179 | 1,337 | Android_Kotlin_projects | MIT License |
runtime/src/main/java/com/edgeverse/wallet/runtime/multiNetwork/chain/remote/model/ChainRemote.kt | finn-exchange | 512,140,809 | false | null | package com.edgeverse.wallet.runtime.multiNetwork.chain.remote.model
data class ChainRemote(
val chainId: String,
val name: String,
val color: String?,
val assets: List<ChainAssetRemote>,
val nodes: List<ChainNodeRemote>,
val explorers: List<ChainExplorerRemote>?,
val externalApi: ChainExte... | 0 | Kotlin | 1 | 0 | 6cc7a0a4abb773daf3da781b7bd1dda5dbf9b01d | 519 | edgeverse-wallet | Apache License 2.0 |
VehicleUI/src/main/java/com/drivequant/drivekit/vehicle/ui/vehicledetail/common/VehicleCustomImageHelper.kt | DriveQuantPublic | 216,339,559 | false | {"Kotlin": 1646497, "Java": 8753} | package com.drivequant.drivekit.vehicle.ui.vehicledetail.common
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.Matrix
import android.net.Uri
import android.os.Build
import android.os.E... | 0 | Kotlin | 3 | 9 | 5e67fbaf3a815e59cff3138bfbad56db04648044 | 7,702 | drivekit-ui-android | Apache License 2.0 |
TierWhere/app/src/main/java/site/yoonsang/tierwhere/src/main/search/favorite/FavoriteRetrofitInterface.kt | yoonsangkwak | 357,787,150 | false | null | package site.yoonsang.tierwhere.src.main.search.favorite
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path
import site.yoonsang.tierwhere.src.main.search.favorite.model.FavoriteSummoner
interface FavoriteRetrofitInterface {
@GET("/lol/summoner/v4/summoners/by-name/{summonerName}")
fu... | 0 | Kotlin | 1 | 0 | 2e7cf8827c4dc3dbede448751ce0844a6c29b1f0 | 417 | TierWhere | MIT License |
kotlin/src/main/kotlin/AoC_Day17.kt | sviams | 115,921,582 | false | null | object AoC_Day17 {
fun solvePt1(input: Int) : Int {
val endState = generateSequence(Pair(0,arrayOf(0))) {
val newPos = (it.first + input) % it.second.size + 1
Pair(newPos, (it.second.sliceArray(0..(newPos-1)) + it.second.size + it.second.sliceArray((newPos) until it.second.size)))
... | 0 | Kotlin | 0 | 0 | 19a665bb469279b1e7138032a183937993021e36 | 746 | aoc17 | MIT License |
src/main/kotlin/tokyo/aieuo/mineflow/flowItem/action/player/AddXpProgress.kt | aieuo | 364,472,156 | false | null | package tokyo.aieuo.mineflow.flowItem.action.player
import tokyo.aieuo.mineflow.flowItem.FlowItem
import tokyo.aieuo.mineflow.flowItem.FlowItemExecutor
import tokyo.aieuo.mineflow.flowItem.FlowItemIds
import tokyo.aieuo.mineflow.flowItem.base.PlayerFlowItem
import tokyo.aieuo.mineflow.formAPI.element.Element
import to... | 0 | Kotlin | 0 | 0 | 9c2ef7133d84c5d9b6f4336463d9e1d56442924a | 2,657 | Mineflow-Kotlin | MIT License |
app/src/main/java/soy/gabimoreno/movies/di/DataModule.kt | soygabimoreno | 238,377,569 | false | {"Kotlin": 61734} | package soy.gabimoreno.movies.di
import dagger.Module
import dagger.Provides
import soy.gabimoreno.movies.data.PermissionChecker
import soy.gabimoreno.movies.data.repository.MoviesRepository
import soy.gabimoreno.movies.data.repository.RegionRepository
import soy.gabimoreno.movies.data.source.LocalDataSource
import so... | 0 | Kotlin | 0 | 0 | ea1621da6d6840802770e2cef426019bd572f362 | 1,101 | Movies | Apache License 2.0 |
src/main/kotlin/com/github/oduig/kotlin/springboot/starter/config/properties/StarterConfigProperties.kt | Oduig | 170,754,806 | false | null | package com.github.oduig.kotlin.springboot.starter.config.properties
import org.springframework.boot.context.properties.ConfigurationProperties
@ConfigurationProperties(prefix = "starter")
data class StarterConfigProperties(
// These need to be nullable so Spring Boot can load them
var slothDelayMs: Long? = n... | 0 | Kotlin | 0 | 1 | b1c23a31089856e461daed373572475e337454ea | 465 | kotlin-springboot-starter | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.