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/prmto/rickandmortycompose/util/MultiplePreview.kt
tolgaprm
524,387,415
false
{"Kotlin": 175904}
package com.prmto.rickandmortycompose.util import androidx.compose.ui.tooling.preview.Devices import androidx.compose.ui.tooling.preview.Preview @Preview(device = Devices.PIXEL_3A, name = "Phone", showSystemUi = true) @Preview(device = Devices.NEXUS_10, name = "Tablet", fontScale = 1.5f, showSystemUi = true) annotat...
0
Kotlin
1
7
7d8fcaea537ae44f4d17fd6869d6df1efb1fc156
567
RickAndMortyCompose
Apache License 2.0
interpreter/src/main/kotlin/org/actorlang/interpreter/objects/impl/ActorLangMessage.kt
422404
371,440,848
false
null
package org.actorlang.interpreter.objects.impl import org.actorlang.actorsystem.messaging.ActorRef import org.actorlang.actorsystem.messaging.Message class ActorLangMessage(target: ActorRef, val args: Array<Any>) : Message(target)
23
null
1
3
bccf9c554e2dc2ad9c946cf8f38cacdd7002b555
233
ActorLang
MIT License
app/src/main/java/com/example/coinsapp/fragment/HomeFragment.kt
alpcetinkus
560,853,394
false
null
package com.example.coinsapp.fragment import android.content.Context import android.os.Bundle import android.util.Log import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import androidx.viewpage...
0
Kotlin
0
1
148198210e0380664a2290136793cd6a75ba467f
3,586
CryptoApp
MIT License
src/test/kotlin/com/compiler/server/controllers/CompilerAPITest.kt
s4nchez
257,102,677
true
{"Kotlin": 433628, "Dockerfile": 1597, "Shell": 225}
package com.compiler.server.controllers import com.compiler.server.configuration.ApplicationConfiguration import com.compiler.server.generator.generateSingleProject import com.compiler.server.model.bean.VersionInfo import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper import org.http4k.core.Method.POST import...
1
Kotlin
0
0
41e278d08cdc3837d31f6962decb753cb175891b
1,321
kotlin-compiler-server
Apache License 2.0
android/src/main/java/si/inova/kotlinova/ui/arguments/FragmentAutoClearedValue.kt
inovait
247,635,811
false
null
/* * Copyright 2020 INOVA IT d.o.o. * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
0
Kotlin
1
1
a2ab244a15f8cfa6448ae20803ac86d352651df4
2,450
kotlinova
MIT License
src/main/kotlin/org/wfanet/panelmatch/client/common/ExchangeStepAttemptKey.kt
world-federation-of-advertisers
349,561,061
false
{"Kotlin": 10143809, "Starlark": 951001, "C++": 627937, "CUE": 193010, "HCL": 162357, "TypeScript": 101485, "Python": 77600, "Shell": 20877, "CSS": 9620, "Go": 8063, "JavaScript": 5305, "HTML": 2489}
// Copyright 2024 The Cross-Media Measurement Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
145
Kotlin
11
36
ba2d2d8d3d4527d844e6d168273b1c2fabfd5d4e
1,058
cross-media-measurement
Apache License 2.0
src/me/anno/ui/editor/code/codemirror/LanguageTheme.kt
AntonioNoack
456,513,348
false
null
package me.anno.ui.editor.code.codemirror import me.anno.io.saveable.Saveable import me.anno.io.base.BaseWriter import me.anno.ui.editor.code.tokenizer.TokenType import me.anno.utils.structures.lists.Lists.createArrayList import kotlin.math.min class LanguageTheme(val styles: ArrayList<LanguageStyle>) : Saveable() { ...
0
null
3
24
013af4d92e0f89a83958008fbe1d1fdd9a10e992
3,240
RemsEngine
Apache License 2.0
app/ime/src/main/kotlin/studio/lunabee/onesafe/ime/ui/ImeOSTopBar.kt
LunabeeStudio
624,544,471
false
{"Kotlin": 2242178, "Java": 11977, "Python": 3784}
/* * Copyright (c) 2023 Lunabee Studio * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
0
Kotlin
0
1
545f4fdedebd5e558c4f1287098db1af1b47d9f7
5,874
oneSafe6_SDK_Android
Apache License 2.0
app/src/main/java/com/ecjtu/sharebox/ui/dialog/FileItemLongClickDialog.kt
xulele
98,136,422
true
{"JavaScript": 493766, "HTML": 409276, "CSS": 352097, "Java": 252722, "Kotlin": 91753}
package com.ecjtu.sharebox.ui.dialog import android.app.Activity import android.content.Context import android.graphics.Paint import android.os.Bundle import android.view.View import android.view.ViewGroup import android.widget.TextView import com.ecjtu.sharebox.R import org.w3c.dom.Text /** * Created by KerriGan on...
0
JavaScript
0
0
2f8dfbb783c3df8f0e4d20773ce22ba97fa8dfd9
1,319
ShareBox
Apache License 2.0
DesignSystem/src/main/java/com/vini/designsystem/xml/loader/LoaderViewComponent.kt
vinioliveirasilva
776,456,665
false
{"Kotlin": 54838}
package com.vini.designsystem.xml.loader import androidx.fragment.app.FragmentManager import androidx.fragment.app.FragmentTransaction import androidx.lifecycle.LifecycleOwner class LoaderViewComponent : LoaderView { private val loader = DefaultLoaderFragment() override fun LifecycleOwner.show(fragmentManage...
0
Kotlin
0
0
3209698be4cb6c2f5c56fdc812e7a7a9ab6a06f8
580
ViniBank
MIT License
app/src/main/java/io/github/lee0701/gukhanwiki/android/view/search/SearchViewModel.kt
Lee0701
614,771,876
false
null
package io.github.lee0701.gukhanwiki.android.view.search import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import io.github.lee0701.gukhanwiki.android.Result import io.github.lee0701.gukhanwiki.android.api.GukhanWik...
3
Kotlin
0
0
bb1c17e05e2b11e47f22d7062e4301180021f566
2,181
GukhanWiki-App-Android
Apache License 2.0
src/test/kotlin/uk/gov/justice/digital/hmpps/prisonerfromnomismigration/wiremock/AdjudicationsApiMockServer.kt
ministryofjustice
452,734,022
false
{"Kotlin": 1410444, "Mustache": 1803, "Dockerfile": 1374}
package uk.gov.justice.digital.hmpps.prisonerfromnomismigration.wiremock import com.fasterxml.jackson.databind.ObjectMapper import com.github.tomakehurst.wiremock.WireMockServer import com.github.tomakehurst.wiremock.client.WireMock import com.github.tomakehurst.wiremock.client.WireMock.aResponse import com.github.tom...
1
Kotlin
0
2
9db24b8c3fb9f6348d5c54aa4773345c1323fd52
7,200
hmpps-prisoner-from-nomis-migration
MIT License
vector/src/main/java/im/vector/app/eachchat/contact/data/UpdateTime.kt
eachchat
460,467,419
true
{"Kotlin": 12319527, "Java": 696769, "HTML": 96269, "Shell": 31280, "Python": 19717, "FreeMarker": 7826, "JavaScript": 1782, "Ruby": 1574, "Gherkin": 163}
package im.vector.app.eachchat.contact.data import android.os.Parcelable import androidx.room.Entity import androidx.room.PrimaryKey import kotlinx.parcelize.Parcelize /** * Created by chengww on 1/16/21 * @author chengww */ @Entity(tableName = "update_time") @Parcelize data class UpdateTime(@PrimaryKey val id: In...
4
Kotlin
0
0
9e975f4bc11da17705254923f54eba306021cc5f
374
yiqia-android
Apache License 2.0
experimental/examples/falling-balls-mpp/src/androidMain/kotlin/org/jetbrains/fallingballs/MainActivity.kt
EyuCoder
377,889,931
true
{"Kotlin": 1496107, "Shell": 24042, "Dockerfile": 3507, "JavaScript": 2714, "HTML": 2504, "PowerShell": 1708, "Groovy": 1415, "CSS": 216}
package org.jetbrains.fallingballs import FallingBalls import Game import Time import android.os.Bundle import androidx.activity.compose.setContent import androidx.appcompat.app.AppCompatActivity import androidx.compose.runtime.remember object AndroidTime : Time { override fun now(): Long = System.nanoTime() } c...
0
Kotlin
0
0
2b29bd2889dad8cca7e40797c01a8bdf166b98fb
585
compose-jb
Apache License 2.0
app/src/main/java/spoiler/blocker/SpoilerBlockerService.kt
muthuraj57
473,692,304
false
{"Kotlin": 36877}
/* $Id$ */ package spoiler.blocker import android.accessibilityservice.AccessibilityService import android.graphics.PixelFormat import android.view.WindowManager import android.view.accessibility.AccessibilityEvent import android.view.accessibility.AccessibilityNodeInfo import androidx.core.content.getSystemService im...
1
Kotlin
3
7
77b7145a4f57c315b473cdc5087120339693653c
3,717
SpoilerBlocker
Apache License 2.0
src/main/kotlin/troy/commands/funstuff/Doggo.kt
daksh7011
440,123,158
false
{"Kotlin": 99491, "Groovy": 26750, "Dockerfile": 251}
package troy.commands.funstuff import dev.kord.core.Kord import dev.kord.rest.builder.message.embed import dev.kordex.core.commands.Arguments import dev.kordex.core.commands.converters.impl.defaultingString import dev.kordex.core.extensions.Extension import dev.kordex.core.extensions.publicSlashCommand import io.ktor....
2
Kotlin
1
0
05fb20b28299b1a39cc2ddf24856cf15d3066a59
2,515
troy
MIT License
app/src/main/java/com/jadebyte/jadeplayer/main/albums/AlbumsViewModel.kt
wilburt
177,040,268
false
null
// Copyright (c) 2019 . <NAME>. All Rights Reserved. package com.jadebyte.jadeplayer.main.albums import android.app.Application import android.net.Uri import android.provider.MediaStore import com.jadebyte.jadeplayer.main.common.data.MediaStoreRepository import com.jadebyte.jadeplayer.main.common.view.BaseMediaStoreV...
5
Kotlin
28
75
e8b887c5074c6dde830252e322869d0ff8d362c5
1,132
Jade-Player
Apache License 2.0
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/FileStructureRuleTest.kt
forkstuffs
315,785,871
true
{"Kotlin": 766734, "Java": 2002, "Shell": 601}
package org.cqfn.diktat.ruleset.chapter3 import com.pinterest.ktlint.core.LintError import generated.WarningNames import org.cqfn.diktat.common.config.rules.RulesConfig import org.cqfn.diktat.ruleset.constants.Warnings.FILE_WILDCARD_IMPORTS import org.cqfn.diktat.ruleset.constants.Warnings.FILE_CONTAINS_ONLY_COMMENTS ...
1
null
0
0
bc2e7122cbd2be8062ff8862c9fb5defd95c84d6
5,659
diKTat
MIT License
bugsnag-android-performance/src/main/kotlin/com/bugsnag/android/performance/ContextAwareThreadPoolExecutor.kt
bugsnag
539,491,063
false
null
package com.bugsnag.android.performance import java.util.concurrent.BlockingQueue import java.util.concurrent.RejectedExecutionHandler import java.util.concurrent.ThreadFactory import java.util.concurrent.ThreadPoolExecutor import java.util.concurrent.TimeUnit /** * A [SpanContext] aware drop-in replacement for [Thr...
2
null
1
4
607192226cefc29a242dea0db0e59caae2b928cf
1,892
bugsnag-android-performance
MIT License
api/src/main/kotlin/einsen/spikeysanju/dev/database/domain/Task.kt
Spikeysanju
367,818,611
false
null
package einsen.spikeysanju.dev.database.domain import einsen.spikeysanju.dev.database.entity.TaskEntity import kotlinx.serialization.Serializable @Serializable data class Task( val id: String = "", val title: String, val description: String, val category: String, val emoji: String, val urgency...
5
Kotlin
74
858
e9e9e4277883ab91611e8699bb93da3dc51fc9d4
1,041
Einsen
Apache License 2.0
boxicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/boxicons/boxicons/regular/BxNavigation.kt
walter-juan
868,046,028
false
{"Kotlin": 34345428}
package com.woowla.compose.icon.collections.boxicons.boxicons.regular 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.graph...
0
Kotlin
0
3
eca6c73337093fbbfbb88546a88d4546482cfffc
2,388
compose-icon-collections
MIT License
game-api/src/main/java/org/runestar/client/game/api/MessageType.kt
forsco
135,697,131
true
{"Kotlin": 1058154, "Java": 4007}
package org.runestar.client.game.api enum class MessageType(val id: Int) { SYSTEM(0), PUBLIC_CHAT(2), CLAN_CHAT(9), SYSTEM_CLAN_CHAT(11), ITEM_EXAMINE(27), NPC_EXAMINE(28), OBJECT_EXAMINE(29), SYSTEM_FRIENDS(30), SYSTEM_IGNORE(31), AUTO_CHAT(90), // todo SYSTEM_FILTERED...
0
Kotlin
0
0
b15c07570af82377bcd2be48b00a5e9708be08ab
420
client
MIT License
term-2/block-4/task-7/app-cli/src/main/kotlin/meteo/app/Service.kt
AzimMuradov
626,118,027
false
null
package meteo.app enum class Service(val serviceName: String) { OpenWeather(serviceName = "Open Weather"), StormGlass(serviceName = "Storm Glass") }
0
Kotlin
0
0
20d712d69d19a399072ce997fe11f3066dc01354
158
computer-workshop-spbu
Apache License 2.0
kgal-core/src/commonMain/kotlin/AbstractGA.kt
Orthodoxal
868,862,339
false
{"Kotlin": 277326}
package kgal import kgal.statistics.StatisticsProvider import kgal.statistics.TimeStore import kgal.statistics.timeMarker import kotlinx.coroutines.* import kotlinx.coroutines.sync.Mutex import kotlin.coroutines.coroutineContext import kotlin.random.Random import kotlin.uuid.ExperimentalUuidApi import kotlin.uuid.Uuid...
0
Kotlin
0
0
02329a5fce197be39eca9d333fea74c77ddacf9c
7,333
kgal
Apache License 2.0
app/src/main/java/com/asos/recipes/presentation/di/ActivityModule.kt
soumyaritu
480,155,965
false
{"Kotlin": 87246}
/* * By Martin Chamarro for ASOS * Copyright 2018 Martin Chamarro (@martinchamarro) */ package com.asos.recipes.presentation.di import android.app.Activity import com.asos.recipes.presentation.navigation.Navigator import dagger.Module import dagger.Provides @Module class ActivityModule(private val activity: Acti...
0
Kotlin
0
0
3df194bc566945ea6110ca7539668382c3d6e5c0
502
ASOSAndroidQATask
Apache License 2.0
src/Day02.kt
SpencerDamon
573,244,838
false
{"Kotlin": 6482}
fun main() { fun part1(input: List<String>): Int { var myTotalScore = 0 for (i in input) { val (otherPlayer, myPlay) = i.split(" ") when (otherPlayer) { "A" -> if (myPlay == "X") { myTotalScore += 4 // 1 for rock, 3 for draw ...
0
Kotlin
0
0
659a9e9ae4687bd633bddfb924416c80a8a2db2e
2,618
aoc-2022-in-Kotlin
Apache License 2.0
app/src/main/java/com/dimowner/goodweather/app/main/MainActivity.kt
Dimowner
115,884,832
false
{"Gradle": 3, "INI": 1, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 56, "XML": 49, "Java": 12, "HTML": 8}
/* * Copyright 2019 <NAME> * * Licensed to the Apache Software Foundation (ASF) under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. The ASF licenses this * file to you under the Apache License, Version ...
0
Kotlin
2
3
48f81a170cc020307ae0555bd9baac8c9acb4e3a
4,456
GoodWeather
Apache License 2.0
src/commonMain/kotlin/fr/acinq/lightning/serialization/v1/Serialization.kt
ACINQ
243,326,972
false
null
package fr.acinq.lightning.serialization.v1 import fr.acinq.bitcoin.ByteVector import fr.acinq.bitcoin.ByteVector32 import fr.acinq.bitcoin.Crypto import fr.acinq.bitcoin.PrivateKey import fr.acinq.lightning.NodeParams import fr.acinq.lightning.crypto.ChaCha20Poly1305 import fr.acinq.lightning.utils.toByteVector impor...
18
Kotlin
3
38
57af9b447df16b7a0b537d054bf6112e6d9c13c5
7,678
lightning-kmp
Apache License 2.0
finnmath/src/test/kotlin/io/github/ltennstedt/finnmath/Arbs.kt
ltennstedt
92,976,344
false
null
/* * Copyright 2021 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
0
Kotlin
1
3
265eea36b14c20fb2cf01207d9b43466c8742ebb
939
finnmath
Apache License 2.0
src/main/java/org/github/otanikotani/workflow/GitHubLoadingErrorHandler.kt
jason-edstrom
257,707,196
true
{"Kotlin": 80396}
package org.github.otanikotani.workflow import java.awt.event.ActionEvent import javax.swing.AbstractAction import javax.swing.Action class GitHubLoadingErrorHandler(private val resetRunnable: () -> Unit) { fun getActionForError(error: Throwable): Action? { return RetryAction() } private inner c...
0
Kotlin
0
0
025c2b5c2c92511b430fc62e807a297199dd3865
466
view-github-actions-idea-plugin
MIT License
app/src/main/java/com/vivek/androidmvvm/utilites/Utility.kt
mishravivek517
536,162,786
false
{"Kotlin": 12427}
package com.vivek.androidmvvm.utilites import android.app.Activity import android.app.Dialog import android.view.WindowManager class Utility { companion object { private lateinit var dialog: Dialog //private var dialog: Dialog? = null fun makeFullScreen(activity: Activity) { activ...
0
Kotlin
0
0
c0c2d923f4f9dd241ae3049cff1be5d8fe4d7207
1,207
Android-Components
MIT License
app/src/main/kotlin/com/skydoves/sealedxdemo/ui/PosterMainViewModel.kt
skydoves
523,987,434
false
{"Kotlin": 76769}
/* * Designed and developed by 2022 skydoves (<NAME>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
0
Kotlin
10
311
f6c5edcbeed07be49be3e5d059618c09e5db8297
1,757
sealedx
Apache License 2.0
libs/automerge-repository-websocket-ktor/src/jvmMain/kotlin/org/automerge/repository/websocket/ktor/-WebSocketServerMessage.kt
ptitjes
714,392,967
false
{"Kotlin": 43987}
@file:UseSerializers( PeerIdSerializer::class, DocumentIdSerializer::class, ) package org.automerge.repository.websocket.ktor import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable import kotlinx.serialization.UseSerializers import org.automerge.repository.DocumentId import org.auto...
0
Kotlin
0
0
eec79244402dc37257604ad1686635de4c9ea48f
3,002
automerge-kotlin
MIT License
src/main/kotlin/neutron/io/Reader.kt
Neutron17
336,418,022
false
null
package neutron.io import java.io.BufferedInputStream import java.io.File import java.io.FileInputStream import java.io.FileNotFoundException import java.util.* class Reader { companion object { /** Read a single char from a file */ fun readSingleChar(path:String) { try { val fis =...
0
Kotlin
0
0
e8e5265540d74df19033786babbc5aa83c4363ed
1,920
neutron-lib
Apache License 2.0
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/OptimalInstanceType.kt
cloudshiftinc
667,063,030
false
{"Kotlin": 142794926}
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") package io.cloudshiftdev.awscdk.services.batch import io.cloudshiftdev.awscdk.services.ec2.InstanceType /** * Not a real instance type! * ...
1
Kotlin
0
4
e15f2e27e08adeb755ad44b2424c195521a6f5ba
1,301
kotlin-cdk-wrapper
Apache License 2.0
eux-relaterte-rinasaker-model/src/main/kotlin/no/nav/eux/relaterte/rinasaker/model/RelaterteRinasakerGruppeCreateRequest.kt
navikt
622,536,007
false
{"Kotlin": 27202, "HTML": 2038, "Makefile": 138, "Dockerfile": 126}
package no.nav.eux.relaterte.rinasaker.model import java.time.LocalDateTime import java.util.* data class RelaterteRinasakerGruppeCreateRequest( val relaterteRinasakerId: UUID, val rinasakIdList: List<String>, val beskrivelse: String?, val opprettetDato: LocalDateTime?, )
0
Kotlin
0
0
9d0b2f02eca4a256a1b7af86fa831dbf1fcee77f
291
eux-relaterte-rinasaker
MIT License
src/main/kotlin/com/badger/familyorgbe/repository/token/ITokenRepository.kt
Artem-Yakovlev
445,531,524
false
{"Kotlin": 109555}
package com.badger.familyorgbe.repository.token import com.badger.familyorgbe.models.entity.TokenEntity import org.springframework.data.jpa.repository.JpaRepository import org.springframework.data.jpa.repository.Query import org.springframework.data.repository.query.Param interface ITokenRepository : JpaRepository<To...
0
Kotlin
0
1
131e3e8841d55a9a14995aa6b254976c89d2c336
523
FamilyOrganizerBackend
MIT License
app/src/main/java/com/example/newz/domain/usecases/app_entry/SaveAppEntry.kt
Razorquake
747,503,854
false
{"Kotlin": 101030}
package com.example.newz.domain.usecases.app_entry import com.example.newz.domain.manager.LocalUserManager class SaveAppEntry( private val localUserManager: LocalUserManager ) { suspend operator fun invoke() { localUserManager.saveAppEntry() } }
0
Kotlin
0
0
fb2d7b77ec5a52d6e8f1665ea4e774b170dec994
267
Newz
MIT License
app/src/main/java/com/igorvd/githubrepo/domain/LoadGitHubReposInteractor.kt
igorvilela28
106,742,458
true
{"Gradle": 3, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 47, "XML": 18, "Java": 2}
package com.igorvd.githubrepo.domain import com.igorvd.githubrepo.domain.entities.GitHubRepo import com.igorvd.githubrepo.data.repository.GitHubRepoRepository import com.igorvd.githubrepo.domain.LoadGitHubReposInteractor.Params import kotlinx.coroutines.experimental.CommonPool import kotlinx.coroutines.experimental.De...
0
Kotlin
0
5
d484622a1c05ff2baf87dde2c163afbdb239b45f
1,348
Github-Popular-Repos
Apache License 2.0
platform/lang-impl/src/com/intellij/codeInsight/hints/codeVision/InheritorsCodeVisionProvider.kt
ingokegel
72,937,917
true
null
// 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.codeInsight.hints.codeVision import com.intellij.codeInsight.CodeInsightBundle import com.intellij.codeInsight.codeVision.settings.PlatformCodeVisionIds abstract class Inherito...
1
null
1
2
b07eabd319ad5b591373d63c8f502761c2b2dfe8
553
intellij-community
Apache License 2.0
network/src/main/kotlin/cn/labzen/cells/network/http/server/core/support/meta/MappedClassProcessor.kt
labzen
461,753,481
false
{"Kotlin": 404129, "Java": 345014, "HTML": 514}
package cn.labzen.cells.network.http.server.core.support.meta import cn.labzen.cells.network.http.server.annotation.Path import cn.labzen.cells.network.http.server.annotation.Restful import java.lang.reflect.AnnotatedElement internal class MappedClassProcessor : MultilevelClass(), MappedElementProcessor { init { ...
0
Kotlin
0
0
b4d15f11a7d7f568800b272dfa5175ae48bb69cb
1,077
cells
Apache License 2.0
app/src/main/java/com/baljeet/expirytracker/interfaces/OnTrackerOpenListener.kt
baljeet808
391,490,393
false
null
package com.baljeet.expirytracker.interfaces import com.baljeet.expirytracker.data.Tracker import com.baljeet.expirytracker.data.relations.TrackerAndProduct interface OnTrackerOpenListener { fun openTrackerInfo(tracker : TrackerAndProduct) }
0
Kotlin
0
1
c5dfa7efb0a18b49e415113ec420b10a18912157
247
ExpiryTracker
Apache License 2.0
app/src/main/java/ru/kabylin/andrey/vocabulator/ui/holders/LanguageHolder.kt
sysint64
140,518,543
false
{"Kotlin": 199316}
package ru.kabylin.andrey.vocabulator.ui.holders import android.content.Context import android.view.View import kotlinx.android.synthetic.main.item_language.view.* import ru.kabylin.andrey.vocabulator.services.LanguagesService import ru.kabylin.andrey.vocabulator.views.RecyclerItemHolder class LanguageHolder(context:...
0
Kotlin
0
1
c6fbadf51f9ca638c1037f75306d11d7c6652444
553
vocabulator-android-client
MIT License
src/main/kotlin/ff/paste/kpaste/json/Syntax.kt
tlundgren
375,396,281
false
null
package ff.paste.kpaste.json /** * Part of the document returned by requests "syntaxes/id", "syntaxes". */ internal data class Syntax( val id: Int, val short: String, val name: String )
0
Kotlin
0
0
f7657e870304c1e8018ad626178b8d0f3c0bb938
200
kpaste
MIT License
src/main/java/com/pako2k/banknotescatalog/ui/views/login/SignupSubview.kt
Pako2K
857,481,593
false
{"Kotlin": 672402}
package com.pako2k.banknotescatalog.ui.views.login import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.height import androidx.compose.material.icons.Icons import androidx.compos...
0
Kotlin
0
0
3f7486c1a9544213a108dd17c4d78aeb50204bd4
5,799
BanknotesCatalog
MIT License
app/src/main/java/com/hoangtien2k3/news_app/ui/football/FootballViewModel.kt
hoangtien2k3
764,778,641
false
{"Kotlin": 143509}
package com.hoangtien2k3.news_app.ui.football import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import com.hoangtien2k3.news_app.data.models.Football import com.hoangtien2k3.news_app.data.source.api.FootballClient import com.hoangtien2k3.news_app.network.ApiResponse import com.hoangtien2k3.n...
2
Kotlin
0
0
8804e6d6de718e20cfffa7efc91cd1a51e76967b
954
news-app
MIT License
app/src/main/java/it/tim/innovation/jolmilano/olivetticlub/utils/InsertFragmentInterface.kt
olivetticlub
212,885,926
false
{"Kotlin": 142151}
/* MIT License Copyright (c) 2019 TIM S.p.A. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
0
Kotlin
0
0
532d414f13f9001a93bb9ffe45913585b5c54778
1,647
hackathon-cash-register-app
MIT License
library/src/main/java/com/chuckerteam/chucker/api/Chucker.kt
ibrahimsn98
330,921,141
true
{"Kotlin": 221318, "Shell": 1445}
package com.chuckerteam.chucker.api import android.content.Context import android.content.Intent import android.util.Log import com.chuckerteam.chucker.internal.support.Logger import com.chuckerteam.chucker.internal.support.NotificationHelper import com.chuckerteam.chucker.internal.ui.MainActivity /** * Chucker meth...
0
null
0
1
ed651019b852a8dd42a7a536862a020662b5984e
1,675
chucker
Apache License 2.0
src/main/java/dev/chieppa/wrapper/parser/BookmarkParser.kt
nrc4867
368,734,815
false
null
package dev.chieppa.wrapper.parser import dev.chieppa.wrapper.constants.workproperties.BookmarkType import dev.chieppa.wrapper.constants.workproperties.parseBookmarkType import dev.chieppa.wrapper.exception.parserexception.SearchParserException import dev.chieppa.wrapper.model.result.BookmarkSearchResult import dev.ch...
0
Kotlin
0
0
0c57cf295e806feb5ec5a96b55f1108329a203d0
4,056
AO3-Parser
MIT License
src/main/kotlin/cn/rtast/rob/enums/UserRole.kt
RTAkland
848,228,984
false
{"Kotlin": 140788}
/* * Copyright © 2024 RTAkland * Author: RTAkland * Date: 2024/8/31 */ @file:Suppress("unused", "EnumEntryName") package cn.rtast.rob.enums enum class UserRole { admin, member }
0
Kotlin
0
1
fd3c166d03f2f2f12b407821391c9f58837c81e0
188
ROneBot
Apache License 2.0
examples/kotlin/src/main/kotlin/Example04-SVG.kt
g0dkar
418,322,972
false
{"JavaScript": 300408, "Kotlin": 182819, "Java": 43803}
import qrcode.QRCode import svg.SVGGraphicsFactory import java.io.FileOutputStream fun main() { // This example needs an external library to work, the awesome JFree SVG (check the build.gradle.kts) // Check it out: https://github.com/jfree/jfreesvg (highly recommended if you need SVGs) // // All exampl...
25
JavaScript
18
184
d2b45b5d81a7feadd7a2c9357ec2ec0ba178de5e
1,711
qrcode-kotlin
MIT License
koin-projects/koin-core/src/main/kotlin/org/koin/core/context/KoinContextHandler.kt
henriquehorbovyi
277,036,450
true
{"Kotlin": 494681, "HTML": 8351, "Java": 8282, "JavaScript": 4873, "CSS": 827, "Shell": 466}
/* * Copyright 2017-2020 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 ap...
0
null
0
1
654068b498ad5d47f8aa4cef016265263f6d32b8
1,833
koin
Apache License 2.0
backend/src/main/kotlin/app/ehrenamtskarte/backend/migration/migrations/V0004_AddNotificationSettings.kt
ehrenamtskarte
310,244,313
false
{"TypeScript": 580721, "Kotlin": 466424, "Dart": 326932, "Ruby": 17252, "Swift": 17185, "PLpgSQL": 4734, "Shell": 4442, "HTML": 4050, "JavaScript": 2376, "Java": 1039, "CSS": 433, "Objective-C": 38}
package app.ehrenamtskarte.backend.migration.migrations import app.ehrenamtskarte.backend.migration.Migration import app.ehrenamtskarte.backend.migration.Statement /** * Add firstActivationDate column to cards. * Set current_timestamp for firstActivationDate for existing active cards since we have no firstActivatio...
118
TypeScript
3
36
6a72af223d33e3aad362d216c4c770e08ddb5e08
736
entitlementcard
MIT License
graph/src/main/kotlin/net/twisterrob/gradle/graph/tasks/TaskType.kt
TWiStErRob
116,494,236
false
{"Kotlin": 869420, "HTML": 57841, "Java": 16637, "XSLT": 13875, "JavaScript": 8666, "CSS": 6638, "Groovy": 3434, "Batchfile": 353}
package net.twisterrob.gradle.graph.tasks enum class TaskType { Unknown, Normal, Requested, Excluded, }
88
Kotlin
5
18
f09876c9163bf4d62c57c3f9423b443efd1070bb
109
net.twisterrob.gradle
The Unlicense
Problems/Algorithms/47. Permutations II/PermutationsII.kt
xuedong
189,745,542
false
{"Kotlin": 333042, "Python": 325180, "Java": 301930, "C++": 117391, "Rust": 83222, "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}
class Solution { val curr: MutableList<Int> val res: MutableList<MutableList<Int>> init { curr = mutableListOf() res = mutableListOf() } fun permuteUnique(nums: IntArray): List<List<Int>> { val used = BooleanArray(nums.size) { false } nums.sort() aux...
0
Kotlin
0
1
d7c362c6729e72fcce2006f82e7359eea5d26348
841
leet-code
MIT License
app/src/main/java/com/stratagile/qlink/ui/activity/otc/contract/OrderSellContract.kt
qlcchain
115,608,966
false
null
package com.stratagile.qlink.ui.activity.otc.contract import com.stratagile.qlink.entity.EthWalletInfo import com.stratagile.qlink.entity.NeoWalletInfo import com.stratagile.qlink.entity.TokenPrice import com.stratagile.qlink.ui.activity.base.BasePresenter import com.stratagile.qlink.ui.activity.base.BaseView /** * @...
1
Java
18
46
1c8066e4ebbb53c7401751ea3887a6315ccbe5eb
1,186
QWallet-Android
MIT License
coachmark/src/main/java/com/android/library/coachmark/utility/Gravity.kt
chhatrasal09
179,552,987
false
null
package com.android.library.coachmark.utility enum class Gravity { CENTER, START, END, TOP, BOTTOM }
5
null
6
35
9db2f55dc14d93a50d7f8f709d680e827e7cdbbf
121
CoachMark
Apache License 2.0
src/main/kotlin/org/elm/lang/core/psi/elements/ElmBinOpExpr.kt
zraktvor
221,007,094
true
{"Markdown": 22, "Java Properties": 1, "Gradle": 1, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 3, "Text": 73, "INI": 1, "Java": 22, "Elm": 83, "JSON": 2, "Kotlin": 327, "XML": 5, "SVG": 9, "HTML": 12, "JFlex": 1}
package org.elm.lang.core.psi.elements import com.intellij.lang.ASTNode import org.elm.lang.core.psi.* /** * One or more binary operator expressions. * * Examples: * * ``` * 4 + 3 * 4 + 3 == 7 * String.fromInt x ++ " things" * ``` */ class ElmBinOpExpr(node: ASTNode) : ElmPsiElementImpl(node), ElmExpr...
0
Kotlin
0
0
f83f1dcccd4f6d38c7f0d7f23e9f3047246f1622
700
intellij-elm
MIT License
app/src/main/java/com/czq/kotlinarch/template/list/ItemBinder.kt
manondidi
154,757,414
false
{"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Java": 4, "XML": 48, "Kotlin": 86, "JSON": 5}
package com.czq.kotlinarch.template.list import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.czq.kotlinarch.R import com.drakeet.multitype.ItemViewBinder class ItemBinder : ItemViewBinder<Item, ItemBinder.ViewHolder>() ...
2
Kotlin
24
198
87d18e5f7e9ec375e35f4793c4679b040d98ff4b
645
kotlinArch
MIT License
mqtt-client-Android-Kotlin/app/src/main/java/io/emqx/mqtt/BaseFragment.kt
emqx
297,556,171
false
null
package io.emqx.mqtt import android.content.Context import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentActivity abstract class BaseFragment : Fragment() { var fragmentActivity...
16
null
671
803
d88375ca7e295c2815405420330699feae13963f
819
MQTT-Client-Examples
MIT License
src/test/kotlin/name/valery1707/problem/e/olymp/Problem520KTest.kt
valery1707
541,970,894
false
null
package name.valery1707.problem.e.olymp import name.valery1707.problem.TestUtilsJ.withinConsole import name.valery1707.problem.junit.Implementation import name.valery1707.problem.junit.ImplementationSource import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.params.ParameterizedTest import org.ju...
3
null
1
1
55f9cb65499168735277131e2fbe44a918ec86ca
771
problem-solving
MIT License
jvm/jvm-analysis-kotlin-tests/testSrc/com/intellij/codeInspection/tests/kotlin/performance/KotlinUrlHashCodeInspectionTest.kt
ingokegel
72,937,917
false
null
package com.intellij.codeInspection.tests.kotlin.performance import com.intellij.codeInspection.tests.JvmLanguage import com.intellij.codeInspection.tests.performance.UrlHashCodeInspectionTestBase class KotlinUrlHashCodeInspectionTest : UrlHashCodeInspectionTestBase() { fun `test url hashcode call`() { myFixtur...
1
null
1
2
b07eabd319ad5b591373d63c8f502761c2b2dfe8
2,662
intellij-community
Apache License 2.0
mobile/src/main/java/uk/co/appsbystudio/geoshare/utils/GPSTracking.kt
zacdevil10
50,067,543
false
null
package uk.co.appsbystudio.geoshare.utils import android.annotation.SuppressLint import android.content.Context import android.location.Location import android.location.LocationListener import android.location.LocationManager import android.os.Bundle import com.google.android.gms.maps.model.LatLng class GPSTracking(...
5
Kotlin
1
1
f66aa94d7f44c8dbf81a6a67a4e0504bbf7e2d32
2,624
GeoShare_Android
Apache License 2.0
sdk-base/src/main/java/com/mapbox/maps/plugin/viewport/ViewportConstants.kt
mapbox
330,365,289
false
null
package com.mapbox.maps.plugin.viewport /** * The default maximum duration of the generated transitions set for the state transition options, * including delays between animators and their respective durations. */ const val DEFAULT_TRANSITION_MAX_DURATION_MS = 3500L /** * The default duration of the generated tra...
216
null
131
472
2700dcaf18e70d23a19fc35b479bff6a2d490475
683
mapbox-maps-android
Apache License 2.0
Weather/src/main/java/com/xfhy/weather/fragment/WeatherFragment.kt
xfhy
134,017,261
false
null
package com.xfhy.weather.fragment import android.Manifest import android.annotation.SuppressLint import android.graphics.Color import android.os.Bundle import android.support.v4.widget.SwipeRefreshLayout import android.support.v7.widget.LinearLayoutManager import android.view.View import com.tbruyelle.rxpermissions2.R...
1
null
5
41
2f5410d10174e460331807179000fcea9f80acf0
6,046
LifeHelper
Apache License 2.0
module-github/src/main/java/com/huyingbao/module/github/ui/main/store/MainStore.kt
coolfire2015
202,471,966
false
{"Gradle": 10, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 6, "Batchfile": 1, "YAML": 1, "Markdown": 1, "Proguard": 5, "XML": 82, "Kotlin": 162, "Java": 1, "JSON": 6}
package com.huyingbao.module.github.ui.main.store import androidx.lifecycle.MutableLiveData import androidx.paging.Config import androidx.paging.toLiveData import com.huyingbao.core.arch.dispatcher.RxDispatcher import com.huyingbao.core.arch.model.RxAction import com.huyingbao.core.arch.store.RxActivityStore import co...
0
Kotlin
0
1
b33fe78edace5dfda77943885da2f0c6baaec952
1,906
RxFluxArchApp
Apache License 2.0
app/src/main/java/com/example/shinelon/lianqin/presenter/LoginPresenter.kt
HB-pencil
112,829,724
false
null
package com.example.shinelon.lianqin.presenter import android.util.Log import com.example.shinelon.lianqin.helper.RetrofitHelper import com.example.shinelon.lianqin.model.AllNoteInfos import com.example.shinelon.lianqin.model.LoginResult import com.example.shinelon.lianqin.view.BaseView import com.example.shinelon.lia...
0
Kotlin
0
0
d7876605647920c59a6bea2bfb6581b60091823e
2,167
lianqin
Apache License 2.0
app/src/test/java/com/github/jameshnsears/quoteunquote/database/RandomIndexTest.kt
codacy-badger
328,731,154
false
{"Java": 189087, "JavaScript": 10565, "Shell": 1362, "Kotlin": 821, "TSQL": 390}
package com.github.jameshnsears.quoteunquote.database import org.junit.Assert.fail import org.junit.Test import org.slf4j.LoggerFactory import java.util.* class RandomIndexTest { private val logger = LoggerFactory.getLogger(RandomIndexTest::class.java) @Test fun getRandomIndex() { val databaseRep...
1
null
1
1
0936ec68190f21946dc66da6d6c7ecdbd85f9b99
821
QuoteUnquote
Apache License 2.0
mobile/src/main/java/com/google/samples/apps/iosched/ui/filters/FiltersViewModel.kt
google
18,347,476
false
null
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
77
null
6259
21,755
738e1e008096fad5f36612325275e80c33dbe436
5,115
iosched
Apache License 2.0
codebase/android/core/common/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/core/common/extensions/LambdaEntension.kt
Abhimanyu14
429,663,688
false
{"Kotlin": 1454948}
package com.makeappssimple.abhimanyu.financemanager.android.core.common.extensions fun (() -> Unit)?.orEmpty(): () -> Unit { return this ?: {} }
4
Kotlin
0
1
6675c0b8c951b8d6105e03c34ce88054ccc87105
150
finance-manager
Apache License 2.0
src/chainOfResponubilty/User.kt
ahmedsamir9
289,471,137
false
null
package chainOfResponubilty data class HttpRequest(val number: Int) { }
0
Kotlin
3
11
6eaffe8a65e401934a2412ee4847b48aef0b8c12
73
DesignPatternsInkotlin-
MIT License
app/src/main/java/com/example/kittytinder/data/source/local/VoteDao.kt
festuskiambi
191,824,208
false
null
package com.example.kittytinder.data.source.local import androidx.room.Dao import androidx.room.Insert import androidx.room.OnConflictStrategy import com.example.kittytinder.data.Vote /** * Created by <NAME> on 6/17/19. */ @Dao abstract class VoteDao { @Insert(onConflict = OnConflictStrategy.REPLACE) abstr...
0
Kotlin
0
0
94a9aeabb6259c4a9f2fd254ae5edbee255ea556
352
kitty-tinder
Apache License 2.0
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/GlobeShield.kt
Konyaco
574,321,009
false
null
package com.konyaco.fluent.icons.filled import androidx.compose.ui.graphics.vector.ImageVector import com.konyaco.fluent.icons.Icons import com.konyaco.fluent.icons.fluentIcon import com.konyaco.fluent.icons.fluentPath public val Icons.Filled.GlobeShield: ImageVector get() { if (_globeShield != null) { ...
1
Kotlin
3
83
9e86d93bf1f9ca63a93a913c990e95f13d8ede5a
4,181
compose-fluent-ui
Apache License 2.0
biz_search/src/main/java/com/example/biz_search/SearchApi.kt
xhh4215
435,793,681
false
{"Kotlin": 327550, "Java": 107540}
package com.example.biz_search import com.example.library.restful.HiCall import com.example.library.restful.annotation.Field import com.example.library.restful.annotation.GET import com.example.library.restful.annotation.POST interface SearchApi { @GET("goods/search/quick") fun quickSearch(@Field("keyWord") ...
0
Kotlin
0
1
e2359ee06795c6b37b24ffc2a3dbe9f4159ba435
588
ShopApp
Apache License 2.0
shopping platform.kt
VadymMakohon
804,958,252
false
{"Kotlin": 3197}
import java.util.* data class Product(val id: String, val name: String, val price: Double) { var quantity: Int = 0 } data class Customer(val id: String, val name: String, val email: String) { val orders = mutableListOf<Order>() val shoppingCart = ShoppingCart() fun placeOrder() { val order = ...
0
Kotlin
0
1
1f6dc24254a780b98a8a8a9833007bf88303a76a
3,179
Shopping-platform
MIT License
src/test/kotlin/com/jackchapman/codingchallenges/hackerrank/BiggerIsGreaterTest.kt
crepppy
381,882,392
false
null
package com.jackchapman.codingchallenges.hackerrank import kotlin.test.Test import kotlin.test.assertEquals internal class BiggerIsGreaterTest { @Test fun testBiggerIsGreater() { assertEquals("hcdk", biggerIsGreater("dkhc")) assertEquals("fedcbabdc", biggerIsGreater("fedcbabcd")) asser...
0
Kotlin
0
0
9bcfed84a9850c3977ccff229948cc31e319da1b
373
coding-challenges
The Unlicense
phone/src/main/java/edu/gatech/cog/notify/phone/MainActivity.kt
GiMoney
309,783,622
true
{"Kotlin": 44583}
package edu.gatech.cog.notify.phone import android.os.Bundle import androidx.appcompat.app.AppCompatActivity class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) } }
0
Kotlin
0
0
0ad4d6fa680927a3ca102b625baf08674c8209b6
310
CaptioningOnGlass-Notify
MIT License
src/main/kotlin/dk/cachet/carp/webservices/common/email/service/impl/EmailInvitationServiceImpl.kt
cph-cachet
674,650,033
false
{"Kotlin": 671387, "TypeScript": 106849, "HTML": 14228, "Shell": 4202, "CSS": 1656, "Dockerfile": 1264, "JavaScript": 706}
package dk.cachet.carp.webservices.common.email.service.impl import dk.cachet.carp.common.application.UUID import dk.cachet.carp.deployments.application.users.StudyInvitation import dk.cachet.carp.webservices.common.configuration.internationalisation.service.MessageBase import dk.cachet.carp.webservices.common.email.d...
18
Kotlin
2
3
b0fcb02a9cf666c48539dccabdc4be012b37c0c0
3,052
carp-webservices-spring
MIT License
core/web/src/main/kotlin/eu/grand/hotel/core/app/HandleError.kt
dzappold
657,489,140
false
null
package eu.grand.hotel.core.app import org.http4k.core.Response import org.http4k.core.Status.Companion.BAD_REQUEST import org.http4k.core.Status.Companion.SERVICE_UNAVAILABLE import org.http4k.core.then import org.http4k.events.Event.Companion.Error import org.http4k.events.Events import org.http4k.filter.ServerFilte...
0
Kotlin
0
0
88318831620fbc815f33dccef0c383acd6d28d18
666
CorporateHotelBooking
Apache License 2.0
src/com/fytuu/oop/type/KtType.kt
StudyNoteOfTu
632,443,930
false
null
package com.fytuu.oop.type /** * Kotlin 泛型 * * - 泛型类 * - 泛型函数 * - 模拟RxJava的map操作符(类型转换函数) * - 类型约束 */ //泛型类 class KtType<T>(private val obj: T) { fun show() = println("print: $obj") } //泛型函数 class KtType2<T>(private val isR: Boolean, private val obj: T) { //takeIf中结果为true的话返回调用者本身,结果为false的话返回null ...
0
Kotlin
0
0
73b0030ee89e267569371a819844fc5429877c3c
3,489
KotlinStudy
Apache License 2.0
src/main/kotlin/net/codetreats/aoc2021/day16/Package.kt
codetreats
433,929,847
false
{"Kotlin": 133030, "Shell": 811}
package net.codetreats.aoc2021.day16 import net.codetreats.aoc2021.util.Logger data class Package( val bitsConsumed: Int, val version: Int, val type: Int, val literal: Long?, val subPackages: List<Package> ) { fun versionSum(): Int = version + subPackages.map { it.versionSum() }.sum() fun...
0
Kotlin
0
0
f7c456faa31f85420e988baa47682e0de973e906
3,411
aoc2021
MIT License
src/main/kotlin/no/nb/bikube/core/enum/MaterialType.kt
NationalLibraryOfNorway
694,135,748
false
{"Kotlin": 99637, "Dockerfile": 109}
package no.nb.bikube.core.enum enum class MaterialType (val value: String) { NEWSPAPER("Newspaper"), MANUSCRIPT("Manuscript"), PERIODICAL("Periodical"), MONOGRAPH("Monograph") }
4
Kotlin
0
2
b197cdcaebbc7e63e6ecc756517a10011a263e62
195
bikube
Apache License 2.0
src/main/kotlin/io/github/durun/lateko/renderer/common/DocumentRenderVisitor.kt
Durun
244,782,805
false
null
package io.github.durun.lateko.renderer.common interface DocumentRenderVisitor : StructureRenderVisitor, InlineRenderVisitor
5
Kotlin
0
1
b5809e171acf41a804b2fbdb4ddb21185bd93e8b
125
lateko
MIT License
feature-crypto-domain/src/main/kotlin/dev/bogdanzurac/marp/feature/crypto/domain/models.kt
bogdanzurac
637,436,620
false
null
package dev.bogdanzurac.marp.feature.crypto.domain data class CryptoAsset( val id: String, val rank: Int, val symbol: String, val name: String, val priceUsd: Double, val changePercent: Double, val marketCapUsd: Double, val supply: Double, val maxSupply: Double?, )
0
Kotlin
0
0
0718921da8db76ed9894335c4c45aa87d2a56bad
302
marp-feature-crypto
Apache License 2.0
src/main/kotlin/ch/unil/pafanalysis/annotations/service/AnnotationRepository.kt
UNIL-PAF
419,229,519
false
{"Kotlin": 443542, "R": 1119}
package ch.unil.pafanalysis.annotations.service import ch.unil.pafanalysis.annotations.model.AnnotationInfo import org.springframework.data.jpa.repository.JpaRepository import org.springframework.data.jpa.repository.Modifying import org.springframework.data.jpa.repository.Query interface AnnotationRepository: JpaRepo...
0
Kotlin
0
0
515b283175cd3302aec64883a6abba27c7ede64e
506
paf-analysis-backend
MIT License
shared/feature/graph/src/commonMain/kotlin/ly/david/musicsearch/shared/feature/graph/viz/core/geom/Point.kt
lydavid
458,021,427
false
{"Kotlin": 1934721, "HTML": 1854067, "Swift": 4205, "Python": 3527, "Shell": 1594, "Ruby": 955}
/* * Copyright (c) 2018-2021. data2viz sàrl. * * 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...
115
Kotlin
0
45
3ab7303fca3a33f1a64e88ef3b411198fb25477c
752
MusicSearch
Apache License 2.0
transport/src/commonTest/kotlin/com/genesys/cloud/messenger/transport/network/test_engines/Authorize.kt
MyPureCloud
425,920,457
false
{"Kotlin": 706243, "Swift": 121318, "Shell": 5872, "Ruby": 4636}
package com.genesys.cloud.messenger.transport.network.test_engines import com.genesys.cloud.messenger.transport.auth.AuthJwt import com.genesys.cloud.messenger.transport.respondNotFound import com.genesys.cloud.messenger.transport.shyrka.send.AuthJwtRequest import com.genesys.cloud.messenger.transport.utility.AuthTest...
3
Kotlin
6
9
dc917b2871f3a78a346eff24ae1b56fa5807c469
3,169
genesys-messenger-transport-mobile-sdk
MIT License
src/main/java/io/kcc/menu/TopicMenu.kt
enricostara
345,267,741
false
null
package io.kcc.menu import io.kcc.Configuration import io.kcc.errorMessage import io.kcc.model.Topic import io.kcc.protocol.provideKccProtocolHandler const val joinMenuItem = "join" const val leaveMenuItem = "leave" /** * Use 'object' to declare a singleton, a class for which you need only one instance. * [see](ht...
0
Kotlin
0
8
4929e3343e155aed571228281bd26e23907d6d34
6,619
kotlin-cli-chat
MIT License
app/src/main/kotlin/com/yuan/looker/ui/composable/Splash.kt
yuanczx
395,931,517
false
null
package com.yuan.looker.ui.composable import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.size import androidx.compose.materia...
0
Kotlin
1
1
4971677de6de06a9e0c3d307477ff4dd8610ce83
1,476
Looker
Apache License 2.0
src/main/kotlin/adventofcode/y2021/Day04.kt
Tasaio
433,879,637
false
null
import adventofcode.parseNumbersToSingleInt import java.lang.RuntimeException fun main() { val day = Day04() println(day.part1()) day.reset() println(day.part2()) } class Day04 : Y2021Day(4) { private val input = fetchInput() private val numbers = input[0].split(",").map { it.parseNumbersToSi...
0
Kotlin
0
0
cc72684e862a782fad78b8ef0d1929b21300ced8
2,997
adventofcode2021
The Unlicense
app/src/main/java/c23/ps325/communicare/repository/Result.kt
C23-PS325
647,107,389
false
null
package c23.ps325.communicare.repository sealed class Result<out T> { data class Success<T>(val data: T) : Result<T>() data class Error(val message: String?) : Result<Nothing>() } fun <T> errorResult(message: String?): Result<T> { return Result.Error(message) } fun <T> T.toSuccessResult(): Result<T> { ...
0
Kotlin
0
0
fe825caa840ff846e4aa065530aa4cf988ac5c19
563
communicare-mobile-apps
MIT License
src/main/kotlin/org/twostack/message/inventory/InventoryPayload.kt
werkswinkel
504,418,789
false
{"Kotlin": 88878}
package org.twostack.message.inventory import org.twostack.bitcoin4j.Utils import org.twostack.bitcoin4j.VarInt import org.twostack.message.Inventory import org.twostack.message.InventoryType import java.io.ByteArrayInputStream import java.io.ByteArrayOutputStream /* Inventory Entry ---------------- 4 by...
0
Kotlin
0
0
1277644586a81b3669337fda336ed148cbd7fa5f
1,616
spvclientk
MIT License
src/main/kotlin/com/chatandpay/api/service/AccountService.kt
f-lab-edu
634,472,358
false
{"Kotlin": 157490}
package com.chatandpay.api.service import com.chatandpay.api.domain.OtherBankAccount import com.chatandpay.api.dto.AccountDTO import com.chatandpay.api.dto.OpenApiDTO import com.chatandpay.api.exception.RestApiException import com.chatandpay.api.repository.AccountRepository import org.springframework.stereotype.Servic...
5
Kotlin
2
2
24e575e25197b043edc042be1ddd739db266460b
1,342
chatAndPay-API
MIT License
player/playback-engine/src/main/kotlin/com/tidal/sdk/player/playbackengine/network/NetworkTransportHelper.kt
tidal-music
806,866,286
false
{"Kotlin": 1775374, "Shell": 9881, "Python": 7380, "Mustache": 911}
package com.tidal.sdk.player.playbackengine.network import android.net.ConnectivityManager import android.net.NetworkCapabilities internal class NetworkTransportHelper(private val connectivityManager: ConnectivityManager) { fun isWifiOrEthernet(): Boolean { return connectivityManager.getNetworkCapabiliti...
27
Kotlin
0
23
1f654552133ef7794fe9bb7677bc7fc94c713aa3
531
tidal-sdk-android
Apache License 2.0
attendance/app/src/main/java/com/capstone/attendance/ui/history/HistoryFragment.kt
gunadermawan
428,836,954
false
{"Kotlin": 79686}
package com.capstone.attendance.ui.history import android.os.Bundle import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ImageView import android.widget.ProgressBar import android.widget.TextView import android.widget.Toast import andro...
1
Kotlin
0
4
f33091dabbc54b7abe14d34505a9886a46576ce2
3,416
android-PeduliPresensi-kotlin
MIT License
app/src/main/java/com/goudurixx/pokedex/features/pokemon/models/GenerationUiModel.kt
Goudurixx
756,872,856
false
{"Kotlin": 353534}
package com.goudurixx.pokedex.features.pokemon.models import com.goudurixx.pokedex.data.models.GenerationDataModel data class GenerationUiModel ( override val id: Int, val name: String, ) : ListFilterItemUiModel() fun GenerationDataModel.toUiModel() = GenerationUiModel( id = id, name = name.replace("g...
0
Kotlin
0
2
1cebba8ce6d9d8c056c25853c3c20eebea06e56a
351
pokedex-JC
MIT License
game/src/commonMain/kotlin/io/itch/mattemade/neonghost/shader/ParticleShader.kt
mattemade
861,406,871
false
{"Kotlin": 327781, "GLSL": 27986, "JavaScript": 6107, "HTML": 920}
package io.itch.mattemade.neonghost.shader import com.littlekt.graphics.shader.FragmentShaderModel import com.littlekt.graphics.shader.ShaderParameter import com.littlekt.graphics.shader.ShaderProgram import com.littlekt.graphics.shader.VertexShaderModel fun createParticleShader(vertex: String, fragment: String) = ...
0
Kotlin
0
0
2fb58bb49316b6045571f2e5822150748341dfc8
1,075
neon-ghost
MIT License
store/hbase/src/commonMain/kotlin/maryk/datastore/hbase/helpers/walkDataRecordsAndFillIndex.kt
marykdb
290,454,412
false
{"Kotlin": 3294430, "JavaScript": 1004}
package maryk.datastore.hbase.helpers import kotlinx.coroutines.future.await import maryk.core.properties.definitions.IsPropertyDefinition import maryk.core.properties.definitions.index.IsIndexable import maryk.core.properties.definitions.index.Multiple import maryk.core.properties.references.IsIndexablePropertyRefere...
1
Kotlin
1
8
c5e8f843f5d034f2d952de5aecf19c26079c5cee
4,394
maryk
Apache License 2.0
anvil/src/gen-sdk-21/kotlin/dev/inkremental/dsl/android/widget/SlidingDrawer.kt
inkremental
205,363,267
true
null
@file:Suppress("DEPRECATION", "UNCHECKED_CAST", "MemberVisibilityCanBePrivate", "unused") package dev.inkremental.dsl.android.widget import android.widget.SlidingDrawer import dev.inkremental.Inkremental import dev.inkremental.attr import dev.inkremental.bind import dev.inkremental.dsl.android.CustomSdkSetter import ...
20
Kotlin
5
58
6e6241a0e9ac80a1edd1f0e100ad6bf0c4f8175e
1,088
inkremental
MIT License
application/infrastructure/dataproviders/in-memory-dataprovider/v1/src/main/kotlin/com/redhat/demo/infra/dataproviders/inmemory/repositories/InMemoryOutboxRepository.kt
maarten-vandeperre
623,821,855
false
{"HTML": 982423, "Kotlin": 141101, "Shell": 30039}
package com.redhat.demo.infra.dataproviders.inmemory.repositories import com.redhat.demo.infra.dataproviders.core.domain.OutboxEvent import com.redhat.demo.infra.dataproviders.core.repositories.OutboxRepository class InMemoryOutboxRepository : OutboxRepository { override fun save(event: OutboxEvent) { db...
3
HTML
7
36
8f6a00f9516cd1af7bb663bd7f5e6b0ab4e00dd7
502
clean-architecture-software-sample-project
Apache License 2.0