path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/guoyi/listeninglove/data/FolderLoader.kt | GuoyiZhang | 242,757,044 | false | null | package com.cyl.musiclake.bean.data
import android.content.Context
import android.provider.MediaStore
import com.cyl.musiclake.MusicApp
import com.cyl.musiclake.bean.FolderInfo
import com.cyl.musiclake.common.NavigationHelper
import io.reactivex.Observable
import java.io.File
import java.util.*
object FolderLoader {
... | 1 | null | 1 | 5 | 6d9442bad15910fe6d813bdf556fe1562d950947 | 2,104 | 077-Android-ListeningLove | Apache License 2.0 |
fragment/fragment-lint/src/main/java/androidx/fragment/lint/FragmentIssueRegistry.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2019 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 applica... | 6 | null | 937 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 1,861 | androidx | Apache License 2.0 |
library/src/main/java/com/fanhl/util/CompatibleHelper.kt | dyguests | 135,561,336 | false | null | package com.fanhl.util
import android.os.Build
import android.view.View
/**
* 版本兼容处理
*
* @author fanhl
*/
object CompatibleHelper {
fun postInvalidateOnAnimation(view: View?) {
view?.apply {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
postInvalidateOnAnim... | 1 | null | 11 | 108 | 8979112cad6d42bdaa75afe736c82d541fcb68a0 | 413 | FlameBarChart | Apache License 2.0 |
unify/src/commonTest/kotlin/it/unibo/tuprolog/unify/UnificatorTest.kt | tuProlog | 230,784,338 | false | null | package it.unibo.tuprolog.unify
import it.unibo.tuprolog.core.Atom
import it.unibo.tuprolog.core.Integer
import it.unibo.tuprolog.core.Real
import it.unibo.tuprolog.core.Substitution
import it.unibo.tuprolog.core.Var
import it.unibo.tuprolog.unify.Unificator.Companion.matches
import it.unibo.tuprolog.unify.Unificator.... | 92 | null | 14 | 93 | 3223ffc302e5da0efe2b254045fa1b6a1a122519 | 3,145 | 2p-kt | Apache License 2.0 |
data/src/main/java/com/jfalck/data/di/MoviesDatabaseModule.kt | jeremyfalck | 552,366,176 | false | null | package com.jfalck.data.di
import android.content.Context
import androidx.room.Room
import com.jfalck.data.local.db.MoviesDatabase
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import ja... | 0 | Kotlin | 0 | 0 | 166e2693595948b925f8d4dcfc5ad5780cd7f4a3 | 705 | Mooviz | MIT License |
features/employees/src/main/kotlin/co/ke/xently/learnspring/features/employees/exceptions/advices/EmployeeNotFoundAdvice.kt | ajharry69 | 600,428,197 | false | null | package co.ke.xently.learnspring.features.employees.exceptions.advices
import co.ke.xently.learnspring.features.employees.exceptions.EmployeeNotFoundException
import org.springframework.hateoas.MediaTypes
import org.springframework.hateoas.mediatype.problem.Problem
import org.springframework.http.HttpHeaders
import or... | 1 | Kotlin | 0 | 0 | 7b93ba79d89d2c621f5323f2d1e9e2f8f0375544 | 1,088 | learning-spring-boot | Apache License 2.0 |
dependency-injection/test-component/src/main/kotlin/studio/lunabee/di/SettingsTestModule.kt | LunabeeStudio | 624,544,471 | false | null | /*
* Copyright (c) 2023-2023 Lunabee Studio
*
* 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 ... | 0 | null | 1 | 2 | a34f0ddaf9dc649c2f2082dc2526921bb1a491df | 1,965 | oneSafe6_SDK_Android | Apache License 2.0 |
matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/keysbackup/tasks/UpdateKeysBackupVersionTask.kt | matrix-org | 287,466,066 | false | null | /*
* Copyright 2019 New Vector Ltd
* Copyright 2020 The Matrix.org Foundation C.I.C.
*
* 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
*
... | 75 | null | 6 | 97 | 55cc7362de34a840c67b4bbb3a14267bc8fd3b9c | 1,723 | matrix-android-sdk2 | Apache License 2.0 |
log4k/src/commonMain/kotlin/io/github/smyrgeorge/log4k/impl/registry/AppenderRegistry.kt | smyrgeorge | 873,865,353 | false | {"Kotlin": 26332, "Shell": 399} | package io.github.smyrgeorge.log4k.impl.registry
import io.github.smyrgeorge.log4k.Appender
import io.github.smyrgeorge.log4k.impl.extensions.witLock
import kotlinx.coroutines.sync.Mutex
@Suppress("unused")
class AppenderRegistry<T> {
private val mutex = Mutex()
private val appenders = mutableListOf<Appender<... | 0 | Kotlin | 0 | 7 | 45fc715f030990785a111d7bf5aabbc03d4eb1e3 | 733 | log4k | MIT License |
app/src/main/java/de/p72b/umi/github/utils/Utils.kt | P72B | 217,081,677 | false | null | package de.p72b.umi.github.utils
import android.view.View
import android.widget.TextView
import androidx.core.content.ContextCompat
import com.google.android.material.snackbar.Snackbar
import de.p72b.umi.github.App
import de.p72b.umi.github.R
object Utils {
const val DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZ" //2... | 0 | Kotlin | 0 | 0 | e75b98e39c30f305ecffd12a2a5a9c1a881d163e | 1,058 | GithubBrowserSample | MIT License |
core/src/commonTest/kotlin/codes/laurence/warden/information/InformationPointAggregateTest.kt | lgwillmore | 230,963,216 | false | {"Kotlin": 146883} | package codes.laurence.warden.information
import assertk.assertThat
import assertk.assertions.isSameAs
import codes.laurence.warden.coroutines.runBlockingTest
import codes.laurence.warden.test.accessRequestFixture
import io.mockk.coEvery
import io.mockk.mockk
import kotlin.test.Test
class InformationPointAggregateTes... | 13 | Kotlin | 3 | 17 | 68849fc726ce2a8df09d644e4f80401d7a1b27f6 | 1,078 | warden | MIT License |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerProps.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.elasticloadbalancingv2
import io.cloudshiftdev.awscdk.common.CdkDslMarker
import io.cloudshiftdev.aws... | 4 | null | 0 | 4 | db2b3a364f5e74d8f80490e7850da7f1e7f1e7d0 | 12,693 | kotlin-cdk-wrapper | Apache License 2.0 |
app/src/main/java/com/androidyug/marsrover/ui/intro/AndroidLogoPaths.kt | betafactory | 206,523,382 | false | null | package com.androidyug.marsrover.ui.intro
/**
* Created by derek on 2/6/15.
*/
object AndroidLogoPaths {
val ANDROID_GLYPHS = arrayOf("M 535.59,68.00" +
"C 535.59,68.00 528.28,57.00 528.28,57.00" +
" 523.84,50.62 516.32,42.18 517.20,34.00" +
" 518.38,22.98 530.74,17.59 539.... | 2 | Kotlin | 6 | 7 | 4aaad8c706e844ebbe6d098f221ebdd4dd5a0313 | 8,175 | MarsRoverAndroid | Apache License 2.0 |
aes-android/src/main/java/com/fevziomurtekin/aes/CipherTransformations.kt | fevziomurtekin | 372,067,982 | false | null | package com.fevziomurtekin.aes
/**
* @author: fevziomurtekin
* @date: 29/05/2021
*/
object CipherTransformations {
const val AesCbcNoPadding: String = "AES/CBC/NoPadding"
const val AesCbcPkcs5Padding: String = "AES/CBC/PKCS5Padding"
const val AesEcbNoPadding: String = "AES/CBC/PKCS5Padding"
const val DesCbc... | 0 | Kotlin | 0 | 9 | b29a6addccc9f4e1638fa67005a5f91a7659a623 | 871 | Aes-android | MIT License |
app/src/main/java/io/github/gmathi/novellibrary/network/NovelApi_SearchTerm.kt | ahamedcool | 288,104,783 | true | {"Kotlin": 520507} | package io.github.gmathi.novellibrary.network
import io.github.gmathi.novellibrary.model.Novel
import java.io.IOException
fun NovelApi.searchRoyalRoad(searchTerms: String): ArrayList<Novel>? {
var searchResults: ArrayList<Novel>? = null
try {
searchResults = ArrayList()
val document = getDocu... | 0 | Kotlin | 0 | 0 | dfbd1af4e3c82624fa637b0b90e3be8fc555a270 | 3,906 | NovelLibrary | Apache License 2.0 |
domain/src/test/kotlin/fr/sacane/jmanager/domain/AuthenticationTest.kt | Sacane | 531,082,439 | false | {"Kotlin": 115428, "Vue": 43310, "TypeScript": 18019, "JavaScript": 602, "CSS": 134} | package fr.sacane.jmanager.domain
import fr.sacane.jmanager.domain.models.Response
import fr.sacane.jmanager.domain.models.ResponseState
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
interface AuthenticationTest {
val action: List<Response<out Any>>
@Test
fun badA... | 1 | Kotlin | 0 | 0 | 9238109ddfd0f25846eb8b9acb8e2ba19bb79eb5 | 438 | JManager | MIT License |
tmdb-api/src/main/java/com/chahine/tmdb/api/entities/TvSeason.kt | chahine | 120,981,876 | false | {"Kotlin": 141261} | package com.chahine.tmdb.api.entities
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
class TvSeason(
val id: Int? = null,
@Json(name = "poster_path") val posterPath: String? = null,
@Json(name = "season_number") val seasonNumber: Int? = null,
// @J... | 7 | Kotlin | 1 | 6 | f28df033cef99881570c35e7455ea3fd23073fe6 | 664 | showhive | MIT License |
buildSrc/src/main/kotlin/Libs.kt | diconium | 472,377,158 | false | {"Kotlin": 20208} | import kotlin.String
/**
* Generated by
* $ ./gradlew buildSrcLibs
* Re-run when you add a new dependency to the build
*
* Find which updates are available by running
* $ ./gradlew refreshVersions
* And edit the file `versions.properties`
*
* See https://github.com/jmfayard/refreshVersions
*/
public o... | 10 | Kotlin | 0 | 0 | 6b9171a7c14a58cb7e9e9d07084b7c39570546c0 | 4,378 | bermob-android-marvelous | MIT License |
app/src/main/kotlin/jp/co/yumemi/android/code_check/search/SearchAdapter.kt | yuka1324 | 527,100,696 | false | null | package jp.co.yumemi.android.code_check.search
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import jp... | 0 | Kotlin | 0 | 0 | 9261186fd2c38ea513da92709f91485ea9f0614c | 1,829 | android-engineer-codecheck | Apache License 2.0 |
app/src/main/java/edu/gvsu/art/gallery/ui/ArtistDetailScreen.kt | gvsucis | 655,904,905 | false | {"Kotlin": 293209, "Makefile": 1977, "Ruby": 1690, "Java": 1027} | package edu.gvsu.art.gallery.ui
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fi... | 2 | Kotlin | 1 | 1 | cf747daea721238fc1287dba50cb71e386463b29 | 5,950 | art-at-gvsu-android | Apache License 2.0 |
fabric/src/main/kotlin/me/ricky/forgric/fabric/FabricRegistry.kt | Ricky12Awesome | 344,844,565 | false | null | package me.ricky.forgric.fabric
import me.ricky.forgric.common.*
import net.minecraft.util.Identifier
import net.minecraft.util.registry.MutableRegistry
import net.minecraft.util.registry.Registry
fun Id.toNativeId() = Identifier(namespace, path)
class FabricRegistry<C : Any, T>(
val registry: MutableRegistry<T>,
... | 0 | Kotlin | 0 | 0 | 4fb0b252c93f9eeff83fb053bbc1680b7184fb42 | 1,081 | forgric | MIT License |
src/test/kotlin/test/pl/treksoft/kvision/toolbar/ToolbarSpec.kt | wf-tlazenka | 132,161,484 | true | {"Kotlin": 657748, "CSS": 2721, "JavaScript": 1986, "HTML": 1858} | /*
* Copyright (c) 2018. <NAME>
*/
package test.pl.treksoft.kvision.toolbar
import pl.treksoft.kvision.panel.Root
import pl.treksoft.kvision.toolbar.Toolbar
import test.pl.treksoft.kvision.DomSpec
import kotlin.browser.document
import kotlin.test.Test
class ToolbarSpec : DomSpec {
@Test
fun render() {
... | 0 | Kotlin | 0 | 0 | 5f8c1decc2ec0d63ed97d7018a0d7cc6e4dc2667 | 713 | kvision | MIT License |
substrate-sdk-android/src/test/java/io/novasama/substrate_sdk_android/runtime/definitions/types/generics/EraTypeTest.kt | novasamatech | 429,839,517 | false | {"Kotlin": 647838, "Rust": 10421, "Java": 4208} | package io.novasama.substrate_sdk_android.runtime.definitions.types.generics
import io.novasama.substrate_sdk_android.common.assertInstance
import io.novasama.substrate_sdk_android.runtime.definitions.types.BaseTypeTest
import io.novasama.substrate_sdk_android.runtime.definitions.types.fromHex
import io.novasama.subst... | 4 | Kotlin | 7 | 9 | 8deb9bcec9a5d9d74c509ccc6393cfd0b4ef7144 | 2,100 | substrate-sdk-android | Apache License 2.0 |
android/src/main/kotlin/com/adapty/flutter/push/AdaptyFlutterPushHandler.kt | OnelightApps | 431,496,730 | true | {"Dart": 108394, "Kotlin": 38254, "Swift": 32840, "Ruby": 936, "Objective-C": 731} | package com.adapty.flutter.push
import android.content.Context
import com.adapty.flutter.R
import com.adapty.push.AdaptyPushHandler
class AdaptyFlutterPushHandler(context: Context) : AdaptyPushHandler(context) {
override val clickAction = "ADAPTY_PROMO_CLICK_ACTION"
override val smallIconResId = R.drawable.... | 0 | Dart | 0 | 0 | a5b29caf648396455d9697cbd7899d865f6f94d8 | 342 | AdaptySDK-Flutter | MIT License |
jdk/src/main/kotlin/cz/petrbalat/klib/jdk/datetime/localDateUtils.kt | petrbalat | 228,852,482 | false | null | package cz.petrbalat.klib.jdk.datetime
import java.sql.Timestamp
import java.time.*
import java.time.temporal.ChronoUnit
import java.util.*
/**
* Created by <NAME>
*/
inline val today: LocalDate
get() = LocalDate.now()
inline val now: LocalDateTime
get() = LocalDateTime.now()
fun LocalDate?.orMin(): Loc... | 0 | Kotlin | 0 | 2 | 647d9daa241cfc751788e11b1ab84310fe998990 | 3,346 | klib | MIT License |
libraries/async/src/wasmJsMain/kotlin/com/zegreatrob/testmints/async/TestStyleAsync.wasmJs.kt | robertfmurdock | 172,112,213 | false | {"Kotlin": 174018, "JavaScript": 796, "Batchfile": 697, "Dockerfile": 282} | package com.zegreatrob.testmints.async
import kotlinx.coroutines.await
import kotlinx.coroutines.test.TestResult
import kotlin.js.Promise
actual suspend fun waitForTest(testFunction: () -> TestResult) {
val testResult = testFunction()
@Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE", "CAST_NEVER_SUCCEEDS")
... | 0 | Kotlin | 2 | 5 | 2511f5495ccc1acb23297d03d826e60575225266 | 453 | testmints | MIT License |
libraries/async/src/wasmJsMain/kotlin/com/zegreatrob/testmints/async/TestStyleAsync.wasmJs.kt | robertfmurdock | 172,112,213 | false | {"Kotlin": 174018, "JavaScript": 796, "Batchfile": 697, "Dockerfile": 282} | package com.zegreatrob.testmints.async
import kotlinx.coroutines.await
import kotlinx.coroutines.test.TestResult
import kotlin.js.Promise
actual suspend fun waitForTest(testFunction: () -> TestResult) {
val testResult = testFunction()
@Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE", "CAST_NEVER_SUCCEEDS")
... | 0 | Kotlin | 2 | 5 | 2511f5495ccc1acb23297d03d826e60575225266 | 453 | testmints | MIT License |
app/src/main/java/co/tami/basketball/team/data/source/fake/FakeData.kt | Hydratant | 747,542,242 | false | {"Kotlin": 96293} | @file:Suppress(
"NonAsciiCharacters", "PrivatePropertyName", "SpellCheckingInspection",
"ObjectPropertyName"
)
package co.tami.basketball.team.data.source.fake
import co.tami.basketball.team.data.PlayerAttributesData
import co.tami.basketball.team.data.PlayerData
import co.tami.basketball.team.data.PlayerPosi... | 2 | Kotlin | 0 | 0 | fe817d06e63403b312ad37fca2ebeecd01b3d9d8 | 2,874 | team | Apache License 2.0 |
src/main/kotlin/io/github/grassmc/mcdev/gradle/platform/pluginmeta/PluginMetaBase.kt | GrassMC | 603,643,726 | false | null | /*
* Copyright 2023 GrassMC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 6 | Kotlin | 0 | 1 | ee72e57643ddbb50f3a0c48c0797118cd443ef6f | 1,357 | mcdev-gradle-plugin | Apache License 2.0 |
legacy/src/test/java/jp/hazuki/yuzubrowser/legacy/action/item/CloseAutoSelectActionTest.kt | hazuki0x0 | 84,384,224 | false | null | /*
* Copyright (C) 2017-2019 DiepDT
*
* 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... | 115 | null | 95 | 301 | 6a867f406b7fc6b29f1899c7ca622e7ce75fafa0 | 2,402 | YuzuBrowser | Apache License 2.0 |
compiler/testData/psi/recovery/ForWithOnlyOneLParInEOF.kt | JakeWharton | 99,388,807 | false | null | fun test() = for ( | 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 18 | kotlin | Apache License 2.0 |
launch/src/main/java/cn/leizy/lauch/task/ITask.kt | Leizxy | 223,341,470 | false | {"Gradle": 8, "Java Properties": 2, "Text": 1, "Ignore List": 6, "Markdown": 1, "Proguard": 5, "Kotlin": 98, "XML": 26, "INI": 2, "Java": 5, "JSON": 1} | package cn.leizy.lauch.task
import android.os.Process
import androidx.annotation.IntRange
import java.util.concurrent.Executor
/**
* @author Created by wulei
* @date 2020/8/5, 005
* @description
*/
interface ITask {
/**
* 优先级的范围,可根据Task重要程度及工作量指定;之后根据实际情况决定是否有必要放更大
*
* @return
*/
@IntR... | 0 | Kotlin | 0 | 0 | 7f3a0cd0343fd851f4d4accbe5ab65ebd3af6bd8 | 1,129 | MyKotlinMVP | MIT License |
src/main/kotlin/com/azhapps/lagbot/commands/ResumeCommand.kt | Azhrei251 | 447,149,817 | false | {"Kotlin": 71940, "Dockerfile": 238, "Shell": 115} | package com.azhapps.lagbot.commands
import com.azhapps.lagbot.commands.model.CommandContext
fun Commands.resume(context: CommandContext) {
val scheduler = context.scheduler
if (scheduler == null) {
context.onResponse("Nothing to resume!")
} else {
context.onResponse("Resumed")
sche... | 4 | Kotlin | 0 | 1 | b186db70d69da72e98a6ef628e4cef43f2d3209c | 342 | lagbot | Apache License 2.0 |
plugin/src/main/kotlin/ru/astrainteractive/astrashop/command/CommandManager.kt | Astra-Interactive | 562,599,158 | false | {"Kotlin": 72924} | package ru.astrainteractive.astrashop.command
import ru.astrainteractive.astrashop.AstraShop
import ru.astrainteractive.astrashop.command.di.CommandModule
import ru.astrainteractive.klibs.kdi.Factory
class CommandManager(
private val plugin: AstraShop,
private val module: CommandModule
) : Factory<Unit> {
... | 3 | Kotlin | 1 | 0 | ddad585065465555a50822aaeba0264be6e1dbc5 | 414 | AstraShop | MIT License |
android/src/main/java/ru/gbixahue/eu4d/android/text/transformer/chain/ColorDecorator.kt | GooSync | 244,564,338 | false | null | package ru.gbixahue.eu4d.android.text.transformer.chain
import android.text.style.ForegroundColorSpan
import androidx.annotation.ColorInt
/**
* Created by Anton Zhilenkov on 29.10.18.
*/
class ColorDecorator(
@ColorInt private val color: Int,
start: Int,
end: Int,
source: CharSequence? = null
): BaseChainDe... | 0 | Kotlin | 0 | 0 | 3b7b64fc93e6560378fdbce612a6de1981df95a0 | 526 | eu4d | Apache License 2.0 |
app/src/main/java/com/viatom/sevenweather/ui/place/PlaceViewModel.kt | sun-11225 | 410,492,840 | false | null | package com.viatom.sevenweather.ui.place
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.viatom.sevenweather.house.Repository
import com.viatom.sevenweather.logic.dao.PlaceDao
import com.viatom.sevenweather.logic.model.Place
import java... | 1 | null | 1 | 1 | 01b74feaa50c3ee092565bf71f1910816c6c8909 | 1,316 | SevenWeather | Apache License 2.0 |
hard/kotlin/c0004_30_substring-with-concatenation-of-all-words/00_leetcode_0004.kt | drunkwater | 127,843,545 | false | {"Text": 2, "Shell": 7, "Markdown": 3, "Perl": 12, "HTML": 3645, "C": 2246, "Java": 738, "Swift": 738, "Go": 738, "C#": 750, "Microsoft Visual Studio Solution": 4, "XML": 8, "Makefile": 1476, "Python": 1476, "Kotlin": 738, "Ruby": 738, "JavaScript": 738, "Scala": 738, "C++": 1484} | // DRUNKWATER TEMPLATE(add description and prototypes)
// Question Title and Description on leetcode.com
// Function Declaration and Function Prototypes on leetcode.com
//30. Substring with Concatenation of All Words
//You are given a string, s, and a list of words, words, that are all of the same length. Find all star... | 1 | null | 1 | 1 | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | 926 | leetcode | Ruby License |
browser/src/main/java/com/snxun/browser/module/fragment/IFragmentBackPressed.kt | YassKnight | 316,117,283 | false | {"Java": 185752, "Kotlin": 20265} | package com.snxun.browser.module.fragment
/**
* 让Fragment实现返回按钮监听接口
* Created by zhouL on 2018/6/20.
*/
interface IFragmentBackPressed {
fun onPressBack(): Boolean
} | 1 | Java | 1 | 6 | 7ab89c738260ec36821819411dd96b569d7f94ce | 173 | LimeBrowser | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/outline/Sidebarleft.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 4,102 | VuesaxIcons | MIT License |
src/main/kotlin/com/atlassian/performance/tools/jiraactions/api/action/CreateIssueAction.kt | atlassian | 162,422,950 | false | {"Kotlin": 214499, "Java": 1959} | package com.atlassian.performance.tools.jiraactions.api.action
import com.atlassian.performance.tools.jiraactions.api.*
import com.atlassian.performance.tools.jiraactions.api.measure.ActionMeter
import com.atlassian.performance.tools.jiraactions.api.memories.ProjectMemory
import org.apache.logging.log4j.LogManager
imp... | 8 | Kotlin | 31 | 26 | 10b363eda1e171f8342eaeeb6deac843b1d34df3 | 1,705 | jira-actions | Apache License 2.0 |
compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/phaser/PhaseBuilders.kt | android | 263,405,600 | true | null | /*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.backend.common.phaser
import org.jetbrains.kotlin.backend.common.CommonBackendCo... | 1 | Kotlin | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 10,509 | kotlin | Apache License 2.0 |
src/main/kotlin/com/tddworks/spring/kotlin/examples/coroutines/user/api/UsersApi.kt | tddworks | 863,607,454 | false | {"Kotlin": 5929} | package com.tddworks.spring.kotlin.examples.coroutines.user.api
import kotlinx.coroutines.flow.Flow
interface UsersApi : FlowUsersApi {
suspend fun createUser(user: User): User
suspend fun getUser(id: Long): User?
suspend fun updateUser(user: User): User
suspend fun deleteUser(id: Long)
suspend fu... | 0 | Kotlin | 0 | 0 | 1fdfd2ea4a4693d9aa247419851485806886292e | 409 | spring-kotlin-examples | Apache License 2.0 |
src/main/kotlin/io/github/projectmapk/jackson/module/kogera/deser/value_instantiator/KotlinValueInstantiator.kt | ProjectMapK | 488,347,906 | false | null | package com.fasterxml.jackson.module.kotlin.deser.value_instantiator
import com.fasterxml.jackson.databind.BeanDescription
import com.fasterxml.jackson.databind.DeserializationConfig
import com.fasterxml.jackson.databind.DeserializationContext
import com.fasterxml.jackson.databind.JavaType
import com.fasterxml.jackson... | 7 | null | 1 | 85 | 8c2d7cbafefc35ab98bbb17506b9e2379923b1eb | 5,490 | jackson-module-kogera | Apache License 2.0 |
simplex/src/test/java/io/em2m/simplex/TreeTest.kt | em2m | 114,274,216 | false | null | package io.em2m.simplex
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import io.em2m.simplex.model.BasicKeyResolver
import io.em2m.simplex.model.ConstKeyHandler
import io.em2m.simplex.model.... | 2 | Kotlin | 14 | 3 | 89e0645d56e491a6a938c593c06330efe7752547 | 6,093 | em2m-java-sdk | Apache License 2.0 |
app/src/main/java/com/example/myhealthpassport/ViewModels/AgentViewModel.kt | anuragkanojiya1 | 839,037,663 | false | {"Kotlin": 171170} | package com.example.myhealthpassport.ViewModels
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.myhealthpassport.Agent.AgentInstance
import com.example.myhealthpassport.Agent.MistralMessage
impo... | 0 | Kotlin | 1 | 2 | b2a7b5db4d083fa5f64b3d75a238d75e9f239549 | 2,419 | MyHealthPassport | MIT License |
samples/wearable-standalone/src/main/kotlin/researchstack/wearable/standalone/domain/usecase/profile/RegisterProfileUseCase.kt | S-ResearchStack | 520,365,275 | false | {"Kotlin": 178868, "AIDL": 4785} | package researchstack.wearable.standalone.domain.usecase.profile
import researchstack.wearable.standalone.domain.model.UserProfileModel
import researchstack.wearable.standalone.domain.repository.ProfileRepository
import javax.inject.Inject
class RegisterProfileUseCase @Inject constructor(
private val profileRepos... | 0 | Kotlin | 20 | 26 | 58b4b9b64623a7d2a0865307d490a59a7538d7cd | 509 | app-sdk | Apache License 2.0 |
source_code/app/src/main/java/com/example/speakingtopics/network/apiservice/ApiServiceImpl.kt | radocodes | 565,788,532 | false | {"Kotlin": 26458} | package com.example.speakingtopics.network.apiservice
import com.example.speakingtopics.network.ApiRoutes
import com.example.speakingtopics.network.models.topics.JsonBinResponseModel
import com.example.speakingtopics.network.models.topics.TopicResponseModel
import io.ktor.client.*
import io.ktor.client.call.*
import i... | 0 | Kotlin | 0 | 0 | 3d262bac0d3dece0e1993171021a5e217bd89714 | 620 | Speaking-Topics | MIT License |
app/src/main/java/com/rokoblak/chatbackup/ui/commonui/ConversationDisplay.kt | oblakr24 | 598,672,859 | false | null | package com.rokoblak.chatbackup.commonui
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.material.Checkbox
import androidx.compose.material.CheckboxDefaults
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import andr... | 0 | null | 0 | 2 | ebca08b724a7663ec0cf36b70278b876cc0e315a | 3,901 | chat-backup-app | Apache License 2.0 |
buildSrc/src/main/kotlin/Versions.kt | rdietrichberlin | 504,472,022 | false | {"Kotlin": 55596} | object Versions {
const val kotlin = "1.5.31" // "1.6.21"
const val kotlinCoroutines = "1.5.2"
const val mockk = "1.12.3"
const val material = "1.6.1"
const val gson = "2.9.0"
const val retrofit = "2.9.0"
const val okhttp = "4.9.0"
const val junitJupiter = "5.6.2"
const val koin = "... | 0 | Kotlin | 0 | 1 | d74df262aed7e221cb27e87b34159e537e36c4d7 | 652 | dbchallenge | MIT License |
src/main/kotlin/com/jessecorbett/diskord/api/client/internal/RestClient.kt | incendium | 163,341,694 | true | {"Kotlin": 124695} | package com.jessecorbett.diskord.api.client.internal
import com.jessecorbett.diskord.api.DiscordUserType
import com.jessecorbett.diskord.api.exception.*
import com.jessecorbett.diskord.internal.*
import kotlinx.coroutines.delay
import okhttp3.*
import java.io.IOException
import java.time.Instant
import kotlin.coroutin... | 0 | Kotlin | 0 | 0 | 53d1f557d0cafc0a8d85f5333405df60bfffebe6 | 4,672 | Diskord | The Unlicense |
uranium-arkade-htmlcanvas/src/jsMain/kotlin/pl/karol202/uranium/arkade/htmlcanvas/dom/input/NativeKeyboardEvent.kt | karol-202 | 269,330,616 | false | null | package pl.karol202.uranium.arkade.htmlcanvas.dom.input
import org.w3c.dom.events.KeyboardEvent
internal actual class NativeKeyboardEvent(private val event: KeyboardEvent)
{
actual val type get() = event.type
actual val key get() = event.key
actual val code get() = event.code
actual val repeat get() = event.repea... | 1 | Kotlin | 1 | 3 | ed458611e89b2bdb85d0a23c30c9dd6c0611d30f | 492 | uranium-arkade | MIT License |
testSrc/com/koxudaxi/poetry/PoetryTestCase.kt | koxudaxi | 262,716,981 | false | null | package com.koxudaxi.poetry
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl
import com.intellij.testFramework.fixtures.BasePlatformTestCase
import org.jetbrains.kotlin.konan.file.File
abstract class PoetryTestCase : BasePlatformTestCase() {
protected open... | 27 | Kotlin | 14 | 178 | 51b33be1c68a151459c8fb4cb5bedd1f93c502f4 | 857 | poetry-pycharm-plugin | Apache License 2.0 |
app-examples/example-kt-03adapters/src/test/java/foo/bar/example/foreadapterskt/feature/playlist/MutablePlaylistModelTest.kt | erdo | 92,027,307 | false | null | package foo.bar.example.foreadapterskt.feature.playlist
import org.junit.Assert
import org.junit.Before
import org.junit.Test
import co.early.fore.adapters.mutable.UpdateSpec
import co.early.fore.kt.core.logging.SystemLogger
import co.early.fore.core.observer.Observer
import co.early.fore.core.time.SystemTimeWrapper
... | 3 | null | 4 | 46 | 1af5bd3ad9b2395a636fac12c40016fd2c815d0c | 9,791 | android-fore | Apache License 2.0 |
ExampleApp/app/src/main/java/com/example/exampleapp/ui/fragments/main/MainFragment.kt | MarkMurillo | 444,558,624 | false | {"Kotlin": 20766} | package com.example.exampleapp.ui.fragments.main
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import com.example.exampleapp.databinding.MainFragmentBinding
import com.example.exampleapp.ui.common.BaseFragment
... | 0 | Kotlin | 0 | 0 | bc1eaf9fefc3229f34f00a56bb91b1c170b7823a | 1,395 | android_example | MIT License |
app/src/main/java/com/joshhn/workoutapp/ExerciseStatusAdapter.kt | joshhn | 508,356,450 | false | null | package com.example.a7minutesworkout
import android.graphics.Color
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import com.example.a7minutesworkout.databinding.ItemExerciseStatusBind... | 0 | Kotlin | 0 | 2 | 105cdf2d525cfd92c475687096c94b39adf35f77 | 2,369 | WorkoutApp | Apache License 2.0 |
app/src/main/kotlin/com/ivanovsky/passnotes/data/entity/EncryptedDatabaseElement.kt | aivanovski | 95,774,290 | false | null | package com.ivanovsky.passnotes.data.entity
/**
* Interface for [Group], [Note] and [Property]
*/
interface EncryptedDatabaseElement | 6 | null | 4 | 53 | 83605c13c7f13e1f484aa00f6b3e9af622880888 | 135 | keepassvault | Apache License 2.0 |
domain/src/main/java/com/linhtetko/domain/repositories/WeatherRepository.kt | lin-htet-ko | 726,358,254 | false | {"Kotlin": 95925, "CMake": 1249, "C++": 502} | package com.linhtetko.domain.repositories
import com.linhtetko.domain.vos.WeatherVO
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.Flow
interface WeatherRepository {
suspend fun addCurrentWeather(weather: WeatherVO)
suspend fun addForecastWeathers(weathers: List<WeatherVO>)
fun... | 0 | Kotlin | 0 | 0 | dea33ddf60850d8e3ec8fc6d121cb161ea65bd1a | 926 | efficient_weather_app | Apache License 2.0 |
shared-ui/src/commonMain/kotlin/com/foreverrafs/superdiary/ui/feature/creatediary/screen/CreateDiaryScreen.kt | rafsanjani | 315,355,130 | false | null | package com.foreverrafs.superdiary.ui.feature.creatediary.screen
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.run... | 14 | null | 0 | 8 | 4db59c9093ddac1360a6457f886bf57121bfe5ed | 2,792 | superdiary | MIT License |
shared-ui/src/commonMain/kotlin/com/foreverrafs/superdiary/ui/feature/creatediary/screen/CreateDiaryScreen.kt | rafsanjani | 315,355,130 | false | null | package com.foreverrafs.superdiary.ui.feature.creatediary.screen
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.run... | 14 | null | 0 | 8 | 4db59c9093ddac1360a6457f886bf57121bfe5ed | 2,792 | superdiary | MIT License |
filmes-api/src/main/kotlin/com/pedroulissespu/filmesapi/repository/FilmesRepository.kt | pedroulissespu | 564,922,069 | false | null | package com.pedroulissespu.filmesapi.repository
import com.pedroulissespu.filmesapi.model.Filme
import org.springframework.data.jpa.repository.JpaRepository
interface FilmesRepository : JpaRepository<Filme, Long> {
} | 0 | Kotlin | 1 | 2 | dd912b378c242a766d1242c7449e7f697fcb9589 | 218 | filmes-api | MIT License |
articleFlow/src/main/java/com/common/entity/FileType.kt | ihareshvaghela | 777,749,632 | false | {"Kotlin": 219746} | /*
* Copyright (c) 2022-2023.8.11
* All right reserved 2023
* Created by Haresh Vaghela
*/
package com.common.entity
object FileType {
const val image = "image"
const val video = "video"
const val pdf = "pdf"
} | 0 | Kotlin | 0 | 0 | f48657be3418d39ff15663da5ce8c53cba7ea34a | 228 | Android-Tech-Test | MIT License |
app/src/main/java/dgca/verifier/app/android/verification/VerificationDialogFragment.kt | andypandy47 | 368,791,581 | true | {"Kotlin": 99183, "JavaScript": 708} | /*
* ---license-start
* eu-digital-green-certificates / dgca-verifier-app-android
* ---
* Copyright (C) 2021 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | 0 | null | 0 | 0 | 223ea28bf8b50bcc8a67ba276d3e28f51cb81863 | 7,593 | dgca-verifier-app-android | Apache License 2.0 |
src/main/kotlin/com/yangga/kopringrestapiboilerplate/module/user/application/UserService.kt | yangga | 692,578,157 | false | {"Kotlin": 63382, "Shell": 273} | package com.yangga.kopringrestapiboilerplate.module.user.application
import com.yangga.kopringrestapiboilerplate.common.error.enums.ErrorCode
import com.yangga.kopringrestapiboilerplate.common.error.exception.ApiException
import com.yangga.kopringrestapiboilerplate.module.user.application.port.`in`.UserUseCase
import ... | 0 | Kotlin | 0 | 0 | 52f95908f0da71c33b05f1a27362d2c519c9cb14 | 1,633 | kopring-restapi-boilerplate | MIT License |
app/src/main/java/io/cricket/app/ui/modules/history/live_match/LiveMatchItemVM.kt | amirishaque | 375,128,729 | false | null | package io.cricket.app.ui.modules.history.live_match
import android.os.Bundle
import android.view.View
import androidx.lifecycle.MutableLiveData
import io.cricket.app.R
import io.cricket.app.base.BaseListDataViewModel
import io.cricket.app.model.Match
import io.cricket.app.model.MatchToUpload
import io.cricket.app.ui.... | 0 | Kotlin | 0 | 0 | 42808ddd775b5ac6f7bff0d8cf518091588df844 | 1,551 | Cricklub_livecode | MIT License |
app/src/main/java/com/superwall/superapp/MainActivity.kt | superwall | 642,585,064 | false | {"Kotlin": 1190760} | package com.superwall.superapp
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.superwall.sdk.Superwall
import com.superwall.superapp.test.UITestActivity
class MainActivity : AppCompatActivity() {
override fun onCreate(s... | 9 | Kotlin | 3 | 9 | 2582de8d48af7c0ad080e30949d920e8a34d9219 | 4,242 | Superwall-Android | MIT License |
backend/base/src/main/kotlin/one/ifelse/module/base/helper/sql/Builder.kt | ifelsedotonestd | 696,103,275 | false | {"Kotlin": 105363} | package one.ifelse.module.base.helper.sql
interface Builder<T> {
fun build(): JpaQueryExecutor<T>
} | 0 | Kotlin | 0 | 0 | 488005ab1190d6927a93dabf23e59ffa66ed4def | 104 | spring-vue-admin-template | The Unlicense |
shared_resources/src/main/java/com/thewizrd/shared_resources/lifecycle/LifecycleAwareFragment.kt | SimpleAppProjects | 197,253,270 | false | null | package com.thewizrd.shared_resources.lifecycle
import androidx.fragment.app.Fragment
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.lifecycleScope
import kotlinx.coroutines.*
import kotlin.coroutines.CoroutineContext
import kotlin.coroutines.EmptyCoroutineContext
abstract class LifecycleAwareFragment ... | 9 | null | 8 | 99 | f8df1f9b321130e3b7d031ed2e2e3bbe7d196c86 | 5,209 | SimpleWear | Apache License 2.0 |
androidTestClient/src/main/java/com/trevjonez/kontrast/LayoutHelper.kt | trevjonez | 96,487,923 | false | null | /*
* Copyright 2017 <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 ... | 5 | null | 2 | 28 | 136f3bc5d3ecb87320f87ef2144533babec13226 | 5,184 | Kontrast | Apache License 2.0 |
commons/src/commonMain/kotlin/org/jetbrains/letsPlot/commons/intern/util/VecUtil.kt | JetBrains | 176,771,727 | false | {"Kotlin": 7616680, "Python": 1299756, "Shell": 3453, "C": 3039, "JavaScript": 931, "Dockerfile": 94} | /*
* Copyright (c) 2024. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package org.jetbrains.letsPlot.commons.intern.util
import org.jetbrains.letsPlot.commons.intern.typedGeometry.Scalar
import org.jetbrains.letsPlot.commons.intern.typedGeometr... | 150 | Kotlin | 51 | 1,561 | c8db300544974ddd35a82a90072772b788600ac6 | 2,587 | lets-plot | MIT License |
inference/inference-core/src/commonMain/kotlin/io/kinference.core/operators/math/MathUtils.kt | JetBrains-Research | 244,400,016 | false | null | package io.kinference.operators.math
import kotlin.math.exp
inline fun tanh(value: Float): Float {
var temp = exp(2.0f * value)
if (temp.isInfinite()) temp = Float.MAX_VALUE
return ((temp - 1.0f) / (temp + 1.0f))
}
inline fun tanh(value: Double): Double {
return ((exp(2.0 * value) - 1.0) / (exp(2.0 *... | 2 | Kotlin | 5 | 74 | 5cd3ac9c79f3f1ebb9ec5c83adb706dc8325a852 | 604 | kinference | Apache License 2.0 |
shared/src/commonMain/kotlin/utils/Extensions.kt | sunildhiman90 | 672,833,519 | false | {"Kotlin": 310248, "Swift": 6652, "JavaScript": 4142, "HTML": 663, "Shell": 228, "Ruby": 101} | package utils
import androidx.compose.ui.unit.dp
import core.ComposeScreenConfiguration
object ResponsiveHelper {
val isTablet: Boolean
get() = isTablet
val isDesktop: Boolean
get() = isDesktop
val isMobile: Boolean
get() = isMobile
}
fun ComposeScreenConfiguration.isTablet()... | 0 | Kotlin | 0 | 1 | 59fb3a1cc1e84fb777d6806bf1368e7def123364 | 559 | YourFlixer-KMP | Apache License 2.0 |
aoc-day8/src/Signal.kt | rnicoll | 438,043,402 | false | {"Kotlin": 90620, "Rust": 1313} | enum class Signal {
a,
b,
c,
d,
e,
f,
g
} | 0 | Kotlin | 0 | 0 | 8c3aa2a97cb7b71d76542f5aa7f81eedd4015661 | 69 | adventofcode2021 | MIT License |
app/src/main/java/com/bluehub/fastmixer/screens/mixing/MixingRepository.kt | Solunadigital | 314,575,015 | true | {"C++": 80949, "Kotlin": 68260, "CMake": 4609, "C": 1990} | package com.bluehub.fastmixer.screens.mixing
class MixingRepository(val mixingEngineProxy: MixingEngineProxy) {
fun createMixingEngine() {
mixingEngineProxy.create()
}
fun readSamples(filePath: String): Array<Float> = mixingEngineProxy.readSamples(filePath)
fun getTotalSamples(filePath: Strin... | 0 | null | 0 | 0 | fa05fb9e3df420d4194c160464f927db60e6c83d | 434 | fast-mixer | MIT License |
mb-common/src/main/kotlin/com/nomkhonwaan/mb/common/messaging/attachment/AttachmentEvents.kt | nomkhonwaan | 164,768,574 | false | null | package com.nomkhonwaan.mb.common.messaging.attachment
import com.nomkhonwaan.mb.common.messaging.Event
import java.io.InputStream
/**
* An uploading Attachment Event.
*
* @param id An identifier of the Attachment
* @param inputStream An uploaded file input stream
* @param size A size of the uplo... | 0 | Kotlin | 0 | 0 | 481c3b60568cac387be12cdaeb05f7c538494772 | 1,057 | mb | MIT License |
app/src/main/java/sgtmelon/adventofcode/app/presentation/model/Year.kt | SerjantArbuz | 559,224,296 | false | {"Kotlin": 152755} | package sgtmelon.adventofcode.app.presentation.model
data class Year(val id: Int, val dayList: List<Day>) {
val doneCount = dayList.count { it.solution == Solution.FULL }
} | 0 | Kotlin | 0 | 0 | 26a57b8431c03e2d09071f7302d6360ba91bfd2f | 179 | AdventOfCode | Apache License 2.0 |
app/src/main/java/sgtmelon/adventofcode/app/presentation/model/Year.kt | SerjantArbuz | 559,224,296 | false | {"Kotlin": 152755} | package sgtmelon.adventofcode.app.presentation.model
data class Year(val id: Int, val dayList: List<Day>) {
val doneCount = dayList.count { it.solution == Solution.FULL }
} | 0 | Kotlin | 0 | 0 | 26a57b8431c03e2d09071f7302d6360ba91bfd2f | 179 | AdventOfCode | Apache License 2.0 |
fabric/src/main/kotlin/com/plasmoverse/rpshare/DownloadTask.kt | plasmoapp | 655,924,413 | false | null | package com.plasmoverse.rpshare
import com.plasmoverse.rpshare.ResourcePackShareClient.scope
import com.plasmoverse.rpshare.gui.ErrorScreen
import com.plasmoverse.rpshare.model.DownloadData
import kotlinx.coroutines.Job
import kotlinx.coroutines.isActive
import kotlinx.coroutines.launch
import net.minecraft.client.Min... | 0 | Kotlin | 0 | 1 | b9a55364d5acd7a6a8471fd5972a1af62eb4040f | 3,778 | RPShare | MIT License |
src/main/kotlin/xyz/chlamydomonos/hyphacraft/loaders/BlockTagLoader.kt | Chlamydomonos | 832,406,228 | false | {"Kotlin": 331361, "Java": 6074} | package xyz.chlamydomonos.hyphacraft.loaders
import net.minecraft.tags.TagKey
import net.minecraft.world.level.block.Block
import xyz.chlamydomonos.hyphacraft.blocks.tags.BaseBlockTag
import xyz.chlamydomonos.hyphacraft.blocks.tags.minecraft.MineableWithAxeTag
import xyz.chlamydomonos.hyphacraft.blocks.tags.minecraft.... | 0 | Kotlin | 0 | 0 | 66942935b237b4ce243958544411809a09118e35 | 1,699 | HyphaCraft | MIT License |
easy/kotlin/c0098_405_convert-a-number-to-hexadecimal/00_leetcode_0098.kt | drunkwater | 127,843,545 | false | null | // DRUNKWATER TEMPLATE(add description and prototypes)
// Question Title and Description on leetcode.com
// Function Declaration and Function Prototypes on leetcode.com
//405. Convert a Number to Hexadecimal
//Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement meth... | 1 | null | 1 | 1 | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | 989 | leetcode | Ruby License |
app/src/main/java/com/github/zawadz88/exoplayeraudiosample/presentation/main/viewmodel/MainViewModel.kt | zawadz88 | 165,692,093 | false | null | package com.github.zawadz88.exoplayeraudiosample.presentation.main.viewmodel
import androidx.lifecycle.ViewModel
import com.github.zawadz88.exoplayeraudiosample.domain.interactor.LoadPlaylist
import com.github.zawadz88.exoplayeraudiosample.internal.rx.EmptySingleObserver
import timber.log.Timber
import javax.inject.In... | 1 | null | 2 | 9 | 75675ce3eba05fbc8eb7cc6e2b9569a55670d37d | 881 | ExoPlayerAudioSample | MIT License |
app/src/main/java/com/example/pazaramamovieapp/presentation/home/HomeUiState.kt | ozturksahinyetisir | 743,101,052 | false | {"Kotlin": 33302} | package com.example.pazaramamovieapp.presentation.home
import com.example.pazaramamovieapp.domain.model.Movie
data class HomeUiState(
val movies: List<Movie> = emptyList(),
val isLoading: Boolean = false,
val searchQuery: String = "Batman",
val errorMessage: String? = null
)
| 0 | Kotlin | 0 | 0 | 597eedd0d1fb748be7a536a5943d1fa37ff9eb33 | 294 | Pazarama-MovieApp | MIT License |
buildSrc/src/main/java/co/anitrend/arch/buildSrc/plugin/components/ProjectMaven.kt | AniTrend | 155,243,365 | false | {"Kotlin": 396351} | package co.anitrend.arch.buildSrc.plugin.components
import co.anitrend.arch.buildSrc.plugin.extensions.props
import co.anitrend.arch.buildSrc.plugin.extensions.publishingExtension
import org.gradle.api.Project
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.api.tasks.bundling.Jar
internal fun ... | 2 | Kotlin | 1 | 7 | aa2074c3e2b57eee580b21ea688bbf0c1eb7352e | 1,901 | support-arch | Apache License 2.0 |
domain/src/main/java/io/homeassistant/companion/android/domain/integration/IntegrationUseCase.kt | jsmeyers | 291,310,220 | true | {"Kotlin": 530456} | package io.homeassistant.companion.android.domain.integration
interface IntegrationUseCase {
suspend fun registerDevice(deviceRegistration: DeviceRegistration)
suspend fun updateRegistration(
appVersion: String? = null,
deviceName: String? = null,
manufacturer: String? = null,
... | 0 | Kotlin | 0 | 0 | 72981d2360167c36c24029d7dbefdcecbe84c9bc | 1,676 | android | Apache License 2.0 |
gl/src/main/kotlin/imgui/impl/gl/ImplGL3.kt | kotlin-graphics | 59,469,938 | false | null | package imgui.impl.gl
import glm_.L
import glm_.glm
import glm_.i
import glm_.vec2.Vec2
import glm_.vec4.Vec4ub
import gln.*
import gln.glf.semantic
import gln.identifiers.GlBuffers
import gln.identifiers.GlProgram
import gln.identifiers.GlVertexArray
import gln.uniform.glUniform
import gln.vertexArray.glVertexAttribP... | 23 | null | 34 | 531 | 0091e9b297eb940cd91a78bb71c3036bb4463269 | 15,062 | imgui | MIT License |
src/com/github/bhryno/chlorine/util/Utils.kt | Bhryno | 731,845,405 | false | {"Kotlin": 6268} | package com.github.bhryno.chlorine.util
import com.github.bhryno.chlorine.model.ModelRegistry
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import java.io.FileReader
import java.util.prefs.Preferences
typealias RegistryCallback = (String) -> Unit
object RegistryUtil {
fun registryWrite(
... | 0 | Kotlin | 0 | 0 | 5f4cd7b100c6e17b0c7924c37751fd6eeb7bca98 | 2,272 | Chlorine | MIT License |
port-out/src/main/kotlin/com/yapp/bol/group/member/MemberCommandRepository.kt | YAPP-Github | 634,125,780 | false | null | package com.yapp.bol.group.member
interface MemberCommandRepository {
fun createMember(member: Member): Member
fun createMembers(members: MemberList): MemberList
}
| 6 | Kotlin | 0 | 9 | b3b6b4824fb5ea417a85d3c6c147021dec8ccf97 | 174 | 22nd-Android-Team-2-BE | Apache License 2.0 |
app/src/main/java/com/example/fitme/core/ui/BaseActivity.kt | anarkulov | 438,526,656 | false | {"Kotlin": 128897} | package com.example.fitme.core.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.widget.ProgressBar
import androidx.appcompat.app.AppCompatActivity
import androidx.viewbinding.ViewBinding
import com.example.fitme.R
import com.example.fitme.core.extentions.visible
abstract class BaseActivit... | 0 | Kotlin | 0 | 1 | 6ab4414c8822fdbf3f69178889c81e55ec4f5d84 | 1,138 | fitMe | MIT License |
app/src/main/java/com/sirekanian/warmongr/data/local/TagEntity.kt | sirekanian | 537,624,000 | false | null | package com.sirekanian.warmongr.data.local
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
class TagEntity(
@PrimaryKey
val id: Int,
val name: String,
val ruName: String,
) | 0 | Kotlin | 1 | 1 | bdce92ed3842eab97e8ffb192f55785987ca761e | 210 | warmongr | MIT License |
common/src/main/java/common/IoDispatcher.kt | lcszc | 256,382,727 | false | {"Kotlin": 201531} | package common
import javax.inject.Qualifier
@Qualifier @MustBeDocumented @Retention annotation class IoDispatcher
| 2 | Kotlin | 2 | 35 | a2f02de29c4c074b5ecbda4a46349ac5b864842d | 117 | Boletinhos | MIT License |
app/src/main/java/io/github/drumber/kitsune/util/rating/RatingSystemUtil.kt | Drumber | 406,471,554 | false | {"Kotlin": 797542, "Ruby": 2045} | package io.github.drumber.kitsune.util
import io.github.drumber.kitsune.domain.model.infrastructure.user.RatingSystemPreference
import io.github.drumber.kitsune.domain.repository.UserRepository
import org.koin.core.component.KoinComponent
import org.koin.core.component.inject
import kotlin.math.floor
import kotlin.mat... | 7 | Kotlin | 4 | 61 | 6ab88cfacd8ee4daad23edbe4a134ab1f2b1f62c | 2,286 | Kitsune | Apache License 2.0 |
src/main/kotlin/com/framstag/semtrail/parser/IntegerValue.kt | Framstag | 166,638,904 | false | {"Kotlin": 54869, "HTML": 9890, "CSS": 5572, "Dockerfile": 432, "Shell": 182} | package com.framstag.semtrail.parser
class IntegerValue : Value {
override fun isIntegerValue(): Boolean {
return true
}
override fun toIntegerValue(): IntegerValue {
return this
}
} | 7 | Kotlin | 0 | 0 | af5a9bea2d92e71de52c36fb3e74887c14297d1f | 216 | semtrail | Apache License 2.0 |
bandyer-android-design/src/main/java/com/bandyer/sdk_design/bottom_sheet/BandyerActionBottomSheet.kt | Bandyer | 337,367,845 | false | null | /*
* Copyright 2021-2022 Bandyer @ https://www.bandyer.com
*
* 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 req... | 0 | Kotlin | 1 | 1 | d25c7b14302015cdad2df298391a2cb891df1a8e | 2,392 | Bandyer-Android-Design | Apache License 2.0 |
src/main/kotlin/com/autonomousapps/internal/android/AndroidGradlePlugin4_2.kt | autonomousapps | 217,134,508 | false | null | @file:Suppress("ClassName", "UnstableApiUsage")
package com.autonomousapps.internal.android
import com.android.build.gradle.BaseExtension
import org.gradle.api.Project
import org.gradle.api.file.RegularFile
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.provider.Provider
import org.gradle.kotlin... | 70 | null | 51 | 775 | e9a79a956c859b525d24879c91f2e728396566b6 | 1,475 | dependency-analysis-android-gradle-plugin | Apache License 2.0 |
components/core/ktx/src/main/java/com/flipperdevices/core/ktx/jre/AtomicInt.kt | flipperdevices | 288,258,832 | false | {"Kotlin": 2760721, "FreeMarker": 10084, "CMake": 1780, "C++": 1152, "Fluent": 21} | package com.flipperdevices.core.ktx.jre
import java.util.concurrent.atomic.AtomicInteger
/**
* Copy from AtomicInteger#updateAndGet
*/
fun AtomicInteger.updateAndGetSafe(updater: (Int) -> Int): Int {
var prev: Int
var next: Int
do {
prev = get()
next = updater(prev)
} while (!compare... | 13 | Kotlin | 131 | 999 | ef27b6b6a78a59b603ac858de2c88f75b743f432 | 358 | Flipper-Android-App | MIT License |
app/src/main/java/top/maybesix/xhhttpdemo/MyApiResult.kt | maybesix | 254,575,221 | false | null | package top.maybesix.xhhttpdemo
import top.maybesix.xhhttp.annotation.ApiRename
import top.maybesix.xhhttp.annotation.ApiSuccessCode
import top.maybesix.xhhttp.model.ApiResult
/**
* @author MaybeSix
* @date 2020/5/6
* @desc TODO.
*/
class MyApiResult<T> : ApiResult<T>() {
@ApiRename("errorCode")
override ... | 0 | Kotlin | 0 | 3 | b4258a91db8de220ccd02be94f353ad532fe4d6f | 463 | XHHttp | Apache License 2.0 |
android/SSOSDK/src/main/java/com/doters/ssosdk/models/RefreshToken.kt | solemti | 647,001,598 | false | null | package com.doters.ssosdk.models
data class RefreshToken(
val accessToken: String,
val expiresIn: Int,
val idToken: String,
val refreshToken: String,
val scope: String,
val tokenType: String
) {
constructor() : this("", 0, "", "", "", "")
}
| 0 | Kotlin | 0 | 0 | 726d8abce16bb9c838e4ad600152066faf54a3ae | 270 | Doters-SSO-SDK-Android | MIT License |
compiler/testData/diagnostics/tests/inline/capture.kt | JakeWharton | 99,388,807 | false | null | // FIR_IDENTICAL
// LANGUAGE: +ForbidExtensionCallsOnInlineFunctionalParameters
// DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -NOTHING_TO_INLINE -NON_LOCAL_RETURN_NOT_ALLOWED
infix fun Function1<Int, Unit>.noInlineExt(p: Int) {}
inline infix fun Function1<Int, Unit>.inlineExt2(p: Int) {
{
... | 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 1,158 | kotlin | Apache License 2.0 |
Barlom-Foundation-JS/src/main/kotlin/x/barlom/infrastructure/uuids/Uuid.kt | martin-nordberg | 82,682,055 | false | null | //
// (C) Copyright 2017-2018 <NAME>
// Apache 2.0 License
//
package /*js*/x.barlom.infrastructure.uuids
/**
* JavaScript implementation of UUID as simple string container.
*/
class Uuid(
val uuidStr: String
) : Comparable<Uuid> {
/**
* Compares this UUID with the specified UUID. The first of two U... | 0 | Kotlin | 0 | 0 | 337b46f01f6eec6dfb3b86824c26f1c103e9d9a2 | 6,392 | ZZ-Barlom | Apache License 2.0 |
app/src/main/java/com/awalideck/moovies/popularmovies/CategoryMovieFragment.kt | davidwekesar | 376,802,342 | false | null | package com.awalideck.moovies.popularmovies
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import androidx.navigation.fragment.findNavController
import com.awalideck.moo... | 0 | Kotlin | 0 | 0 | 9de6ffac3c5c79015b958fc9780f9f21518ef3d6 | 1,744 | Moovies | MIT License |
app/src/main/java/ca/andries/vpnmanager/RuleMode.kt | DJAndries | 411,571,682 | false | null | package ca.andries.vpnmanager
enum class RuleMode {
ALL,
SOME,
NONE
} | 0 | Kotlin | 0 | 0 | be14a888fc006e417fe9b529890eaeb598b74558 | 82 | vpnmanager-android | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.