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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/sawyern/cookiebot/services/CookieService.kt | sawyern | 173,591,137 | false | null | package sawyern.cookiebot.services
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Lazy
import org.springframework.stereotype.Service
import sawyern.cookiebot.exception.CookieException
import sawyern.cook... | 3 | Kotlin | 0 | 1 | 90e46956dc1b84e9f9fb0d467516f13cd08e4762 | 2,335 | cookiebot | Apache License 2.0 |
app/src/main/java/com/hoc/comicapp/ui/chapter_detail/ChapterDetailViewModel.kt | hoang06kx1 | 216,228,666 | true | {"Kotlin": 353295} | package com.hoc.comicapp.ui.chapter_detail
import com.hoc.comicapp.base.BaseViewModel
import com.hoc.comicapp.domain.models.getMessage
import com.hoc.comicapp.domain.thread.RxSchedulerProvider
import com.hoc.comicapp.ui.chapter_detail.ChapterDetailPartialChange.InitialRetryLoadChapterPartialChange
import com.hoc.comic... | 0 | null | 0 | 0 | 8ff2ea495d56c2d73bfd5cfc4c6244d2b7c8faaa | 5,748 | ComicReaderApp_MVI_Coroutine_RxKotlin_Jetpack | MIT License |
app/src/main/java/com/cusufcan/firebasepdf/adapter/PDFFilesAdapter.kt | cusufcan | 835,146,079 | false | {"Kotlin": 16221} | package com.cusufcan.firebasepdf.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.cusufcan.firebasepdf.databinding.PdfItemBinding
import com.c... | 0 | Kotlin | 0 | 1 | 1514fc371041679ae6d60a9d4302146f70e2bd6b | 1,619 | firebase_pdf | MIT License |
features/home/src/main/kotlin/press/advent/dynamicfeatures/home/ui/di/HomeModule.kt | jeffnyauke | 254,036,844 | false | null | /*
*
* Copyright (c) 2020 <EMAIL>
*
* 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 a... | 0 | Kotlin | 0 | 0 | 0960891558650bd167c0c923cbf29f124981f3ea | 1,477 | TheAdventPress | Apache License 2.0 |
Android/app/src/main/java/com/ismin/android/WomanService.kt | clemstarosta | 568,705,563 | false | {"Kotlin": 26874, "TypeScript": 6593, "JavaScript": 1226} | package com.ismin.android
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
interface WomanService {
@GET("women")
fun getAllWomen(): Call<List<Woman>>
@POST("women")
fun addWoman(@Body() woman: Woman): Call<Woman>
} | 0 | Kotlin | 0 | 0 | 0e243dae4b38f381648c5409953c8ffbdadf62d4 | 287 | ProjectISMIN | MIT License |
coreactor/src/test/java/com/sumera/coreactor/CoreactorFragmentTest.kt | SumeraMartin | 213,146,164 | false | {"Kotlin": 241583} | package com.sumera.coreactor
import androidx.fragment.app.testing.FragmentScenario
import androidx.lifecycle.Lifecycle
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.sumera.coreactor.contract.event.EventBehaviour
import com.sumera.coreactor.testutils.CoroutineRule
import com.sumera.coreactor.testutils... | 0 | Kotlin | 0 | 4 | ce065d6a0a6573d63ca3262ef4dee11fb3c565af | 8,420 | Coreactor | MIT License |
app/src/main/java/com/zxhhyj/music/logic/bean/PlayMemoryBean.kt | ZXHHYJ | 675,785,532 | false | {"Kotlin": 465253} | package com.zxhhyj.music.logic.bean
data class PlayMemoryBean(val index: Int? = null, val playlist: List<SongBean>? = null)
| 0 | Kotlin | 1 | 16 | eaa34f1577aed5585e2c2253d73ca6741a0dc0d1 | 125 | StarMusic | Apache License 2.0 |
markdown-editor/src/jvmMain/kotlin/me/okonecny/markdowneditor/view/RenderContext.kt | konecny-ondrej | 784,920,382 | false | {"Kotlin": 223790} | package me.okonecny.markdowneditor.view
import androidx.compose.runtime.Composable
import androidx.compose.ui.text.AnnotatedString
import me.okonecny.markdowneditor.MappedText
import me.okonecny.markdowneditor.MarkdownDocument
interface RenderContext<in BaseNode> {
val document: MarkdownDocument
val activeAnn... | 1 | Kotlin | 0 | 6 | 0e1f0019178329dd2f8194bbd760355228ee989c | 652 | compose-markdown-editor | MIT License |
main/src/main/java/com/work/theIsle/openSourceFramework/glide/GlideActivity.kt | Tiannuo | 498,562,269 | false | {"Kotlin": 218272, "Java": 43175} | package com.work.theIsle.openSourceFramework.glide
import androidx.activity.viewModels
import androidx.databinding.DataBindingUtil
import com.alibaba.android.arouter.facade.annotation.Route
import com.work.baselib.activity.BaseActivity
import com.work.baselib.arouter.RouterPath.PATH_GLIDEACTIVITY
import com.work.theIs... | 0 | Kotlin | 2 | 4 | bf02c12830d80c6bcf7441c50c3f685d322fdf53 | 976 | AndroidWork | Apache License 2.0 |
data/RF01241/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF01241"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
20 to ... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 2,635 | Rfam-for-RNArtist | MIT License |
modules/core/arrow-instances-data/src/main/kotlin/arrow/instances/statet.kt | simonbasle | 146,276,825 | true | {"Kotlin": 1510912, "CSS": 186873, "JavaScript": 66545, "HTML": 11364, "Java": 4465, "Shell": 3043} | package arrow.instances
import arrow.Kind
import arrow.core.*
import arrow.data.*
import arrow.instance
import arrow.typeclasses.*
@instance(StateT::class)
interface StateTFunctorInstance<F, S> : Functor<StateTPartialOf<F, S>> {
fun FF(): Functor<F>
override fun <A, B> Kind<StateTPartialOf<F, S>, A>.map(f: (A) ... | 0 | Kotlin | 0 | 0 | bdc00446cad4eea45ffd2e34d4eeff2f138a6ac0 | 4,006 | arrow | Apache License 2.0 |
app/src/main/java/cn/wthee/pcrtool/data/network/FileService.kt | wthee | 277,015,110 | false | {"Kotlin": 1473133} | package cn.wthee.pcrtool.data.network
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path
/**
* 数据库
*/
interface FileService {
/**
* 根据文件名 [file]下载文件
*/
@GET("{file}")
fun getFile(@Path("file") file: String): Call<ResponseBody>
} | 0 | Kotlin | 3 | 58 | 5623e3ffdce349b74ba24c80add3137f1c01146a | 308 | pcr-tool | Apache License 2.0 |
src/test/kotlin/org/move/lang/parser/SpecsParsingTest.kt | pontem-network | 279,299,159 | false | {"Kotlin": 2191000, "Move": 39421, "Lex": 5509, "HTML": 2114, "Java": 1275} | package org.move.lang.parser
import org.move.utils.tests.parser.MvParsingTestCase
class SpecsParsingTest: MvParsingTestCase("specs") {
fun `test scopes`() = doTest()
fun `test conditions`() = doTest()
fun `test forall exists`() = doTest()
fun `test pragma`() = doTest()
fun `test apply`() = doTest... | 3 | Kotlin | 29 | 69 | d090ecd542bb16f414cc1cf2dcbe096ca37536af | 564 | intellij-move | MIT License |
app/src/main/java/com/franzliszt/magicmusic/route/musicplayer/service/MusicService.kt | FranzLiszt-1847 | 753,088,527 | false | {"Kotlin": 879960, "Java": 1923} | package com.franzliszt.magicmusic.route.musicplayer.service
import android.content.Intent
import android.os.Build
import androidx.media3.common.Player
import androidx.media3.session.MediaSession
import androidx.media3.session.MediaSessionService
import com.franzliszt.magicmusic.route.musicplayer.notification.MusicNoti... | 0 | Kotlin | 1 | 1 | dcbc4c0cb9c0478e617423812712659df52a3b7d | 1,398 | MagicPlayer | Apache License 2.0 |
libs/messaging/message-bus/src/main/kotlin/net/corda/messagebus/api/consumer/CordaConsumerRebalanceListener.kt | corda | 346,070,752 | false | {"Kotlin": 20585393, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.messagebus.api.consumer
import net.corda.messagebus.api.CordaTopicPartition
/**
* A callback interface that the user can implement to trigger custom actions when the set of partitions assigned to the
* consumer changes.
*/
interface CordaConsumerRebalanceListener {
/**
* This method wil... | 14 | Kotlin | 27 | 69 | 0766222eb6284c01ba321633e12b70f1a93ca04e | 2,966 | corda-runtime-os | Apache License 2.0 |
harmonysoft-sql/src/main/kotlin/tech/harmonysoft/oss/sql/dsl/table/Table.kt | harmonhsoft-tech | 517,062,754 | false | {"Kotlin": 622506, "Gherkin": 23480, "Shell": 517, "JavaScript": 378} | package tech.harmonysoft.oss.sql.dsl.table
import tech.harmonysoft.oss.sql.dsl.Sql
data class Table(
val name: String?,
val select: Sql.Select?,
val alias: String?,
val schemaName: String?
) {
constructor(name: String, alias: String? = null, schemaName: String? = null) : this(
name = name... | 1 | Kotlin | 1 | 2 | a87acdf44ee44e84100bbcb7facc0697c638b4ab | 1,129 | harmonysoft-kotlin-libs | MIT License |
src/main/kotlin/tools/Combinations.kt | wrabot | 739,807,905 | false | {"Kotlin": 19706} | package tools
fun <T> List<T>.combinations(length: Int = size): List<List<T>> = if (length <= 0 || isEmpty()) listOf(emptyList()) else
flatMap { first -> minus(first).combinations(length - 1).map { listOf(first) + it } }
fun <T> enumerate(base: Int, length: Int, prefix: List<Int> = emptyList(), block: (List<Int>)... | 0 | Kotlin | 0 | 0 | fd2da26c0259349fbc9719e694d58549e7f040a0 | 473 | competitive-tools | Apache License 2.0 |
project/src/main/kotlin/cga/exercise/components/camera/PerspectiveCamera.kt | itsAltamas | 396,089,178 | true | {"Kotlin": 103779, "GLSL": 24426} | package cga.exercise.components.camera
import cga.exercise.components.geometry.Transformable
import cga.exercise.components.shader.ShaderProgram
import org.joml.Matrix4f
import org.joml.Vector3f
import java.lang.Exception
import java.lang.Math.PI
class PerspectiveCamera constructor(var fov : Float, var aspectRatio : ... | 0 | Kotlin | 0 | 0 | 4babb82a385fb502750e63a7cd4f0f6ae9b65619 | 1,199 | CGA_Project | MIT License |
app/src/main/java/com/programmer2704/stoxxwatch/app/AppModule.kt | prgrm274 | 378,989,070 | false | null | package com.programmer2704.stoxxwatch.app
import android.app.Application
import android.content.Context
import com.programmer2704.stoxxwatch.annotations.ApplicationContext
import com.programmer2704.stoxxwatch.data.AppDatabaseManager
import com.programmer2704.stoxxwatch.data.DatabaseManager
import dagger.Module
import ... | 0 | Kotlin | 0 | 0 | 29b9e5a325eed42f34e6ac27d2b1a007c060ab07 | 708 | stoxxwatch | MIT License |
src/main/kotlin/api/graphql/Queries.kt | Nimeggis | 648,951,082 | false | null | package api.graphql
import api.graphql.config.user
import api.model.User
import api.repository.UserRepository
import com.expediagroup.graphql.server.operations.Query
import graphql.schema.DataFetchingEnvironment
import org.springframework.stereotype.Component
@Component
class Queries(private val userRepository: UserR... | 0 | Kotlin | 0 | 1 | ebeb4959aff39bb0b19ccd5a396e0be2100d58dc | 433 | IntelliCards-BE | MIT License |
gradle-plugin/src/main/kotlin/io/github/manriif/supabase/functions/serve/ServeInspect.kt | manriif | 818,790,032 | false | {"Kotlin": 172967} | /**
* Copyright (c) 2024 Maanrifa Bacar Ali
*
* 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,... | 0 | Kotlin | 0 | 14 | fd9350fa6287f2bd2bc95e5f030058c5cef9411e | 2,566 | supabase-edge-functions-kt | MIT License |
src/test/kotlin/com/github/simy4/poc/TemplatesPocApplicationTest.kt | SimY4 | 41,303,846 | false | {"Kotlin": 39316, "JavaScript": 16842, "HTML": 6412, "Dockerfile": 559} | package com.github.simy4.poc
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT
import org.springframework.test.context.junit.jupiter.Sprin... | 0 | Kotlin | 0 | 2 | bd21ba971b2d9116b5c15207082bfa8f6a8b8e52 | 482 | TemplatesPOC | MIT License |
app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/utils/Extensions.kt | feelfreelinux | 97,154,881 | false | null | package io.github.feelfreelinux.wykopmobilny.utils
import android.app.Activity
import android.content.ContentResolver
import android.content.ContextWrapper
import android.graphics.drawable.Drawable
import android.net.Uri
import android.provider.OpenableColumns
import android.text.SpannableStringBuilder
import android.... | 47 | Kotlin | 51 | 166 | ec6365b9570818a7ee00c5b512f01cedead30867 | 6,281 | WykopMobilny | MIT License |
app/src/main/kotlin/io/dolphin/move/android/features/permissions/presentation/PermissionsUiState.kt | dolphin-technologies | 603,088,245 | false | {"Kotlin": 623694} | package io.dolphin.move.android.features.permissions.presentation
import androidx.compose.ui.graphics.Color
import io.dolphin.move.android.R
import io.dolphin.move.android.ui.theme.white
data class PermissionsUiState(
val locationButtonText: Int = R.string.btn_continue,
val locationButtonColor: Color = white,... | 1 | Kotlin | 0 | 0 | 24a66fa84ac22a6de358b76ad158c042363ca55b | 942 | MOVE-App-Android | Apache License 2.0 |
crypto/presentation/src/main/java/dev/ohoussein/crypto/presentation/components/CryptoListScreen.kt | OHoussein | 388,247,123 | false | null | @file:Suppress("LongParameterList")
package dev.ohoussein.crypto.presentation.components
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.... | 0 | Kotlin | 0 | 2 | 34c2cc5c2c50ef966e869d3eb8ac958f0ca6a8e2 | 5,126 | android-crypto-app | Apache License 2.0 |
corellium/domain/src/main/kotlin/flank/corellium/domain/run/test/android/step/InstallApks.kt | manuyavuz | 382,144,152 | true | {"Kotlin": 1837804, "Java": 445714, "Swift": 50324, "Shell": 11210, "Objective-C": 10006, "Dart": 9705, "HTML": 7235, "Gherkin": 4210, "TypeScript": 2717, "Ruby": 2272, "JavaScript": 1764, "SCSS": 1365, "Batchfile": 1319, "EJS": 1061, "Go": 159} | package flank.corellium.domain.run.test.android.step
import flank.corellium.api.AndroidApps
import flank.corellium.domain.RunTestCorelliumAndroid
import flank.corellium.domain.RunTestCorelliumAndroid.InstallApks
import flank.corellium.domain.step
import flank.shard.Shard
import kotlinx.coroutines.delay
import kotlinx.... | 0 | null | 0 | 0 | c1452e7a586c01b063cdb26f9a2157854659f345 | 1,351 | flank | Apache License 2.0 |
ontrack-model/src/main/java/net/nemerosa/ontrack/model/security/BuiltinAuthenticationSourceProvider.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.model.security
import org.springframework.stereotype.Component
@Component
class BuiltinAuthenticationSourceProvider : AuthenticationSourceProvider {
companion object {
const val ID = "built-in"
val SOURCE = AuthenticationSource(
provider = ID,
... | 60 | Kotlin | 27 | 90 | aaf7a8cdca185d15c5ff7854483f484f7ebd3a2e | 553 | ontrack | MIT License |
app/src/main/java/com/nimble/nimblerewards/usecases/wallet/FetchNbgSymbolUseCase.kt | nimblehq | 198,597,484 | false | null | package com.nimble.nimblerewards.usecases.wallet
import com.nimble.nimblerewards.data.exceptions.AppError
import com.nimble.nimblerewards.data.exceptions.NimbleGoldError.FetchNbgSymbolError
import com.nimble.nimblerewards.data.repositories.BlockChainRepository
import com.nimble.nimblerewards.usecases.RxScheduler.IoThr... | 0 | Kotlin | 0 | 1 | 9af94e7d76cd8d681d46ad06d711da2eeab76233 | 955 | nimble-rewards-android | MIT License |
app/src/main/java/com/nimble/nimblerewards/usecases/wallet/FetchNbgSymbolUseCase.kt | nimblehq | 198,597,484 | false | null | package com.nimble.nimblerewards.usecases.wallet
import com.nimble.nimblerewards.data.exceptions.AppError
import com.nimble.nimblerewards.data.exceptions.NimbleGoldError.FetchNbgSymbolError
import com.nimble.nimblerewards.data.repositories.BlockChainRepository
import com.nimble.nimblerewards.usecases.RxScheduler.IoThr... | 0 | Kotlin | 0 | 1 | 9af94e7d76cd8d681d46ad06d711da2eeab76233 | 955 | nimble-rewards-android | MIT License |
kotlin-example/src/kotlin/common/PIXI.kt | 7hens | 119,668,810 | false | null | package common
import modules.PIXI
import modules.Rx
fun PIXI.DisplayObject.moveTo(targetX: Int, targetY: Int, duration: Double): Rx.Observable<Double> {
val speedX = (targetX - x) / duration
val speedY = (targetY - y) / duration
return App.timer(duration)
.doOnNext { deltaTime: Double ->
... | 0 | Kotlin | 0 | 0 | c48fe432296fe84832ca07ffe25b48060fd160cc | 555 | js-example | Apache License 2.0 |
projects/android/secure/src/main/java/io/swath/microsoft/security/database/entities/Application.kt | AzureAD | 448,733,315 | false | {"HTML": 5728885, "Kotlin": 53219, "JavaScript": 39484, "CSS": 34202, "Java": 24432, "TypeScript": 23817} | package io.swath.microsoft.security.database.entities
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class Application(
@ColumnInfo(name="ClientId") @PrimaryKey val clientId: String,
@ColumnInfo(name="Name") val name: String,
@ColumnInfo(name="Vers... | 3 | HTML | 3 | 2 | ea8b89c3867de2af13f73331e4c410e756fe2c3e | 347 | declaredaccess | MIT License |
app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderChapterItem.kt | Koykoy200078 | 255,896,733 | true | {"Kotlin": 1823468, "Shell": 1179} | package eu.kanade.tachiyomi.ui.reader
import android.content.res.ColorStateList
import android.text.format.DateUtils
import android.view.View
import android.widget.FrameLayout
import android.widget.ImageView
import android.widget.TextView
import androidx.core.content.ContextCompat
import com.mikepenz.fastadapter.FastA... | 0 | null | 0 | 0 | 3d6ad28437a9eb7b9d4df008798516ca69352b4d | 4,340 | tachiyomiJ2K | Apache License 2.0 |
src/main/kotlin/com/ekino/oss/crypto/EncryptDecrypt.kt | ekino | 224,213,814 | false | null | package com.ekino.oss.crypto
import java.nio.charset.StandardCharsets
import java.security.GeneralSecurityException
import java.util.Base64
import javax.crypto.Cipher
import javax.crypto.spec.IvParameterSpec
import javax.crypto.spec.SecretKeySpec
object EncryptDecrypt {
private const val CIPHER_TRANSFORMATION = "A... | 3 | Kotlin | 0 | 4 | b1438272c8470eda2c249358267c10af58ec2487 | 1,725 | hibernate-crypto-types | MIT License |
konsole/src/main/kotlin/com/varabyte/konsole/runtime/internal/executor/KonsoleExecutor.kt | varabyte | 397,769,020 | false | null | package com.varabyte.konsole.runtime.internal.executor
import java.util.concurrent.Executors
internal val KonsoleExecutor = Executors.newSingleThreadExecutor { r ->
Thread(r, "Konsole Thread").apply {
// This thread is never stopped so allow the program to quit even if it's running
isDaemon = true... | 30 | Kotlin | 3 | 59 | af08aaba5a68eb168b20fad0ffd0cc87d8a11bf8 | 328 | konsole | Apache License 2.0 |
src/main/kotlin/Main.kt | jisungbin | 780,422,418 | false | {"Kotlin": 21934} | /*
* Developed by <NAME> 2024.
*
* Licensed under the MIT.
* Please see full license: https://github.com/jisungbin/strings-desktop/blob/main/LICENSE
*/
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import... | 2 | Kotlin | 0 | 2 | 4989eae3d8f9ad078bd2a1c75500276edae6aa5b | 2,003 | strings-desktop | MIT License |
src/main/kotlin/io/sip3/twig/ce/controller/UserController.kt | sip3io | 234,018,899 | false | {"Kotlin": 301428} | /*
* Copyright 2018-2024 SIP3.IO, Corp.
*
* 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... | 2 | Kotlin | 4 | 60 | 2dd547759131b701e562c5491238d1fef7b5cf82 | 1,874 | sip3-twig-ce | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/WeatherScreen.kt | MarioNoll | 349,129,357 | false | {"Kotlin": 112565} | /*
* 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 | 1a9b93677e258398c4c92fad1d700c924a0a4a21 | 1,184 | android-dev-challenge-compose-week4 | Apache License 2.0 |
src/main/kotlin/com/bushka/bittrex/network/BittrexException.kt | ColeKainz | 288,023,403 | false | null | package com.bushka.bittrex.network
class BittrexException(msg: String) : RuntimeException(msg) | 0 | Kotlin | 4 | 2 | ec77e3077253acf23f7f8d4c6d7587f601882474 | 95 | bittrex-kotlin-client | MIT License |
platform/platform-api/src/com/intellij/openapi/observable/operation/core/PromiseUtil.kt | JetBrains | 2,489,216 | false | {"Text": 9788, "INI": 517, "YAML": 423, "Ant Build System": 11, "Batchfile": 34, "Dockerfile": 10, "Shell": 633, "Markdown": 750, "Ignore List": 141, "Git Revision List": 1, "Git Attributes": 11, "EditorConfig": 260, "XML": 7904, "SVG": 4537, "Kotlin": 60205, "Java": 84268, "HTML": 3803, "Java Properties": 217, "Gradle... | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.observable.operation.core
import com.intellij.openapi.Disposable
import com.intellij.openapi.concurrency.awaitPromise
import com.intellij.openapi.concurrency.waitForProm... | 1 | null | 1 | 1 | 0d546ea6a419c7cb168bc3633937a826d4a91b7c | 4,746 | intellij-community | Apache License 2.0 |
compiler/testData/codegen/box/dynamic/namedArgumentsMixedPositions.kt | alejes | 82,387,788 | false | {"Java": 23189191, "Kotlin": 20707963, "JavaScript": 222016, "HTML": 48522, "Protocol Buffer": 47590, "Lex": 18051, "Groovy": 15954, "ANTLR": 9797, "CSS": 9358, "IDL": 6533, "Shell": 4704, "Batchfile": 3721} | // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// JVM_TARGET: 1.8
// WITH_REFLECT
class A {
fun function1(x: Int, y: Int = 2, z: Int = 8, u: Int = 45, v: Int = -28): Int {
return x + 10 * y + 100 * z + 913 * u + 843 * v
}
}
fun box(): String {
val a:... | 1 | null | 1 | 1 | 6175c5fbf70e3f03a2e4c10bf3aa4a6af896896c | 424 | kotlin-dynamic-compiler | Apache License 2.0 |
ChineseMedicine/dragable_image_viewer/src/main/java/com/draggable/library/extension/ImageViewerHelper.kt | Ketty0725 | 689,530,479 | false | {"Java": 3206321, "Vue": 691518, "JavaScript": 383465, "FreeMarker": 88698, "Kotlin": 79692, "HTML": 28942, "SCSS": 18194, "CSS": 1611, "Dockerfile": 1259, "Batchfile": 392} | @file:JvmName("ImageViewerHelper")
package com.draggable.library.extension
import android.content.Context
import android.graphics.Rect
import android.view.View
import com.draggable.library.core.DraggableParamsInfo
import com.draggable.library.extension.entities.DraggableImageInfo
object ImageViewerHelper {
priv... | 1 | null | 1 | 1 | e3dbd069512aa442dd97b70c282a2c110cd6d5d5 | 5,493 | xlbc | Apache License 2.0 |
app/src/main/java/android/example/health/LoginScreen.kt | HarshRaghav | 543,518,159 | false | {"Java": 155422, "Kotlin": 146387} | package android.example.health
import android.content.Intent
import android.example.health.Constants.GlobalData
import android.example.health.daos.UserDao
import android.example.health.models.User
import android.example.health.networkUtils.CheckNetworkConnection
import android.example.health.utils.LocalPersistenceMana... | 1 | null | 1 | 1 | 8765c88b2d33ed7af77bb854dd59a7dc4ec0bddc | 12,117 | digicure | Apache License 2.0 |
funker/src/main/java/at/dibiasi/funker/utils/BluetoothDeviceFinder.kt | ddibiasi | 190,774,420 | false | null | package at.dibiasi.funker.utils
import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothDevice
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.util.Log
import at.dibiasi.funker.error.BluetoothDi... | 0 | null | 5 | 7 | 02c2d398a178017448fd0e655d31c05bd43fe0bd | 5,622 | Funker | MIT License |
proxy/src/main/kotlin/kingmc/platform/proxy/ProxiedServer.kt | Kingsthere | 599,960,106 | false | null | package kingmc.platform.proxy
import kingmc.platform.Server
/**
* A `ProxiedServer` represent a sub-server that `ProxyServer` could forward to
*
* @since 0.0.8
* @author kingsthere
*/
interface ProxiedServer : Server {
/**
* The `ServerInfo` for this `ProxiedServer`
*/
val serverInfo: ServerInf... | 0 | Kotlin | 0 | 0 | ec098cefd4f82dcd3f9d55430b5a187122d75db6 | 323 | kingmc-platform | MIT License |
app/src/main/java/io/exzocoin/wallet/modules/sendevm/confirmation/SendEvmConfirmationModule.kt | rexdev0211 | 403,525,735 | false | {"Kotlin": 2356794, "Shell": 2039, "Ruby": 966} | package io.exzocoin.wallet.modules.sendevm.confirmation
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.navigation.NavOptions
import io.exzocoin.wallet.core.App
import io.exzocoin.wallet.core.ethereum... | 0 | Kotlin | 1 | 0 | 1ed5d80490ecf1574499cafa5aad922c4ea9a362 | 3,065 | exzo-android-wallet-main | MIT License |
data/src/main/kotlin/com/ilgiz/kitsu/data/remote/dtos/anime/CoverImage.kt | ilgiz05 | 493,465,307 | false | null | package com.ilgiz.kitsu.data.remote.dtos.anime
import com.google.gson.annotations.SerializedName
import com.ilgiz.kitsu.domain.models.anime.CoverImageModel
data class CoverImage(
@SerializedName("tiny")
val tiny: String,
@SerializedName("small")
val small: String,
@SerializedName("large")
val... | 0 | Kotlin | 0 | 0 | f9d4b4b9899bc2faa3fc992233c3187774d3d8d8 | 557 | lesson7.kotlin3 | MIT License |
domain/src/commonMain/kotlin/ly/david/musicsearch/domain/search/results/usecase/GetSearchResults.kt | lydavid | 458,021,427 | false | {"Kotlin": 1354694, "HTML": 674577, "Python": 3489, "Shell": 1543, "Ruby": 955} | package ly.david.musicsearch.domain.search.results.usecase
import ly.david.musicsearch.core.models.network.MusicBrainzEntity
import ly.david.musicsearch.domain.search.results.SearchResultsRepository
import org.koin.core.annotation.Single
@Single
class GetSearchResults(
private val searchResultsRepository: SearchR... | 102 | Kotlin | 0 | 6 | 5e15119a3c55efa932e37afced1b56609e988fe6 | 495 | MusicSearch | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/CheeseAlt.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.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.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,920 | icons | MIT License |
app/src/main/java/com/project22/myapplication/screens/ImageSender.kt | reuben21 | 390,672,747 | false | {"Kotlin": 155492} | package com.project22.myapplication.screens
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.project22.myapplication.R
class ImageSender : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView... | 0 | Kotlin | 0 | 0 | ebea676857bd06960b249031ed589dd2ee0430e0 | 360 | TravelMate | MIT License |
src/main/kotlin/korrit/kotlin/openapi/model/Response.kt | Koriit | 217,255,706 | false | null | package com.korrit.kotlin.openapi.model
import com.korrit.kotlin.openapi.YAML_INDENT
/**
* Describes a single response from an API Operation.
*
* Representation of [Response Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#responseObject).
*
* @property code HTTP response code.
... | 2 | Kotlin | 0 | 0 | c0860640c17e8356e1ca1c14bd049b890da807cd | 1,684 | openapi-matcher | MIT License |
app/src/main/java/com/jdagnogo/welovemarathon/tips/data/TipsMapper.kt | jdagnogo | 424,252,162 | false | {"Kotlin": 625180} | package com.jdagnogo.welovemarathon.tips.data
import androidx.annotation.Keep
import com.jdagnogo.welovemarathon.tips.domain.Tips
@Keep
class TipsMapper {
fun toTips(entities: List<TipsEntity>): List<Tips> {
return entities.map {
it.toTips()
}
}
fun toTipsEntities(tips: List<T... | 0 | Kotlin | 0 | 0 | e82d9fb221b605ce996a68dc938692273279f662 | 420 | WeLoveMArathon | The Unlicense |
src/main/kotlin/org/rust/ide/fixes/RsConvertBlockToLoopFix.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.fixes
import com.intellij.codeInspection.LocalQuickFixAndIntentionActionOnPsiElement
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij... | 1,805 | Kotlin | 368 | 4,389 | f121641a20b22cc2006077e83fd5a28183ccf243 | 1,161 | intellij-rust | MIT License |
Entrega/app/src/main/java/com/jjmorillo/ladespensademicasa/database/AppDatabase.kt | jjmorleo | 356,499,729 | false | null | package com.jjmorillo.ladespensademicasa.database
import android.content.Context
import androidx.room.*
import androidx.sqlite.db.SupportSQLiteDatabase
import com.jjmorillo.ladespensademicasa.application.App
import com.jjmorillo.ladespensademicasa.database.converter.Converters
import com.jjmorillo.ladespensademicasa.d... | 0 | Kotlin | 0 | 0 | 1f555d30c298501215655317578de2c8cc3ea465 | 33,524 | la-despensa-de-mi-casa | MIT License |
cli/src/commonMain/me/strangepan/tasks/cli/command/TaskOption.kt | StrangePan | 231,948,379 | false | {"Kotlin": 385988, "Swift": 54126} | package me.strangepan.tasks.cli.command
import omnia.cli.`in`.Parameter
import omnia.cli.`in`.StringOption
class TaskOption(
longName: String,
shortName: String,
description: String,
repeatable: Parameter.Repeatable)
: StringOption(longName, shortName, description, repeatable, "task") | 0 | Kotlin | 0 | 3 | 8ed915321725fe086a2ab21b8cc68dbd0c14251c | 297 | tasks | The Unlicense |
src/main/kotlin/com/spring/ioc/BeanDefinitionReader.kt | WeipingGan | 479,587,223 | false | {"Kotlin": 19550} | package com.spring.ioc
interface BeanDefinitionReader {
fun loadBeanDefinition(location: String)
}
| 0 | Kotlin | 0 | 0 | f0bc4827a57897515cf4a6dbd1a43a4bd0628c1f | 104 | tiny-spring-kotlin | Apache License 2.0 |
ECommerceApp/app/src/main/java/com/android/ecommerceapp/model/enums/MessageType.kt | oguzhansatilmis | 746,560,331 | false | {"Kotlin": 26141} | package com.android.ecommerceapp.model.enums
enum class MessageType {
SUCCESS,ERROR,WARNING
} | 0 | Kotlin | 0 | 0 | 3cf784cf3bab132c3cc892f655cbab93c7506f07 | 98 | E-Commerce-App | MIT License |
app/src/main/java/br/com/joaovq/mydailypet/reminder/presentation/viewmodel/ReminderViewModel.kt | joaovq | 650,739,082 | false | {"Kotlin": 326547, "Ruby": 1076} | package br.com.joaovq.mydailypet.reminder.presentation.viewmodel
import androidx.lifecycle.viewModelScope
import br.com.joaovq.core.util.intent.ValidateState
import br.com.joaovq.mydailypet.reminder.presentation.viewintent.ReminderIntent
import br.com.joaovq.mydailypet.reminder.presentation.viewstate.ReminderState
imp... | 1 | Kotlin | 0 | 0 | ce80c4b481c996fc02c0f22689954edf8154d588 | 4,382 | MyDailyPet | MIT License |
app/src/main/java/com/minosai/oneclick/ui/preferences/OneClickPreferencesFragment.kt | devshaaran | 175,267,743 | true | {"Kotlin": 88321} | package com.minosai.oneclick.ui.preferences
import android.app.Activity
import android.os.Bundle
import androidx.navigation.Navigation.findNavController
import androidx.preference.EditTextPreference
import androidx.preference.Preference
import androidx.preference.PreferenceFragmentCompat
import com.minosai.oneclick.R
... | 0 | Kotlin | 1 | 0 | e1dd0d5c7afeb3ba2f9b988d6fc88917a48224a6 | 1,030 | One-Click | Apache License 2.0 |
src/main/kotlin/com/github/borgoat/markovaldo/MarkovChainBuilder.kt | borgoat | 487,199,974 | false | {"Kotlin": 17320, "Nix": 97} | package com.github.borgoat.markovaldo
import kotlinx.atomicfu.AtomicLong
import kotlinx.atomicfu.atomic
class MarkovChainBuilder(val scanner: Scanner = Scanner(), val order: Int = 3) {
private val probs = mutableMapOf<List<Token>, MutableMap<Token, AtomicLong>>()
fun add(text: CharSequence) {
val tok... | 0 | Kotlin | 0 | 0 | 21a0b723cc7e0d8f002aef885d49900beccc11a8 | 1,101 | markovaldo | MIT License |
app/src/main/java/com/jonareas/rentapp/data/dao/HouseDao.kt | soymegh | 434,097,806 | false | null | package com.jonareas.rentapp.data.dao
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Query
import com.jonareas.rentapp.data.model.House
@Dao
abstract class HouseDao :BaseDao<House> {
@Query("SELECT * FROM house")
abstract fun getAll(): LiveData<List<House>>
} | 0 | Kotlin | 0 | 0 | 6fa758b84bece723d05546cebcf65449dcc9aaaf | 303 | NewRentApp | MIT License |
features/addneew/src/main/java/me/pitok/addneew/di/builder/AddNeewsComponentBuilder.kt | hamedsj | 287,844,014 | false | null | package me.pitok.addneew.di.builder
import me.pitok.addneew.di.components.AddNeewsComponent
import me.pitok.addneew.di.components.DaggerAddNeewsComponent
import me.pitok.androidcore.builder.AndroidCoreComponentBuilder
import me.pitok.coroutines.di.builder.CoroutinesComponentBuilder
import me.pitok.dependencyinjection.... | 0 | Kotlin | 3 | 11 | c94f16608febecb17edeb4bd6798dbe6b741d56c | 821 | GoodNews | Apache License 2.0 |
z2-boot/src/commonMain/kotlin/hu/simplexion/z2/auth/util/password.kt | spxbhuhb | 665,463,766 | false | {"Kotlin": 1313600, "CSS": 126893, "Java": 8222, "HTML": 1560, "JavaScript": 975} | package hu.simplexion.z2.auth.util
import hu.simplexion.z2.auth.model.PasswordCheck
import hu.simplexion.z2.auth.model.SecurityPolicy
fun SecurityPolicy.policyErrors(newPassword: String): MutableList<PasswordCheck> {
val errors = mutableListOf<PasswordCheck>()
if (passwordLengthMinimum != 0 && newPassword.le... | 0 | Kotlin | 0 | 1 | 8e6ca51d1ff452643ba43f83877285534f5059d6 | 1,287 | z2 | Apache License 2.0 |
data/src/main/java/com/luckhost/data/network/retrofit/ApiService.kt | LuckHost | 818,856,648 | false | {"Kotlin": 71125} | package com.luckhost.data.network.retrofit
import com.luckhost.data.network.dto.AccountAnswerBody
import com.luckhost.data.network.dto.AccountParams
import com.luckhost.data.network.dto.CreateNoteRequest
import com.luckhost.data.network.dto.LoginAnswerBody
import com.luckhost.data.network.dto.LoginRequest
import com.l... | 0 | Kotlin | 0 | 0 | 0afba24df78091364cfdc549becd554e884c8dd3 | 1,814 | anynote_android | The Unlicense |
app/src/main/java/com/example/job_seeker/domain/usecase/validator/auth/MatchingPasswordValidatorUseCase.kt | Lasha-Ilashvili | 783,891,258 | false | {"Kotlin": 68837} | package com.example.job_seeker.domain.usecase.validator.auth
import com.example.job_seeker.R
import javax.inject.Inject
class MatchingPasswordValidatorUseCase @Inject constructor() {
operator fun invoke(password: String, matchingPassword: String): Pair<Boolean, Int> =
(password == matchingPassword) to ... | 0 | Kotlin | 0 | 0 | ad7fef56994ccc367e1ab47305f6f8085bd9d9a6 | 354 | Job_Seeker | The Unlicense |
src/main/kotlin/org/crystal/intellij/psi/CrEnum.kt | asedunov | 353,165,557 | false | null | package org.crystal.intellij.psi
import com.intellij.lang.ASTNode
import org.crystal.intellij.parser.CR_ENUM_DEFINITION
import org.crystal.intellij.stubs.api.CrEnumStub
class CrEnum : CrModuleLikeDefinition<CrEnum, CrEnumStub>, CrSuperTypeAware {
constructor(stub: CrEnumStub) : super(stub, CR_ENUM_DEFINITION)
... | 15 | Kotlin | 3 | 30 | 5dc69f80df256131bbca575ac0e0f3d05e12965f | 435 | intellij-crystal-lang | Apache License 2.0 |
src/serverMain/kotlin/money/tegro/market/server/repository/RoyaltyRepository.kt | TegroTON | 491,519,429 | false | {"Kotlin": 198445, "HTML": 3914, "JavaScript": 2388, "Dockerfile": 242} | package money.tegro.market.server.repository
import io.github.reactivecircus.cache4k.Cache
import money.tegro.market.contract.nft.RoyaltyContract
import money.tegro.market.server.service.ReferenceBlockService
import money.tegro.market.toRaw
import mu.KLogging
import org.kodein.di.DI
import org.kodein.di.DIAware
import... | 11 | Kotlin | 4 | 0 | bd82acf423a4d4e1a00c3eac6347aa7cf18eee5f | 1,438 | TON-Marketplace-NFT-All | MIT License |
spirala1/app/src/main/java/ba/etf/rma23/projekat/MainActivity.kt | afrljak1 | 668,739,940 | false | null | package ba.etf.rma23.projekat
import android.content.Context
import android.content.IntentFilter
import android.content.res.Configuration
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.s... | 0 | Kotlin | 0 | 1 | a512cf5e292f9ace30ed93b723979ec634ca4d11 | 2,307 | RMA | MIT License |
component/http-service-impl/src/main/kotlin/mikufan/cx/vtool/component/httpser/impl/api/VocaDbSongByPvApi.kt | CXwudi | 748,516,931 | false | {"Kotlin": 70236} | package mikufan.cx.vtool.component.httpser.impl.api
import com.fasterxml.jackson.databind.JsonNode
import mikufan.cx.vtool.shared.model.vocadb.PvService
import org.springframework.web.bind.annotation.RequestParam
import org.springframework.web.service.annotation.GetExchange
import org.springframework.web.service.annot... | 2 | Kotlin | 0 | 0 | f196755387d2f50c58d4078cef4b2341ff4e0875 | 817 | vsonglist-toolkit | MIT License |
Edu-Cpp/testSrc/com/jetbrains/edu/cpp/CppUtilTest.kt | aspineon | 271,016,030 | true | {"Kotlin": 2436418, "Java": 626749, "HTML": 131922, "CSS": 12844, "Python": 3994, "JavaScript": 315} | package com.jetbrains.edu.cpp
import com.intellij.psi.PsiFileFactory
import com.jetbrains.cmake.CMakeLanguage
import com.jetbrains.edu.coursecreator.CCTestCase
class CppUtilTest : CCTestCase() {
private fun findCMakeCommandTestBase(cMakeFile: String, commandName: String, shouldFind: Boolean = true) {
val mockPs... | 0 | null | 0 | 0 | ccb9d1072da3d214e0c03914b13af36c14f56bce | 1,472 | educational-plugin | Apache License 2.0 |
src/Day05/Day05.kt | suttonle24 | 573,260,518 | false | {"Kotlin": 26321} | package Day05
import readInput
fun main() {
fun getStacks(input: List<String>): ArrayDeque<ArrayDeque<Char>> {
val itr = input.listIterator();
var stacks = ArrayDeque<ArrayDeque<Char>>();
for ((i, line) in itr.withIndex()) {
val lineArray = line.toCharArray();
va... | 0 | Kotlin | 0 | 0 | 039903c7019413d13368a224fd402625023d6f54 | 4,836 | AoC-2022-Kotlin | Apache License 2.0 |
Explore/Learn/Introduction to Data Structure/Binary Tree/Binary Tree Level Order Traversal/LevelTraversal.kt | xuedong | 189,745,542 | false | {"Kotlin": 332182, "Java": 290109, "Python": 206027, "Rust": 82753, "C++": 71067, "Go": 37320, "JavaScript": 12030, "Ruby": 3367, "C": 3121, "C#": 3117, "Swift": 2876, "Scala": 2868, "TypeScript": 2134, "Shell": 149, "Elixir": 130, "Racket": 107, "Erlang": 96, "Dart": 65} | /**
* Example:
* var ti = TreeNode(5)
* var v = ti.`val`
* Definition for a binary tree node.
* class TreeNode(var `val`: Int) {
* var left: TreeNode? = null
* var right: TreeNode? = null
* }
*/
class Solution {
fun levelOrder(root: TreeNode?): List<List<Int>> {
if (root == null) return emp... | 0 | Kotlin | 0 | 1 | a96d39cd0217f2e8b4e43b8c0472e30c3bb0ad44 | 982 | leet-code | MIT License |
natureremocontroller/src/main/java/com/fishwaffle/natureremo/controller/models/SensorValue.kt | Fishwaffle | 160,526,858 | false | null | /*
* Copyright (c) 2019 FishWaffle.
*/
package com.fishwaffle.natureremo.controller.models
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import com.fishwaffle.natureremo.controller.NatureRemo.isIgnoreUnknown
import java.io.Serializable
/** センサーの値
... | 0 | Kotlin | 1 | 0 | 00424daa4034e4f546146195168215985492149d | 527 | NatureRemoTaskerPlugin | MIT License |
app/src/main/java/com/mahmutalperenunal/flagquiz/model/FlagsModel.kt | mahmutaunal | 726,414,523 | false | {"Kotlin": 18490} | package com.mahmutalperenunal.flagquiz.model
data class FlagsModel(
val id: Int,
val countryName: String,
val flagName: String
) | 0 | Kotlin | 0 | 0 | da56c74c186f5c3176b5ec841267f4c05ba29a72 | 141 | FlagQuizGame | MIT License |
app/src/main/java/com/example/damian/loginapp/DatabaseHelper.kt | dBanasiak | 153,232,821 | false | null | package com.example.damian.loginapp
import android.content.ContentValues
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
class DatabaseHelper(context: Context):SQLiteOpenHelper(context, dbname, factory, version) {
override fun onCreate(d... | 0 | Kotlin | 0 | 0 | dc74b350acc4ef0fdeaff109f2ffdd612d7e8785 | 1,549 | AndroidNotepad | Apache License 2.0 |
Kotlin/app/src/main/java/dk/coded/emia/View/MyAppGlideModule.kt | SKrotkih | 121,634,559 | false | {"Java": 225271, "Kotlin": 211055, "Shell": 1038} | package dk.coded.emia.View
import com.bumptech.glide.annotation.GlideModule
import com.bumptech.glide.module.AppGlideModule
@GlideModule
class MyAppGlideModule : AppGlideModule()
| 1 | Java | 1 | 2 | c277bd010388a8d4f03292e4f2d645c43f9d9dac | 181 | eMia-Android | MIT License |
plugin/src/main/kotlin/com/teamwanari/appcenter/AppCenterPlugin.kt | TeamWanari | 152,721,994 | false | null | package com.teamwanari.appcenter
import org.gradle.api.Plugin
import org.gradle.api.Project
class AppCenterPlugin : Plugin<Project> {
override fun apply(project: Project) {
project.extensions.create(APP_CENTER_EXTENSION, AppCenterPluginExtension::class.java)
project.tasks.create("appCenterUpload",... | 4 | Kotlin | 8 | 15 | ba1aa9217edcadcbe5a0f85b932fc7aa6b391c6b | 362 | appcenter-publish-plugin | MIT License |
app/src/main/java/com/mokresh/analyticsdashboard/models/Value.kt | MohammedMokresh | 259,672,680 | false | null | package com.mokresh.analyticsdashboard.models
import com.google.gson.annotations.SerializedName
data class Value(
@SerializedName("key")
val key: String,
@SerializedName("value")
val value: Int
) | 0 | Kotlin | 0 | 0 | b5c81b900ceee655bb4442042d292fd49b3a6912 | 214 | Analytic-Dashboard | Apache License 2.0 |
kotlin-sdk/kotlin/src/main/kotlin/io/logto/sdk/core/http/HttpGet.kt | logto-io | 397,657,445 | false | null | package io.logto.sdk.core.http
import com.google.gson.JsonSyntaxException
import io.logto.sdk.core.exception.ResponseException
inline fun <reified T : Any> httpGet(
uri: String,
headers: Map<String, String>?,
completion: HttpCompletion<T>,
) {
httpGet(uri, headers) httpRawGet@{ throwable, response ->
... | 2 | null | 6 | 7 | a567276291eabb4a4136bd9b4161474311a9a28e | 1,293 | kotlin | MIT License |
evervault-common/src/test/java/com/evervault/sdk/common/utils/getEnv.kt | evervault | 650,073,299 | false | {"Kotlin": 322869, "Java": 1240, "Shell": 273} | package com.evervault.sdk.common.utils
fun getenv(key: String): String = System.getenv(key) | 2 | Kotlin | 1 | 4 | 89c0cb593ec4d43f5c0befd279aee2742329ab95 | 92 | evervault-android | MIT License |
backend/src/main/kotlin/com/guysrobot/muxlive/model/Comment.kt | GuysRGithub | 576,203,426 | false | null | package com.guysrobot.muxlive.model
import com.guysrobot.muxlive.dto.CommentDto
import org.springframework.data.annotation.Id
import org.springframework.data.mongodb.core.mapping.Document
import java.util.UUID
@Document(value = "Comment")
data class Comment(
@Id
private val id: String = UUID.randomUUID().toSt... | 0 | Kotlin | 0 | 0 | 96ce751bc91729ba90883b23fecf4631fdf6e74c | 560 | MuxLive | Apache License 2.0 |
app/src/main/java/io/agapps/motchecker/MainActivity.kt | AlexMGreen | 484,774,505 | false | null | package io.agapps.motchecker
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.ui.Modifier
... | 0 | Kotlin | 0 | 0 | fc190a765d904f9ff18f0720ba9b7398edc6d29b | 1,116 | mot-checker | Apache License 2.0 |
app/src/main/kotlin/pro/respawn/flowmvi/sample/view/NoBaseClassViewModel.kt | respawn-app | 477,143,989 | false | null | package pro.respawn.flowmvi.sample.view
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.delay
import pro.respawn.flowmvi.ActionShareBehavior
import pro.respawn.flowmvi.ReducerScope
import pro.respawn.flowmvi.launchedStore
import pro.respawn.flowmvi.sample.R
import... | 0 | Kotlin | 0 | 5 | e5e85ab1344eff1e43e53218b86a5f27280f3a9a | 2,019 | FlowMVI | Apache License 2.0 |
basick/src/main/java/com/mozhimen/basick/utilk/datatype/UtilKCollections.kt | mozhimen | 353,952,154 | false | null | package com.mozhimen.basick.utilk.datatype
/**
* @ClassName UtilKCollections
* @Description TODO
* @Author mozhimen / <NAME>
* @Date 2022/11/27 0:24
* @Version 1.0
*/
object UtilKCollections {
/**
* 将一个Collection的Item中的某个Element组合起来成一个新Collection
* @param iterable Iterable<T>
* @param predica... | 0 | Kotlin | 0 | 2 | 5077b41303c564a4f7acd8e7df03133ebf1e04f2 | 2,299 | SwiftKit | Apache License 2.0 |
JBossLoggingElasticsearchLogger/src/main/kotlin/net/codinux/log/elasticsearch/errorhandler/JBossLoggingErrorHandler.kt | codinux-gmbh | 399,611,177 | false | null | package net.codinux.log.elasticsearch.errorhandler
import org.jboss.logmanager.Level
import org.jboss.logmanager.Logger
open class JBossLoggingErrorHandler(loggerName: String) : ErrorHandler {
constructor() : this(JBossLoggingErrorHandler::class.java)
constructor(loggerClass: Class<*>) : this(loggerClass.n... | 0 | Kotlin | 0 | 0 | 6bf928523a7c0e788a27b42e89e712c46029e2c5 | 573 | ElasticsearchLogger | Apache License 2.0 |
app/src/main/java/com/agenda/up/DatePickerFragment.kt | Araujo-Alisson | 596,383,449 | false | null | package com.agenda.up
import android.app.DatePickerDialog
import android.app.Dialog
import android.os.Bundle
import android.widget.DatePicker
import androidx.fragment.app.DialogFragment
import java.util.Calendar
class DatePickerFragment(val callback: (year:String,month:String,dayofmonth:String) -> Unit): DialogFragme... | 1 | Kotlin | 0 | 0 | 1a74801e3a82982d024fb85defa664396ade2eb9 | 940 | Up | Apache License 2.0 |
src/main/kotlin/info/cepheus/axon/infrastructure/transaction/jta/JtaTransactionManager.kt | cepheus-info | 428,205,383 | false | null | package info.cepheus.axon.infrastructure.transaction.jta
import org.axonframework.common.transaction.Transaction
import org.axonframework.common.transaction.TransactionManager
import java.util.logging.Logger
import javax.transaction.Status
import javax.transaction.SystemException
import javax.transaction.TransactionSy... | 0 | Kotlin | 0 | 0 | 64decafdee0c0eb5ad8617366d7b6e241aa7d5d0 | 2,488 | cepheus_axon_extension | MIT License |
app/src/main/java/com/mhss/app/mynews/ui/MainActivity.kt | mhss1 | 435,140,771 | false | {"Kotlin": 47296} | package com.mhss.app.mynews.ui
import android.content.SharedPreferences
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatDelegate
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupWithNavControl... | 0 | Kotlin | 2 | 5 | d467ae36adc2f1ef8225052f7d25512f7465f0ab | 3,736 | MyNews | Apache License 2.0 |
android-common/src/main/java/com/cren90/android/common/inject/modules/ResourceModule.kt | dfyz8-g | 527,884,279 | false | {"Kotlin": 154083} | package com.cren90.android.common.inject.modules
import com.cren90.android.common.providers.resources.*
import com.cren90.android.common.providers.system.AndroidSystemProvider
import com.cren90.android.common.providers.system.DateFormatProvider
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
impo... | 0 | null | 0 | 0 | 80aee8afce6ef6cf87fb71c1c5c4c88f0f9fe162 | 1,482 | android-core-libs | Apache License 2.0 |
src/main/kotlin/watch/gnag/website/routes/SiteRouter.kt | btkelly | 78,223,124 | false | {"Kotlin": 20000, "HTML": 10377, "CSS": 4700, "JavaScript": 1332} | package watch.gnag.website.routes
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.web.reactive.function.server.router
import watch.gnag.website.handlers.SiteHandler
@Configuration
class SiteRouter(private val siteHandler: SiteHa... | 0 | Kotlin | 0 | 2 | 2eb9fe41c442329891ef2f4d24d879c523c27b86 | 473 | gnag-website | Apache License 2.0 |
scientist4k-core/src/main/kotlin/com/github/squirrelgrip/scientist4k/core/model/sample/Sample.kt | SquirrelGrip | 247,915,957 | true | {"Kotlin": 234965, "JavaScript": 2164, "HTML": 1653, "CSS": 930} | package com.github.squirrelgrip.scientist4k.core.model.sample
import com.fasterxml.jackson.annotation.JsonProperty
import com.github.squirrelgrip.scientist4k.core.model.ExperimentOption
import java.time.Instant
import java.util.*
data class Sample(
@JsonProperty("id")
val id: String,
@JsonProperty("sample... | 0 | Kotlin | 0 | 2 | 5c88eb2bf0275c1c8ad139a78c9a1222f499ce4e | 895 | Scientist4K | MIT License |
document/document-rpc-bootstrap/src/test/kotlin/org/myddd/vertx/document/bootstrap/TestGuiceModule.kt | mydddOrg | 394,499,704 | false | null | package org.myddd.vertx.document.bootstrap
import io.vertx.core.Vertx
import org.myddd.vertx.distributed.application.DistributedIdApplication
import org.myddd.vertx.document.application.DocumentApplication
import org.myddd.vertx.document.domain.DistributeID
import org.myddd.vertx.document.domain.DocumentRepository
imp... | 0 | Kotlin | 0 | 4 | 42557972bbecc6f2a15a324e2deffdf254182ff0 | 961 | myddd-vertx-micro-scaffold | MIT License |
tests/src/test/kotlin/io/github/mirkofelice/plugins/AbstractTest.kt | mirko-felice | 634,173,598 | false | null | package io.github.mirkofelice.plugins
import io.github.mirkofelice.api.CheckerType
import io.github.mirkofelice.api.Testkit
import io.kotest.core.spec.style.StringSpec
abstract class AbstractTest(body: StringSpec.() -> Unit) : StringSpec(body)
private const val projectName = "tests"
internal fun Testkit.runTestsIns... | 2 | Kotlin | 0 | 0 | 813ad27aa566971e5c509dd547bbd3594db6c113 | 556 | gradle-plugin-testkit | MIT License |
app/src/main/java/com/noble/news/model/entity/Category.kt | NobleXL | 509,033,346 | false | {"Kotlin": 125083} | package com.noble.news.model.entity
/**
* @author 小寒
* @version 1.0
* @date 2022/7/1 11:11
*/
/**
* 分类
*
* @property title
*/
data class Category(
val title: String,
val id: String
)
/**
* Category Response
*
* @property data List<Category>
* @constructor
*/
data class CategoryResponse(var data:... | 0 | Kotlin | 0 | 0 | 41cd4f60d71ff5696dd4035826698bf7ff3a6a44 | 358 | News | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/hmpps/architecture/model/HMPPSDomainEvents.kt | ministryofjustice | 272,753,130 | false | {"Kotlin": 197063, "Shell": 1167} | package uk.gov.justice.hmpps.architecture.model
import com.structurizr.model.Model
import com.structurizr.model.SoftwareSystem
import com.structurizr.view.ViewSet
import uk.gov.justice.hmpps.architecture.HMPPSSoftwareSystem
import uk.gov.justice.hmpps.architecture.annotations.Tags
class HMPPSDomainEvents private cons... | 5 | Kotlin | 3 | 17 | fa0cdff7ca4679a9a5d223b0213a8899d955c057 | 842 | hmpps-architecture-as-code | MIT License |
clouddriver-saga/src/main/kotlin/com/netflix/spinnaker/clouddriver/saga/util.kt | perek | 156,259,199 | false | null | /*
* Copyright 2019 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 1 | null | 1 | 1 | a6122b1121f70abf3936c9589bbbcff716124e02 | 1,171 | clouddriver | Apache License 2.0 |
layout-ui/src/main/java/com/android/tools/property/panel/impl/support/ImageFocusListener.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | Kotlin | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,245 | android | Apache License 2.0 |
common/src/main/java/com/yuriikonovalov/common/application/usecases/datasources/DeleteTransferSource.kt | yuriikonovalov | 563,974,428 | false | {"Kotlin": 872022} | package com.yuriikonovalov.common.application.usecases.datasources
import com.yuriikonovalov.common.application.entities.Transfer
import kotlinx.coroutines.flow.Flow
interface DeleteTransferSource {
suspend fun deleteTransfer(transferId: Long)
fun getTransfer(transferId: Long): Flow<Transfer?>
} | 0 | Kotlin | 0 | 0 | 8063508f836512fc8f8a0ba18f794bb895ee2449 | 306 | budgethub | MIT License |
src/main/java/io/outfoxx/typescriptpoet/DecoratorSpec.kt | outfoxx | 121,184,058 | false | null | /*
* Copyright 2017 Outfox, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 2 | 36 | 8036c156e3f1d6a4542c45a469a5dad9b7923abc | 2,540 | typescriptpoet | Apache License 2.0 |
composeApp/src/commonMain/kotlin/util/extension/Flow.kt | KamilSucharski | 783,215,410 | false | {"Kotlin": 39364, "Swift": 594} | package util.extension
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.filter
import kotlinx.coroutines.flow.map
inline fun <T> Flow<T?>.filterNotNull(): Flow<T> {
return filter { it != null }
.map { it!! }
} | 0 | Kotlin | 0 | 0 | 5c958505d3f770a2afd27c3ee4597d168faecfac | 241 | i_am_steve_kmm | Apache License 2.0 |
src/main/kotlin/decima/Intellijdbc.kt | decimalib | 757,054,145 | false | {"Kotlin": 5849} | package decima
import java.sql.CallableStatement
import java.sql.Connection
import java.sql.PreparedStatement
import java.sql.ResultSet
import java.sql.Statement
/**
* Ensures the [transaction] block received is executed as a single unit of work. Atomic transactions
* ensure that either all the SQL statements withi... | 0 | Kotlin | 0 | 0 | f8d521005b6c8d864bdf02f69d3019e6b3d4fc17 | 5,849 | intellijdbc | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.