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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
airbyte-cdk/java/airbyte-cdk/typing-deduping/src/main/kotlin/io/airbyte/integrations/base/destination/typing_deduping/V2TableMigrator.kt | tim-werner | 511,419,970 | false | {"Java Properties": 8, "Shell": 57, "Markdown": 1170, "Batchfile": 1, "Makefile": 3, "JavaScript": 31, "CSS": 9, "Python": 4183, "Kotlin": 845, "Java": 723, "INI": 10, "Dockerfile": 27, "HTML": 7, "SQL": 527, "PLpgSQL": 8, "TSQL": 1, "PLSQL": 2} | /*
* Copyright (c) 2023 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.integrations.base.destination.typing_deduping
/**
* Prefer [io.airbyte.integrations.base.destination.typing_deduping.migrators.Migration] instead.
*/
interface V2TableMigrator {
@Throws(Exception::class) fun migrateIfNecessary(st... | 1 | null | 1 | 1 | b2e7895ed3e1ca7c1600ae1c23578dd1024f20ff | 349 | airbyte | MIT License |
src/main/kotlin/com/github/tyrrx/vb6language/psi/tree/definition/variable/VB6VariableListElement.kt | bluehands | 511,430,044 | false | {"Java": 1027191, "Kotlin": 319653, "ANTLR": 31013} | package com.github.tyrrx.vb6language.psi.tree.definition.variable
import com.github.tyrrx.vb6language.psi.base.VB6SubscriptsOwner
import com.github.tyrrx.vb6language.psi.declarations.VB6VariableDeclaration
import com.github.tyrrx.vb6language.psi.inference.VB6TypeClauseOwner
import com.github.tyrrx.vb6language.psi.mixi... | 1 | null | 1 | 1 | 1a742a07d78681a5bd11787a38c72c68cddd7f77 | 1,304 | IntelliJ-VB6-language-support | MIT License |
app/src/main/java/com/pt/common/mutual/life/GlobalActivity.kt | OmAr-Kader | 674,357,483 | false | {"Kotlin": 2780433} | package com.pt.common.mutual.life
import com.pt.common.global.*
import com.pt.common.stable.alsoSus
import com.pt.common.stable.applySus
import com.pt.common.stable.launchImdMain
abstract class GlobalActivity : GlobalBaseActivity() {
internal var fasten: DSack<android.widget.FrameLayout, android.widget.FrameLayo... | 0 | Kotlin | 0 | 0 | fe57fe5a4029119ac287ab8d3d4b5ccfc05af3a0 | 3,632 | PT-All-Pro | Apache License 2.0 |
app/src/main/java/com/jutikorn/eddieplayer/song/structure/di/SongComponentImpl.kt | jutikorn | 144,380,852 | false | null | package com.jutikorn.eddieplayer.song.structure.di
import android.arch.lifecycle.LifecycleOwner
import android.arch.lifecycle.ViewModelProviders
import android.support.v4.app.Fragment
import com.jutikorn.eddieplayer.song.SongContract
import com.jutikorn.eddieplayer.song.structure.MusicPlayerImpl
import com.jutikorn.ed... | 0 | Kotlin | 0 | 0 | 122082e17817795792cfda957e7ce090b1daf03b | 1,195 | eddieplayer | MIT License |
solar/src/main/java/com/chiksmedina/solar/linear/messagesconversation/Pen.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.linear.messagesconversation
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.StrokeJo... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 2,894 | SolarIconSetAndroid | MIT License |
src/Day06.kt | olezhabobrov | 572,687,414 | false | {"Kotlin": 27363} | fun main() {
fun part1(input: String, windowSize: Int = 4): Int {
input.windowed(windowSize) { window ->
val set = mutableSetOf<Char>()
set.addAll(window.asSequence())
set.size
}.forEachIndexed {
index, value -> if (value == windowSize) return inde... | 0 | Kotlin | 0 | 0 | 31f2419230c42f72137c6cd2c9a627492313d8fb | 1,107 | AdventOfCode | Apache License 2.0 |
src/main/kotlin/algorithmic_toolbox/week2/FibonnaciWarmup.kt | eniltonangelim | 369,331,780 | false | null | package algorithmic_toolbox.week2
import java.util.*
fun calcFib(n: Long): Long {
return if (n <= 1) n else calcFib(n - 1) + calcFib(n - 2)
}
fun power(n: Long, x: Int = 2): Long {
if (x == 0)
return n
return power(n * n, x - 1)
}
fun lastDigitOfNumber(n: Long): Long {
var fibAList = LongA... | 0 | Kotlin | 0 | 0 | 031bccb323339bec05e8973af7832edc99426bc1 | 2,549 | AlgorithmicToolbox | MIT License |
src/main/kotlin/SharedSecret.kt | sander | 606,774,943 | false | null | package nl.sanderdijkhuis.noise
@JvmInline
value class SharedSecret(val data: Data) {
init {
require(data.size == SIZE)
}
val inputKeyMaterial get() = InputKeyMaterial(data)
companion object {
val SIZE = Size(32)
}
}
| 1 | Kotlin | 0 | 0 | 5b961e181eb30ae5807f160ed04c629d0ebc5916 | 258 | noise-kotlin | MIT License |
TimeTracker/app/src/main/java/github/informramiz/timetracker/domain/user/model/CreateUserDomainModel.kt | informramiz | 336,497,767 | false | null | package github.informramiz.timetracker.domain.user.model
import github.informramiz.timetracker.data.cloudfunctions.model.CreateUserApiModel
import github.informramiz.timetracker.domain.authentication.model.UserRole
import github.informramiz.timetracker.domain.authentication.model.toApiModel
data class CreateUserDomai... | 0 | Kotlin | 0 | 0 | 4a3ff709f0ce1e8526422cd0183cc263b2ee9139 | 578 | WorkLogTracker | MIT License |
android/app/src/main/kotlin/com/topappfield/torcher/MainActivity.kt | topappfield | 412,857,096 | false | {"Dart": 14300, "HTML": 3926, "Ruby": 1354, "Swift": 404, "Shell": 144, "Kotlin": 128, "Objective-C": 38} | package com.topappfield.torcher
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 10aed8eaf88aefb9c52d4b534a18a0ba6ddcc6f3 | 128 | torcher | MIT License |
src/main/kotlin/de/dqmme/andimaru/dataclass/TeleportNPCData.kt | DQMME | 434,850,146 | false | {"Kotlin": 250697} | package de.dqmme.andimaru.dataclass
import org.bukkit.Location
data class TeleportNPCData(
var displayName: String?,
var location: Location?,
var imitatePlayer: Boolean = true,
var lookAtPlayer: Boolean = true,
var teleportLocation: Location?,
var title: String?,
var skin: Skin
)
| 0 | Kotlin | 0 | 0 | 3d20097a52cf01c1fa115e369b520a577f634be9 | 311 | andimarucommunityserver | MIT License |
Chapter15/Activity15.01/app/src/main/java/com/example/tvguide/model/TVShow.kt | PacktPublishing | 575,781,987 | false | null | package com.example.tvguide.model
import androidx.room.Entity
import com.squareup.moshi.Json
@Entity(tableName = "tvshows", primaryKeys = [("id")])
data class TVShow(
@field:Json(name = "backdrop_path")
val backdropPath: String? = "",
@field:Json(name = "first_air_date")
val firstAirDate: String = ""... | 1 | Kotlin | 1 | 8 | 69028f4bc9fee3812072504bb1b9ec07c722db35 | 801 | How-to-Build-Android-Apps-with-Kotlin-Second-Edition | MIT License |
src/main/java/com/cumulocity/client/api/ChildOperationsApi.kt | SoftwareAG | 525,378,320 | false | null | // Copyright (c) 2014-2022 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
// Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Softwa... | 0 | Kotlin | 0 | 2 | ca48e21dc65698a38aedf39ea728f7d7d0372f14 | 36,076 | cumulocity-clients-kotlin | Apache License 2.0 |
src/main/kotlin/com/gnaderi/islandhopping/common/TileType.kt | gnaderi | 246,167,516 | false | null | package com.gnaderi.islandhopping.common
enum class TileType ( val id: Int, val type: String) {
LAND(1, "LAND"), WATER(2, "WATER");
}
| 0 | Kotlin | 0 | 0 | cb37a92e099ee648479f9896076f9f5a8d385b1e | 140 | IslandHopping | Apache License 2.0 |
app/src/main/java/com/example/hospitalfinder/activity/MainActivity.kt | aalshawa97 | 274,258,169 | false | null | package com.example.hospitalfinder.activity
import android.content.Intent
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.widget.AdapterView
import android.widget.ArrayAdapter
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.example.ho... | 0 | Kotlin | 0 | 0 | 8c2967cd9ccf9bb08a8553dbdcecb6eaf543b91f | 5,438 | HosiptalLocator | MIT License |
src/main/kotlin/net/radstevee/istats/ui/PlayerStatisticScreen.kt | iStats-mc | 838,904,398 | false | {"Kotlin": 19565, "Java": 4226} | package net.radstevee.istats.ui
import net.minecraft.client.MinecraftClient
import net.minecraft.client.gui.DrawContext
import net.minecraft.client.gui.screen.Screen
import net.minecraft.text.Text
import net.minecraft.util.Colors
import net.minecraft.util.Identifier
import net.radstevee.istats.Game
import net.radsteve... | 0 | Kotlin | 0 | 0 | 42780dcdbfe2576cd809f07e74210b138779a38d | 6,274 | iStats | Creative Commons Zero v1.0 Universal |
database/src/main/java/com/kafka/data/db/KafkaDatabase.kt | vipulyaara | 170,554,386 | false | null | package com.kafka.data.db
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.kafka.data.dao.FileDao
import com.kafka.data.dao.FollowedItemDao
import com.kafka.data.dao.ItemDao
import com.kafka.data.dao.ItemDetailDao
import com.kafka.data.dao.LanguageDao
impor... | 0 | Kotlin | 4 | 26 | 41e41fae10351ff316fedd2bcde2e10152cc9a65 | 1,473 | Kafka | Apache License 2.0 |
app/src/main/java/app/android/issue5101/Util.kt | dconeybe | 809,895,500 | false | {"Kotlin": 12098, "TypeScript": 8095, "JavaScript": 888} | /*
* Copyright 2024 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 to i... | 0 | Kotlin | 0 | 0 | 1b4f71fa90516251d47dd4ffc90b94429ee686a4 | 2,346 | android-issue-5101 | Apache License 2.0 |
spesialist-selve/src/main/kotlin/no/nav/helse/mediator/Utils.kt | navikt | 244,907,980 | false | {"Kotlin": 2893512, "PLpgSQL": 29687, "HTML": 1741, "Dockerfile": 265} | package no.nav.helse.mediator
import com.fasterxml.jackson.databind.JsonNode
import java.util.UUID
internal fun JsonNode.asUUID() = UUID.fromString(asText())
| 0 | Kotlin | 4 | 0 | 10a6f89a36a591c084ca41edad9e8fb1ed4324f7 | 160 | helse-spesialist | MIT License |
app/src/main/java/com/jakeparker/coccocdemo/MainViewModelFactory.kt | LongJakeparker | 326,251,343 | false | null | package com.jakeparker.coccocdemo
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.jakeparker.coccocdemo.repository.NewsRepository
import javax.inject.Inject
/**
* @author <NAME>
* @since 02/01/2021
*/
class MainViewModelFactory @Inject constructor(
private val newsRep... | 0 | Kotlin | 0 | 0 | 87c71e02c38b62ac0c19411eb639e3e1357acf7c | 547 | CocCocDemo | MIT License |
eva-examples/src/main/kotlin/com/razz/eva/examples/wallet/WalletPaging.kt | razz-team | 477,827,497 | false | {"Kotlin": 607724, "PLpgSQL": 6537, "Dockerfile": 178} | package com.razz.eva.examples.wallet
import com.razz.eva.examples.schema.db.Tables.WALLET
import com.razz.eva.examples.schema.db.tables.records.WalletRecord
import com.razz.eva.paging.Offset
import com.razz.eva.repository.ModelPagingStrategy
import java.time.Instant
import java.util.*
object WalletPaging : ModelPagin... | 6 | Kotlin | 0 | 49 | 38bb888f963894a6ce636bc98c6ea92182e53775 | 692 | eva | Apache License 2.0 |
src/main/java/com/beautifulapp/basis_adk/helper/database/DataBase.kt | James97231 | 307,127,165 | false | null | package com.beautifulapp.basis_adk.helper.database
import com.beautifulapp.basis_adk.helper.pattern.CustomDataClass
import java.io.File
import java.io.InputStream
/**
* Interface minimaliste pour decrivant les methodes d'une base de données
*/
interface DataBase {
fun getItem(className: String, objectId: Strin... | 0 | Kotlin | 0 | 0 | 257bab28867a33585440e77812ff741819547904 | 1,835 | basic-adk | Apache License 2.0 |
src/main/kotlin/moe/sdl/tracks/util/Log.kt | Colerar | 454,784,355 | false | null | package moe.sdl.tracks.util
import org.fusesource.jansi.Ansi
import org.fusesource.jansi.Ansi.ansi
object Log {
fun debug(throwable: Throwable? = null, lazyMessage: () -> String) {
if (moe.sdl.tracks.config.debug) {
println("[DEBUG]" + lazyMessage())
throwable?.let { println(it) }
... | 1 | Kotlin | 0 | 12 | 5e3cea5d0ded8911dde91676c0f56f6dc9306db0 | 432 | Tracks | MIT License |
functions/types/infix.kt | ViniciusMaiaM | 567,769,368 | false | {"Kotlin": 29518} | // Função que podem ser convertida através de funções membros ou extensões com um único parâmetro
fun main(){
infix fun Int.times(str: String) = str.repeat(this) //Pega a string de parametro e repete o número de vezes
println(2 times "Bye ")
val pair = "Ferrari" to "Katrina" //Dessa maneira cria um par de... | 0 | Kotlin | 0 | 0 | 8b531dbcb5099350e1137707c32124fbcb33b37a | 889 | Kotlin-experience | MIT License |
Android/app/src/main/java/dark/andapp/dfinnb/presentaion/adapters/NamedAdapter.kt | ShadowOfFallenLord | 622,295,925 | false | null | package dark.andapp.dfinnb.presentaion.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import dark.andapp.dfinnb.databinding.RecyclerViewNamedListItemBinding
import dark.andapp.dfinnb.domain.entity.NamedEntity
class NamedAdapter(
private v... | 0 | Kotlin | 0 | 0 | a40bb92612b99f5c27f4eeae6e579bd15767ecff | 1,135 | DFinancialNotebook | MIT License |
app/src/main/java/com/example/borutoapp/ui/theme/Dimens.kt | gemaxd | 464,274,084 | false | {"Kotlin": 104271} | package com.example.borutoapp.ui.theme
import androidx.compose.ui.unit.dp
val EXTRA_LARGE_PADDING = 40.dp
val LARGE_PADDING = 20.dp
val MEDIUM_PADDING = 16.dp
val SMALL_PADDING = 10.dp
val EXTRA_SMALL_PADDING = 6.dp
val TOP_APP_ABR_HEIGHT = 56.dp
val PAGING_INDICATOR_WIDTH = 12.dp
val PAGING_INDICATOR_SPACING = 8.d... | 0 | Kotlin | 0 | 1 | d7daa4e41d583cdc1b075ee80511f320f05c4998 | 595 | borutoApp | MIT License |
src/main/kotlin/icu/windea/pls/core/listeners/ParadoxUpdateLibraryOnProjectOpenedListener.kt | DragonKnightOfBreeze | 328,104,626 | false | null | package icu.windea.pls.core.listeners
import com.intellij.openapi.project.*
import com.intellij.openapi.startup.*
import icu.windea.pls.*
/**
* 项目启动时刷新库信息。
*/
class ParadoxUpdateLibraryOnProjectOpenedListener: StartupActivity {
override fun runActivity(project: Project) {
val paradoxLibrary = project.pa... | 2 | Kotlin | 2 | 14 | a3816071d500f8cf993240885895966be67ef5c8 | 379 | Paradox-Language-Support | MIT License |
order/src/main/kotlin/cz/zubal/spring/multimodule/order/RepositoryOrderService.kt | mzubal | 123,785,587 | false | null | package cz.zubal.spring.multimodule.order
import cz.zubal.spring.multimodule.customer.api.CustomerService
import cz.zubal.spring.multimodule.item.api.ItemService
import cz.zubal.spring.multimodule.order.api.Order
import cz.zubal.spring.multimodule.order.api.OrderService
import org.modelmapper.ModelMapper
import org.sp... | 0 | Kotlin | 3 | 26 | 083e6953c7baf5d82c75e3dc2ec555cbf984efcc | 1,557 | spring-gradle-kotlin-multimodule | MIT License |
app/src/main/java/com/breezefsmp12/features/reimbursement/model/ReimbursementConfigFetchResponseModel.kt | DebashisINT | 652,463,111 | false | {"Kotlin": 14144630, "Java": 1003051} | package com.breezefsmp12.features.reimbursement.model
import com.breezefsmp12.base.BaseResponse
/**
* Created by Saikat on 24-01-2019.
*/
class ReimbursementConfigFetchResponseModel : BaseResponse() {
var maximum_allowance: String? = null
var distance: String? = null
var rate: String? = null
} | 0 | Kotlin | 0 | 0 | 4670dd69aff7fea867f314682a5f6b5786f9aeee | 310 | StepUpP12 | Apache License 2.0 |
src/main/kotlin/collections/list.kt | prasad-psp | 586,469,600 | false | null | package collections
fun main() {
val monthList = listOf("Jan","Feb","March")
val anyTypeList = listOf(1,2,3,true,"Raj")
// println(anyTypeList.size) // Get size of list
// println(monthList[2]) // Get particular element
// for(month in monthList) {
// println(month)
// }
/**
* M... | 0 | Kotlin | 0 | 0 | 9658a221cf4a49629dca6ca18896597f789f1cec | 911 | Kotlin-Tutorials | MIT License |
app/src/main/java/com/f1reking/gank/module/main/girl/GirlFragment.kt | DB-BOY | 135,396,402 | true | {"Kotlin": 136506, "Java": 19953} | /*
* Copyright (c) 2018 F1ReKing
*
* 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 agr... | 0 | Kotlin | 0 | 0 | 7d3ef9ebec052e135052b2102b51a3cbb2fe26cc | 2,766 | Mr.Gank | Apache License 2.0 |
app/src/main/java/com/example/kotlinpaging3/di/NetworkSetup.kt | Ak5hay01 | 596,383,138 | false | null | package com.example.kotlinpaging3.di
import com.example.kotlinpaging3.retrofit.QuoteAPI
import com.example.kotlinpaging3.utils.Constants.BASE_URL
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import retrofit2.converte... | 0 | Kotlin | 0 | 0 | b02a7d8c7b909f68a0234791951dc7120db54500 | 788 | Kotlin-Paging3-with-Remote-Mediator | MIT License |
drm-backend/src/main/kotlin/controller/ChainController.kt | Smileslime47 | 738,883,139 | false | {"Kotlin": 59316, "Vue": 26085, "Java": 16984, "TypeScript": 10268, "Solidity": 2406, "CSS": 1156, "Shell": 649, "HTML": 390} | package moe._47saikyo.controller
import io.ktor.server.application.*
import io.ktor.server.auth.*
import io.ktor.server.auth.jwt.*
import io.ktor.server.request.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import moe._47saikyo.configuration.security.authenticateAfterLogin
import moe._47saikyo.con... | 0 | Kotlin | 0 | 1 | e8a55a8c70317c1a03641fb9d0f984d67944ca9c | 6,238 | Digital-Rights-Management | MIT License |
technocracy.optics/src/main/kotlin/net/cydhra/technocracy/optics/api/tileentities/components/LaserEmitterTileEntityComponent.kt | tth05 | 198,904,996 | true | {"Kotlin": 1367573, "GLSL": 13066} | package net.cydhra.technocracy.optics.api.tileentities.components
import net.cydhra.technocracy.foundation.api.ecs.ComponentType
import net.cydhra.technocracy.foundation.content.tileentities.components.AbstractTileEntityCapabilityComponent
import net.cydhra.technocracy.foundation.util.compound
import net.cydhra.techno... | 0 | Kotlin | 0 | 1 | 057d12813fbcb73a11b202caae0631020b2fa303 | 2,600 | Technocracy | MIT License |
src/main/kotlin/com/elements/jvmbykotlin/classfile/entity/attribute/RuntimeVisibleAnnotationsAttribute.kt | QinGeneral | 461,483,156 | false | null | package com.elements.jvmbykotlin.classfile.entity.attribute
import com.elements.jvmbykotlin.classfile.ClassReader
import com.elements.jvmbykotlin.classfile.entity.AttributeInfo
class RuntimeVisibleAnnotationsAttribute(
override val nameIndex: UShort,
override val length: UInt,
classReader: ClassReader,
) ... | 0 | Kotlin | 0 | 14 | 856324357c16dee08b1f495d28fcf748bf70f2fe | 1,409 | jvm.kotlin | MIT License |
src/main/kotlin/com/elements/jvmbykotlin/classfile/entity/attribute/RuntimeVisibleAnnotationsAttribute.kt | QinGeneral | 461,483,156 | false | null | package com.elements.jvmbykotlin.classfile.entity.attribute
import com.elements.jvmbykotlin.classfile.ClassReader
import com.elements.jvmbykotlin.classfile.entity.AttributeInfo
class RuntimeVisibleAnnotationsAttribute(
override val nameIndex: UShort,
override val length: UInt,
classReader: ClassReader,
) ... | 0 | Kotlin | 0 | 14 | 856324357c16dee08b1f495d28fcf748bf70f2fe | 1,409 | jvm.kotlin | MIT License |
app/src/main/java/io/horizontalsystems/bankwallet/modules/swap/liquidity/list/LiquidityListViewModel.kt | SAFE-anwang | 438,491,711 | true | {"Java": 40900402, "C++": 39908445, "C": 28652842, "Kotlin": 6021221, "Assembly": 2284555, "Perl": 2029915, "Go": 1684952, "CMake": 209997, "NASL": 144869, "Objective-C++": 137819, "Python": 83928, "Objective-C": 60293, "Shell": 19944, "Raku": 9275, "AIDL": 8443, "Roff": 2711, "MATLAB": 2068, "Starlark": 1886, "Dockerf... | package io.horizontalsystems.bankwallet.modules.swap.liquidity.list
import android.util.Log
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.google.gso... | 0 | Java | 3 | 3 | a6fb06ea11a0cb366dcf093dcbeb053e628877a9 | 22,748 | SafeWallet-android | MIT License |
appointment/src/main/kotlin/com/itavgur/omul/appointment/exception/DatabaseConstraintException.kt | itAvgur | 211,451,348 | false | {"Kotlin": 297016, "Smarty": 4598, "Dockerfile": 1120} | package com.itavgur.omul.appointment.exception
import org.springframework.http.HttpStatus
class DatabaseConstraintException(override val message: String?, val httpCode: HttpStatus? = null) :
RuntimeException(message) | 0 | Kotlin | 1 | 0 | ecdad770074ca157d8041a4d97399aeea7604d2b | 222 | omul | The Unlicense |
cloud/src/main/kotlin/xyz/luccboy/noobcloud/console/commands/HelpCommand.kt | NoobCloudSystems | 518,232,292 | false | {"Kotlin": 155606, "Shell": 69, "Batchfile": 45} | package xyz.luccboy.noobcloud.console.commands
import org.jline.builtins.Completers.TreeCompleter.Node
import org.jline.builtins.Completers.TreeCompleter.node
import xyz.luccboy.noobcloud.NoobCloud
import xyz.luccboy.noobcloud.console.Command
class HelpCommand : Command {
override val name: String = "help"
ov... | 1 | Kotlin | 2 | 3 | 0ecea76f391fa60bec8d7e924af45922543093c3 | 789 | NoobCloud | Apache License 2.0 |
stickHeader/src/main/java/com/fxf/stickheader/ExtendKt.kt | fxfSean | 299,338,702 | false | null | package com.fxf.stickheader
import android.content.res.Resources
import android.util.TypedValue
val Int.dp: Int
get() = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,this.toFloat(),Resources.getSystem().displayMetrics).toInt()
val Float.dp: Float
get() = TypedValue.applyDimension(TypedValue.COMPLEX... | 0 | Kotlin | 0 | 0 | 59738fba09d60cf54b6dd6b9a5b9053db3b29f7f | 392 | StickHeaderView | Apache License 2.0 |
app/src/main/java/com/example/foodapplication/utils/Extensions.kt | rezakardan | 719,028,366 | false | {"Kotlin": 60562} | package com.example.foodapplication.utils
import android.content.Context
import android.net.ConnectivityManager
import android.view.View
import com.google.android.material.snackbar.Snackbar
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
import io.reactivex.rxjava3.core.Scheduler
import io.reactivex.r... | 0 | Kotlin | 0 | 0 | 21934aeb61cc85b5e3bfe3a30e26d74023ac649d | 968 | foodApp_Git | MIT License |
app/src/main/java/com/udacity/asteroidradar/data/api/AsteroidApiService.kt | ihermandev | 434,214,366 | false | {"Kotlin": 30954} | package com.udacity.asteroidradar.data.api
import com.udacity.asteroidradar.Constants.FEED_URL
import com.udacity.asteroidradar.Constants.IMAGE_OF_DAY_URL
import com.udacity.asteroidradar.Constants.nasaApiKey
import retrofit2.http.GET
import retrofit2.http.Query
interface AsteroidApiService {
@GET(FEED_URL)
... | 0 | Kotlin | 0 | 0 | a0f2f152bbe8c565b4259847847f33ae8f81a878 | 651 | AsteroidRadarUdemy | NASA Open Source Agreement 1.3 |
providers/aws/src/main/kotlin/cloudspec/aws/ec2/EC2NetworkAclLoader.kt | efoncubierta | 259,448,965 | false | null | /*-
* #%L
* CloudSpec AWS Provider
* %%
* Copyright (C) 2020 <NAME>
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | 3 | Kotlin | 2 | 26 | edabff96392cdb1f0d55b3a9c57ae5c433c7be69 | 1,853 | cloudspec | Apache License 2.0 |
aaper/src/test/java/com/likethesalad/android/aaper/defaults/launchers/FragmentRequestLauncherTest.kt | LikeTheSalad | 289,293,129 | false | null | package com.likethesalad.android.aaper.defaults.launchers
import androidx.fragment.app.Fragment
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockitokotlin2.anyArray
import com.nhaarman.mockitokotlin2.doNothing
import com.nhaarman.mockitokotlin2.verify
import com.nhaarman.mockitokotlin2.whenever
import or... | 0 | Kotlin | 7 | 143 | a206b9355b68080af99e16cbe939e4558d763b37 | 1,360 | aaper | MIT License |
cryptocurrencychallenge/src/main/java/com/yoti/android/cryptocurrencychallenge/presentation/common/Texts.kt | davidleiti | 501,532,688 | false | null | package com.yoti.android.cryptocurrencychallenge.presentation.common
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
fun Header5(modifier: Modifier = Modifier, text: String) {
Text(modif... | 0 | Kotlin | 0 | 0 | ef65d9983e53ba1f34fbb9448a8c996739debb9f | 710 | CryptoCurrencyApp | MIT License |
src/main/kotlin/troy/commands/funstuff/Burn.kt | daksh7011 | 440,123,158 | false | {"Kotlin": 99491, "Groovy": 26750, "Dockerfile": 251} | package troy.commands.funstuff
import dev.kord.core.Kord
import dev.kordex.core.commands.Arguments
import dev.kordex.core.commands.converters.impl.user
import dev.kordex.core.extensions.Extension
import dev.kordex.core.extensions.publicSlashCommand
import org.koin.core.component.inject
import troy.utils.DataProvider
i... | 2 | Kotlin | 1 | 0 | b5d22473b98d866dba39a4c03988cd91d69d1192 | 2,129 | troy | MIT License |
src/main/kotlin/Deck.kt | ArmandAgopian | 92,569,260 | false | {"Kotlin": 560} | /**
* Created by Armand on 5/28/17.
*/
class Deck {
val cards: Array<Card> = Array(52,
fun (i: Int): Card {
return Card(i % 13, getSuit(i))
}
)
private fun getSuit(i: Int): String = when(i / 13){
0 -> "Clubs"
1 -> "Diamonds"
2 -... | 0 | Kotlin | 0 | 0 | 1deeb6a1b174772044514225ace76977d2f6565d | 369 | Solitaire | MIT License |
src/test/kotlin/org/liquibase/kotlin/CustomRefactoringTests.kt | redundent | 100,302,975 | true | {"Kotlin": 286601, "Groovy": 878} | /*
* Copyright 2011-2017 Tim Berglund and Steven C. Saliman
* Kotlin conversion done by Jason Blackwell
*
* 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.o... | 0 | Kotlin | 2 | 9 | eea7769d146a6c886e54bacd510b1d2664ccddd3 | 15,120 | liquibase-kotlin-dsl | Apache License 2.0 |
src/main/kotlin/no/nav/pale/client/PdfClient.kt | purebase | 153,675,583 | false | null | package no.nav.pale.client
import net.logstash.logback.argument.StructuredArguments
import no.nav.pale.objectMapper
import okhttp3.MediaType
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.RequestBody
import java.io.IOException
class PdfClient(private val baseUrl: String) {
private val client: O... | 0 | Kotlin | 0 | 0 | 8168e978017701b6016ee7d985036c6b94325d35 | 1,392 | pale | MIT License |
protocol-client-nft-order/src/main/kotlin/com/rarible/protocol/nftorder/api/client/SwarmNftOrderApiServiceUriProvider.kt | rarible | 426,537,098 | false | null | package com.rarible.protocol.nftorder.api.client
import java.net.URI
class SwarmNftOrderApiServiceUriProvider(
private val environment: String
) : NftOrderApiServiceUriProvider {
override fun getUri(blockchain: String): URI {
return URI.create(String.format("http://%s-%s-nft-order-api:8080", environm... | 1 | Kotlin | 1 | 7 | 6911989d1b62431f2eec0a7a37210ec5f69f4902 | 345 | ethereum-openapi | MIT License |
app/src/main/java/com/example/dispositivos_moviles_proyecto_gc_es1/logic/entities/marvel/Stories.kt | GeoWillC | 643,371,344 | false | null | package com.example.dispositivos_moviles_proyecto_gc_es1.logic.entities.marvel
data class Stories(
val available: Int,
val collectionURI: String,
val items: List<ItemXXX>,
val returned: Int
) | 0 | Kotlin | 0 | 0 | 4ae1861c997559b35105e00ecd14ac81eaa00dfa | 208 | Dispositivos_moviles_proyecto_gc_es | MIT License |
src/main/kotlin/io/layercraft/packetlib/packets/v1_19_2/play/clientbound/CollectPacket.kt | Layercraft | 531,857,310 | false | null | package io.layercraft.packetlib.packets.v1_19_2.play.clientbound
import io.layercraft.packetlib.packets.*
import io.layercraft.packetlib.serialization.MinecraftProtocolDeserializeInterface
import io.layercraft.packetlib.serialization.MinecraftProtocolSerializeInterface
/**
* Pickup Item | 0x65 | play | clientbound
... | 0 | Kotlin | 1 | 4 | 3491d690689369264101853861e1d5a572cde24f | 1,559 | PacketLib | MIT License |
app/src/main/java/com/fanstaticapps/randomticker/extensions/ActivityExtensions.kt | carvaq | 300,246,718 | false | null | package com.fanstaticapps.randomticker.extensions
import android.app.Activity
import android.app.KeyguardManager
import android.view.LayoutInflater
import android.view.WindowManager
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.viewbinding.ViewBinding
inlin... | 0 | Kotlin | 0 | 1 | 7882c81a7e5663e0ab63f968d0db0ccc616b62ba | 1,334 | random-ticker | Apache License 2.0 |
android/NewsAN/app/src/main/java/com/djupbyte/newsan/pdf/sharePdf.kt | iampranabray | 678,745,966 | false | {"Kotlin": 75257, "Swift": 73995, "HTML": 3414, "Ruby": 371} | package com.djupbyte.newsan.pdf
import android.content.Context
import android.content.Intent
import android.net.Uri
fun sharePdf(context: Context, uri: Uri) {
val shareIntent = Intent().apply {
action = Intent.ACTION_SEND
type = "application/pdf"
putExtra(Intent.EXTRA_STREAM, uri)
}
... | 0 | Kotlin | 0 | 4 | 7ade1a6a379d25cafec06f4f9ad29ea0fe29eb71 | 394 | NewsAN | MIT License |
src/ClasesObjetos/Song.kt | DavidMerchan93 | 877,439,790 | false | {"Kotlin": 8685} | package ClasesObjetos
class Song(
private val title: String,
private val artist: String
) {
private val artistUpper = artist.uppercase()
private var duration: Int = 0
constructor(
title: String,
artist: String,
duration: Int
) : this(title, artist) {
this.durat... | 0 | Kotlin | 0 | 0 | b1be223fb92f2ed9ad486ac915b98a645d16b75e | 552 | SolidPOO | MIT License |
app/src/test/java/com/example/chessgame/CanKnightMoveUnitTest.kt | Souviksamanta34 | 583,057,229 | false | {"Kotlin": 39466, "Java": 35438} | package com.example.chessgame
import org.junit.Test
import org.junit.Assert.*
class CanKnightMoveUnitTest {
@Test
fun canKnightMove_singlePiece(){
ChessGame2.ChessGame.clear()
ChessGame2.ChessGame.addPiece(ChessPiece(3,3, ChessPlayer.WHITE, Chessman.KNIGHT, -1))
println(ChessGame2.Che... | 0 | Kotlin | 0 | 1 | 1bfb89dafe7d907b9086e2dfd3dfb0bb5fdf930d | 497 | Chess | MIT License |
app/src/main/java/io/horizontalsystems/bankwallet/core/factories/AdapterFactory.kt | zhengweisk | 198,141,030 | true | {"Kotlin": 857264, "Ruby": 4839} | package io.horizontalsystems.bankwallet.core.factories
import android.content.Context
import io.horizontalsystems.bankwallet.core.*
import io.horizontalsystems.bankwallet.core.utils.AddressParser
import io.horizontalsystems.bankwallet.entities.CoinType
class AdapterFactory(
private val context: Context,
... | 0 | Kotlin | 0 | 0 | 64dc8d4e9a00c0fecf8dd612f56480f85e236077 | 1,602 | unstoppable-wallet-android | MIT License |
app/src/main/java/com/pt/pro/gallery/fasten/PictureBrowserFasten.kt | OmAr-Kader | 674,357,483 | false | {"Kotlin": 2780433} | package com.pt.pro.gallery.fasten
data class PictureBrowserFasten(
val root_: com.sothree.slidinguppanel.SlidingUpPanelLayout,
val emptyFrame: android.widget.FrameLayout,
val imagePager: androidx.viewpager2.widget.ViewPager2,
val head: android.widget.FrameLayout,
val headInner: androidx.constraintl... | 0 | Kotlin | 0 | 0 | fe57fe5a4029119ac287ab8d3d4b5ccfc05af3a0 | 1,503 | PT-All-Pro | Apache License 2.0 |
fluentui_notification/src/main/java/com/microsoft/fluentui/tokenized/notification/Banner.kt | microsoft | 257,221,908 | false | {"Kotlin": 3021107, "Shell": 8996} | package com.microsoft.fluentui.tokenized.notification
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.f... | 25 | Kotlin | 103 | 574 | 851a4989a4fce5db50a1818aa4121538c1fb4ad9 | 8,322 | fluentui-android | MIT License |
app/src/main/java/com/alienspace/moviedb/movielist/domain/repo/MovieListRepo.kt | santhosh-anbazhagan | 818,302,254 | false | {"Kotlin": 50205} | package com.alienspace.moviedb.movielist.domain.repo
import com.alienspace.moviedb.movielist.domain.model.Movie
import com.alienspace.moviedb.movielist.utils.Resource
import kotlinx.coroutines.flow.Flow
interface MovieListRepo {
suspend fun getMovieList(
page:Int,
category:String,
forceFe... | 0 | Kotlin | 0 | 0 | 370e3703ccc720339a8d01acb5f8edb13ba6c6bc | 432 | MovieDB | MIT License |
presentation/src/commonMain/kotlin/ireader/presentation/ui/core/theme/AppColors.kt | kazemcodes | 540,829,865 | true | {"Kotlin": 2179459} | package ireader.presentation.ui.core.theme
import androidx.compose.material3.ColorScheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Shapes
import androidx.compose.material3.Typography
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvi... | 0 | Kotlin | 0 | 6 | b6b2414fa002cec2aa0d199871fcfb4c2e190a8f | 2,677 | IReader | Apache License 2.0 |
app/src/main/java/com/lolo/io/onelist/widget/SimpleListWidget.kt | newhinton | 234,555,103 | true | {"Kotlin": 89806} | package com.lolo.io.onelist.widget
import android.app.Activity
import android.app.PendingIntent
import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.util.Log
import android.w... | 0 | Kotlin | 0 | 1 | 401384430b0b64537347f7704d8f24aeacf8b795 | 6,204 | OneList | MIT License |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/ToolsKitchen.kt | walter-juan | 868,046,028 | false | {"Kotlin": 20416825} | package com.woowla.compose.icon.collections.tabler.tabler.outline
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.vector.ImageVector
import androidx.compose.ui.graphics.vector... | 0 | Kotlin | 0 | 1 | b037895588c2f62d069c724abe624b67c0889bf9 | 3,421 | compose-icon-collections | MIT License |
src/view/dialogs/BluetoothConnectionModal.kt | Penguin-Dream-Team | 312,890,456 | false | {"Kotlin": 84543} | package view.dialogs
import controllers.Store
import javafx.geometry.Pos
import javafx.scene.image.Image
import javafx.scene.paint.Color
import javafx.scene.text.FontWeight
import tornadofx.*
import utils.generateQrCode
class BluetoothConnectionModal() : View("PenguBank | Connect to this Bluetooth Server") {
priv... | 0 | Kotlin | 0 | 0 | 79d85a99ca99529116e8ca5e7f20571b8b6b3f43 | 1,842 | PenguBank-Desktop | MIT License |
grundlagen-tag-19-packages-und-library-functions-just1984/Aufgabe4/src/4_SeitenlaengeEinesQuadrats.kt | just1984 | 639,436,580 | false | null | import kotlin.math.sqrt
fun main() {
seitenLaenge()
}
fun seitenLaenge() {
println("Bitte gebe die Fläche eines Quadrats ein (Double).")
val flaeche = readln().toDouble()
val seitenlaenge = sqrt(flaeche)
println("Die Seitenlaenge ist: $seitenlaenge")
}
| 0 | Kotlin | 0 | 0 | 3b6a84bb526f2c2151fe761526bdb1253f343df1 | 271 | school_progress_kotlin | MIT License |
feature/currency-picker/src/main/kotlin/com/kevlina/budgetplus/feature/currency/picker/CurrencyUiState.kt | kevinguitar | 517,537,183 | false | {"Kotlin": 686482} | package com.kevlina.budgetplus.feature.currency.picker
import androidx.compose.runtime.Immutable
@Immutable
data class CurrencyUiState(
val name: String,
val currencyCode: String,
val symbol: String,
val isSelected: Boolean,
) | 2 | Kotlin | 0 | 9 | 9c964e063efdf797f84f58fcc3e8b17da75f8309 | 244 | budgetplus-android | MIT License |
app/src/main/java/com/ricardaparicio/cryptodemo/features/common/domain/model/FiatCurrency.kt | RicardAparicio | 455,742,209 | false | {"Kotlin": 137761} | /*
* Copyright 2022 Ricard Aparicio
* 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 ... | 1 | Kotlin | 1 | 2 | d1613dd61f299221f71f0607e65fdb54ff89b6bc | 706 | CryptoDemo | Apache License 2.0 |
app/src/main/java/com/alyndroid/decadeofmovies/domain/usecase/GetMovieImagesUseCaseImpl.kt | Alinasser96 | 348,125,632 | false | null | package com.alyndroid.decadeofmovies.domain.usecase
import com.alyndroid.decadeofmovies.domain.model.ImageWrapperResponse
import com.alyndroid.decadeofmovies.domain.repositories.DetailsRepository
import javax.inject.Inject
class GetMovieImagesUseCaseImpl
@Inject constructor(private val detailsRepository: DetailsRepos... | 0 | Kotlin | 1 | 1 | 8d2a7477f199840e8d880c1d682ae1d0d3bba585 | 472 | DecadeOfMovies | The Unlicense |
app/src/main/java/com/xin/lovewallpaper/presenter/MainPresenter.kt | coolxinxin | 277,076,332 | false | null | /*
* Copyright 2020 Leo
* 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 writin... | 0 | Kotlin | 0 | 0 | 37baeb64c49bf2d9a5f7e0ab0103a505cb843def | 1,937 | LoveWallpaper | Apache License 2.0 |
src/main/kotlin/io/ipfs/kotlin/http4k/Http4kClientCommands.kt | GustaveNimant | 240,869,379 | false | null | package io.ipfs.kotlin.http4k
import kotlin.system.exitProcess
import io.ipfs.kotlin.defaults.*
import io.ipfs.kotlin.url.*
import io.ipfs.kotlin.*
import java.io.File
import java.util.Stack
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
import java.time.format.FormatStyle
import org.http4k... | 0 | Kotlin | 0 | 0 | beb37a6dd94e342d589047b89144467ff1e59a62 | 7,205 | irp-kotlin-minichain | MIT License |
ethereumkit/src/main/java/org/p2p/ethereumkit/internal/spv/net/handlers/BlockHeadersTaskHandler.kt | p2p-org | 306,035,988 | false | null | package org.p2p.ethereumkit.internal.spv.net.handlers
import org.p2p.ethereumkit.internal.spv.core.*
import org.p2p.core.wrapper.eth.helpers.RandomHelper
import org.p2p.ethereumkit.internal.spv.models.BlockHeader
import org.p2p.ethereumkit.internal.spv.net.IInMessage
import org.p2p.ethereumkit.internal.spv.net.les.mes... | 8 | Kotlin | 16 | 28 | 71b282491cdafd26be1ffc412a971daaa9c06c61 | 1,649 | key-app-android | MIT License |
src/commonTest/kotlin/dev/evo/kafka/connect/restclient/ClientTests.kt | anti-social | 166,968,756 | false | null | package dev.evo.kafka.connect.restclient
import io.ktor.client.engine.mock.MockEngine
import io.ktor.client.engine.mock.respond
import io.ktor.client.engine.mock.respondError
import io.ktor.http.ContentType
import io.ktor.http.HttpHeaders
import io.ktor.http.HttpMethod
import io.ktor.http.HttpStatusCode
import io.ktor... | 0 | Kotlin | 0 | 0 | 1e4378cc76491d5a82a70222a2464c38955c2410 | 5,314 | kafka-connect-rest-client | Apache License 2.0 |
src/main/kotlin/com/petukhovsky/snake/util/Direction.kt | arthur-snake | 114,157,008 | false | null | package com.petukhovsky.snake.util
enum class Direction(val num: Int, val x: Int, val y: Int) {
LEFT(0, 0, -1),
UP(1, -1, 0),
RIGHT(2, 0, 1),
DOWN(3, 1, 0);
fun opposite() = Direction.values()[num xor 2]
}
fun getDirectionFromInt(i: Int) =
when (i) {
in 0..3 -> Direction.value... | 4 | Kotlin | 0 | 3 | e24da15441f6b6c673d1f1128ced494f4ed3d313 | 405 | server | MIT License |
app/src/main/java/cn/wearbbs/note/ui/activity/compose/MenuIconButton.kt | JackuXL | 524,618,208 | false | null | package cn.wearbbs.note.ui.activity.compose
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.Icon
import androidx.compose.material.Text
import andr... | 0 | Kotlin | 0 | 7 | 29fdf57d7cc57a08cdbb5fc4293aa339f9807912 | 1,275 | WearNote | Apache License 2.0 |
sqlite-open-helper/src/jvmMain/kotlin/exception/AndroidSqliteExceptions.jvm.kt | illarionov | 769,429,996 | false | null | /*
* Copyright 2024, the wasm-sqlite-open-helper project authors and contributors. Please see the AUTHORS file
* for details. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
* SPDX-License-Identifier: Apache-2.0
*/
package ru.pixnews.wasm.sqlite.open.helper.exce... | 0 | null | 1 | 3 | 71b2bbf55fecf3a70ce130d8b902d8fa86ea61ab | 4,197 | wasm-sqlite-open-helper | Apache License 2.0 |
ms/controllerblueprints/modules/service/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/service/utils/BluePrintEnhancerUtils.kt | YMalakov | 171,684,193 | true | {"Kotlin": 907808, "Java": 693579, "Shell": 39021, "Python": 18489, "Dockerfile": 2736, "Groovy": 2304, "PLSQL": 2262} | /*
* Copyright © 2017-2018 AT&T Intellectual Property.
* Modifications Copyright © 2019 Bell Canada.
*
* 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/lice... | 0 | Kotlin | 0 | 0 | 01eff6bc81499a9e41395f6b384a5e893b366505 | 5,743 | ccsdk-apps | Apache License 2.0 |
scratch/timing-issues-in-tests.kts | daveyarwood | 15,570,045 | false | {"HTML": 20861, "Ruby": 11908, "CSS": 10849, "Shell": 10243, "SCSS": 9223, "Kotlin": 1499} | import java.util.concurrent.LinkedBlockingQueue
import kotlin.concurrent.thread
typealias Test = () -> Boolean
fun fail(msg : String) {
println("FAIL: ${msg}")
}
fun retryUntilTrue(intervalMs : Long, timeoutMs : Long, test : Test) : Boolean {
val deadline = System.currentTimeMillis() + timeoutMs
while (System... | 0 | HTML | 1 | 6 | a3f7e85a9535215a62b552858f40960d20a970ad | 1,499 | blog.djy.io | MIT License |
app/src/main/java/com/lxy/kotlinwan/springTravel/risk/RiskCityAdapter.kt | luckylxyang | 514,782,596 | false | null | package com.lxy.kotlinwan.springTravel.risk
import android.util.Log
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.viewbinding.ViewBinding
import com.lxy.kotlinwan.base.BaseAdapter
import com.lxy.kotlinwan.databinding.ItemRiskCityBinding
import com.lxy.kotlinwan.springTravel.risk.mode... | 0 | Kotlin | 0 | 0 | 476ad8d7ca52c66db2fdaafe743572d8a314dac6 | 871 | kotlinWan | Apache License 2.0 |
app/src/main/java/co/tiagoaguiar/course/instagram/profile/util/ProfileAdapter.kt | BHM871 | 526,628,708 | false | {"Kotlin": 163910} | package co.tiagoaguiar.course.instagram.profile.util
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import co.tiagoaguiar.course.instagram.R
import co.tiagoaguiar.course.instagram.common.model.Po... | 0 | Kotlin | 0 | 0 | cba9539fa99b280f33f5bf8a9015decfecd70a4f | 1,331 | instagram | MIT License |
definitions/src/test/kotlin/fledware/definitions/builtin/ObjectUpdaterLifecycleTest.kt | fledware | 408,627,203 | false | {"Kotlin": 545508} | package fledware.definitions.builtin
import fledware.definitions.reader.gatherJar
import fledware.definitions.tests.builder
import fledware.definitions.tests.testJarPath
import kotlin.test.Test
import kotlin.test.assertContains
class ObjectUpdaterLifecycleTest {
@Test
fun testBasicLoading() = builder(listOf(Objec... | 6 | Kotlin | 0 | 0 | 2422b5f3bce36d5e7ea5e0962e94f2f2bcd3997e | 774 | FledDefs | Apache License 2.0 |
domain/data/src/commonMain/kotlin/mehiz/abdallah/progres/data/daos/SubjectsDao.kt | abdallahmehiz | 830,308,163 | false | {"Kotlin": 449026, "Swift": 621} | package mehiz.abdallah.progres.data.daos
import mehiz.abdallah.progres.data.db.ProgresDB
import mehiz.abdallah.progres.data.db.SubjectTable
class SubjectsDao(
db: ProgresDB
) {
private val queries = db.subjectTableQueries
fun insert(subject: SubjectTable) {
with(subject) {
queries.insert(
id ... | 1 | Kotlin | 0 | 8 | 331d3c6c8caa126fdc7df033f2574cd3aa8f8e80 | 1,089 | progres | MIT License |
feature/settings/src/main/kotlin/com/najudoryeong/mineme/feature/story/navigation/SettingsNavigation.kt | NaJuDoRyeong | 689,891,643 | false | {"Kotlin": 313446} | package com.najudoryeong.mineme.feature.story.navigation
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavOptions
import androidx.navigation.compose.composable
import com.najudoryeong.mineme.feature.story.AccountScreen
import com.najudoryeong.mineme.feat... | 2 | Kotlin | 0 | 0 | 7b1b46b14b8af6994cb86cb6ca844266a6429d68 | 666 | mineme_AOS_new | Apache License 2.0 |
app/src/main/java/com/nvkhang96/fossilfileexplorer/feature_file_explorer/presentation/file_list/component/FileFolderItem.kt | nvkhang96 | 628,568,918 | false | null | package com.nvkhang96.fossilfileexplorer.feature_file_explorer.presentation.file_list.component
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.*
import androidx.compose.material.Divider
import androidx.compose.material.Icon
import androidx.compose.material.MaterialTheme
import andro... | 0 | Kotlin | 0 | 0 | f965c9b40c2b4bd76b3fede27ad0dd6a8aca4f8a | 3,558 | FossilFileExplorer | MIT License |
kotlin/코틀린 완벽 가이드/080250/Chapter7/ForEachBlock.kt | devYSK | 461,887,647 | false | {"Java": 3507759, "JavaScript": 659549, "Kotlin": 563136, "HTML": 455168, "CSS": 446825, "Shell": 57444, "Groovy": 54414, "Batchfile": 47890, "Go": 26805, "Python": 9963, "Handlebars": 8554, "Makefile": 7837, "Vue": 5706, "TypeScript": 5172, "Dockerfile": 436, "Vim Snippet": 362, "Assembly": 278, "Procfile": 199} | import java.io.File
fun main() {
val file = File("data.bin")
var sum = 0
file.forEachBlock { buffer, bytesRead ->
(0 until bytesRead).forEach { sum += buffer[it] }
}
println(sum)
}
| 1 | null | 1 | 1 | 7a7c6b1bab3dc2c84527f8c528b06b9408872635 | 199 | study_repo | MIT License |
app/src/main/java/com/perol/asdpl/pixivez/networks/RubySSLSocketFactory.kt | fangdawang | 208,203,403 | true | {"Batchfile": 1, "Shell": 1, "Markdown": 2, "Java Properties": 2, "Proguard": 1, "Kotlin": 129, "Java": 53} | /*MIT License
Copyright (c) 2019 Perol_Notsfsssf
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... | 0 | null | 0 | 0 | dc84b29b9b42ce4f78ef1c8354db4375c1028ae6 | 2,760 | Pix-EzViewer | MIT License |
app/src/main/code/entities/Recipes.kt | swetha3378 | 610,574,074 | false | null | package com.example.cookingrecipes.entities
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.io.Serializable
@Entity(tableName = "Recipes")
data class Recipes(
@PrimaryKey(autoGenerate = true)
@ColumnInfo(name = "id")
val id: Int,
@ColumnInfo(nam... | 1 | Kotlin | 0 | 0 | 851492e5982d97ab04abbbf7eb80ce8df64e01a2 | 940 | CookingRecipesApp-Kotlin-Room-MVVM-COI | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/timer/TimerViewModel.kt | MarioNoll | 344,232,315 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 1 | 1fb62a66e42c4b0fdb8ed639badb79806bf0208d | 5,219 | android-dev-challenge-compose-week2 | Apache License 2.0 |
src/main/kotlin/compiler/nodes/Node.kt | solkin | 600,698,963 | false | {"Kotlin": 86227} | package compiler.nodes
import compiler.Context
abstract class Node {
open fun compile(ctx: Context): Type {
throw NotImplementedError("Compile function for $this is not implemented")
}
}
| 0 | Kotlin | 0 | 3 | 33c72d7b7b24be9e48fd15ca281e016635cfed40 | 205 | velo-lang | MIT License |
infra/src/fanpoll/infra/database/jasync/JasyncConfig.kt | csieflyman | 359,559,498 | false | {"Kotlin": 785294, "JavaScript": 17435, "HTML": 6167, "PLpgSQL": 5563, "Dockerfile": 126} | /*
* Copyright (c) 2024. fanpoll All rights reserved.
*/
package fanpoll.infra.database.jasync
data class JasyncConfig(
val jdbcUrl: String,
val username: String,
val password: String,
val maxActiveConnections: Int,
val maxIdleTime: Long,
val connectionCreateTimeout: Long,
val connection... | 1 | Kotlin | 9 | 74 | 1a7d54115dbc42c6a02230f527d9ad56862b4a0b | 375 | multi-projects-architecture-with-Ktor | MIT License |
infra/src/fanpoll/infra/database/jasync/JasyncConfig.kt | csieflyman | 359,559,498 | false | {"Kotlin": 785294, "JavaScript": 17435, "HTML": 6167, "PLpgSQL": 5563, "Dockerfile": 126} | /*
* Copyright (c) 2024. fanpoll All rights reserved.
*/
package fanpoll.infra.database.jasync
data class JasyncConfig(
val jdbcUrl: String,
val username: String,
val password: String,
val maxActiveConnections: Int,
val maxIdleTime: Long,
val connectionCreateTimeout: Long,
val connection... | 1 | Kotlin | 9 | 74 | 1a7d54115dbc42c6a02230f527d9ad56862b4a0b | 375 | multi-projects-architecture-with-Ktor | MIT License |
post_api/android/app/src/main/kotlin/com/example/get_post_api/MainActivity.kt | CharmiGoswami | 409,149,083 | false | {"Rich Text Format": 14026518, "Dart": 526054, "HTML": 98365, "Swift": 25174, "Kotlin": 3473, "Ruby": 2684, "Objective-C": 1026} | package com.example.get_post_api
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Rich Text Format | 2 | 0 | 8c50126943ebfe858cb321be727cbc46ea686f3d | 129 | Flutter | MIT License |
mealkitary-domain/src/test/kotlin/com/mealkitary/reservation/domain/payment/service/CancelPaymentServiceTest.kt | le2sky | 640,586,872 | false | {"Kotlin": 290422} | package com.mealkitary.reservation.domain.payment.service
import com.mealkitary.common.model.Money
import com.mealkitary.reservation.domain.payment.Payment
import com.mealkitary.reservation.domain.payment.PaymentGatewayService
import com.mealkitary.reservation.domain.payment.PaymentStatus
import com.mealkitary.reserva... | 3 | Kotlin | 0 | 2 | fe3e6e2fb58f3516738ad140133c0704b790ed4c | 2,189 | mealkitary-server | Apache License 2.0 |
app/src/main/java/com/intact/moviesbox/ui/base/BaseActivity.kt | DevAnuragGarg | 177,965,415 | false | {"Kotlin": 195049} | package com.intact.moviesbox.ui.base
import android.content.res.Configuration
import android.widget.Toast
import dagger.android.support.DaggerAppCompatActivity
/**
* Created by <NAME> on 19/03/19.
*
* Base activity that will be extended by all the activities
*
* DaggerAppCompatActivity: you don not need to use A... | 0 | Kotlin | 5 | 14 | 6cfe0a54ff7936c1539b06130265cf270ad944cb | 1,441 | MovieBox | Apache License 2.0 |
persistence/src/main/java/br/com/movieapp/persistence/di/RoomModule.kt | gaxima | 734,731,175 | false | {"Kotlin": 198654, "Ruby": 46} | package br.com.movieapp.persistence.di
import android.content.Context
import androidx.room.Room
import br.com.movieapp.persistence.MovieDataBase
import br.com.movieapp.persistence.data.dao.MovieDao
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.Applicatio... | 0 | Kotlin | 0 | 0 | 9f23970a46d07e36a47caf2aa0bad2f1ca1e9216 | 834 | MovieApp | MIT License |
androidApp/src/main/java/dev/johnoreilly/confetti/account/SignInView.kt | joreilly | 436,024,503 | false | null | package dev.johnoreilly.confetti.account
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import android... | 29 | Kotlin | 14 | 223 | 78d0dcae0bfe4f51551f4ce223891bc99df30966 | 1,885 | Confetti | Apache License 2.0 |
app/src/main/java/com/levis/nimblechallenge/data/repository/AuthRepositoryImpl.kt | LevisLuong | 807,424,023 | false | {"Kotlin": 158020} | package com.levis.nimblechallenge.data.repository
import com.levis.nimblechallenge.core.utils.repoCall
import com.levis.nimblechallenge.data.local.datastore.LocalDataSource
import com.levis.nimblechallenge.data.network.Api
import com.levis.nimblechallenge.data.network.dtos.LoginTokenDto
import com.levis.nimblechalleng... | 0 | Kotlin | 0 | 0 | cb2e6ba5bb17d48d6e4732c0116ff125cab360c7 | 1,683 | NimbleChallenge | Apache License 2.0 |
app/src/main/java/app/quiz/joaomartins/adapters/usersAdapters.kt | jlucas577 | 300,985,156 | false | {"Kotlin": 20976} | package app.quiz.joaomartins.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import app.quiz.joaomartins.R
import app.quiz.joaomartins.model.Users
import kotlinx.android.synthetic.main.ite... | 0 | Kotlin | 0 | 1 | f0b992e9125b675545eade01d14ca98036175185 | 1,192 | DynaQuiz | MIT License |
compiler/src/main/kotlin/com/r0adkll/kimchi/annotations/ContributesToAnnotation.kt | r0adkll | 842,714,606 | false | {"Kotlin": 208023, "Shell": 3091} | // Copyright (C) 2024 r0adkll
// SPDX-License-Identifier: Apache-2.0
package com.r0adkll.kimchi.annotations
import com.google.devtools.ksp.symbol.KSAnnotated
import com.google.devtools.ksp.symbol.KSAnnotation
import com.r0adkll.kimchi.util.KimchiException
import com.r0adkll.kimchi.util.ksp.argumentAt
import com.r0adkl... | 3 | Kotlin | 1 | 71 | 480a4963337cf42e3a5fd42b2918f5551a911791 | 1,934 | kimchi | Apache License 2.0 |
app/src/main/java/com/z1/pokedex/feature/details/data/datasource/local/PokemonDetailsLocalDataSource.kt | zero1code | 757,161,296 | false | {"Kotlin": 245388} | package com.z1.pokedex.feature.details.data.datasource.local
import kotlinx.coroutines.flow.Flow
interface PokemonDetailsLocalDataSource {
suspend fun getPokemonFavoritesName(userId: String): Flow<List<String>>
} | 0 | Kotlin | 0 | 7 | 320b1c045b313ce8ca419a12732b5d8926e9e7e9 | 218 | pokedex-z1 | Apache License 2.0 |
app/src/main/java/com/example/mytransactions/data/remote/TransactionRemoteDataSource.kt | zcufo123 | 463,680,121 | false | {"Kotlin": 31968} | package com.example.mytransactions.data.remote
import javax.inject.Inject
class TransactionRemoteDataSource @Inject constructor(
private val transactionService: TransactionService
): BaseDataSource() {
suspend fun getAllTransactions() = getResult { transactionService.getAllTransactions() }
} | 0 | Kotlin | 0 | 0 | 52d22bfc68628cf94aa96f751b9a107a283bf6c0 | 303 | MyTransactions | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.