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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Kotlin/1_TwoSum.kt | Roiw | 198,638,278 | false | {"C#": 304577, "Python": 67487, "JavaScript": 11539, "Kotlin": 3096, "C++": 432} | class Solution {
fun twoSum(nums: IntArray, target: Int): IntArray {
for (i in 0..nums.size - 1) {
for (j in 0..nums.size - 1){
if (nums[i] + nums[j] == target && i != j){
return intArrayOf(i,j)
}
}
}
return... | 0 | C# | 0 | 0 | deb178dab743a4123204355de3e4603c63ea23f2 | 342 | LeetCode | MIT License |
app/src/main/java/com/mhdsuhail/ratemyproperty/ui/homescreen/HomeScreeViewModel.kt | mhdsuhail172 | 600,567,194 | false | null | package com.mhdsuhail.ratemyproperty.ui.homescreen
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.mhdsuhail.ratemyproperty.data.PropertyDetails
import com.mhdsuhail.ratemyproperty.data.PropertyRepository
import com.mhdsuhail.ratemyproperty.util.Routes
import com.mhdsuhail.ratem... | 0 | Kotlin | 0 | 4 | 20bc9c664aab2bb441b5b33685131e9ce53bf0a5 | 2,642 | RateMyProperty | MIT License |
app/src/main/java/com/moviebag/unofficial/presentation/splash/SplashActivity.kt | ajayverma16305 | 344,219,499 | false | null | package com.moviebag.unofficial.presentation.splash
import android.animation.ObjectAnimator
import android.animation.PropertyValuesHolder
import android.graphics.drawable.AnimationDrawable
import android.os.Bundle
import android.os.Handler
import android.view.View
import android.view.WindowManager
import android.view.... | 0 | Kotlin | 0 | 0 | 801dc97a9bb310123a96e7fef0da8b53a0e8e222 | 2,416 | MovieBag | MIT License |
lab04-viewmodel/app/src/main/java/th/ac/kku/cis/lab04_viewmodel/StudentModel.kt | tanapattara | 721,514,655 | false | {"Kotlin": 49235} | package th.ac.kku.cis.lab04_viewmodel
data class StudentModel(
val id:Int,
val name:String,
val studentId:String)
| 0 | Kotlin | 0 | 0 | b9da8d4daa3a77544098edc35b60fb428f6c3ad5 | 127 | android-jetpack-compose-lab | MIT License |
cxrv/src/main/kotlin/com/xiaocydx/cxrv/internal/_ArrayList.kt | xiaocydx | 460,257,515 | false | {"Kotlin": 1336945} | /*
* Copyright 2022 xiaocydx
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 0 | 9 | 2a6cf952830415e13ff13d954b301fa44245bc2a | 1,844 | CXRV | Apache License 2.0 |
src/main/kotlin/name/stepin/Application.kt | stepin | 636,449,498 | false | {"Kotlin": 49893, "Shell": 5986} | package name.stepin
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration
import org.springframework.boot.runApplication
@SpringBootApplication(exclude = [R2dbcAutoConfiguration::class])
class Application
fun main(args: Array<St... | 0 | Kotlin | 0 | 4 | 44e0c5b571b25ebc9b1ceae2df4048eecd56f56a | 370 | kotlin-bootstrap-app | MIT License |
app/src/main/java/com/puutaro/commandclick/proccess/edit/lib/SpinnerInstance.kt | puutaro | 596,852,758 | false | {"Kotlin": 1472142, "JavaScript": 147417, "HTML": 19619} | package com.puutaro.commandclick.proccess.edit.lib
import android.content.Context
import android.widget.Spinner
import com.puutaro.commandclick.util.StringLength
object SpinnerInstance {
fun make(
context: Context?,
editableSpinnerList: List<String>,
onFixNormalSpinner: Boolean,
): Spi... | 2 | Kotlin | 3 | 54 | 000db311f5780b2861a2143f7985507b06cae5f1 | 724 | CommandClick | MIT License |
chat/src/main/java/com/crafttalk/chat/data/repository/ChatBehaviorRepository.kt | AndSky90 | 400,089,101 | true | {"Kotlin": 334797} | package com.crafttalk.chat.data.repository
import com.crafttalk.chat.data.api.socket.SocketApi
import com.crafttalk.chat.domain.repository.IChatBehaviorRepository
import com.crafttalk.chat.initialization.ChatMessageListener
import com.crafttalk.chat.presentation.ChatInternetConnectionListener
import com.crafttalk.chat... | 0 | null | 0 | 0 | 23a69456b0616dc4cf26c1915edc4c00d3f783c5 | 1,453 | crafttalk-android-sdk | Apache License 2.0 |
server/install/src/main/kotlin/org/jetbrains/bsp/bazel/install/BazelBspEnvironmentCreator.kt | JetBrains | 826,262,028 | false | {"Kotlin": 3064918, "Starlark": 370388, "Java": 165158, "Scala": 37245, "Python": 34754, "Lex": 17493, "Dockerfile": 8674, "Shell": 7379, "HTML": 1310, "Rust": 680, "Go": 428, "C++": 113} | package org.jetbrains.bsp.bazel.install
import ch.epfl.scala.bsp4j.BspConnectionDetails
import java.nio.file.Path
class BazelBspEnvironmentCreator(projectRootDir: Path, private val discoveryDetails: BspConnectionDetails) :
EnvironmentCreator(projectRootDir) {
override fun create() {
createDotBazelBsp()
cr... | 2 | Kotlin | 18 | 45 | 1d79484cfdf8fc31d3a4b214655e857214071723 | 355 | hirschgarten | Apache License 2.0 |
src/main/kotlin/jempasam/hexlink/utils/LoadableRegistry.kt | Jempasam | 674,693,089 | false | {"Kotlin": 314532, "Java": 5001, "mcfunction": 299} | package jempasam.hexlink.utils
import com.mojang.serialization.Lifecycle
import net.minecraft.tag.TagKey
import net.minecraft.util.Identifier
import net.minecraft.util.math.random.Random
import net.minecraft.util.registry.Registry
import net.minecraft.util.registry.RegistryEntry
import net.minecraft.util.registry.Regi... | 1 | Kotlin | 1 | 1 | 1d4fac0db502a68921f1275c84eb9541f7f714fc | 2,832 | Hexlink | MIT License |
src/main/kotlin/io/bloco/faker/components/Placeholdit.kt | blocoio | 45,912,125 | false | {"Kotlin": 80930} | package io.bloco.faker.components
import io.bloco.faker.FakerComponent
import io.bloco.faker.FakerData
class Placeholdit(data: FakerData) : FakerComponent(data) {
@JvmOverloads
fun image(
size: String = "300x300",
format: String = "png",
backgroundColor: String? = null,
textCo... | 0 | Kotlin | 26 | 183 | 6adc5aa63c3a14d4fd1ca12e71a649e2fed02eae | 1,570 | faker | MIT License |
src/test/kotlin/com/wearefrancis/auth/dto/mapper/ReadUserByAdminDTOMapperTest.kt | WeAreFrancis | 88,411,069 | false | null | package com.wearefrancis.auth.dto.mapper
import com.wearefrancis.auth.domain.User
import org.assertj.core.api.Assertions.assertThat
import org.junit.Before
import org.junit.Test
class ReadUserByAdminDTOMapperTest {
private lateinit var readUserByAdminDTOMapper: ReadUserByAdminDTOMapper
@Before
fun setUp(... | 0 | Kotlin | 0 | 2 | 2b358547485d4c0fb732bb880e65b800a099c56d | 1,260 | auth-service | Apache License 2.0 |
pixelgrid/src/main/kotlin/com/deflatedpickle/rawky/pixelgrid/api/LayerCategory.kt | DeflatedPickle | 197,672,095 | false | null | package com.deflatedpickle.rawky.pixelgrid.api
enum class LayerCategory {
BACKGROUND,
UNDER_DECO,
GRID,
OVER_DECO,
CURSOR,
DEBUG,
} | 7 | Kotlin | 6 | 27 | b8859e8f706132574996a5157a99145515aac52e | 156 | Rawky | MIT License |
kachetor/src/commonMain/kotlin/com/vipulasri/kachetor/FileSystemProvider.kt | vipulasri | 754,452,913 | false | {"Kotlin": 27843} | /*
* Copyright 2024 <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... | 0 | Kotlin | 0 | 12 | cc228665de4da48fba1ce74a38a8e6e2ba72f27e | 774 | kachetor | Apache License 2.0 |
grundlagen-tag-08-listenfunktionen-2-just1984/Aufgabe24/src/Aufgabe24.kt | just1984 | 639,436,580 | false | null | fun main() {
var namensliste = listOf("Lisa", "Marko", "Sebastian", "Marie", "Florian", "Henrik", "Lillie", "Martin")
// TODO 24a
println("Bitte gebe eine Zahl zwischen 1-8 ein:")
var index1 = readln()
var index2 = index1.toInt()
var namensAusgabe = namensliste[index2 -1]
println(namensAusga... | 0 | Kotlin | 0 | 0 | df3e8b35fdc1c53e0d412e427f03ad5bf3cb12ee | 616 | school_progress_kotlin | MIT License |
src/test/kotlin/fr/uphf/feature/detector/InfixFunctionDectectorSpek.kt | brunomateus | 170,135,541 | false | {"Kotlin": 239889, "Shell": 14} | package fr.uphf.feature.detector
import fr.uphf.analyze.compileTo
import fr.uphf.analyze.getResult
import io.gitlab.arturbosch.detekt.api.Finding
import org.assertj.core.api.Assertions.*
import org.jetbrains.kotlin.psi.KtFile
import org.spekframework.spek2.Spek
import org.spekframework.spek2.style.gherkin.Feature
obj... | 0 | Kotlin | 0 | 0 | 91e0a2d181ac373fc581cd5b7039ef32e9437cf6 | 1,340 | KotlinAstFeatureExtractor | MIT License |
cottontaildb-core/src/main/kotlin/org/vitrivr/cottontail/core/queries/predicates/Predicate.kt | vitrivr | 160,775,368 | false | {"Kotlin": 2769415, "TypeScript": 98011, "Java": 97672, "HTML": 38965, "ANTLR": 23679, "CSS": 8582, "SCSS": 1690, "JavaScript": 1441, "Dockerfile": 548} | package org.vitrivr.cottontail.core.queries.predicates
import org.vitrivr.cottontail.core.database.ColumnDef
import org.vitrivr.cottontail.core.queries.binding.Binding
import org.vitrivr.cottontail.core.queries.nodes.Node
import org.vitrivr.cottontail.core.queries.nodes.NodeWithCost
import org.vitrivr.cottontail.core.... | 24 | Kotlin | 20 | 38 | bc4d0aa435aac78628fa7771dbf8333f1fe5a971 | 747 | cottontaildb | MIT License |
src/org/analogjs/entities/analog/AnalogSourceComponent.kt | analogjs | 741,542,399 | false | {"Kotlin": 83806, "Java": 729} | package org.analogjs.entities.analog
import com.intellij.lang.ecmascript6.psi.ES6ImportDeclaration
import com.intellij.lang.javascript.psi.util.stubSafeChildren
import com.intellij.model.Pointer
import com.intellij.openapi.vfs.VirtualFileManager
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
import... | 4 | Kotlin | 0 | 7 | 37a32a7b23de1ae67c5e40ac911f7c901ed9b970 | 2,952 | idea-plugin | MIT License |
fyno-kotlin-core/src/main/java/io/fyno/kotlin_sdk/RequestHandler.kt | fynoio | 574,803,067 | false | {"Kotlin": 147424, "Java": 38026} | package io.fyno.kotlin_sdk
import android.util.Log
import org.json.JSONObject
import java.io.BufferedWriter
import java.io.IOException
import java.io.OutputStream
import java.io.OutputStreamWriter
import java.net.HttpURLConnection
import java.net.URL
import javax.net.ssl.HttpsURLConnection
object RequestHandler {
... | 0 | Kotlin | 0 | 1 | a228c3466600f002ba0aedf4013c1baaf25c60c5 | 2,658 | kotlin-sdk | MIT License |
app/src/main/java/com/demo/jsonpreviewer/EditJsonViewModel.kt | dazhaoDai | 610,672,510 | false | null | package com.demo.jsonpreviewer
import android.content.Context
import android.preference.PreferenceManager
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import okio.buffer
import okio.source
import java.io.InputStream
import java.nio.charset.Charset
/**
*
* Created by dazhao.dai on 20... | 0 | Kotlin | 0 | 8 | 5057b9bb72130f3822b5581c40ea04725ef7394d | 1,018 | JsonPreviewer | Apache License 2.0 |
app/src/main/java/es/refil/bottlesadmin/di/AppModule.kt | carloscabruja | 644,538,779 | false | null | package es.refil.bottlesadmin.di
import android.app.Application
import android.content.Context
import com.google.firebase.firestore.CollectionReference
import com.google.firebase.firestore.ktx.firestore
import com.google.firebase.ktx.Firebase
import com.google.mlkit.vision.barcode.common.Barcode
import com.google.mlki... | 0 | Kotlin | 0 | 2 | d85c77e380f4f0d278239fb6bf80318c0e403df6 | 2,548 | BottlesAdmin | MIT License |
src/main/kotlin/derivean/rest/root/hero/endpoint/DeleteEndpoint.kt | marek-hanzal | 259,577,282 | false | null | package derivean.rest.root.hero.endpoint
import derivean.storage.repository.HeroRepository
import io.ktor.application.*
import io.ktor.auth.*
import io.ktor.routing.*
import io.ktor.util.*
import leight.container.IContainer
import leight.http.withAnyRole
import leight.mapper.AbstractActionMapper
import leight.rest.*
... | 112 | Kotlin | 0 | 1 | 7a485228438c5fb9a61b1862e8164f5e87361e4a | 1,340 | DeRivean | Apache License 2.0 |
src/main/kotlin/derivean/rest/root/hero/endpoint/DeleteEndpoint.kt | marek-hanzal | 259,577,282 | false | null | package derivean.rest.root.hero.endpoint
import derivean.storage.repository.HeroRepository
import io.ktor.application.*
import io.ktor.auth.*
import io.ktor.routing.*
import io.ktor.util.*
import leight.container.IContainer
import leight.http.withAnyRole
import leight.mapper.AbstractActionMapper
import leight.rest.*
... | 112 | Kotlin | 0 | 1 | 7a485228438c5fb9a61b1862e8164f5e87361e4a | 1,340 | DeRivean | Apache License 2.0 |
security/domain/src/main/kotlin/com/kuki/security/domain/event/UserDeleted.kt | akuchalskij | 649,018,448 | false | null | package com.kuki.security.domain.event
import com.kuki.framework.domain.Event
import com.kuki.security.domain.valueobject.UserId
import kotlinx.datetime.Instant
import kotlinx.serialization.Serializable
@Serializable
data class UserDeleted(
val userId: UserId,
val deletedAt: Instant,
) : Event
| 0 | Kotlin | 0 | 1 | a72ecdf553a62d7d5b472362f50284e634e44207 | 305 | kotlin-ktor-ddd-es-cqrs | Apache License 2.0 |
spring-crm-rest/src/main/kotlin/com/thijsboehme/springdemo/rest/CustomerNotFoundException.kt | ThijsBoehme | 290,450,294 | false | null | package com.thijsboehme.springdemo.rest
class CustomerNotFoundException: RuntimeException {
constructor(): super()
constructor(message: String?): super(message)
constructor(message: String?, cause: Throwable?): super(message, cause)
constructor(cause: Throwable?): super(cause)
constructor(message: ... | 0 | Kotlin | 0 | 0 | 48031da2cbc99314b17a05d1f6417700b26b26c4 | 507 | portfolio-spring-hibernate-udemy | MIT License |
app/src/main/java/it/unibs/mp/horace/backend/RoomJournal.kt | H3isenb3rg | 604,173,455 | false | null | package it.unibs.mp.horace.backend
class RoomJournal {
} | 10 | Kotlin | 0 | 0 | cad49fbf830280c3750f7f67d94c711067aab33f | 57 | MobileProgramming2023 | MIT License |
app/src/main/java/com/italiasimon/themoviedatabase/ui/adapter/FavoriteAdapter.kt | simonitalia | 450,519,134 | false | {"Kotlin": 57774} | package com.italiasimon.themoviedatabase.ui.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview... | 0 | Kotlin | 0 | 0 | c69c4bfc307b2a8984bf3e29eec7457b7dd9b24f | 2,213 | the-movie-database | Apache License 2.0 |
DesktopApp/src/main/kotlin/custom/Theme.kt | nisrulz | 366,738,555 | false | null | package custom
import androidx.compose.material.MaterialTheme
import androidx.compose.material.lightColors
import androidx.compose.runtime.Composable
private val CustomLightColorPalette = lightColors(
primary = MyPrimaryColor,
primaryVariant = MyBorderColor,
secondary = MyLightBgColor
)
@Composable
fun D... | 0 | Kotlin | 0 | 4 | 8690a040c97444f5445d886bd10a012d42b3ab40 | 463 | JetSetCompose | Apache License 2.0 |
app/src/main/kotlin/cz/drekorian/android/flickr/ui/Extensions.kt | Drekorian | 788,443,614 | false | {"Kotlin": 58339} | package cz.drekorian.android.flickr.ui
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.LayoutDirection
operator fun PaddingValues.plus(other: PaddingValues): PaddingValues =
CompoundPaddingValues(this, other)
private class CompoundPadding... | 3 | Kotlin | 0 | 0 | d93a16d3aebb70d6503e1172d0ca24ae1c3cf29a | 1,072 | flickr | MIT License |
presentation/src/main/java/com/nemesis/rio/presentation/profile/overview/character/mplus/scores/CharacterMythicPlusScoresDataActionsHandler.kt | N3-M3-S1S | 370,791,918 | false | null | package com.nemesis.rio.presentation.profile.overview.character.mplus.scores
interface CharacterMythicPlusScoresDataActionsHandler {
fun onSelectScoresTypeClicked()
fun onSelectSeasonClicked()
}
| 0 | Kotlin | 0 | 0 | 62dc309a7b4b80ff36ea624bacfa7b00b5d8607e | 204 | rio | MIT License |
common/src/main/kotlin/tech/cuda/woden/common/service/TeamService.kt | cuda-tech | 234,125,581 | false | {"Kotlin": 532433, "JavaScript": 97771, "Vue": 95927, "CSS": 10200, "Dockerfile": 267, "HTML": 208} | /*
* 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 writing, software
* distribut... | 0 | Kotlin | 0 | 0 | 2efc2de1cad2646ea129637752b15d868ca13c7d | 4,951 | woden-deprecated | Apache License 2.0 |
data/src/main/java/uoc/cbonache/tfg/data/repository/query/Query.kt | cbonacheuoc | 109,753,411 | true | {"Kotlin": 144808, "Java": 6706} | package uoc.cbonache.tfg.data.repository.query
import uoc.cbonache.tfg.Result
/**
* Created by Borja on 21/3/17.
*/
interface Query {
fun queryAll(parameters: HashMap<String, *>? = null, queryable: Any? = null): Result<Collection<*>, *> {
return Result.Failure()
}
fun query(parameters: HashMap<... | 0 | Kotlin | 0 | 1 | c6c3cdc87eb96aaf179a6442111371aebe0a80dc | 420 | Transpdroid-Android-App | Apache License 2.0 |
app/src/main/java/com/tc/gamegallery/domain/Screenshot.kt | JerbiJ456 | 804,320,356 | false | {"Kotlin": 128407} | package com.tc.gamegallery.domain
data class Screenshot(
val image: String
)
| 0 | Kotlin | 0 | 0 | 06425f3849a5ff4ec9162c8ce20dcab8e2b7a480 | 82 | Game-Gallery | MIT License |
app/src/main/java/com/jetpack/compose/learning/animation/Tabbar.kt | SimformSolutionsPvtLtd | 379,199,800 | false | null | package com.jetpack.compose.learning.animation
import androidx.compose.animation.animateColor
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.animateDp
import androidx.compose.animation.core.spring
import androidx.compose.animat... | 0 | null | 8 | 99 | 06fa9850a3cdfabfda2d09da1f4eda93898b8733 | 6,151 | SSComposeCookBook | Apache License 2.0 |
api/config/src/main/kotlin/org/rsmod/api/config/refs/BaseModGroups.kt | rsmod | 293,875,986 | false | {"Kotlin": 1817705} | package org.rsmod.api.config.refs
import org.rsmod.api.type.builders.mod.ModGroupBuilder
import org.rsmod.game.type.mod.ModGroup
public object BaseModGroups : ModGroupBuilder() {
public val player: ModGroup =
build("player") {
moderator = false // Declared for explicitness in api - not require... | 0 | Kotlin | 64 | 95 | 3ba446ed70bcde0870ef431e1a8527efc6837d6c | 473 | rsmod | ISC License |
androidApp/src/main/java/com/rld/justlisten/android/ui/searchscreen/components/PlaylistResult.kt | RLD-JL | 495,044,961 | false | {"Kotlin": 301525, "Swift": 344} | package com.rld.justlisten.android.ui.searchscreen.components
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.runtime.Composable
import com.rld.justlisten.android.ui.playlistscreen.components.PlaylistRowItem
import com.rld.justlisten.viewmode... | 3 | Kotlin | 3 | 82 | e7060fe54f59551b89587698149274e5647b3216 | 728 | Just-Listen | Apache License 2.0 |
ocaml/src/main/java/de/markusressel/kodehighlighter/language/ocaml/rule/NumberRule.kt | markusressel | 167,466,321 | false | {"Kotlin": 113203, "Python": 19475, "OCaml": 10026, "Shell": 2354, "Makefile": 156} | package de.markusressel.kodehighlighter.language.ocaml.rule
import de.markusressel.kodehighlighter.core.rule.LanguageRule
import de.markusressel.kodehighlighter.core.rule.RuleHelper
import de.markusressel.kodehighlighter.core.rule.RuleMatch
class NumberRule : LanguageRule {
override fun findMatches(text: CharSeq... | 12 | Kotlin | 3 | 19 | 8811982b1f35ff3b43d4885b01b2781e1e30815b | 597 | KodeHighlighter | MIT License |
buildSrc/src/main/kotlin/Constants.kt | Genti2024 | 793,968,607 | false | {"Kotlin": 275256} | object Constants {
const val packageName = "kr.genti.android"
const val compileSdk = 34
const val minSdk = 28
const val targetSdk = 34
const val versionCode = 15
const val versionName = "1.1.6"
}
| 1 | Kotlin | 1 | 7 | fa968bcbe736fec105e9d2e5ae89485074f46941 | 220 | Genti-Android | MIT License |
app/src/main/java/com/jintin/roomsample/MainViewModel.kt | Jintin | 325,205,950 | false | null | package com.jintin.roomsample
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.asLiveData
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.launch
import kotlin.random.Random
class MainViewModel(application: Application) : AndroidViewModel(applicatio... | 0 | Kotlin | 0 | 1 | 3b1e8c32423b94921b8c93659c7ad8050e7145ca | 1,024 | RoomSample | MIT License |
app/src/main/java/io/github/ascenderx/mobilescript/ui/menu/MenuHandler.kt | user0x4A35 | 239,868,041 | false | null | package io.github.ascenderx.mobilescript.ui.menu
interface MenuHandler {
fun attachMenuEventListener(listener: MenuEventListener)
fun detachMenuEventListener()
fun showOptionItem(id: Int)
fun hideOptionItem(id: Int)
fun navigateTo(destination: Int)
} | 0 | Kotlin | 0 | 0 | e743c8f888445e5a1b1ed3bf37f27c7dfc2d907a | 271 | byui-cs499-downerj | Apache License 2.0 |
common/user/domain/src/commonTest/kotlin/dev/alvr/katana/common/user/domain/usecases/SaveUserIdUseCaseTest.kt | alvr | 446,535,707 | false | {"Kotlin": 464229, "Swift": 594} | package dev.alvr.katana.common.user.domain.usecases
import arrow.core.left
import arrow.core.right
import dev.alvr.katana.common.user.domain.failures.UserFailure
import dev.alvr.katana.common.user.domain.repositories.UserRepository
import dev.alvr.katana.core.common.coroutines.KatanaDispatcher
import dev.alvr.katana.c... | 1 | Kotlin | 0 | 59 | 218ae9276f5ebd655e6587019d6a5c42e092137a | 1,995 | katana | Apache License 2.0 |
online_food_recipes_example/app/src/main/java/com/dev/online_food_recipes_example/utils/CustomExtensionFunction.kt | PhoenixNest | 472,614,701 | false | null | package com.dev.online_food_recipes_example.utils
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
import androidx.lifecycle.Observer
// Custom Function to Fix the Fetch-Data-Twice-Call
private fun <T> LiveData<T>.observeOnce(lifecycleOwner: LifecycleOwner, observer: Observer<T>) {
obse... | 0 | Kotlin | 0 | 0 | 00df973b674768a28abc8e83312474f8bae933bc | 653 | google_jetpack_in_use | MIT License |
app/src/main/java/com/productivity/fullmangement/ui/composables/ExpandableCard.kt | Amrjyniat | 443,723,945 | false | null | package com.productivity.fullmangement.ui.composables
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.LinearOutSlowInEasing
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.... | 0 | Kotlin | 1 | 5 | 5dd68e34ded2fb405c7cb60b2a476ae0a1c0c969 | 3,626 | FullManagement | Apache License 2.0 |
shared/src/commonMain/kotlin/ui/AddLocation.kt | evilya | 661,036,698 | false | {"Kotlin": 60411, "Swift": 527, "Ruby": 101} | package ui
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import and... | 0 | Kotlin | 0 | 0 | 122b809cd43e0766d822b7bb2fa4aeb7097772a6 | 9,584 | forekast | Apache License 2.0 |
planty-client/common/src/commonMain/kotlin/nest/planty/ui/theme/platform.kt | HLCaptain | 693,789,413 | false | {"Kotlin": 186539, "Python": 9666, "C++": 4729, "HTML": 1243, "JavaScript": 1215, "CSS": 173} | package nest.planty.ui.theme
import androidx.compose.runtime.Composable
@Composable
expect fun PlantyTheme(content: @Composable () -> Unit) | 0 | Kotlin | 0 | 0 | bf42461ccd164962a0d19c3718ff074ca1aaa350 | 141 | planty | MIT License |
src/main/kotlin/vulnerabilities/dto/PackageWithVersions.kt | fraunhofer-iem | 738,423,065 | false | {"Kotlin": 73169, "Dockerfile": 1484} | package vulnerabilities.dto
import artifact.model.VersionDto
import kotlinx.serialization.Serializable
@Serializable
data class PackageWithVersions(
val packageX: Package,
val versions: List<VersionDto> = listOf()
)
| 6 | Kotlin | 0 | 0 | 94db757f2512e8ecf436ec905db2262c2870e00f | 226 | Libyear-ORT | MIT License |
shoring/fxapp/src/main/kotlin/com/panopset/fxapp/FxDoc.kt | panopset | 752,122,553 | false | {"Kotlin": 600277, "Java": 26106, "Shell": 9716, "CSS": 4623, "JavaScript": 4084, "Batchfile": 2807, "HTML": 1317} | package com.panopset.fxapp
import com.panopset.compat.*
import javafx.scene.Scene
import javafx.scene.control.TextField
import javafx.stage.Stage
import java.io.File
class FxDoc : Anchor, LogDsiplayer {
val stage: Stage
lateinit var menuBarStatusMessage: TextField
lateinit var scene: Scene
constructo... | 0 | Kotlin | 0 | 0 | 6143695aae5dc208b2a484074580c676f0f8f7f2 | 2,503 | pan | MIT License |
src/Day03.kt | wellithy | 571,903,945 | false | null | package day03
import util.*
@JvmInline
value class Item(val char: Char) {
fun priority(): Int =
when (char) {
in 'a'..'z' -> (char - 'a') + 1
in 'A'..'Z' -> (char - 'A') + 27
else -> error("")
}
}
fun Set<Item>.priority(): Int = single().priority()
@JvmInline
... | 0 | Kotlin | 0 | 0 | 6d5fd4f0d361e4d483f7ddd2c6ef10224f6a9dec | 1,487 | aoc2022 | Apache License 2.0 |
meistercharts-canvas/src/jsTest/kotlin/com/meistercharts/config/ParseJsonScripTagTest.kt | Neckar-IT | 599,079,962 | false | {"Kotlin": 5819931, "HTML": 87784, "JavaScript": 1378, "CSS": 1114} | /**
* Copyright 2023 Neckar IT GmbH, Mössingen, Germany
*
* 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 appli... | 3 | Kotlin | 3 | 5 | ed849503e845b9d603598e8d379f6525a7a92ee2 | 1,887 | meistercharts | Apache License 2.0 |
app/src/test/java/com/marknkamau/justjava/ui/login/LogInPresenterTest.kt | godiLabs | 196,942,734 | true | {"Kotlin": 156721} | package com.marknkamau.justjava.ui.login
import com.marknjunge.core.auth.AuthService
import com.marknjunge.core.data.firebase.UserService
import com.marknjunge.core.model.AuthUser
import com.marknjunge.core.model.UserDetails
import com.marknkamau.justjava.data.local.PreferencesRepository
import io.mockk.MockKAnnotatio... | 0 | Kotlin | 0 | 0 | 13d6695c341d96343607e37b4761e6b4d56a59ad | 3,410 | JustJava-Android | Apache License 2.0 |
camerax_lib/src/main/java/com/kiylx/camerax_lib/main/manager/model/VisionType.kt | Knightwood | 517,621,489 | false | {"Kotlin": 248505, "Java": 31809} | package com.kiylx.camerax_lib.main.manager.model
enum class VisionType {
Barcode, Face, Object, OCR
} | 0 | Kotlin | 6 | 34 | 4db9a7dafd770415d7f85b3f5159bcb542e2925d | 106 | CameraX-Helper | Apache License 2.0 |
gallery-app/src/commonMain/kotlin/io/ashdavies/gallery/GalleryPresenter.kt | ashdavies | 36,688,248 | false | {"Kotlin": 209662, "HCL": 21205, "Shell": 3934, "Mustache": 2101} | @file:Suppress("INLINE_FROM_HIGHER_PLATFORM")
package io.ashdavies.gallery
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.produceState
import androidx.compose.runtime.remember
import androidx.compose.ru... | 41 | Kotlin | 33 | 116 | 9c8783ea1a205050c5de7507e621a70f2bc5c892 | 5,355 | playground.ashdavies.dev | Apache License 2.0 |
app/src/main/java/dev/shorthouse/coinwatch/ui/screen/settings/component/SettingsItem.kt | shorthouse | 655,260,745 | false | {"Kotlin": 669344} | package dev.shorthouse.coinwatch.ui.screen.settings.component
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androi... | 3 | Kotlin | 7 | 85 | 26b7499114c939342b17a057d1d41c6f8094ee99 | 2,810 | CoinWatch | Apache License 2.0 |
glide-v3/src/main/kotlin/com/ronnnnn/glidemigrationsample/AppGlideModule.kt | ronnnnn | 94,607,669 | false | null | package com.ronnnnn.glidemigrationsample
import android.content.Context
import com.bumptech.glide.Glide
import com.bumptech.glide.GlideBuilder
import com.bumptech.glide.integration.okhttp3.OkHttpGlideModule
import com.bumptech.glide.integration.okhttp3.OkHttpUrlLoader
import com.bumptech.glide.load.DecodeFormat
import... | 0 | Kotlin | 2 | 5 | 6c060f5b679e95802a7dd0b9410fb8d403b8ac0b | 1,102 | GlideMigrationSample | Apache License 2.0 |
hello-world/model/src/main/kotlin/com/gongsung/sample/SampleModel.kt | 403-gallery-gongsung | 736,332,935 | false | {"Kotlin": 96306} | package com.gongsung.sample
interface SampleIdentity {
val sampleIdentity: Long
companion object {
fun of(id: Long) = SimpleSampleIdentity(sampleIdentity = id)
}
}
interface SampleProps {
val value: String
}
interface SampleModel :
SampleIdentity,
SampleProps
data class SimpleSample... | 14 | Kotlin | 0 | 1 | 0f9322f55b2ae1fbfa1d36dadd9310f619afa1a4 | 388 | meet-in | Apache License 2.0 |
app/src/main/java/com/turastory/falcon/MainActivity.kt | turastory | 154,104,058 | false | null | package com.turastory.falcon
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.widget.Toast
import com.turastory.falcon.ui.feed.FeedFragment
import com.turastory.falcon.ui.feed.FeedViewModel
import com.t... | 0 | Kotlin | 0 | 0 | ec2d5472d7d7a4172b056e938bc4a0e1a8e41471 | 2,459 | falcon-android | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/athena/EngineVersionPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.athena
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.athena.CfnWorkGroup
@Generated
public fun buildEngineVersionProperty(initializer: @AwsCdkDsl
CfnWorkGroup.EngineVersionProperty... | 1 | Kotlin | 0 | 0 | a1cf8fbfdfef9550b3936de2f864543edb76348b | 455 | aws-cdk-kt | Apache License 2.0 |
umbrella-starter/app/src/main/java/com/raywenderlich/android/rwandroidtutorial/base/BasePresenter.kt | pethersilva | 197,105,482 | false | null | package com.raywenderlich.android.rwandroidtutorial.base
interface BasePresenter {
fun onDestroy()
} | 0 | Kotlin | 0 | 0 | f5b0ffd0ff0d85568e3dc5842a08b4537e36949e | 105 | umbrella-mvp | MIT License |
app/src/main/java/com/goldenowl/ecommerce/utils/FieldValidators.kt | longnghia | 490,517,031 | false | {"Kotlin": 599604, "Shell": 367} | package com.goldenowl.ecommerce.utils
import android.text.Editable
import android.text.TextWatcher
import android.util.Patterns
import java.util.regex.Pattern
object FieldValidators {
/**
* checking pattern of email
* @param email input email
* @return true if matches with email address else false... | 0 | Kotlin | 1 | 3 | 2fce27c406981cac795c8dce80ffac832abf14e3 | 2,191 | E-Commerce-Application | MIT License |
module-navigation/src/main/java/com/pp/navigation/repository/SystemRepository.kt | PPQingZhao | 651,920,234 | false | {"Kotlin": 391209, "Java": 23883} | package com.pp.navigation.repository
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import com.pp.common.http.wanandroid.api.WanAndroidService
import com.pp.common.http.wanandroid.bean.*
import com.pp.common.paging.ArticlePagingSource
import kotlinx.coroutines.flow.F... | 0 | Kotlin | 0 | 1 | fa136caa315c4eab80e0d86ce9ee2a210cda6fec | 1,021 | WanAndroid-kotlin | Apache License 2.0 |
library-service/src/main/kotlin/library/service/business/books/domain/BookRecord.kt | nt-ca-aqe | 100,617,700 | false | null | package library.service.business.books.domain
import library.service.business.books.domain.composites.Book
import library.service.business.books.domain.states.Available
import library.service.business.books.domain.states.BookState
import library.service.business.books.domain.states.Borrowed
import library.service.busi... | 11 | Kotlin | 11 | 14 | 2942752684ce82167880908caed4111e402b6caa | 3,603 | library-app | Apache License 2.0 |
app/src/main/java/com/tao/chinachuclient/ui/programdetail/ProgramDetailActivity.kt | sugtao4423 | 41,703,434 | false | null | package com.tao.chinachuclient.ui.programdetail
import android.app.AlertDialog
import android.content.Intent
import android.graphics.BitmapFactory
import android.os.Bundle
import android.util.Base64
import android.view.Menu
import android.view.MenuItem
import android.widget.SeekBar
import android.widget.SeekBar.OnSeek... | 0 | Kotlin | 1 | 12 | 790ed77fcf66fb6197b7bc6a39faa2ad5bb96c23 | 6,673 | ChinachuClient | MIT License |
src/main/kotlin/it/scoppelletti/spaceship/types/AbstractDateConverter.kt | dscoppelletti | 263,568,278 | false | null | /*
* Copyright (C) 2019 <NAME>, <http://www.scoppelletti.it/>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 0 | Kotlin | 0 | 0 | fe5118713f44ebf0328b210d9cf1c99e42c6b061 | 3,456 | spaceship-stdlib | Apache License 2.0 |
just-chat/src/main/java/es/rudo/justchat/models/UserData.kt | rudoapps | 561,220,683 | false | {"Kotlin": 132536} | package es.rudo.justchat.models
open class UserData {
var userId: String? = null
var userName: String? = null
var userPhoto: String? = null
var userDeviceToken: String? = null
}
| 0 | Kotlin | 0 | 0 | 72cc7c871ef96792f53adf83319b598cceaf712a | 195 | JustChat-kotlin | MIT License |
app/src/main/java/com/masterplus/trdictionary/features/word_detail/word_category/WordCategoryPage.kt | Ramazan713 | 634,957,286 | false | {"Kotlin": 990286} | package com.masterplus.trdictionary.features.word_detail.word_category
import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import androidx.paging.compose.LazyPagingItems
import androidx.window.layout.DisplayFeat... | 0 | Kotlin | 0 | 1 | 0aa1643c4347203f9339dfa4896bf176712472c9 | 3,389 | Turkce-ve-Osmanlica-Sozluk | Apache License 2.0 |
app/src/main/java/com/jnj/vaccinetracker/common/data/encryption/SecurePasswordGenerator.kt | johnsonandjohnson | 503,902,626 | false | {"Kotlin": 1690434} | package com.jnj.vaccinetracker.common.data.encryption
import java.security.SecureRandom
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class SecurePasswordGenerator @Inject constructor() {
private val secureRandom by lazy {
SecureRandom()
}
fun generateSecurePassword(maxLeng... | 2 | Kotlin | 1 | 1 | 3b9730f742e488543bed86f4dec6c67e477b1f15 | 1,650 | vxnaid | Apache License 2.0 |
app/src/main/java/com/example/moviedb/ui/screen/favoritemovie/FavoriteMovieViewModel.kt | pareen1504 | 186,191,995 | false | null | package com.example.moviedb.ui.screen.favoritemovie
import com.example.moviedb.data.local.dao.MovieDao
import com.example.moviedb.data.model.Movie
import com.example.moviedb.ui.base.BaseLoadMoreRefreshViewModel
import kotlinx.coroutines.launch
class FavoriteMovieViewModel(
private val movieDao: MovieDao
) : BaseL... | 0 | Kotlin | 0 | 0 | 046b44ecdd2bda8d764ffd90f2fa4298adb90097 | 625 | TheMoviePlanet | Apache License 2.0 |
src/test/kotlin/io/openapiprocessor/core/model/datatypes/SingleDataTypeSpec.kt | openapi-processor | 268,750,021 | false | null | /*
* Copyright 2021 https://github.com/openapi-processor/openapi-processor-core
* PDX-License-Identifier: Apache-2.0
*/
package io.openapiprocessor.core.model.datatypes
import io.kotest.core.spec.style.StringSpec
import io.kotest.data.blocking.forAll
import io.kotest.data.row
import io.kotest.matchers.shouldBe
cl... | 8 | Kotlin | 4 | 7 | 1bf168c0af909fbdf7fa44ab3f9712492fb1380d | 1,027 | openapi-processor-core | Apache License 2.0 |
app/src/main/java/com/battlelancer/seriesguide/ui/menus/ManualSyncMenu.kt | UweTrottmann | 1,990,682 | false | {"Kotlin": 2280980, "Java": 880919, "PowerShell": 1268} | // SPDX-License-Identifier: Apache-2.0
// Copyright 2024 <NAME>
package com.battlelancer.seriesguide.ui.menus
import android.content.Context
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import androidx.annotation.MenuRes
import androidx.core.view.MenuProvider
import com.battl... | 56 | Kotlin | 401 | 1,966 | c7bc6445ecc58b841c1887a56146dc2d2f817007 | 1,800 | SeriesGuide | Apache License 2.0 |
src/main/kotlin/io/foxcapades/lib/cli/builder/util/CharacterAppender.kt | Foxcapades | 850,780,005 | false | {"Kotlin": 238928} | package io.foxcapades.lib.cli.builder.util
/**
* Defines a function that may be called to append a character to a buffer or
* stream.
*
* Simple example:
* ```kt
* val bld = StringBuilder()
*
* funThatTakesCharAppender(bld::append)
* ```
*
* @since 1.0.0
*/
fun interface CharacterAppender {
/**
* App... | 8 | Kotlin | 0 | 0 | 09e7d46cd02ded22d38e0dfacab63c4b7d8a9220 | 1,288 | lib-kt-cli-builder | MIT License |
src/main/kotlin/com/github/salomonbrys/gradle/kotlin/js/assembleweb/KotlinMppJsAssembleWebExtension.kt | dany-kun | 161,050,809 | true | {"Kotlin": 20135} | package com.github.salomonbrys.gradle.kotlin.js.assembleweb
import com.github.salomonbrys.gradle.kotlin.js.jscompiletasks.mainJsCompileTask
import org.gradle.api.Action
import org.gradle.api.Project
import org.gradle.api.internal.plugins.DslObject
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
imp... | 0 | Kotlin | 0 | 0 | 14788052f38d65f75288a6606237dbd781315c9c | 1,365 | Kotlin-JS-Gradle-Utils | MIT License |
snippet-generator/src/gen.kt | WeAthFoLD | 162,103,893 | true | {"Kotlin": 1737, "TypeScript": 869} | import com.google.gson.Gson
import java.io.File
class Item(val prefix: String, val body: Array<String>)
fun l(vararg xs: String): Array<String> = xs.toList().toTypedArray()
fun main(args: Array<String>) {
val gson = Gson()
val result = mutableMapOf(
"update" to Item("_update", l("function _update()",... | 0 | Kotlin | 0 | 0 | 17a800825dcbe37179f3ffac7f652332ec262b63 | 1,737 | pico8-vscode | MIT License |
account/src/main/java/com/davidm/account/entities/ClearedBalance.kt | davidmarinangeli | 241,917,460 | false | null | package com.davidm.account.entities
data class ClearedBalance(
val currency: String,
val minorUnits: Int
) | 0 | Kotlin | 0 | 9 | f9ca93065beec4be7c8b6bc6c3b3ee0116b6317d | 115 | Sweet-Bank | Apache License 2.0 |
app/src/main/java/com/lmorda/shopper/app/ShopperApplication.kt | lmorda | 503,058,600 | false | null | package com.lmorda.shopper.app
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class ShopperApplication: Application() {
} | 0 | Kotlin | 0 | 0 | abd90671bcdd0e8d282f87ffa3fcf213c0953c8f | 165 | android-compose-sample | Apache License 2.0 |
NeumorphicViewSet/src/main/java/com/smb/neumorphicviewset/NeuButton.kt | SMehranB | 365,499,118 | false | null | package com.smb.neumorphicviewset
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.*
import android.os.Build
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import androidx.annotation.ColorInt
import androidx.annotation.DrawableRes
... | 0 | Kotlin | 0 | 5 | 0e12f8305f1a5b8c70e7c9dbfa7336d27a0cc738 | 15,689 | NeumorphicViewSet | MIT License |
MyLib_Kotlin/src/test/kotlin/lib/datastructure/graph/undirectedgraph/UndirectedGraphEdgeTest.kt | CWKSC | 420,659,931 | false | {"Kotlin": 32463} | package lib.datastructure.graph.undirectedgraph
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
internal class UndirectedGraphEdgeTest {
@Nested
inner class EqualTest {
@Test
fun `Exchange node, should return true`() {
... | 0 | Kotlin | 0 | 1 | 54e046367103f6b26381bb22f997412d0bc3b43f | 725 | my-lib-kotlin-deprecated | MIT License |
app/src/main/java/com/mrmannwood/hexlauncher/LauncherApplication.kt | MrMannWood | 298,718,785 | false | null | package com.mrmannwood.hexlauncher
import android.app.Activity
import android.app.Application
import android.content.Intent
import android.content.IntentFilter
import android.os.Build
import android.os.StrictMode
import androidx.appcompat.app.AppCompatDelegate
import androidx.core.content.FileProvider
import com.mrman... | 3 | Kotlin | 2 | 7 | de338a5589a624fd25347dd6720a365fed2b4f33 | 5,622 | launcher | Apache License 2.0 |
circle-selector/src/main/java/net.kibotu.circleselector/CircleSelector.kt | kibotu | 84,978,123 | false | null | package net.kibotu.circleselector
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.res.Resources
import android.graphics.Point
import android.os.Build
import android.util.AttributeSet
import android.util.DisplayMetrics
import android.util.Log
impo... | 0 | Kotlin | 0 | 0 | d8b7e34609e628ba0eaf873e47d376d515db7c49 | 11,400 | CircleSelector | Apache License 2.0 |
app/src/main/java/com/ciscowebex/androidsdk/kitchensink/messaging/teams/detail/TeamDetailActivity.kt | webex | 137,331,913 | false | {"Kotlin": 921538} | package com.ciscowebex.androidsdk.kitchensink.messaging.teams.detail
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.Observer
import com.ciscowebex.androidsdk.kitchensink.BaseActivity
im... | 8 | Kotlin | 19 | 14 | bd8568ce01829f71754102339f11533e15356f08 | 1,869 | webex-android-sdk-example | MIT License |
app/src/main/java/com/develrm/f1standings/ui/MainActivity.kt | emanuellucas2 | 791,554,119 | false | {"Kotlin": 18884} | package com.develrm.f1standings.ui
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.fragment.app.commit
import com.develrm.f1standings.R
import com.develrm.f1standings.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
private lateinit var binding: ... | 0 | Kotlin | 0 | 0 | 999908cf6e0d3cf6f480f9cf1b6e6d9e7772dd03 | 1,183 | F1Standings | MIT License |
src/main/kotlin/org/rapturemain/currencyconverter/controller/CurrenciesController.kt | rapturemain | 433,157,411 | false | {"Kotlin": 29783, "Dockerfile": 275} | package org.rapturemain.currencyconverter.controller
import org.rapturemain.currencyconverter.exception.CurrencyAlreadyExistsException
import org.rapturemain.currencyconverter.exception.CurrencyCodeIsInvalidException
import org.rapturemain.currencyconverter.exception.NoCurrencyExistsException
import org.rapturemain.cu... | 0 | Kotlin | 0 | 0 | 0de1f482917e12bfa1e65cd00caae27c689d4474 | 2,604 | currency-converter | Apache License 2.0 |
src/main/kotlin/com/github/kory33/kalgebra/structures/instances/ring/IntRing.kt | kory33 | 135,460,140 | false | null | package com.github.kory33.kalgebra.structures.instances.ring
import com.github.kory33.kalgebra.structures.Ring
import com.github.kory33.kalgebra.structures.instances.group.IntAdditiveGroup
import com.github.kory33.kalgebra.structures.instances.monoid.IntMultiplicativeMonoid
class IntRing(value: Int): Ring<Int, IntRin... | 0 | Kotlin | 0 | 2 | ae2420a27ef848c13fd5728d6c5cfeae3901f905 | 505 | Kalgebra | MIT License |
plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/popup/handlers/CodeWhispererPopupTypedHandler.kt | aws | 91,485,909 | false | {"Kotlin": 7507266, "TypeScript": 132101, "C#": 97693, "Vue": 47529, "Java": 19596, "JavaScript": 12450, "HTML": 5878, "Python": 2939, "Shell": 2920, "Dockerfile": 2209, "SCSS": 2045, "CSS": 1827, "PowerShell": 386, "Batchfile": 77} | // Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.codewhisperer.popup.handlers
import com.intellij.openapi.actionSystem.DataContext
import com.intellij.openapi.application.ApplicationManager
import com.int... | 519 | Kotlin | 220 | 757 | a81caf64a293b59056cef3f8a6f1c977be46937e | 1,988 | aws-toolkit-jetbrains | Apache License 2.0 |
examples/src/tl/telegram/ShippingOption.kt | andreypfau | 719,064,910 | false | {"Kotlin": 62259} | // This file is generated by TLGenerator.kt
// Do not edit manually!
package tl.telegram
import io.github.andreypfau.tl.serialization.TLCombinatorId
import kotlin.jvm.JvmName
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
@SerialName("shippingOption")
@TLCombinatorId(0... | 0 | Kotlin | 0 | 1 | 11f05ad1f977235e3e360cd6f6ada6f26993208e | 575 | tl-kotlin | MIT License |
core/src/main/java/com/fightpandemics/core/dagger/CoreComponent.kt | FightPandemics | 261,618,622 | false | null | package com.fightpandemics.core.dagger
import com.fightpandemics.core.dagger.module.ContextModule
import com.fightpandemics.core.dagger.module.DataModule
import com.fightpandemics.core.dagger.module.DatabaseModule
import com.fightpandemics.core.dagger.module.NetworkModule
import com.fightpandemics.core.dagger.module.R... | 45 | Kotlin | 12 | 14 | c054328e374cc6ffa38881165769bf0d84b417c4 | 2,223 | FightPandemics-android | MIT License |
app-tracking-protection/app-tracking-api/src/main/java/com/duckduckgo/mobile/android/app/tracking/AppTrackerDetector.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11626231, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} |
package com.duckduckgo.mobile.android.app.tracking
import androidx.annotation.WorkerThread
interface AppTrackerDetector {
/**
* Evaluates whether the specified domain requested by the specified uid is a tracker.
* This method should be called off the UI thread.
*
* @param domain the domain t... | 0 | Kotlin | 0 | 0 | b89591136b60933d6a03fac43a38ee183116b7f8 | 756 | DuckDuckGo | Apache License 2.0 |
app/src/androidTest/java/org/rfcx/incidents/ResponseDbTest.kt | rfcx | 104,899,135 | false | {"Kotlin": 1176262, "Java": 1049} | package org.rfcx.incidents
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import io.realm.Realm
import io.realm.RealmConfiguration
import org.junit.Assert
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.rfcx.incidents.data.local.ResponseDb
import org.rfcx.incidents.en... | 30 | Kotlin | 0 | 0 | cbcb9402733a959104aff97f26d04244b73bc109 | 2,348 | guardian-app-android | Apache License 2.0 |
app/src/main/java/com/tomaszrykala/midionandroid/midi/MidiController.kt | tomaszrykala | 127,637,090 | false | null | package com.tomaszrykala.midionandroid.midi
import android.app.Application
import android.arch.lifecycle.AndroidViewModel
import android.arch.lifecycle.LifecycleOwner
import android.arch.lifecycle.Observer
import android.content.Context
import android.media.midi.MidiDevice
import android.media.midi.MidiDeviceInfo
impo... | 1 | Kotlin | 0 | 1 | cd6bd3dcf17ffe3f307d821558df6edbf3755b14 | 2,125 | MidiOnAndroid | Apache License 2.0 |
backend/src/test/kotlin/fr/gouv/cacem/monitorenv/infrastructure/api/endpoints/bff/SemaphoresITests.kt | MTES-MCT | 462,794,012 | false | {"TypeScript": 1358478, "Kotlin": 815514, "Python": 209694, "Shell": 21375, "CSS": 19997, "JavaScript": 8409, "Makefile": 8169, "Dockerfile": 6554, "PLpgSQL": 4966, "HTML": 864} | package fr.gouv.cacem.monitorenv.infrastructure.api.endpoints.bff
import fr.gouv.cacem.monitorenv.config.MapperConfiguration
import fr.gouv.cacem.monitorenv.config.WebSecurityConfig
import fr.gouv.cacem.monitorenv.domain.entities.semaphore.SemaphoreEntity
import fr.gouv.cacem.monitorenv.domain.use_cases.semaphores.Get... | 190 | TypeScript | 1 | 3 | f755ce65909e473e564ff5e273b9b4930e82ad4d | 3,425 | monitorenv | MIT License |
src/main/kotlin/org/sjoblomj/adventofcode/day4/Day4.kt | sjoblomj | 161,537,410 | false | null | package org.sjoblomj.adventofcode.day4
import org.sjoblomj.adventofcode.readFile
import java.time.format.DateTimeFormatter
import kotlin.system.measureTimeMillis
private const val inputFile = "src/main/resources/inputs/day4.txt"
fun day4() {
println("== DAY 4 ==")
val timeTaken = measureTimeMillis { calculateAn... | 0 | Kotlin | 0 | 0 | 80db7e7029dace244a05f7e6327accb212d369cc | 3,988 | adventofcode2018 | MIT License |
app/src/main/java/io/github/durun/timestampcalendar/ui/SettingsActivity.kt | Durun | 453,370,169 | false | null | package io.github.durun.timestampcalendar.ui
import android.app.Activity
import android.app.AlertDialog
import android.app.ProgressDialog
import android.os.Bundle
import android.os.Looper
import android.view.View
import android.widget.Toast
import androidx.activity.result.contract.ActivityResultContracts
import androi... | 0 | Kotlin | 0 | 0 | 23c9c8a68f7512b2ad3b81ccf026925fc4c28d32 | 7,947 | timestamp-calendar | MIT License |
json-builder/kotlin/src/generated/kotlin/divkit/dsl/InputValidator.kt | divkit | 523,491,444 | false | {"Kotlin": 7327303, "Swift": 5164616, "Svelte": 1148832, "TypeScript": 912803, "Dart": 630920, "Python": 536031, "Java": 507940, "JavaScript": 152546, "CSS": 37870, "HTML": 23434, "C++": 20911, "CMake": 18677, "Shell": 8895, "PEG.js": 7210, "Ruby": 3723, "C": 1425, "Objective-C": 38} | @file:Suppress(
"unused",
"UNUSED_PARAMETER",
)
package divkit.dsl
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonValue
import divkit.dsl.annotation.*
import divkit.dsl.core.*
import divkit.dsl.scope.*
import... | 5 | Kotlin | 128 | 2,240 | dd102394ed7b240ace9eaef9228567f98e54d9cf | 615 | divkit | Apache License 2.0 |
app/src/main/java/com/cards/coverflow/CoverFlowAdapter.kt | kamleshsangani | 585,285,017 | false | null | package com.cards.coverflow
import android.content.Context
import android.graphics.Color
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.recyclerview.widget.RecyclerView
imp... | 0 | Kotlin | 0 | 0 | facc41cf38710db94c03ea12734f18312c0ce49d | 2,023 | CardSwipe | Apache License 2.0 |
src/main/java/thedarkcolour/futuremc/entity/fish/EntityGroupFish.kt | Sepera-okeq | 257,567,349 | false | {"Text": 2, "Java Properties": 1, "Gradle": 1, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "INI": 1, "Kotlin": 123, "Java": 71, "JSON": 372, "HAProxy": 1} | package thedarkcolour.futuremc.entity.fish
import net.minecraft.entity.IEntityLivingData
import net.minecraft.entity.ai.EntityAIBase
import net.minecraft.world.DifficultyInstance
import net.minecraft.world.World
import java.util.stream.Stream
abstract class EntityGroupFish(worldIn: World) : EntityFish(worldIn) {
... | 1 | null | 1 | 1 | b343d2a134eab9575b1f9b45422862b2e964e74a | 4,402 | Future-MC | FSF All Permissive License |
src/main/kotlin/org/snd/mediaserver/model/mediaserver/MediaServerLibrary.kt | Snd-R | 463,859,568 | false | null | package org.snd.mediaserver.model.mediaserver
data class MediaServerLibrary(
val id: MediaServerLibraryId,
val name: String,
val roots: Collection<String>,
)
| 11 | Kotlin | 9 | 99 | 0584078f460c5d8c7b740bbe77905fab1c0ad105 | 171 | komf | MIT License |
Common/src/main/java/cn/afternode/matrilib/core/MotionData.kt | tumuidle | 609,710,313 | false | null | package cn.afternode.matrilib.core
import org.bukkit.Location
data class MotionData(
val motionX: Double = 0.0, val motionY: Double = 0.0, val motionZ: Double = 0.0, val baseLoc: Location,
val onGround: Boolean = true)
| 0 | Kotlin | 0 | 1 | 28f7698034cbd0314d67992d209d545aab435aed | 229 | MatriLib | MIT License |
graphics/src/main/kotlin/matt/fx/graphics/wrapper/node/line/arc/arc.kt | mgroth0 | 497,866,693 | false | {"Kotlin": 1308654} | package matt.fx.graphics.wrapper.node.line.arc
import javafx.scene.Parent
import javafx.scene.shape.Arc
import matt.fx.graphics.wrapper.node.impl.NodeWrapperImpl
import matt.fx.graphics.wrapper.node.attachTo
import matt.fx.graphics.wrapper.node.shape.ShapeWrapper
fun NodeWrapperImpl<Parent>.arc(
centerX: Number = 0... | 0 | Kotlin | 0 | 0 | 496b4c03add27fc2825099b5454a05f0493c06ce | 1,110 | fx | MIT License |
src/main/kotlin/dev/ufer/model/DocumentType.kt | NickUfer | 313,388,092 | false | null | package dev.ufer.model
enum class DocumentType(val value: String) {
DOCUMENT_TYPE("DocumentType"),
COLLECTION_TYPE("CollectionType"),
EMPTY("");
}
| 0 | Kotlin | 0 | 0 | af459e44f7e956919000dd633e817bdf4071687d | 160 | remarkable-privatecloud | MIT License |
src/main/kotlin/nl/mitchelnijdam/kafkaretrytest/configuration/KafkaBatchConsumerConfiguration.kt | MitchelNijdam-Rockstars | 224,873,136 | false | null | package nl.mitchelnijdam.kafkaretrytest.configuration
import nl.mitchelnijdam.kafkaretrytest.exception.TransientException
import nl.mitchelnijdam.kafkaretrytest.kafka.error.SimpleCustomBatchErrorHandler
import nl.mitchelnijdam.kafkaretrytest.kafka.error.ExtensiveCustomBatchErrorHandler
import org.springframework.conte... | 0 | Kotlin | 1 | 4 | b3890ee905cb92c7cf6365afa6ea16792b4aeaf6 | 3,545 | kafka-retry-demo | Apache License 2.0 |
app/src/main/java/com/example/composeshoppinglist/MainActivity.kt | LasseHindsberg | 861,428,572 | false | {"Kotlin": 9482} | package com.example.composeshoppinglist
import android.content.Context
import android.os.Build
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.clickable
import androidx.compose.f... | 0 | Kotlin | 0 | 0 | 01ddff9ffd635b2e82c2d5710ba2370bc6884c48 | 5,425 | ComposeShoppingListBasic | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.