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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sdk/src/main/kotlin/com/processout/sdk/ui/web/WebAuthorizationActivityResultDispatcher.kt | processout | 117,821,122 | false | {"Kotlin": 954041, "Java": 85526, "Shell": 696} | package com.processout.sdk.ui.web
import android.net.Uri
import com.processout.sdk.core.ProcessOutActivityResult
import com.processout.sdk.core.ProcessOutResult
import com.processout.sdk.core.logger.POLogger
import com.processout.sdk.core.onFailure
import com.processout.sdk.core.onSuccess
internal object WebAuthoriza... | 0 | Kotlin | 5 | 2 | c7b1f0d6ac0ae840299b5c8d73e64bc6923f8ea8 | 1,067 | processout-android | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/BikingMountain.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,314 | icons | MIT License |
sample/src/main/java/com/litesoftteam/mvvm/sample/presentation/viewmodel/MenuItemViewModel.kt | udfvirus | 352,020,196 | false | {"Kotlin": 29982} | /*
* Copyright (C) 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 2 | Kotlin | 0 | 1 | 24a5db9c7fd042c5c56e1e3e95882fdfa776a029 | 1,589 | mvvmframework | Apache License 2.0 |
src/main/kotlin/io/layercraft/packetlib/packets/v1_19_3/play/clientbound/EntityDestroyPacket.kt | Layercraft | 531,857,310 | false | null | package io.layercraft.packetlib.packets.v1_19_3.play.clientbound
import io.layercraft.packetlib.packets.*
import io.layercraft.packetlib.serialization.MinecraftProtocolDeserializeInterface
import io.layercraft.packetlib.serialization.MinecraftProtocolSerializeInterface
/**
* Remove Entities | 0x3a | play | clientbou... | 0 | Kotlin | 1 | 4 | 3491d690689369264101853861e1d5a572cde24f | 1,268 | PacketLib | MIT License |
android/src/main/kotlin/com/ayeee/blue_print_pos/BluePrintPosPlugin.kt | ArivhaySoft | 440,716,754 | true | {"Dart": 35087, "Kotlin": 8958, "Swift": 7342, "Ruby": 2213, "Objective-C": 723} | package com.ayeee.blue_print_pos
import android.app.Activity
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.os.Build
import android.os.Handler
import android.os.Looper
import android.view.View
import android.view.WindowInsets
import android.webkit.WebView
im... | 0 | Dart | 0 | 0 | 04b0a27ad14b948d712bcef6244c7b6a83ceba64 | 7,348 | blue_print_pos | Apache License 2.0 |
backend/src/repository/HappeningEventsRepository.kt | fredagsdeploy | 191,515,654 | false | null | package dev.fredag.cheerwithme.repository
import com.fasterxml.jackson.module.kotlin.readValue
import dev.fredag.cheerwithme.model.*
import dev.fredag.cheerwithme.objectMapper
import dev.fredag.cheerwithme.service.Database
import org.jetbrains.exposed.sql.ResultRow
import org.jetbrains.exposed.sql.SortOrder
import org... | 7 | Kotlin | 0 | 0 | f2189b302e98037021f518bf97888a8404087606 | 1,929 | cheer-with-me | MIT License |
kronos-core/src/main/kotlin/com/kotlinorm/interfaces/KLogger.kt | Kronos-orm | 810,144,705 | false | {"Kotlin": 762490} | /**
* Copyright 2022-2024 kronos-orm
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 5 | Kotlin | 2 | 6 | 3139c6a979f27162a3caae00e4a4284499ed4c85 | 2,667 | Kronos-orm | Apache License 2.0 |
app/src/main/java/com/example/webexandroid/search/ui/notifications/NotificationsViewModel.kt | wxsd-sales | 421,147,537 | false | {"Kotlin": 383358} | package com.example.webexandroid.search.ui.notifications
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class NotificationsViewModel : ViewModel() {
private val _text = MutableLiveData<String>().apply {
value = "This is about me Fragment"
... | 0 | Kotlin | 0 | 0 | 423a46f72437e0c00c5c384280fd7473fcbd7df6 | 366 | android-sdk-demo-app | MIT License |
kmath-optimization/src/commonMain/tmp/minuit/SqrtUpParameterTransformation.kt | SciProgCentre | 129,486,382 | false | {"Kotlin": 1988014, "ANTLR": 887} | /*
* Copyright 2015 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 88 | Kotlin | 55 | 645 | 6c1a5e62bff541cca8065e4ab4c97d02a29d685a | 1,371 | kmath | Apache License 2.0 |
feature/tasks/src/main/kotlin/com/ngapps/phototime/feature/tasks/navigation/CalendarNavigation.kt | ngapp-dev | 752,386,763 | false | {"Kotlin": 1840445, "Shell": 10136} | /*
* Copyright 2024 NGApps Dev (https://github.com/ngapp-dev). All rights reserved.
*
* 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
*
*... | 0 | Kotlin | 0 | 3 | dc6556f93cedf210597f0397ad3553de0fbb7a47 | 2,011 | phototime | Apache License 2.0 |
app/src/main/java/com/yousef/mvvmflightinfo/di/component/AppComponent.kt | youseftaheri | 265,414,975 | false | {"Gradle": 3, "XML": 145, "Java Properties": 3, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 2, "Kotlin": 51, "JSON": 1} | package com.yousef.mvvmflightinfo.di.component
import android.app.Application
import com.yousef.mvvmflightinfo.MyApplication
import com.yousef.mvvmflightinfo.di.builder.ActivityBuilder
import com.yousef.mvvmflightinfo.di.module.ApiModule
import com.yousef.mvvmflightinfo.di.module.AppModule
//import com.yousef.mvpfligh... | 0 | Kotlin | 0 | 0 | 9a1720d1487dd24b1c60ea45f76dd783e783ba92 | 1,032 | FlightInfoMVVM_kotlin | MIT License |
transport/tcp/src/test/kotlin/io/web3j/lib2p2/transport/tcp/util/TCPUtilTest.kt | web3j | 168,131,199 | false | {"Kotlin": 299165} | /*
* Copyright 2019 BLK Technologies Limited (web3labs.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 required by applic... | 5 | Kotlin | 9 | 78 | 3b7d5a15703a572e99d4afd81b06a8eedc1bbecb | 2,497 | libp2p | Apache License 2.0 |
android/src/main/java/com/reactnativecompressor/Video/VideoCompressor/videoHelpers/Result.kt | numandev1 | 371,665,826 | false | {"Kotlin": 184165, "Swift": 147942, "TypeScript": 83248, "Java": 16192, "Ruby": 7504, "Objective-C++": 6914, "JavaScript": 5881, "Shell": 3617, "Objective-C": 3128, "C": 206} | package com.abedelazizshe.lightcompressorlibrary.video
data class Result(
val index: Int,
val success: Boolean,
val failureMessage: String?,
val size: Long = 0,
val path: String? = null,
)
| 55 | Kotlin | 85 | 886 | 40deab8de03a9a08a4abf22244d7a678ff12485c | 210 | react-native-compressor | MIT License |
games-dsl/common/src/main/kotlin/net/zomis/games/dsl/flow/GameFlowImpl.kt | Zomis | 125,767,793 | false | {"Kotlin": 1346310, "Vue": 212095, "JavaScript": 43020, "CSS": 4513, "HTML": 1459, "Shell": 801, "Dockerfile": 348} | package net.zomis.games.dsl.flow
import klog.KLoggers
import kotlinx.coroutines.*
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.*
import net.zomis.games.PlayerEliminations
import net.zomis.games.PlayerEliminationsWrite
import net.zomis.games.api.UsageScope
import net.zomis.games.common.Play... | 89 | Kotlin | 5 | 17 | dd9f0e6c87f6e1b59b31c1bc609323dbca7b5df0 | 18,062 | Games | MIT License |
plugin-build/src/test/kotlin/io/sentry/android/gradle/SentryMappingFileProviderTest.kt | exmg | 318,478,229 | true | {"Kotlin": 71575, "Shell": 521, "Makefile": 411} | package io.sentry.android.gradle
import com.android.build.gradle.AppExtension
import io.sentry.android.gradle.SentryMappingFileProvider.getMappingFile
import java.io.File
import kotlin.test.assertNull
import kotlin.test.assertTrue
import org.gradle.testfixtures.ProjectBuilder
import org.junit.Test
class SentryMapping... | 0 | Kotlin | 0 | 0 | 0f6e128caf29a5798498760c28e781dc7f915833 | 2,225 | sentry-android-gradle-plugin | MIT License |
src/test/kotlin/com/dsoftware/ghmanager/api/TestGetJobLogRequest.kt | cunla | 495,431,686 | false | {"Kotlin": 153824} | package com.dsoftware.ghmanager.api
import com.dsoftware.ghmanager.api.model.WorkflowRunJobs
import org.jetbrains.plugins.github.api.GithubApiContentHelper
import org.junit.Assert.assertEquals
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.Parameterized
import org.junit.runners.Paramete... | 5 | Kotlin | 9 | 52 | f177566cc83c778fa14b8d224329cce411fa1e0d | 1,989 | ghactions-manager | MIT License |
app/src/main/java/com/example/textrecoginition/di/RepositoryModule.kt | ramafebri | 592,581,937 | false | null | package com.example.textrecoginition.di
import com.example.textrecoginition.data.TextRepository
import com.example.textrecoginition.domain.repository.ITextRepository
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@Module(includes = [FirebaseModul... | 0 | Kotlin | 0 | 0 | a7f14e1e2a68914ac8ea6742c04f25b160fbaab4 | 495 | sawitpro-text-recognition | MIT License |
src/Day10.kt | konclave | 573,548,763 | false | null | fun main() {
fun solve1(input: List<String>): Int {
var total = 0
val ticks = listOf(20, 60, 100, 140, 180, 220)
input.flatMap { it.split(" ") }.foldIndexed(1) { i, acc, str ->
var res = acc
when (str) {
"noop", "addx" -> {}
else -> {
... | 0 | Kotlin | 0 | 0 | 337f8d60ed00007d3ace046eaed407df828dfc22 | 1,277 | advent-of-code-2022 | Apache License 2.0 |
core/src/iosTest/kotlin/com/raumfeld/wamp/IosTestUtils.kt | raumfeld | 185,430,302 | false | null | package com.raumfeld.wamp
import kotlinx.coroutines.*
actual fun runTest(block: suspend (scope : CoroutineScope) -> Unit) = runBlocking { block(this) } | 0 | Kotlin | 0 | 1 | 7ac39077ec5b39ad9a19773d026750d167c75bfd | 152 | rf-wamp | MIT License |
keel-core-test/src/main/kotlin/com/netflix/spinnaker/keel/persistence/UnhealthyRepositoryTests.kt | spinnaker | 107,462,081 | false | null | package com.netflix.spinnaker.keel.persistence
import com.netflix.spinnaker.keel.api.Resource
import com.netflix.spinnaker.keel.test.resource
import com.netflix.spinnaker.time.MutableClock
import dev.minutest.junit.JUnit5Minutests
import dev.minutest.rootContext
import strikt.api.expect
import strikt.api.expectCatchin... | 3 | null | 132 | 99 | 6115964c42e863cfd269616a836145b883f165f3 | 1,689 | keel | Apache License 2.0 |
lib_core_ktx/src/main/java/me/luzhuo/lib_core_ktx/ViewUtils.kt | LZLuzhuo | 347,619,514 | false | null | /* Copyright 2021 Luzhuo. All rights reserved.
*
* 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... | 1 | null | 1 | 1 | cda6d6b9034077e6a2ed4d9cd9ff30de4b9ddf12 | 4,039 | CoreLibrary | Apache License 2.0 |
app/src/main/java/com/example/genc/ui/view/home/HomeViewModel.kt | mohamedagamy | 615,543,443 | false | null | package com.example.genc.ui.view.home
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.genctask.data.Car
import com.example.genc.domain.getcars.GetCarsUseCase
import com.example.data.common.Resource
import dagger.hilt.android... | 0 | Kotlin | 0 | 0 | 7ff6ce2348391cb811a0890731ddf0c72d470cb6 | 1,874 | GencApp | Apache License 2.0 |
app/src/main/java/com/romzc/secondapp/domain/entities/PowerStats.kt | romzc | 778,529,962 | false | {"Kotlin": 25140} | package com.romzc.secondapp.domain.entities
data class PowerStats(
val intelligence: Int,
val strength: Int,
val speed: Int,
val durability: Int,
val power: Int,
val combat: Int
) | 0 | Kotlin | 0 | 0 | 1620949eb495d4e7ae8a87a8b020eb0c7d833508 | 204 | heroes_app | MIT License |
core/src/main/java/es/littledavity/core/sharers/TextSharer.kt | Benderinos | 260,322,264 | false | null | /*
* Copyright 2021 dalodev
*/
package es.littledavity.core.sharers
import android.content.Context
import android.content.Intent
import com.paulrybitskyi.hiltbinder.BindType
import es.littledavity.core.R
import es.littledavity.core.providers.StringProvider
import javax.inject.Inject
interface TextSharer : ContentSh... | 0 | Kotlin | 0 | 1 | 91d5d355e4d83b1cc97b6ec360edab39f0baaf12 | 1,041 | ChorboAgenda | The Unlicense |
app/src/main/kotlin/pro/stuermer/dailyexpenses/domain/model/Expense.kt | thebino | 590,016,472 | false | null | package pro.stuermer.dailyexpenses.domain.model
import java.time.LocalDate
import java.time.LocalDateTime
import java.util.UUID
import pro.stuermer.dailyexpenses.data.persistence.model.Expense as PersistenceExpense
data class Expense(
val identifier: String = UUID.randomUUID().toString(),
val amount: Float,
... | 0 | Kotlin | 0 | 0 | 7974b772596a7027b218040e7e05495aa53959c6 | 1,788 | DailyExpenses | Apache License 2.0 |
view-generator-example/src/main/java/com/lightningkite/rxexample/vg/SliderDemoVG.kt | lightningkite | 400,655,884 | false | {"Kotlin": 507296, "Java": 105216} | //! This file will translate using Khrysalis.
package com.lightningkite.rxexample.vg
import android.view.View
import com.lightningkite.rx.ValueSubject
import com.lightningkite.rx.android.bind
import com.lightningkite.rx.android.into
import com.lightningkite.rx.map
import com.lightningkite.rx.plus
import com.lightningk... | 0 | Kotlin | 0 | 2 | 156fa1ed18aebcb3c162b9e32e01eb72b711b36f | 3,041 | rxkotlin-plus | MIT License |
validation/src/main/kotlin/org/octopusden/octopus/util/FileFilterConfig.kt | octopusden | 705,544,852 | false | {"Kotlin": 75087, "Java": 1143} | package org.octopusden.octopus.util
data class FileFilterConfig(
val includeDirs: List<String> = emptyList(),
val excludeDirs: List<String> = emptyList(),
val includeFiles: List<String> = emptyList(),
val excludeFiles: List<String> = emptyList(),
val excludeFileContentFilters: List<FileContentFilte... | 0 | Kotlin | 1 | 0 | ab1bfab9e105c8dea583d7686d22eacab7a75067 | 346 | octopus-wl-tool | Apache License 2.0 |
06-flux-architecture/flux-rxjava/app/src/main/java/jp/satorufujiwara/flux/ui/main/MainStore.kt | TechBooster | 115,781,864 | false | null | package jp.satorufujiwara.flux.ui.main
import io.reactivex.Flowable
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.processors.BehaviorProcessor
import jp.satorufujiwara.flux.data.entity.Repo
import jp.satorufujiwara.flux.flux.Dispatcher
import jp.satorufujiwara.flux.flux.Store
import java... | 0 | Kotlin | 5 | 81 | 8f05787577a72838cc350870d14599a7642ca3fb | 1,034 | Architecture-Patterns-Samples | MIT License |
app/src/main/java/io/eodc/planit/receiver/NotificationPublishReceiver.kt | eodc | 135,878,365 | false | null | package io.eodc.planit.receiver
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import io.eodc.planit.helper.NotificationHelper
/**
* A broadcast receiver that is triggered by the alarm scheduled to fire notifications. After
* receiving, it fires a notification... | 1 | null | 1 | 1 | fe1bb83b1682835a26a87b4d46773726a03b0250 | 562 | PlanIt | Apache License 2.0 |
Tasks/FinalProject/app/src/main/java/com/enesorhan/finalproject/uix/views/DetailsPage.kt | enesorhann | 868,032,951 | false | {"Kotlin": 289013} | package com.enesorhan.finalproject.uix.views
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layo... | 0 | Kotlin | 0 | 0 | c561904398b63147c0f54975a907ece7997195b3 | 11,322 | Kotlin_JetpackCompose_Bootcamp | MIT License |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/URLEncode.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: URLEncode
*
* Full name: System`URLEncode
*
* Usage: URLEncode["string"] converts "string" int... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,019 | mathemagika | Apache License 2.0 |
src/main/kotlin/com/tr/model/Models.kt | JonasMaennle | 769,624,368 | false | {"Kotlin": 23073} | package com.tr.model
enum class Pattern(val patternString: String) {
FULL("dd.MM.yyyy"),
PARTIAL("yyyy-MM")
}
data class DownloadProgress(
val current: Int,
val total: Int
)
data class CustomHeaders(
val date: String?,
val contentLength: Int?,
val vary: List<String>,
val setCookies: L... | 0 | Kotlin | 0 | 1 | be4949a6364ffbb771896645ec2005972691db87 | 333 | TradeRepublicDownloader | MIT License |
src/main/kotlin/org/wfanet/measurement/common/crypto/Signatures.kt | world-federation-of-advertisers | 375,798,604 | false | {"Kotlin": 587287, "Starlark": 112332, "Shell": 7028} | // Copyright 2021 The Cross-Media Measurement Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... | 15 | Kotlin | 3 | 3 | a19a40015204040c5224ec936eace8e2b0703035 | 12,638 | common-jvm | Apache License 2.0 |
app/src/main/java/com/doctor/yumyum/presentation/ui/researchrecipe/ResearchRecipeFragment.kt | YAPP-19th | 399,058,480 | false | {"Kotlin": 245963} | package com.doctor.yumyum.presentation.ui.researchrecipe
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.activity.result.ActivityResultLauncher
import androidx.activit... | 2 | Kotlin | 1 | 11 | ac42ba43f3ef499d1580059dec04d5f87ffe878f | 5,479 | Yumyum-Doctor-Android | Apache License 2.0 |
core/src/main/kotlin/com/tsbonev/cqrs/core/BinaryPayload.kt | tsbonev | 357,230,296 | false | null | package com.tsbonev.cqrs.core
data class BinaryPayload(val payload: ByteArray) {
constructor(payload: String) : this(payload.toByteArray(Charsets.UTF_8))
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as BinaryPayload
if ... | 0 | Kotlin | 0 | 0 | 4c9ad4f25c5966249d853c7ba7f9919efd0df90f | 572 | diploma-app | Apache License 2.0 |
src/main/kotlin/venus/riscv/insts/sra.kt | ics-jku | 470,084,492 | true | {"JavaScript": 2768182, "Kotlin": 144645, "HTML": 32782, "CSS": 1899} | package venus.riscv.insts
import venus.riscv.insts.dsl.RTypeInstruction
val sra = RTypeInstruction(
name = "sra",
opcode = 0b0110011,
funct3 = 0b101,
funct7 = 0b0100000,
eval32 = { a, b ->
val shift = b and 0b11111
if (shift == 0) a else a shr shift
... | 1 | JavaScript | 1 | 4 | 429d323b98a33db67074e44f164c8d1044f406de | 460 | venus | MIT License |
plot-config-portable/src/commonMain/kotlin/jetbrains/datalore/plot/server/config/transform/ReplaceDataVectorsInAesMappingChange.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.plot.server.config.transform
import jetbrains.datalore.plot.config.Option.Plot.DATA
import jetbrains.datalore.plot.config.Option.Plot.LAYERS
import... | 97 | null | 47 | 889 | c5c66ceddc839bec79b041c06677a6ad5f54e416 | 1,603 | lets-plot | MIT License |
SortingAlgorithms/src/main/kotlin/InsertionSort.kt | paulosabaini | 320,322,636 | false | null | fun main() {
val array = arrayOf(5, 1, 6, 2, 4, 3)
insertionSort(array)
}
fun insertionSort(array: Array<Int>) {
val n = array.size - 1
/* Iterate the given array starting from the second element. For each number a new iteration is made to compare
* it to the previous numbers, when a previous ele... | 0 | Kotlin | 0 | 0 | 00f7fa16e502f15cec570c31f544c001cfe20934 | 649 | kotlin-data-structures-algorithms | MIT License |
ext/acorn-android/src/main/java/com/nhaarman/acorn/android/presentation/RestorableViewController.kt | nhaarman | 137,459,947 | false | null | /*
* Copyright 2018 <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 ... | 17 | Kotlin | 6 | 182 | bb4cd33a54103bb1a1cf4c0eecabfcc7b9c352d2 | 2,565 | acorn | Apache License 2.0 |
src/main/kotlin/com/github/avrokotlin/avro4k/io/AvroDecodeFormat.kt | avro-kotlin | 194,962,508 | false | {"Kotlin": 279509} | package com.github.avrokotlin.avro4k.io
import org.apache.avro.Schema
import java.io.InputStream
/**
* Formats that can be used to decode the contents of an [InputStream].
*/
sealed class AvroDecodeFormat {
abstract fun <T> createInputStream(source : InputStream, converter: (Any) -> T) : AvroInputStream<T>
... | 8 | Kotlin | 36 | 187 | f550163d19c60a1071df84f5c9671cb9e35364f4 | 2,553 | avro4k | Apache License 2.0 |
sketch/src/androidTest/java/com/github/panpf/sketch/test/util/LoggerTest.kt | fltwlulu | 188,455,050 | true | {"Gradle Kotlin DSL": 14, "Markdown": 35, "Java Properties": 2, "Shell": 1, "TOML": 1, "Ignore List": 1, "Batchfile": 1, "Text": 1, "Proguard": 12, "XML": 105, "Kotlin": 514, "Java": 12, "SVG": 2, "INI": 11} | package com.github.panpf.sketch.test.util
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.github.panpf.sketch.util.Logger
import com.github.panpf.sketch.util.Logger.Level.DEBUG
import com.github.panpf.sketch.util.Logger.Level.ERROR
import com.github.panpf.sketch.util.Logger.Level.INFO
import com.github... | 0 | Kotlin | 0 | 0 | c9ff98d80c36d7c4ba5c28bbf358dc8ee53278b1 | 14,420 | sketch | MIT License |
src/main/kotlin/io/github/tsgrissom/essentialskt/command/WeatherCommand.kt | tsgrissom | 689,435,409 | false | {"Kotlin": 192657} | package io.github.tsgrissom.essentialskt.command
import io.github.tsgrissom.essentialskt.EssentialsKTPlugin
import io.github.tsgrissom.essentialskt.config.ChatColorKey
import io.github.tsgrissom.pluginapi.command.CommandBase
import io.github.tsgrissom.pluginapi.command.CommandContext
import io.github.tsgrissom.plugina... | 0 | Kotlin | 0 | 0 | 0890088414f32d1f409a83a39fdcedb1b1d78144 | 7,264 | EssentialsKT-Plugin | MIT License |
app/src/main/java/com/deevvdd/wifichat/domain/model/Message.kt | HeinXtet | 393,702,158 | false | null | package com.deevvdd.wifichat.domain.model
import java.util.Date
/**
* Created by heinhtet deevvdd@gmail.com on 06,August,2021
*/
data class Message(
val senderName: String,
val message: String,
val date: Date = Date()
)
| 0 | Kotlin | 0 | 0 | a1bf6ab961004deaa7397a48f1c91ff9e073a94d | 236 | WifiChat | Apache License 2.0 |
frontend/app/src/main/java/com/mobile/paozim/fragments/SearchFragment.kt | DesenvolvimentoSistemasSoftware | 771,009,250 | false | {"Kotlin": 108244, "HTML": 73} | package com.mobile.paozim.fragments
import android.os.Bundle
import android.util.Log
import android.view.KeyEvent
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.EditorInfo
import androidx.navigation.findNav... | 7 | Kotlin | 0 | 0 | 79e076cdb5f021acd6f1dbe6ddd0c9e10c73b34f | 4,393 | Paozim | MIT License |
cbordata/src/main/java/com/ul/ims/gmdl/cbordata/cryptoUtils/CryptoUtils.kt | Prahsant | 303,771,349 | true | {"Kotlin": 1392515, "Java": 421643} | /*
* Copyright (C) 2019 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 0 | null | 0 | 0 | a6c3a6077ef5e7774ff70929ae4f33968ce6f598 | 8,463 | mdl-ref-apps | Apache License 2.0 |
app/src/main/java/com/prasad/daggerbasic/TaskModule.kt | prasad091 | 272,716,745 | false | null | package com.noruks.myapplication
import dagger.Module
import dagger.Provides
@Module
class TaskModule {
@Provides
fun provideDataLoad():String = "Hello Kotlin"
}
| 0 | Kotlin | 0 | 0 | d197da0946865f72c1f3a0ee0a5ee44928d322d7 | 175 | Dagger2-Sample-with-Litho | Apache License 2.0 |
app/src/main/java/com/saiferwp/imgurgallery/api/request/Request.kt | eugene-ltv | 217,064,853 | false | null | package com.saiferwp.imgurgallery.api.request
import com.saiferwp.imgurgallery.api.Api
import kotlinx.coroutines.Deferred
import retrofit2.Response
abstract class Request<T> {
abstract fun executeAsync(api: Api): Deferred<Response<T>>
} | 0 | Kotlin | 0 | 0 | 6623528c84e8e5ccb309d5a790645067c3e5715f | 242 | ImgurGallery | Apache License 2.0 |
src/main/kotlin/main/utils/locale/messages/RandomMessages.kt | bombies | 411,889,109 | false | {"Kotlin": 820336, "Dockerfile": 355, "Shell": 131} | package main.utils.locale.messages
import main.utils.locale.LocaleMessage
enum class RandomMessages : LocaleMessage {
NO_RANDOM_MESSAGES,
TIP_TITLE,
TIP_FOOTER
} | 5 | Kotlin | 0 | 4 | 7206b7a8870abef9a5300d541406813aae2d772e | 175 | Robertify-Bot | MIT License |
app/src/main/java/com/capstone/moru/ui/routines/BooksRoutineListFragment.kt | MornMon-Bangkit-Capstone | 639,920,756 | false | {"Kotlin": 274355} | package com.capstone.moru.ui.routines
import android.content.Context
import android.os.Bundle
import android.util.Log
import android.view.KeyEvent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputMe... | 1 | Kotlin | 0 | 0 | 1ff4e7a9573364b4b955cbb4029dc90f31edef9b | 4,775 | moru-app | MIT License |
src/main/kotlin/de/flapdoodle/photosync/ui/SyncConfigView.kt | flapdoodle-oss | 231,620,257 | false | null | package de.flapdoodle.photosync.ui
import de.flapdoodle.fx.extensions.fire
import de.flapdoodle.fx.extensions.subscribeEvent
import de.flapdoodle.fx.layout.weightgrid.WeightGridPane
import de.flapdoodle.fx.lazy.LazyValue
import de.flapdoodle.fx.lazy.bindFrom
import de.flapdoodle.fx.lazy.mapToList
import de.flapdoodle.... | 1 | null | 1 | 1 | 2c39e73edb0d1eefd277c1e31d2ed7042cf62029 | 6,470 | photosync | Apache License 2.0 |
kcrypto/src/main/kotlin/org/bouncycastle/kcrypto/Decryptor.kt | bcgit | 196,159,414 | false | {"Kotlin": 458444, "HTML": 419} | package org.bouncycastle.kcrypto
import java.io.InputStream
import java.io.OutputStream
interface Decryptor<T>
{
val algorithmIdentifier: T
fun outputDecryptor(destStream: OutputStream): OutputDecryptor<T>
fun inputDecryptor(sourceStream: InputStream): InputDecryptor<T>
} | 0 | Kotlin | 15 | 69 | dc86103f5fef1baf9f6e1cdff17bbf31927637ab | 288 | bc-kotlin | MIT License |
domain/src/main/java/io/github/zmunm/insight/repository/GameRepository.kt | zmunm | 317,224,320 | false | null | package io.github.zmunm.insight.repository
import io.github.zmunm.insight.entity.Game
import io.github.zmunm.insight.entity.Like
import kotlinx.coroutines.flow.Flow
interface GameRepository {
suspend fun getGames(page: Int?): List<Game>
fun getRecentGames(): Flow<List<Game>>
fun getGameDetail(id: Long):... | 0 | Kotlin | 2 | 5 | b9b1f0aa330e68665f94b8dc198669525aa79002 | 492 | insight | MIT License |
app/src/main/java/com/raywenderlich/android/busso/permission/GeoLocationPermissonCheckerImpl.kt | aasmc | 487,775,402 | true | {"Kotlin": 6085897, "Shell": 1914} | package com.raywenderlich.android.busso.permission
import android.Manifest
import android.content.Context
import android.content.pm.PackageManager
import androidx.core.content.ContextCompat
import com.raywenderlich.android.location.api.permissions.GeoLocationPermissionChecker
class GeoLocationPermissionCheckerImpl(va... | 0 | Kotlin | 0 | 0 | f6ec2b98fe0874e0c80fb25c1b32939663d35367 | 592 | dag-materials | Apache License 2.0 |
app/src/test/java/com/jaimegc/covid19tracker/usecase/kotest/GetCountryStatsKotestTest.kt | kikoso | 415,322,983 | true | {"Kotlin": 1318013} | package com.jaimegc.covid19tracker.usecase.kotest
import arrow.core.Either
import com.jaimegc.covid19tracker.domain.usecase.GetCountryStats
import com.jaimegc.covid19tracker.ScreenStateFactoryTest.stateCountryOneStatsEmptyData
import com.jaimegc.covid19tracker.ScreenStateFactoryTest.stateCountryOneStatsLoading
import ... | 0 | null | 0 | 0 | 0db7cffbb9e1f8e9e19e68472b800ada70684d29 | 17,341 | Covid19Tracker | Apache License 2.0 |
app/src/main/java/uk/nhs/nhsx/covid19/android/app/widgets/UnderlinedButton.kt | coderus-ltd | 369,240,870 | true | {"Kotlin": 3133494, "Shell": 1098, "Ruby": 847, "Batchfile": 197} | package uk.nhs.nhsx.covid19.android.app.widgets
import android.content.Context
import android.util.AttributeSet
import androidx.core.text.parseAsHtml
import com.google.android.material.button.MaterialButton
import uk.nhs.nhsx.covid19.android.app.R
class UnderlinedButton @JvmOverloads constructor(
context: Context... | 0 | null | 0 | 0 | b74358684b9dbc0174890db896b93b0f7c6660a4 | 513 | covid-19-app-android-ag-public | MIT License |
src/androidMain/kotlin/org/avmteam/udf/StateObservable.kt | avmteam-org | 457,393,941 | false | {"Kotlin": 20540} | package org.avmteam.udf
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.observe
actual class StateObservable<State : Any> actual constructor(initialState: State) {
private val liveData = MutableLiveData(initialState)
actual var stateValue: State
... | 0 | Kotlin | 0 | 0 | 76e29f960c3a77ff827787757a1f561bb7b3e852 | 1,338 | udf | MIT License |
src/main/kotlin/me/aberrantfox/hotbot/utility/NumberUtility.kt | amhndu | 149,572,121 | false | null | package me.aberrantfox.hotbot.utility
import org.joda.time.DateTime
import java.security.SecureRandom
fun futureTime(timeToAdd: Long): Long {
val now = DateTime.now()
return now.plus(timeToAdd).millis
}
fun timeToDifference(time: Long): Long {
val now = DateTime.now()
return time - now.millis
}
fun... | 0 | Kotlin | 0 | 0 | b2f6e634001cafb2c5a31125b0b28edca4eee0ad | 438 | hotbot | MIT License |
src/main/kotlin/io/cloudshiftdev/awscdklib/network/routable/RouteTarget.kt | cloudshiftinc | 773,417,671 | false | {"Kotlin": 67802} | package io.cloudshiftdev.awscdklib.network.routable
import io.cloudshiftdev.awscdk.services.ec2.RouterType
public class RouteTarget(
public val routerId: String,
public val routerType: RouterType,
public val enablesInternetConnectivity: Boolean
)
| 0 | Kotlin | 0 | 0 | 35b6e00fc772f8623601d62085c0ec1e0e416776 | 261 | kotlin-cdk-extensions | Apache License 2.0 |
app/src/main/java/com/example/vinilos_mobile/model/models/Collector.kt | htenezaca | 549,692,326 | false | {"Kotlin": 106610} | package com.example.vinilos_mobile.model.models
import org.json.JSONObject
data class Collector(
val collectorId: Int,
val name: String,
val telephone: String,
val email: String
)
fun deserializeCollector(json: JSONObject): Collector {
return Collector(
collectorId = json.getInt("id"),
... | 14 | Kotlin | 0 | 1 | 221227e5df349a5a01af1000b94743d00a3ec6e4 | 453 | vinilos-mobile | MIT License |
data/src/main/kotlin/team/applemango/runnerbe/data/runningitem/model/runner/RunnerData.kt | ricky-buzzni | 485,390,072 | false | {"Kotlin": 615137} | /*
* RunnerBe © 2022 Team AppleMango. all rights reserved.
* RunnerBe license is under the MIT.
*
* [RunnerInfoItem.kt] created by Ji Sungbin on 22. 2. 24. 오후 10:24
*
* Please see: https://github.com/applemango-runnerbe/RunnerBe-Android/blob/main/LICENSE.
*/
package team.applemango.runnerbe.data.runningitem.mod... | 0 | null | 0 | 0 | f48fb298c07732a9c32afcff0bddb16f9fe2e37a | 891 | RunnerBe-Android | MIT License |
api-core/src/commonMain/kotlin/su/pank/yamusic/exceptions/ExperimentalYaMusicApi.kt | pank-su | 717,339,473 | false | {"Kotlin": 82681} | package su.pank.yamusic.exceptions
@RequiresOptIn(
"""То что вы хотите использовать находится на стадии разработки,
|в любой момент может произойти его изменение в последующих версиях"""
)
annotation class ExperimentalYaMusicApi | 4 | Kotlin | 0 | 4 | 3c80dad225f8bbfee32b1279feb52aaa70224ec4 | 238 | yandex-music-api | MIT License |
api-core/src/commonMain/kotlin/su/pank/yamusic/exceptions/ExperimentalYaMusicApi.kt | pank-su | 717,339,473 | false | {"Kotlin": 82681} | package su.pank.yamusic.exceptions
@RequiresOptIn(
"""То что вы хотите использовать находится на стадии разработки,
|в любой момент может произойти его изменение в последующих версиях"""
)
annotation class ExperimentalYaMusicApi | 4 | Kotlin | 0 | 4 | 3c80dad225f8bbfee32b1279feb52aaa70224ec4 | 238 | yandex-music-api | MIT License |
src/main/kotlin/ar/ferman/vertxmicro/NoCoroutineHttpVerticle.kt | fmansilla | 193,434,186 | false | null | package ar.ferman.vertxmicro
import ar.ferman.vertxmicro.ranking.restold.RankingHandlers
import io.vertx.core.AbstractVerticle
import io.vertx.core.Future
import io.vertx.ext.web.Router
import io.vertx.ext.web.handler.BodyHandler
@Suppress("unused")
class NoCoroutineHttpVerticle : AbstractVerticle() {
override f... | 0 | Kotlin | 0 | 0 | be743d75c166b80d3cd39e8268c9264b2b468861 | 898 | vertx-micro | MIT License |
app/src/main/java/com/example/unolingo/adapter/LessonAdapter.kt | okan-sourcerer | 579,337,798 | false | null | package com.example.unolingo.adapter
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.cardview.widget.CardView
import androidx.recyclerview.widget.LinearLayoutManager
import a... | 0 | Kotlin | 0 | 0 | 1ac62239eb3308505ffb88bc8f969f4c194d149f | 2,869 | UnoLingo | MIT License |
app/src/main/java/wangk6/travelling/custom/ProgressBar.kt | jiqi963 | 313,857,218 | false | null | package wangk6.travelling.custom
import android.app.Dialog
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import op.wangk6.travelling.R
class ProgressBar(context: Context) {
private val inflater: LayoutInflater =
context.getSystemService(Context.LAYOUT_INFLATER_... | 0 | Kotlin | 0 | 0 | e219724cb50ec615c98fad5777656b92b83d6c88 | 627 | travelling | Apache License 2.0 |
shared/src/commonMain/kotlin/com/wanderlei/moviesappk/data/repository/MovieRepositoryImpl.kt | WanderleiSantos | 690,661,085 | false | {"Kotlin": 30452, "Swift": 342} | package com.wanderlei.moviesappk.data.repository
import com.wanderlei.moviesappk.data.remote.RemoteDataSource
import com.wanderlei.moviesappk.data.util.toMovie
import com.wanderlei.moviesappk.domain.model.Movie
import com.wanderlei.moviesappk.domain.repository.MovieRepository
internal class MovieRepositoryImpl(
p... | 0 | Kotlin | 0 | 0 | 966b26fc406274c5abc24eaa824aa84465a12638 | 694 | MoviesAppKMM | MIT License |
plugins/editorconfig/src/org/editorconfig/language/util/core/EditorConfigPsiTreeUtilCore.kt | hieuprogrammer | 284,920,751 | true | null | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.editorconfig.language.util.core
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
import com.intellij.psi.util.PsiTreeUtil
import org.editorconfig.la... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 3,047 | intellij-community | Apache License 2.0 |
app/src/main/java/com/vau/myappmanager/ui/viewmodels/LikeAppVieModelFactory.kt | lau1944 | 296,368,308 | false | null | package com.vau.myappmanager.ui.viewmodels
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.vau.myappmanager.data.AppRepository
import javax.inject.Inject
class LikeAppVieModelFactory @Inject constructor(
private val appRepository: AppRepository
): ViewModelProvider.NewIn... | 1 | Kotlin | 1 | 2 | 5d4d4ffdf6103edba9bcf2880b664f812f3bd79b | 498 | AppManager-Kotlin | MIT License |
src/main/kotlin/com/kneelawk/wiredredstone/util/NodeExtensions.kt | Kneelawk | 443,064,933 | false | null | package com.kneelawk.wiredredstone.util
import com.kneelawk.graphlib.api.graph.NodeHolder
import com.kneelawk.graphlib.api.graph.user.BlockNode
import com.kneelawk.graphlib.api.graph.user.SidedBlockNode
import com.kneelawk.graphlib.api.util.SidedPos
import com.kneelawk.wiredredstone.part.SidedPart
inline fun <reified... | 5 | Kotlin | 3 | 9 | d9c2571b3e0d14911c29d12de24eba9a41ce36f6 | 515 | WiredRedstone | MIT License |
src/main/kotlin/net/meilcli/klinq/IEnumerable.kt | MeilCli | 47,538,344 | false | null | package net.meilcli.klinq
interface IEnumerable<T> {
fun getEnumerator(): IEnumerator<T>
} | 0 | Kotlin | 0 | 2 | 1ceed0aeb6d7646ee66a9c3b0bf9f3b743f160b3 | 97 | KLinq | MIT License |
app/src/main/java/org/listenbrainz/android/repository/social/SocialRepositoryImpl.kt | metabrainz | 550,726,972 | false | null | package org.listenbrainz.android.repository.social
import org.listenbrainz.android.model.FeedEvent
import org.listenbrainz.android.model.RecommendationData
import org.listenbrainz.android.model.ResponseError.Companion.getError
import org.listenbrainz.android.model.Review
import org.listenbrainz.android.model.SearchRes... | 9 | Kotlin | 21 | 33 | feb70afc38675c50f99c753eba7591b313100bdf | 6,042 | listenbrainz-android | Apache License 2.0 |
presentation/src/main/kotlin/com/reactions/deathlines/presentation/ui/home/SongListAdapter.kt | dreinoso | 277,420,448 | false | null | package com.reactions.deathlines.presentation.ui.home
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.paging.PagedListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.reactions.deathlines.domain.entity.Entity
import com.reactions.deathlines.p... | 0 | Kotlin | 0 | 0 | 9126dd31995655f36521941b8c18f11991d5870d | 2,586 | iTunesSearcher | Apache License 2.0 |
app/src/main/java/me/shreyasr/chatse/login/LoginContract.kt | ninadmg | 96,411,626 | false | null | package me.shreyasr.chatse.login
/**
* Created by ninad on 06/07/17.
*/
interface LoginContract {
interface ILoginView {
fun loginButtonEnabled(enabled : Boolean)
fun setEmailError(error: Int?)
fun setPasswordError(error: Int?)
fun getEmailValue():String
fun getPasswordV... | 1 | null | 1 | 1 | 37fbe3046ad93db603c89bb62a93d9fb90e3b66a | 532 | ChatSE | Apache License 2.0 |
src/main/java/com/adven/concordion/extensions/exam/files/FlPlugin.kt | kudndre | 210,906,876 | true | {"JavaScript": 328652, "Kotlin": 175018, "HTML": 27880, "Java": 26556, "CSS": 10767, "Shell": 661} | package com.adven.concordion.extensions.exam.files
import com.adven.concordion.extensions.exam.core.ExamExtension
import com.adven.concordion.extensions.exam.core.ExamPlugin
import com.adven.concordion.extensions.exam.core.commands.ExamCommand
import com.adven.concordion.extensions.exam.core.html.TABLE
import com.adve... | 0 | JavaScript | 0 | 0 | f4b314e67577a02d3ffd99f95652094c7833fc2f | 1,317 | Exam | MIT License |
app/src/main/java/com/braze/advancedsamples/contentcards/activity/FullPageContentCard.kt | braze-inc | 409,674,939 | false | {"Kotlin": 49203} | package com.braze.advancedsamples.contentcards.activity
import android.app.Activity
import android.os.Bundle
import com.braze.advancedsamples.databinding.FullPageContentCardBinding
class FullPageContentCard: Activity() {
lateinit var binding: FullPageContentCardBinding
override fun onCreate(savedInstanceSta... | 0 | Kotlin | 2 | 2 | 053cc92f781ec3c135691eb98a65b893e0d8196a | 1,065 | braze-growth-shares-android-demo-app | MIT License |
oknet/src/main/java/com/jdoit/oknet/NetResponse.kt | sunjc53yy | 472,627,397 | false | null | /*
* Copyright 2022 sunjichang
*
* 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 ... | 0 | Kotlin | 0 | 0 | 724f9f29318a071a842e2450ad7097cb1b5c3981 | 985 | oknet | Apache License 2.0 |
feature/src/main/java/br/com/invisionapp/mvvm/repository/data/Data.kt | PimentaPeps | 124,780,262 | false | null | package br.com.invisionapp.mvvm.repository.data
import android.arch.persistence.room.ColumnInfo
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
@Entity(tableName = "users")
data class User(
@PrimaryKey
@ColumnInfo(name = "email")
val email: String,
... | 0 | Kotlin | 0 | 0 | d1f1fefffec53a98893f9d298a568f7385e03bfb | 450 | InvisionApp | MIT License |
feature/src/main/java/br/com/invisionapp/mvvm/repository/data/Data.kt | PimentaPeps | 124,780,262 | false | null | package br.com.invisionapp.mvvm.repository.data
import android.arch.persistence.room.ColumnInfo
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
@Entity(tableName = "users")
data class User(
@PrimaryKey
@ColumnInfo(name = "email")
val email: String,
... | 0 | Kotlin | 0 | 0 | d1f1fefffec53a98893f9d298a568f7385e03bfb | 450 | InvisionApp | MIT License |
app/src/main/java/me/spica/weather/view/weather_drawable/TranslationDrawable.kt | yangSpica27 | 457,724,719 | false | {"Kotlin": 308477, "Java": 33304, "Shell": 176} | package me.jimi.weather.view.weather_drawable
import android.animation.ObjectAnimator
import android.content.Context
import android.graphics.Camera
import android.graphics.Canvas
import android.graphics.Matrix
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListene... | 0 | Kotlin | 0 | 6 | 6dc807953f19a10651276cf7dc9afbfe17f445c0 | 4,508 | SpicaWeather | MIT License |
app/src/main/java/com/zhan/ktarmor/common/actuator/MyActivityActuator.kt | LoveLifeEveryday | 259,075,640 | true | {"Kotlin": 104490, "Shell": 37} | package com.zhan.ktarmor.common.actuator
import com.zhan.mvvm.mvvm.IMvmView
import com.zhan.mvvm.mvvm.actuator.impl.DefaultActivityActuator
/**
* author: HyJame
* date: 2020-03-23
* desc: TODO
*/
class MyActivityActuator : DefaultActivityActuator() {
override fun <R> success(mvmView: IMvmView, data: R... | 0 | null | 0 | 3 | ea39afcaaed4d07a1958a9074c977a1009ae8317 | 650 | KtArmor-MVVM | Apache License 2.0 |
mobile-ui/src/release/java/org/dukecon/android/ui/features/timemachine/ReleaseCurrentTimeProvider.kt | dukecon | 97,873,192 | true | {"Gradle": 13, "Dockerfile": 1, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Groovy": 1, "Markdown": 1, "XML": 90, "Kotlin": 193, "Proguard": 2, "JSON": 4, "Java": 9, "OASv3-json": 3} | package org.dukecon.android.ui.features.timemachine
import org.dukecon.domain.features.time.CurrentTimeProvider
import org.threeten.bp.OffsetDateTime
class ReleaseCurrentTimeProvider : CurrentTimeProvider {
override fun currentTimeMillis(): Long {
return OffsetDateTime.now().toInstant().toEpochMilli()
... | 28 | Kotlin | 1 | 1 | 9f3deaf245a953d089fa7666c5f10cb442ea4080 | 326 | dukecon_android | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/prisonerfromnomismigration/sentencing/SentencingMappingService.kt | ministryofjustice | 452,734,022 | false | null | package uk.gov.justice.digital.hmpps.prisonerfromnomismigration.sentencing
import kotlinx.coroutines.reactor.awaitSingle
import kotlinx.coroutines.reactor.awaitSingleOrNull
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.stereotype.Service
import org.springframework.web.reactiv... | 1 | Kotlin | 0 | 1 | 2856b148c69b60781621cef5396518709b0b0a82 | 3,730 | hmpps-prisoner-from-nomis-migration | MIT License |
ProgrammingFundamentals/Ep2/SquareOfNum/src/Task.kt | The-Streamliners | 784,466,451 | false | {"Kotlin": 10641} | import com.faangx.ktp.basics.SquareOfNumV1MiniApp
fun square(x: Long): Long {
TODO()
}
fun main() {
SquareOfNumV1MiniApp(::square)
} | 1 | Kotlin | 19 | 0 | e211d46ae93b204eed520831fcc7c911f077e5a2 | 142 | KTP-Course | MIT License |
app/src/main/java/com/example/composechat/MainActivity.kt | zsmb13 | 344,187,683 | false | null | package com.example.composechat
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.runtime.Composable
import androidx.navigation.compose.NavH... | 0 | Kotlin | 6 | 15 | b3121ff4d4570b0ec28ac1ecc4b36cd804da29bb | 1,311 | stream-chat-compose-experiment | Apache License 2.0 |
module-kether/src/main/kotlin/taboolib/module/kether/ScriptProperty.kt | Eric-liucn | 390,798,602 | true | {"Kotlin": 651932, "Java": 574954} | package taboolib.module.kether
import java.io.Serializable
abstract class ScriptProperty(val id: String) : Serializable {
companion object {
private const val serialVersionUID = 1L
}
abstract fun read(instance: Any, key: String): OperationResult
abstract fun write(instance: Any, key: Strin... | 0 | null | 0 | 0 | afc040bbc2f059e0c5c9578c87f1ed603428a12f | 884 | TabooLib | MIT License |
library/src/main/kotlin/com/twitter/meil_mitu/twitter4hk/data/User.kt | MeilCli | 51,423,644 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Java": 3, "XML": 22, "Kotlin": 303, "Checksums": 6} | package com.twitter.meil_mitu.twitter4hk.data
import com.twitter.meil_mitu.twitter4hk.exception.Twitter4HKException
import com.twitter.meil_mitu.twitter4hk.util.JsonUtils.getBoolean
import com.twitter.meil_mitu.twitter4hk.util.JsonUtils.getDate
import com.twitter.meil_mitu.twitter4hk.util.JsonUtils.getInt
import com.... | 0 | Kotlin | 0 | 0 | 818e42ea417c326e3d50024decce4c7e70641a73 | 3,856 | Twitter4HK | MIT License |
android/app/src/main/kotlin/com/example/flutsplash/MainActivity.kt | Yash-Garg | 354,581,591 | false | null | package com.yashgarg.flutsplash
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 7 | 18 | 1277534d6ffb1b40441b77583a3bdf295a1bb3f5 | 128 | FlutSplash | MIT License |
packages/jetbrains-plugin/src/main/kotlin/com/mongodb/jbplugin/inspections/AbstractMongoDbInspectionBridge.kt | mongodb-js | 797,134,624 | false | {"Kotlin": 724955, "Java": 3236, "Shell": 1673, "HTML": 254} | package com.mongodb.jbplugin.inspections
import com.intellij.codeInspection.AbstractBaseJavaLocalInspectionTool
import com.intellij.codeInspection.LocalInspectionToolSession
import com.intellij.codeInspection.ProblemsHolder
import com.intellij.database.dataSource.localDataSource
import com.intellij.openapi.application... | 4 | Kotlin | 0 | 4 | b22403a93e5acb4c7d22383efd9d5bb2545369a5 | 3,178 | intellij | Apache License 2.0 |
lib/src/main/java/com/fivemiles/auto/dataclass/parcel/DateParcelAdapter.kt | xinthink | 95,734,920 | false | null | package com.fivemiles.auto.dataclass.parcel
import android.os.Parcel
import java.util.Date
/**
* A [ParcelAdapter] for converting [Date]s from/to [Parcel]s.
*/
class DateParcelAdapter : ParcelAdapter<Date> {
override fun fromParcel(source: Parcel): Date = Date(source.readLong())
override fun toParcel(valu... | 3 | Kotlin | 1 | 15 | b20224c67c044499d78324b4c015ae87cd072d4a | 432 | auto-data-class | Apache License 2.0 |
app/src/main/kotlin/com/twain/interprep/presentation/ui/components/dashboard/DashboardInterviewCard.kt | Audienix | 614,703,096 | false | null | package com.twain.interprep.presentation.ui.components.dashboard
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import andro... | 6 | Kotlin | 0 | 0 | 60894226af435cd79f0d9c7ecc7b3fd65cb94b7a | 8,375 | InterPrep | Apache License 2.0 |
app/src/main/java/lets/build/chatenrichment/data/shared/SharedDataManager.kt | Let-s-build-something | 802,269,048 | false | {"Kotlin": 209072} | package lets.build.chatenrichment.data.shared
import com.google.firebase.auth.ktx.auth
import com.google.firebase.ktx.Firebase
import dagger.hilt.android.scopes.ActivityRetainedScoped
import kotlinx.coroutines.flow.MutableStateFlow
import lets.build.chatenrichment.data.shared.io.user.UserProfile
import javax.inject.In... | 0 | Kotlin | 0 | 0 | 5d16b3604096e356e82205d20054deab74842c3e | 652 | Communication-enrichment | Apache License 2.0 |
android/src/main/java/com/chrynan/video/ui/adapter/SearchTagItemAdapter.kt | chRyNaN | 174,161,260 | false | null | package com.chrynan.video.ui.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.chrynan.aaaah.Adapter
import com.chrynan.aaaah.AdapterViewType
import com.chrynan.aaaah.ViewType
import com.chrynan.aaaah.from
import com.chrynan.video.common.coroutine.CoroutineDis... | 0 | Kotlin | 0 | 8 | 63456dcfdd57dbee9ff02b2155b7e1ec5761db81 | 1,550 | Video | Apache License 2.0 |
libraries/opengl/src/ios/GLES20.kt | featurea | 407,517,337 | false | null | package featurea.opengl
import featurea.floatArraySizeInBytes
import featurea.intArraySizeInBytes
import featurea.ios.toCOpaque
import featurea.ios.toGLboolean
import featurea.math.Matrix
import featurea.math.copyToArray16
import featurea.runtime.Component
import featurea.runtime.Module
import kotlinx.cinterop.*
impor... | 24 | Kotlin | 1 | 6 | 07074dc37a838f16ece90c19a4e8d45e743013d3 | 9,647 | engine | MIT License |
app/src/main/java/com/epam/mobitru/screens/account/AccountFragment.kt | Mobitru | 679,741,584 | false | {"Kotlin": 135606, "Java": 37973, "HTML": 2914} | package com.epam.mobitru.screens.account
import android.os.Bundle
import android.view.View
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.LinearLayoutManager
import com.epam.mobitru.R
import com.epam.mobitru.base.BaseFragment
import com.epam.mobitru.base.BaseNavigationHandler
import com.e... | 0 | Kotlin | 0 | 4 | ab36b73f59fa337b4c95457e10ca1978d1a03e0c | 1,607 | demo-android-app | Apache License 2.0 |
src/main/java/club/redux/sunset/lavafishing/client/model/ModelBullet.kt | TeamSunset | 511,115,168 | false | {"Kotlin": 134265, "Java": 8962} | package club.redux.sunset.lavafishing.client.model
import club.redux.sunset.lavafishing.entity.bullet.EntityPromethiumBullet
import com.mojang.blaze3d.vertex.PoseStack
import com.mojang.blaze3d.vertex.VertexConsumer
import net.minecraft.client.model.EntityModel
import net.minecraft.client.model.geom.ModelLayerLocation... | 0 | Kotlin | 1 | 4 | f89e08efae3570d9e8d939175ea292a8486c0fd3 | 2,119 | LavaFishing | MIT License |
app/src/main/java/com/weltech/demoapp/models/network/TheMovieErrorResponse.kt | Welborn007 | 479,290,514 | false | {"Kotlin": 691950} | package com.weltech.demoapp.models.network
data class TheMovieErrorResponse(
val code: Int,
val message: String
)
| 0 | Kotlin | 0 | 0 | a6ad6db21bb274dd5dd086f03fdc4cd360aca473 | 120 | DemoApp | Apache License 2.0 |
integration-tests/src/test/kotlin/com/testapp/junit/extension/testwatcher/browserstack/BrowserStackAllTestWatcher.kt | klarna | 200,860,800 | false | {"Kotlin": 117311, "Java": 106704, "Objective-C++": 55179, "TypeScript": 46530, "Objective-C": 18243, "Ruby": 6512, "JavaScript": 3237} | package com.testapp.junit.extension.testwatcher.browserstack
import com.testapp.extensions.setTestStatus
import com.testapp.junit.TestResult
import com.testapp.junit.getDriver
import org.junit.jupiter.api.extension.AfterAllCallback
import org.junit.jupiter.api.extension.ExtensionContext
import org.junit.jupiter.api.ex... | 14 | Kotlin | 25 | 22 | b27796a4ba74a48157a64e84806aeebc8717ba73 | 2,130 | react-native-klarna-inapp-sdk | Apache License 2.0 |
parsnip/src/test/kotlin/edu/jhuapl/data/parsnip/value/compute/RegexCaptureTest.kt | aplpolaris | 561,889,726 | false | {"Kotlin": 416350, "Python": 7138} | package edu.jhuapl.data.parsnip.value.compute
/*-
* #%L
* ******************************* UNCLASSIFIED *******************************
* RegexCaptureTest.kt
* edu.jhuapl.data:parsnip
* %%
* Copyright (C) 2019 - 2022 Johns Hopkins University Applied Physics Laboratory
* %%
* Licensed under the Apache License, V... | 6 | Kotlin | 0 | 2 | eaebd0bad012bbb5ee981f63960d47ec4db5733c | 1,852 | parsnip | Apache License 2.0 |
16.kts | pin2t | 725,922,444 | false | {"Kotlin": 48856, "Go": 48364, "Shell": 54} | import kotlin.math.max
var grid = ArrayList<String>()
val up = Pair(0, -1); val right = Pair(1, 0); val down = Pair(0, 1); val left = Pair(-1, 0)
data class Beam(val pos: Pair<Int, Int>, val dir: Pair<Int, Int>) {
private fun inside() = pos.first >= 0 && pos.second >= 0 && pos.first < grid[0].length && pos.second ... | 0 | Kotlin | 1 | 0 | a151cfe498f1728ce5ed9354a146621d85e3a1f2 | 2,934 | aoc2023 | MIT License |
core/common/src/main/java/com/zn/apps/common/alarm/DailyTodoReminderAlarmScheduler.kt | Zacle | 686,192,400 | false | {"Kotlin": 916275} | package com.zn.apps.common.alarm
import android.app.AlarmManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import dagger.hilt.android.qualifiers.ApplicationContext
import java.time.OffsetDateTime
import javax.inject.Inject
private const val DAILY_TODO_REMINDER = 777... | 0 | Kotlin | 0 | 0 | 909ac17f838828b54ac6558ed3104b840831a331 | 2,093 | Focused | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.