path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/schibsted/elephant/android/ui/challenge/ChallengeFragment.kt | ElephantTeam | 267,237,784 | false | null | package com.schibsted.elephant.android.ui.challenge
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.n... | 5 | Kotlin | 0 | 0 | 628e195fb785efeef3471cec73b20bd88b9df6c5 | 1,828 | backend-android | Apache License 2.0 |
app/src/main/java/com/taqucinco/pokemon_sample/feature/database/DatabaseFactory.kt | taqucinco-com | 735,229,218 | false | {"Kotlin": 113444} | package com.taqucinco.pokemon_sample.feature.database
interface DatabaseFactory {
/**
* データベースを生成する
*
* @return データベース
*/
fun build(): AppDatabase
}
| 6 | Kotlin | 0 | 1 | c8e1ac968c331b832312ed36292855a097d54014 | 178 | pokemon_sample | Apache License 2.0 |
app/src/main/java/com/shevelev/wizard_camera/gallery_activity/di/GalleryActivityModuleChilds.kt | AndroidSourceTools | 339,484,028 | true | {"Kotlin": 259308, "GLSL": 32096, "Java": 3377} | package com.shevelev.wizard_camera.gallery_activity.di
import com.shevelev.wizard_camera.gallery_page.di.GalleryPageFragmentComponent
import dagger.Module
@Module(subcomponents = [
GalleryPageFragmentComponent::class
])
class GalleryActivityModuleChilds | 0 | null | 0 | 0 | 496cbc68749258d085734c6d0a724efa7a3b3d24 | 259 | WizardCamera | Apache License 2.0 |
custom-change-core/src/main/kotlin/momosetkn/liquibase/kotlin/change/custom/core/ChangeSetDslExtensions.kt | momosetkn | 844,062,460 | false | {"Kotlin": 499731, "Java": 178} | package momosetkn.liquibase.kotlin.change.custom.core
import liquibase.change.custom.CustomChange
import liquibase.change.custom.CustomChangeWrapper
import liquibase.change.custom.setCustomChange
import momosetkn.liquibase.kotlin.dsl.ChangeSetDsl
fun ChangeSetDsl.addCustomChange(change: CustomChange) {
val custom... | 5 | Kotlin | 1 | 5 | d47b2dd7f585f3aa563e86ab52242e0b5d2ffaad | 512 | liquibase-kotlin | Apache License 2.0 |
src/main/kotlin/org/skellig/plugin/language/teststep/psi/SkelligTestStepParserDefinition.kt | skellig-framework | 309,154,374 | false | {"Kotlin": 219539, "Lex": 2218} | package org.skellig.plugin.language.teststep.psi
import com.intellij.lang.ASTNode
import com.intellij.lang.ParserDefinition
import com.intellij.lang.PsiParser
import com.intellij.lexer.Lexer
import com.intellij.openapi.project.Project
import com.intellij.psi.FileViewProvider
import com.intellij.psi.PsiElement
import c... | 0 | Kotlin | 0 | 1 | 1f99c61d6c5deb44d684e98a413d9f991b9b2da7 | 2,250 | skellig-intellij-plugin | Apache License 2.0 |
libs/lib_security/src/main/java/com/bael/kirin/lib/security/constant/SchemeConstant.kt | ErickSumargo | 282,614,741 | false | null | package com.bael.kirin.lib.security.constant
/**
* Created by ErickSumargo on 01/06/20.
*/
const val SCHEME_AES: String = "AES"
| 0 | Kotlin | 4 | 20 | 2b3703036ce17d3e46c81bdf66986d83b4ac2517 | 132 | Kirin | MIT License |
tunneler/src/main/kotlin/com/salesforce/pomerium/CredentialStore.kt | salesforce | 653,799,146 | false | {"Kotlin": 60574} | package com.salesforce.pomerium
typealias CredentialKey = String
interface CredentialStore {
fun getToken(key: CredentialKey): String?
fun setToken(key: CredentialKey, jwt: String)
fun clearToken(key: CredentialKey)
} | 0 | Kotlin | 2 | 9 | 6efc8b1aa762c651d9a2912eb8507c0efe3d2969 | 231 | secure-pomerium-tunneler | Apache License 2.0 |
module_views/src/main/java/com/silencefly96/module_views/custom/LeftDeleteItemLayout.kt | silencefly96 | 383,359,654 | false | {"Kotlin": 661457, "Java": 143190, "Groovy": 7800} | @file:Suppress("unused")
package com.silencefly96.module_views.custom
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Color
import android.os.Build
import android.util.AttributeSet
import android.util.Log
import android.util.TypedValue
import android.view.Gravity
import a... | 0 | Kotlin | 2 | 7 | 716c03159ae773fe4a545642899573378c1651a9 | 6,294 | fundark | Apache License 2.0 |
src/test/kotlin/ParserTest.kt | booleworks | 497,876,711 | false | null | import com.booleworks.packagesolver.io.parse
import org.assertj.core.api.Assertions.assertThat
import kotlin.test.Test
internal class ParserTest {
@Test
fun testParser() {
val problem = parse("src/test/resources/small-test.cudf")
assertThat(problem.allPackages()).hasSize(9)
assertThat... | 0 | Kotlin | 0 | 0 | e99b2e19599720866a0172b5c30047d37862343c | 475 | package-solving-poc | MIT License |
src/main/kotlin/org/hiatusuk/obsidian/web/utils/EncodeUtils.kt | poblish | 612,371,934 | false | null | package org.hiatusuk.obsidian.web.utils
import org.hiatusuk.obsidian.utils.StringUtils.replace
object EncodeUtils {
fun fixQueryEncoding(inUrl: String): String {
val qIdx = inUrl.indexOf('?')
if (qIdx < 0) {
return inUrl
}
val qStr = replace(replace(inUrl.substring(qI... | 0 | Kotlin | 0 | 0 | 67a62560c865de0fd751365b091bfb60b5f12f34 | 414 | obsidian | Apache License 2.0 |
pbtx-android-module/src/androidTest/java/com/pbtx/PbtxClientTest.kt | fixpayments | 454,709,009 | false | null | package com.pbtx
import android.util.Log
import androidx.test.runner.AndroidJUnit4
import com.pbtx.utils.PbtxUtils
import org.junit.*
import org.junit.rules.ExpectedException
import org.junit.runner.RunWith
import java.util.*
/**
* Test class for [ekisAndroidKeyStoreSignatureProvider]
*/
@RunWith(AndroidJUnit4::cla... | 0 | Kotlin | 5 | 0 | f80a9fc19e539076197130c3d14143e0ae205ea5 | 2,490 | pbtx_android | Apache License 2.0 |
src/main/java/net/bloople/allblockvariants/Creator.kt | bloopletech | 517,354,828 | false | {"Kotlin": 949167, "Java": 2067} | package net.bloople.allblockvariants
import net.fabricmc.api.EnvType
import net.fabricmc.api.Environment
interface Creator {
fun createCommon()
@Environment(value= EnvType.CLIENT)
fun createClient(builder: ResourcePackBuilder)
fun createServer(builder: ResourcePackBuilder)
fun getBlockInfo(): Bloc... | 0 | Kotlin | 0 | 0 | 1e424795b6bc6a85d7a7c246cf36579d6f389fea | 328 | allblockvariants | MIT License |
FilmSearch/app/src/main/java/com/example/filmsearch/view/fragments/SelectionsFragment.kt | skripkalisa | 442,273,516 | false | null | package com.example.filmsearch.view.fragments
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.filmsearch.databinding.FragmentSelectionsBinding
import com.example.filmsearch.utils.AnimationHelper
... | 0 | Kotlin | 0 | 0 | 1ce519b6d07a0c5ab37f10f5fe3b9cddf03ac964 | 1,023 | SF_Android_proc | Apache License 2.0 |
src/test/kotlin/university/com/api/CartApiTest.kt | ShockJake | 840,829,722 | false | {"Kotlin": 129824, "Python": 4936, "Dockerfile": 1229, "Shell": 1129, "HTML": 122} | package university.com.api
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import io.ktor.client.request.delete
import io.ktor.client.request.get
import io.ktor.client.request.header
import io.ktor.client.request.put
import io.ktor.client.request.setB... | 0 | Kotlin | 0 | 0 | 92ca312ba364242aa8301e023bed99b3ff589cf7 | 9,477 | kotlin-library-backend | Apache License 2.0 |
elasticsearch/src/main/kotlin/io/qalipsis/plugins/elasticsearch/mget/ElasticsearchMultiGetStepSpecificationConverter.kt | qalipsis | 428,400,562 | false | null | /*
* Copyright 2022 AERIS IT Solutions GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 0 | Kotlin | 0 | 0 | 652e09729f6e8703f319ec30196a6ecac14b41d6 | 3,449 | qalipsis-plugin-elasticsearch | Apache License 2.0 |
app/src/main/java/com/infusionsofgrandeur/lootraider/GameObjects/Platform.kt | ecrichlow | 448,751,860 | false | null | package com.infusionsofgrandeur.lootraider.GameObjects
import java.util.Date
import kotlin.math.abs
import kotlin.experimental.and
import android.widget.ImageView
import com.infusionsofgrandeur.lootraider.Managers.ConfigurationManager
import com.infusionsofgrandeur.lootraider.Managers.SpriteManager
import com.infus... | 0 | Kotlin | 0 | 0 | aed17ddc1bf8bc8961be735cfa57f0a976a4a876 | 14,220 | LootRaiderAndroid_OS | Apache License 2.0 |
src/main/kotlin/no/nav/pensjon/kalkulator/avtale/PensjonsavtaleService.kt | navikt | 596,104,195 | false | null | package no.nav.pensjon.kalkulator.avtale
import no.nav.pensjon.kalkulator.avtale.api.dto.PensjonsavtaleSpecDto
import no.nav.pensjon.kalkulator.avtale.api.dto.UttaksperiodeSpecDto
import no.nav.pensjon.kalkulator.avtale.client.PensjonsavtaleClient
import no.nav.pensjon.kalkulator.avtale.client.np.PensjonsavtaleSpec
im... | 1 | Kotlin | 0 | 0 | a642602ae4997fb9d88f97464a85a6c3d9c33a89 | 3,357 | pensjonskalkulator-backend | MIT License |
Modulo_01_Estruturas_Basicas/M01A05VariaveisConstantes/src/M01A05VariaveisConstantes.kt | FilipeMGaspar | 465,803,176 | false | null | fun main(args: Array<String>) {
var nome:String = "Gustavo"
val idade:Short = 40 //val define como constante ou seja o valor não altera durante a execução do ´codigo
var peso:Float = 95.8F //Float termina com F
var numGrande:Long = 5_000_000L //Long termina co L
//idade = 41;
print("O seu no... | 0 | Kotlin | 0 | 0 | 3c820bb3f069ccdd4a36324180bcb1c1d113cb83 | 742 | kotlin_Estudonauta | MIT License |
plugin/src/main/kotlin/ru/astrainteractive/telegrambridge/utils/Files.kt | Astra-Interactive | 584,452,095 | false | null | package ru.astrainteractive.telegrambridge.utils
import ru.astrainteractive.astralibs.file_manager.FileManager
/**
* All plugin files such as config.yml and other should only be stored here!
*/
object Files {
val configFile: FileManager = FileManager("config.yml")
} | 0 | Kotlin | 0 | 0 | 20de113860a51863fd77e88e8332601de8a9de9f | 275 | TelegramBridge | MIT License |
plugin/src/main/kotlin/ru/astrainteractive/telegrambridge/utils/Files.kt | Astra-Interactive | 584,452,095 | false | null | package ru.astrainteractive.telegrambridge.utils
import ru.astrainteractive.astralibs.file_manager.FileManager
/**
* All plugin files such as config.yml and other should only be stored here!
*/
object Files {
val configFile: FileManager = FileManager("config.yml")
} | 0 | Kotlin | 0 | 0 | 20de113860a51863fd77e88e8332601de8a9de9f | 275 | TelegramBridge | MIT License |
Application/app/src/main/java/com/demo/code/demos/fromapi/ui/operators/filterOperators/FilterOperatorFragment.kt | devrath | 293,422,796 | false | null | package com.demo.code.demos.fromapi.ui.operators.filterOperators
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.demo.code.demos.fromapi.utilities.Utils.getListOfTasks
import com.demo.code.databinding.Fr... | 0 | Kotlin | 0 | 0 | 47b6f81b45a8d85c7b96a731403afbe2814605f2 | 2,479 | fuzzy-reactive-kotlin | Apache License 2.0 |
columbiad-express-domain/src/test/kotlin/org/craftsrecords/columbiadexpress/domain/search/criteria/CriteriaShould.kt | ArjunDahal864 | 680,370,067 | false | null | package org.craftsrecords.columbiadexpress.domain.search.criteria
import org.assertj.core.api.Assertions.assertThatCode
import org.assertj.core.api.Assertions.assertThatThrownBy
import org.craftsrecords.columbiadexpress.domain.EqualityShould
import org.craftsrecords.columbiadexpress.domain.spaceport.OnEarth
import org... | 0 | Kotlin | 0 | 0 | b06fcef38e8fa258184b91fe52e66100c518c1c1 | 2,568 | hyperlink_based_api | MIT License |
desktop/adapters/src/main/kotlin/com/soyle/stories/repositories/ProjectFileRepository.kt | Soyle-Productions | 239,407,827 | false | null | package com.soyle.stories.repositories
import com.soyle.stories.domain.project.Project
import com.soyle.stories.domain.validation.NonBlankString
import com.soyle.stories.stores.FileStore
import com.soyle.stories.workspace.repositories.FileRepository
import com.soyle.stories.workspace.repositories.ProjectRepository
imp... | 45 | Kotlin | 0 | 9 | 1a110536865250dcd8d29270d003315062f2b032 | 1,597 | soyle-stories | Apache License 2.0 |
app/src/main/java/kr/dagger/chat/base/BaseActivity.kt | 3dagger | 558,649,660 | false | null | package kr.dagger.chat.base
import android.os.Bundle
import androidx.annotation.LayoutRes
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
abstract class BaseActivity<T : ViewDataBinding>(@LayoutRes private val layoutResId: Int) : ... | 0 | Kotlin | 0 | 0 | 6abb4412be4a99067e812fa2d23c89bcafdffb5b | 671 | Chatting | Apache License 2.0 |
src/main/kotlin/org/incoder/completion/androidsearch/GoogleMavenArtifactVersionSearcher.kt | RootCluster | 328,721,649 | true | {"Kotlin": 29227} | package org.incoder.completion.androidsearch
import org.incoder.completion.Client
import org.apache.http.util.TextUtils
import org.xml.sax.Attributes
import org.xml.sax.InputSource
import org.xml.sax.SAXException
import org.xml.sax.helpers.DefaultHandler
import java.util.*
import javax.xml.parsers.SAXParserFactory
ob... | 0 | Kotlin | 0 | 0 | af069472dc0c2f1fdf354ce8e3c522647ba5dc14 | 4,959 | dependencies-completion | MIT License |
newm-server/src/main/kotlin/io/newm/server/features/collaboration/model/CollaboratorFilters.kt | projectNEWM | 447,979,150 | false | null | package io.newm.server.features.collaboration.model
import io.ktor.server.application.ApplicationCall
import io.newm.server.ktx.phrase
import io.newm.server.ktx.songIds
import io.newm.server.ktx.sortOrder
import org.jetbrains.exposed.sql.SortOrder
import java.util.UUID
data class CollaboratorFilters(
val sortOrde... | 2 | Kotlin | 3 | 7 | e76cf0d88f5b160722e32df9a84851c95e9a9fdc | 643 | newm-server | Apache License 2.0 |
mbmobilesdk/src/main/java/com/daimler/mbmobilesdk/vehicleassignment/AssignmentCodeViewModel.kt | rafalzawadzki | 208,997,288 | true | {"Kotlin": 1297852, "Groovy": 4489} | package com.daimler.mbmobilesdk.vehicleassignment
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.MutableLiveData
import com.daimler.mbmobilesdk.R
import com.daimler.mbmobilesdk.utils.extensions.defaultErrorMessage
import com.daimler.mbmobilesdk.utils.extensions.ifVa... | 0 | null | 0 | 0 | 1a924f70fbde5d731cdfde275e724e6343ee6ebe | 5,493 | MBSDK-Mobile-Android | MIT License |
core/usecases/src/main/kotlin/theme/addOppositionToValueWeb/OppositionAddedToValueWeb.kt | Soyle-Productions | 239,407,827 | false | null | package com.soyle.stories.usecase.theme.addOppositionToValueWeb
import java.util.*
open class OppositionAddedToValueWeb(
val themeId: UUID,
val valueWebId: UUID,
val oppositionValueId: UUID,
val oppositionValueName: String,
val needsName: Boolean
) | 45 | Kotlin | 0 | 9 | 1a110536865250dcd8d29270d003315062f2b032 | 270 | soyle-stories | Apache License 2.0 |
services/csm.cloud.project.api.timeseries/src/test/kotlin/com/bosch/pt/csm/cloud/projectmanagement/application/security/PatAuthenticationFilterTest.kt | boschglobal | 805,348,245 | false | {"Kotlin": 13156190, "HTML": 274761, "Go": 184388, "HCL": 158560, "Shell": 117666, "Java": 52634, "Python": 51306, "Dockerfile": 10348, "Vim Snippet": 3969, "CSS": 344} | /*
* ************************************************************************
*
* Copyright: <NAME> Power Tools GmbH, 2018 - 2023
*
* ************************************************************************
*/
package com.bosch.pt.csm.cloud.projectmanagement.application.security
import com.bosch.pt.csm.c... | 0 | Kotlin | 3 | 9 | 9f3e7c4b53821bdfc876531727e21961d2a4513d | 6,240 | bosch-pt-refinemysite-backend | Apache License 2.0 |
app/src/main/kotlin/ru/khiraevmalik/theguardiannews/presentation/main/mvi/Action.kt | Hiraev | 278,637,711 | false | null | package ru.khiraevmalik.theguardiannews.presentation.main.mvi
import ru.khiraevmalik.theguardiannews.base.PagingStatus
import ru.khiraevmalik.theguardiannews.presentation.main.adapter.NewsItem
sealed class Action {
// Actions from user
sealed class User : Action() {
object SearchOpen : User()
... | 0 | Kotlin | 0 | 0 | 19ce6605f1d8c33def4d0a70340c8e75bd4c9a20 | 1,021 | TheGuardianNews | Apache License 2.0 |
classes/src/myInterface.kt | Navachethan-Murugeppa | 287,685,049 | false | null | interface MyInterface {
fun hello() // function without implementation
fun greetings() = println("Hello there")//function with default implementation
} | 0 | Kotlin | 0 | 1 | 69410be5dada2e6a0032f31597242b5ed3ad6a26 | 161 | learn_kotlin | MIT License |
game/src/main/kotlin/gg/rsmod/game/message/handler/OpObj6Handler.kt | AlterRSPS | 421,831,790 | false | null | package gg.rsmod.game.message.handler
import gg.rsmod.game.message.MessageHandler
import gg.rsmod.game.message.impl.OpObj6Message
import gg.rsmod.game.model.ExamineEntityType
import gg.rsmod.game.model.World
import gg.rsmod.game.model.entity.Client
class OpObj6Handler : MessageHandler<OpObj6Message> {
override f... | 8 | Kotlin | 33 | 22 | 9de9acfd3be7353c0c749179b3a7be8aab49b53b | 465 | Alter | Apache License 2.0 |
app/src/main/java/rocks/crownstone/dev_app/MainActivity.kt | crownstone | 147,512,206 | false | null | package rocks.crownstone.dev_app
import android.bluetooth.BluetoothAdapter
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
i... | 0 | Kotlin | 1 | 0 | c1c072c5976edaa1ea1762fecde3d20440599355 | 10,474 | bluenet-android-dev-app | Apache License 2.0 |
src/main/kotlin/com/sourcegraph/cody/agent/protocol/WorkspaceEditMetadata.kt | sourcegraph | 702,947,607 | false | {"Kotlin": 914689, "Java": 201176, "Shell": 4636, "TypeScript": 2153, "Nix": 1122, "JavaScript": 436, "HTML": 294} | package com.sourcegraph.cody.agent.protocol
data class WorkspaceEditMetadata(val isRefactoring: Boolean = false)
| 230 | Kotlin | 16 | 55 | 1eb25809c3e51b64f08e851c8da09778000540c6 | 114 | jetbrains | Apache License 2.0 |
src/main/kotlin/api/func/SetChatPhoto.kt | iseki0 | 195,287,997 | false | {"HTML": 520443, "Kotlin": 390011} | @file:Suppress("RemoveExplicitTypeArguments", "DuplicatedCode", "unused", "SpellCheckingInspection")
package api.func
import ApiContext
import api.*
import io.vertx.core.AsyncResult
import io.vertx.core.Future
/**
* Use this method to set a new profile photo for the chat. Photos can't be changed for private chats. ... | 0 | HTML | 0 | 1 | 1d72031badfcb48f1093b18fafc175679e55fe1e | 1,512 | telebotKt | Do What The F*ck You Want To Public License |
module/data/src/main/kotlin/io/github/siyual_park/data/annotation/ConverterScope.kt | siyual-park | 403,557,925 | false | null | package io.github.siyual_park.data.annotation
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.RUNTIME)
annotation class ConverterScope(
val type: Type
) {
enum class Type {
MONGO,
R2DBC
}
}
| 5 | Kotlin | 0 | 18 | 17203e5b7630bb8279bf6c3cc0f7c4be11ab57ba | 234 | spring-webflux-multi-module-boilerplate | MIT License |
app/src/main/java/com/sunil/kotlincoroutneexample/ui/MainActivity.kt | sunil676 | 182,536,306 | false | null | package com.sunil.kotlincoroutneexample.ui
import android.os.Bundle
import com.sunil.kotlincoroutneexample.R
import com.sunil.kotlincoroutneexample.base.BaseActivity
import com.sunil.kotlincoroutneexample.viewModel.MainViewModel
import org.koin.android.architecture.ext.viewModel
class MainActivity : BaseActivity(){
... | 1 | Kotlin | 0 | 2 | 38700fbca2ee2144644377b938b4fa25d9741e7b | 674 | KotlinCoroutinKoinMvvm | Apache License 2.0 |
app/src/main/java/com/reodeveloper/marvelpay/data/room/RoomDataSource.kt | ReoDeveloper | 155,199,776 | false | null | package com.reodeveloper.marvelpay.data.room
import android.content.Context
import com.reodeveloper.common.DataSource
import com.reodeveloper.marvelpay.data.Specification
import com.reodeveloper.marvelpay.data.SpecificationBySelected
import com.reodeveloper.marvelpay.data.TwoWayMapper
import com.reodeveloper.marvelpay... | 0 | Kotlin | 0 | 0 | e2c22c7bc90a776b09d11e1fde94c7cea56c8a43 | 1,383 | Marvel-pay | Apache License 2.0 |
app/src/main/java/dev/yunzai/milibrary/viewmodels/SplashViewModel.kt | yunjaena | 373,853,053 | false | null | package dev.yunzai.milibrary.viewmodels
import dev.yunzai.milibrary.base.viewmodel.ViewModelBase
import dev.yunzai.milibrary.data.UserRepository
import dev.yunzai.milibrary.util.SingleLiveEvent
import dev.yunzai.milibrary.util.withThread
import io.reactivex.rxjava3.kotlin.addTo
class SplashViewModel(
private val ... | 0 | Kotlin | 0 | 2 | 4c6774ff46c20eb53465ef64366a2ee0c90d2930 | 725 | MiliBrary_AOS | Apache License 2.0 |
comments-repo-cassandra/src/main/kotlin/com/crowdproj/comments/repo/cassandra/helpers/InstantHelper.kt | crowdproj | 508,567,511 | false | {"Kotlin": 219463, "Dockerfile": 364} | package com.crowdproj.comments.repo.cassandra.helpers
import kotlinx.datetime.Clock
import kotlinx.datetime.Instant
fun Clock.System.nowMillis() = Instant.fromEpochMilliseconds(now().toEpochMilliseconds())
| 0 | Kotlin | 2 | 1 | a7a53395d1ef7d2f655ff13c789ec76467781167 | 208 | crowdproj-comments | Apache License 2.0 |
ktor-server/src/main/kotlin/org/diploma/data/responses/RoommateProfile.kt | k-arabadzhiev | 515,181,907 | false | {"Kotlin": 309983} | package org.diploma.data.responses
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import org.diploma.data.user.City
import org.diploma.data.user.Interests
import org.diploma.data.user.Job
import org.diploma.data.user.School
@Serializable
data class RoommateProfile(
val id: Strin... | 0 | Kotlin | 0 | 0 | e69e22d6aabffb3b4afe54cf9ef6a92007d5beb5 | 749 | Roommates | MIT License |
app/src/main/kotlin/de/ljz/questify/domain/repositories/QuestNotificationRepository.kt | LJZApps | 806,522,161 | false | {"Kotlin": 229922} | package de.ljz.questify.domain.repositories
import de.ljz.questify.domain.daos.QuestNotificationDao
import de.ljz.questify.domain.models.notifications.QuestNotificationEntity
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class QuestNotificationRepository @Inject constructor(
private val ques... | 0 | Kotlin | 0 | 0 | dc04f195c507b4385b8df3cb034a410c253d6603 | 559 | Questify-Android | MIT License |
src/main/kotlin/dev/flavored/pistonlite/ByteBufferExt.kt | AppleFlavored | 793,831,625 | false | {"Kotlin": 9180} | package dev.flavored.pistonlite
import io.ktor.util.*
import java.nio.ByteBuffer
fun ByteBuffer.getString(): String {
val data = this.slice(position(), 64).decodeString().trimEnd()
position(position() + 64)
return data
}
fun ByteBuffer.putString(value: String) {
val data = value.padEnd(64).toByteArra... | 0 | Kotlin | 0 | 1 | e24724cd5bdcf1c7aee858d85186d87bfab26d63 | 346 | pistonlite | MIT License |
app/src/main/java/com/worldcountries/model/country_detail/data/geo/Geography.kt | AhmetOcak | 699,314,809 | false | {"Kotlin": 99115} | package com.worldcountries.model.country_detail.data.geo
import com.google.gson.annotations.SerializedName
data class Geography(
@SerializedName("overview") val overview: String? = null,
@SerializedName("location") val location: String? = null,
@SerializedName("map_references") val mapReferences: String? ... | 0 | Kotlin | 0 | 0 | 6473ab8467d993d51c60443658cb405ff02a98c6 | 613 | WorldCountries | Apache License 2.0 |
typescript-kotlin/src/jsMain/kotlin/typescript/LogicalOperator.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6912722} | // Automatically generated - do not modify!
package typescript
sealed external interface LogicalOperator : SyntaxKind,
Union.LogicalOperator_ /* SyntaxKind.AmpersandAmpersandToken | SyntaxKind.BarBarToken */
| 0 | Kotlin | 7 | 31 | 79f2034ed9610e4416dfde5b70a0ff06f88210b5 | 214 | types-kotlin | Apache License 2.0 |
11_WebPageApp/Complete/WebPageApp/app/src/main/java/com/example/webpageapp/WebView.kt | emboss369 | 764,072,610 | false | {"Kotlin": 208338} | package com.example.webpageapp
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.viewinterop.AndroidView
@Composable
fun WebView(url: String) {
AndroidView(
factory = { context ->
android.webkit.WebView(context).apply {
webChro... | 0 | Kotlin | 0 | 0 | f5097c08f483a5902c4d666712d0bdcc3bb434a8 | 592 | android-compose-book | The Unlicense |
shared/src/androidMain/kotlin/di/koinApp.android.kt | gleb-skobinsky | 634,563,581 | false | {"Kotlin": 173623, "Swift": 580, "HTML": 312, "Shell": 228, "Ruby": 101} | package di
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.core.context.startKoin
import org.koin.dsl.module
import presentation.SharedAppDataImpl
import presentation.conversation.ConversationViewModel
import presentation.drawer.DrawerViewModel
import presentation.login_screen.LoginViewModel
import pr... | 0 | Kotlin | 0 | 9 | 7bb13f8f074956978bd86806ec1e9c6cd65d306f | 686 | compose-connect | Apache License 2.0 |
app/src/main/java/johnnysc/github/forcepush/ui/chats/ChatsViewModel.kt | MAXCONTROLL | 618,882,645 | false | null | package johnnysc.github.forcepush.ui.chats
import androidx.lifecycle.viewModelScope
import johnnysc.github.forcepush.R
import johnnysc.github.forcepush.domain.chats.ChatDomain
import johnnysc.github.forcepush.domain.chats.ChatDomainMapper
import johnnysc.github.forcepush.domain.chats.ChatsInteractor
import johnnysc.gi... | 0 | Kotlin | 0 | 0 | 6e953ea9602b93a3ecb9aaf582170b47108a0064 | 2,670 | ForcePush | MIT License |
godot-kotlin/src/nativeGen/kotlin/godot/VisualScriptBasicTypeConstant.kt | raniejade | 166,207,411 | false | null | // DO NOT EDIT, THIS FILE IS GENERATED FROM api.json
package godot
import gdnative.godot_method_bind
import gdnative.godot_string
import godot.core.Allocator
import godot.core.Godot
import godot.core.Variant
import godot.core.VariantArray
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.refl... | 12 | Kotlin | 4 | 51 | 5c1bb2a1f1d2187375bf50c0445b42c88f37989f | 4,342 | godot-kotlin | MIT License |
00-code(源代码)/src/com/hi/dhl/algorithms/leetcode/_707/kotlin/MyLinkedList1.kt | hi-dhl | 256,677,224 | false | null | package com.hi.dhl.algorithms.leetcode._707.kotlin
import com.hi.dhl.algorithms.model.ListNode
/**
* <pre>
* author: dhl
* date : 2020/8/13
* desc :
* </pre>
*/
class MyLinkedList1() {
/**
* 初始化
*/
var head: ListNode = ListNode(0)
var size: Int = 0
/**
* 获取指定位置的元... | 0 | Kotlin | 48 | 396 | b5e34ac9d1da60adcd9fad61da4ec82e2cefc044 | 1,526 | Leetcode-Solutions-with-Java-And-Kotlin | Apache License 2.0 |
app/src/main/java/com/gitsoft/thoughtpad/ui/settings/SettingsViewModel.kt | DenisGithuku | 366,343,331 | false | {"Kotlin": 65886} |
/*
* Copyright 2024 <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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, soft... | 5 | Kotlin | 0 | 2 | fd18dbf9743c11f27fd254305ee82c2cad73364c | 2,291 | ThoughtPad | Apache License 2.0 |
app/src/main/java/com/fullrandomstudio/todosimply/ui/home/HomeScreen.kt | DamianWoroszyl | 653,764,648 | false | null | @file:OptIn(ExperimentalMaterial3Api::class)
package com.fullrandomstudio.todosimply.ui.home
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Scaffold
import androidx.com... | 0 | Kotlin | 0 | 0 | 4bea1276c3ee0714002d195d94d02cf0491383d7 | 2,802 | todo-simply | Apache License 2.0 |
src/main/kotlin/com/coelho/noteskotlin/models/Note.kt | lucascoelhosilva | 190,426,012 | false | null | package com.coelho.noteskotlin.models
import com.fasterxml.jackson.annotation.JsonProperty
import javax.persistence.Entity
import javax.persistence.GeneratedValue
import javax.persistence.Id
@Entity
data class Note(@Id
@GeneratedValue
@JsonProperty(value = "id", access = JsonProperty.A... | 0 | Kotlin | 0 | 0 | a0c2f37ffd35e3f497b2ba025735e71f566e06c9 | 457 | notesKotlin | MIT License |
src/main/kotlin/org/axonframework/intellij/ide/plugin/api/MessageCreator.kt | AxonFramework | 10,942,246 | false | {"Kotlin": 334756} | /*
* Copyright (c) 2022. Axon Framework
*
* 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... | 22 | Kotlin | 20 | 34 | 46e26f26c83d14fb19b3873b66e5f2d5b540e736 | 1,370 | IdeaPlugin | Apache License 2.0 |
src/test/kotlin/com/yearsaday/qna/repository/QuestionAnswerMappingTest.kt | reavil01 | 411,887,886 | false | {"Kotlin": 37286, "JavaScript": 12733, "HTML": 1726, "CSS": 930} | package com.yearsaday.qna.repository
import com.yearsaday.qna.spring.entity.AnswerEntity
import com.yearsaday.qna.spring.entity.QuestionEntity
import com.yearsaday.qna.spring.repository.AnswerRepository
import com.yearsaday.qna.spring.repository.QuestionRepository
import org.assertj.core.api.Assertions.assertThat
impo... | 0 | Kotlin | 0 | 0 | 694c38404839e387c4015635c9493c74a4c9e3b1 | 2,082 | qna-5years-a-day | Apache License 2.0 |
src/main/kotlin/com/deflatedpickle/mmf/util/ModelDisplay.kt | DeflatedPickle | 346,462,107 | false | null | /* Copyright (c) 2021 DeflatedPickle under the MIT license */
package com.deflatedpickle.mmf.util
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@ExperimentalSerializationApi
@Serializable
data class ModelDisplay(
val he... | 0 | Kotlin | 0 | 0 | 908f416527c90e28041871cd281aae3be7668aa7 | 941 | mmf | MIT License |
Builders/String and map builders/src/Task.kt | iVieL | 258,301,450 | false | null | import java.util.HashMap
fun buildMap(map: HashMap<Int, String>.() -> Unit): HashMap<Int, String> {
val mapBuilder = HashMap<Int, String>()
mapBuilder.map()
return mapBuilder
}
fun usage(): Map<Int, String> {
return buildMap {
put(0, "0")
for (i in 1..10) {
put(i, "$i")
... | 0 | Kotlin | 0 | 0 | 8d9cb9b46975f41c1462289e3546ed6a05e3c5d1 | 335 | kotlin-koans | MIT License |
app/src/main/java/com/example/saferdriving/dataclasses/BasicInfo.kt | 2rius | 750,328,069 | false | {"Kotlin": 79065} | package com.example.saferdriving.dataclasses
data class BasicInfo(
var age: Int? = null,
var drivingExperience: Int? = null,
var residenceCity: String? = null,
var job: String? = null
)
| 4 | Kotlin | 0 | 0 | d8f041e1babac63918b93b4b55ef3ec596f8bbe9 | 203 | safer-driving | MIT License |
platform/platform-impl/src/com/intellij/openapi/components/service.kt | SerCeMan | 39,251,104 | true | {"Text": 1972, "XML": 4051, "Ant Build System": 22, "Shell": 27, "Markdown": 7, "Ignore List": 19, "Git Attributes": 4, "Batchfile": 20, "Java": 47468, "Java Properties": 81, "HTML": 2353, "Groovy": 2144, "Kotlin": 133, "JavaScript": 37, "JFlex": 31, "XSLT": 109, "desktop": 2, "Python": 6462, "INI": 174, "C#": 32, "Sma... | /*
* Copyright 2000-2015 JetBrains s.r.o.
*
* 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 agre... | 0 | Java | 0 | 0 | 060f2ac4c6c93e92cff266a60d67b972d09ab464 | 1,110 | intellij-community | Apache License 2.0 |
boxicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/boxicons/boxicons/solid/BxsMessageCheck.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.boxicons.boxicons.solid
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.graphic... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,279 | compose-icon-collections | MIT License |
src/main/kotlin/academy/jairo/ktor/adapter/factory/DatabaseFactory.kt | jairosoares | 723,457,254 | false | {"Kotlin": 22728} | package academy.jairo.ktor.adapter.factory
import org.jetbrains.exposed.sql.Database
interface DatabaseFactory {
fun create(): Database
} | 0 | Kotlin | 0 | 0 | a339559d4957c193a7db16209f58b40dcc8272a4 | 143 | ktor-lab | MIT License |
app/src/main/java/com/cleanarch/features/wikientry/WikiEntryComponent.kt | nareshidiga | 507,351,310 | false | {"Kotlin": 28835} | package com.cleanarch.features.wikientry
import com.cleanarch.app.AppComponent
import com.cleanarch.features.wikientry.presentation.WikiEntryViewModel
import dagger.Component
/*
* Copyright (C) 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in co... | 0 | Kotlin | 0 | 5 | ee359def4acac4c347868000475648a611c38289 | 949 | Android-CleanArchitecture-Kotlin-Coroutines-Flow | Apache License 2.0 |
EarthGardener/app/src/main/java/team/gdsc/earthgardener/presentation/user/login/LoginActivity.kt | EarthGardener | 454,439,830 | false | {"Kotlin": 10400} | package team.gdsc.earthgardener.presentation.user.login
import android.content.ContentValues.TAG
import android.content.Intent
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import androidx.lifecycle.Observer
imp... | 20 | Kotlin | 0 | 1 | a06cbf7c45ea2181475a0fccd8c77f04cee58970 | 5,084 | EarthGardener-Android | MIT License |
android/app/src/main/kotlin/com/example/github_search_flutter_client_rxdart_example/MainActivity.kt | bizz84 | 261,154,385 | false | null | package com.example.github_search_flutter_client_rxdart_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 1 | Dart | 25 | 39 | fc6f098299da4982813389e0291b506e02838a9a | 160 | github_search_flutter_client_rxdart_example | MIT License |
paging/src/commonMain/kotlin/dev/icerock/moko/paging/LiveDataExt.kt | icerockdev | 241,032,010 | false | null | /*
* Copyright 2020 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.moko.paging
import dev.icerock.moko.mvvm.livedata.LiveData
import dev.icerock.moko.mvvm.livedata.map
import dev.icerock.moko.mvvm.livedata.mergeWith
fun <T> LiveData<List<T>>.withLoadingItem(
... | 3 | Kotlin | 4 | 14 | 1bdd5dbce25c270e4aac5bdd45b4c9e2582ca8f3 | 707 | moko-paging | Apache License 2.0 |
src/main/kotlin/io/slama/utils/command_permissions.kt | eKonis-src | 467,679,930 | true | {"Kotlin": 83429} | package io.slama.utils
import io.slama.core.BotConfiguration
import net.dv8tion.jda.api.entities.Member
fun Member.isAdmin(): Boolean =
BotConfiguration.guilds[guild.idLong]?.let { config ->
roles.map { it.idLong }.any { it == config.roles.adminRoleID }
} ?: false
fun Member.isManager(): Boolean =
... | 0 | Kotlin | 0 | 0 | a0b293f20f175f36035778dba6f3eeb70946727d | 857 | UGE-Bot-1 | MIT License |
app/src/main/java/ru/maxim/unsplash/persistence/dao/UserDao.kt | maximborodkin | 406,747,572 | false | {"Kotlin": 242939} | package ru.maxim.unsplash.persistence.dao
import androidx.room.*
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.catch
import kotlinx.coroutines.flow.firstOrNull
import ru.maxim.unsplash.persistence.model.UserEntity
import ru.maxim.unsplash.persistence.model.UserEntity.UserContract
@Dao
abstract cl... | 0 | Kotlin | 0 | 2 | 06a7d3fb24badae12d42d1a6c45666434ec34d73 | 1,143 | kts-android-unsplash | MIT License |
app/src/main/java/com/petzinger/magalu/network/GitHubApi.kt | PetzingerLucas | 860,656,363 | false | {"Kotlin": 31828} | package com.petzinger.magalu.network
import com.petzinger.magalu.model.pullrequest.PullRequest
import com.petzinger.magalu.model.repository.RepositoryResponse
import io.reactivex.rxjava3.core.Single
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query
interface GitHubApi {
@GET("search... | 0 | Kotlin | 0 | 0 | 37487dc60fee6ecea55f212f2c6abe416a7c84c6 | 675 | Teste-Magalu | MIT License |
kotlin-audio-pro/src/main/java/co/evergrace/kotlinaudiopro/players/components/MediaItemExt.kt | evergrace-co | 843,264,852 | false | {"Kotlin": 173698} | package co.evergrace.kotlinaudiopro.players.components
import co.evergrace.kotlinaudiopro.models.AudioItemHolder
import com.google.android.exoplayer2.MediaItem
fun MediaItem.getAudioItemHolder(): AudioItemHolder {
return localConfiguration!!.tag as AudioItemHolder
}
| 0 | Kotlin | 0 | 0 | 845f0d5e440c534cadafeb1dfa21a14d437bf0e4 | 273 | kotlin-audio-pro | Apache License 2.0 |
threejs/src/main/kotlin/three/helpers/GridHelper.kt | Pozo | 91,019,368 | false | null | @file:JsQualifier("THREE")
package three.helpers
import three.objects.Line
@JsName("GridHelper")
external class GridHelper : Line {
constructor(size: Int)
constructor(size: Int, divisions: Int)
constructor(size: Int, divisions: Int, colorCenterLine: Int)
constructor(size: Int, divisions: Int, colorC... | 0 | Kotlin | 2 | 15 | a53df48f15f633deba31467e33aa798b453104fc | 355 | threejs-kotlin | MIT License |
kotlin-electron/src/jsMain/generated/electron/HidDeviceRemovedDetails.kt | JetBrains | 93,250,841 | false | {"Kotlin": 11411371, "JavaScript": 154302} | package electron
typealias HidDeviceRemovedDetails = electron.core.HidDeviceRemovedDetails
| 28 | Kotlin | 173 | 1,250 | 9e9dda28cf74f68b42a712c27f2e97d63af17628 | 93 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/developersancho/qnbmovie/di/AppModule.kt | developersancho | 275,271,253 | false | null | package com.developersancho.qnbmovie.di
import com.developersancho.local.di.localModule
import com.developersancho.manager.di.managerModule
import com.developersancho.qnbmovie.BuildConfig
import com.developersancho.remote.di.remoteModule
val appModule = listOf(
remoteModule(
baseUrl = BuildConfig.BASE_URL... | 0 | Kotlin | 0 | 5 | 043b0f3a5763fa6998384c06821122ddf6a72e5e | 452 | qnbmovie | Apache License 2.0 |
src/es/monarcamanga/src/eu/kanade/tachiyomi/extension/es/monarcamanga/Visormonarca.kt | komikku-app | 720,497,299 | false | {"Kotlin": 6775539, "JavaScript": 2160} | package eu.kanade.tachiyomi.extension.es.monarcamanga
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class Visormonarca : Madara(
"Visormonarca",
"https://visormonarca.com",
"es",
SimpleDateFormat("MMM d, yyy", Locale("es")),
) {
overrid... | 22 | Kotlin | 8 | 97 | 7fc1d11ee314376fe0daa87755a7590a03bc11c0 | 357 | komikku-extensions | Apache License 2.0 |
src/main/kotlin/bvanseg/kotlincommons/throwable/ThrowableExtentions.kt | AlexCouch | 281,023,717 | false | null | package bvanseg.kotlincommons.throwable
import java.io.PrintWriter
import java.io.StringWriter
/**
* Returns this [Throwable] as a String with the error and stack trace.
*
* @author bright_spark
* @since 2.2.5
*/
fun Throwable.printToString(): String = StringWriter().use { sw ->
PrintWriter(sw).use { pw ->
... | 0 | Kotlin | 0 | 0 | aa619625e10cc1c0c8faaa16d12cf9e35a827d8e | 583 | KotlinCommons | MIT License |
app/src/androidTest/java/dev/m13d/somenet/timeline/TimelineScreenTest.kt | 3yebMB | 851,249,108 | false | {"Kotlin": 80851} | package dev.m13d.somenet.timeline
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import dev.m13d.somenet.MainActivity
import dev.m13d.somenet.domain.exceptions.BackendException
import dev.m13d.somenet.domain.exceptions.ConnectionUnavailableException
import dev.m13d.somenet.domain.post.InMemoryPostsCat... | 1 | Kotlin | 0 | 0 | 1170d91ea7bac5d2483b7b735f904fda0dbe222c | 3,361 | Some-network | The Unlicense |
browser-kotlin/src/jsMain/kotlin/webrtc/RTCRtcpMuxPolicy.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6149909} | // Automatically generated - do not modify!
@file:Suppress(
"NAME_CONTAINS_ILLEGAL_CHARS",
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
package webrtc
// language=JavaScript
@JsName("""(/*union*/{require: 'require'}/*union*/)""")
sealed external interface RTCRtcpMuxPolicy {
companion object {
val requ... | 0 | Kotlin | 6 | 26 | 3fcfd2c61da8774151cf121596e656cc123b37db | 350 | types-kotlin | Apache License 2.0 |
kairo-sample/src/main/kotlin/kairoSample/entity/libraryCard/LibraryCardMapper.kt | hudson155 | 874,399,885 | false | {"Kotlin": 71596, "PLpgSQL": 159} | package kairoSample.entity.libraryCard
import com.google.inject.Inject
import kairo.id.KairoIdGenerator
internal class LibraryCardMapper @Inject constructor(
idGenerator: KairoIdGenerator.Factory,
) {
private val idGenerator: KairoIdGenerator = idGenerator.withPrefix("library_card")
internal fun map(model: Lib... | 0 | Kotlin | 0 | 1 | 074a487893faafacfd3e24e3e34b1e217ca9458c | 650 | kairo-sample | Apache License 2.0 |
browser-kotlin/src/jsMain/kotlin/webrtc/RTCSdpType.kt | karakum-team | 393,199,102 | false | {"Kotlin": 7083457} | // Automatically generated - do not modify!
@file:Suppress(
"NAME_CONTAINS_ILLEGAL_CHARS",
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
package webrtc
// language=JavaScript
@JsName("""(/*union*/{answer: 'answer', offer: 'offer', pranswer: 'pranswer', rollback: 'rollback'}/*union*/)""")
sealed external interface ... | 0 | Kotlin | 6 | 26 | 3ca49a8f44fc8b46e393ffe66fbd81f8b4943c18 | 491 | types-kotlin | Apache License 2.0 |
.teamcity/_self/release/buildTypes/BuildAndTestReleaseCandidate.kt | ValerieRobateau | 392,394,102 | true | {"C#": 747399, "TSQL": 710923, "Kotlin": 20317, "PLpgSQL": 7162, "PowerShell": 4859} | package _self.release.buildTypes
import jetbrains.buildServer.configs.kotlin.v2019_2.*
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.dotnetPublish
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.powerShell
object BuildAn... | 0 | C# | 0 | 0 | f903f996f1c28fe00bf179f713cf1386590c5d05 | 680 | Ed-Fi-Analytics-Middle-Tier | Apache License 2.0 |
presentation-planner/src/main/java/com/jacekpietras/zoo/planner/viewmodel/PlannerViewModel.kt | JacekPietras | 334,416,736 | false | null | package com.jacekpietras.zoo.planner.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.map
import com.jacekpietras.zoo.core.dispatcher.launchInBackground
import com.jacekpietras.zoo.core.extensions.NullSafeMutableLiveData
import com.jacekpietras.zoo.core.extensi... | 0 | Kotlin | 0 | 1 | 07474546a9dbfc0263126b59933086b38d41b7e1 | 1,345 | ZOO | MIT License |
app/src/test/java/com/example/apodgallery/FavoriteApodTest.kt | jhonybguerra | 738,729,723 | false | {"Kotlin": 29687} | package com.example.apodgallery
import com.example.apodgallery.model.db.FavoriteApod
import com.example.apodgallery.model.network.ApodResponse
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http:/... | 0 | Kotlin | 0 | 1 | 96e320c6e6406fa51625972409612157141d5346 | 957 | ApodGallery | Apache License 2.0 |
mongo-migration-stream-core/src/main/kotlin/pl/allegro/tech/mongomigrationstream/core/validation/MongoToolsValidator.kt | allegro | 551,426,608 | false | {"Kotlin": 226498} | package pl.allegro.tech.mongomigrationstream.core.validation
import io.github.oshai.kotlinlogging.KotlinLogging
import io.github.oshai.kotlinlogging.withLoggingContext
import pl.allegro.tech.mongomigrationstream.configuration.ApplicationProperties
import java.nio.file.Paths
import kotlin.io.path.exists
import kotlin.i... | 11 | Kotlin | 3 | 33 | 296127bc8629d850ba064bfbd79f8e4178e49477 | 1,395 | mongo-migration-stream | Apache License 2.0 |
src/test/kotlin/me/benjozork/kson/parser/value/JsonNumberValueParserTest.kt | Benjozork | 156,921,876 | false | null | package me.benjozork.kson.parser.value
import me.benjozork.kson.parser.exception.IllegalJsonNumberTokenException
import me.benjozork.kson.parser.exception.IllegalJsonNumberValueException
import me.benjozork.kson.parser.JsonReader
import org.junit.Test
import org.junit.Assert.assertEquals
class JsonNumberValueParser... | 0 | Kotlin | 0 | 0 | 9b52b262e1bf1ca2663faaca34c86ac2f73b451a | 2,760 | kson | MIT License |
core/src/main/kotlin/gropius/dto/input/issue/RemoveAssignmentInput.kt | ccims | 487,996,394 | false | null | package gropius.dto.input.issue
import com.expediagroup.graphql.generator.annotations.GraphQLDescription
import com.expediagroup.graphql.generator.scalars.ID
import gropius.dto.input.common.Input
@GraphQLDescription("Input for the removeAssignment mutations")
class RemoveAssignmentInput(
@GraphQLDescription("The ... | 2 | Kotlin | 1 | 0 | a0b0538d1960e920d53bc9dc2d7026dfea49d723 | 387 | gropius-backend | MIT License |
app/src/main/java/com/raion/furnitale/core/domain/usecase/search/SearchInteractor.kt | KylixEza | 349,910,754 | false | null | package com.raion.furnitale.core.domain.usecase.search
import com.raion.furnitale.core.data.Resource
import com.raion.furnitale.core.domain.model.Product
import com.raion.furnitale.core.domain.repository.IProductRepository
import kotlinx.coroutines.flow.Flow
class SearchInteractor(private val repository: IProductRepo... | 0 | Kotlin | 1 | 1 | 014d82d8764c7c1002d166f435b7243508794fd3 | 486 | FurniTale | MIT License |
src/main/kotlin/possible_triangle/divide/crates/callbacks/CleanCallback.kt | PssbleTrngle | 275,110,821 | false | {"Kotlin": 272874, "TypeScript": 118166, "Java": 7745, "CSS": 6874, "HTML": 1620, "mcfunction": 1102, "Dockerfile": 856} | package possible_triangle.divide.crates.callbacks
import kotlinx.serialization.Serializable
import net.minecraft.core.BlockPos
import net.minecraft.nbt.CompoundTag
import net.minecraft.nbt.NbtUtils
import net.minecraft.server.MinecraftServer
import net.minecraft.world.entity.Entity
import net.minecraft.world.level.blo... | 17 | Kotlin | 0 | 0 | e0cc0532307557d509f177ac9d80dc97e1353d72 | 2,402 | Divide | MIT License |
miaoandriod/src/main/java/com/a10miaomiao/miaoandriod/adapter/MiaoViewHolder.kt | Dwsy | 239,933,976 | true | {"Kotlin": 478153, "Java": 197271} | package com.a10miaomiao.miaoandriod.adapter
import android.support.v7.widget.RecyclerView
import android.view.View
/**
* Created by 10喵喵 on 2018/2/24.
*/
class MiaoViewHolder<T>(val parentView: View, val binding: Binding<T>? = null) : RecyclerView.ViewHolder(parentView) {
var index = 0
fun updateView(ite... | 0 | null | 0 | 0 | 9ce5f4a6742591ba5ec0e6a071e12a833fd31810 | 1,271 | bilimiao2 | Apache License 2.0 |
app/src/main/java/com/elhady/movies/data/repository/MovieRepositoryImp.kt | islamelhady | 301,591,032 | false | {"Kotlin": 140014} | package com.elhady.movies.data.repository
import com.elhady.movies.data.Constant
import com.elhady.movies.data.local.AppConfiguration
import com.elhady.movies.data.local.database.daos.MovieDao
import com.elhady.movies.data.local.database.entity.movies.AdventureMovieEntity
import com.elhady.movies.data.local.database.e... | 1 | Kotlin | 0 | 0 | 6974db17f9079acbc21aa269cc83f5c7f86b807f | 8,954 | movie-night-v2 | Apache License 2.0 |
plugin/src/main/kotlin/dev/anatolii/gradle/cpp/android/compiler/CppCompiler.kt | Anatolii | 207,176,940 | false | null | /*
* Copyright 2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 6 | Kotlin | 0 | 0 | c2af271e8221d28c2e28eea3a2c3fc6bee42fb5d | 2,194 | Android-CPP-ToolChain-for-Gradle | MIT License |
app/src/test/java/com/yoelglus/notes/domain/DeleteNoteTest.kt | yoelglus | 100,812,739 | false | null | package com.yoelglus.notes.domain
import com.yoelglus.notes.domain.gateways.NotesRepository
import org.junit.Test
import org.mockito.Mockito
import org.mockito.Mockito.mock
class DeleteNoteTest {
@Test
internal fun callsRepository() {
val notesRepository = mock(NotesRepository::class.java)
val... | 0 | Kotlin | 1 | 6 | be02d69f18ccae0db6e9fe646876608766c8c500 | 505 | notes | Apache License 2.0 |
app/src/main/java/com/stu71205/ca3_movie_booking_app/models/ElectronicViewModel.kt | jefferson-duarte | 772,087,092 | false | {"Kotlin": 80215} | package com.stu71205.ca3_movie_booking_app.models
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.stu71205.ca3_movie_booking_app.services.Electronics
import com.stu71205.ca3_movi... | 0 | Kotlin | 0 | 1 | ebbc841e78ae9cb4b2bae206b9ed73a8b47bdd71 | 1,467 | 71205Project | Academic Free License v2.1 |
app/src/main/java/com/example/dobtominutes/MainActivity.kt | lakshmi-p15 | 445,700,530 | false | null | package com.example.dobtominutes
import android.app.DatePickerDialog
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import java.text.SimpleDateFormat
import java.util.*
class MainActivity : AppCompatActiv... | 0 | Kotlin | 0 | 0 | d36674b71a027fbb3a15075a32234337b7c3b06b | 2,498 | DOB_To_Minutes | Apache License 2.0 |
web/src/jsMain/kotlin/ca/derekellis/reroute/stops/Stop.kt | dellisd | 440,373,187 | false | {"Kotlin": 89807, "JavaScript": 4456, "Dockerfile": 669, "HTML": 234} | package ca.derekellis.reroute.stops
import ca.derekellis.reroute.ui.Screen
data class Stop(val code: String) : Screen
| 0 | Kotlin | 0 | 10 | fb0e41e59374c1a34eb370b1202fb96c41589a95 | 120 | reroute | Apache License 2.0 |
src/main/kotlin/com/kryszak/gwatlin/api/story/GWBackstoryClient.kt | Kryszak | 214,791,260 | false | null | package com.kryszak.gwatlin.api.story
import com.kryszak.gwatlin.api.story.model.BackstoryAnswer
import com.kryszak.gwatlin.api.story.model.BackstoryQuestion
import com.kryszak.gwatlin.clients.backstory.BackstoryClient
/**
* Client for backstory endpoints
* @see com.kryszak.gwatlin.api.exception.ApiRequestException... | 0 | Kotlin | 0 | 1 | 03b79fda6b25bc0478144f03cd4df50eca7e21e6 | 918 | gwatlin | MIT License |
flank-scripts/src/main/kotlin/flank/scripts/cli/github/DeleteReleaseCommand.kt | Flank | 84,221,974 | false | {"Kotlin": 1748173, "Java": 101254, "Swift": 41229, "Shell": 10674, "Objective-C": 10006, "Dart": 9705, "HTML": 7235, "Gherkin": 4210, "TypeScript": 2717, "Ruby": 2272, "JavaScript": 1764, "SCSS": 1365, "Batchfile": 1183, "EJS": 1061, "Go": 159} | package flank.scripts.cli.github
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.parameters.options.option
import com.github.ajalt.clikt.parameters.options.required
import flank.scripts.ops.github.deleteOldRelease
object DeleteReleaseCommand : CliktCommand(
name = "delete_release",
... | 64 | Kotlin | 115 | 676 | b40904b4e74a670cf72ee53dc666fc3a801e7a95 | 495 | flank | Apache License 2.0 |
services/hanke-service/src/test/kotlin/fi/hel/haitaton/hanke/logging/PermissionLoggingServiceTest.kt | City-of-Helsinki | 300,534,352 | false | {"Kotlin": 2023322, "Mustache": 89170, "Shell": 23444, "Batchfile": 5169, "PLpgSQL": 1115, "Dockerfile": 371} | package fi.hel.haitaton.hanke.logging
import assertk.all
import assertk.assertThat
import assertk.assertions.isNull
import assertk.assertions.prop
import fi.hel.haitaton.hanke.factory.PermissionFactory
import fi.hel.haitaton.hanke.permissions.Kayttooikeustaso
import fi.hel.haitaton.hanke.test.AuditLogEntryAsserts.hasO... | 4 | Kotlin | 5 | 4 | c2c04891485439e52600f4b02710af5d4a547ac1 | 4,059 | haitaton-backend | MIT License |
src/test/kotlin/no/nav/personbruker/minesaker/api/saf/journalposter/objectmothers/HentJournalposterObjectMother.kt | navikt | 331,032,645 | false | null | package no.nav.personbruker.minesaker.api.saf.journalposter.objectmothers
import no.nav.dokument.saf.selvbetjening.generated.dto.HentJournalposter
import no.nav.personbruker.minesaker.api.saf.common.GraphQLError
import no.nav.personbruker.minesaker.api.saf.common.GraphQLResponse
import no.nav.personbruker.minesaker.ap... | 1 | Kotlin | 1 | 0 | 9483405e40b286e7b537a699ca3cf4eaca40ed0e | 1,098 | mine-saker-api | MIT License |
app/src/main/java/com/frc1678/pit_collection/ui/screens/CollectionScreen.kt | frc1678 | 803,040,142 | false | {"Kotlin": 52779} | // Copyright (c) 2022 FRC Team 1678: Citrus Circuits
package com.frc1678.pit_collection.ui.screens
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.... | 0 | Kotlin | 0 | 0 | c82bda768cff4e90b32752ebf3e8645206c11439 | 14,928 | pit-collection-2024-public | MIT License |
app/src/main/java/io/smileyjoe/applist/db/Db.kt | SmileyJoe | 139,638,793 | false | {"Kotlin": 109235, "Java": 8729} | package io.smileyjoe.applist.db
import android.app.Activity
import com.google.firebase.database.DatabaseReference
import com.google.firebase.database.FirebaseDatabase
import io.smileyjoe.applist.BuildConfig
import io.smileyjoe.applist.R
import io.smileyjoe.applist.`object`.User
import io.smileyjoe.applist.util.Notify
... | 0 | Kotlin | 0 | 0 | cd7cb13a42dd7813c713e99c27d1e0c800763cc2 | 1,600 | app_android_app_list | MIT License |
common/src/main/java/com/dugang/rely/common/extension/NetWork.kt | DuJerry | 174,309,767 | false | null | /*
* Copyright (c) 2017-2019 dugang
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 0 | Kotlin | 0 | 2 | ed1d40115fba3bfd6ae8de8a108b705613e4589f | 2,257 | Rely-kotlin | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.