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/com/wavesplatform/wallet/v2/ui/home/wallet/leasing/start/confirmation/ConfirmationStartLeasingPresenter.kt | wavesplatform | 98,419,999 | false | null | /*
* Created by <NAME> on 1/4/2019
* Copyright © 2019 Waves Platform. All rights reserved.
*/
package com.wavesplatform.wallet.v2.ui.home.wallet.leasing.start.confirmation
import moxy.InjectViewState
import com.wavesplatform.sdk.utils.MoneyUtil
import com.wavesplatform.sdk.model.request.node.LeaseTransaction
impor... | 2 | null | 52 | 55 | 5f4106576dc4fe377a355d045f638e7469cd6abe | 2,113 | WavesWallet-android | MIT License |
app/src/main/kotlin/com/contentful/tea/kotlin/settings/SettingsCredentialsFragment.kt | TrendingTechnology | 145,427,427 | true | {"Kotlin": 111553, "Shell": 2239} | package com.contentful.tea.kotlin.settings
import android.os.Bundle
import android.view.View
import androidx.annotation.StringRes
import androidx.appcompat.widget.Toolbar
import androidx.navigation.fragment.NavHostFragment
import androidx.preference.EditTextPreference
import androidx.preference.Preference
import andro... | 0 | Kotlin | 0 | 0 | bb01032dc97366fe1b6abd44ff7fa05c44b830b0 | 5,743 | the-example-app.kotlin | Apache License 2.0 |
src/main/kotlin/com/deflatedpickle/faosdance/settings/general/RotationCategory.kt | fossabot | 187,275,782 | true | {"Kotlin": 66181, "Java": 2981, "Ruby": 2731, "PowerShell": 142, "Batchfile": 37} | package com.deflatedpickle.faosdance.settings.general
import com.deflatedpickle.faosdance.GlobalValues
import com.deflatedpickle.faosdance.settings.SettingsDialog
import com.deflatedpickle.faosdance.util.Lang
import java.awt.Frame
import java.awt.GridBagConstraints
import java.awt.GridBagLayout
import javax.swing.*
im... | 0 | Kotlin | 0 | 0 | ec6851bcec3b22d00b2e0be1266d48a0fc667050 | 1,545 | FAOSDance | MIT License |
src/test/kotlin/math/Median.kt | TheAlgorithms | 177,334,737 | false | null | package math
import math.median
import org.junit.Test
class Median {
@Test
fun testMedianWithEvenSize() {
val array = intArrayOf(1, 2, 3, 4)
assert(median(array) == 2.5)
}
@Test
fun testMedianWithOddSize() {
val array = intArrayOf(1, 2, 3)
assert(median(array) == 2... | 57 | null | 293 | 977 | e57a8888dec4454d39414082bbe6a672a9d27ad1 | 475 | Kotlin | MIT License |
app/src/main/java/com/szabolcsarvai/petfinder/feature/details/DetailsScreen.kt | szabolcsarvai | 763,717,219 | false | {"Kotlin": 47421} | package com.szabolcsarvai.petfinder.feature.details
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
impo... | 0 | Kotlin | 0 | 1 | 8524597e48fc30331d44531c9009fe183da5d813 | 4,486 | PetFinder | Apache License 2.0 |
app/src/main/java/com/szabolcsarvai/petfinder/feature/details/DetailsScreen.kt | szabolcsarvai | 763,717,219 | false | {"Kotlin": 47421} | package com.szabolcsarvai.petfinder.feature.details
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
impo... | 0 | Kotlin | 0 | 1 | 8524597e48fc30331d44531c9009fe183da5d813 | 4,486 | PetFinder | Apache License 2.0 |
app/src/main/java/br/com/angelorobson/templatemvi/view/utils/IdlingResource.kt | angelorobsonmelo | 298,692,532 | true | {"Kotlin": 80517} | package br.com.angelorobson.templatemvi.view.utils
interface IdlingResource {
fun increment()
fun decrement()
} | 0 | Kotlin | 0 | 0 | a5ee90e2a769afa84ce62fbf8a09e2a2a103eeeb | 122 | jobs | MIT License |
app/src/main/java/io/liarr/viewpagerplayerdemo/VideoFragment.kt | LiarrDev | 475,822,369 | false | null | package io.liarr.viewpagerplayerdemo
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.viewpager2.adapter.FragmentStateAdapter
import io.liarr.viewpagerplayerdemo.databinding.FragmentVideoBinding
cla... | 0 | Kotlin | 0 | 0 | 8a63ccf45adab01e987c09c9f49c9c5b8f80097c | 1,262 | ViewPagerPlayerDemo | Apache License 2.0 |
contracts/src/main/kotlin/jp/datachain/corda/ibc/ics2/ClientType.kt | mollaali98 | 372,531,901 | true | {"Kotlin": 267709, "Rust": 29094, "Go": 13374, "Makefile": 3258, "Dockerfile": 1081, "Shell": 890} | package jp.datachain.corda.ibc.ics2
import net.corda.core.serialization.CordaSerializable
@CordaSerializable
enum class ClientType {
CordaClient,
FabricClient,
SoloMachineClient,
TendermintClient,
LoopbackClient,
} | 0 | null | 0 | 0 | e715aecc99a380d40728a682f0489a10ef1b8904 | 236 | corda-ibc | Apache License 2.0 |
data/datastore/src/main/java/com/lgdevs/mynextbook/datastore/DataStore.kt | luangs7 | 493,071,853 | false | null | package com.lgdevs.mynextbook.datastore
import android.content.Context
import androidx.datastore.preferences.preferencesDataStore
const val DATASTORE_SETTINGS = "mynextbook_settings"
val Context.preferences by preferencesDataStore(name = DATASTORE_SETTINGS)
| 0 | Kotlin | 0 | 2 | 09b7a3f12d8ffd66d2addb6d32e5f703b5698ce5 | 263 | MyNextBook | MIT License |
app/src/main/java/com/luismunyoz/catalogue/domain/interactor/base/UseCaseWithParameter.kt | luismunyoz | 129,391,557 | false | null |
package com.luismunyoz.catalogue.domain.interactor.base
import io.reactivex.Flowable
import io.reactivex.Single
interface UseCaseWithParameter<P, R> {
fun execute(parameter: P): Flowable<R>
} | 0 | Kotlin | 1 | 0 | 8114e8359717aba467a71c2c5ddb70b51cbe5666 | 199 | catalogue | Apache License 2.0 |
app/src/main/java/com/thierry/android_surface_view_with_vulkan/Application.kt | MagicPoulp | 313,838,683 | false | {"C++": 1985163, "C": 258863, "CMake": 7904, "Kotlin": 5895, "Python": 5194, "Shell": 1683, "GLSL": 628} | package com.thierry.android_surface_view_with_vulkan
import android.app.Application
import androidx.camera.camera2.Camera2Config
import androidx.camera.core.CameraXConfig
public class MyCameraXApplication : Application(), CameraXConfig.Provider {
override fun getCameraXConfig(): CameraXConfig {
return Ca... | 0 | C++ | 0 | 5 | dbd523ae4a4dd72a500af7ae708b31dde0eeb53e | 356 | display_vulkan_from_kotlin_or_swift | Apache License 2.0 |
src/en/mangaowlto/src/eu/kanade/tachiyomi/extension/en/mangaowlto/MangaOwlToDto.kt | komikku-app | 720,497,299 | false | {"Kotlin": 6775539, "JavaScript": 2160} | package eu.kanade.tachiyomi.extension.en.mangaowlto
import eu.kanade.tachiyomi.source.model.MangasPage
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serial... | 22 | Kotlin | 8 | 97 | 7fc1d11ee314376fe0daa87755a7590a03bc11c0 | 3,235 | komikku-extensions | Apache License 2.0 |
src/main/kotlin/day3/Part2.kt | Pinaki93 | 573,867,953 | false | {"Kotlin": 4415, "Assembly": 10} | package day3
import util.readFileFromResources
private fun findCommonCharacter(s1: String, s2: String, s3: String): Char {
val firstGroup = s1.toCharArray().toSortedSet()
val secondGroup = s2.toCharArray().toSortedSet()
val thirdGroup = s3.toCharArray().toSortedSet()
return firstGroup.intersect(second... | 0 | Kotlin | 0 | 0 | c1518c3adfb1aee49838fe439e1913f4f6f825dd | 996 | advent-of-code-2022 | MIT License |
widgets/src/commonMain/kotlin/dev/icerock/moko/widgets/core/Widget.kt | ATchernov | 223,135,697 | true | {"Kotlin": 225543, "Swift": 103744, "Ruby": 1136} | /*
* Copyright 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.moko.widgets.core
abstract class Widget {
abstract fun buildView(viewFactoryContext: ViewFactoryContext): View
interface Style
}
| 0 | null | 0 | 0 | 560af260a9813724fd8e53b5c7ea0691e3b5fb46 | 265 | moko-widgets | Apache License 2.0 |
app/src/main/java/com/mapmyindia/sdk/demo/kotlin/activity/CameraActivity.kt | MapmyIndia | 458,154,500 | true | {"INI": 1, "Gradle": 4, "Shell": 1, "Markdown": 97, "Batchfile": 1, "Ignore List": 2, "YAML": 1, "Java Properties": 1, "Proguard": 1, "XML": 102, "JSON": 1, "Java": 114, "Kotlin": 108} | package com.mapmyindia.sdk.demo.kotlin.activity
import android.os.Bundle
import android.view.View
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.mapmyindia.sdk.demo.R
import com.mapmyindia.sdk.maps.MapView
import com.mapmyindia.sdk.maps.MapmyIndiaMap
import com.mapmyindia.sd... | 0 | Java | 3 | 3 | 0c995ebcedb84b250733fc43d61bfb3d89479dd6 | 3,747 | mapmyindia-maps-vectorSDK-android | BSD 1-Clause License |
test.kt | uover822 | 796,079,635 | false | {"Shell": 3, "INI": 1, "Java": 15, "Text": 12, "XML": 1, "JSON": 2, "ASL": 2, "Ignore List": 1, "SQL": 1, "Kotlin": 1, "Limbo": 1, "Markdown": 1, "Dockerfile": 1, "Makefile": 1} | import io.javalin.http.sse.SseClient
import java.util.concurrent.ConcurrentHashMap
import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit
object ClientEventService {
init {
Executors.newSingleThreadScheduledExecutor().scheduleAtFixedRate({ broadcast("heartbeat") }, /*delay=*/0, /*peri... | 0 | Java | 0 | 0 | 4db504608ee84dce07046696ab99e93e1ab1a2cf | 639 | context | MIT License |
app/src/test/java/com/wegdut/wegdut/ListConverterTest.kt | laishere | 301,439,203 | false | null | package com.wegdut.wegdut
import com.google.gson.reflect.TypeToken
import com.wegdut.wegdut.room.ListConverter
import org.junit.Assert
import org.junit.Test
class ListConverterTest {
private val converter = object : ListConverter<Int>() {
override val typeToken: TypeToken<List<Int>> = object : TypeToken<L... | 0 | Kotlin | 2 | 6 | b62720ce8fbe79817b9c05e6bb1eeff09f53e804 | 597 | wegdut-android | MIT License |
app/src/main/java/com/udacity/asteroidradar/ui/AsteroidClickListener.kt | justmobiledev | 346,631,317 | false | null | package com.udacity.asteroidradar.ui
import com.udacity.asteroidradar.domain.Asteroid
/**
* Click listener for Asteroid card.
*
*/
class AsteroidClickListener(val block: (Asteroid) -> Unit) {
/**
* Called when an Asteroid card is clicked
*
* @param asteroid: the obj associated with the card
... | 0 | Kotlin | 0 | 1 | e30887e23df048eba8d4fc98ea7b3a6f5e009785 | 379 | android-kotlin-asteroid-radar | MIT License |
app/src/main/java/io/marlon/cleanarchitecture/domain/datasource/RepoDataSource.kt | marloncarvalho | 110,142,579 | false | null | package io.marlon.cleanarchitecture.domain.datasource
import io.marlon.cleanarchitecture.domain.model.Repo
import io.reactivex.Observable
interface RepoDataSource {
fun getRepos(username: String): Observable<List<Repo>>
fun save(list: List<Repo>)
} | 0 | Kotlin | 0 | 0 | 613153498ffb28813652526a5a829ed64f71a1fa | 258 | android-clean-architecture | MIT License |
app/src/main/java/app/eluvio/wallet/navigation/NavigationEvent.kt | eluv-io | 719,801,077 | false | {"Kotlin": 414073, "Java": 22753} | package app.eluvio.wallet.navigation
import com.ramcosta.composedestinations.spec.Direction
sealed interface NavigationEvent {
object GoBack : NavigationEvent
data class SetRoot(val direction: Direction) : NavigationEvent
data class Push(val direction: Direction) : NavigationEvent
data class Replace(v... | 1 | Kotlin | 1 | 0 | 76b0361653ffa3146466f359389d83f57174fef9 | 540 | elv-wallet-android | MIT License |
core/data/src/main/java/org/the_chance/honeymart/data/source/remote/mapper/MarketDetails.kt | TheChance101 | 647,400,117 | false | {"Kotlin": 1218713} | package org.the_chance.honeymart.data.source.remote.mapper
import org.the_chance.honeymart.data.source.remote.models.MarketDetailsDto
import org.the_chance.honeymart.domain.model.MarketDetails
fun MarketDetailsDto.toMarketDetails() = MarketDetails(
marketId = marketId ?: 0L,
marketName = marketName ?: "",
... | 3 | Kotlin | 7 | 21 | 50200e0ec0802cdadc282b09074a19c96df3220c | 632 | Honey-Mart-Android-Client | Apache License 2.0 |
app/src/main/java/com/spitaliere/marvelcharacters/presentation/ui/splashscreen/SplashScreenModule.kt | rafaspita | 219,216,654 | false | null | package com.spitaliere.marvelcharacters.presentation.ui.splashscreen
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module
/**
* Created by <NAME> on 10/11/2019.
**/
object SplashScreenModule{
fun getModule() = module {
viewModel { SplashScreenViewModel() }
}
} | 0 | Kotlin | 0 | 3 | 3c033f3e759e0840bfb9a9143d93d4610503018c | 305 | Marvel_Characters_App | Apache License 2.0 |
src/main/kotlin/org/hildan/minecraft/mining/optimizer/ore/MathHelper.kt | joffrey-bion | 48,772,914 | false | {"Kotlin": 73321} | package org.hildan.minecraft.mining.optimizer.ore
internal object MathHelper {
private const val N_STEPS = 65536
private val SIN_CACHE = (0 until N_STEPS).map { kotlin.math.sin(it * Math.PI * 2 / N_STEPS) }
fun sin(f: Double) = SIN_CACHE[(f * 10430.378).toInt() and 0xffff]
fun cos(f: Double) = SIN_... | 2 | Kotlin | 0 | 0 | fba62c181d2cb75f266e630ddc0690d958f3a443 | 478 | mc-mining-optimizer | MIT License |
numbers-fullstack-ktor/src/commonMain/kotlin/com/example/Model.kt | rjaros | 120,836,416 | false | {"Kotlin": 598816, "JavaScript": 48811, "HTML": 16559, "CSS": 5251, "Procfile": 3775, "Handlebars": 402} | package com.example
import kotlinx.serialization.Serializable
@Serializable
enum class Language(val lang: String) {
ENGLISH("English"),
GERMAN("German"),
RUSSIAN("Russian"),
POLISH("Polish"),
CZECH("Czech")
}
| 1 | Kotlin | 39 | 170 | e7c17726e359528cc91698232e92891d1eb71227 | 231 | kvision-examples | MIT License |
ktor-server/ktor-server-core/jvm/src/io/ktor/sessions/SessionSerializer.kt | KaraShok | 190,507,625 | true | {"Kotlin": 2763826, "Lua": 280, "HTML": 165} | /*
* Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.sessions
/**
* Serializes session from and to [String]
*/
interface SessionSerializer {
/**
* Serializes a complex arbitrary object into a [String].
*/
fun... | 0 | Kotlin | 0 | 1 | e0525a274d2c9958778fb649df39d59c44341b2b | 475 | ktor | Apache License 2.0 |
src/main/kotlin/com/dymesolutions/linkedevents/dao/Places.kt | dymesolutions | 155,518,740 | false | null | package com.dymesolutions.linkedevents.dao
import com.dymesolutions.common.extensions.PostGIS.point
import com.dymesolutions.linkedevents.models.MultiLangValue
import com.dymesolutions.linkedevents.models.Place
import com.dymesolutions.linkedevents.models.PlaceSave
import com.dymesolutions.linkedevents.models.UsageRep... | 0 | Kotlin | 0 | 1 | f43b33d2c24bdbbc5375106b61bb9a2d2f9fa3aa | 11,302 | satakunta-events-api | MIT License |
app/src/main/java/me/banes/chris/tivi/calls/TrendingCall.kt | arunkumar9t2 | 106,272,624 | true | {"Kotlin": 131455} | /*
* Copyright 2017 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... | 0 | Kotlin | 0 | 0 | 21ddaede0279f547e945ef6d5743eacc72d4a70c | 2,759 | tivi | Apache License 2.0 |
core/preferences/src/commonMain/kotlin/ly/david/musicsearch/core/preferences/AppPreferences.kt | lydavid | 458,021,427 | false | null | package ly.david.musicsearch.core.preferences
import kotlinx.coroutines.flow.Flow
import ly.david.musicsearch.core.models.history.HistorySortOption
interface AppPreferences {
enum class Theme {
LIGHT,
DARK,
SYSTEM,
}
val theme: Flow<Theme>
fun setTheme(theme: Theme)
val ... | 115 | null | 0 | 6 | 4f49e75742e4c2135161e98df9db15b418c6c3fe | 896 | MusicSearch | Apache License 2.0 |
domain/src/main/kotlin/no/nav/su/se/bakover/domain/vedtak/VedtakVisitor.kt | navikt | 227,366,088 | false | null | package no.nav.su.se.bakover.domain.vedtak
import no.nav.su.se.bakover.domain.visitor.Visitor
interface VedtakVisitor : Visitor {
fun visit(vedtak: Vedtak.EndringIYtelse.InnvilgetSøknadsbehandling)
fun visit(vedtak: Vedtak.EndringIYtelse.InnvilgetRevurdering)
fun visit(vedtak: Vedtak.EndringIYtelse.Opphør... | 6 | Kotlin | 0 | 0 | 2ed4ed4aa002a19d14ce7dd37c27271a227668a8 | 612 | su-se-bakover | MIT License |
services/hanke-service/src/main/kotlin/fi/hel/haitaton/hanke/Constants.kt | City-of-Helsinki | 300,534,352 | false | null | package fi.hel.haitaton.hanke
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import java.time.ZoneId
import java.time.ZonedDateTime
import java.time.format.DateTimeFormatter
const val... | 6 | Kotlin | 5 | 2 | 970a4d9fb82acb48541e5fac9a357dd28cf39acc | 1,096 | haitaton-backend | MIT License |
app/src/main/java/com/gw/mvvm/wan/data/model/TodoPriorityInfo.kt | play0451 | 347,845,609 | false | null | package com.gw.mvvm.wan.data.model
/**
* To do优先级信息
* @author play0451
*/
data class TodoPriorityInfo(var priority:Int,var name:String,var colorRes:Int) | 0 | Kotlin | 0 | 0 | bbf15ccf5eddb470f3841a97d79c76a867c213fd | 156 | wan-android-jetpack-mvvm-practice | MIT License |
app/src/main/java/com/andreadev/roomsample/ui/splash/SplashFragment.kt | battagliandrea | 112,673,607 | false | null | package com.andreadev.roomsample.ui.splash
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.andreadev.roomsample.App
import com.andreadev.roomsample.R
import com.andreadev.roomsample.di.components.DaggerPresenterComponent
import com.andreadev... | 0 | Kotlin | 0 | 0 | 6e2ab03813ff80ab3f6b2cb7fbaaafb86289b582 | 2,475 | RoomSample | Apache License 2.0 |
src/jsMain/kotlin/org/openqa/selenium/OutputType.kt | TarCV | 358,762,107 | true | {"Kotlin": 998044, "Java": 322706, "HTML": 46587, "XSLT": 7418} | package org.openqa.selenium
actual interface OutputType<T> {
}
| 0 | Kotlin | 0 | 0 | c86103748bdf214adb8a027492d21765059d3629 | 64 | selenide.kt-js | MIT License |
app/src/main/java/com/igor/carrefourchallenge/data/models/UserResponse.kt | igorpk10 | 691,807,742 | false | {"Kotlin": 60981} | package com.igor.carrefourchallenge.data.models
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Parcelize
data class UserResponse(
@SerializedName("login") var login: String,
@SerializedName("id") var id: Int,
@SerializedName("node_id") va... | 0 | Kotlin | 0 | 0 | fe7f55cd11a96e378a13f06005b1f29124248d63 | 1,988 | carrefour_challenge | Apache License 2.0 |
Code/app/src/main/java/com/istudio/solid_principles/principles/open_closed/OpenClosedDemo.kt | devrath | 737,474,684 | false | {"Kotlin": 27173} | package com.istudio.solid_principles.principles.open_closed
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compos... | 0 | Kotlin | 0 | 1 | 113eb902edc14210ad22fd0520903eb287368858 | 885 | SOLID-Principles | Apache License 2.0 |
app/src/main/java/ru/tanexc/tree/presentation/child/view_model/ChildScreenViewModel.kt | Tanexc | 659,180,976 | false | null | package ru.tanexc.tree.presentation.child.view_model
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
impor... | 0 | Kotlin | 0 | 2 | 8d30280910e4feb937433e1902fa47ecbdf412b2 | 4,024 | TreeTask | Apache License 2.0 |
adoptium-updater-parent/adoptium-api-v3-updater/src/main/kotlin/net/adoptium/api/v3/routes/UpdateTrigger.kt | adoptium | 349,432,712 | false | null | package net.adoptium.api.v3.routes
import net.adoptium.api.v3.Updater
import javax.annotation.security.RolesAllowed
import javax.inject.Inject
import javax.ws.rs.GET
import javax.ws.rs.Path
import javax.ws.rs.PathParam
import javax.ws.rs.Produces
import javax.ws.rs.core.MediaType
import javax.ws.rs.core.Response
@Pat... | 19 | null | 17 | 9 | ddb39b5f7a71236694fc9df44e1bf3a888ba1fbc | 1,169 | api.adoptium.net | Apache License 2.0 |
app/src/main/java/com/smrahmadi/materialnote/view/note/NoteActivity.kt | mrzahmadi | 199,874,561 | false | null | package com.smrahmadi.materialnote.view.note
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.ViewModelProviders
import com.smrahmadi.materialnote.App.Companion.NOTE_KEY
import com.smrahmadi.materialnote.R
import co... | 0 | Kotlin | 0 | 0 | 8aa05a6a4dc0ae8b8bc045310e655d780f76d196 | 3,361 | MaterialNote | Apache License 2.0 |
app/src/main/java/net/toughcoder/aeolus/data/location/LocationRepository.kt | alexhilton | 808,677,621 | false | {"Kotlin": 217207} | package net.toughcoder.aeolus.data.location
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.firstOrNull
import kotlinx.corouti... | 0 | Kotlin | 0 | 0 | bd688471d71c1cc0c63f2fad14f1ff670b45d088 | 7,520 | Aeolus | MIT License |
app/src/main/java/com/example/note_chad/roomdb/NotesDAO.kt | arsh-kum04 | 802,502,406 | false | {"Kotlin": 20863} | package com.example.note_chad.roomdb
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update
@Dao
interface NotesDAO {
@Insert
suspend fun insert(note: NotesEntity)
@Update
suspend fun ... | 0 | Kotlin | 0 | 0 | beb92290a3c99968b496b52082cc21aecf159c98 | 617 | NOTE-CHAD | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/CoffeeBeans.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 | 4,002 | icons | MIT License |
utbot-framework/src/main/kotlin/org/utbot/taint/TaintMarkRegistry.kt | UnitTestBot | 480,810,501 | false | null | package org.utbot.taint
import com.google.common.collect.BiMap
import com.google.common.collect.HashBiMap
import org.utbot.taint.model.TaintMark
/**
* Conversion between the taint mark name and 64-bit taint vector (some power of 2).
* Can contain a maximum of 64 different marks.
*/
class TaintMarkRegistry {
f... | 397 | Kotlin | 32 | 91 | f9c95348acb59c1b4fc212ecb36e6b2968e9ac5a | 816 | UTBotJava | Apache License 2.0 |
src/main/kotlin/ui/settings/reducer/ChangeTemplateReducer.kt | gmatyszczak | 171,290,380 | false | null | package ui.settings.reducer
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.MutableStateFlow
import ui.settings.SettingsEffect
import ui.settings.SettingsState
import javax.inject.Inject
interface ChangeTemplateReducer {
operator fun invoke... | 5 | Kotlin | 27 | 130 | 1fcfbb0bf39d6f1dbe3b69016c39fb3d79214e7e | 822 | screen-generator-plugin | Apache License 2.0 |
core/src/ru/icarumbas/bagel/view/ui/actors/RegularBar.kt | Rami-Majdoub | 229,632,097 | false | {"Kotlin": 167745, "C++": 1658, "GLSL": 1323, "Java": 1271} | package ru.icarumbas.bagel.view.ui.actors
import com.badlogic.gdx.scenes.scene2d.Actor
open class RegularBar(
private val barBackGround: Actor,
private val bar: Actor,
private val barForeground: Actor
) : Actor(){
override fun setPosition(x: Float, y: Float){
bar.setPosition(x ... | 0 | null | 1 | 0 | 71b24a8e2f70669679250719c24d7e8bedd5de28 | 872 | bagel | Apache License 2.0 |
DiceRoller/src/main/java/com/example/diceroller/MainActivity.kt | rachellimaa | 305,442,013 | false | {"Kotlin": 7704} | package com.example.diceroller
import android.os.Bundle
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import kotlin.random.Random
class MainActivity : AppCompatActivity() {
lateinit var diceImage: ImageView
lateinit var rollButton: TextView
... | 0 | Kotlin | 0 | 0 | 2d21411c33c1afc9df3a15bfa8196f91670d33a4 | 1,196 | AndroidSamples | MIT License |
presentation/src/androidTest/kotlin/com/hernandazevedo/moviedb/fake/datasource/FakeMovieDataSource.kt | hernandazevedo | 156,968,020 | false | null | package com.hernandazevedo.moviedb.fake.datasource
import com.hernandazevedo.moviedb.Movie
import com.hernandazevedo.moviedb.data.api.remote.RemoteMovie
import com.hernandazevedo.moviedb.data.api.remote.RemoteMovieDetail
import com.hernandazevedo.moviedb.data.api.remote.RemoteMovieSearch
import com.hernandazevedo.movi... | 1 | Kotlin | 5 | 5 | 42ebf06c7a113c35cb009bab1ca8cb0719dddea1 | 2,581 | moviedb | MIT License |
src/main/kotlin/cn/rtast/fancybot/db/BlackListTable.kt | RTAkland | 848,208,941 | false | {"Kotlin": 299152} | /*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/10/11
*/
package cn.rtast.fancybot.db
import org.jetbrains.exposed.sql.Table
object BlackListTable : Table("blacklist") {
val id = integer("id").autoIncrement()
val groupId = long("group_id")
val operator = long("operator")
val times... | 0 | Kotlin | 0 | 1 | ac96431552da338c2a74f77e2654c14da8204085 | 494 | FancyBot | Apache License 2.0 |
netApi/src/main/java/com/dyn/net/api/INetworkRequestInfo.kt | dynsxyc | 420,926,305 | false | {"Kotlin": 727483, "Java": 425888, "JavaScript": 17765, "HTML": 9209, "CSS": 2719, "AIDL": 961} | package com.dyn.net.api
interface INetworkRequestInfo {
fun getRequestHeaderMap():MutableMap<String,String>
fun isDebug():Boolean
} | 0 | Kotlin | 0 | 0 | 881f371dc87830d2c523ee6b70fc44b1db205165 | 140 | AndroidCommonProject | Apache License 2.0 |
app/src/main/java/com/nadafeteih/bookstore/data/repository/BookRepository.kt | NadaFeteiha | 590,720,352 | false | {"Kotlin": 70843} | package com.nadafeteih.bookstore.data.repository
import com.nadafeteih.bookstore.entity.Book
import kotlinx.coroutines.flow.Flow
interface BookRepository {
suspend fun getNewBooks(): List<Book>
suspend fun searchBook(bookTitle: String): List<Book>
suspend fun getBookDetails(bookId: String): Book
... | 1 | Kotlin | 2 | 7 | 3758e5543d5053271777c073ecbcec5636c92934 | 484 | BookStore | Apache License 2.0 |
src/main/java/tarehart/rlbot/math/Ray.kt | Curtis-D | 159,648,578 | true | {"Kotlin": 484592, "Python": 31311, "Batchfile": 412} | package tarehart.rlbot.math
import tarehart.rlbot.math.vector.Vector3
open class Ray(val position: Vector3, direction: Vector3) {
val direction = direction.normaliseCopy()
}
| 0 | Kotlin | 0 | 0 | f015432f278ec122a1131b3e357926586c61f131 | 180 | ReliefBot | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsactivitiesmanagementapi/entity/AllocationEntityListener.kt | ministryofjustice | 533,838,017 | false | null | package uk.gov.justice.digital.hmpps.hmppsactivitiesmanagementapi.entity
import jakarta.persistence.PostPersist
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component
import uk.gov.justice.digital.hmpps.hmppsa... | 2 | Kotlin | 0 | 1 | b69e4aee7a632f614ec8edb5a591503dc90a1909 | 1,012 | hmpps-activities-management-api | MIT License |
parsnip/src/test/kotlin/edu/jhuapl/data/parsnip/datum/compute/TemplateTest.kt | aplpolaris | 561,889,726 | false | {"Kotlin": 418341, "Java": 22829, "Python": 7138} | package edu.jhuapl.data.parsnip.datum.compute
/*-
* #%L
* ******************************* UNCLASSIFIED *******************************
* TemplateTest.kt
* edu.jhuapl.data:parsnip
* %%
* Copyright (C) 2019 - 2022 Johns Hopkins University Applied Physics Laboratory
* %%
* Licensed under the Apache License, Versi... | 6 | Kotlin | 0 | 2 | eaebd0bad012bbb5ee981f63960d47ec4db5733c | 2,252 | parsnip | Apache License 2.0 |
pluginjar-plugin/src/main/java/kr/junhyung/pluginjar/plugin/PluginJarPlugin.kt | vjh0107 | 849,634,692 | false | {"Kotlin": 23597, "Java": 294} | package kr.junhyung.pluginjar.plugin
import kr.junhyung.pluginjar.core.PluginMainClassResolver
import kr.junhyung.pluginjar.core.PluginMeta
import kr.junhyung.pluginjar.core.PluginMetaSerializer
import kr.junhyung.pluginjar.plugin.service.PluginMetaService
import kr.junhyung.pluginjar.plugin.service.SerializedPluginMe... | 0 | Kotlin | 0 | 8 | 8f2d24218c1aa8db071c4fa2c8609bb703c7808c | 3,668 | plugin-jar | Apache License 2.0 |
app/src/test/java/dev/maxsiomin/prodhse/feature/auth/domain/use_case/validation/ValidateUsernameForSignupUseCaseTest.kt | MaxSiominDev | 782,187,914 | false | {"Kotlin": 305342} | package dev.maxsiomin.prodhse.feature.auth.domain.use_case.validation
import dev.maxsiomin.common.domain.resource.Resource
import org.junit.Test
class ValidateUsernameForSignupUseCaseTest {
private val validator = ValidateUsernameForSignupUseCase()
@Test
fun `too short username fails`() {
valida... | 0 | Kotlin | 0 | 1 | 71b1b58127cc2fef1ecdd688c8d3ee43fc7df4ad | 565 | LifestyleHUB | MIT License |
android/src/main/java/com/jimmydaddy/imagemarker/base/MarkImageOptions.kt | JimmyDaddy | 83,907,794 | false | null | package com.jimmydaddy.imagemarker.base
import com.facebook.react.bridge.Promise
import com.facebook.react.bridge.ReadableMap
class MarkImageOptions(options: ReadableMap) : Options(options) {
@JvmField
var watermarkImage: ImageOptions
@JvmField
var x: Int
@JvmField
var y: Int
@JvmField
var position... | 6 | TypeScript | 83 | 242 | e2a546e6e6a997c6ab9bd613c6515d23643f9603 | 1,323 | react-native-image-marker | MIT License |
src/main/kotlin/com/github/aivancioglo/resttest/logger/Logger.kt | aivancioglo | 106,554,422 | false | null | package com.github.aivancioglo.resttest.logger
import com.github.aivancioglo.resttest.logger.LogType.*
import io.restassured.internal.RequestSpecificationImpl
import io.restassured.response.Response
class Logger() {
private var requestLogger: RequestLogger? = null
private var responseLogger: ResponseLogger? =... | 0 | Kotlin | 1 | 7 | 86cc428f5a4e81ea2276d192c189213e4b0fa552 | 1,422 | RestTest | Apache License 2.0 |
core/src/main/kotlin/com/muedsa/snapshot/paint/decoration/Decoration.kt | muedsa | 736,941,747 | false | {"Kotlin": 600787} | package com.muedsa.snapshot.paint.decoration
import com.muedsa.geometry.EdgeInsets
import org.jetbrains.skia.Path
import org.jetbrains.skia.Rect
abstract class Decoration {
open val padding: EdgeInsets = EdgeInsets.ZERO
open val isComplex: Boolean = false
abstract fun createBoxPainter(): BoxPainter
... | 1 | Kotlin | 0 | 1 | fc6ba1d98ad6f7e3aaa7b7e1eb6a9eb9e570f478 | 464 | snapshot | MIT License |
app/src/main/java/com/example/mywechat/adapter/MsgAdapter.kt | HenryLEB | 325,024,821 | false | null | package com.example.secondexperiment.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.example.secondexperiment.R
import com.example.secondexperiment.model.LeftViewHolder
import com.example.secondexperiment.model.Msg
import com.example.... | 0 | Kotlin | 0 | 0 | 7a6d235fc21c47a551e14f9a880c2f9b24cabb6a | 1,353 | MyWechat | Apache License 2.0 |
app/src/main/java/com/halil/ozel/admobapp/MainActivity.kt | halilozel1903 | 147,826,813 | false | {"Kotlin": 4085} | package com.halil.ozel.admobapp
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.google.android.gms.ads.AdRequest
import com.google.android.gms.ads.LoadAdError
import com.google.android.gms.ads.MobileAds
import com.google.andr... | 0 | Kotlin | 12 | 44 | 55de5665ff2f65e9f6f5b1fe0e597d6ffbbe1112 | 3,775 | AdMobApp | The Unlicense |
strawberry/js/src/main/kotlin/moe/leekcake/we/strawberry/LaunchPoint.kt | leekcake | 156,720,817 | false | null | import moe.leekcake.we.strawberry.StrawberryLeader
import moe.leekcake.we.strawberry.StrawberryProject
@JsName("main")
fun main(args: Array<String>) {
StrawberryLeader(StrawberryProject())
} | 0 | Kotlin | 0 | 0 | af57b4d233f207497a1491e9dd738856519ec570 | 195 | WE-Strawberry-Group | MIT License |
src/main/kotlin/michi/bot/listeners/OnGuildLeaveListener.kt | slz-br | 598,900,844 | false | null | package michi.bot.listeners
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import michi.bot.database.dao.GuildsDAO
import net.dv8tion.jda.api.events.guild.GuildLeaveEvent
import net.dv8tion.jda.api.hooks.ListenerAdapter
object OnGuildLeaveListener: List... | 1 | Kotlin | 0 | 2 | 54c9d64c69a93baa0f01ea9c4b7b96cfdbe5d9e8 | 551 | Michi | Apache License 2.0 |
app/src/main/java/com/utn/frba/cinemapp/models/cine.kt | UTN-FRBA-Mobile | 299,745,853 | false | null | package com.utn.frba.cinemapp.models
import com.google.gson.annotations.SerializedName
data class cine(@SerializedName("adress") var adress: String,
@SerializedName("description") var description: String,
@SerializedName("id") var identificador: String,
@SerializedName(... | 0 | Kotlin | 0 | 0 | 68b858ab93c113f80477c26355a3937aaabeae3d | 406 | Cinemapp | MIT License |
browser-kotlin/src/jsMain/kotlin/web/history/PageTransitionEvent.factory.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6891970} | // Automatically generated - do not modify!
@file:Suppress(
"NOTHING_TO_INLINE",
)
package web.history
import web.events.EventTarget
import web.events.EventType
inline fun PageTransitionEvent(
type: EventType<PageTransitionEvent<EventTarget>>,
): PageTransitionEvent<*> =
PageTransitionEvent<EventTarget?... | 0 | Kotlin | 7 | 28 | 8b3f4024ebb4f67e752274e75265afba423a8c38 | 588 | types-kotlin | Apache License 2.0 |
app/src/main/java/io/portone/portonesdk/IssueBillingKeyAndPayTestActivity.kt | portone-io | 835,174,061 | false | {"Kotlin": 197769, "HTML": 1179} | package io.portone.portonesdk
import android.os.Bundle
import android.view.LayoutInflater
import android.widget.ArrayAdapter
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
import androidx.recyclerview.widget.LinearLayoutManager
import io.portone.portonesdk.adapter.CardCompanyAdapter
import io.po... | 0 | Kotlin | 0 | 2 | 07509908b066a19fc5e0e96afca415816687d2f4 | 9,192 | android-sdk | MIT License |
src/main/kotlin/modules/m3/misc/InvoiceItemModel.kt | glehu | 384,708,417 | false | null | package modules.m3.misc
import javafx.beans.property.SimpleDoubleProperty
import javafx.beans.property.SimpleIntegerProperty
import javafx.beans.property.SimpleStringProperty
import kotlinx.serialization.ExperimentalSerializationApi
import modules.m3.InvoicePosition
import tornadofx.ItemViewModel
import tornadofx.getV... | 4 | Kotlin | 0 | 0 | 82676fd3f1da66c70745dd8e6efa9583fed3e033 | 1,940 | CWO_ERP | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/s3/TransitionDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.s3
import cloudshift.awscdk.common.CdkDslMarker
import java.ti... | 3 | null | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 2,001 | awscdk-dsl-kotlin | Apache License 2.0 |
src/main/kotlin/no/nav/amt/person/service/person/PersonRepository.kt | navikt | 618,357,446 | false | null | package no.nav.amt.person.service.person
import no.nav.amt.person.service.person.dbo.PersonDbo
import no.nav.amt.person.service.person.model.IdentType
import no.nav.amt.person.service.person.model.Person
import no.nav.amt.person.service.utils.getUUID
import no.nav.amt.person.service.utils.sqlParameters
import org.spri... | 0 | Kotlin | 0 | 0 | a8a5b9cbda0a5764c125d0522668bbfdf27ae3b2 | 2,513 | amt-person-service | MIT License |
common/webapp/src/commonMain/kotlin/models/HandlingResult.kt | InsanusMokrassar | 606,391,766 | false | {"Kotlin": 386449, "Shell": 1463, "HTML": 692, "Dockerfile": 224} | package center.sciprog.tasks_bot.common.webapp.models
import center.sciprog.tasks_bot.common.webapp.utils.HttpStatusCodeSerializer
import io.ktor.http.*
import kotlinx.serialization.Serializable
@Serializable
sealed interface HandlingResult<R : Any?> {
val code: HttpStatusCode
val data: R
@Serializable
... | 1 | Kotlin | 2 | 2 | 2b570e7ab96bec4c2f015e6529e44cb6ea91f9bf | 1,090 | SchoolTasksBot | MIT License |
app/src/main/java/com/example/noteapp/Notes.kt | alprshn | 661,833,293 | false | {"Kotlin": 32440} | package com.example.noteapp
import java.io.Serializable
data class Notes(
var note_id: Int,
var emoji: String,
var note_title: String,
var note_date: String,
var note_color: Int,
var note: String
) : Serializable {
} | 0 | Kotlin | 0 | 1 | 14f3f41e22c337ddb29916f3c2041bf121448873 | 242 | Kotlin_Note_App | MIT License |
ui/features/note/src/main/java/com/example/note/EntityVM.kt | City-Zouitel | 576,223,915 | false | null | package com.example.note
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.domain.reposImpl.EntityRepoImp
import com.example.local.model.Entity
... | 27 | null | 6 | 43 | 07734f993db841e6ad56f484379ea399e30dc55e | 3,778 | JetNote | Apache License 2.0 |
app/src/main/kotlin/com/thoughtbot/tropos/viewholders/CurrentWeatherViewHolder.kt | roschlau | 81,113,277 | true | {"Kotlin": 138013, "Shell": 2391, "Ruby": 1122} | package com.thoughtbot.tropos.viewholders
import android.support.v7.widget.RecyclerView.ViewHolder
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.thoughtbot.tropos.R.id
import com.thoughtbot.tropos.data.Condition
import com.thoughtbot.tropos.viewmodels.CurrentWeather... | 0 | Kotlin | 0 | 1 | efc88d1aea4993f0ccd5bf7138448c48eafc2c03 | 1,150 | tropos-android | MIT License |
app/src/main/java/com/solarexsoft/rxpaging3/GetMoviesRxViewModel.kt | flyfire | 408,836,716 | false | {"Kotlin": 17852} | package com.solarexsoft.rxpaging3
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.PagingData
import androidx.paging.filter
import androidx.paging.rxjava2.cachedIn
import io.reactivex.Flowable
class GetMoviesRxViewModel(private val repository: GetMoviesRxRepository) ... | 0 | Kotlin | 0 | 0 | 3d0a518ea2f295e297cc08a13298472ab980b173 | 573 | RxPaging3 | Apache License 2.0 |
app/src/main/java/com/floaty/app/FloatyScreen.kt | luiisca | 814,450,362 | false | {"Kotlin": 79179} | package com.floaty.app
import androidx.compose.foundation.layout.size
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Add
import androidx.compose.material3.Icon
import androidx.compose.material3.LargeFloatingActionButton
import androidx.compose.material3.MaterialTheme
import ... | 17 | Kotlin | 0 | 0 | 15eb16389c7c1d862b8597860396f3429c7a9cf1 | 1,222 | floaty | Apache License 2.0 |
language/kmm-langx/src/commonMain/kotlin/io/tagd/langx/datatype/IntExtension.kt | pavan2you | 589,617,975 | false | {"Kotlin": 563150, "Shell": 5268, "Swift": 1392} | package io.tagd.langx.datatype
import io.tagd.langx.isNull
fun Int?.isNullOrLessThanZero(): Boolean {
return this.isNull() || this!! < 0
}
fun Int?.isNullOrLessThanEqualZero(): Boolean {
return this.isNull() || this!! <= 0
}
fun Int?.isNullOrZero(): Boolean {
return this.isNull() || this!! == 0
} | 0 | Kotlin | 3 | 2 | 3277fae7a820b1c04ad8afff1ea4166c728bbefa | 313 | kmm-clean-architecture | Apache License 2.0 |
app/src/main/kotlin/com/kunminx/purenote/ui/page/ListFragment.kt | KunMinX | 514,141,746 | false | null | package com.kunminx.purenote.ui.page
import android.text.TextUtils
import androidx.fragment.app.activityViewModels
import androidx.fragment.app.viewModels
import com.kunminx.architecture.ui.bind.ClickProxy
import com.kunminx.architecture.ui.page.BaseFragment
import com.kunminx.architecture.ui.page.DataBindingConfig
im... | 2 | null | 8 | 98 | ded9f960d583e92ce90e718c19283eaf346c9796 | 4,446 | MVI-Dispatcher-KTX | Apache License 2.0 |
app/src/main/java/com/redmadrobot/app/presentation/base/statedelegate/state/ErrorWithStubScreenState.kt | Shipaaaa | 320,275,703 | false | null | package com.redmadrobot.app.presentation.base.statedelegate.state
enum class ErrorWithStubScreenState {
CONTENT,
STUB,
ERROR,
}
| 0 | Kotlin | 0 | 1 | 9ab8b23c91339ecb3f824b6ba1c090a4b2e260dd | 141 | presentation-layer-sample | MIT License |
travako-starter/travako-starter-job-bean/src/main/java/io/arkitik/travako/starter/job/bean/dto/TravakoJobExecutionData.kt | arkitik | 441,685,610 | false | {"Kotlin": 324533, "Shell": 91} | package io.arkitik.travako.starter.job.bean.dto
/**
* Created By <NAME>
* Created At 8:53 PM, 26/08/2024
*/
data class TravakoJobExecutionData(
val serverKey: String,
val runnerKey: String,
val runnerHost: String,
val jobKey: String,
val params: Map<String, String?>,
)
| 1 | Kotlin | 0 | 3 | 0ebfbf4ea9c5a945130b89ab037111c5f9f8cc53 | 296 | travako | Apache License 2.0 |
androidApp/src/main/java/com/wanderlei/moviesappk/android/MovieApp.kt | WanderleiSantos | 690,661,085 | false | {"Kotlin": 30452, "Swift": 342} | package com.wanderlei.moviesappk.android
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.padding
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Scaffold
import androidx.compose.material.rememberScaffoldState
import androidx.compose.runti... | 0 | Kotlin | 0 | 0 | 966b26fc406274c5abc24eaa824aa84465a12638 | 3,393 | MoviesAppKMM | MIT License |
ktpack-internal/platform/src/commonMain/kotlin/ktpack/util/PlatformUtils.kt | DrewCarlson | 371,519,366 | false | {"Kotlin": 185686} | package ktpack.util
import kotlinx.cinterop.toKString
import ktpack.configuration.KotlinTarget
import okio.Path
import okio.Path.Companion.DIRECTORY_SEPARATOR
import platform.posix.getenv
/**
* Attempt to find the user's home directory first by the
* platform's home directory environment variable, and if
* not fou... | 10 | Kotlin | 0 | 6 | 9307c2e916defd4b09652c72b6eddd53058de653 | 2,420 | ktpack | MIT License |
platform/src/main/kotlin/researchstack/backend/application/port/incoming/auth/SignUpCommand.kt | S-ResearchStack | 520,365,362 | false | {"Kotlin": 1297198, "Dockerfile": 202, "Shell": 59} | package researchstack.backend.application.port.incoming.auth
data class SignUpCommand(
val email: String,
val password: String
) {
init {
require(password.isNotBlank())
}
}
| 1 | Kotlin | 9 | 29 | 214dc84476e2de6948c3fc5225cebca0707bfb91 | 198 | backend-system | Apache License 2.0 |
app/src/main/java/com/mfahmi/myjetpackprosubmission/vo/ResourceValue.kt | MohFahmi27 | 358,312,676 | false | null | package com.mfahmi.myjetpackprosubmission.vo
import com.mfahmi.myjetpackprosubmission.vo.Status.*
data class ResourceValue<T>(val status: Status, val data: T?, val message: String?) {
companion object {
fun <T> success(data: T?): ResourceValue<T> = ResourceValue(SUCCESS, data, null)
fun <T> error... | 0 | Kotlin | 0 | 1 | a257630c8cdd97d2e0bacbc82285c1a03396d1a9 | 494 | MyJetpackProSubmission | MIT License |
app/src/main/java/com/tanasi/sflix/models/Genre.kt | stantanasi | 511,319,545 | false | null | package com.tanasi.sflix.models
import com.tanasi.sflix.adapters.SflixAdapter
class Genre(
val id: String,
val name: String,
val shows: List<Show> = listOf(),
) : SflixAdapter.Item {
override lateinit var itemType: SflixAdapter.Type
} | 22 | Kotlin | 12 | 56 | 53029752567ee26bc252452d6550b3dc867f90e4 | 254 | sflix | Apache License 2.0 |
src/main/kotlin/com/stepanov/bbf/bugfinder/util/RandomValuesGenerator.kt | mandelshtamd | 249,374,670 | true | {"Kotlin": 7965847} | @file:Suppress("IMPLICIT_CAST_TO_ANY")
package com.stepanov.bbf.util
import ru.spbstu.kotlin.generate.combinators.KCheck
import ru.spbstu.kotlin.generate.util.asCharSequence
import ru.spbstu.kotlin.generate.util.nextString
import java.util.*
const val LINE_SIZE = 5
const val RANDOM_CONST = 5
fun generateDefValuesAs... | 0 | Kotlin | 0 | 1 | da010bdc91c159492ae74456ad14d93bdb5fdd0a | 4,240 | bbfgradle | Apache License 2.0 |
app/src/main/java/com/peter/landing/ui/home/HomeViewModel.kt | peterdevacc | 480,611,711 | false | null | package com.peter.landing.ui.home
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.peter.landing.domain.study.StudyUseCase
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.first
import javax.inject.Inject
@HiltViewModel
class HomeViewModel @Injec... | 0 | Kotlin | 3 | 9 | eb8f61d645a0daf43712ea5242aa673e1d87beb4 | 853 | Landing | Apache License 2.0 |
app/src/main/java/com/gmrit/gdsc/activities/see_your_interest/LearnProgrammingActivity.kt | saikiran1224 | 436,351,656 | false | {"Kotlin": 115847} | package com.gmrit.gdsc.activities.see_your_interest
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.gmrit.gdsc.R
import com.gmrit.gdsc.activities.general.MainActivity
class LearnProgrammin... | 0 | Kotlin | 0 | 2 | 052bb3e092ec624c90051c9a79c7a72072ab0026 | 1,426 | GDSC_GMRIT_App | MIT License |
ok-propertysale-be-app-ktor/src/main/kotlin/ru/otus/otuskotlin/propertysale/be/app/ktor/controllers/FlatController.kt | otuskotlin | 330,109,804 | false | null | package ru.otus.otuskotlin.propertysale.be.app.ktor.controllers
import io.ktor.routing.*
import ru.otus.otuskotlin.propertysale.be.app.ktor.services.FlatService
import ru.otus.otuskotlin.propertysale.be.app.ktor.utils.handleRoute
import ru.otus.otuskotlin.propertysale.be.logging.psLogger
import ru.otus.otuskotlin.prop... | 0 | Kotlin | 0 | 1 | ed9a38627e64ed36131280ca7449547ba1d06829 | 2,388 | otuskotlin-202012-propertysale-ks | MIT License |
DSLs/kubernetes/dsl/src/main/kotlin-gen/dev/forkhandles/k8s/apiextensions/v1/metadata.kt | fork-handles | 649,794,132 | false | {"Kotlin": 575626, "Shell": 2264, "Just": 1042, "Nix": 740} | // GENERATED
package dev.forkhandles.k8s.apiextensions.v1
import io.fabric8.kubernetes.api.model.ListMeta as model_ListMeta
import io.fabric8.kubernetes.api.model.ObjectMeta as model_ObjectMeta
import io.fabric8.kubernetes.api.model.apiextensions.v1.CustomResourceDefinition as v1_CustomResourceDefinition
import io.fab... | 0 | Kotlin | 0 | 9 | 68221cee577ea16dc498745606d07b0fb62f5cb7 | 789 | k8s-dsl | MIT License |
app/src/main/java/com/astrolucis/services/interfaces/Preferences.kt | gkravas | 127,865,201 | false | null | package com.astrolucis.services.interfaces
import com.astrolucis.fragment.UserFragment
interface Preferences {
companion object {
const val EMPTY_STRING = ""
}
var me: UserFragment?
var token: String
fun reset()
}
| 0 | Kotlin | 0 | 0 | 871933d03934d641b9631abcb662cc656fdcf6cb | 245 | astrolucis-android | MIT License |
save-backend/src/main/kotlin/org/cqfn/save/backend/repository/LnkUserOrganizationRepository.kt | cqfn | 300,279,336 | false | null | package org.cqfn.save.backend.repository
import org.cqfn.save.entities.LnkUserOrganization
import org.cqfn.save.entities.Organization
import org.springframework.stereotype.Repository
/**
* Repository of lnkUserProject
*/
@Repository
interface LnkUserOrganizationRepository : BaseEntityRepository<LnkUserOrganization>... | 97 | Kotlin | 0 | 15 | c381c6fd4d9c12178de79da4818220b724a15596 | 501 | save-cloud | MIT License |
local_libs/lib-dex-commons/src/main/kotlin/gov/cdc/dex/metadata/DexEventPayload.kt | CDCgov | 510,836,864 | false | {"Kotlin": 694547, "Scala": 208820, "Python": 44391, "Java": 17996, "Batchfile": 11894, "Go": 8661, "JavaScript": 7609, "Groovy": 4230, "HTML": 2177, "Shell": 1362, "CSS": 979} | package gov.cdc.dex.metadata
import com.google.gson.annotations.SerializedName
import java.util.*
data class DexEventPayload (
@SerializedName("id") val id: String = UUID.randomUUID().toString(),
@SerializedName("message_uuid") val messageUUID: String = id,
@SerializedName("upload_id") val uploadID: Strin... | 121 | Kotlin | 14 | 9 | c88287d49963f07d0a1525c555f3b499196ecb7c | 792 | data-exchange-hl7 | Apache License 2.0 |
app/src/main/java/com/mix/mvvm/data/bean/History.kt | zhanghangcode | 445,494,390 | false | {"Kotlin": 77112} | package com.mix.mvvm.data.bean
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
/**
* @Date 執筆時間 2022/01/15 19:25
* @Author Caden
* @Description
* @Email <EMAIL>
* @Vesion 1.0
*/
@Entity(tableName = "t_history")
data class History(
@PrimaryKey
@ColumnInfo(name... | 0 | Kotlin | 0 | 0 | 9d100baea86bd5ed8699fa9936be7a9868e272a7 | 665 | MVVM | Apache License 2.0 |
shared/src/commonTest/kotlin/dev/sasikanth/rss/reader/opml/SourcesOpmlTest.kt | msasikanth | 632,826,313 | false | {"Kotlin": 858776, "Swift": 8517, "JavaScript": 3432, "CSS": 947, "Shell": 227} | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 35 | Kotlin | 72 | 1,713 | e7b3f1057d8295e1d83a041df68aec7bfefcd6e8 | 3,568 | twine | Apache License 2.0 |
demos-0-9-1/Natty/src/commonMain/kotlin/io/dongxi/page/panel/form/control/AbstractControl.kt | ghubstan | 626,473,115 | false | null | package io.dongxi.page.panel.form.control
import io.dongxi.application.DongxiConfig
import io.dongxi.page.PageType
import io.nacular.doodle.controls.text.Label
import io.nacular.doodle.drawing.Color.Companion.Red
import io.nacular.doodle.drawing.paint
import io.nacular.doodle.geometry.Size
import io.nacular.doodle.tex... | 0 | Kotlin | 0 | 0 | f030e662c50490ea3d12e4969a599d1bcdde629a | 2,278 | kotlin-doodle-prototypes | MIT License |
src/test/kotlin/no/nav/familie/klage/ekstern/EksternBehandlingControllerTest.kt | navikt | 524,953,794 | false | null | package no.nav.familie.klage.ekstern
import no.nav.familie.klage.behandling.BehandlingRepository
import no.nav.familie.klage.fagsak.domain.PersonIdent
import no.nav.familie.klage.felles.domain.SporbarUtils
import no.nav.familie.klage.infrastruktur.config.OppslagSpringRunnerTest
import no.nav.familie.klage.kabal.Klager... | 3 | Kotlin | 0 | 2 | 4fe0f01ba053744f39c63d8c642dd1d77f508613 | 7,698 | familie-klage | MIT License |
examples/java-matter-controller/java/src/com/matter/controller/commands/pairing/CloseSessionCommand.kt | project-chip | 244,694,174 | false | null | /*
* Copyright (c) 2023 Project CHIP Authors
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 914 | null | 1769 | 6,671 | 420e6d424c00aed3ead4015eafd71a1632c5e540 | 1,564 | connectedhomeip | Apache License 2.0 |
subprojects/gradle/instrumentation-tests/src/main/kotlin/com/avito/instrumentation/InstrumentationTestsPlugin.kt | bugtsa | 254,435,193 | true | {"Kotlin": 2450349, "Shell": 16022, "Python": 14063, "Dockerfile": 7151, "Makefile": 2131} | @file:Suppress("UnstableApiUsage")
package com.avito.instrumentation
import com.android.build.gradle.api.ApplicationVariant
import com.android.build.gradle.api.TestVariant
import com.android.build.gradle.internal.dsl.DefaultConfig
import com.avito.android.getApkFile
import com.avito.android.withAndroidApp
import com.... | 0 | null | 0 | 0 | 6ef9f3d70c253e8bf6e1e26c47ee5389fb118e4a | 19,363 | avito-android | Apache License 2.0 |
src/main/kotlin/no/nav/omsorgspengerutbetaling/general/systemauth/AccessTokenClientResolver.kt | navikt | 317,778,686 | false | null | package no.nav.helse.auth
import no.nav.helse.dusseldorf.ktor.auth.Client
import no.nav.helse.dusseldorf.ktor.auth.ClientSecretClient
import no.nav.helse.dusseldorf.ktor.auth.PrivateKeyClient
import no.nav.helse.dusseldorf.oauth2.client.ClientSecretAccessTokenClient
import no.nav.helse.dusseldorf.oauth2.client.DirectK... | 2 | Kotlin | 0 | 0 | d615fe06ad22a58e681b0bc29cd9e9f834d9c14b | 1,333 | omsorgspengerutbetalingsoknad-arbeidstaker-mottak | MIT License |
lib/src/main/java/de/drtobiasprinz/gpx/RoutePoint.kt | prinztob | 370,702,913 | false | null | package de.drtobiasprinz.gpx
import de.drtobiasprinz.gpx.xml.XmlWritable
import de.drtobiasprinz.gpx.xml.XmlWrite
import io.reactivex.Observable
data class RoutePoint(
val lat: Double,
val lon: Double,
val time: Long? = null,
val ele: Double? = null,
val name: String? = null
) ... | 0 | Kotlin | 0 | 0 | b7bbb8f6a6edc5c42fc7e98dacc50032f52957ad | 1,358 | summitbook | MIT License |
app/src/main/java/de/ulme/findyourcorevalues/ui/navigation/YourValuesNavHost.kt | umeckel | 636,287,105 | false | {"Kotlin": 9225} | package de.ulme.findyourcorevalues.ui.navigation
import androidx.compose.material.Text
import androidx.compose.material.TopAppBar
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.naviga... | 3 | Kotlin | 0 | 0 | 14b8cc2f738c150b7a929026a3e7d7256d5e8505 | 878 | Find-your-core-values | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.