path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/net/assemble/android/mywallet/repository/AppRepository.kt | yh1224 | 116,141,430 | false | null | package net.assemble.android.mywallet.repository
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.firestore.FirebaseFirestore
/**
* DB処理基底クラス
*/
open class AppRepository(
private val firebaseAuth: FirebaseAuth,
private val firebaseFirestore: FirebaseFirestore
) {
/** ログインユ... | 0 | Kotlin | 0 | 0 | a170d22b92ddec2b781a495cb81f7d5678b2a3a9 | 651 | wastlet | Apache License 2.0 |
translator/core/src/main/kotlin/NamedArgumentNormalizer.kt | YazidDjaoudi | 314,241,412 | true | {"Kotlin": 4678640, "TypeScript": 786341, "HTML": 307983, "CSS": 166236, "SCSS": 26072, "JavaScript": 4807, "Shell": 4071} | package ai.tock.translator
import mu.KotlinLogging
internal object NamedArgumentNormalizer {
private val logger = KotlinLogging.logger {}
private val enrichedArgPattern = "\\{:([a-zA-Z_]+)\\}".toRegex()
private val vanillaArgPattern = "\\{[0-9]+\\}".toRegex()
/**
* @param label e.g: "{:arg_name... | 0 | null | 0 | 1 | ac3dd89bb072c8046f921a9319dabc72f7227a77 | 1,645 | tock | Apache License 2.0 |
androidApp/src/main/java/me/naingaungluu/kmmpractice/android/ui/MainView.kt | naingaungluu-codigo | 473,859,164 | false | null | package me.naingaungluu.kmmpractice.android.ui
import androidx.compose.foundation.layout.padding
import androidx.compose.material.BottomNavigation
import androidx.compose.material.BottomNavigationItem
import androidx.compose.material.FloatingActionButton
import androidx.compose.material.Icon
import androidx.compose.ma... | 0 | Kotlin | 0 | 0 | d3aa889cf73e0cc6ba2c59ce2bf156dc75369856 | 4,122 | kmm-practice | MIT License |
sample/src/test/kotlin/com/motorro/rxlcemodel/sample/testUtils.kt | motorro | 172,682,449 | false | null | package com.motorro.rxlcemodel.sample
import androidx.lifecycle.ViewModel
import kotlin.reflect.jvm.isAccessible
/**
* Opens [ViewModel.onCleared] to test clean-up actions
*/
fun ViewModel.testOnCleared() {
ViewModel::class.members
.single { it.name == "onCleared" }
.apply { isAccessible = true ... | 2 | Kotlin | 0 | 5 | e63e57bcdbe5a31ac7a849ecffbb02b635838e48 | 343 | RxLceModel | Apache License 2.0 |
data/remote/src/androidMain/kotlin/com/taetae98/codelab/data/remote/HttpClientProvidesModule.kt | taetae98coding | 708,459,882 | false | {"Kotlin": 140653, "Swift": 1267, "HTML": 233, "Ruby": 109} | package com.taetae98.codelab.data.remote
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import io.ktor.client.HttpClient
import io.ktor.client.engine.HttpClientEngine
import kotlinx.serialization.json.Json
import javax.inject.Singleton
@Module... | 0 | Kotlin | 0 | 0 | 561dbd507f5c3737eeba46cb821cae690aae14a6 | 711 | CodeLab | Apache License 2.0 |
shared/src/test/kotlin/ArithmeticTests.kt | theodore-norvell | 726,244,640 | false | {"Kotlin": 108001, "Swift": 592, "Shell": 228} |
import model.data.DisplayAndComputePreferences
import model.data.formula.NumberBuilder
import model.data.value.ComplexNumberValue
import model.data.value.FlexNumber
import org.junit.Assert.assertEquals
import org.junit.Test
class ArithmeticTests {
val prefs = DisplayAndComputePreferences()
fun <T>iterate( foo... | 0 | Kotlin | 0 | 0 | 1b6e5fd5c1ac3320888d76a16c4a16aeca2e7390 | 17,717 | compose-app | Apache License 2.0 |
src/main/kotlin/me/devoxin/flight/CommandClient.kt | adamint | 154,020,872 | true | {"Kotlin": 23283} | package me.devoxin.flight
import com.google.common.reflect.ClassPath
import net.dv8tion.jda.core.Permission
import net.dv8tion.jda.core.entities.Member
import net.dv8tion.jda.core.entities.TextChannel
import net.dv8tion.jda.core.events.ReadyEvent
import net.dv8tion.jda.core.events.message.MessageReceivedEvent
import n... | 0 | Kotlin | 0 | 0 | e6a7c2ebedacec18dbfe3c386ea41354e5fa94cc | 5,727 | Flight | Apache License 2.0 |
node/src/main/kotlin/me/slavita/construction/dontate/BoosterDonate.kt | Roman-Andr | 535,243,293 | false | {"Kotlin": 482345} | package me.slavita.construction.dontate
import me.slavita.construction.booster.BoosterType
import me.slavita.construction.booster.Boosters
import me.slavita.construction.player.User
import java.util.concurrent.TimeUnit
open class BoosterDonate(
title: String,
description: String,
price: Int,
val time:... | 0 | Kotlin | 0 | 1 | e4e3c255bbfdfb5369ca66e57842e2c8712d2a10 | 569 | simulator-mayor | Apache License 2.0 |
app/src/main/java/net/kibotu/berlingeiger/AppShowCaseRoot.kt | kibotu | 550,365,349 | false | null | package net.kibotu.berlingeiger
import com.airbnb.android.showkase.annotation.ShowkaseRoot
import com.airbnb.android.showkase.annotation.ShowkaseRootModule
@ShowkaseRoot
class AppShowCaseRoot : ShowkaseRootModule | 1 | Kotlin | 0 | 0 | fbe7e27beeafe37ce581f6d7717a4409ea4c41cd | 214 | Berlin-Geiger-Counter | Apache License 2.0 |
samples/star/src/commonMain/kotlin/com/slack/circuit/star/di/AppScope.kt | slackhq | 523,011,227 | false | {"Kotlin": 520467, "JavaScript": 4556, "Shell": 3808, "Ruby": 1378} | // Copyright (C) 2024 Slack Technologies, LLC
// SPDX-License-Identifier: Apache-2.0
package com.slack.circuit.star.di
class AppScope private constructor()
| 30 | Kotlin | 72 | 1,472 | 14900fea0d5075f0197b47791befdb422e700e8e | 157 | circuit | Apache License 2.0 |
app/src/main/java/com/kuss/krude/utils/ScaleGestureItemTouchListener.kt | KusStar | 294,712,671 | false | null | package com.kuss.krude.utils
import android.content.Context
import android.view.MotionEvent
import android.view.ScaleGestureDetector
import android.view.ScaleGestureDetector.OnScaleGestureListener
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.OnItemTouchListener
cl... | 0 | Kotlin | 0 | 2 | ae54bb62425ce4d8661fac4d1db62ce67bfdc43e | 1,757 | krude | MIT License |
src/main/kotlin/io/onixlabs/kotlin/core/typeconverters/BigDecimalTypeConverter.kt | onix-labs | 311,367,195 | false | null | /**
* Copyright 2020 Matthew Layton
*
* 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 | 0 | 0 | 21e10af5909c5120786f7cd5ea072fbb3aa71265 | 1,802 | onixlabs-kotlin-core | Apache License 2.0 |
app/src/main/java/com/david/sciflare/main/ui/map/MapActivity.kt | Jeyasee | 526,838,266 | false | {"Kotlin": 216503, "Java": 91937} | package com.david.sciflare.main.ui.map
import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.Bitmap
import android.graphics.Canvas
import android.location.L... | 0 | Kotlin | 0 | 0 | 9a54f4bc1be7f4333581d9eee0efd109e0ea5268 | 7,273 | task_sciflare_mvvm_kotlin_coroutine | Apache License 2.0 |
app/src/main/java/com/example/omdb/ui/details/ContentInfoView.kt | Pro-55 | 195,038,410 | false | {"Kotlin": 259217} | package com.example.omdb.ui.details
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.height
import androidx.compose.foundation.layout.pad... | 0 | Kotlin | 0 | 1 | 2ee54ce67c4c077ef1ccb83cd92121e3eb778c09 | 4,033 | OMDb | Apache License 2.0 |
app/src/main/java/com/example/gallerydemo/PhotoAdapter.kt | BravestSnail | 358,601,644 | false | null | package com.example.gallerydemo
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
impo... | 0 | Kotlin | 0 | 0 | 03f218e4f28976e8a670d28e74edf112986a4347 | 1,500 | GalleryDemo | Apache License 2.0 |
nav/safeargs/common/src/com/android/tools/idea/nav/safeargs/psi/SafeArgsFeatureVersions.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2021 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... | 5 | Kotlin | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,721 | android | Apache License 2.0 |
androidPhoneScreen/src/test/java/by/game/binumbers/screen/splash/SplashTest.kt | alexander-kulikovskii | 565,271,232 | false | {"Kotlin": 454229, "Swift": 3274, "Ruby": 2480, "Shell": 622} | package by.game.binumbers.screen.splash
import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass
import androidx.compose.runtime.Composable
import by.game.binumbers.base.BinumbersState
import by.game.binumbers.screenshot.test.tool.BaseScreenTest
import by.game.binumbers.splash.domain.generated.SplashStat... | 0 | Kotlin | 0 | 10 | 66b1678b47a96a52ebef467111d1d4854a37486a | 639 | 2048-kmm | Apache License 2.0 |
conferences-app/src/commonMain/kotlin/io/ashdavies/party/events/EventsScreen.kt | ashdavies | 36,688,248 | false | {"Kotlin": 242859, "HCL": 19950, "Shell": 5280, "Mustache": 2101} | package io.ashdavies.party.events
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.layout.Row
import androidx.compose.fou... | 47 | Kotlin | 31 | 118 | 8a2b586a61097647827fb8ede111baedc0353e93 | 9,494 | playground.ashdavies.dev | Apache License 2.0 |
components/membership/membership-group-read-impl/src/test/kotlin/net/corda/membership/impl/read/TestProperties.kt | corda | 346,070,752 | false | null | package net.corda.membership.impl.read
import net.corda.v5.base.types.MemberX500Name
class TestProperties {
companion object {
const val GROUP_ID_1 = "ABC-123"
const val GROUP_ID_2 = "DEF-456"
val aliceName get() = x500Name("Alice")
val bobName get() = x500Name("Bob")
val ... | 96 | null | 27 | 69 | 0766222eb6284c01ba321633e12b70f1a93ca04e | 550 | corda-runtime-os | Apache License 2.0 |
note/src/main/java/little/goose/note/MainActivity.kt | MReP1 | 525,822,587 | false | {"Kotlin": 783935, "Swift": 936} | package little.goose.note
import android.graphics.Color
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.SystemBarStyle
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.runtime.DisposableEffect
import little.goose.... | 1 | Kotlin | 29 | 110 | ed7bc878de42e0355abaf7a815e7287a4633915d | 1,261 | LittleGooseOffice | MIT License |
src/test/kotlin/ru/yoomoney/tech/moira/dsl/triggers/targets/TargetDelegateTest.kt | yoomoney | 403,670,937 | false | {"Kotlin": 36876} | package ru.yoomoney.tech.moira.dsl.triggers.targets
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
class TargetDelegateTest {
@Test
fun `should create target local variable delegate`() {
// given
val targets = mutableListOf<Target>()
// when
... | 0 | Kotlin | 0 | 2 | d1807a0bc997229a0b2d56c22625419eace0cd6a | 548 | moira-kotlin-dsl | MIT License |
sqldelight-compiler/src/main/kotlin/com/squareup/sqldelight/validation/CreateIndexValidator.kt | live17909 | 59,648,151 | true | {"Kotlin": 232328, "Java": 118430, "ANTLR": 18488, "Shell": 1376} | /*
* Copyright (C) 2016 Square, 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 agre... | 0 | Kotlin | 0 | 0 | b0ff22f95a52b59bba4b8359ed92a267418e7fdf | 1,622 | sqldelight | Apache License 2.0 |
libraries/arch/src/main/java/com/fappslab/mbchallenge/libraries/arch/extension/StringExtension.kt | F4bioo | 845,138,188 | false | {"Kotlin": 241952} | package com.fappslab.mbchallenge.libraries.arch.extension
fun emptyString() = ""
fun blankString() = " "
fun String?.orDash(): String = this ?: "---"
| 0 | Kotlin | 0 | 0 | 7c8c26161507ad6f0d521f79eeeab3a65a90bb70 | 153 | MBChallenge | MIT License |
common/src/main/kotlin/nl/knaw/huc/annorepo/api/propertyset.kt | knaw-huc | 473,687,323 | false | {"Kotlin": 396803, "Java": 27543, "Makefile": 7032, "Shell": 6521, "Dockerfile": 577, "HTML": 247} | package nl.knaw.huc.annorepo.api
typealias PropertySet = Map<String, Any?>
inline fun <reified T : Any> PropertySet.required(key: String): T {
val value: Any = get(key) ?: error("Cannot find key <$key>")
return value as? T ?: error("Value for key <$key> is not a ${T::class}")
}
inline fun <reified T : Any> P... | 17 | Kotlin | 1 | 8 | f38c4828dbeefa2e691e58d2fbbf4c2ba5703828 | 1,675 | annorepo | Apache License 2.0 |
app/src/main/java/com/alwan/googlebooksapp/utils/NetworkInfo.kt | alwanfauzy | 458,194,140 | false | {"Kotlin": 17666} | package com.alwan.googlebooksapp.utils
import com.alwan.googlebooksapp.BuildConfig
object NetworkInfo {
const val BASE_URL = BuildConfig.BASE_URL
} | 0 | Kotlin | 0 | 0 | dc69c50be0bc5ed1b05d675f07ba8e26e2e31d32 | 153 | google-books-app | Apache License 2.0 |
src/main/kotlin/org/uevola/jsonautovalidation/common/utils/JsonUtil.kt | ugoevola | 646,607,242 | false | {"Kotlin": 74176} | package org.uevola.jsonautovalidation.common.utils
import org.json.JSONObject
object JsonUtil {
/**
* used to resolve json-auto-validation template
* each property value that need to be replaced follows that template : {{property_name}}
* and its value is linked to it's name in the values attribut... | 0 | Kotlin | 0 | 0 | edd264448997bd498f172df66542cf2381e67c53 | 1,322 | json-auto-validation | MIT License |
data/remote/src/main/java/com/tfandkusu/androidview/di/RemoteDataStoreModule.kt | tfandkusu | 509,789,771 | false | null | package com.tfandkusu.aic.di
import com.tfandkusu.aic.data.remote.GithubRemoteDataStore
import com.tfandkusu.aic.data.remote.GithubRemoteDataStoreImpl
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton
@Module
@InstallIn... | 23 | Kotlin | 0 | 0 | bb4e6f6159a893837029a904231e04c40452a850 | 542 | try_android_view_in_compose | Apache License 2.0 |
order/core/src/main/kotlin/com/rarible/protocol/order/core/converters/dto/OrderEventDtoConverter.kt | NFTDroppr | 418,665,809 | true | {"Kotlin": 2329156, "Scala": 37343, "Shell": 6001, "HTML": 547} | package com.rarible.protocol.order.core.converters.dto
import com.rarible.protocol.dto.OrderEventDto
import com.rarible.protocol.dto.OrderUpdateEventDto
import com.rarible.protocol.order.core.model.OrderEvent
import com.rarible.protocol.order.core.model.OrderUpdateEvent
import org.springframework.stereotype.Component
... | 0 | Kotlin | 0 | 1 | b1efdaceab8be95429befe80ce1092fab3004d18 | 983 | ethereum-indexer | MIT License |
modules/dsp/src/main/kotlin/com/bartlomiejpluta/smnp/ext/dsp/function/PlotFunction.kt | bartlomiej-pluta | 247,806,164 | false | null | package com.bartlomiejpluta.smnp.ext.dsp.function
import com.bartlomiejpluta.smnp.callable.function.Function
import com.bartlomiejpluta.smnp.callable.function.FunctionDefinitionTool
import com.bartlomiejpluta.smnp.callable.signature.Signature.Companion.vararg
import com.bartlomiejpluta.smnp.error.CustomException
impor... | 0 | Kotlin | 0 | 0 | 88f2089310b2a23b2ce63fb6be23a96db156ea4a | 3,821 | smnp-kt | MIT License |
src/main/kotlin/no/nb/mlt/wls/core/data/HostName.kt | NationalLibraryOfNorway | 800,484,682 | false | {"Kotlin": 27333, "JavaScript": 911, "Dockerfile": 782} | package no.nb.mlt.wls.core.data
enum class HostName(private val hostName: String) {
AXIELL("Axiell");
override fun toString(): String {
return hostName
}
}
| 0 | Kotlin | 0 | 0 | a6333128f16871be5a891d43e3a6a804705c4f61 | 178 | warehouse-logistics-service | MIT License |
feature/dashboard/src/androidMain/kotlin/com/opencritic/dashboard/DashboardMightyManListItem.android.kt | MAX-POLKOVNIK | 797,563,657 | false | {"Kotlin": 604244, "Swift": 213504, "Objective-C": 8050} | package com.opencritic.dashboard
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.Mat... | 0 | Kotlin | 0 | 4 | 99c3df65e8620fe5f2d5c16ade0d593357869fa5 | 1,442 | OpenCritic | Apache License 2.0 |
src/main/kotlin/cn/rtast/rob/util/ob/MessageHandler.kt | RTAkland | 848,228,984 | false | {"Kotlin": 55840} | /*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/8/26
*/
package cn.rtast.rob.util.ob
import cn.rtast.rob.ROneBotFactory
import cn.rtast.rob.ROneBotFactory.commandManager
import cn.rtast.rob.entity.BaseMessage
import cn.rtast.rob.entity.CanSend
import cn.rtast.rob.entity.ConnectEvent
import cn.rtas... | 0 | Kotlin | 0 | 1 | a4c1271a49b8af6786c59b1fd91fb37d0eefba4e | 8,259 | ROneBot | Apache License 2.0 |
api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMapMeetingsResponse.kt | meetacy | 604,657,616 | false | {"Kotlin": 222813, "Swift": 9285, "HTML": 129, "JavaScript": 114} | package app.meetacy.sdk.engine.ktor.response.models
import kotlinx.serialization.Serializable
import kotlinx.serialization.SerialName
@Serializable
internal data class ListMapMeetingsResponse (
@SerialName("result")
val result: List<Meeting>,
@SerialName("status")
val status: Boolean? ... | 1 | Kotlin | 1 | 24 | ad03f19ee4274b0fb62a02e10db66aa3a593408d | 330 | sdk | MIT License |
api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/models/ListMapMeetingsResponse.kt | meetacy | 604,657,616 | false | {"Kotlin": 222813, "Swift": 9285, "HTML": 129, "JavaScript": 114} | package app.meetacy.sdk.engine.ktor.response.models
import kotlinx.serialization.Serializable
import kotlinx.serialization.SerialName
@Serializable
internal data class ListMapMeetingsResponse (
@SerialName("result")
val result: List<Meeting>,
@SerialName("status")
val status: Boolean? ... | 1 | Kotlin | 1 | 24 | ad03f19ee4274b0fb62a02e10db66aa3a593408d | 330 | sdk | MIT License |
archive/backups/Kotlin-backup/MyKotlinWorkbook/src/main/kotlin/de/felixroske/kotlin/Cupcakes.kt | roskenet | 295,683,964 | false | {"HTML": 708028, "Jupyter Notebook": 571597, "TeX": 547996, "Java": 447619, "Makefile": 214272, "JavaScript": 204557, "CMake": 113090, "Kotlin": 88563, "TypeScript": 61333, "Clojure": 36776, "CSS": 25303, "C++": 19374, "Red": 13104, "Python": 12901, "Shell": 12248, "SCSS": 5588, "Go": 4797, "Dockerfile": 2073, "C": 168... | package de.felixroske.kotlin
/*
class BlueberryCupcake {
var flavour = "Blueberry"
}
*/
abstract class Cupcake(var flavour: String) {
}
class BlueberryCupcake: Cupcake("Blueberry")
| 0 | HTML | 1 | 0 | 39975a0248f2e390f799bdafde1170322267761b | 191 | playground | MIT License |
arrangor/src/main/kotlin/no/nav/amt/tiltak/utils/UpdateCheck.kt | navikt | 393,356,849 | false | {"Kotlin": 742343, "PLpgSQL": 635, "Dockerfile": 95} | package no.nav.amt.tiltak.utils
enum class UpdateStatus {
UPDATED,
NO_CHANGE
}
data class UpdateCheck<T>(
val status: UpdateStatus,
val updatedObject: T? = null
)
| 0 | Kotlin | 3 | 4 | b2b163a866f629c337e82249a98f6f9767a11c0a | 175 | amt-tiltak | MIT License |
app/src/main/java/com/layfones/composewanandroid/ui/components/MessageItem.kt | layfones | 623,881,761 | false | null | package com.layfones.composewanandroid.ui.components
import android.text.Html
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Card
imp... | 0 | Kotlin | 1 | 3 | 6944e510e0e41f7d5c105a8e308adee417478ac4 | 1,503 | Jetpack-Compose-Practice | Apache License 2.0 |
tools/db-compiler-lite/src/main/java/com/grab/databinding/stub/common/Constants.kt | grab | 379,151,712 | false | null | /*
* Copyright 2021 Grabtaxi Holdings PTE LTE (GRAB)
*
* 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... | 3 | null | 6 | 16 | 616e6c8c1de1d1d53b09cf210b280e12cb22d6b0 | 948 | grab-bazel-common | Apache License 2.0 |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/LockClosed.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.LockClosed: ImageVector
get() {
if (_lockClosed != null) {
... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 1,883 | compose-fluent-ui | Apache License 2.0 |
feature-forecast/src/androidTest/java/de/niklasbednarczyk/nbweather/feature/forecast/screens/alerts/ForecastAlertsScreenTest.kt | NiklasBednarczyk | 529,683,941 | false | {"Kotlin": 1402977} | package de.niklasbednarczyk.nbweather.feature.forecast.screens.alerts
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.performClick
import de.niklasbednarczyk.nbweather.core.ui.R
import de.niklasbednarczyk.nbweather.core.ui.icons.NBIcons
import de.niklasbednarczyk.nbweather.feature.for... | 11 | Kotlin | 0 | 1 | 1c4618d2b2a00a1739f210cb2b067147e7635224 | 3,875 | NBWeather | MIT License |
src/test/java/de/jotbepunkt/blackbook/service/BusinessServiceTest.kt | JotBePunkt | 125,917,618 | false | null | @file:Suppress("ClassName")
package de.jotbepunkt.blackbook.service
import assertk.assert
import assertk.assertions.hasClass
import assertk.assertions.isEqualTo
import de.jotbepunkt.blackbook.persistence.Entity
import de.jotbepunkt.blackbook.persistence.EntityRepository
import io.mockk.mockk
import org.junit.jupiter.... | 0 | Kotlin | 0 | 0 | e8a34b839435e88c9b7a48d28b30f2448d5f1835 | 13,125 | blackbook | Apache License 2.0 |
samples/kaspresso-sample/src/androidTest/kotlin/com/kaspersky/kaspressample/dsl_tests/data/TestCaseData.kt | KasperskyLab | 208,070,025 | false | null | package com.kaspersky.kaspressample.dsl_tests.data
class TestCaseData(
val companies: MutableList<Company> = mutableListOf(),
val owners: MutableList<Owner> = mutableListOf()
) {
fun makeOwner(ownerSurname: String, companyName: String) {
companies
.filter { company ->
co... | 55 | null | 150 | 1,784 | 9c94128c744d640dcd646b86de711d2a1b9c3aa1 | 523 | Kaspresso | Apache License 2.0 |
math/src/main/java/com/kylecorry/sol/math/geometry/GeometryService.kt | kylecorry31 | 294,668,785 | false | null | package com.kylecorry.sol.math.geometry
import com.kylecorry.sol.math.SolMath.square
import com.kylecorry.sol.math.Vector2
import com.kylecorry.sol.math.algebra.AlgebraService
import kotlin.math.abs
import kotlin.math.absoluteValue
import kotlin.math.sqrt
class GeometryService {
private val algebra = AlgebraServ... | 7 | Kotlin | 2 | 3 | 435041dc5c4c8f868a2ccc24cb4e1eaafe501a15 | 3,589 | Trail-Sense-Core | MIT License |
app/src/main/java/com/vobbla16/mesh/data/remote/dto/schedule/Lesson.kt | x3lfyn | 654,997,267 | false | {"Kotlin": 369716} | package com.vobbla16.mesh.data.remote.dto.schedule
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Lesson(
@SerialName("absence_reason_id")
val absenceReasonId: Long?, // null
@SerialName("ae_fake_group")
val aeFakeGroup: Boolean? = false, //... | 5 | Kotlin | 1 | 6 | f7120e47b483dc1da21125274f34c9570d1fd8b4 | 1,827 | libremesh | MIT License |
src/iterator/api/Menu.kt | yorae39 | 464,176,357 | false | {"Kotlin": 60335} | package iterator.api
import kotlin.collections.Iterator
class Menu {
private val menuItems = ArrayList<Item>()
fun addItem(item: Item) {
menuItems.add(item)
}
fun remove(item: Item) {
menuItems.remove(item)
}
fun iterator(): Iterator<Item> {
return MenuIterator(this... | 0 | Kotlin | 0 | 0 | 2d5a321f6e60ae91028adda860ab2d75c0b37ed1 | 638 | design-patterns-kotlin | MIT License |
domain/player/src/main/kotlin/com/adamsmolik/nba/domain/player/model/PlayerDetail.kt | adamsmolik | 724,140,533 | false | {"Kotlin": 161658} | // ktlint-disable filename
package com.adamsmolik.nba.domain.player.model
data class PlayerDetailModel(
val id: Int,
val firstName: String,
val lastName: String,
val avatar: String,
val position: String?,
val heightFeet: Int?,
val heightInches: Int?,
val weightPounds: Int?,
val tea... | 0 | Kotlin | 0 | 0 | 6a4b6412772b6be422ff9b3cb1bf2412bc4a21a7 | 931 | android-nba | Apache License 2.0 |
app/src/main/java/com/nqmgaming/furniture/data/repository/FavoriteRepository.kt | nqmgaming | 803,271,824 | false | {"Kotlin": 242867} | package com.nqmgaming.furniture.data.repository
import com.nqmgaming.furniture.data.network.dto.FavoriteDto
interface FavoriteRepository {
suspend fun getFavoriteList(userId: Int): FavoriteDto
suspend fun updateFavoriteList(userId: Int, favoriteList: FavoriteDto)
} | 0 | Kotlin | 0 | 1 | 360930eccee2b2539dc688e38c7acd0ed1739a6a | 273 | furniture-shopping-asm | MIT License |
app/shared/relationships/impl/src/commonTest/kotlin/build/wallet/relationships/RelationshipsRelationshipsDaoImplTests.kt | proto-at-block | 761,306,853 | false | {"C": 10474259, "Kotlin": 8243078, "Rust": 2779264, "Swift": 893661, "HCL": 349246, "Python": 338898, "Shell": 136508, "TypeScript": 118945, "C++": 69203, "Meson": 64811, "JavaScript": 36398, "Just": 32977, "Ruby": 13559, "Dockerfile": 5934, "Makefile": 3915, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.relationships
import build.wallet.bitkey.relationships.*
import build.wallet.bitkey.relationships.TrustedContactAuthenticationState.AWAITING_VERIFY
import build.wallet.bitkey.relationships.TrustedContactAuthenticationState.VERIFIED
import build.wallet.compose.collections.immutableListOf
import bui... | 3 | C | 16 | 113 | 694c152387c1fdb2b6be01ba35e0a9c092a81879 | 6,259 | bitkey | MIT License |
feature_auth/src/main/kotlin/ru/razrabs/feature_auth/data/AdditionalInfoSaverImpl.kt | razrabs-media | 526,204,757 | false | null | package ru.razrabs.feature_auth.data
import android.content.Context
import org.koin.core.annotation.Single
import ru.razrabs.feature_auth.domain.AdditionalInfoSaver
@Single
class AdditionalInfoSaverImpl(context: Context): AdditionalInfoSaver {
private val sp = context.getSharedPreferences(SP_KEY, Context.MODE_PR... | 16 | Kotlin | 1 | 9 | b01de1209d348214b7f3fd50e8e453247c38ff92 | 683 | journal-android | MIT License |
Store/app/src/main/java/com/example/store/fragments/categories/AccessoryFragment.kt | trypuzz | 590,908,174 | false | {"Kotlin": 205236} | package com.example.store.fragments.categories
class AccessoryFragment:BaseCategoryFragment() {
} | 0 | Kotlin | 0 | 8 | 9aae15ff8dbb0657cf94fbaaa00f05da131ee97f | 98 | pet-projects | MIT License |
JetpackTest/app/src/main/java/com/yylykym/jetpacktest/room/Repository.kt | yylykym | 737,176,951 | false | {"Kotlin": 92321, "Java": 16015} | package com.yylykym.jetpacktest.room
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.yylykym.jetpacktest.User
object Repository {
fun getUser(userId: String): LiveData<User> {
val liveData = MutableLiveData<User>()
liveData.value = User(userId, userId, 0)
... | 0 | Kotlin | 0 | 0 | 3217c1a824ebc1515a6e1f0a316a9e8e1a0d99c2 | 351 | android-study | Apache License 2.0 |
server/src/main/kotlin/net/eplusx/mimosa/server/switchbot/TelemetryRequest.kt | eplusx | 707,934,134 | false | {"Kotlin": 47921} | package net.eplusx.mimosa.server.switchbot
import kotlinx.serialization.Serializable
/**
* Telemetry data from SwitchBot.
*/
@Serializable
data class TelemetryRequest(
/**
* Event type. Can be "changeReport".
*/
val eventType: String,
/**
* Event version.
*/
val eventVersion: Str... | 0 | Kotlin | 0 | 0 | 75b5d43f6ffcc91b56187d0f8977d6fa28ba0fe7 | 1,578 | mimosa | MIT License |
app/src/main/java/ch/deletescape/lawnchair/config/ThemerImpl.kt | avitricks | 100,030,970 | false | {"Java Properties": 2, "YAML": 2, "Gradle": 3, "Shell": 5, "Markdown": 1, "Batchfile": 1, "Text": 1, "Ignore List": 2, "Proguard": 1, "XML": 291, "Kotlin": 25, "Java": 313} | package ch.deletescape.lawnchair.preferences
import android.content.Context
import android.graphics.Color
import android.support.v4.content.ContextCompat
import ch.deletescape.lawnchair.R
import ch.deletescape.lawnchair.Utilities
import ch.deletescape.lawnchair.blur.BlurWallpaperProvider
import ch.deletescape.lawnchai... | 1 | null | 1 | 1 | f9e63c1ece6766e5f2c4128ef243f299c2d06ed7 | 2,760 | Lawnchair | Apache License 2.0 |
kotlin-modules/kotlin-core/kotlin-core-5/src/main/kotlin/cn/tuyucheng/taketoday/createdirectory/SingleDirectory.kt | tu-yucheng | 665,975,665 | false | {"Java": 23064539, "JavaScript": 3484231, "HTML": 808829, "Kotlin": 801709, "CSS": 689526, "TypeScript": 669186, "Groovy": 139102, "AspectJ": 71773, "Shell": 60634, "FreeMarker": 41357, "RAML": 38085, "ANTLR": 31940, "SCSS": 29096, "Mustache": 15860, "Gherkin": 15603, "Scala": 15349, "Python": 14777, "HCL": 13943, "Doc... | package cn.tuyucheng.taketoday.createdirectory
import java.io.File
import java.nio.file.Files
import java.nio.file.Paths
fun main() {
println("Running Files.createDirectory")
Files.createDirectory(Paths.get("./java_createDirectory"))
try {
println("Running Files.createDirectory 2nd time")
Files.createDirector... | 1 | null | 1 | 1 | 1d22d457d31ec5b1f83196958477afd37dbd8939 | 1,757 | taketoday-tutorial4j-backup | MIT License |
ReferenceAppKotlin/app/src/main/java/com/android/tv/reference/auth/UserManager.kt | style96 | 542,708,589 | false | {"Markdown": 11, "Text": 1, "Ignore List": 9, "Java Properties": 9, "Gradle": 15, "Shell": 6, "Batchfile": 4, "Proguard": 5, "XML": 140, "HTML": 3, "JavaScript": 4, "JSON": 17, "Java": 207, "Kotlin": 91, "Python": 3, "CSS": 1, "YAML": 7, "JSON with Comments": 2, "INI": 2, "Org": 2} | /*
* Copyright 2020 Google LLC
*
* 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 ... | 1 | null | 1 | 1 | 9f8628db52e7993ef081c6cdf0dd8ce43a7460ef | 3,476 | tv-samples | Apache License 2.0 |
app/src/monoWeather/java/com/appttude/h_mal/atlas_weather/application/FlavourModule.kt | hmalik144 | 163,556,459 | false | {"Kotlin": 275988, "Ruby": 3065} | package com.appttude.h_mal.atlas_weather.application
import android.app.Application
import org.kodein.di.Kodein
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.provider
fun getFlavourModule(application: Application) = FlavourModule(application).build()
class Flavo... | 4 | Kotlin | 0 | 0 | a82ce7f8626bd20f66d080c4242ac2b871450d80 | 622 | Weather-apps | MIT License |
app/src/main/java/com/example/traintime/homepage/TimetableRequestAdapter.kt | kobayashi1757 | 470,859,445 | false | {"Kotlin": 41880} | package com.example.traintime.homepage
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.ItemTouchHelper.DOWN
import androidx.recyclerview.widget.ItemTouchHelper.UP
import androidx.recyclerview.widget.RecyclerView
im... | 0 | Kotlin | 0 | 0 | ef7f7c48036351a386f52ad108db19e5e4fcd8e6 | 3,042 | TrainTime | MIT License |
app/src/main/java/com/grevi/aywapet/ui/keep/adapter/KeepAdapter.kt | tomorisakura | 331,615,264 | false | null | package com.grevi.aywapet.ui.keep.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.grevi.aywapet.R
import com.grevi.aywapet.databinding.ListKeepBinding
import com.grevi.aywapet.model.Keep
import com.grev... | 0 | Kotlin | 0 | 1 | 8afb8d57ae1f1cff4da9f638b1eb2b00e89d75cb | 1,657 | aywa-pet | MIT License |
src/main/kotlin/io/jimador/sky/flighttracker/domain/StateVector.kt | jimador | 121,668,357 | false | null | package io.jimador.sky.flighttracker.domain
import com.fasterxml.jackson.annotation.JsonFormat
import io.jimador.sky.flighttracker.domain.enumeration.PositionSource
/**
* @author <NAME>
*/
@JsonFormat(shape= JsonFormat.Shape.ARRAY)
data class StateVector(val icao24: String?,
val callsign: St... | 0 | Kotlin | 0 | 0 | ea6da260d609a181bd077829aee4ef2f15cb7081 | 1,064 | flight-tracker | MIT License |
frontend/app/src/main/java/com/example/smarttrade/mainSellerFragments/ProfileSellerFragment.kt | Kotlin-Koalas | 778,369,900 | false | {"Kotlin": 290418, "Java": 89583, "Dockerfile": 150, "Shell": 124} | package com.example.smarttrade.mainSellerFragments
import android.app.Dialog
import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widge... | 0 | Kotlin | 0 | 0 | f913c921ec9094cfbe3eab5f0ef5104bc5e65349 | 2,991 | KoalaMarket | MIT License |
app/src/main/java/com/iamsmk/fynd/src/models/ProductDetails.kt | SelvamuthukumaranRajan | 657,524,364 | false | null | package com.iamsmk.fynd.src.models
import com.google.gson.annotations.SerializedName
data class ProductDetails(
@SerializedName("image") var image: String? = null,
@SerializedName("price") var price: Double? = null,
@SerializedName("product_name") var productName: String? = null,
@SerializedName("pro... | 0 | Kotlin | 0 | 0 | dfbd87aef2c59ce439260debb9eb9a3f3825cb6f | 419 | Fynd | MIT License |
app/src/main/kotlin/io/github/dmitrytsyvtsyn/algosortinganimations/main/customview/SortingAlgorithmView.kt | DmitryTsyvtsyn | 763,537,360 | false | {"Kotlin": 188253} | package io.github.dmitrytsyvtsyn.algosortinganimations.main.customview
import android.animation.ValueAnimator
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Rect
import android.graphics.Typeface
import android.os.SystemClock
import android.text.TextP... | 0 | Kotlin | 0 | 11 | e7f6d0e516b988c6a42813e13b0be515a7a51591 | 37,852 | AlgoSortingAnimations | MIT License |
app/src/test/java/com/example/marsphotos/fake/MarsViewModelTest.kt | sourabhkumar47 | 656,356,960 | false | {"Kotlin": 27434} | package com.example.marsphotos.fake
import com.example.marsphotos.fake.rules.TestDispatcherRule
import com.example.marsphotos.ui.screens.MarsUiState
import com.example.marsphotos.ui.screens.MarsViewModel
import kotlinx.coroutines.test.runTest
import org.junit.Assert.assertEquals
import org.junit.Rule
import org.junit.... | 0 | Kotlin | 0 | 0 | f08ced9809cb9c9aa9de1174766d1574deec0c6a | 1,096 | MarsPhotos_app_compose | Apache License 2.0 |
app/src/main/java/com/vitorxbranco/calculadoraimc/ResultActivity.kt | vitorbranco | 601,275,104 | false | null | package com.vitorxbranco.calculadoraimc
import android.os.Bundle
import android.view.MenuItem
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import java.text.DecimalFormat
class ResultActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
supe... | 0 | Kotlin | 0 | 0 | d79c50c8dbcede2bff087c29ed648f9845fbe39e | 1,608 | CalculadoraIMC | MIT License |
music-quiz/src/main/kotlin/com/mquiz/extension/Extension.kt | ya0igoddess | 642,543,987 | false | {"Kotlin": 68846, "Groovy": 716} | package com.mquiz.extension
import com.github.ya0igoddess.dbsync.database.SkaardModuleDatabase
import com.github.ya0igoddess.dbsync.extensions.KodeinExtension
import com.kotlindiscord.kord.extensions.commands.events.ChatCommandInvocationEvent
import com.kotlindiscord.kord.extensions.extensions.event
import com.mquiz.c... | 0 | Kotlin | 0 | 0 | 9ffd413f2873b8537cf4da545dbf7dd233e62682 | 1,171 | skaard-database-sync | MIT License |
src/commonMain/kotlin/data/general/vehicle/VehicleMember.kt | Hartie95 | 642,871,918 | false | {"Kotlin": 301622} | package data.general.vehicle
import annotations.AddedIn
import messages.VERSION
import org.anime_game_servers.annotations.ProtoModel
@AddedIn(VERSION.V1_6_0)
@ProtoModel
interface VehicleMember {
var uid: Int
var avatarGuid: Long
var pos: Int
} | 0 | Kotlin | 2 | 5 | cb458b49dc9618e3826b890689becc0f12585998 | 258 | anime-game-multi-proto | MIT License |
app/src/main/java/fi/haltu/harrastuspassi/adapters/PromotionListAdapter.kt | City-of-Helsinki | 198,590,695 | false | null | package fi.haltu.harrastuspassi.adapters
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.content.ContextC... | 4 | Kotlin | 3 | 1 | d5aebf9f46b5ffa1775715c62d088f12b96073fe | 3,079 | harrastuspassi-ui-android | MIT License |
core/src/main/java/ru/fabit/gentleman/retry.kt | FabitMobile | 728,099,639 | false | {"Kotlin": 17080} | package ru.fabit.gentleman
@JvmInline
value class Retry(val value: Int)
val none = Retry(0)
val once = Retry(1) | 1 | Kotlin | 0 | 0 | 42495948f318d16dca4ce5c340b34cb0b95a29d2 | 113 | Gentleman | MIT License |
LolRankDuo/app/src/main/java/com/mtjin/lolrankduo/views/login/LoginFragment.kt | mtjin | 347,271,887 | false | null | package com.mtjin.lolrankduo.views.login
import android.content.Intent
import android.util.Log
import androidx.lifecycle.Observer
import androidx.navigation.fragment.findNavController
import com.google.android.gms.tasks.OnCompleteListener
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.ktx... | 0 | Kotlin | 0 | 4 | 7e63dacc0e0e7197ead9dddc97184151ea8b5353 | 6,977 | lol-rank-duo-matching | Apache License 2.0 |
commons/src/commonMain/kotlin/jetbrains/datalore/base/observable/property/Property.kt | JetBrains | 176,771,727 | false | null | /*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.base.observable.property
/**
* Read/Write property
*/
interface Property<ValueT> : ReadableProperty<ValueT>, WritableProperty<ValueT> | 97 | Kotlin | 47 | 889 | c5c66ceddc839bec79b041c06677a6ad5f54e416 | 308 | lets-plot | MIT License |
src/main/kotlin/automaton/constructor/view/AutomatonTransformationView.kt | spbu-se | 460,362,528 | false | {"Kotlin": 450397, "CSS": 78} | package automaton.constructor.view
import automaton.constructor.model.module.layout.static.STATIC_LAYOUTS
import automaton.constructor.model.transformation.AutomatonTransformation
import automaton.constructor.utils.I18N
import javafx.scene.layout.Priority
import javafx.scene.layout.VBox
import tornadofx.*
class Autom... | 4 | Kotlin | 0 | 8 | 008858326d8b70316a95bded8c927d5a635b1f3b | 2,541 | KotlinAutomataConstructor | Apache License 2.0 |
core/notifications/src/main/java/com/popos/core/notifications/SystemTrayNotifier.kt | skniyajali | 644,752,474 | false | {"Kotlin": 5045629, "Shell": 16584, "Ruby": 1461, "Java": 232} | /*
* Copyright 2024 Sk Niyaj Ali
*
* 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 t... | 36 | Kotlin | 0 | 1 | 5cc18164cfb9e685aabb373d904f3c9d6e4aaba9 | 3,035 | PoposRoom | Apache License 2.0 |
app/src/main/java/com/weighttracker/screen/bmi/BmiState.kt | nicolegeorgieva | 556,229,503 | false | null | package com.weighttracker.screen.bmi
import com.weighttracker.domain.NormalWeightRange
data class BmiState(
val weight: Double?,
val height: Double?,
val bmi: Double?,
val kg: Boolean,
val m: Boolean,
val quote: String?,
val normalWeightRange: NormalWeightRange?,
val activity: String?,... | 0 | Kotlin | 0 | 4 | 00e89b9c31a1386e04e64f43699fd431b14806fd | 376 | weight-tracker-android | MIT License |
framework-network/src/main/java/com/hezb/framework/network/OkHttpRequestClient.kt | hezhubo | 617,750,699 | false | null | package com.hezb.framework.network
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit
/**
* Project Name: AndroidFastDev
* File Name: OkHttpRequestClient
*
* Description: Okhttp请求客户端.
* 内部维护一个默认配置的okHttpClient(默认携带请求所需的头信息)
*
* @author hezhubo
* @date 2023年03月24日 18:43
*/
open class OkHt... | 0 | Kotlin | 0 | 0 | c793d1e7b812c4f6c0998ea4a81eea61bb6d60b9 | 1,065 | AndroidFastDev | MIT License |
app/src/main/java/com/omer/ilhanli/applike/tool/ToolGson.kt | omerilhans | 450,808,647 | false | {"Kotlin": 34243} | package com.omer.ilhanli.applike.tool
import android.content.Context
import okio.buffer
import okio.source
import java.io.IOException
import java.nio.charset.Charset
object ToolGson {
infix fun Context.jsonFrom(filePath: String): String? {
try {
val source = assets.open(filePath).source().buf... | 0 | Kotlin | 0 | 0 | 3f5614aaaaa447abfa72f451234588d8154c331d | 507 | applike | Apache License 2.0 |
yaol/src/test/kotlin/info/ljungqvist/yaol/MappedObservableTest.kt | ljungqvist | 153,159,722 | false | null | package info.ljungqvist.yaol
import org.junit.Assert
import org.junit.Test
class MappedObservableTest {
@Test
fun `onChange should not be run until the mapped value changes`() {
val o1 = mutableObservable(false)
val o2 = mutableObservable(false)
val o3 = o1.join(o2){ v1, v2 -> v1 && ... | 0 | Kotlin | 0 | 0 | ba08b17572844619fba64a04558fed7278ad9863 | 778 | yaol | Apache License 2.0 |
educational-core/src/com/jetbrains/edu/learning/serialization/converter/json/ToSixthVersionJsonStepOptionConverter.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.learning.serialization.converter.json
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.node.ObjectNode
import com.jetbrains.edu.learning.serialization.SerializationUtils.Json.*
class ToSixthVersionJsonStep... | 7 | null | 49 | 99 | cfc24fe13318de446b8adf6e05d1a7c15d9511b5 | 1,094 | educational-plugin | Apache License 2.0 |
fluentui_icons/src/main/java/com/microsoft/fluentui/icons/avataricons/presence/busyoof/__Large.kt | anthonysidesap | 454,785,267 | true | {"Kotlin": 2243120, "Shell": 8996} | package com.microsoft.fluentui.icons.avataricons.presence.busyoof
import androidx.compose.ui.graphics.vector.ImageVector
import com.microsoft.fluentui.icons.avataricons.presence.BusyoofGroup
import com.microsoft.fluentui.icons.avataricons.presence.busyoof.large.Dark
import com.microsoft.fluentui.icons.avataricons.pres... | 1 | Kotlin | 2 | 7 | 2b0d10f7b754c189fea210d279487617e5661eaa | 738 | fluentui-android | MIT License |
navigator/src/main/java/dev/joshuasylvanus/navigator/interfaces/ActivityContinuation.kt | Yungjay131 | 532,385,212 | false | null | package dev.joshuasylvanus.navigator.interfaces
import android.view.View
/**
* Created by <NAME>, 5:59 AM, 25/08/2022.
*/
interface ActivityContinuation {
fun addSharedElementTransition(view:View, transitionViewName:String): ActivityContinuation
fun addExtra(key:String, value:Any): ActivityContinuation
... | 0 | Kotlin | 0 | 1 | 9f268df6457676ddb24dc469c93a6420e7111ae2 | 713 | navigator | MIT License |
sample/src/main/java/re/notifica/sample/SamplePushIntentReceiver.kt | Notificare | 279,260,636 | false | {"Kotlin": 760683} | package re.notifica.sample
import android.content.Context
import android.content.Intent
import androidx.work.OneTimeWorkRequestBuilder
import androidx.work.WorkManager
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.launch... | 2 | Kotlin | 0 | 2 | f756ff63b5930360bbb43dafcb29dde61b37cb11 | 3,835 | notificare-sdk-android | MIT License |
numeriko-complex/src/main/kotlin/tomasvolker/numeriko/complex/interfaces/array2d/view/MutableComplexArray2DLowerRankView.kt | TomasVolker | 114,266,369 | false | null | package tomasvolker.numeriko.complex.interfaces.array2d.view
import tomasvolker.numeriko.complex.interfaces.array1d.view.DefaultMutableComplexArray1D
import tomasvolker.numeriko.complex.interfaces.array2d.MutableComplexArray2D
class MutableComplexArray2DLowerRankView(
val array: MutableComplexArray2D,
... | 8 | Kotlin | 1 | 3 | 1e9d64140ec70b692b1b64ecdcd8b63cf41f97af | 1,986 | numeriko | Apache License 2.0 |
player/src/main/java/com/moradyar/anroid/player/player/standard/MultiStandardPlayer.kt | moradyar | 386,067,358 | false | null | package com.moradyar.anroid.player.player.standard
import android.content.Context
import android.view.SurfaceHolder
import android.view.SurfaceView
import com.moradyar.anroid.player.common.Playable
import com.moradyar.anroid.player.common.RepeatModeEnum
import com.moradyar.anroid.player.listeners.TransitionListener
i... | 0 | Kotlin | 0 | 0 | 81de63caa5c30bd3492dcf1b6d009e5826d17085 | 1,059 | story-widget | The Unlicense |
app/src/androidTest/java/com/zsoltbertalan/flickslate/MovieDetailsTest.kt | herrbert74 | 779,374,786 | false | {"Kotlin": 236014} | package com.zsoltbertalan.flickslate
import androidx.compose.ui.test.SemanticsMatcher
import androidx.compose.ui.test.assertAny
import androidx.compose.ui.test.hasTestTag
import androidx.compose.ui.test.hasText
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import androidx.compose.ui.test.onAllNodesWi... | 2 | Kotlin | 2 | 10 | bcb133e3a9cc8870ccac8c5cc42e56a77d609bd6 | 3,505 | FlickSlate | Apache License 2.0 |
src/main/kotlin/com/igorini/togepibot/gui/keyword/good/GoodKeyword.kt | igorini | 123,990,696 | false | null | package com.igorini.togepibot.gui.keyword.good
import com.igorini.togepibot.gui.keyword.Keyword
/** Represents a keyword for text and sound associated with "Good" */
object GoodKeyword : Keyword() {
override fun folder() = "good"
override fun voiceRus() = listOf("хорошо", "хороший", "хорошего", "хорошим", "хо... | 0 | Kotlin | 0 | 0 | 80de398881b5999dfd107b12c9a279915788306b | 903 | togepi-bot | Apache License 2.0 |
src/main/kotlin/tech/espero/gruber/fullstackchallenge/security/JwtTokenUtil.kt | danielgruber | 458,578,234 | false | {"Kotlin": 72512} | package tech.espero.gruber.fullstackchallenge.security
import io.jsonwebtoken.Claims
import io.jsonwebtoken.Jwts
import io.jsonwebtoken.io.Decoders
import io.jsonwebtoken.security.Keys
import org.springframework.beans.factory.annotation.Value
import org.springframework.security.core.userdetails.UserDetails
import org.... | 0 | Kotlin | 0 | 0 | 87323a708956e9577d659ebd100005388043d717 | 2,783 | Full-stack-challenge | Apache License 2.0 |
domain/src/main/java/com/weatherapp/domain/model/GlobalErrors.kt | alex-nechet | 565,087,124 | false | {"Kotlin": 39969} | package com.weatherapp.domain.model
sealed class GlobalErrors : ErrorType{
data class ServerError(val serverError: Throwable) : GlobalErrors()
object BadLocationRequest : GlobalErrors()
object NetworkError: GlobalErrors()
object LocationPermissionError : GlobalErrors()
} | 0 | Kotlin | 0 | 0 | 3e5320b814aa24b4bf0928fd92a239fe714541a3 | 308 | weatherapp | MIT License |
app/src/main/java/com/lnzpk/chat_app/old/settings/HelpSettings.kt | LJZApps | 513,529,210 | false | null | package com.lnzpk.chat_app.old.settings
import android.content.Intent
import android.os.Bundle
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import androidx.preference.Preference
import androidx.preference.PreferenceFragmentCompat
import com.lnzpk... | 0 | Kotlin | 0 | 1 | 38ef72f9fdad2cf9f11ed981b7c51a6b8d32516c | 2,313 | talk-to-me | Apache License 2.0 |
app/src/main/java/ru/resodostudios/flick/di/FavoritesModule.kt | f33lnothin9 | 565,400,839 | false | null | package ru.resodostudios.flick.di
import android.app.Application
import androidx.room.Room
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import ru.resodostudios.flick.feature.favorites.data.data_source.MovieDatabase
import ru.resodostudios.fli... | 0 | Kotlin | 1 | 11 | 034e2d3908750f77037ea3e1c48404dfb0603f57 | 957 | Flick | Apache License 2.0 |
src/main/kotlin/net/timafe/letsgo2/config/CacheConfiguration.kt | tillkuhn | 222,716,226 | false | null | package net.timafe.letsgo2.config
import io.github.jhipster.config.JHipsterProperties
import net.timafe.letsgo2.repository.UserRepository
import org.ehcache.config.builders.CacheConfigurationBuilder
import org.ehcache.config.builders.ExpiryPolicyBuilder
import org.ehcache.config.builders.ResourcePoolsBuilder
import or... | 1 | Kotlin | 0 | 1 | 62994d7b25eff595dfa1b4144096d8614b81389a | 2,339 | letsgo2 | Apache License 2.0 |
app/src/main/java/kh/farrukh/progee/ui/framework_details/FrameworkDetailsFragment.kt | KhusainovFarrukh | 504,784,895 | false | {"Kotlin": 122426} | package kh.farrukh.progee.ui.framework_details
import android.os.Bundle
import android.view.View
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import by.kirich1409.viewbindingdelegate.viewBinding
i... | 0 | Kotlin | 0 | 0 | e52008d3442644e42be5187b6782ffd5350f23cd | 2,681 | Progee-Android | Apache License 2.0 |
app/src/main/java/com/gardner/adam_gardner_rm_interview/data/GameRepositoryImpl.kt | Garguy | 627,987,534 | false | null | package com.gardner.adam_gardner_rm_interview.data
import com.gardner.adam_gardner_rm_interview.data.remote.dto.Game
import java.io.IOException
import javax.inject.Inject
class GameRepositoryImpl @Inject constructor(private val gameData: GameDataSource) : GameRepository {
override suspend fun searchGames(apiKey: ... | 0 | Kotlin | 0 | 1 | b0eafa9a9e38f9d1b5e327bb8ed988882a24854c | 607 | adam-gardner-rm-interview | Apache License 2.0 |
app/src/main/java/com/br/agile_github/agilegithubapi/data/remote/ApiModule.kt | methob | 122,432,870 | false | null | package com.br.agile_github.agilegithubapi.data.remote
import com.jakewharton.retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
import dagger.Module
import dagger.Provides
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import javax.inject.Singleton
/**
* A group of *remote*.
*
* M... | 0 | Kotlin | 1 | 0 | b394f6676c042f815154baf22573441ee98224f5 | 1,304 | github_api_android_mvvm | MIT License |
app/src/main/java/com/bzh/dytt/db/DyttDB.kt | BullfrogTeam | 103,734,879 | false | null | package com.bzh.dytt.db
import androidx.sqlite.db.SupportSQLiteDatabase
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import android.content.Context
import android.os.Build
import androidx.annotation.VisibleForTesting
import android.util.Log
import androidx.work.*
import com... | 0 | null | 66 | 39 | 27494d4b272e572fba1d6efd58d652ac4c42189f | 3,288 | DYTT | MIT License |
ext/three/src/jsMain/kotlin/three/addons/SelectionHelper.d.ts.kt | baaahs | 174,897,412 | false | {"Kotlin": 4817609, "C": 1529197, "C++": 661363, "GLSL": 412779, "JavaScript": 61944, "HTML": 56277, "CMake": 30499, "CSS": 4340, "Shell": 2381, "Python": 1450} | @file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS")
package three.addons
import org.w3c.dom.HTMLElement
import org.w3c.dom.events.Event
import three.Vector2
import three.WebGLRenderer
open external class SelectionHelper(renderer: WebGLRen... | 113 | Kotlin | 13 | 40 | e895b295f951668acdce0371b791e0316a633da6 | 733 | sparklemotion | MIT License |
src/main/kotlin/FUN_005791c0.kt | argcc | 777,572,651 | false | {"Kotlin": 451601} | package org.example
fun FUN_005791c0(
manager: CBaseManager?,
param_2: Boolean,
random_value: Int
) {
//TODO
}
| 0 | Kotlin | 0 | 0 | 7e58b1b74515577b14423443009bc2d04594184a | 128 | ei_reverse_consp | MIT License |
src/main/kotlin/FUN_005791c0.kt | argcc | 777,572,651 | false | {"Kotlin": 451601} | package org.example
fun FUN_005791c0(
manager: CBaseManager?,
param_2: Boolean,
random_value: Int
) {
//TODO
}
| 0 | Kotlin | 0 | 0 | 7e58b1b74515577b14423443009bc2d04594184a | 128 | ei_reverse_consp | MIT License |
src/main/kotlin/io/github/cdsap/geapi/client/model/Task.kt | cdsap | 611,495,770 | false | null | package io.github.cdsap.geapi.client.model
data class Task(
val taskType: String,
val taskPath: String,
val avoidanceOutcome: String,
val duration: Long,
val fingerprintingDuration: Long
)
| 8 | null | 1 | 7 | fabab1a9161b7d21e78b0b74ee7071e3318071fb | 210 | GEApiData | MIT License |
app/src/main/java/com/github/kuya32/vintracker/feature_client/presentation/search_client/ClientItem.kt | kuya32 | 500,516,739 | false | {"Kotlin": 164267} | package com.github.kuya32.vintracker.feature_client.presentation.search_client
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material3.Text
import androidx.... | 0 | Kotlin | 0 | 0 | 04f5982ab89fec7199b3894e3c321aee4caf5ea5 | 4,346 | VinTracker | MIT License |
src/main/kotlin/com/jetbrains/snakecharm/lang/highlighter/SnakemakeSyntaxHighlighterFactory.kt | JetBrains-Research | 165,259,818 | false | {"Python": 1278971, "Kotlin": 885079, "Gherkin": 617149, "Java": 16377, "HTML": 9034, "Lex": 2408, "Roff": 74} | package com.jetbrains.snakecharm.lang.highlighter
import com.intellij.openapi.editor.DefaultLanguageHighlighterColors
import com.intellij.openapi.editor.colors.TextAttributesKey
import com.intellij.openapi.fileTypes.SyntaxHighlighter
import com.intellij.openapi.fileTypes.SyntaxHighlighterFactory
import com.intellij.op... | 92 | Python | 7 | 61 | b71cdb3a290d508046216dfae42e86a7a8210eda | 3,315 | snakecharm | MIT License |
app/src/main/java/com/example/layout_projet/MainActivity.kt | theurt | 459,161,980 | false | null | package com.example.layout_projet
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.FragmentContainerView
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentTransaction
import com.google.firebase.firestore.Q... | 0 | Kotlin | 0 | 0 | af50509e7bdca5a5e8840463c39a553b523c8eea | 1,522 | BAE_App | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.