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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
feature/auth/src/main/kotlin/com/kevlina/budgetplus/feature/auth/ui/AnimatedLogo.kt | kevinguitar | 517,537,183 | false | {"Kotlin": 690086} | package com.kevlina.budgetplus.feature.auth.ui
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.rememberInfiniteTrans... | 0 | Kotlin | 0 | 9 | ab973c1d8b29e41c0ed33ad3568a6e0aef1c6e47 | 2,502 | budgetplus-android | MIT License |
app/src/main/java/com/example/fooddelivery/presentation/house/HouseView.kt | spencer2k19 | 720,201,452 | false | {"Kotlin": 305089} | package com.example.fooddelivery.presentation.house
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.f... | 0 | Kotlin | 0 | 2 | 7be246eba97aa90740952a8bd85dbeb3229c826b | 11,507 | Food-Delivery-Android | MIT License |
androidApp/src/main/java/fr/frankois944/kmpviewmodel/android/di/AndroidModule.kt | frankois944 | 808,051,690 | false | {"Kotlin": 46155, "Swift": 24011} | package fr.frankois944.kmpviewmodel.android.di
import fr.frankois944.kmpviewmodel.viewmodels.mainscreen.MainScreenViewModel
import org.koin.android.annotation.KoinViewModel
import org.koin.core.annotation.Module
@Module
internal class AndroidModule {
@KoinViewModel
fun mainScreenViewModel(parameters: String? ... | 0 | Kotlin | 0 | 1 | 667c924fca1b4cf00fe475761b69ae2e3682aeef | 415 | kmp-mvvm-exploration | MIT License |
app/src/main/java/com/mvk/galleryobvious/ui/main/utils/ImageClickListener.kt | MVK059 | 362,666,215 | false | null | package com.mvk.galleryobvious.ui.main.utils
import com.mvk.galleryobvious.data.model.ImageData
/**
* Interface to handle clicks of images
*/
interface ImageClickListener {
/**
* Handle click event in [com.mvk.galleryobvious.ui.main.MainActivity]
*
* @param imageData List of images
*/
f... | 0 | Kotlin | 0 | 0 | 55fa85cfdf9df59ce269d6e4fb9f7fd6ac7f0faa | 354 | Gallery-Obvious | MIT License |
meistercharts-commons/src/jvmMain/kotlin/it/neckar/open/kotlin/serializers/LocalTimeSerializer.kt | Neckar-IT | 599,079,962 | false | null | package it.neckar.open.kotlin.serializers
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializer
import kotlinx.serialization.descriptors.PrimitiveKind
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.s... | 0 | Kotlin | 2 | 4 | 834d1d10196bb0895d54ff0411d8017bc8e6d81d | 943 | meistercharts | Apache License 2.0 |
src/main/kotlin/behavioural_patterns/null_object/NullObject.kt | ThijsBoehme | 291,005,516 | false | {"Kotlin": 88248, "Java": 31062} | package behavioural_patterns.null_object
import java.lang.reflect.Proxy
interface Logger {
fun info(message: String)
fun warn(message: String)
}
class ConsoleLogger: Logger {
override fun info(message: String) {
println(message)
}
override fun warn(message: String) {
println("WAR... | 0 | Kotlin | 0 | 0 | 9bdb5be77dcd527493b39ad562291a4023e36a98 | 1,240 | portfolio-design-patterns-udemy | MIT License |
app/src/main/java/io/github/a2en/shoestore/ui/WelcomeFragment.kt | a2en | 387,120,114 | false | null | package io.github.a2en.shoestore.ui
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import androidx.navigation.findNavController
import io.github.a2en.shoestore.R
class WelcomeFragmen... | 0 | Kotlin | 0 | 0 | d3a393fdad6fe5a3fa5376f1f974aab9bd63acbe | 806 | Shoe_Store_Android_Navigation_Graph | Apache License 2.0 |
plugin/src/main/kotlin/xyz/luccboy/noobcloud/plugin/velocity/commands/CloudCommand.kt | NoobCloudSystems | 518,232,292 | false | {"Kotlin": 155606, "Shell": 69, "Batchfile": 45} | package xyz.luccboy.noobcloud.plugin.velocity.commands
import xyz.luccboy.noobcloud.api.NoobCloudAPI
import xyz.luccboy.noobcloud.api.group.Group
import xyz.luccboy.noobcloud.api.group.GroupType
import xyz.luccboy.noobcloud.api.server.Server
import xyz.luccboy.noobcloud.library.network.packets.server.CopyServerTemplat... | 1 | Kotlin | 2 | 3 | 0ecea76f391fa60bec8d7e924af45922543093c3 | 8,959 | NoobCloud | Apache License 2.0 |
app/src/main/java/com/example/yxm/photogenic/module/discovery/DiscoveryVideoAdapter.kt | yxmFromTheMoon | 230,591,386 | false | null | package com.example.yxm.photogenic.module.discovery
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.lib_imageloader.ImageLoaderManager
import com.example.lib_network.bean.CommonVideoBean
import com.example.yxm.photogenic.R
import c... | 0 | Kotlin | 2 | 5 | 324dd4ed32ae0591082f44ed239d5ea6ff84645e | 1,051 | Photogenic | The Unlicense |
gradle-plugin/src/main/kotlin/sh/christian/aaraar/gradle/AarAarPlugin.kt | christiandeange | 588,680,111 | false | {"Kotlin": 267325, "Shell": 1171} | @file:Suppress("UnstableApiUsage")
package sh.christian.aaraar.gradle
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.type.ArtifactTypeDefinition.ARTIFACT_TYPE_ATTRIBUTE
import org.gradle.api.attributes.java.TargetJvmEnvironment
import org.gradle.api.attributes.java.TargetJv... | 2 | Kotlin | 2 | 32 | 725c6e1bbf1d38634a4d2235911af7c6c2283955 | 6,530 | aaraar | Apache License 2.0 |
app/src/main/java/it/carusopi/stargazers/base/di/module/RetrofitModule.kt | pier1287 | 109,195,095 | false | null | package it.carusopi.stargazers.base.di.module
import com.google.gson.Gson
import dagger.Module
import dagger.Provides
import it.carusopi.stargazers.BuildConfig
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
import retrofit2.converter.gson.GsonConverterF... | 0 | Kotlin | 0 | 0 | 4db4c3e4f098e3a5f1d6dd5f2cd2ca26bc79b1d6 | 786 | Stargazers | MIT License |
backend/src/main/kotlin/daniil/backend/config/SecurityConfig.kt | Yellowtyler | 704,670,810 | false | {"Kotlin": 110480, "TypeScript": 107364, "CSS": 5346, "HTML": 1721} | package daniil.backend.config
import daniil.backend.entity.Channel
import daniil.backend.entity.User
import daniil.backend.filter.JwtFilter
import daniil.backend.property.ClientProperty
import daniil.backend.repository.ChannelRepository
import daniil.backend.repository.UserRepository
import io.github.oshai.kotlinloggi... | 0 | Kotlin | 0 | 1 | e4fcc14a0f221f27270d2e1ff66e0941e81ff5b9 | 6,162 | mytube | Apache License 2.0 |
vector/src/main/java/im/vector/app/ext/data/model/PatientPeriodPrepScreen.kt | huy22091999 | 542,926,323 | false | {"Kotlin": 9903484, "Java": 166049, "HTML": 24691, "Shell": 23527, "Python": 17848, "FreeMarker": 7722, "JavaScript": 1782} | package im.vector.app.ext.data.model
import com.google.gson.annotations.SerializedName
import java.util.*
data class PatientPeriodPrepScreen(
@SerializedName("id")
var id: String? = null,
@SerializedName("patient")
var patient: Patient? = null,
@SerializedName("treatmentPeriod")
var txPeriod... | 0 | Kotlin | 0 | 0 | 9255297220ad63fef367b2c8b1a1065ad5241c92 | 3,633 | edoctor_OCT | Apache License 2.0 |
src/main/kotlin/io/github/breninsul/simpleimageconvertor/service/writer/PdfWriter.kt | BreninSul | 843,824,335 | false | {"Kotlin": 424658} | /*
* MIT License
* Copyright (c) 2024 BreninSul
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merg... | 0 | Kotlin | 0 | 0 | 5ca9fe00bf7e894f9cfe9b2a7925eb7b4c8fbd40 | 4,475 | simple-image-converter | MIT License |
app/src/main/java/com/toxicbakery/androidthings/mirror/module/news/feed/ui/view/NewsFeedViewLayout.kt | ToxicBakery | 111,217,248 | false | null | package com.toxicbakery.androidthings.mirror.module.news.feed.ui.view
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import com.github.salomonbrys.kodein.Kodein
import com.github.salomonbrys.kodein.instance
import com.toxicbakery.androidthings.mirror.R
import com.tox... | 0 | Kotlin | 1 | 2 | 37a1028d53bdda48a4d1f299531fe23c3344890f | 1,402 | AndroidThings-Mirror | Apache License 2.0 |
src/main/kotlin/com/ldatb/learn/banking/config/InterceptorConfig.kt | ldatb | 716,811,395 | false | {"Kotlin": 68944, "HTML": 160} | package com.ldatb.learn.banking.config
import com.ldatb.learn.banking.interceptor.AuthInterceptor
import org.springframework.context.annotation.Configuration
import org.springframework.web.servlet.config.annotation.InterceptorRegistry
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
/**
* Co... | 0 | Kotlin | 0 | 0 | c5bd78dbe3f88bc809e149b46373453d1b256d9a | 843 | banking-api | MIT License |
src/commonMain/kotlin/data/itemsets/CataclysmHarness.kt | marisa-ashkandi | 332,658,265 | false | null | package data.itemsets
import character.Buff
import data.model.ItemSet
class CataclysmHarness : ItemSet() {
companion object {
const val FOUR_SET_BUFF_NAME = "Cataclysm Harness (4 set)"
fun fourSetAdditionalFlurryHaste(): Double {
return 0.05
}
}
override val id: Int =... | 21 | null | 11 | 25 | 9cb6a0e51a650b5d04c63883cb9bf3f64057ce73 | 594 | tbcsim | MIT License |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/ArrowTrendingDown.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.ArrowTrendingDown: ImageVector
get() {
if (_arrowTrendingDown... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 1,818 | compose-fluent-ui | Apache License 2.0 |
kickassanime/src/main/java/com/otaku/kickassanime/page/frontpage/list/data/FrontPageListViewModel.kt | snehilrx | 480,652,667 | false | null | package com.otaku.kickassanime.page.frontpage.list.data
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.PagingData
import androidx.paging.cachedIn
import androidx.paging.map
import com.otaku.fetch.data.ITileData
import dagger.hilt.android.lifecycle.HiltViewModel
impo... | 2 | Kotlin | 6 | 60 | bb0ddca3dc6cb8410094d1e46516452153662d91 | 1,170 | Fetch | MIT License |
code/jvm/src/main/kotlin/aguDataSystem/server/http/controllers/models/input/notes/NotesInputModel.kt | AGU-Data-System | 765,690,492 | false | {"Kotlin": 723386, "TypeScript": 153702, "JavaScript": 1600, "CSS": 925, "Shell": 889, "HTML": 267} | package aguDataSystem.server.http.controllers.models.input.notes
import aguDataSystem.server.domain.agu.AGU
/**
* Represents the input model for updating notes of an [AGU]
*
* @property notes The notes of the [AGU]
*/
data class NotesInputModel(
val notes: String
) | 0 | Kotlin | 0 | 1 | d41bcf2ff0a21ac97f476a59c83802ddf0269606 | 272 | AGU-Data-System | MIT License |
app/src/main/java/aculix/channelify/app/repository/PlaylistsRepository.kt | aculix | 351,989,810 | false | null | package aculix.channelify.app.repository
import aculix.channelify.app.api.PlaylistsService
class PlaylistsRepository(private val playlistsService: PlaylistsService) {
suspend fun getPlaylists(channelId: String, pageToken: String?) =
playlistsService.getPlaylists(channelId, pageToken)
} | 2 | Kotlin | 21 | 99 | 803ed24cc76dff0588e652f2d25298fb6f7109b6 | 301 | Channelify | MIT License |
app/src/androidTest/java/com/example/dankbrowser/TaskTests.kt | shalva97 | 399,744,757 | false | null | package com.example.dankbrowser
import org.junit.Test
class TaskTests {
@Test
fun changeContextName() {
val taskList = getNewTaskList()
taskList.addTask("no hopes for this app")
val task = taskList.getTasks().first()
val contextName = "sixnain"
taskList.changeContex... | 0 | Kotlin | 0 | 0 | 2ce1a701350c4c8dac8410c9d93ca0c2c5d62ab7 | 348 | Dank-Browser | MIT License |
app/src/main/java/com/example/sleeptrackerapp/SleepEntry.kt | Collins-kariuk | 736,033,014 | false | {"Kotlin": 39567} | package com.example.sleeptrackerapp
/**
* Represents a single entry of sleep data.
*
* @property date The date when the sleep entry was recorded, formatted as a String (e.g., "YYYY-MM-DD").
* @property sleepTime The time at which the user started sleeping, formatted as a String (e.g., "HH:MM AM/PM").
* @property ... | 0 | Kotlin | 0 | 0 | e25f8b0dc7baf6ec27ea8de8aa94f54ea464bf09 | 648 | Sleep-Tracker-App | MIT License |
petsearch-shared/ui/home/src/commonMain/kotlin/com/msa/petsearch/shared/ui/home/contract/store/HomeAction.kt | msa1422 | 534,594,528 | false | null | package com.msa.petsearch.shared.ui.home.contract.store
import com.kuuurt.paging.multiplatform.PagingData
import com.msa.petsearch.shared.core.entity.petinfo.PetInfo
import com.msa.petsearch.shared.core.entity.response.PetTypesResponse
import com.msa.petsearch.shared.core.util.commonflow.CommonFlow
import com.msa.pets... | 0 | Kotlin | 0 | 10 | e659a4252af8b0e48dad51839ac62eed2e321fb7 | 2,222 | KMM-Arch-PetSearch | MIT License |
src/Day09.kt | wmichaelshirk | 573,031,182 | false | {"Kotlin": 19037} | import kotlin.math.abs
fun main() {
val dirs = mapOf(
"U" to (0 to -1),
"R" to (1 to 0),
"D" to (0 to 1),
"L" to (-1 to 0)
)
fun visualize(rope: List<Pair<Int, Int>>) {
for (y in -10 .. 10) {
for (x in -10..10) {
val knot = rope.indexOf(... | 0 | Kotlin | 0 | 2 | b748c43e9af05b9afc902d0005d3ba219be7ade2 | 3,184 | 2022-Advent-of-Code | Apache License 2.0 |
app/src/main/java/fi/kroon/vadret/util/extension/Observable.kt | marvinmosa | 241,497,201 | true | {"Kotlin": 871560} | package fi.kroon.vadret.util.extension
import io.reactivex.Observable
fun <T> T.asObservable(): Observable<T> = Observable.just(this) | 0 | null | 0 | 0 | f8149920c34bb3bc5e3148785ce217e37e596fbe | 135 | android | Apache License 2.0 |
src/main/kotlin/com/fgsoftwarestudio/baubles/api/BaubleItem.kt | fgsoftware-studio | 653,819,531 | false | null | package com.fgsoftwarestudio.baubles.api
import net.minecraft.item.ItemStack
class BaubleItem : IBauble {
private var baubleType: EBaubleType? = null
/**
* Creates a new instance of BaubleItem with the specified bauble type.
* @param type The type of the bauble.
*/
fun BaubleItem(type: EBa... | 0 | Kotlin | 0 | 0 | 552d15ad0f0fcfae6faabdb74a646bd9b4b7f2e5 | 662 | baubles | MIT License |
lib-app-events/src/main/java/com/melonhead/lib_app_events/events/AppEvent.kt | julieminer | 542,405,576 | false | {"Kotlin": 224747} | package com.melonhead.lib_app_events.events
interface AppEvent
| 6 | Kotlin | 0 | 0 | a6ddd8fd1bb6eed716bd196f0b7c57872b21a816 | 64 | mangadexdroid | Do What The F*ck You Want To Public License |
src/commonMain/kotlin/data/enchants/RingStats.kt | dandanmylady | 403,978,235 | true | {"Kotlin": 8213892, "JavaScript": 137326, "Shell": 7536, "CSS": 1370, "HTML": 946, "Batchfile": 81} | package data.enchants
import character.Stats
import data.Constants
import data.model.Enchant
import data.model.Item
import sim.SimParticipant
import kotlin.js.JsExport
@JsExport
class RingStats(item: Item) : Enchant(item) {
override val id: Int = 46519
override val inventorySlot: Int = Constants.InventorySlot... | 0 | Kotlin | 0 | 0 | 6736a6eb488e8d513db0690b4783ca3446879c96 | 608 | tbcsim | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/jpa/entity/BookingNotMade.kt | ministryofjustice | 515,276,548 | false | {"Kotlin": 7821391, "Shell": 16340, "Dockerfile": 1667, "Mustache": 383} | package uk.gov.justice.digital.hmpps.approvedpremisesapi.jpa.entity
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Repository
import java.time.OffsetDateTime
import java.util.UUID
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Jo... | 23 | Kotlin | 1 | 4 | 023847cf076df872057e5c8e98926718ea508ff6 | 810 | hmpps-approved-premises-api | MIT License |
core/src/main/java/nl/adaptivity/android/kryo/serializers/StandaloneCoroutineSerializer.kt | pdvrieze | 112,604,596 | false | null | package nl.adaptivity.android.kryo.serializers
import com.esotericsoftware.kryo.Kryo
import com.esotericsoftware.kryo.io.Input
import com.esotericsoftware.kryo.io.Output
import com.esotericsoftware.kryo.serializers.FieldSerializer
internal class StandaloneCoroutineSerializer(kryo: Kryo, type: Class<*>): FieldSerializ... | 0 | Kotlin | 10 | 114 | 3e380a07e4dd3412db391cb90fe06a8adb01f1a9 | 897 | android-coroutines | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/application/api/authentication/OIDC.kt | navikt | 378,118,189 | false | null | package no.nav.syfo.application.api.authentication
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import io.ktor.client.request.*
import kotlinx.coroutines.runBlocking
import no.nav.syfo.client.httpClientProxy
fun getWellKnown(wellKnownUrl: String) =
runBlocking {
httpClientProxy().use { cli... | 0 | Kotlin | 1 | 0 | ba8738a3a6da99fd3ee42ad5479596b3a5da2d5f | 581 | isdialogmelding | MIT License |
usage_overview/usage_overview_presentation/src/main/java/ly/com/tahaben/usage_overview_presentation/components/CategoriesBar.kt | tahaak67 | 508,754,612 | false | null | package ly.com.tahaben.usage_overview_presentation.components
import androidx.compose.animation.core.Animatable
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
@Composable
fun CategoriesBar(
/*t... | 9 | null | 0 | 57 | 1c96b8f02ae1c67ce7a0fbf037df07ecd5694f66 | 2,815 | Farhan | Apache License 2.0 |
common/src/main/java/dev/munebase/hexkeys/casting/patterns/spells/OpVisitMindscape.kt | ChuijkYahus | 761,041,582 | false | {"Java Properties": 1, "YAML": 3, "Markdown": 3, "Text": 1, "Gradle": 5, "Shell": 1, "TOML": 3, "Batchfile": 1, "Ignore List": 2, "Java": 36, "Kotlin": 4, "JSON": 31, "INI": 2, "Python": 6, "JSON5": 1} | package dev.munebase.hexkeys.casting.patterns.spells
import at.petrak.hexcasting.api.misc.MediaConstants
import at.petrak.hexcasting.api.spell.ParticleSpray
import at.petrak.hexcasting.api.spell.RenderedSpell
import at.petrak.hexcasting.api.spell.SpellAction
import at.petrak.hexcasting.api.spell.casting.CastingContext... | 2 | null | 1 | 1 | 39e6e87c126c917fbe13d4ca77cbf7a53bdb727e | 2,657 | hex-keys-addon | MIT License |
library/src/main/kotlin/io/lamart/gyro/mutable/MutableType.kt | Lamartio | 192,066,012 | false | null | package io.lamart.gyro.mutable
import io.lamart.gyro.variables.VariableType
interface MutableType<T> : VariableType<T> {
fun filter(predicate: T.() -> Boolean): OptionalMutable<T>
}
inline fun <reified R> MutableType<*>.filterCast() = filter(R::class.java::isInstance).cast<R>()
| 1 | Kotlin | 1 | 1 | c4501c07405282d6d822f43ce98b6fff4fb9c115 | 288 | Gyro | Apache License 2.0 |
app/src/main/java/com/zhouhaoo/sample/app/GlobalHttpHandlerImpl.kt | zhouhaoo | 110,637,983 | false | {"Kotlin": 138591, "Java": 1347} | /*
* Copyright (c) 2018 zhouhaoo
*
* 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 ... | 1 | Kotlin | 1 | 10 | 73c95dd5032c0d7b91a9bacd9db03cebf5afc118 | 1,172 | kotlin-common | Apache License 2.0 |
src/main/kotlin/com/ort/howlingwolf/domain/model/myself/participant/VillageSaySituation.kt | h-orito | 176,481,255 | false | null | package com.ort.howlingwolf.domain.model.myself.participant
import com.ort.howlingwolf.domain.model.charachip.CharaFace
import com.ort.howlingwolf.domain.model.message.MessageType
data class VillageSaySituation(
val isAvailableSay: Boolean,
val selectableMessageTypeList: List<VillageSayMessageTypeSituation> =... | 0 | Kotlin | 1 | 3 | d87c28e952287ccbc1634c1eee093a5f9f15e472 | 423 | wolf4busy-api | MIT License |
src/datastructure/bst/Trees.kt | minielectron | 332,678,510 | false | {"Java": 127791, "Kotlin": 48336} | package datastructure.bst
import java.util.LinkedList
data class TreeNode(var data: Int, var left: TreeNode? = null, var right: TreeNode? = null)
class Trees {
fun buildTree(arr: Array<Int?>): TreeNode? {
if (arr.isEmpty() || arr[0] == null) return null
val root = TreeNode(arr[0]!!)
val q... | 1 | null | 1 | 1 | f2aaff0a995071d6e188ee19f72b78d07688a672 | 2,182 | data-structure-and-coding-problems | Apache License 2.0 |
python/huggingFace/src/com/intellij/python/community/impl/huggingFace/cache/HuggingFaceMdCardsCache.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.python.community.impl.huggingFace.cache
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.State
import com.intellij.openapi.... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 1,311 | intellij-community | Apache License 2.0 |
template/i-network/src/main/java/ru/surfstudio/standard/i_network/generated/di/AuthModule.kt | surfstudio | 139,034,657 | false | {"Kotlin": 2966626, "Java": 1025166, "FreeMarker": 104337, "Groovy": 43020, "C++": 1542, "Ruby": 884, "CMake": 285, "Shell": 33, "Makefile": 25} | package ru.surfstudio.standard.i_network.generated.di
import ru.surfstudio.standard.i_network.generated.api.AuthApi
import dagger.Module
import dagger.Provides
import retrofit2.Retrofit
import ru.surfstudio.android.dagger.scope.PerApplication
@Module
class AuthModule {
@Provides
@PerApplication
internal ... | 5 | Kotlin | 30 | 249 | 6d73ebcaac4b4bd7186e84964cac2396a55ce2cc | 429 | SurfAndroidStandard | Apache License 2.0 |
AndroidTestingBlueprint-kotlinApp/module-flavor1-androidTest-only/src/main/java/com/example/android/testing/blueprint/test/AndroidTestOnlyModuleTest.kt | abhishekBansal | 221,863,432 | false | {"Markdown": 5, "Text": 3, "Java Properties": 4, "Gradle": 12, "Shell": 2, "Batchfile": 2, "Ignore List": 2, "YAML": 2, "INI": 4, "Java": 13, "XML": 24, "Proguard": 2, "JSON": 2, "Kotlin": 13} | /*
* Copyright 2017, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 1 | null | 1 | 1 | 63de615c4c00eb1ff07e7cbd72e88501ed05b8a4 | 1,558 | android-testing-templates | Apache License 2.0 |
app/src/main/java/com/jagan/spendanalayser/di/module/FragmentBuildersModule.kt | jaganmohang | 281,417,040 | false | null | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1 | null | 1 | 2 | d4e899da6ee4c9fb10d7229ae360245d2953351f | 2,437 | SpendAnalyser | Apache License 2.0 |
component-acgnews/src/main/runalone/java/com/rabtman/acgnews/AcgNewsMainActivity.kt | Rabtman | 129,618,096 | false | null | package com.rabtman.acgnews
import android.widget.FrameLayout
import butterknife.BindView
import com.rabtman.acgnews.mvp.ui.fragment.AcgNewsMainFragment
import com.rabtman.common.base.SimpleActivity
/**
* @author Rabtman
*/
class AcgNewsMainActivity : SimpleActivity() {
@BindView(R2.id.layout_load_fragment)
... | 2 | null | 120 | 840 | 9150f3abe50e046afd83cc97cb4415a39b1f1bd1 | 620 | AcgClub | Apache License 2.0 |
datastructures/src/main/kotlin/com/kotlinground/datastructures/linkedlists/circular/CircularLinkedList.kt | BrianLusina | 113,182,832 | false | {"Kotlin": 642019, "Shell": 7283, "Python": 1725} | package com.kotlinground.datastructures.linkedlists.circular
import com.kotlinground.datastructures.linkedlists.LinkedList
class CircularLinkedList<T>(private var head: CircularLinkedListNode<T>? = null) :
LinkedList<CircularLinkedListNode<T>, T>(), Iterable<CircularLinkedListNode<T>> {
override fun headNode... | 2 | Kotlin | 1 | 0 | af58811f980bf48b6f875bcecab5234b0f59974d | 12,233 | KotlinGround | MIT License |
app/src/main/java/com/example/newsapp/navigation/DefaultNavigator.kt | arrazyfathan | 413,515,245 | false | {"Kotlin": 108701} | package com.example.newsapp.navigation
import com.arrazyfathan.common_utils.navigator.Navigator
import com.arrazyfathan.common_utils.navigator.Screen
import com.arrazyfathan.detail_presentation.navigation.GoToDetailActivity
import com.arrazyfathan.home_presentation.navigation.GoToHomeActivity
import com.arrazyfathan.s... | 0 | Kotlin | 1 | 5 | e9ec56ef8c8813c213eed854e7066cb70c150483 | 727 | NewsApp | MIT License |
server-base/src/main/kotlin/ai/dstack/server/jersey/resources/payload/UpdateTokenPayload.kt | riwajsapkota | 276,221,429 | false | {"JavaScript": 278424, "Kotlin": 272573, "CSS": 103546, "HTML": 2402} | package ai.dstack.server.jersey.resources.payload
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonInclude
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
data class UpdateTokenPayload(
val user: String?
) | 0 | null | 10 | 0 | ecda9f4d85e9c65a6221ae4c878d048d3a5453e5 | 306 | dstack-server | Apache License 2.0 |
NewRelicCoroutineContext.kt | mhmtszr | 523,685,631 | false | {"Kotlin": 2080} | import com.newrelic.api.agent.*
import kotlinx.coroutines.withContext
import kotlin.coroutines.AbstractCoroutineContextElement
import kotlin.coroutines.CoroutineContext
import kotlin.coroutines.coroutineContext
class NewRelicTransaction(val txn: Transaction) :
AbstractCoroutineContextElement(NewRelicTransaction) {... | 0 | Kotlin | 0 | 8 | 7673cb7d808c5cc8a04b00ca9596dd989c4cf554 | 2,080 | new-relic-kotlin-coroutine | MIT License |
app/src/main/java/com/github/muellerma/prepaidbalance/ui/MainActivity.kt | mueller-ma | 367,932,135 | false | null | package com.github.muellerma.prepaidbalance.ui
import android.Manifest
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import androidx.activity.result.contract.ActivityResultContracts... | 7 | Kotlin | 5 | 9 | e8cd1d731ecb80ff6d80bc3ef11d9fcaca46d8a2 | 6,405 | PrepaidBalance | Apache License 2.0 |
actor_detail_domain/src/main/java/com/muvi/actor_detail_domain/GetActorDetailUseCase.kt | ataulm | 186,059,686 | false | null | package com.muvi.actor_detail_domain
class GetActorDetailUseCase(
private val actorDetailRepository: ActorDetailRepository
) {
suspend operator fun invoke(id: String) = actorDetailRepository.getFilmsByActor(id)
}
| 9 | Kotlin | 3 | 39 | 1c446fa09a271b9e65d06e10a65e4f59f9adf947 | 227 | muvi | Apache License 2.0 |
app/src/main/java/com/keru/novelly/ui/navigation/AppNavHost.kt | jordan-jakisa | 758,352,302 | false | null | package com.keru.novelly.ui.navigation
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.NavType
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.navArgument
import com.keru.novelly.ui.pa... | 0 | null | 0 | 4 | e0d6a13de40ff3e3c9cc4d2d78cba07bbc85be97 | 2,804 | chapterly | MIT License |
project/module-runtime/src/main/kotlin/net/artemisia/runtime/compiler/Stack.kt | TheFloodDragon | 729,364,851 | false | {"Kotlin": 139291} | package net.artemisia.runtime.compiler
class Stack<E>(private val size: Int) {
private var array: ArrayList<E> = arrayListOf()
private var top = -1
fun push(j: E) {
array[++top] = j
}
fun pop(): E {
return array[top--]
}
fun peek(): E {
return array[top]
}
... | 0 | Kotlin | 0 | 1 | 507c4b14fe8ff8dde024b6c9327486fb0effc25e | 446 | Script-Artemisia | MIT License |
compiler/fir/providers/src/org/jetbrains/kotlin/fir/scopes/impl/FirGeneratedClassDeclaredMemberScope.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.scopes.impl
import org.jetbrains.kotlin.fir.FirSession
import org.jetbrains.... | 125 | Kotlin | 4813 | 39,375 | 83d2d2cfcfc3d9903c902ca348f331f89bed1076 | 7,160 | kotlin | Apache License 2.0 |
graphql-dgs-client/src/main/kotlin/com/netflix/graphql/dgs/client/codegen/BaseProjectionNode.kt | AlexRiedler | 379,016,680 | true | {"Kotlin": 745657, "Java": 134045, "Python": 8843, "HTML": 8556, "TypeScript": 3256, "JavaScript": 2934, "Makefile": 1268} | /*
* Copyright 2020 Netflix, 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... | 9 | null | 0 | 0 | c0c74c39956ff6511d2b98d16af56153a29147eb | 1,023 | dgs-framework | Apache License 2.0 |
simcoe/src/main/java/com/prolificinteractive/simcoe/EmptyProvider.kt | prolificinteractive | 59,597,013 | false | null | package com.prolificinteractive.simcoe
import android.content.Context
import com.prolificinteractive.simcoe.trackers.ErrorLogging
import com.prolificinteractive.simcoe.trackers.EventTracking
import com.prolificinteractive.simcoe.trackers.LifetimeValueTracking
import com.prolificinteractive.simcoe.trackers.PageViewTrac... | 2 | Kotlin | 0 | 1 | a26cf868f57599f688423623b8da92cd43f13f7d | 1,974 | simcoe-android | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/codepipeline/actions/CloudFormationDeleteStackActionPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.codepipeline.actions
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.codepipeline.actions.CloudFormationDeleteStackActionProps
@Generated
public fun buildCloudFormationDeleteStackActionP... | 1 | Kotlin | 0 | 0 | e08d201715c6bd4914fdc443682badc2ccc74bea | 528 | aws-cdk-kt | Apache License 2.0 |
sdk-android/src/main/java/io/github/suitetecsa/sdk/android/utils/SimCardCollectScope.kt | suitetecsa | 676,273,066 | false | {"Kotlin": 104341, "HTML": 14924} | package io.github.suitetecsa.sdk.android.utils
import android.telephony.SubscriptionInfo
import android.telephony.SubscriptionManager
import android.telephony.TelephonyManager
class SimCardCollectScope(val manager: SubscriptionManager) {
var subscribedNetwork: SubscriptionInfo? = null
var telephonyManager: Te... | 10 | Kotlin | 0 | 2 | 4a096b2da310aaae1f0490440018ee541bb74451 | 345 | sdk-android | MIT License |
src/main/kotlin/com/cognifide/gradle/aem/instance/LocalInstance.kt | ergo123 | 159,712,475 | true | {"Kotlin": 236402, "Shell": 5207, "Java": 1813, "Batchfile": 233} | package com.cognifide.gradle.aem.instance
import com.cognifide.gradle.aem.pkg.deploy.ListResponse
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonProperty
import org.apache.commons.lang3.builder.EqualsBuilder
import org.apache.commons.lang3.builder.HashCodeBuilder
import ... | 0 | Kotlin | 0 | 0 | 598abf349278473441a8965be31e4d68ccbeebc5 | 3,620 | gradle-aem-plugin | Apache License 2.0 |
app/src/main/java/app/web/relive/letsgetcocky/presentation/screens/nonAlcoholic/NonAlcoholicCocktailListScreen.kt | Relive077 | 435,650,603 | false | {"Kotlin": 96499} | package app.web.relive.letsgetcocky.presentation.screens.nonAlcoholic
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import ... | 0 | Kotlin | 0 | 2 | fad8484bb13ce6a21eb3b930af6a2ba01f93fa8f | 6,329 | Let-s-Get-Cocky-App | Apache License 2.0 |
src/main/kotlin/nl/avisi/structurizr/site/generatr/site/model/WorkspaceDocumentationSectionPageViewModel.kt | avisi-cloud | 504,087,853 | false | null | package nl.avisi.structurizr.site.generatr.site.model
import com.structurizr.documentation.Section
import nl.avisi.structurizr.site.generatr.normalize
import nl.avisi.structurizr.site.generatr.site.GeneratorContext
class WorkspaceDocumentationSectionPageViewModel(generatorContext: GeneratorContext, section: Section) ... | 16 | Kotlin | 7 | 57 | 12da14a97cc156891dad9c9225c048cafa94c66a | 673 | structurizr-site-generatr | Apache License 2.0 |
src/main/kotlin/matt/caching/compcache/globalman/globalman.kt | mgroth0 | 497,201,909 | false | null | package matt.caching.compcache.globalman
import matt.caching.compcache.ComputeInput
import matt.caching.compcache.cache.ComputeCache
import matt.caching.compcache.cache.ComputeCacheBase
import matt.caching.compcache.cache.FakeComputeCache
import matt.caching.compcache.cache.HardComputeCache
import matt.collect.map.laz... | 0 | Kotlin | 0 | 0 | bab7aa45f7e2b5f04af2d82bc1ff77d2c44e4f47 | 2,070 | caching | MIT License |
src/test/kotlin/com/hceris/kotlintapas/sealedclasses/TheAnswerTest.kt | sirech | 211,717,294 | false | null | package com.hceris.kotlintapas.sealedclasses
import org.junit.jupiter.api.Test
import strikt.api.expectThat
import strikt.assertions.isEqualTo
import strikt.assertions.isFalse
import strikt.assertions.isTrue
internal class TheAnswerTest {
@Test
internal fun `42 is TheAnswer ToEverything`() {
expectTh... | 1 | Kotlin | 3 | 2 | 0b1c4db704f013980afbb6f8d76733c44a6255d7 | 801 | kotlintapas | MIT License |
app/src/main/java/pt/orpheu/readyservice/ui/servicepicker/ServicePickerActivity.kt | 0rp3u | 171,954,487 | false | null | package pt.orpheu.readyservice.ui.servicepicker
import android.content.Intent
import android.os.Bundle
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelProviders
import pt.orpheu.readyservice.R
import pt.orpheu.readyservice.databinding.ActivityServicePickerBinding
import pt.orpheu.readyse... | 0 | Kotlin | 1 | 4 | 12f8db1a42c98bfbc1da87ac9cfa12a454df1f9b | 1,609 | ReadyService | MIT License |
recordBackend/src/jvmMain/kotlin/me/ftmc/room/downloader/DownloaderHolder.kt | FishMagic | 480,741,119 | false | null | package me.ftmc.room.downloader
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.cancel
import kotlinx.coroutines.flow.MutableSharedFlow
import me.ftmc.message.Message
import me.ftmc.room.Room
class DownloaderHolder(room: Room) {
private val coroutineScope = Coroutine... | 0 | Kotlin | 0 | 0 | cebc4c601ea22d05265e38b298d65db7e08ac66f | 787 | DDTV_Kotlin | Creative Commons Zero v1.0 Universal |
envoy-control-tests/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/EnvoyControlTest.kt | matb4r | 217,250,657 | true | {"Kotlin": 311030, "Shell": 2160, "Dockerfile": 1519} | package pl.allegro.tech.servicemesh.envoycontrol
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.BeforeAll
import org.junit.jupiter.api.Test
import pl.allegro.tech.servicemesh.envoycontrol.config.Ads
import pl.allegro.tech.servicemesh.envoycontrol.config.EnvoyControlTestConfiguration
imp... | 0 | null | 0 | 0 | f102c4c497bc391dd82327eae26f3fd4af3343cb | 2,619 | envoy-control | Apache License 2.0 |
modules/modules_pairing_connection/src/main/java/com/cl/modules_pairing_connection/request/PairBleData.kt | aaaaaaaazmx | 528,318,389 | false | {"Kotlin": 4003694, "Java": 884426} | package com.cl.modules_pairing_connection.request
import androidx.annotation.Keep
import com.cl.common_base.BaseBean
/**
* 蓝牙数据类
* @author 李志军 2022-08-04 11:21
*/
@Keep
data class PairBleData(
var name: String? = null,
var subName: String? = null,
var icon: String? = null,
var bleData: MyScanDevice... | 0 | Kotlin | 0 | 0 | ce83e2c51d424200001507b5736a296f72795a97 | 1,092 | abby | Apache License 2.0 |
server/src/main/kotlin/com/heerkirov/hedge/server/library/xattr/XAttrProcessor.kt | HeerKirov | 298,201,781 | false | null | package com.heerkirov.hedge.server.library.xattr
import com.dd.plist.NSArray
import com.dd.plist.PropertyListParser
import com.heerkirov.hedge.server.utils.SystemPlatform
import com.heerkirov.hedge.server.utils.systemPlatform
import com.heerkirov.hedge.server.utils.tools.defer
import java.io.BufferedReader
import java... | 0 | TypeScript | 0 | 1 | 8140cd693759a371dc5387c4a3c7ffcef6fb14b2 | 2,728 | Hedge-v2 | MIT License |
app/src/main/java/cn/com/woong/readhub/network/resp/TopicResp.kt | j1406493495 | 124,172,186 | false | null | package cn.com.woong.readhub.network.resp
import cn.com.woong.readhub.bean.TopicMo
class TopicResp : BaseResponse() {
var data: ArrayList<TopicMo>? = null
}
| 0 | Kotlin | 43 | 181 | 94cae21614a982dc99b4ab2c35c80b8ea4d52541 | 163 | ReadHub | Creative Commons Attribution 4.0 International |
cosmos-sdk/src/jvmMain/kotlin/cosmos/base/abci/v1beta1/abci.converter.kt | jdekim43 | 759,720,689 | false | {"Kotlin": 8940168, "Java": 3242559} | // Transform from cosmos/base/abci/v1beta1/abci.proto
@file:GeneratorVersion(version = "0.3.1")
package cosmos.base.abci.v1beta1
import kr.jadekim.protobuf.`annotation`.GeneratorVersion
import kr.jadekim.protobuf.converter.ProtobufConverter
public actual object TxResponseConverter : ProtobufConverter<TxResponse> by ... | 0 | Kotlin | 0 | 0 | eb9b3ba5ad6b798db1d8da208b5435fc5c1f6cdc | 1,277 | chameleon.proto | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppschallengesupportinterventionplanapi/entity/event/CsipEvent.kt | ministryofjustice | 797,799,207 | false | {"Kotlin": 540841, "PLpgSQL": 45048, "Mermaid": 30603, "Shell": 1890, "Dockerfile": 1387} | package uk.gov.justice.digital.hmpps.hmppschallengesupportinterventionplanapi.entity.event
import uk.gov.justice.digital.hmpps.hmppschallengesupportinterventionplanapi.config.toZoneDateTime
import uk.gov.justice.digital.hmpps.hmppschallengesupportinterventionplanapi.enumeration.CsipComponent
import uk.gov.justice.digi... | 2 | Kotlin | 0 | 0 | 4a6bc4135986ced42227893f099459bf9db9e57a | 2,526 | hmpps-challenge-support-intervention-plan-api | MIT License |
libs/rest/rest-server-impl/src/test/kotlin/net/corda/rest/server/impl/config/models/RestServerSettingsTest.kt | corda | 346,070,752 | false | {"Kotlin": 20585393, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.rest.server.impl.config.models
import net.corda.rest.server.config.models.AzureAdSettings
import net.corda.rest.server.config.models.RestContext
import net.corda.rest.server.config.models.RestSSLSettings
import net.corda.rest.server.config.models.RestServerSettings
import net.corda.rest.server.config... | 14 | Kotlin | 27 | 69 | 0766222eb6284c01ba321633e12b70f1a93ca04e | 1,689 | corda-runtime-os | Apache License 2.0 |
app/src/main/java/com/android/iDamoTeam/idamo/model/User.kt | Vedonic-BND | 567,390,611 | false | null | package com.android.iDamoTeam.idamo.model
import com.google.firebase.firestore.PropertyName
data class User (
@get:PropertyName("name") @set:PropertyName("name") var name: String = "",
@get:PropertyName("bio") @set:PropertyName("bio") var bio: String = "",
@get:PropertyName("uid") @set:PropertyName("uid")... | 1 | Kotlin | 0 | 0 | 7e645c639a6721deef0ad4f75d9955daeea8f7e9 | 508 | iDamo-App | MIT License |
demo/src/main/java/ovh/plrapps/mapcompose/demo/ui/screens/PathsDemo.kt | p-lr | 359,208,603 | false | null | package ovh.plrapps.mapcompose.demo.ui.screens
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import ovh.plrapps.mapcompose.demo.viewmodels.PathsVM
import ovh.plrapps.mapcompose.ui.MapUI
import androidx.lifecycle.viewmodel.compose.viewModel
@Composable
fun PathsDemo(
modifier: Modi... | 1 | Kotlin | 7 | 96 | e65762b45cc7418cbae54e0673405d109da7aadd | 442 | MapCompose | Apache License 2.0 |
android/SwiftKotlination/features/story/src/test/kotlin/fr/jhandguy/story/view/StoryActivityUnitTest.kt | jhandguy | 130,410,529 | false | null | package fr.jhandguy.story.view
import androidx.appcompat.app.ActionBar
import androidx.lifecycle.Lifecycle
import androidx.test.core.app.ActivityScenario
import androidx.test.core.app.ApplicationProvider
import fr.jhandguy.network.model.network.NetworkError
import fr.jhandguy.network.model.observer.Result
import fr.jh... | 0 | Swift | 7 | 24 | 56c44db2ca9e7c5196f8ce108d73157d417a56cf | 3,117 | SwiftKotlination | MIT License |
app/src/main/java/pl/jakubokrasa/bikeroutes/core/user/presentation/MainViewModel.kt | JakubOkrasa | 367,399,523 | false | null | package pl.jakubokrasa.bikeroutes.core.user.presentation
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.hadilq.liveevent.LiveEvent
import pl.jakubokrasa.bikeroutes.core.base.presentation.BaseViewModel
import pl.jakubokrasa.bikeroutes.cor... | 1 | Kotlin | 0 | 0 | f392343249e3f4c15c54b4f01b26ec46cab2c41d | 2,932 | BikeRoutes | Apache License 2.0 |
app/src/main/java/com/android/iDamoTeam/idamo/fragments/LibraryFragment.kt | Vedonic-BND | 567,390,611 | false | null | package com.android.iDamoTeam.idamo.fragments
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
import com.android.iDamoTeam.idamo.LibraryActivity
import com.... | 1 | Kotlin | 0 | 0 | 7e645c639a6721deef0ad4f75d9955daeea8f7e9 | 3,042 | iDamo-App | MIT License |
src/main/kotlin/com/jetbrains/rider/aspire/settings/AspireSettingsState.kt | JetBrains | 723,084,178 | false | {"C#": 344615, "Kotlin": 317497} | package com.jetbrains.rider.aspire.settings
import com.intellij.openapi.components.BaseState
class AspireSettingsState : BaseState() {
var connectToDatabase by property(true)
} | 12 | C# | 0 | 58 | 6f6640260246036d1514ace9ac7da09465327e3f | 182 | aspire-plugin | MIT License |
app/src/main/java/com/calintat/sensors/api/Item.kt | calintat | 81,257,998 | false | null | package com.calintat.sensors.api
import android.annotation.TargetApi
import android.content.Context
import android.content.Intent
import android.content.pm.ShortcutInfo
import android.graphics.drawable.Icon
import android.hardware.Sensor
import android.support.annotation.DrawableRes
import android.support.annotation.I... | 0 | Kotlin | 0 | 5 | 293fe6f6bfd18189d90029fcd688909b92ba91b0 | 6,199 | sensors | Apache License 2.0 |
resources/src/commonMain/kotlin/inkapplications/shade/resources/ResourceControls.kt | InkApplications | 183,111,240 | false | {"Kotlin": 301356, "Shell": 99} | package inkapplications.shade.resources
import inkapplications.shade.resources.structures.Resource
/**
* Actions for API resources on the hue bridge
*/
interface ResourceControls {
/**
* Retrieve all known API resources
*/
suspend fun listResources(): List<Resource>
}
| 20 | Kotlin | 4 | 65 | 4d9b74d923341bcb066f38dfbc645d90cc86b4fd | 291 | Shade | MIT License |
src/main/kotlin/de/dasphiller/eventsystem/event/Event.kt | DasPhiller | 524,232,267 | false | null | package de.dasphiller.eventsystem.event
import net.kyori.adventure.text.Component
import org.bukkit.Material
abstract class Event {
abstract val name: String
abstract val id: String
abstract val icon: Material
abstract val desc: List<Component>
} | 0 | Kotlin | 0 | 0 | 712c1df6af9bb73c25147dafa080d4d1c625f1aa | 267 | EventSystemPaper | MIT License |
src/commonMain/kotlin/dimensional/kyuso/task/ScheduledTask.kt | dimensional-fun | 489,465,643 | false | {"Kotlin": 19590} | package dimensional.kyuso.task
import kotlin.time.Duration
public interface ScheduledTask : Task {
/**
* Executes this task once, after the specified [delay].
*
* @param delay how long to wait (in milliseconds) before executing the task.
* @return `ScheduledTask`, useful for chaining.
*/
... | 0 | Kotlin | 0 | 7 | 4ad22a4300bcf7eb14dcdbd21359bb107b845d25 | 1,265 | kyuso | Apache License 2.0 |
client-misk-hibernate/src/test/kotlin/app/cash/backfila/client/misk/menustack/MenuStackModule.kt | cashapp | 209,384,085 | false | {"Kotlin": 952510, "TypeScript": 78934, "Java": 14790, "Shell": 4170, "JavaScript": 1107, "HTML": 990, "Dockerfile": 486} | package app.cash.backfila.client.misk.menustack
import app.cash.backfila.client.misk.MenuItem
import app.cash.backfila.client.misk.hibernate.HibernateBackfillModule
import app.cash.backfila.client.stat.StaticDatasourceBackfillModule
import com.google.inject.Provides
import java.util.concurrent.BlockingDeque
import jav... | 50 | Kotlin | 49 | 31 | 5d9f39a12fd4dc95533889978d70b043a817b287 | 789 | backfila | Apache License 2.0 |
provider-compile-ksp/src/main/kotlin/com/g985892345/provider/compile/ksp/Options.kt | 985892345 | 657,472,390 | false | {"Kotlin": 31718} | package com.g985892345.provider.compile.ksp
/**
* .
*
* @author 985892345
* 2023/12/4 21:29
*/
class Options(
val packageName: String,
val className: String,
val logEnable: Boolean,
val processTimes: Int,
) {
constructor(options: Map<String, String>) : this(
options["ktProviderRouterPackageName"]!!,... | 0 | Kotlin | 0 | 6 | f51b0d6cc9c3feb811263bbd5e5e0ce44a810cf8 | 589 | KtProvider | Apache License 2.0 |
pico-automator/src/main/java/com/github/aivanovski/picoautomator/domain/entity/exception/ExecutionException.kt | aivanovski | 691,067,002 | false | {"Kotlin": 115468} | package com.github.aivanovski.picoautomator.domain.entity.exception
open class ExecutionException(
override val message: String? = null
) : Exception(message) | 1 | Kotlin | 1 | 1 | 9e05e686a49b33223bd1c9186deb5008a4e2c9c3 | 163 | pico-automator | Apache License 2.0 |
app/src/main/java/jp/cordea/notificationaggregator/NotificationService.kt | CORDEA | 144,464,385 | false | null | package jp.cordea.notificationaggregator
import android.app.Notification
import android.service.notification.NotificationListenerService
import android.service.notification.StatusBarNotification
import kotlinx.coroutines.experimental.launch
import java.io.IOException
class NotificationService : NotificationListenerSe... | 0 | Kotlin | 0 | 0 | adf8ac24c8760f57af9178c5f0dbd61764a733fa | 1,405 | NotificationAggregator | Apache License 2.0 |
src/main/kotlin/com/hogwai/bananesexportkata/service/RecipientService.kt | Hogwai | 651,528,744 | false | null | package com.hogwai.bananesexportkata.service
import com.hogwai.bananesexportkata.model.Recipient
import com.hogwai.bananesexportkata.repository.RecipientRepository
import org.springframework.stereotype.Service
@Service
class RecipientService(private val recipientRepository: RecipientRepository) {
fun getAllRecipi... | 0 | Kotlin | 0 | 0 | faf6b7147030d4c1aade0a370bda367353696b29 | 1,647 | bananes-export-kata | MIT License |
samples/different-bindings/src/main/java/com/originsdigital/compositeadapter/sample/differentbindings/ui/cell/viewbinding/DifferentBindingsViewBinding1MessageCell.kt | netcosports | 382,011,704 | false | null | package com.originsdigital.compositeadapter.sample.differentbindings.ui.cell.viewbinding
import android.view.LayoutInflater
import android.view.ViewGroup
import com.originsdigital.compositeadapter.cell.Cell
import com.originsdigital.compositeadapter.cell.ClickItem
import com.originsdigital.compositeadapter.decoration.... | 1 | Kotlin | 0 | 10 | ec40c00f6d0671248bd4983df6a463f58dea7580 | 1,781 | CompositeAdapter_Android | Apache License 2.0 |
core-firebase/src/test/java/com/stslex/core_firebase/realisation/SingleSnapshotTest.kt | stslex | 475,504,690 | false | {"Kotlin": 235179} | package com.stslex.core_firebase.realisation
import com.google.firebase.database.DataSnapshot
import com.google.firebase.database.DatabaseError
import com.google.firebase.database.ValueEventListener
import com.stslex.core.ValueState
import com.stslex.core_firebase.utils.realisation.SingleSnapshot
import org.junit.Asse... | 4 | Kotlin | 0 | 1 | c3e1e1aeebfdbe014af58117e7293ec38af29bfb | 1,617 | CNotes | Apache License 2.0 |
desktop/adapters/src/main/kotlin/com/soyle/stories/storyevent/createStoryEvent/CreateStoryEventControllerImpl.kt | Soyle-Productions | 239,407,827 | false | null | package com.soyle.stories.storyevent.createStoryEvent
import com.soyle.stories.common.ThreadTransformer
import com.soyle.stories.domain.validation.NonBlankString
import com.soyle.stories.usecase.storyevent.createStoryEvent.CreateStoryEvent
import java.util.*
class CreateStoryEventControllerImpl(
projectId: String,
... | 45 | Kotlin | 0 | 9 | 1a110536865250dcd8d29270d003315062f2b032 | 1,330 | soyle-stories | Apache License 2.0 |
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/color/ColorPicker.kt | JetBrains | 293,498,508 | false | null | /*
* Copyright 2020-2022 JetBrains s.r.o. and respective authors and developers.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
*/
package com.jetbrains.compose.color
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.background
... | 668 | Kotlin | 645 | 9,090 | 97266a0ac8c0d7a8ad8d19ead1c925751a00ff1c | 5,501 | compose-jb | Apache License 2.0 |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/ec2/AmazonLinux2022ImageSsmParameterDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.ec2
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Boolean
import software.amazon.awscdk.se... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 3,538 | awscdk-dsl-kotlin | Apache License 2.0 |
src/main/kotlin/com/cuupa/mailprocessor/userconfiguration/DecisionConfiguration.kt | Cuupa | 281,472,343 | false | null | package com.cuupa.mailprocessor.userconfiguration
import com.fasterxml.jackson.annotation.JsonProperty
class DecisionConfiguration {
@JsonProperty("path")
var path: String? = null
}
| 13 | Kotlin | 0 | 0 | d9221e33487d30d3fb9449e2bd840cbad000b156 | 194 | mailprocessor | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/Cowbell.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,768 | icons | MIT License |
src/test/kotlin/UtilTestsSpectralConvolution.kt | jimandreas | 377,843,697 | false | null | @file:Suppress("UNUSED_VARIABLE", "unused", "UnnecessaryVariable")
import org.junit.jupiter.api.*
import algorithms.*
import java.lang.StringBuilder
import kotlin.test.assertEquals
internal class UtilTestsSpectralConvolution {
/**
* Spectral Convolution Problem: Compute the convolution of a spectrum.
I... | 0 | Kotlin | 0 | 0 | a1284de81ebf3e9823a3625a0a1a3216a7f33cb3 | 9,980 | stepikBioinformaticsCourse | Apache License 2.0 |
app/src/main/java/com/smssyncer/ui/activities/splash/SplashViewModel.kt | theapache64 | 178,550,855 | false | null | package com.smssyncer.ui.activities.splash
import androidx.lifecycle.ViewModel
class SplashViewModel : ViewModel() {
lateinit var versionNumber: String
var isShowPrivacyPolicyOnResume: Boolean = false
} | 1 | Kotlin | 1 | 3 | 04e4f2003ec9eb28d21969409c543885b2ee2313 | 212 | sms-syncer | Apache License 2.0 |
app/src/main/java/com/meuus90/zzim/model/source/local/goods/GoodsDao.kt | meuus90 | 365,493,193 | false | null | package com.meuus90.zzim.model.source.local.goods
import androidx.paging.PagingSource
import androidx.room.Dao
import androidx.room.Query
import com.meuus90.zzim.model.data.response.Goods
import com.meuus90.zzim.model.source.local.BaseDao
import kotlinx.coroutines.flow.Flow
@Dao
interface GoodsDao : BaseDao<Goods> {
... | 0 | Kotlin | 1 | 0 | c886cb8a19dedd369516524f0459c89870cb59a1 | 729 | Zzim | MIT License |
skellig-test-step-processing-tcp/src/main/kotlin/org/skellig/teststep/processor/tcp/model/TcpTestStep.kt | skellig-framework | 263,021,995 | false | {"Kotlin": 1283314, "CSS": 525991, "Java": 270216, "FreeMarker": 66859, "HTML": 11313, "ANTLR": 6165} | package org.skellig.teststep.processor.tcp.model
import org.skellig.teststep.processing.model.ScenarioStateUpdater
import org.skellig.teststep.processing.model.TestStepExecutionType
import org.skellig.teststep.processing.model.ValidationNode
/**
* Represents a test step that can have details about where to read data... | 8 | Kotlin | 0 | 3 | ed375268b0e444f1928f22f4ac27603e9d1fb66b | 2,765 | skellig-core | Apache License 2.0 |
app/src/main/java/reach52/marketplace/community/models/BenefitInsurance.kt | reach52 | 422,514,975 | false | {"Kotlin": 1436380, "Java": 18303} | package reach52.marketplace.community.models
data class BenefitInsurance(
val type: String,
val planReference: String,
val requirement: List<Requirement>
) | 0 | Kotlin | 0 | 0 | 629c52368d06f978f19238d0bd865f4ef84c23d8 | 180 | Marketplace-Community-Edition | MIT License |
Android/app/src/main/java/sample/sdk/breez/page/home/HomeViewModel.kt | breez | 681,972,081 | false | {"Kotlin": 132212, "Rust": 2438, "Python": 1484} | package sample.sdk.breez.page.home
import android.content.res.Resources
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import breez_sdk.BlockingBreezServices
import breez_sdk.BuyBitcoinProvider
import breez_sdk.BuyBitcoinRequest
import breez_sdk.Config
import breez... | 1 | Kotlin | 1 | 1 | e73923e921df566cc32cc193e8a0df6001336294 | 20,709 | breez-sdk-examples | MIT License |
core/src/main/java/it/airgap/beaconsdk/core/internal/utils/Try.kt | airgap-it | 303,679,512 | false | null | package it.airgap.beaconsdk.core.internal.utils
import androidx.annotation.IntRange
import androidx.annotation.RestrictTo
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public inline fun <T> runCatchingFlat(block: () -> Result<T>): Result<T> =
try {
block()
} catch (e: Exception) {
Result.failure... | 4 | Kotlin | 7 | 8 | cf129f2437a3c7498f2b6b5e401b0134e58fe3b0 | 1,133 | beacon-android-sdk | MIT License |
src/commonMain/kotlin/me/frost/huebert/Data.kt | Frostmaid | 448,289,261 | false | null | package me.frost.huebert
import kotlinx.serialization.Serializable
import kotlin.js.JsExport
@JsExport
@Serializable
data class Light(
var id: String,
var metadata: Metadata,
var type: String,
var on: Switch,
var color: Color? = null,
var alert: Alert,
var dimming: Dimming
) {
fun ma... | 0 | Kotlin | 0 | 0 | a02001b9e8a110ca20e47a49d283f900610a3b6a | 3,117 | HueWeb | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.