path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/test/java/com/kansus/teammaker/AndroidAssertions.kt | CharlesNascimento | 181,741,814 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 80, "XML": 30, "Java": 1} | @file:JvmName("AndroidAssertions")
@file:JvmMultifileClass
package com.kansus.teammaker
import androidx.appcompat.app.AppCompatActivity
import org.amshove.kluent.shouldEqual
import org.robolectric.Robolectric
import org.robolectric.Shadows
import kotlin.reflect.KClass
infix fun KClass<out AppCompatActivity>.shouldNa... | 0 | Kotlin | 0 | 1 | db123b4e65d012eb65a2da4f787fa8ddf278e193 | 653 | TeamMaker | MIT License |
server/server/src/test/kotlin/org/jetbrains/bsp/bazel/server/sync/languages/rust/RustPackageResolverTest.kt | JetBrains | 826,262,028 | false | null | package org.jetbrains.bsp.bazel.server.sync.languages.rust
import io.kotest.matchers.collections.shouldContainExactlyInAnyOrder
import io.kotest.matchers.shouldBe
import io.kotest.matchers.shouldNotBe
import org.jetbrains.bsp.bazel.bazelrunner.utils.BasicBazelInfo
import org.jetbrains.bsp.bazel.bazelrunner.utils.Bazel... | 8 | null | 47 | 45 | 1d79484cfdf8fc31d3a4b214655e857214071723 | 2,931 | hirschgarten | Apache License 2.0 |
phoenix-shared/src/commonMain/kotlin/fr.acinq.phoenix/db/cloud/CloudAsset.kt | Chuck3CZ | 557,318,999 | true | {"C": 8424033, "Kotlin": 1664597, "Swift": 1181880, "Java": 39996, "HTML": 6151, "Dockerfile": 3572, "CMake": 2276, "CSS": 504} | package fr.acinq.phoenix.db.cloud
import fr.acinq.lightning.utils.currentTimestampMillis
import fr.acinq.phoenix.db.payments.LNUrlBase
import fr.acinq.phoenix.db.payments.LNUrlMetadata
import fr.acinq.phoenix.db.payments.LNUrlSuccessAction
import fr.acinq.phoenix.db.payments.WalletPaymentMetadataRow
import kotlinx.ser... | 0 | C | 0 | 0 | 0b014dca6b3fee71dc97e2f0218c31f0428dd877 | 4,138 | phoenix | Apache License 2.0 |
app/src/main/java/com/zenger/cookbook/viewmodels/DetailViewModel.kt | sarath940 | 391,105,083 | true | {"Kotlin": 122997} | package com.zenger.cookbook.viewmodels
import android.app.Application
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.zenger.cookbook.api.models.RecipeInstruction
import com.zenger.cookbook.api.state.Re... | 0 | null | 0 | 0 | eccdf2607ac0cd40827e4fa72220b03edceecf65 | 2,354 | CookBook | Apache License 2.0 |
src/main/kotlin/br/com/zup/edu/keymanager/chavepix/compartilhado/exceptions/ChavePixNaoEncontradaException.kt | jaacksonalves | 357,195,773 | true | {"Kotlin": 114558} | package br.com.zup.edu.keymanager.chavepix.compartilhado.exceptions
class ChavePixNaoEncontradaException(mensagem: String?) : RuntimeException(mensagem) {
} | 0 | Kotlin | 0 | 0 | e11f987f10675ce553549f6a1c24e404a7f29a3c | 157 | orange-talents-02-template-pix-keymanager-grpc | Apache License 2.0 |
crabzilla-pg-command/src/test/kotlin/io/github/crabzilla/example1/customer/model/CustomerEventModel.kt | crabzilla | 91,769,036 | false | {"Kotlin": 264917} | package io.github.crabzilla.example1.customer.model
import com.fasterxml.jackson.annotation.JsonIgnore
import io.github.crabzilla.example1.customer.model.CustomerEvent.CustomerActivated
import io.github.crabzilla.example1.customer.model.CustomerEvent.CustomerDeactivated
import io.github.crabzilla.example1.customer.mod... | 0 | Kotlin | 8 | 68 | 92907edd8c64696ceeb0873b2d157f427336bdaf | 3,066 | crabzilla | Apache License 2.0 |
src/main/kotlin/oemer/aytteamforge/service/MatchHistoryService.kt | OeMA4 | 755,750,585 | false | {"Kotlin": 13211, "Vue": 6832, "TypeScript": 3810, "HTML": 340, "JavaScript": 296, "SCSS": 207} | package oemer.aytteamforge.service
import oemer.aytteamforge.model.MatchHistory
import oemer.aytteamforge.model.PlayerInformation
import oemer.aytteamforge.repository.PlayerRepository
import org.springframework.stereotype.Service
@Service
class MatchHistoryService(val playerRepository: PlayerRepository) {
fun ge... | 0 | Kotlin | 0 | 0 | 03ff7d4fb3470a811625d5749a12e3fd45465307 | 781 | ayt-teamforge | MIT License |
app/src/main/java/com/pnuema/android/githubprviewer/repos/ui/RepoActivity.kt | barnhill | 185,720,710 | false | {"Kotlin": 82327} | package com.pnuema.android.githubprviewer.repos.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import androi... | 0 | Kotlin | 0 | 0 | 5c0424c4154a910006c753f0738f470cfca53e98 | 3,425 | GithubPRViewer | Apache License 2.0 |
alchemy-core/src/commonMain/kotlin/com/alchemy/sdk/nft/model/TokenUri.kt | tguerin | 534,856,094 | false | null | package com.alchemy.sdk.nft.model
import kotlinx.serialization.Serializable
@Serializable
data class TokenUri(
/**
* URI for the location of the NFT's original metadata blob (ex: the original
* IPFS link).
*/
val raw: String,
/** Public gateway URI for the raw URI. Generally offers better ... | 4 | Kotlin | 0 | 3 | 9768a7ab07d9955e3036c32b1f4497527f237b34 | 362 | alchemy-sdk-kotlin | MIT License |
app/src/main/java/com/karthik/trimpark/base/di/AppModule.kt | Karthik2007 | 215,226,678 | false | null | package com.karthik.trimpark.base.di
import android.content.Context
import com.karthik.trimpark.base.TrimParkApplication
import com.karthik.trimpark.base.db.TrimParkDatabase
import com.karthik.trimpark.base.navigation.AppNavigator
import com.karthik.trimpark.base.util.CoroutineDispatcherProvider
import dagger.Module
i... | 0 | Kotlin | 0 | 0 | 77d35ad9991efc957908469592a56add2e98ccf8 | 1,015 | TrimPark | MIT License |
app/src/main/java/jp/kaleidot725/orbit/ui/components/organisms/DownloadingMessage.kt | kaleidot725 | 443,815,729 | false | {"Kotlin": 88694} | package jp.kaleidot725.orbit.ui.components.organisms
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.runtime.Composable
import androidx.co... | 0 | Kotlin | 6 | 45 | a632df1c8b711dcbd0ed78e7e697e4e018778fe1 | 1,181 | Jetpack-Compose-Orbit-MVI-Demo | MIT License |
app/src/main/java/com/example/androidweatherapp/model/WeatherForecast.kt | billwchoi | 764,306,117 | false | {"Kotlin": 49585} | package com.example.androidweatherapp.model
import com.google.gson.annotations.SerializedName
data class WeatherForecast(
val cod: String,
val message: Int,
val cnt: Int,
val list: List<WeatherItem>,
val city: City
)
data class WeatherItem(
val dt: Long,
val main: Main,
val weather: L... | 0 | Kotlin | 0 | 1 | 5d439d2562aef8638c744271682bc7db0fde1bd2 | 1,331 | AndroidWeatherApp | MIT License |
gradle-plugin/src/main/kotlin/io/github/mirkofelice/plugin/TestkitFolderDSL.kt | mirko-felice | 634,173,598 | false | null | /*
* Copyright (c) 2023, <NAME>. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for details.
*/
package io.github.mirkofelice.dsl.folder
/**
* Annotation to prevent using methods outside the TestkitFolder DSL.
*/
@DslMarker
annotation class TestkitFolderDSL
| 3 | Kotlin | 0 | 0 | 87ed21f16e0f48825ea7f880a475b9a43322a3b7 | 310 | gradle-plugin-testkit | MIT License |
app/src/main/java/com/sethchhim/kuboo_client/data/model/GlidePdf.kt | befora | 137,512,422 | false | null | package com.sethchhim.kuboo_client.data.model
import com.sethchhim.kuboo_remote.model.Book
data class GlidePdf(val book: Book, val position: Int, val width: Int, val height: Int, val singleInstance: Boolean = false) | 1 | Kotlin | 39 | 81 | 33e456344172eab96b136e30130c4125096f253d | 217 | Kuboo | Apache License 2.0 |
graphql-dgs/src/main/kotlin/com/netflix/graphql/dgs/internal/DgsDataLoaderRegistry.kt | Netflix | 317,375,887 | false | {"Kotlin": 1390890, "Java": 226285, "HTML": 14098, "Python": 8827, "TypeScript": 3328, "JavaScript": 2934, "Makefile": 1328} | /*
* Copyright 2023 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... | 94 | Kotlin | 275 | 2,958 | 8fb490c5b4f0aa012c998dd2855abc2301af6ee4 | 7,303 | dgs-framework | Apache License 2.0 |
core/src/main/kotlin/su/plo/voice/discs/utils/extend/Plugin.kt | plasmoapp | 608,080,208 | false | {"Kotlin": 83121, "Java": 172} | package su.plo.voice.discs.utils.extend
import kotlinx.coroutines.suspendCancellableCoroutine
import org.bukkit.Location
import org.bukkit.entity.Entity
import org.bukkit.plugin.Plugin
import su.plo.slib.spigot.util.SchedulerUtil
import kotlin.coroutines.resume
import kotlin.coroutines.resumeWithException
suspend fun... | 19 | Kotlin | 14 | 8 | 7483c37ae89a490a80b07e4c73b3f49f7fea07cb | 797 | pv-addon-discs | MIT License |
app/src/main/kotlin/com/github/quarck/gxustaalarmo/AlarmsStorage.kt | quarck | 144,605,676 | false | null |
package com.github.quarck.gxustaalarmo
import android.content.Context
import com.github.quarck.gxustaalarmo.models.Alarm
class AlarmsStorage(private val ctx: Context) : PersistentStorageBase(ctx, PREFS_NAME) {
fun getAlarmWithId(id: Int): Alarm? {
when (id) {
0 -> return alarm0
1... | 0 | Kotlin | 0 | 0 | fbdadcd963f3baf9715b7c551258fd573b75c55b | 2,779 | GxustaAlarmo | Apache License 2.0 |
2017/src/five/CorruptionChecksumChallengeTest.kt | Mattias1 | 116,139,424 | false | null | package five
import junit.framework.TestCase
import org.junit.Assert
import org.junit.Test
class CorruptionChecksumChallengeTest : TestCase() {
private val challenge: CorruptionChecksumChallenge = CorruptionChecksumChallenge()
@Test
fun testDifferenceChecksum_givenGrid() {
val input = arrayOf(
... | 0 | Kotlin | 0 | 0 | 6bcd889c6652681e243d493363eef1c2e57d35ef | 787 | advent-of-code | MIT License |
lib/src/main/kotlin/com/github/xingray/kotlinbase/config/Config.kt | XingRay | 869,362,227 | false | {"Kotlin": 407262} | package com.github.xingray.kotlinbase.config
import com.github.xingray.kotlinbase.config.annotations.ConfigType
import com.github.xingray.kotlinbase.config.annotations.Path
import com.github.xingray.kotlinbase.config.annotations.RealPath
import com.github.xingray.kotlinbase.config.annotations.UsePackageName
import com... | 0 | Kotlin | 0 | 0 | ffa17235978a5a1dc2024883b652f76c18e2ac4e | 6,146 | kotlin-base | Apache License 2.0 |
app/src/main/java/app/cybrid/demoapp/ui/listComponents/entity/Component.kt | Cybrid-app | 498,874,863 | false | null | package app.cybrid.demoapp.ui.listComponents.entity
class Component() {
var id: Int = 0
var name: String = ""
constructor(id: Int, name: String) : this() {
this.id = id
this.name = name
}
companion object {
fun getComponents(): ArrayList<Component> {
val com... | 12 | Kotlin | 0 | 4 | 1607f4596a7e188ec7e7105001323d4917e7a046 | 1,170 | cybrid-sdk-android | Apache License 2.0 |
Hyperion/src/main/java/com/helios/hyperion/core/parsers/command.kt | team5009 | 706,929,299 | true | {"Java Properties": 1, "Gradle": 7, "Shell": 1, "Markdown": 7, "Batchfile": 1, "Text": 4, "Ignore List": 2, "INI": 1, "XML": 20, "Java": 53, "Proguard": 1, "Kotlin": 23, "JSON": 3} | package com.helios.hyperion.core.parsers
import com.helios.hyperion.core.readers.CSVReader
class command {
fun parseCommand() {}
} | 0 | Java | 1 | 1 | 90954ed85dfde0f476cae3a70260cabee67b3d00 | 133 | Hyperion | BSD 3-Clause Clear License |
http4k-contract/openapi/src/main/kotlin/org/http4k/contract/security/OpenIdConnectSecurity.kt | http4k | 86,003,479 | false | {"Shell": 13, "Gradle Kotlin DSL": 93, "Text": 12, "JSON": 6, "Markdown": 121, "Java Properties": 3, "INI": 2, "Ignore List": 2, "Batchfile": 1, "EditorConfig": 1, "Kotlin": 1374, "XML": 5, "JavaScript": 9, "HTML": 38, "Java": 27, "TOML": 1, "YAML": 13, "Handlebars": 15, "SVG": 38, "CSS": 5, "OASv3-json": 3, "HTTP": 1,... | package org.http4k.contract.security
import org.http4k.core.Filter
import org.http4k.core.Uri
class OpenIdConnectSecurity(
val discoveryUrl: Uri,
override val filter: Filter,
val name: String = "openIdConnect"
) : Security {
companion object
}
| 34 | Kotlin | 242 | 2,523 | 4b5b0765d29ff42b091fa01e956140e1cc2b89f4 | 262 | http4k | Apache License 2.0 |
src/main/kotlin/se/asynkron/Hello.kt | vasily-kirichenko | 96,920,026 | true | {"Kotlin": 38913} | package se.asynkron
import kotlinx.coroutines.experimental.CommonPool
import proto.actor.*
fun main(args: Array<String>) {
val prop = fromFunc { ctx ->
//this runs as a suspended func
val m = ctx.message
when (m) {
is Started -> println("started")
is String -> {
... | 0 | Kotlin | 0 | 0 | b64298f6710b779b7a96177f58134f98d13832c7 | 721 | protoactor-kotlin | Apache License 2.0 |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/presencetracing/organizer/category/adapter/category/TraceLocationCategory.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.ui.presencetracing.organizer.category.adapter.category
import android.os.Parcelable
import androidx.annotation.StringRes
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.server.protocols.internal.pt.TraceLocationOuterClass
import de.rki.coronawarnapp.server.protocols.internal.pt.T... | 6 | null | 514 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 5,690 | cwa-app-android | Apache License 2.0 |
application/src/test/kotlin/com/lukinhasssss/admin/catalogo/application/category/retrieve/list/ListCategoriesUseCaseTest.kt | Lukinhasssss | 551,493,782 | false | {"Kotlin": 834862, "Dockerfile": 2432, "Shell": 1173} | package com.lukinhasssss.admin.catalogo.application.category.retrieve.list
import com.lukinhasssss.admin.catalogo.application.UseCaseTest
import com.lukinhasssss.admin.catalogo.domain.category.Category
import com.lukinhasssss.admin.catalogo.domain.category.CategoryGateway
import com.lukinhasssss.admin.catalogo.domain.... | 0 | Kotlin | 0 | 5 | ee995fccc4d8413c0cee7fcd4d6351994df03670 | 3,945 | admin-catalogo-de-videos-kotlin | MIT License |
src/main/kotlin/cz/tskopec/shiftscheduler/control/commands/BuildPlanCommand.kt | tskopec | 642,353,891 | false | null | package cz.tskopec.shiftscheduler.control.commands
import cz.tskopec.shiftscheduler.domain.Scheduler
import cz.tskopec.shiftscheduler.domain.builder.PlanBuilder
import cz.tskopec.shiftscheduler.domain.entities.ScheduleDay
import cz.tskopec.shiftscheduler.ui.viewmodel.plan.DateCellsModel
import javafx.concurrent.Task
i... | 0 | Kotlin | 0 | 0 | 39ab759265c121f468dbe27fad8fdb8eb2f806f2 | 1,582 | shift-scheduler | MIT License |
app/src/main/java/taokdao/plugins/engine/rhino/controller/FileBuilderController.kt | TIIEHenry | 287,228,001 | false | {"Gradle": 3, "Java Properties": 2, "Text": 1, "Ignore List": 2, "Git Attributes": 1, "Markdown": 2, "INI": 1, "XML": 10, "Java": 4, "Kotlin": 12, "JSON": 1, "JavaScript": 9, "CSS": 2} | package taokdao.plugins.engine.rhino.controller
import taokdao.api.file.build.FileBuilderPool
import taokdao.api.main.IMainContext
import taokdao.api.plugin.bean.PluginManifest
import taokdao.api.plugin.entrance.BaseDynamicPluginEntrance
import taokdao.plugins.engine.rhino.builder.filebuilders.RhinoBuilder
class File... | 0 | JavaScript | 0 | 0 | d312581509c93fc7cdde5351c2c8f8dde7ae9f21 | 846 | TaoKDao-APK_Plugin-RhinoEngine | Apache License 2.0 |
src/me/anno/graph/types/flow/maths/MathLNodes.kt | AntonioNoack | 456,513,348 | false | {"Kotlin": 9802672, "C": 235991, "Java": 6754, "Lua": 4404, "GLSL": 2698} | package me.anno.graph.types.flow.maths
import me.anno.graph.EnumNode
val dataL1 = MathNode.MathNodeData(
IntMathsUnary.entries,
listOf("Long"), "Long",
{ it.id }, { it.glsl }
)
class MathL1Node : MathNode<IntMathsUnary>(dataL1), EnumNode, GLSLFuncNode {
override fun compute() {
setOutput(0, t... | 0 | Kotlin | 3 | 19 | cb661e030583969289676559bf4de3403a13e734 | 1,029 | RemsEngine | Apache License 2.0 |
app/src/main/java/com/bernardopereira/catanmapgenerator/ui/util/ResourceUtils.kt | bernaspereirix | 854,202,396 | false | {"Kotlin": 24546} | package com.bernardopereira.catanmapgenerator.ui.util
import com.bernardopereira.catanmapgenerator.R
import com.bernardopereira.catanmapgenerator.data.entity.TileType
object ResourceUtils {
fun getTileBackgroundImage(tileType: TileType): Int {
return when (tileType) {
TileType.DESERT -> R.draw... | 0 | Kotlin | 0 | 0 | 475a65ab2a41a5b44d8a686f45a3b2d039f5a2b0 | 608 | catan-map-generator | MIT License |
src/main/kotlin/org/mvnsearch/plugins/wit/lang/format/WitFormattingModelBuilder.kt | linux-china | 602,892,689 | false | null | package org.mvnsearch.plugins.wit.lang.format
import com.intellij.formatting.*
import com.intellij.psi.codeStyle.CodeStyleSettings
import org.mvnsearch.plugins.wit.lang.WitLanguage
import org.mvnsearch.plugins.wit.lang.psi.WitTypes
class WitFormattingModelBuilder : FormattingModelBuilder {
private fun SpacingBui... | 1 | Kotlin | 0 | 4 | 748538c795cba8a382b47597dd5000ed1ee12ea5 | 1,297 | wit-jetbrains-plugin | Apache License 2.0 |
app/src/main/java/com/kgdeveloping/securenote/about.kt | kgodinho | 283,556,900 | false | {"Kotlin": 30739} | package com.kgdeveloping.securenote
import android.app.Activity
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.method.LinkMovementMethod
import kotlinx.android.synthetic.main.activity_about.*
import kotlinx.android.synthetic.main.activity_note_update.*
import kotlinx.andro... | 0 | Kotlin | 0 | 0 | cef492f67029832032cd0e485aa70915a506af03 | 1,063 | Secure_Note | MIT License |
app/src/main/java/com/jerry/wuwen/ui/video/VideoFragment2.kt | Jerry-bear | 340,545,094 | false | {"C++": 4639944, "Java": 2854887, "C": 390799, "CMake": 377561, "Kotlin": 237623, "Objective-C": 7449, "HTML": 6526, "Makefile": 5283, "AIDL": 995} | package com.jamesnyakush.carhub.ui.home.settings.account
import androidx.lifecycle.ViewModelProviders
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.jamesnyakush.carhub.R
class Account : Fragment() {
... | 0 | C++ | 0 | 1 | 8be229fd6375047c956c2d00006724b5516367c1 | 910 | WuWen2 | Apache License 2.0 |
octicons/src/commonMain/kotlin/compose/icons/octicons/Share16.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.octicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
import a... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 3,078 | compose-icons | MIT License |
plugin-animation/src/main/java/com/mapbox/maps/plugin/animation/CameraAnimationsPluginImpl.kt | willgan916 | 408,637,684 | true | {"Kotlin": 1873962, "Java": 53692, "Shell": 16849, "Python": 11569, "C++": 10129, "JavaScript": 4344, "Makefile": 3644, "CMake": 1201, "EJS": 1194} | package com.mapbox.maps.plugin.animation
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.animation.AnimatorSet
import android.animation.ValueAnimator
import android.os.Handler
import android.os.Looper
import androidx.annotation.VisibleForTesting
import androidx.annotat... | 0 | null | 0 | 0 | bbb10a2090d3668522fdf815d5aec15db56bc067 | 30,660 | mapbox-maps-android | Apache License 2.0 |
app/src/main/java/com/fruitPunchSamurai/firechat/repos/MainRepo.kt | Yaya-Dev-Box | 307,112,262 | false | {"Kotlin": 68255} | package com.fruitPunchSamurai.firechat.repos
import android.content.Context
import android.net.Uri
import com.fruitPunchSamurai.firechat.models.LastMessage
import com.fruitPunchSamurai.firechat.models.Message
import com.fruitPunchSamurai.firechat.models.User
import com.google.firebase.firestore.ktx.toObject
class Mai... | 0 | Kotlin | 1 | 0 | a345c15bea448dab00e430db71f5c2300a9e9a19 | 1,590 | FireChat | The Unlicense |
app/src/main/java/com/example/beerfull/presentation/common/SearchBar.kt | ericpaulxp | 762,750,804 | false | {"Kotlin": 73166} | package com.example.beerfull.presentation.common
import android.content.res.Configuration
import androidx.compose.foundation.border
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.interaction.collectIsPressedAsState
import androidx.compose.foundation.isSystemI... | 0 | Kotlin | 0 | 0 | 9565935b3be68dd609ed5283743c5722afc8dff8 | 3,792 | beerfull | MIT License |
validator-server/src/main/kotlin/science/numcompass/conformance/fhir/chain/Validators.kt | NUMde | 391,039,823 | false | null | package science.numcompass.conformance.fhir.chain
import ca.uhn.fhir.context.FhirContext
import ca.uhn.fhir.context.support.DefaultProfileValidationSupport
import ca.uhn.fhir.jpa.dao.JpaPersistedResourceValidationSupport
import ca.uhn.fhir.jpa.packages.NpmJpaValidationSupport
import ca.uhn.fhir.jpa.term.TermConceptMap... | 1 | Kotlin | 2 | 0 | 037367c0bace7dc498284cd9b974462227494bb4 | 1,834 | compass-num-conformance-checker | MIT License |
app/src/main/java/com/avi5hek/surveys/core/di/module/NetworkModule.kt | AVI5HEK | 284,445,957 | false | null | package com.avi5hek.surveys.core.di.module
import com.avi5hek.surveys.BuildConfig
import com.avi5hek.surveys.core.GsonUtcDateAdapter
import com.avi5hek.surveys.core.SurveyTokenAuthenticator
import com.avi5hek.surveys.core.di.qualifier.HostApiQualifier
import com.avi5hek.surveys.core.scheduler.SchedulerProvider
import ... | 2 | Kotlin | 0 | 1 | 4b453b3a8be9c7a61b6c5a79477a0d779c001a6a | 3,865 | surveys | MIT License |
app/src/main/kotlin/me/miguelos/sample/presentation/ui/MainActivity.kt | Miguelos | 322,249,301 | false | null | package me.miguelos.sample.presentation.ui
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.NavController
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.setupWithNavController
import ... | 0 | Kotlin | 0 | 0 | 39465632a576f48459ca165ad5ed20862571cd5c | 1,210 | Android-Marvel-List | Apache License 2.0 |
src/main/kotlin/jsonify/DeKotlinxMe.kt | votez | 254,347,366 | false | null | package jsonify
import kotlinx.serialization.ImplicitReflectionSerializer
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonConfiguration
import kotlinx.serialization.parse
import kotlinx.serialization.parseList
@ImplicitReflectionSerializer
fun main() {
val json = Json(JsonConfiguratio... | 0 | Kotlin | 0 | 0 | b52f59efcdf23d66ca21f8c15fd97eee94a4ee1a | 475 | kotlin-json-benchmark | Apache License 2.0 |
app/src/main/java/com/czq/kotlinarch/data/remote/MockDataRepository.kt | aer874475222 | 351,711,711 | true | {"Kotlin": 89330, "Java": 46947} | package com.czq.kotlinarch.data.remote
import com.alibaba.fastjson.TypeReference
import com.czq.kotlin_arch.common.util.MockUtil
import com.czq.kotlinarch.App
import com.czq.kotlinarch.data.model.*
import com.google.gson.reflect.TypeToken
import io.reactivex.rxjava3.core.Observable
import java.util.concurrent.TimeUnit... | 0 | Kotlin | 0 | 0 | 4a1ac0dcd9c6f086413f461d556a61a0abb65cae | 1,775 | kotlinArch | MIT License |
app/src/main/java/ramos/diego/calculaaposentadoria/MainActivity.kt | DiegoFortRamos | 704,682,585 | false | {"Kotlin": 2368} | package ramos.diego.calculaaposentadoria
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ArrayAdapter
import android.widget.Button
import android.widget.EditText
import android.widget.Spinner
import android.widget.TextView
class MainActivity : AppCompatActivity() {
o... | 0 | Kotlin | 0 | 0 | 2158bc70a218c541af3c656d1adba402d9cd39ef | 1,320 | Calculo-Aposentadoria | MIT License |
src/main/kotlin/com/thermondo/usecase/abstraction/IDomainRepository.kt | TheBunksTie | 602,194,368 | false | null | package com.thermondo.usecase.abstraction
import com.thermondo.domain.abstraction.IDomainEntity
/**
* Marker interface for [IDomainEntity]-storing repository
* @param T actual stored type of repository, derived from [IDomainEntity]
*/
interface IDomainRepository<T : IDomainEntity> : IRepository<T>
| 4 | Kotlin | 0 | 0 | 6b6b2c19c62ebe39360b65762fc9de04c882073a | 304 | note-taking-app-backend | MIT License |
feature-wallet-impl/src/main/java/io/novafoundation/nova/feature_wallet_impl/data/network/blockchain/assets/history/realtime/substrate/hydraDx/BaseHydraDxSwapExtractor.kt | novasamatech | 415,834,480 | false | {"Kotlin": 10814880, "Rust": 25308, "Java": 17664, "JavaScript": 425} | package io.novafoundation.nova.feature_wallet_impl.data.network.blockchain.assets.history.realtime.substrate.hydraDx
import io.novafoundation.nova.common.data.network.runtime.binding.bindNumber
import io.novafoundation.nova.common.utils.Modules
import io.novafoundation.nova.feature_wallet_api.data.network.blockhain.as... | 13 | Kotlin | 7 | 37 | a50a3638e827e4267a1a4d3ef3db9c88501ffe51 | 3,337 | nova-wallet-android | Apache License 2.0 |
feature-onboarding-impl/src/main/java/jp/co/soramitsu/feature_onboarding_impl/presentation/welcome/WelcomeFragment.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.feature_onboarding_impl.presentation.welcome
import android.graphics.Color
import android.os.Bundle
import android.text.method.LinkMovementMethod
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import jp.co.soramitsu.common.base.BaseFragment
import jp.c... | 3 | Kotlin | 14 | 53 | 6dafcbd972c4b510328feaf7459eefe76cab2075 | 3,434 | fearless-Android | Apache License 2.0 |
src/main/kotlin/dk/cachet/carp/webservices/security/authentication/service/impl/AuthenticationServiceImpl.kt | cph-cachet | 674,650,033 | false | {"Kotlin": 658732, "HTML": 11277, "Shell": 2895, "Dockerfile": 922} | package dk.cachet.carp.webservices.security.authentication.service.impl
import dk.cachet.carp.webservices.common.exception.responses.UnauthorizedException
import dk.cachet.carp.webservices.security.authentication.domain.Account
import dk.cachet.carp.webservices.security.authentication.domain.AccountFactory
import dk.c... | 6 | Kotlin | 1 | 3 | c1c9bcee88a4ef8bcdb7319d4352a7403ebeed26 | 1,066 | carp-webservices-spring | MIT License |
network/src/main/kotlin/cn/labzen/cells/network/http/server/core/handler/converter/StringToDateConverting.kt | labzen | 461,753,481 | false | {"Kotlin": 405870, "Java": 345135, "HTML": 514} | package cn.labzen.cells.network.http.server.core.handler.converter
import cn.labzen.cells.core.feature.MultiTry
import cn.labzen.cells.network.http.server.core.handler.Converting
import java.text.SimpleDateFormat
import java.time.Instant
import java.util.*
class StringToDateConverting : Converting<String, Date> {
... | 0 | Kotlin | 0 | 0 | ede6a2694ed65993f3e761e8656c63ed2eafc752 | 959 | cells | Apache License 2.0 |
flank-scripts/src/main/kotlin/flank/scripts/shell/firebase/sdk/CommitList.kt | pawelpasterz | 238,654,715 | true | {"Kotlin": 1356149, "Java": 443138, "Swift": 40825, "Shell": 10796, "Objective-C": 9968, "HTML": 7235, "Gherkin": 4210, "TypeScript": 2717, "JavaScript": 1764, "Batchfile": 1434, "SCSS": 1365, "EJS": 1061, "Ruby": 918, "Dockerfile": 539, "Go": 159} | package flank.scripts.shell.firebase.sdk
import flank.scripts.github.getGitHubCommitList
import flank.scripts.github.objects.GitHubCommit
import java.time.Instant
import java.time.format.DateTimeFormatter
suspend fun getCommitsUntilLastCheck(token: String, until: String): String? = getGitHubCommitList(
githubToke... | 10 | Kotlin | 0 | 0 | 899340f8bfea81decbe9c7ee310d9becedef52d3 | 901 | flank | Apache License 2.0 |
tensorflow/src/main/kotlin/org/jetbrains/kotlinx/dl/api/core/layer/pooling/GlobalAvgPool3D.kt | Kotlin | 249,948,572 | false | {"Kotlin": 1599075, "Jupyter Notebook": 50439} | /*
* Copyright 2020-2022 JetBrains s.r.o. and Kotlin Deep Learning project contributors. All Rights Reserved.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
*/
package org.jetbrains.kotlinx.dl.api.core.layer.pooling
import org.jetbrains.kotlinx.dl.api.cor... | 81 | Kotlin | 102 | 1,418 | 0f36d1b481fc755a7108a34aaf7d8cc226bcc4eb | 1,434 | kotlindl | Apache License 2.0 |
src/main/kotlin/org/rust/lang/core/types/types/RustPrimitiveType.kt | torkleyy | 80,337,528 | false | {"Gradle": 2, "YAML": 2, "INI": 1, "Markdown": 6, "Shell": 2, "Text": 93, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "Java Properties": 1, "Rust": 360, "XML": 58, "HTML": 81, "RenderScript": 2, "TOML": 14, "Kotlin": 481, "Java": 5, "SVG": 3, "JFlex": 3} | package org.rust.lang.core.types.types
import com.intellij.openapi.project.Project
import org.rust.lang.core.psi.RsTraitItem
import org.rust.lang.core.types.RustType
interface RustPrimitiveType : RustType {
override fun getTraitsImplementedIn(project: Project): Sequence<RsTraitItem> =
emptySequence()
... | 1 | null | 1 | 1 | 9f545171d9c40b5e223e3c85a4d6bcdcb2aac3d0 | 935 | intellij-rust | MIT License |
app/src/main/java/com/example/inventory/datawedge/Scan.kt | scholtie | 461,916,008 | false | null | package com.example.inventory
import java.io.Serializable
class Scan(val data: String, val symbology: String, val dateTime: String) :
Serializable | 1 | Kotlin | 0 | 0 | 59dc8df5b7de4bab242cb8131186329e7a564ea1 | 152 | HcInventoryApp | Apache License 2.0 |
kmm-form-validation/src/commonMain/kotlin/ru/mobileup/kmm_form_validation/options/VisualTransformation.kt | MobileUpLLC | 596,449,164 | false | null | package ru.mobileup.kmm_form_validation.options
interface VisualTransformation {
/**
* Change the visual output of given text.
*
* Note that the returned text length can be different length from the given text. The composable
* will call the offset translator for converting offsets for various ... | 1 | Kotlin | 0 | 1 | 6db202e52b9c60644f61e5c915d1c601337199cf | 1,614 | KMM-Form-Validation | MIT License |
Lab 7/src/main/kotlin/DoubleArrayUnilities.kt | knu-3-tochanenko | 273,870,242 | false | null | operator fun DoubleArray.plus(array: DoubleArray): DoubleArray {
val size = Math.max(this.size, array.size)
val result = DoubleArray(size) { 0.0 }
for (i in 1..this.size)
result[size - i] += this[this.size - i]
for (i in 1..array.size)
result[size - i] += array[array.size - i]
retur... | 0 | Kotlin | 0 | 0 | 84818b225f1aa4812cc5515d6fdda31d9d373e86 | 2,022 | NumericalMethods | MIT License |
network/src/main/kotlin/straightway/peerspace/net/PendingQueryTracker.kt | cryptobuks | 141,508,151 | true | {"Kotlin": 249965} | /*
* Copyright 2016 github.com/straightway
*
* 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... | 0 | Kotlin | 0 | 0 | 972b9d4e5827ef656d589c9cd5aee7cb3c82a766 | 1,308 | peerspace | Apache License 2.0 |
admin/src/jsMain/kotlin/ant/Dayjs.kt | DXueShengKa | 846,092,089 | false | {"Kotlin": 115017, "Swift": 621, "HTML": 362, "CSS": 221, "PLpgSQL": 202} | @file:JsModule("dayjs")
package ant
external class Dayjs {
// fun locale(locale: String): Dayjs
fun locale(): String
}
external val dayjs: Dayjs | 0 | Kotlin | 0 | 0 | 72da05b14e0caa95fa579bc63853932ed0d76aab | 155 | AllInKt | Apache License 2.0 |
core/preferences/src/jvmMain/kotlin/dev/avatsav/linkding/prefs/inject/PreferencesPlatformComponent.kt | avatsav | 576,855,763 | false | {"Kotlin": 255958, "Swift": 2031} | package dev.avatsav.linkding.prefs.inject
import com.russhwolf.settings.ObservableSettings
import com.russhwolf.settings.PreferencesSettings
import dev.avatsav.linkding.inject.AppScope
import dev.avatsav.linkding.inject.annotations.SingleIn
import me.tatarka.inject.annotations.Provides
import java.util.prefs.Preferenc... | 2 | Kotlin | 0 | 9 | 73518b1652503edc4ba4323922281bc616a6be8f | 518 | linkding-apps | MIT License |
cloud/src/main/kotlin/xyz/luccboy/noobcloud/console/Command.kt | NoobCloudSystems | 518,232,292 | false | {"Kotlin": 155606, "Shell": 69, "Batchfile": 45} | package xyz.luccboy.noobcloud.console
import org.jline.builtins.Completers.TreeCompleter.Node
interface Command {
val name: String
val description: String
val aliases: Array<String>
val completer: Node
fun execute(args: Array<String>)
} | 1 | Kotlin | 2 | 3 | 0ecea76f391fa60bec8d7e924af45922543093c3 | 258 | NoobCloud | Apache License 2.0 |
kubernetes/dsl/src/main/kotlin-gen/com/fkorotkov/openshift/serviceaccounts.kt | ichaki5748 | 124,968,379 | true | {"Kotlin": 309714} | // GENERATED
package com.fkorotkov.openshift
import io.fabric8.openshift.api.model.ServiceAccountRestriction
import kotlin.collections.List
fun ServiceAccountRestriction.`serviceaccount`(block: io.fabric8.openshift.api.model.ServiceAccountReference.() -> Unit = {}) {
val newObject = io.fabric8.openshift.api.model.... | 0 | Kotlin | 0 | 0 | b00b6ddb4b851a864a2737a3374603f7db659af7 | 409 | k8s-kotlin-dsl | MIT License |
nebulosa-phd2-client/src/main/kotlin/nebulosa/phd2/client/events/SettleDoneEvent.kt | tiagohm | 568,578,345 | false | {"Kotlin": 2741033, "TypeScript": 513674, "HTML": 249994, "JavaScript": 120539, "SCSS": 11332, "Python": 2817, "Makefile": 317} | package nebulosa.phd2.client.events
import com.fasterxml.jackson.annotation.JsonAlias
data class SettleDoneEvent(
@field:JsonAlias("Status") val status: Int = 0,
@field:JsonAlias("TotalFrames") val totalFrames: Int = 0,
@field:JsonAlias("DroppedFrames") val droppedFrames: Int = 0,
@field:JsonAlias("Er... | 29 | Kotlin | 2 | 4 | f228706acd2c83397198a7606c0d8fa349213845 | 364 | nebulosa | MIT License |
base/build-system/gradle-api/src/main/java/com/android/build/api/artifact/BuildArtifactType.kt | qiangxu1996 | 301,210,525 | false | {"Gradle Kotlin DSL": 2, "Shell": 29, "Markdown": 39, "Batchfile": 10, "Text": 287, "Ignore List": 47, "Java": 4790, "INI": 19, "XML": 1725, "Gradle": 543, "Starlark": 149, "JAR Manifest": 3, "Kotlin": 1462, "Ant Build System": 3, "HTML": 6, "Makefile": 12, "XSLT": 6, "CSS": 10, "Git Attributes": 2, "Protocol Buffer": ... | /*
* 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 | 1 | 3411c5436d0d34e6e2b84cbf0e9395ac8c55c9d4 | 1,177 | vmtrace | Apache License 2.0 |
http4k-core/src/test/kotlin/org/http4k/core/UriTest.kt | http4k | 86,003,479 | false | null | package org.http4k.core
import com.natpryce.hamkrest.assertion.assertThat
import com.natpryce.hamkrest.equalTo
import org.junit.jupiter.api.Assertions.assertNull
import org.junit.jupiter.api.Test
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.Arguments
import org.junit.jupit... | 34 | null | 249 | 2,615 | 7ad276aa9c48552a115a59178839477f34d486b1 | 9,866 | http4k | Apache License 2.0 |
factcast-schema-registry-cli/src/test/kotlin/org/factcast/schema/registry/cli/validation/validators/impl/ValidVersionFolderValidatorTest.kt | samba2 | 339,037,930 | true | {"Java": 1260691, "JavaScript": 332377, "CSS": 184146, "Kotlin": 183446, "HTML": 129589, "SCSS": 127358, "PLpgSQL": 3690, "Shell": 1748, "Dockerfile": 871} | package org.factcast.schema.registry.cli.validation.validators.impl
import io.kotlintest.shouldBe
import io.kotlintest.specs.StringSpec
import io.kotlintest.tables.forAll
import io.kotlintest.tables.headers
import io.kotlintest.tables.row
import io.kotlintest.tables.table
import java.nio.file.Paths
class ValidVersion... | 0 | Java | 1 | 0 | 45cdd19b69475d4bfc1272413ab4c0c6d75cb9b7 | 756 | factcast | Apache License 2.0 |
app/src/main/java/com/example/newbiechen/ireader/model/bean/TagBookBean.kt | EiChinn | 157,148,636 | true | {"Kotlin": 718783, "Java": 2313} | package com.example.newbiechen.ireader.model.bean
data class TagBookBean(
val _id: String,
val title: String,
val author: String,
val shortIntro: String,
val cover: String,
val cat: String,
val majorCate: String,
val minorCate: String,
val latelyF... | 1 | Kotlin | 1 | 1 | ab465c2cfc5af98c8da0927a81e4f6f27930fd32 | 435 | NovelReader | MIT License |
app/src/main/java/edu/fullerton/jd/workodoro/PreferencesDataStore.kt | jareddls | 658,175,268 | false | null | package edu.fullerton.jd.workodoro
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.*
import androidx.datastore.preferences.preferencesDataStoreFile
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.c... | 0 | Kotlin | 0 | 0 | 77b8a14581b9eef0e20e190787f75b7501031181 | 3,172 | Workodoro | MIT License |
src/test/kotlin/NullableObjectKtTest.kt | rhllor | 517,680,455 | false | {"Kotlin": 8615} | import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import com.github.rhllor.kThrow
import org.junit.jupiter.api.assertDoesNotThrow
import java.util.Objects
import kotlin.test.assertEquals
internal class NullableObjectKtTest {
@Test
fun `throw IllegalArgumentException when object is nu... | 0 | Kotlin | 0 | 0 | 52f19eef994086d59985bdfe644386ef0ecf525f | 935 | kThrow | MIT License |
app/src/main/java/com/alex/dashboarddemo/ui/dashboard/gsvcProductImageCard/GSVCProductImageCardModel.kt | blackbirdsr71br | 743,585,526 | false | {"Kotlin": 627385} | package com.alex.dashboarddemo.ui.dashboard.gsvcProductImageCard
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.AnnotatedString
import com.alex.dashboarddemo.R
import com.alex.dashboarddemo.ui.theme.GSVCBase100
data class GSVCProductImageCardImageModel(
val urlImage: Any,
val imageR... | 0 | Kotlin | 0 | 0 | 92a07a99ecf1a009d14ccd216e2d2b93a9991e2a | 1,743 | SupperApp20 | Apache License 2.0 |
app/src/main/java/com/example/coretraining/Workout.kt | WillVialaneix | 263,491,037 | false | null | package com.example.coretraining
object Workout {
var lengthSeconds: Int = 60
var nSets: Int = 1
var restLengthSeconds: Int = 30
} | 0 | Kotlin | 0 | 0 | 43e4496dfd2fdceafdb036a0c4d425c27916408b | 143 | CoreTraining | MIT License |
app/src/main/java/com/iamshekhargh/githubandroidapp/MyApplication.kt | iamShekharGH | 383,056,645 | false | null | package com.iamshekhargh.githubandroidapp
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
/**
* Created by <<-- iamShekharGH -->>
* on 04 July 2021, Sunday
* at 4:06 PM
*/
@HiltAndroidApp
class MyApplication : Application() {
} | 0 | Kotlin | 0 | 0 | 2ccd15b4296a4e1d27158e8abd4c114fa0de0efb | 258 | gtihub-android-app | MIT License |
interpolate/d2v-interpolate-common/src/main/kotlin/io/data2viz/interpolate/number.kt | yijunwu | 207,939,886 | true | {"Kotlin": 1700165, "JavaScript": 42307, "HTML": 38481, "Java": 386} | package io.data2viz.interpolate
import io.data2viz.math.*
import kotlin.math.round
/**
* An interpolator transforms a normalized continuous range (0% -> 100%) to an object T
*/
typealias Interpolator<T> = (Percent) -> T
/**
* An un-interpolator transforms an object T to a normalized continuous range (0% -> 100%)
... | 0 | null | 0 | 0 | 733f9ac458755ab065becd16d7f001be21080f59 | 945 | data2viz | Apache License 2.0 |
EyeBody2/app/src/main/java/com/example/android/eyebody/management/main/FullscreenGraphViewActivity.kt | EyeBody | 102,088,294 | false | {"Text": 6, "Ignore List": 4, "Markdown": 1, "Gradle": 7, "Java Properties": 5, "Shell": 2, "Batchfile": 2, "Proguard": 2, "Kotlin": 73, "XML": 148, "Java": 14, "JSON": 3} | package com.example.android.eyebody.management.main
import android.content.Intent
import android.graphics.Color
import android.graphics.DashPathEffect
import android.graphics.Paint
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.example.android.eyebody.R
import com.example.android.e... | 0 | Kotlin | 0 | 5 | f8f03fea57edb7a24f9051e901e2b18c0b843ef3 | 8,539 | EyeBody | MIT License |
app/src/main/java/com/example/sunnyweather/ui/place/PlaceFragment.kt | xule-max | 862,136,916 | false | {"Kotlin": 13770} | package com.example.sunnyweather.ui.place
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModel... | 0 | Kotlin | 0 | 0 | 69dca32c5beb44291c4f76faefd9d2e3996617c3 | 3,118 | SunnyWeather | Apache License 2.0 |
student/src/main/java/com/solutionteam/mindfulmentor/ui/profile/ProfileScreen.kt | DevSkillSeekers | 746,597,864 | false | {"Kotlin": 428206} | package com.solutionteam.mindfulmentor.ui.profile
import android.content.Context
import android.content.res.Configuration
import android.os.Build
import android.widget.Toast
import androidx.annotation.RequiresApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import... | 1 | Kotlin | 0 | 1 | 931d510724b2ae15fd6277988241bd229b7513ea | 6,311 | GradesFromGeeks | Apache License 2.0 |
android/app/src/androidTest/java/ch/rethinc/gastrocheckin/secretstore/SecretsStoreInMemory.kt | rethinc | 262,127,663 | false | {"Kotlin": 62379, "HTML": 47192, "CSS": 38292, "JavaScript": 21537, "Shell": 1028} | package ch.rethinc.gastrocheckin.secretstore
class SecretsStoreInMemory : SecretsStore {
private val secrets = mutableMapOf<String, String?>()
override fun secretForKey(key: String): String? =
secrets[key]
override fun storeSecretForKey(key: String, secret: String) {
secrets[key] = secre... | 14 | Kotlin | 0 | 3 | 9793d6bb87ec3a9f97c2d9b096e6d875c357e9dd | 550 | revisit | MIT License |
Corona-Warn-App/src/test/java/de/rki/coronawarnapp/ui/presencetracing/organizer/poster/QrCodePosterViewModelTest.kt | agigleux-limited | 368,849,842 | true | {"Kotlin": 4353686, "HTML": 305965, "Java": 11137, "Shell": 1232} | package de.rki.coronawarnapp.ui.presencetracing.organizer.poster
import android.graphics.Bitmap
import de.rki.coronawarnapp.presencetracing.checkins.qrcode.PosterTemplateProvider
import de.rki.coronawarnapp.presencetracing.checkins.qrcode.QrCodeGenerator
import de.rki.coronawarnapp.presencetracing.checkins.qrcode.Temp... | 0 | Kotlin | 1 | 0 | ee69ea77f5a010e21c94c14b230581cbd88dfb7e | 3,045 | cwa-app-android | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/ui/screens/content/ContentScreen.kt | sierraobryan | 393,197,960 | false | null | package com.example.androiddevchallenge.ui.screens.content
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import... | 0 | Kotlin | 1 | 1 | f8b4a24341290ddcf213bc05ca67456a95a065a4 | 1,471 | strapi-poc | Apache License 2.0 |
sdk/sdk-metrics/src/commonMain/kotlin/io/opentelemetry/kotlin/sdk/metrics/internal/descriptor/MetricDescriptor.kt | dcxp | 450,518,130 | false | {"Kotlin": 1483649} | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.kotlin.sdk.metrics.internal.descriptor
import io.opentelemetry.kotlin.sdk.metrics.common.InstrumentType
import io.opentelemetry.kotlin.sdk.metrics.common.InstrumentValueType
import io.opentelemetry.kotlin.sdk.... | 10 | Kotlin | 2 | 29 | 9c3186e26bd3ac78b650163be2c8f569096aaeec | 2,689 | opentelemetry-kotlin | Apache License 2.0 |
subprojects/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/delegates/ArtifactHandlerDelegate.kt | Verdinjoshua26 | 187,253,049 | false | null | /*
* Copyright 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 2,663 | null | 4552 | 2 | cfeeb71d1e3159f5d10856aef854344ba92c4a0f | 1,746 | gradle | Apache License 2.0 |
src/main/java/com/tang/intellij/lua/psi/search/LuaAllClassesSearch.kt | Benjamin-Dobell | 231,814,734 | false | null | /*
* Copyright (c) 2017. tangzx(<EMAIL>)
*
* 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 agree... | 61 | null | 9 | 83 | 68b0a63d3ddd5bc7be9ed304534b601fedcc8319 | 1,624 | IntelliJ-Luanalysis | Apache License 2.0 |
app/src/main/java/pnu/hakathon/anyone/Util.kt | manson112 | 278,081,028 | false | null | package pnu.hakathon.anyone
import android.content.Context
import android.location.Address
import android.location.Geocoder
import android.util.Log
import java.util.*
object Util {
fun getCompleteAddressString(
context: Context?,
LATITUDE: Double,
LONGITUDE: Double
): String? {
... | 0 | Kotlin | 0 | 0 | 3c6beb9845ae6c6d4ab105ab651368e81df00886 | 1,364 | 2020_PNU_Hakathon_Anyone_Android | The Unlicense |
core/dataStore/impl/src/main/kotlin/odoo/miem/android/core/dataStore/impl/di/DataStoreApiProvider.kt | 19111OdooApp | 546,191,502 | false | {"Kotlin": 889625} | package odoo.miem.android.core.dataStore.impl.di
import dagger.Module
import dagger.Provides
import dagger.multibindings.IntoMap
import odoo.miem.android.core.dataStore.api.di.IDataStoreApi
import odoo.miem.android.core.di.impl.ApiKey
import odoo.miem.android.core.di.impl.ApiProvider
/**
* [DataStoreApiProvider] - *... | 0 | Kotlin | 1 | 5 | e107fcbb8db2d179d40b5c1747051d2cb75e58c6 | 601 | OdooApp-Android | Apache License 2.0 |
app/src/main/java/com/commit451/glyphith/api/Glyph.kt | Commit451 | 576,175,616 | false | {"Kotlin": 35048} | package com.commit451.glyphith.api
import android.animation.ValueAnimator
import com.commit451.glyphith.data.LightPattern
import com.topjohnwu.superuser.Shell
import timber.log.Timber
import kotlin.math.roundToInt
/**
* See https://twitter.com/linuxct/status/1546648878774190080
*/
object Glyph {
private const ... | 0 | Kotlin | 2 | 8 | dd42ddc4af330abc28be0c79ce877f6605cc916f | 3,230 | Glyphith | Apache License 2.0 |
increase-kotlin-core/src/main/kotlin/com/increase/api/services/async/simulations/CardRefundServiceAsync.kt | Increase | 614,596,742 | false | null | @file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package com.increase.api.services.async.simulations
import com.increase.api.core.RequestOptions
import com.increase.api.models.SimulationCardRefundCreateParams
import com.increase.api.models.Transaction
interface CardRefundSer... | 1 | null | 0 | 5 | dc1361d08cb41ff45817c2e7638f53356f15cf8e | 625 | increase-kotlin | Apache License 2.0 |
tmp/arrays/youTrackTests/4877.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-13399
open class MonopolyPlayer {
var position: Int = 0
internal set
}
// In another file
class MonopolyBoard {
fun moveToPosition(player: MonopolyPlayer, position: Int) {
player.position = position
}
}
| 1 | null | 1 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 253 | bbfgradle | Apache License 2.0 |
tmp/arrays/youTrackTests/4877.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-13399
open class MonopolyPlayer {
var position: Int = 0
internal set
}
// In another file
class MonopolyBoard {
fun moveToPosition(player: MonopolyPlayer, position: Int) {
player.position = position
}
}
| 1 | null | 1 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 253 | bbfgradle | Apache License 2.0 |
feature/spell-details/ui/src/commonMain/kotlin/com/nesterov/veld/ui/SpellDetailsScreen.kt | anaesthez | 793,406,212 | false | {"Kotlin": 213998, "Ruby": 1684, "Swift": 522, "HTML": 275} | package com.nesterov.veld.ui
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import an... | 0 | Kotlin | 0 | 0 | 4273e340299452c008884a3634b6df1deb25b797 | 15,284 | veld | MIT License |
src/main/kotlin/ch/jtaf/control/reporting/data/ClubRankingData.kt | 72services | 9,931,766 | false | {"CSS": 167263, "Kotlin": 151364, "HTML": 100849, "Arc": 2791} | package ch.jtaf.control.reporting.data
import ch.jtaf.entity.Series
class ClubRankingData(val series: Series, val clubs: List<ClubResultData>) {
fun getSortedClubs(): List<ClubResultData> {
return clubs.sortedByDescending { it.points }
}
}
| 4 | CSS | 0 | 2 | 3428c302b04f76dd0901fbcf23325b649d9534e5 | 259 | jtaf | Apache License 2.0 |
beetle/src/main/kotlin/com/karacca/beetle/data/repository/GitHubRepository.kt | karacca | 197,248,332 | false | {"Kotlin": 91840} | /*
* Copyright 2022 <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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1 | Kotlin | 8 | 73 | 8c4481ecf3881966bd56a3308e36d52cf4ae6b9b | 2,872 | beetle | Apache License 2.0 |
food-delivery-app/app/src/main/java/com/bkarakoca/fooddeliveryapp/internal/injection/module/RestaurantModule.kt | kkocaburak | 509,401,156 | false | {"Kotlin": 130651} | package com.bkarakoca.fooddeliveryapp.internal.injection.module
import android.content.Context
import androidx.room.Room
import com.bkarakoca.fooddeliveryapp.data.repository.restaurant.RestaurantRepository
import com.bkarakoca.fooddeliveryapp.data.repository.restaurant.RestaurantRepositoryImpl
import com.bkarakoca.foo... | 0 | Kotlin | 0 | 3 | 764b032bfcbd8fb2e2b1aa68f089eeb95fb0184a | 1,624 | android-food-delivery-example | Apache License 2.0 |
app/src/main/java/com/moneytree/app/ui/wallets/transaction/NSTransactionViewModel.kt | Dishantraiyani | 459,687,387 | true | {"Kotlin": 469435} | package com.moneytree.app.ui.wallets.transaction
import android.app.Application
import androidx.lifecycle.MutableLiveData
import com.moneytree.app.common.NSViewModel
import com.moneytree.app.common.utils.isValidList
import com.moneytree.app.repository.NSWalletRepository
import com.moneytree.app.repository.network.call... | 0 | Kotlin | 0 | 0 | 9d220d9b7e07f787002c1ef7e1cde071a6ae59e0 | 2,859 | moneytree | Apache License 2.0 |
core/src/main/kotlin/com/piotrwalkusz/smartlaw/core/model/validator/NumberRangeValidator.kt | piotrwalkusz1 | 293,285,610 | false | null | package com.piotrwalkusz.smartlaw.core.model.validator
data class NumberRangeValidator(
val minValue: Int,
val maxValue: Int
) : Validator | 0 | Kotlin | 0 | 0 | 235354ac0469d5ba9630b91124f6fcc4481dad34 | 155 | SmartLaw | MIT License |
app/src/main/java/com/github/vase4kin/teamcityapp/dagger/modules/drawer/DrawerAppRouterImpl.kt | vase4kin | 68,111,887 | false | null | /*
* Copyright 2020 <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 wri... | 0 | null | 11 | 52 | 9abb1ed56c127d64679124c38d30b0014ec024de | 1,896 | TeamCityApp | Apache License 2.0 |
app/src/main/java/com/sjn/stamp/ui/item/holder/RankedViewHolder.kt | sjnyag | 81,733,859 | false | null | package com.sjn.stamp.ui.item.holder
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.sjn.stamp.R
import com.sjn.stamp.utils.ViewHelper
import eu.davidea.flexibleadapter.FlexibleAdapter
class RankedViewHolder(view: View, adapter: FlexibleAdapter<*>) : LongClickDisabl... | 59 | null | 3 | 9 | cb145824f9e06cd17266502a5e85d8a9fa276bb0 | 1,090 | stamp | Apache License 2.0 |
http4k-format/moshi/src/main/kotlin/org/http4k/format/read.kt | http4k | 86,003,479 | false | null | package org.http4k.format
import com.squareup.moshi.JsonReader
fun <T> JsonReader.obj(mk: () -> T, fn: T.(String) -> Unit): T {
beginObject()
val item = mk()
while (hasNext()) item.fn(nextName())
endObject()
return item
}
fun <T> JsonReader.obj(build: (Map<String, Any>) -> T, item: (String) -> An... | 30 | null | 219 | 2,327 | 9ccb295605f9f4823aad4545a0bd9cded7cddf68 | 1,558 | http4k | Apache License 2.0 |
katan-api/src/main/kotlin/me/devnatan/katan/api/security/account/Account.kt | KatanPanel | 182,468,654 | false | null | /*
* Copyright 2020-present <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 ... | 0 | Kotlin | 7 | 48 | 4ba33e0ff126134e6d02b672bbccf72bf2defad5 | 1,599 | Katan | Apache License 2.0 |
app/src/main/java/com/duckduckgo/app/browser/DuckDuckGoRequestRewriter.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.app.browser
import android.net.Uri
import com.duckduckgo.app.referral.AppReferrerDataStore
import com.duckduckgo.app.statistics.store.StatisticsDataStore
import com.duckduckgo.common.utils.AppUrl.ParamKey
import com.duckduckgo.common.utils.AppUrl.ParamValue
import com.duckduckgo.experiments.ap... | 0 | Kotlin | 0 | 0 | b89591136b60933d6a03fac43a38ee183116b7f8 | 2,526 | DuckDuckGo | Apache License 2.0 |
app/src/main/java/com/canonicalexamples/tearank/model/TeaDatabaseDao.kt | jdortiz | 217,213,408 | false | null | package com.canonicalexamples.tearank.model
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update
/**
* 20191022. Initial version created by jorge
* for a Canonical Examples training.
*
* Copyright 2019 <NAME>
*
* Licensed ... | 0 | Kotlin | 1 | 6 | e9aca58490939c4534aaf3e6ddc9b6cebd95786f | 1,260 | TeaRank | Apache License 2.0 |
src/main/kotlin/model/algorithms/searchCycle/SearchCycleForVertexInGraphSolver.kt | spbu-coding-2023 | 790,846,883 | false | {"Kotlin": 157609, "Python": 12618, "Shell": 161} | package model.algorithms.searchCycle
import model.graphs.graphs.Graph
open class SearchCycleForVertexInGraphSolver<V>(val graph: Graph<V>) { // non-negative numbers of vertices
protected enum class Color {
White,
Gray,
Black
}
private val verticesAdjacencyList = graph.toAdjacencyM... | 2 | Kotlin | 1 | 0 | b8586cc96d128b331bf6f9ac1141bec5a700b65e | 2,513 | graphs-graphs-6 | MIT License |
exampleandroid/src/main/java/dev/iaiabot/furuhuru/exampleandroid/FirstScreen.kt | iaia | 523,282,500 | false | null | package dev.iaiabot.furuhuru.exampleandroid
import android.net.Uri
import android.util.Log
import androidx.browser.customtabs.CustomTabsIntent
import androidx.compose.foundation.layout.Column
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import... | 2 | Kotlin | 0 | 0 | b83cf1558a8bb906015b3cc478ab8e18e80e5a89 | 3,048 | Furuhuru | MIT License |
src/main/kotlin/Main.kt | FACUA | 122,469,261 | false | null | import commands.CommandManager
fun main(args: Array<String>) = CommandManager.run(args)
| 1 | Kotlin | 0 | 3 | ceec58a8cd8301224ae1cf917c9a0831572c1624 | 89 | aws-redirect-manager | MIT License |
app/src/main/java/com/chotaling/ownlibrary/ui/MainActivity.kt | chotaling1 | 356,392,637 | false | {"Kotlin": 76258} | package com.chotaling.ownlibrary.ui
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.core.os.bundleOf
import androidx.fragment.app.FragmentContainerView
import androidx.navigation.NavController
import androidx.navigation.NavDestination
import androidx.na... | 15 | Kotlin | 0 | 0 | 1c10ce7ee8a0f22d49475ed33df6d8ccd6b017e2 | 1,719 | ownLibrary-Android | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.