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/irancell/nwg/ios/util/constants/GroupType.kt | afshin1394 | 755,443,887 | false | {"Kotlin": 803604} | package com.irancell.nwg.ios.util.constants
const val MAIN = 1
const val INNER = 2
const val PROBLEMATIC = 3 | 0 | Kotlin | 0 | 0 | 23a544780da643c4fa190bbe48d3bd9aa5673d88 | 109 | Audit | MIT License |
app/src/main/java/com/ecommerce/shopdaily/presentation/screens/main/shop/components/CategoryProduct.kt | milosursulovic | 591,296,419 | false | {"Kotlin": 203950} | package com.ecommerce.shopdaily.presentation.screens.main.shop.components
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Card
import andro... | 33 | Kotlin | 0 | 0 | a79e27bf415c223f5c4880635674e91579e0ec7d | 3,222 | shop-daily | MIT License |
src/main/kotlin/com/imran/api/controllers/AuthController.kt | imran94 | 800,413,385 | false | {"Kotlin": 37483} | package com.imran.api.controllers
import com.imran.api.mail.EmailService
import com.imran.api.models.Role
import com.imran.api.models.User
import com.imran.api.models.UserToken
import com.imran.api.payload.request.LoginRequest
import com.imran.api.payload.request.RefreshTokenRequest
import com.imran.api.payload.reques... | 0 | Kotlin | 0 | 0 | 6544e4194335c4ee386dd6296ebe5f8990959117 | 5,037 | spring-boot-api | Apache License 2.0 |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/Mdb.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36756847} | package compose.icons.lineawesomeicons
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
... | 15 | Kotlin | 20 | 460 | 651badc4ace0137c5541f859f61ffa91e5242b83 | 3,545 | compose-icons | MIT License |
ktor-crud-exposed-dao/backend/src/main/kotlin/com/onlyteo/sandbox/routes/GreetingRoutes.kt | onlyteo | 798,100,309 | false | {"Kotlin": 269831, "TypeScript": 53023, "HTML": 46287, "CSS": 12071, "Shell": 627, "Dockerfile": 305} | package com.onlyteo.sandbox.routes
import com.onlyteo.sandbox.model.Person
import com.onlyteo.sandbox.service.GreetingService
import io.ktor.server.application.call
import io.ktor.server.request.receive
import io.ktor.server.response.respond
import io.ktor.server.routing.Route
import io.ktor.server.routing.get
import ... | 0 | Kotlin | 0 | 0 | e110b1cfaba2a5052c3758e912336295afa98e19 | 796 | ktor-sandbox | Apache License 2.0 |
wallet-sdk/src/main/java/io/arcblock/walletkit/bean/CallBackResult.kt | ArcBlock | 470,418,674 | false | null | package io.arcblock.walletkit.bean
import android.os.Parcel
import android.os.Parcelable
/**
*
* █████╗ ██████╗ ██████╗██████╗ ██╗ ██████╗ ██████╗██╗ ██╗
* ██╔══██╗██╔══██╗██╔════╝██╔══██╗██║ ██╔═══██╗██╔════╝██║ ██╔╝
* ███████║██████╔╝██║ ██████╔╝██║ ██║ ██║██║ █████╔╝
* █... | 3 | Kotlin | 0 | 0 | 032105bd4ed9bbe4b484a3458eca67a875139f6f | 1,685 | did-wallet-sdk-android | Apache License 2.0 |
src/main/kotlin/com/broc/mcmod/McMod.kt | Brochu | 795,748,209 | false | {"Kotlin": 12263, "Java": 1956} | package com.broc.mcmod
import net.fabricmc.api.ModInitializer
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents
import net.fabricmc.fabric.api.event.player.AttackBlockCallback
import net.fabricmc.fabric.api.itemgroup.v1.FabricItem... | 0 | Kotlin | 0 | 0 | 844766e08a2abe6f20ae535b732a5ad2b8860728 | 2,612 | McMod | Apache License 2.0 |
grpc-order-management-service/src/main/kotlin/com/ribbontek/ordermanagement/repository/product/ProductRepository.kt | ribbontek | 834,289,255 | false | {"Kotlin": 424897, "Shell": 26370, "HTML": 1565, "Dockerfile": 557, "PLpgSQL": 398} | package com.ribbontek.ordermanagement.repository.product
import com.ribbontek.ordermanagement.exception.NotFoundException
import com.ribbontek.ordermanagement.repository.abstracts.AdminEntityDeleteRepository
import com.ribbontek.shared.specdsl.equal
import com.ribbontek.shared.specdsl.get
import com.ribbontek.shared.s... | 0 | Kotlin | 0 | 0 | bf1562b2e915dd0dc98d4623c624fc60ab317770 | 4,624 | grpc-course | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsresettlementpassportapi/data/interventionsapi/CRSAppointmentsDTO.kt | ministryofjustice | 665,659,688 | false | {"Kotlin": 1341601, "Dockerfile": 1771} | package uk.gov.justice.digital.hmpps.hmppsresettlementpassportapi.data.interventionsapi
import com.fasterxml.jackson.annotation.JsonProperty
data class CRSAppointmentsDTO(
val crn: String,
val referral: List<ReferralAppointment>?,
)
data class ReferralAppointment(
@JsonProperty("referral_number")
val referr... | 0 | Kotlin | 2 | 1 | e9ed7ceecdffd708a772698c98b368c5f1684ad1 | 1,317 | hmpps-resettlement-passport-api | MIT License |
app/src/main/java/com/example/counter/ui/home/HomeFragment.kt | LLuthfiY | 307,921,665 | false | null | package com.example.counter.ui.home
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModel... | 0 | Kotlin | 0 | 0 | d3df8916e75c8e77a958cfb1ddc2ac74df60e80b | 1,411 | counter | MIT License |
app/src/main/java/com/dramtar/dogfreinds/data/local/LocalDataSource.kt | Dramtar | 478,211,143 | false | null | package com.dramtar.dogfreinds.data.local
import androidx.paging.PagingSource
import kotlinx.coroutines.flow.Flow
/**
* Created by Dramtar on 15.03.2022
*/
interface LocalDataSource {
// User Table
fun getUsers(): PagingSource<Int, UserEntity>
suspend fun saveUsers(users: List<UserEntity>)
suspe... | 0 | Kotlin | 0 | 0 | 72fc7789662bfbf61abb0511453dce8059e1f23c | 792 | DogFriends | The Unlicense |
core/data/src/main/java/com/velosobr/core/data/auth/AuthInfoMapper.kt | velosobr | 800,204,024 | false | {"Kotlin": 97413} | package com.velosobr.core.data.auth
import com.velosobr.core.domain.AuthInfo
fun AuthInfo.toSerializable(): AuthInfoSerializable {
return AuthInfoSerializable(
accessToken = accessToken,
refreshToken = refreshToken,
userId = userId
)
}
fun AuthInfoSerializable.toAuthInfo(): AuthInfo ... | 0 | Kotlin | 0 | 0 | 7a8dd8800d09f730613997c9e4822f73cef60269 | 447 | go-run | MIT License |
src/main/kotlin/fr/netsah/photoServ/pojo/UserInfoDto.kt | KaratsuFr | 85,851,648 | false | {"Kotlin": 26845, "JavaScript": 11871, "HTML": 6439, "CSS": 186} | package fr.netsah.photoServ.pojo
data class UserInfoDto(var username : String = "", var password : String = "", var mail: String? = null)
| 0 | Kotlin | 0 | 0 | 336b024994082fc119d7b57a43b1bcd20b2c5cbc | 140 | kyori | MIT License |
app/src/main/java/com/hohoanghai/weatherforecast/ui/detail/DetailFragment.kt | hhhai0304 | 837,168,132 | false | {"Kotlin": 30842} | package com.hohoanghai.weatherforecast.ui.detail
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.hohoanghai.weatherforecast.R
import com.hohoanghai.w... | 0 | Kotlin | 0 | 0 | befe5d576c686d3692c6c85b71ae33fc8551faea | 1,300 | WeatherForecast | MIT License |
app/src/main/java/com/ryanhtech/vocabulario/tools/quiz/QuizPlay.kt | Ryanhtech | 445,900,317 | false | {"Kotlin": 414071} | /*
* Copyright 2021-2022 Ryanhtech Labs
*
* 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... | 0 | Kotlin | 0 | 0 | 0822b13273167e0db581b42ebf6f8219e8f509d7 | 2,686 | vocabulario | Apache License 2.0 |
stream-chat-android-offline/src/main/java/io/getstream/chat/android/offline/repository/database/converter/internal/MapConverter.kt | GetStream | 177,873,527 | false | {"Kotlin": 8578375, "MDX": 2150736, "Java": 271477, "JavaScript": 6737, "Shell": 5229} | /*
* Copyright (c) 2014-2022 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-chat-android/blob/main/LICENSE
*
* Unless required by a... | 24 | Kotlin | 273 | 1,451 | 8e46f46a68810d8086c48a88f0fff29faa2629eb | 3,079 | stream-chat-android | FSF All Permissive License |
detektive/src/test/kotlin/cash/detektive/javacompat/AnnotatePublicApisWithJvmOverloadsTest.kt | cashapp | 113,107,217 | false | {"Kotlin": 3843790, "TypeScript": 232251, "Java": 83564, "JavaScript": 5073, "Shell": 3462, "HTML": 1536, "CSS": 58} | package cash.detektive.javacompat
import cash.detektive.javacompat.AnnotatePublicApisWithJvmOverloads.ElementType
import io.github.detekt.parser.DetektPomModel
import io.github.detekt.test.utils.compileForTest
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.Severity
import io.gitla... | 169 | Kotlin | 169 | 400 | 13dcba0c4e69cc2856021270c99857e7e91af27d | 8,053 | misk | Apache License 2.0 |
src/chapter5/section1/ex19_RandomCALicensePlates.kt | w1374720640 | 265,536,015 | false | {"Kotlin": 1373556} | package chapter5.section1
import extensions.random
/**
* 随机的加利福尼亚州车牌号
* 编写一个静态方法randomPlatesCA,接受一个整型参数N并返回一个含有N个字符串的数组,
* 每个字符串都是与本节的示例类似的加利福尼亚州的车牌号。
*/
fun ex19_RandomCALicensePlates(N: Int): Array<String> {
return Array(N) {
val stringBuilder = StringBuilder()
stringBuilder.append(random(10... | 0 | Kotlin | 1 | 6 | 879885b82ef51d58efe578c9391f04bc54c2531d | 699 | Algorithms-4th-Edition-in-Kotlin | MIT License |
src/kotlin/mati/advancedgdx/assets/FontLoader.kt | matiuri | 48,175,334 | false | null | /**
* Copyright 2015 Matías Steinberg
*
* 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 ag... | 0 | Kotlin | 0 | 0 | 3bf28bbfb70c7693ac7ed2db361c7410376a98e7 | 3,803 | AdvancedGDX | Apache License 2.0 |
app/src/main/java/com/iolll/kit/xidingRv/RVDis2.kt | liuyouth | 185,177,615 | false | {"Java": 96198, "Kotlin": 62821} | package com.iolll.ki
import android.graphics.Canvas
import android.view.View
import android.widget.LinearLayout
import android.widget.TextView
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.iolll.kit.Utils
import com.iolll.kit.xidingRv.Title
import c... | 1 | null | 1 | 1 | 1dedc210a01c81dce4485dd2f1a369f42a952a7e | 12,204 | IolllKit | Apache License 2.0 |
core/src/main/kotlin/org/kotlinq/api/PrintingConfiguration.kt | prestongarno | 98,687,463 | false | {"Git Config": 1, "Gradle": 10, "XML": 1, "Shell": 2, "Ignore List": 1, "Batchfile": 1, "YAML": 2, "Text": 1, "Markdown": 8, "Kotlin": 130, "GraphQL": 3, "Java": 5, "ANTLR": 2, "Java Properties": 1, "INI": 1} | package org.kotlinq.api
/**
* Added to support different requirements by endpoints
*
* Options supported by both:
* * Quotation character
* * Escape quotation marks
* Pretty Print options:
* * Indent
*/
class PrintingConfiguration private constructor(builder: Builder) {
val pretty: Boolean = builder.... | 1 | null | 1 | 1 | a9e8dab66e2704aab1434f76cff7129d84494796 | 2,768 | kotlinq | Apache License 2.0 |
src/main/kotlin/g2301_2400/s2319_check_if_matrix_is_x_matrix/Solution.kt | javadev | 190,711,550 | false | {"Kotlin": 4901773, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g2301_2400.s2319_check_if_matrix_is_x_matrix
// #Easy #Array #Matrix #2023_06_30_Time_247_ms_(100.00%)_Space_39_MB_(70.00%)
class Solution {
fun checkXMatrix(grid: Array<IntArray>): Boolean {
for (i in grid.indices) {
for (j in grid[0].indices) {
if (i == j || i + j == ... | 0 | Kotlin | 20 | 43 | 471d45c60f669ea1a2e103e6b4d8d54da55711df | 636 | LeetCode-in-Kotlin | MIT License |
app/src/main/java/com/example/myfirstproject/MainActivity.kt | MateusLand | 633,007,612 | false | null | package com.example.myfirstproject
import android.annotation.SuppressLint
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.Editable
import android.widget.Button
import android.widget.EditText
import android.widget.TextView
import android.widget.... | 0 | Kotlin | 0 | 0 | 9947583372f8bc1589c8bcb36f2c015e07884598 | 1,703 | BMI-Calculator-Android | The Unlicense |
src/main/kotlin/events/SlotRenderEvents.kt | nea89o | 637,563,904 | false | {"Kotlin": 661685, "Java": 144356, "GLSL": 2115, "Nix": 1217} |
package moe.nea.firmament.events
import net.minecraft.client.gui.DrawContext
import net.minecraft.client.texture.Sprite
import net.minecraft.screen.slot.Slot
import net.minecraft.util.Identifier
import moe.nea.firmament.util.MC
interface SlotRenderEvents {
val context: DrawContext
val slot: Slot
val mou... | 25 | Kotlin | 6 | 37 | 0357245e88be4b8cd3d0681340d9a7065361ea74 | 1,089 | Firmament | Apache License 2.0 |
dao/src/main/kotlin/repositories/DaoReporterJobRepository.kt | eclipse-apoapsis | 760,319,414 | false | {"Kotlin": 2818605, "Dockerfile": 22512, "Shell": 7009} | /*
* Copyright (C) 2023 The ORT Server Authors (See <https://github.com/eclipse-apoapsis/ort-server/blob/main/NOTICE>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://w... | 0 | Kotlin | 2 | 6 | ce7c9a533128bc1282e77dca2d90158e0feeaa4a | 2,829 | ort-server | Apache License 2.0 |
app/src/main/java/com/bayurf/latihan/footballschedule/mvp/main/MainView.kt | bayuirfan52 | 156,997,449 | false | null | package com.bayurf.latihan.footballschedule.mvp.main
import com.bayurf.latihan.footballschedule.data.EventItem
interface MainView {
fun showLoading()
fun hideLoading()
fun showMatch(data: List<EventItem>)
fun showFavorite(data: List<EventItem>)
fun showEmpty()
} | 0 | Kotlin | 0 | 0 | 1a56385e86c266f47a1d89531c1c0b32f1f51439 | 284 | Football-Schedule | Creative Commons Attribution 3.0 Unported |
src/Day10.kt | fedochet | 573,033,793 | false | null | private sealed interface Command
private sealed interface Assembly
private object Noop : Command, Assembly
private class AddX(val value: Int) : Command
private class Add(val value: Int) : Assembly
fun main() {
fun parseCommand(str: String): Command {
return when {
str == "noop" -> Noop
... | 0 | Kotlin | 0 | 1 | 975362ac7b1f1522818fc87cf2505aedc087738d | 3,251 | aoc2022 | Apache License 2.0 |
Plugin/convention/src/main/kotlin/plugin/convention/features/FeaturePane.kt | SingularityIndonesia | 776,620,771 | false | {"Kotlin": 248468, "Shell": 4184, "Swift": 585, "HTML": 339, "CSS": 102} | /*
* Copyright (c) 2024 Singularity Indonesia (<EMAIL>)
* You are not allowed to remove the copyright. Unless you have a "free software" licence.
*/
package plugin.convention.features
import org.gradle.api.Project
import org.gradle.kotlin.dsl.dependencies
import org.jetbrains.compose.ComposePlugin
import plugin.con... | 0 | Kotlin | 4 | 7 | bce4027f12a07c683ea9e1afae78605f4f092958 | 3,202 | SingularityBaseMobile | Creative Commons Zero v1.0 Universal |
apps/etterlatte-opplysninger-fra-inntektskomponenten/src/main/kotlin/opplysninger/kilde/inntektskomponenten/InntektsKomponentenResponse.kt | navikt | 417,041,535 | false | null | package no.nav.etterlatte.opplysninger.kilde.inntektskomponenten
import no.nav.etterlatte.libs.common.inntekt.ArbeidsInntektMaaned
import no.nav.etterlatte.libs.common.inntekt.Ident
data class InntektsKomponentenResponse(
val arbeidsInntektMaaned: List<ArbeidsInntektMaaned>?,
val ident: Ident
) | 6 | Kotlin | 0 | 3 | 8d41d2e006b5df41eacef84a670bc162ed72233c | 305 | pensjon-etterlatte-saksbehandling | MIT License |
app/src/main/java/com/jbgcomposer/newshub/db/FavoriteDao.kt | jhonybguerra | 755,538,997 | false | {"Kotlin": 48815} | package com.jbgcomposer.newshub.db
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
@Dao
interface FavoriteDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun u... | 0 | Kotlin | 0 | 0 | 9ae3191cd578d20c05fa110a4bd343fa73651573 | 539 | NewsHub | Apache License 2.0 |
src/main/kotlin/net/savagelabs/skyblockx/command/skyblock/cmd/CmdSbKick.kt | ryderbelserion | 669,876,085 | false | null | package net.savagelabs.skyblockx.command.skyblock.cmd
import net.savagelabs.savagepluginx.command.Argument
import net.savagelabs.savagepluginx.command.Command
import net.savagelabs.savagepluginx.command.argument.PlayerArgument
import net.savagelabs.skyblockx.command.SCommandInfo
import net.savagelabs.skyblockx.command... | 0 | Kotlin | 0 | 0 | 23e430fd51a76e22f95847520e6976e2250058b3 | 2,293 | Skyblock | MIT License |
src/main/kotlin/Domain/Teacher.kt | SchoolSyncAr | 782,715,163 | false | {"Kotlin": 4711, "Dockerfile": 243} | package ar.org.schoolsync.Domain
import ar.org.schoolsync.Repositories.Entity
class Teacher (
override var id: Int,
var firstName:String,
var lastName: String,
) : Entity {
} | 12 | Kotlin | 0 | 1 | af4fd5bd2915ce84f6c512dba1ed3d0c1a2ba7ab | 196 | schoolsync-be | MIT License |
kodein-di/src/jvmMain/kotlin/org/kodein/di/internal/DirectDIJVMImpl.kt | kosi-libs | 34,046,231 | false | {"Kotlin": 661014, "Java": 16368} | package org.kodein.di.internal
import org.kodein.di.*
import org.kodein.type.TypeToken
@Suppress("UNCHECKED_CAST")
private val DIContext<*>.anyType get() = type as TypeToken<in Any>
// https://youtrack.jetbrains.com/issue/KT-61573
@Suppress("FunctionName", "EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
internal ac... | 5 | Kotlin | 172 | 3,148 | 7bf22a71b66c52e6434c72e6162377b10085567f | 1,509 | Kodein | MIT License |
kodein-di/src/jvmMain/kotlin/org/kodein/di/internal/DirectDIJVMImpl.kt | kosi-libs | 34,046,231 | false | {"Kotlin": 661014, "Java": 16368} | package org.kodein.di.internal
import org.kodein.di.*
import org.kodein.type.TypeToken
@Suppress("UNCHECKED_CAST")
private val DIContext<*>.anyType get() = type as TypeToken<in Any>
// https://youtrack.jetbrains.com/issue/KT-61573
@Suppress("FunctionName", "EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
internal ac... | 5 | Kotlin | 172 | 3,148 | 7bf22a71b66c52e6434c72e6162377b10085567f | 1,509 | Kodein | MIT License |
bitgouel-api/src/main/kotlin/team/msg/domain/inquiry/exception/InquiryNotFoundException.kt | School-of-Company | 700,741,727 | false | {"Kotlin": 636912, "Shell": 2040, "Dockerfile": 206} | package team.msg.domain.inquiry.exception
import team.msg.domain.inquiry.exception.constant.InquiryErrorCode
import team.msg.global.error.exception.BitgouelException
class InquiryNotFoundException(message: String) : BitgouelException(message, InquiryErrorCode.NOT_FOUND_INQUIRY.status) | 3 | Kotlin | 0 | 17 | c731c813d48b9121553525a2c36fba609fa6869b | 287 | Bitgouel-Server | MIT License |
app/src/main/java/com/example/applaudochallenge/ui/navigation/components/TvShowsContent.kt | mauriciolima1988 | 561,894,249 | false | null | package com.example.applaudochallenge.ui.navigation.components
import android.widget.Toast
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext
import androidx.paging.compose.LazyPagingItems
import com.example.applaudochallenge.R
import com.example.applaudochallenge.data.network.... | 0 | Kotlin | 0 | 0 | d4481d5e5fcfcaf0c953fd1fe806c1aedfcdca9c | 1,317 | Applaudo_s_Code_Challenge_Android | MIT License |
src/main/kotlin/com/shopping/domain/dto/order/response/OrderResponse.kt | alialbaali | 285,645,104 | false | {"Kotlin": 224319} | package com.shopping.domain.dto.order.response
data class OrderResponse(
val orderId: String,
val addressName: String,
val cardLast4Numbers: Long,
val numberOfItems: Long,
val totalPrice: Double,
)
| 0 | Kotlin | 0 | 1 | e8d003386bfff065c9a775b4a808c2d7dd9acd87 | 219 | Shopally | Apache License 2.0 |
app/src/main/java/network/RetrofitInstance.kt | Rohith0007 | 794,859,793 | false | {"Kotlin": 17306} | package network
import EmployeeApiService
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
object RetrofitInstance {
private const val BASE_URL = "https://s3.amazonaws.com/sq-mobile-interview/"
val retrofit: Retrofit by lazy {
Retrofit.Builder()
.baseUrl(BASE... | 0 | Kotlin | 0 | 0 | 6c241af2410e7e47f9446d404996de4a7f114595 | 525 | EmployeeDirectory | Apache License 2.0 |
core/src/commonMain/kotlin/dev/iaiabot/furuhuru/datasource/local/UserDataSource.kt | iaia | 523,282,500 | false | null | package dev.iaiabot.furuhuru.datasource.local
internal interface UserDataSource {
fun getUserName(): String
fun saveUserName(newUserName: String)
}
| 2 | Kotlin | 0 | 0 | b83cf1558a8bb906015b3cc478ab8e18e80e5a89 | 159 | Furuhuru | MIT License |
template-model-generator/src/main/kotlin/no/nav/pensjon/brev/template/dsl/helpers/SelectorModels.kt | navikt | 375,334,697 | false | {"Kotlin": 1439579, "TypeScript": 209010, "CSS": 18391, "TeX": 12814, "Shell": 6626, "Python": 4371, "Dockerfile": 3864, "JavaScript": 1937, "HTML": 380} | package no.nav.pensjon.brev.template.dsl.helpers
import com.google.devtools.ksp.symbol.*
internal data class SelectorModels(private val visited: Set<KSClassDeclaration> = emptySet(), val needed: Map<KSClassDeclaration, Set<KSFile>> = emptyMap()) {
fun withVisited(decl: KSClassDeclaration): SelectorModels =
... | 4 | Kotlin | 3 | 1 | e9d2fb87f66a57cd3f6d94d33d7dd30050968d94 | 872 | pensjonsbrev | MIT License |
adapter-bansa/src/main/kotlin/redux/api/adapters/BansaStoreAdapter.kt | glung | 68,528,949 | false | null | package redux.api.adapters
import com.brianegan.bansa.BaseStore
import redux.api.Reducer
import redux.api.Store
class BansaStoreAdapter<S : Any>(val store: com.brianegan.bansa.Store<S>) : Store<S> {
override fun getState(): S = store.state
override fun dispatch(action: Any): Any {
store.dispatch(Acti... | 0 | Kotlin | 1 | 1 | 37784e7729b08742118073a92908b5d5774c03e8 | 2,138 | jvm-redux | MIT License |
easylauncher/src/main/kotlin/com/project/starter/easylauncher/plugin/models/AdaptiveIcon.kt | usefulness | 283,004,535 | false | null | package com.project.starter.easylauncher.plugin.models
import java.io.File
internal data class AdaptiveIcon(val file: File, val background: String, val foreground: String)
| 7 | Kotlin | 16 | 336 | bfcec17114ec5fe6d8f54ff1ab8e8cc959637763 | 174 | easylauncher-gradle-plugin | MIT License |
app/src/main/java/top/r011/demo/rgithub/ui/home/HomeViewModel.kt | waylife | 852,132,884 | false | {"Kotlin": 70115} | package top.r011.demo.rgithub.ui.home
import androidx.lifecycle.LiveData
import dagger.hilt.android.lifecycle.HiltViewModel
import top.r011.demo.rgithub.account.UserAccount
import top.r011.demo.rgithub.data.repository.GithubRepository
import top.r011.demo.rgithub.ui.base.BaseViewModel
import javax.inject.Inject
@Hilt... | 0 | Kotlin | 0 | 0 | e4407d2c2483aa2773104b0cf1f25e313e235fad | 738 | RGithub | MIT License |
app/src/main/java/com/gjapps/minilogbook/data/models/BloodGlucoseRecordModel.kt | gustavoja | 812,563,129 | false | {"Kotlin": 58123} | package com.gjapps.minilogbook.data.models
import java.util.Date
data class BloodGlucoseRecordModel (val mgdlValue: Float, val date: Date) | 0 | Kotlin | 0 | 0 | 43a6462442d352a3079cefdcf95adf1ed2801cda | 140 | minilogbook | Apache License 2.0 |
core-database/src/main/kotlin/io/getstream/avengerschat/core/database/AppDatabase.kt | GetStream | 420,033,848 | false | {"Kotlin": 143313} | /*
* Copyright 2022 Stream.IO, Inc. 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 applica... | 1 | Kotlin | 37 | 364 | d712bf44d89fa342d65dc4e8b81f9aa955a9f1ce | 969 | AvengersChat | Apache License 2.0 |
app/src/main/java/com/zhangwww/newnotebook/Config.kt | Zhangw1998 | 382,551,686 | false | null | package com.zhangwww.newnotebook
/**
* @Description: app的一些基本配置信息
* @Author: Zhangwww
* @CreateDate: 2021/7/3 9:54
* @UpdateUser:
* @UpdateDate: 2021/7/3 9:54
* @UpdateRemark:
* @Version: 1.0
*/
object Config {
} | 0 | Kotlin | 0 | 0 | ee36df26f9ec9dd24d6938b19714a8af5fb2e531 | 248 | Notebook | MIT License |
icmp4a/src/main/kotlin/com/marsounjan/icmp4a/Icmp4a.kt | marsounjan | 747,256,499 | false | {"Kotlin": 63710} | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 0 | Kotlin | 0 | 1 | e4a064059b491f5fc3a4e6d55fba13ec0a79b2d3 | 15,292 | icmp4a | Apache License 2.0 |
src/test/kotlin/days/Day3Test.kt | teunw | 573,164,590 | false | null | package days
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.core.Is.`is`
import org.junit.jupiter.api.Test
class Day3Test {
private val day = Day3()
@Test
fun testPartOne() {
assertThat(day.getPriority('p'), `is`(16))
assertThat(day.getPriority('L'), `is`(38))
a... | 0 | Kotlin | 0 | 0 | 149219285efdb1a4d2edc306cc449cce19250e85 | 449 | advent-of-code-22 | Creative Commons Zero v1.0 Universal |
sample/app/src/main/java/xyz/shogo/sample/lib/InfinitePagerAdapter.kt | ShogoTakeuchi | 222,040,301 | false | null | import androidx.viewpager.widget.PagerAdapter
import android.database.DataSetObserver
import android.view.ViewGroup
import android.os.Parcelable
import android.view.View
class InfinitePagerAdapter : PagerAdapter {
private val adapter: PagerAdapter
constructor(adapter: PagerAdapter) : super() {
this.a... | 0 | Kotlin | 0 | 0 | 1b57fcebfc8a6317a1fe8b0d428940d2dba24768 | 2,352 | infinite-viewpager | MIT License |
crypto-android/src/test/kotlin/studio/lunabee/onesafe/cryptography/android/HKDFTinkHashEngineTest.kt | LunabeeStudio | 624,544,471 | false | {"Kotlin": 3214440, "Java": 11987, "Python": 3979} | /*
* Copyright (c) 2023-2024 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 ... | 1 | Kotlin | 1 | 2 | 2f1ff3aad95c748090c695743258fe3056fc6028 | 1,354 | oneSafe6_SDK_Android | Apache License 2.0 |
paging-testing/src/commonMain/kotlin/app/cash/paging/testing/LoadErrorHandler.kt | cashapp | 488,572,129 | false | {"Kotlin": 88180} | /*
* Copyright 2023 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... | 24 | Kotlin | 26 | 557 | 26448f6b70ca5e0088a43eed63d3f5a08bb81798 | 886 | multiplatform-paging | Apache License 2.0 |
src/main/kotlin/com/github/arusland/tgbot/BotConfig.kt | arusland | 496,772,419 | false | {"Kotlin": 6993, "Shell": 1476} | package com.github.arusland.tgbot
import org.slf4j.LoggerFactory
import java.io.File
import java.io.FileInputStream
import java.util.*
/**
* Simple bot configuration
*/
class BotConfig private constructor(prop: Properties) {
private val log = LoggerFactory.getLogger(BotConfig::class.java)
private val props:... | 0 | Kotlin | 0 | 0 | 21f5638203e07fd71483643eafbee86952754baf | 1,159 | tgbot | Apache License 2.0 |
chi-compiler/src/test/kotlin/gh/marad/chi/core/expressionast/internal/FunctionConversionsKtFnCallTest.kt | marad | 424,295,144 | false | {"Kotlin": 316466, "Java": 241258, "ANTLR": 7061, "Batchfile": 2689} | package gh.marad.chi.core.expressionast.internal
import gh.marad.chi.core.Type
import gh.marad.chi.core.parser.readers.LongValue
import gh.marad.chi.core.parser.readers.ParseFnCall
import gh.marad.chi.core.parser.readers.ParseLambda
import gh.marad.chi.core.shouldBeAtom
import io.kotest.matchers.shouldBe
import org.ju... | 26 | Kotlin | 0 | 11 | d93f2df6472476a0de365edc5f146826ce608c58 | 1,063 | chi-compiler-kotlin | MIT License |
app/src/main/java/com/example/myapplication/MainFragment.kt | Abcferreira | 539,098,359 | false | {"Kotlin": 2165} | package com.example.myapplication
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.example.myapplication.databinding.FragmentMainBinding
class MainFragment : Fragment() {
private var _binding: Fragm... | 0 | Kotlin | 0 | 0 | 7a59d03e7ef7cac96e68d43bbaecaa7a5a6c4e61 | 832 | testeRepo | Apache License 2.0 |
openpss/src/main/kotlin/com/hanggrian/openpss/util/TreeTableColumns.kt | hanggrian | 104,778,225 | false | {"Kotlin": 324374, "HTML": 18736, "SCSS": 7162, "CSS": 5335, "Ruby": 147} | package com.hanggrian.openpss.util
import com.hanggrian.openpss.Context
import javafx.scene.control.TreeTableColumn
import ktfx.stringPropertyOf
import ktfx.text.invoke
fun <T> TreeTableColumn<T, String>.stringCell(target: T.() -> Any) =
setCellValueFactory { col ->
stringPropertyOf(col.value.value.target... | 1 | Kotlin | 0 | 7 | 02013488fc115de903e7775d7c6d18d83537dcac | 609 | openpss | Apache License 2.0 |
src/main/kotlin/no/nav/rekrutteringsbistand/api/autorisasjon/AzureCache.kt | navikt | 214,435,826 | false | null | package no.nav.rekrutteringsbistand.api.autorisasjon
import org.springframework.stereotype.Component
import java.time.LocalDateTime
@Component
class AzureCache {
private val cache: HashMap<String, HashMap<String, CachedToken>> = HashMap()
fun hentOBOToken(scope: String, onBehalfOf: String): String? {
... | 2 | Kotlin | 1 | 0 | 9aed18bbd7723e6f52640963755e1dcc45a0a926 | 1,176 | rekrutteringsbistand-stilling-api | MIT License |
codebase/android/feature/transactions/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/feature/transactions/add_or_edit_transaction/viewmodel/AddOrEditTransactionScreenUiVisibilityState.kt | Abhimanyu14 | 429,663,688 | false | {"Kotlin": 1454948} | package com.makeappssimple.abhimanyu.financemanager.android.feature.transactions.add_or_edit_transaction.viewmodel
import androidx.compose.runtime.Immutable
import com.makeappssimple.abhimanyu.financemanager.android.core.common.extensions.isNull
@Immutable
sealed class AddOrEditTransactionScreenUiVisibilityState(
... | 4 | Kotlin | 0 | 1 | 6675c0b8c951b8d6105e03c34ce88054ccc87105 | 3,202 | finance-manager | Apache License 2.0 |
cinescout/media/data/remote/src/commonMain/kotlin/cinescout/media/data/remote/res/TmdbScreenplayVideosJson.kt | fardavide | 280,630,732 | false | null | package cinescout.media.data.remote.res
import cinescout.media.domain.sample.ScreenplayVideosSample
import cinescout.screenplay.domain.sample.TmdbScreenplayIdSample
import cinescout.media.data.remote.model.GetScreenplayVideosResponse as Response
object TmdbScreenplayVideosJson {
val Avatar3 = """
{
... | 8 | Kotlin | 2 | 6 | f2e3993816452afaf6c3f1e7c7a384eb9a66c06e | 4,621 | CineScout | Apache License 2.0 |
app/src/main/java/com/tasks/example/countries/api/Language.kt | AlexanderPlyaka | 167,533,739 | false | null | package com.tasks.example.countries.api
import com.google.gson.annotations.SerializedName
data class Language(
@SerializedName("iso639_1")
val iso6391: String,
@SerializedName("iso639_2")
val iso6392: String,
@SerializedName("name")
val name: String,
@SerializedName("nativeName")
val n... | 0 | Kotlin | 0 | 0 | 80d87cf8b1a2a2a6946c76dcb89c3e0cc8a510fd | 339 | Bordering-Countries | Apache License 2.0 |
app/src/main/java/com/juangm/randomusers/data/source/remote/retrofit/UsersService.kt | juangranadilla | 182,758,014 | false | null | package com.juangm.randomusers.data.source.remote.retrofit
import com.juangm.randomusers.data.constants.RepositoryConstants.DEFAULT_PAGE
import com.juangm.randomusers.data.constants.RepositoryConstants.DEFAULT_PAGE_SIZE
import com.juangm.randomusers.data.constants.RepositoryConstants.DEFAULT_SEED
import com.juangm.ran... | 0 | Kotlin | 3 | 5 | 37ed5c2176b97845f6c3cb866cf1fb40f7da82b4 | 689 | RandomUsers | Apache License 2.0 |
src/main/kotlin/io/emeraldpay/dshackle/upstream/finalization/FinalizationData.kt | drpcorg | 509,408,072 | false | {"Kotlin": 1449341, "Groovy": 585772, "Java": 148989, "JavaScript": 5522, "Shell": 646, "Makefile": 497, "Dockerfile": 103} | package io.emeraldpay.dshackle.upstream.finalization
import io.emeraldpay.api.proto.Common
class FinalizationData(
val height: Long,
val type: FinalizationType,
) {
override fun toString(): String {
return "FinalizationData($height, ${type.toBlockRef()})"
}
override fun equals(other: Any?... | 2 | Kotlin | 12 | 38 | 2800556ff1587ccc7f7dd0aca7a43833048f035a | 1,783 | dshackle | Apache License 2.0 |
app/src/main/java/com/example/doughnutopia/ui/theme/Type.kt | mahmmedn19 | 664,349,956 | false | null | package com.example.doughnutopia.ui.theme
import androidx.compose.material3.Typography
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
// Set of Material typography styles to start with
val Typograph... | 0 | Kotlin | 0 | 1 | 470d767d8762837d104ce680347a040c32ac8ef2 | 1,869 | Doughnutopia | MIT License |
examples/src/jvmMain/kotlin/com/littlekt/examples/JvmRunner.kt | littlektframework | 442,309,478 | false | {"Kotlin": 2170511, "Java": 1717152, "C": 111391} | package com.littlekt.examples
import com.littlekt.Context
import com.littlekt.ContextListener
import com.littlekt.createLittleKtApp
import com.littlekt.log.Logger
/**
* @author <NAME>
* @date 4/5/2024
*/
fun main(args: Array<String>) {
if (args.isNotEmpty()) {
println("args: ${args.joinToString { it }}... | 14 | Kotlin | 12 | 316 | 100c37feefcfd65038a9cba4886aeb4a7d5632dc | 1,059 | littlekt | Apache License 2.0 |
app/src/main/java/xyz/skether/radiline/domain/manager/StationsManager.kt | vertex13 | 172,876,100 | false | null | package xyz.skether.radiline.domain.manager
import xyz.skether.radiline.data.db.AppDatabase
import xyz.skether.radiline.data.db.DBStation
import xyz.skether.radiline.data.db.DBUpdateInfo
import xyz.skether.radiline.data.shoutcast.ShoutcastApi
import xyz.skether.radiline.data.shoutcast.ShoutcastError
import xyz.skether... | 0 | Kotlin | 1 | 2 | ad8d16d044f16b137d5dd13f0afa9f1b511fc4c6 | 3,280 | Radiline | MIT License |
2022/kotlin/src/test/kotlin/nl/dirkgroot/adventofcode/year2022/Day24Test.kt | dirkgroot | 724,049,902 | false | {"Kotlin": 209352, "Rust": 125553, "Clojure": 80411} | package nl.dirkgroot.adventofcode.year2022
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
import nl.dirkgroot.adventofcode.util.input
import nl.dirkgroot.adventofcode.util.invokedWith
private fun solution1(input: String) = Valley.parse(input).let { valley ->
generateSequence(valley... | 1 | Kotlin | 0 | 0 | fe29ca58f33859150b5497fb5baa3410fa453a7c | 4,547 | adventofcode | MIT License |
androidApp/src/main/java/com/alwinsden/finalebuild/android/RoutingControls.kt | xGamma-in | 704,764,615 | false | {"Kotlin": 57010, "Swift": 17088, "Ruby": 1742} | package com.alwinsden.finalebuild.android
import androidx.compose.runtime.Composable
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import com.alwinsden.finalebuild.android.facilities.CarTech
@Composable
fun RoutingCont... | 0 | Kotlin | 1 | 1 | 826c23236db0960cbf85c62ca5c8b92693f5d853 | 553 | HandyConnect | MIT License |
src/main/kotlin/io/datawire/loom/core/validation/Validator.kt | datawire | 92,783,521 | false | null | package io.datawire.loom.core.validation
import com.fasterxml.jackson.core.JsonPointer
import com.fasterxml.jackson.databind.JsonNode
abstract class Validator {
abstract fun validate(root: JsonNode)
protected fun path(path: String): JsonPointer = JsonPointer.compile(path)
}
| 0 | Kotlin | 0 | 0 | b7208a9bbb673d4fa87b436c125227a55d9f2049 | 281 | loomctl | Apache License 2.0 |
app/src/main/java/com/burakdemir/ExziCase/MainActivity.kt | brkdoc | 763,975,208 | false | {"Kotlin": 31593} | package com.burakdemir.ExziCase
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.navigation.fragment.findNavController
import androidx.navigation.ui.setupWithNavController
import com.burakdemir.ExziCase.databinding.ActivityMainBinding
import dagger.hilt.android.AndroidEntryPoint... | 0 | Kotlin | 0 | 0 | d7707166de754e129883b868fbb433c238bb12d1 | 937 | exzi-case | MIT License |
amalia-core/src/main/java/com/vicidroid/amalia/core/persistance/PersistableState.kt | vicidroiddev | 171,361,804 | false | null | package com.vicidroid.amalia.core.persistance
import android.os.Parcelable
import androidx.lifecycle.SavedStateHandle
interface PersistableState {
var savedStateHandle: SavedStateHandle
fun <V> consumePersisted(key: String): V {
return savedStateHandle.remove(key) ?: error("$key could not be found.")... | 7 | Kotlin | 0 | 9 | 0a4facc243feefe3f982f7f2915ccc5541dc321b | 969 | amalia | Apache License 2.0 |
muirwik/muirwik-testapp/src/main/kotlin/com/ccfraser/muirwik/testapp/TestRadioButtons.kt | egorsni | 325,822,400 | false | null | package com.ccfraser.muirwik.testapp
import com.ccfraser.muirwik.components.*
import com.ccfraser.muirwik.components.form.*
import com.ccfraser.muirwik.testapp.TestRadioButtons.ComponentStyles.paddingLeft12
import kotlinx.css.*
import react.*
import react.dom.br
import styled.StyleSheet
import styled.css
import styled... | 0 | Kotlin | 0 | 0 | fa1bfeeecd5469e4b60ca5cb82826853c31d7864 | 5,224 | Binvest | MIT License |
app/src/main/java/com/jaresinunez/bitfitpt1/FoodLogFragment.kt | jaresinunez | 721,446,150 | false | {"Kotlin": 17416} | package com.jaresinunez.bitfitpt1
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.wid... | 0 | Kotlin | 0 | 0 | 70d9f2508fd4150e1e4250ca9cbe322d7e0386a9 | 3,481 | BitFitPt2 | Apache License 2.0 |
EventDemo/app/src/main/java/com/example/eventsdemoapp/MainActivity.kt | kristiania-android-course-2021 | 330,145,998 | false | null | package com.example.eventsdemoapp
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.view.MotionEvent
import android.view.View
import android.w... | 0 | Kotlin | 2 | 1 | a84e0e12fc62129601a58c1016c59199371767b0 | 3,926 | Lecture-03 | Apache License 2.0 |
app/src/main/java/io/navendra/kwitter/KwitterLog.kt | navi25 | 183,168,035 | false | null | package io.navendra.kwitter
import android.util.Log
object KwitterLog {
fun d(message : ()->String){
Log.d("Kwitter",message.invoke())
}
}
| 0 | Kotlin | 0 | 0 | f65adee2f47da4c1d288b32a35f4d3ce9d4c8916 | 159 | Kwitter | MIT License |
authorization-server/core/src/main/kotlin/mc/oauth2/providers/DelegatingAuthenticationProvider.kt | mchalabine | 148,293,942 | false | {"Kotlin": 60578} | package mc.oauth2.providers
import mc.oauth2.*
import mc.oauth2.integration.AuthenticationResult
import mc.oauth2.integration.AuthenticationResult.AUTHENTICATED
import mc.oauth2.integration.AuthenticationService
import org.springframework.security.authentication.AuthenticationProvider
import org.springframework.securi... | 3 | Kotlin | 0 | 0 | ffb7dd85df9f1ba46cce0fbfb06d756b95c0c992 | 4,281 | mc-oauth2-spring | Apache License 2.0 |
app/src/main/java/com/anmolsahi/broncoforreddit/utils/Mappers.kt | sahianmol1 | 680,504,355 | false | {"Kotlin": 348917, "Shell": 4486} | package com.anmolsahi.broncoforreddit.utils
import com.anmolsahi.domain.model.SavedPost
import com.anmolsahi.domain.models.RedditPost
fun RedditPost.asSavedPost() = SavedPost(
id = this.id,
subName = this.subName,
title = this.title,
description = this.description,
upVotes = this.upVotes,
comm... | 6 | Kotlin | 1 | 1 | 66da5b4273299297a0944f89433aa2db8403d9e3 | 838 | Bronco-for-Reddit | MIT License |
inference/src/main/kotlin/io/kinference/operators/layer/recurrent/RecurrentLayer.kt | cybernetics | 324,970,047 | true | {"Kotlin": 461291, "PureBasic": 24490} | package io.kinference.operators.layer.recurrent
import io.kinference.data.tensors.Tensor
abstract class RecurrentLayer(val hiddenSize: Int, val activations: List<String>, val direction: String) {
abstract fun apply(inputList: List<Tensor?>): List<Tensor?>
}
| 0 | null | 0 | 0 | 8aa3295f112353949562750b83991b7ea8b83cf2 | 264 | kinference | Apache License 2.0 |
feature-startscreen/src/main/java/com/tagakov/startscreen/api/StartScreenDependencies.kt | Tagakov | 138,186,459 | false | {"Kotlin": 28050} | package com.tagakov.startscreen.api
import com.tagakov.common.ComponentDependencies
import com.tagakov.common.di.Rx
import io.reactivex.Scheduler
interface StartScreenDependencies: ComponentDependencies {
fun userNameProvider(): UserNameProvider
fun startScreenNavigator(): StartScreenNavigator
@Rx.MainSch... | 2 | Kotlin | 16 | 95 | cdb03cb8a312d7fb5675b6b6e3cbbdf2e7157234 | 356 | modules-and-dagger | MIT License |
app/src/main/java/dev/rstockbridge/showstats2/api/SetlistfmApi.kt | rstockbridge | 447,359,780 | false | null | package dev.rstockbridge.showstats2.api
import dev.rstockbridge.showstats2.api.models.SetlistData
import java.io.IOException
object SetlistfmApi : DataFetcher {
private val service: SetlistfmService =
RetrofitWrapper.retrofit.create(SetlistfmService::class.java)
override suspend fun getSetlistData(u... | 0 | Kotlin | 0 | 0 | b0c9ee71928484ae8585ce12ed942142a62a5600 | 711 | ShowStats2 | MIT License |
src/desktopMain/kotlin/io/Http.kt | raychenon | 364,913,895 | false | null | @file:JvmName("HttpClientBuilder")
package io
import io.ktor.client.*
import io.ktor.client.engine.okhttp.*
import io.ktor.client.features.json.*
import okhttp3.OkHttpClient
actual fun buildHttpClient(): HttpClient {
val okHttpClient = OkHttpClient.Builder().build()
return HttpClient(OkHttp) {
install... | 0 | Kotlin | 0 | 0 | 4d8bb3c55a6f958bf3e499464fd2ec5b6a3d1c63 | 466 | httpie.kt | MIT License |
app/src/test/java/au/com/mealplanner/mealplanner/feature/main/WeeklyPlanActivityPresenterTest.kt | jess-leung | 123,775,089 | false | {"Kotlin": 35798} | package au.com.mealplanner.mealplanner.feature.main
import au.com.mealplanner.mealplanner.data.db.dao.PlannedMealDao.PlannedMealWithMeal
import au.com.mealplanner.mealplanner.data.db.repository.PlannedMealRepository
import au.com.mealplanner.mealplanner.data.model.DayOfWeek.MONDAY
import au.com.mealplanner.mealplanner... | 0 | Kotlin | 0 | 0 | 114eceb65b5efbed4e985b1f7c0d1d675fd16bc2 | 1,777 | meal-planner | Apache License 2.0 |
buildSrc/src/main/kotlin/Android.kt | atecaorg | 483,473,306 | false | null | @file:Suppress("SpellCheckingInspection")
/**
* Created by dronpascal on 26.04.2022.
*/
object Android {
const val appId = "com.ateca"
const val minSdk = 23
const val targetSdk = 31
const val compileSdk = 31
const val versionCode = 1
const val versionName = "0.0.1"
const val buildTools = ... | 1 | Kotlin | 0 | 3 | aca913f87263d6eac4a8925c74e6e801729ba6bf | 368 | Ateca | Apache License 2.0 |
app/src/main/java/com/example/androidweather/mvi/MviIntent.kt | KwunHeiChan | 328,347,388 | false | null | package com.example.androidweather.mvi
/**
* Immutable object which represent an view's intent.
*/
interface MviIntent | 0 | Kotlin | 1 | 0 | aaf1753e16aaa0bbf844323d317b752ca9582444 | 121 | android-weather | Apache License 2.0 |
android-nsd-flow/src/main/java/de/aroio/library/nsd/flow/discovery/DiscoveryListenerFlow.kt | aroio | 340,172,384 | false | null | package de.aroio.library.nsd.flow.discovery
import android.net.nsd.NsdManager
import android.net.nsd.NsdServiceInfo
import de.aroio.library.nsd.flow.DiscoveryStartFailed
import de.aroio.library.nsd.flow.DiscoveryStopFailed
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.ProducerS... | 1 | Kotlin | 0 | 2 | b66d32929f354fcb99b4ffb1f001b927bf265312 | 1,566 | android-nsd-flow | Apache License 2.0 |
src/main/kotlin/relativity/math/WorldLine.kt | AlexanderScherbatiy | 323,309,804 | false | null | package relativity.math
fun worldLineFromVelocity(
position: RelativityVector = ZeroRelativityVector,
velocity: SpaceVector = ZeroSpaceVector,
time: Double = 1.0,
): WorldLine {
val end = position + RelativityVector(time, time * velocity.x)
return WorldLine(start = position, end = end)
}
fun world... | 0 | Kotlin | 0 | 0 | ec9ced9d11bfc988755b496ec7234926dd83c249 | 1,396 | RelativityTheoryShapes | MIT License |
solar/src/main/java/com/chiksmedina/solar/bold/like/HeartLock.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.bold.like
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 3,332 | SolarIconSetAndroid | MIT License |
app/src/main/java/com/example/moviedb/di/RepositoryModule.kt | rootsavaris | 454,421,632 | false | null | package com.example.moviedb.di
import com.example.moviedb.data.ILocalDataSource
import com.example.moviedb.data.IRemoteDataSource
import com.example.moviedb.data.IRepository
import com.example.moviedb.data.Repository
import com.example.moviedb.domain.mapper.MovieMapper
import com.example.moviedb.framework.database.Loc... | 0 | Kotlin | 0 | 0 | 5689265eb121e084796d0321c2d5399ebe12daa7 | 1,086 | ListMoviesDB | Apache License 2.0 |
src/main/kotlin/Coroutines.kt | welly87 | 291,587,161 | false | null | package com.github.jasync.mysql.example
import com.github.jasync.sql.db.Configuration
import com.github.jasync.sql.db.Connection
import com.github.jasync.sql.db.QueryResult
import com.github.jasync.sql.db.general.ArrayRowData
import com.github.jasync.sql.db.pool.ConnectionPool
import com.github.jasync.sql.db.pool.Pool... | 0 | Kotlin | 0 | 0 | afcfc935f91e61fb1b492c92d77fcdcfadce9e41 | 1,865 | scifin-timescaledb | Apache License 2.0 |
tools/src/main/kotlin/pw/binom/material/PathResolver.kt | caffeine-mgn | 223,796,620 | false | null | package pw.binom.material
/**
* Material file provider
*/
interface PathResolver {
fun getFiles(packageName: String): Collection<FSElement>?
fun getFile(path: String): MaterialSource?
fun getPackage(path: String): MaterialPackage?
}
interface MaterialSource : FSElement {
fun getSource(): String
}
i... | 6 | Kotlin | 0 | 4 | e673acfcb20e2d62d8e68c43d395731bd9d9d882 | 402 | mogot | Apache License 2.0 |
app/src/main/java/com/journiapp/stampapplication/presentation/view/StampActivity.kt | sairam1592 | 782,791,391 | false | {"Kotlin": 42500} | package com.journiapp.stampapplication.presentation.view
import android.content.Intent
import android.os.Bundle
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget... | 0 | Kotlin | 0 | 1 | 9696eca982c191143b98909c878ec25248525b8c | 4,871 | journi-android-stamp-challenge | Apache License 2.0 |
CountryApp/src/main/java/com/slee/country/api/CountriesApi.kt | sunglee413 | 377,619,239 | false | null | package com.slee.country.api
import com.slee.country.data.Country
import io.reactivex.Single
import retrofit2.Response
import javax.inject.Inject
class CountriesApi @Inject constructor(private val countriesService: CountriesService) {
fun getAllCountries(): Single<Response<List<Country>>> = countriesService.getA... | 0 | Kotlin | 0 | 0 | 4ad4d49effe7044da76c1bbaa832a32f5e74634a | 328 | CountryInfo | Apache License 2.0 |
app/src/main/java/com/jun/chatgpt/ui/main/api/ApiKeyEditDialog.kt | Jun19 | 609,916,083 | false | null | package com.jun.chatgpt.ui.main.api
import android.content.Intent
import android.net.Uri
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundati... | 0 | Kotlin | 0 | 6 | 76690da48f2440cfa5ecb4e2b200e1cf6407683e | 3,099 | ChatGPT-App | MIT License |
src/jsMain/kotlin/com/fgrutsch/pf/components/PFCard.kt | fgrutsch | 697,150,309 | false | {"Kotlin": 58319, "HTML": 328} | package com.fgrutsch.pf.components
import androidx.compose.runtime.Composable
import com.fgrutsch.pf.PFClasses
import com.fgrutsch.pf.PFComponent
import com.fgrutsch.pf.pfc
import org.jetbrains.compose.web.dom.AttrBuilderContext
import org.jetbrains.compose.web.dom.ContentBuilder
import org.jetbrains.compose.web.dom.D... | 0 | Kotlin | 0 | 2 | f2584c807e362fb2c3faad74e623ced568738a87 | 824 | kotlin-compose-for-web | Apache License 2.0 |
sample/src/main/java/cn/nekocode/kotgo/sample/presentation/main/MeiziPresenter.kt | wangchang163 | 53,552,234 | true | {"Kotlin": 33572, "Python": 8369, "Java": 111} | package cn.nekocode.kotgo.sample.presentation.main
import cn.nekocode.kotgo.component.presentation.Presenter
import cn.nekocode.kotgo.component.util.LifecycleContainer
import cn.nekocode.kotgo.component.util.onUIInLifecycle
import cn.nekocode.kotgo.sample.data.dto.Meizi
import cn.nekocode.kotgo.sample.data.model.Meizi... | 0 | Kotlin | 0 | 0 | a562db11ed5e91af7300772fd6079d6813fe2cf8 | 691 | kotgo | Apache License 2.0 |
test/src/commonMain/kotlin/com/rouge41/kmm/compose/test/demos/LazyColumnDemo.kt | cl3m | 327,994,833 | false | null | package com.rouge41.kmm.compose.test.demos
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.lazy.items
import androidx.compose.material.Divider
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
inter... | 0 | Kotlin | 31 | 571 | 28336a846d0717d0464890d65552273410cd006a | 1,204 | multiplatform-compose | Apache License 2.0 |
app/src/main/java/com/sample/myapplication/api/ApiService.kt | Rajeshtechgeek | 297,889,548 | false | {"Kotlin": 44192} | package com.sample.myapplication.api
import com.sample.myapplication.BuildConfig
import com.sample.myapplication.api.country.CountryResponse
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import okhttp3.logging.HttpLoggingInterceptor.Level
import retrofit2.Retrofit
import retrofit2.converter... | 0 | Kotlin | 0 | 0 | 7973cba7223b22f1e68408f49ebf94f2ce0507ce | 1,614 | Country-listing-app | Apache License 2.0 |
services/service-user/src/main/kotlin/io/github/rafaeljpc/alura/kafka/ecommerce/service/user/User.kt | rafaeljpc | 337,831,493 | false | null | package io.github.rafaeljpc.alura.kafka.ecommerce.service.user
data class User(
val uuid: String,
val email: String,
)
| 0 | Kotlin | 0 | 0 | b68e2660fe4bec33dab396f505b8f1907eadb902 | 128 | alura-kafka | Apache License 2.0 |
app/src/main/java/com/gggames/hourglass/utils/rx/scheduler/SchedulerProvider.kt | giladgotman | 252,945,764 | false | null | package com.idagio.app.core.utils.rx.scheduler
import io.reactivex.Scheduler
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers
class SchedulerProvider
constructor() : BaseSchedulerProvider {
override fun computation(): Scheduler {
return Schedulers.computa... | 25 | Kotlin | 0 | 0 | 0f0fa11fbe1131387148e4d6d1b7d85c23d6e5f0 | 496 | celebs | MIT License |
src/main/kotlin/no/fdk/dataset/preview/model/Preview.kt | Informasjonsforvaltning | 426,257,371 | false | {"Kotlin": 46599, "Java": 743, "Dockerfile": 632} | package no.fdk.dataset.preview.model
data class Preview(val table: Table?, val plain: Plain?)
| 1 | Kotlin | 0 | 0 | ace34f688cba7f0ee42ee8e13dc46090777fb9c7 | 95 | fdk-dataset-preview-service | Apache License 2.0 |
app/src/main/java/com/chandrabhan/robutest/adapter/ProductAdapter.kt | Chandrabhanaher | 393,673,241 | false | null | package com.chandrabhan.robutest.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Filter
import android.widget.Filterable
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.wid... | 0 | Kotlin | 0 | 0 | 3f3715cd9823ac362b1dad7b6c52db5cc78a0554 | 1,986 | RobuTest | MIT License |
app/src/main/java/ru/shadowsparky/messenger/response_utils/Attachments.kt | shadowsparky | 148,388,054 | false | null | package ru.shadowsparky.messenger.response_utils
interface Attachments | 0 | Kotlin | 0 | 0 | c9c14e5226c692dbdcea559806263a4cea78b1ac | 71 | vk-messenger-two | The Unlicense |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.