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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
watch/src/main/java/com/mocap/watch/ui/view/RenderPhoneArmCalib.kt | wearable-motion-capture | 543,293,184 | false | {"Kotlin": 277610} | package com.mocap.watch.ui.view
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.style.TextAlign
import androidx.wear.compose.foundation.lazy.ScalingLazyColumn
import an... | 0 | Kotlin | 0 | 2 | 91f93afd8ac6b61fd21bf09356dc64e8e321636f | 3,377 | sensor-stream-apps | Apache License 2.0 |
pleo-antaeus-core/src/test/kotlin/io/pleo/antaeus/core/services/BillingServiceTest.kt | abdoolly | 314,131,020 | true | {"Kotlin": 34611, "Shell": 861, "Dockerfile": 249} | package io.pleo.antaeus.core.services
import io.mockk.*
import io.pleo.antaeus.core.exceptions.CurrencyMismatchException
import io.pleo.antaeus.core.exceptions.CustomerNotFoundException
import io.pleo.antaeus.core.exceptions.NetworkException
import io.pleo.antaeus.core.external.PaymentProvider
import io.pleo.antaeus.m... | 0 | Kotlin | 0 | 0 | 6791564c588e255deb1d932764841b849d941a39 | 9,278 | antaeus | Creative Commons Zero v1.0 Universal |
presentation/src/main/java/com/anytypeio/anytype/presentation/multiplayer/ShareSpaceViewModel.kt | anyproto | 647,371,233 | false | {"Kotlin": 10142121, "Java": 69306, "Shell": 11126, "Makefile": 1276} | package com.anytypeio.anytype.presentation.multiplayer
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.viewModelScope
import com.anytypeio.anytype.core_models.Id
import com.anytypeio.anytype.core_models.ObjectWrapper
import com.anytypeio.anytype.core_models.mul... | 37 | Kotlin | 25 | 326 | c11d482acdd111dc4d6403a710d371e19a816f98 | 9,765 | anytype-kotlin | RSA Message-Digest License |
ui/widgets/modal-bottom-sheet/src/main/kotlin/com/edricchan/studybuddy/ui/widgets/modalbottomsheet/views/interfaces/ModalBottomSheetItem.kt | EdricChan03 | 100,260,817 | false | {"Kotlin": 840248, "Ruby": 202} | package com.edricchan.studybuddy.ui.widgets.modalbottomsheet.views.interfaces
import android.content.Context
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import android.os.Parcelable
import androidx.annotation.DrawableRes
import androidx.appcompat.content.res.AppCompatResources
import andro... | 49 | Kotlin | 10 | 16 | e8b821f989a57bdd9756470f29c0f113fb35b035 | 4,181 | studybuddy-android | MIT License |
libraries/VastTools/src/main/java/com/gcode/vasttools/skin/VastSkinSupport.kt | SakurajimaMaii | 353,212,367 | false | null | /*
* Copyright 2022 VastGui
*
* 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 writi... | 3 | Kotlin | 4 | 19 | 62b0adb89d764e8e9107de076a33d2d698069b09 | 735 | Utils | Apache License 2.0 |
FrontEnd/app/src/main/java/cs309/selectunes/services/AuthServiceImpl.kt | SelecTunes | 259,414,351 | false | {"C#": 213708, "Kotlin": 94692, "HTML": 16883, "Python": 14495, "JavaScript": 11286, "Ruby": 3898, "CSS": 1346, "Dockerfile": 642, "Makefile": 184} | package cs309.selectunes.services
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import com.android.volley.NetworkResponse
import com.android.volley.Response
import com.android.volley.toolbox.StringRequest
import com.android.volley.toolbox.Volley
import com.spotify.sdk.android.authentica... | 17 | C# | 0 | 3 | fa0160d26d7ee9c78074dc86e13d7f9fd835e8c5 | 3,848 | SelecTunes | Apache License 2.0 |
app/src/main/kotlin/com/sadashi/client/chatwork/ui/room/detail/MessageListAdapter.kt | sadashi-ota | 189,266,945 | false | null | package com.sadashi.client.chatwork.ui.room.detail
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.sadashi.client.chatwork.R
import com.sadashi.client.chatwork.domain.rooms.Message
imp... | 0 | Kotlin | 0 | 0 | 458239a29ab4453f1d5e6e352efdb36af59f6d6e | 1,894 | chatwork_client_sample | Apache License 2.0 |
app/src/main/java/com/prof18/secureqrreader/style/Shapes.kt | Gozirin | 586,401,887 | false | null |
package com.prof18.secureqrreader.style
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Shapes
import androidx.compose.ui.unit.dp
internal val SecureQrReaderShapes = Shapes(
small = RoundedCornerShape(16.dp),
medium = RoundedCornerShape(16.dp),
large = Rounde... | 0 | Kotlin | 0 | 0 | 128226f89775652cce210b842046bc1f6ab2e8c0 | 341 | QrScanner | Apache License 2.0 |
ospf-kotlin-framework-gantt-scheduling/gantt-scheduling-domain-task-context/src/main/fuookami/ospf/kotlin/framework/gantt_scheduling/domain/task/model/TaskStepGraph.kt | fuookami | 359,831,793 | false | {"Kotlin": 2440181, "Python": 6629} | package fuookami.ospf.kotlin.framework.gantt_scheduling.domain.task.model
import kotlin.time.*
import fuookami.ospf.kotlin.utils.error.*
import fuookami.ospf.kotlin.utils.functional.*
enum class StepRelation {
And,
Or
}
abstract class TaskStep<
out T : AbstractMultiStepTask<T, S, E>,
out S : Abstract... | 0 | Kotlin | 0 | 4 | b34cda509b31884e6a15d77f00a6134d001868de | 4,872 | ospf-kotlin | Apache License 2.0 |
src/main/kotlin/com/pos/kasse/adminviews/Admin.kt | davidsenkristoffer | 259,775,536 | false | {"Kotlin": 47635} | package com.pos.kasse.adminviews
import javafx.scene.Parent
import tornadofx.*
class Admin : View() {
override val root = borderpane {
center {
form {
}
}
}
} | 0 | Kotlin | 0 | 0 | b16a9bbc3d35f47a286ddd80ae60f22abf00f581 | 210 | Kassesystem | MIT License |
Android/app/src/test/java/ru/alexskvortsov/policlinic/ExampleUnitTest.kt | AlexSkvor | 244,438,301 | false | null | package ru.alexskvortsov.policlinic
import org.junit.Test
import org.junit.Assert.*
import ru.alexskvortsov.policlinic.user_generators.UsersGenerator
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class E... | 0 | Kotlin | 0 | 0 | 5cc6a10a1399ee08643e69308afd4626938882b0 | 595 | polyclinic | Apache License 2.0 |
app/src/main/java/com/dinesh/mynotes/rv/RestoreAdapter.kt | Dinesh2811 | 589,404,107 | false | {"Kotlin": 121705} | package com.dinesh.mynotes.rv
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.CheckBox
import android.widget.TextView
import androidx.cardview.widget.CardView
import androidx.lifecycle.MutableLiveData
import androidx.recyclerview.widget.RecyclerView
impor... | 0 | Kotlin | 0 | 1 | aaeda7c26db0cde6159fe732057d9efeb20c03fa | 2,877 | MyNotes | Apache License 2.0 |
app/src/main/java/com/br/baseproject/repository/WordRepository.kt | Gian-f | 544,413,970 | false | null | package com.br.baseproject.repository
import androidx.annotation.WorkerThread
import com.br.baseproject.database.dao.RegistryDao
import com.br.baseproject.database.model.Registry
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines... | 0 | Kotlin | 0 | 0 | 3944a79c2958f9248e4a309f9f1631d1a8f575ac | 742 | Crud-with-RoomDatabase | MIT License |
plugin/src/main/java/com/guiying712/plugin/RouterTransform.kt | guiying712 | 466,683,536 | false | {"Kotlin": 21740} | package com.guiying712.plugin
import com.android.SdkConstants
import com.android.build.api.transform.*
import com.android.build.gradle.internal.pipeline.TransformManager
import org.apache.commons.io.FileUtils
import org.gradle.api.Project
import java.util.*
import java.io.File
class RouterTransform(private val projec... | 0 | Kotlin | 1 | 2 | fef88df211b898dcca1ce3f1e6a17f26cc9a1ae9 | 2,975 | KotlinRouter | Apache License 2.0 |
src/main/kotlin/days/Day07.kt | julia-kim | 435,257,054 | false | {"Kotlin": 15771} | package days
import readInput
import kotlin.math.absoluteValue
fun main() {
fun part1(input: List<String>): Int {
val horizontalPositions = input[0].split(",").map { it.toInt() }
val outcomes: MutableList<Int> = mutableListOf()
horizontalPositions.forEach { pos ->
var totalFuel... | 0 | Kotlin | 0 | 0 | 5febe0d5b9464738f9a7523c0e1d21bd992b9302 | 1,410 | advent-of-code-2021 | Apache License 2.0 |
src/Day08.kt | coolcut69 | 572,865,721 | false | {"Kotlin": 36853} | fun main() {
fun visibleFromTop(tree: Tree, trees: MutableList<Tree>): Boolean {
val filter = trees.filter { tree.x > it.x && tree.y == it.y }
val maxOf = filter.maxOf { it.height }
return tree.height > maxOf
}
fun visibleFromBottom(tree: Tree, trees: MutableList<Tree>): Boolean {
... | 0 | Kotlin | 0 | 0 | 031301607c2e1c21a6d4658b1e96685c4135fd44 | 5,696 | aoc-2022-in-kotlin | Apache License 2.0 |
app/src/main/kotlin/com/babelia/fansyn/network/SynologyFakeApi.kt | Babelia13 | 551,891,953 | false | {"Kotlin": 309398, "Shell": 3830} | /*
* Copyright 2022 Babelia
*
* 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 | 0 | 0fe3a5c9c84a6bad85a1c999b6fb66d4c2cbb478 | 2,455 | FancySynologyAudioPlayer | Apache License 2.0 |
OptiGUI/src/main/kotlin/opekope2/filter/OptionalFilter.kt | opekope2 | 578,779,647 | false | null | package opekope2.filter
import java.util.*
/**
* Basically a [NullGuardFilter] for Java users using [Optional].
*
* @param T The type the given [filter] accepts
* @param TResult The type [filter] returns
* @param nullResult The result when the input is not present
* @param filter The filter to evaluate
*/
clas... | 9 | Kotlin | 1 | 9 | d61d4c2a70f2d00cb7513bd19a0bfa309e7ee66d | 843 | OptiGUI | MIT License |
src/main/kotlin/CMouseController.kt | argcc | 777,572,651 | false | {"Kotlin": 665702} | package org.example
var MouseController: CMouseController? = null
class CMouseController : C_0073c368() {
var IDirectInput7A = IDirectInput7A()
var IDirectInputDevice7A = IDirectInputDevice7A()
fun CreateMouseDevice(hWnd: HWND, hInst: HINSTANCE): Boolean {
DirectInputCreateEx(hInst, 0x700u, IID_I... | 0 | Kotlin | 0 | 0 | 8edd9403e6efd3dd402bd9efdec36c34fe73780f | 654 | ei_reverse_consp | MIT License |
src/commonMain/kotlin/ir/Visibility.kt | aripiprazole | 370,489,230 | false | {"Kotlin": 297789} | /*
* Copyright 2022 Plank
*
* 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 o... | 0 | Kotlin | 0 | 3 | 110e1b467a5ba322954b95b7a9374ca1e052f3a8 | 1,033 | llvm4k | Apache License 2.0 |
app/src/main/java/com/ouday/cryptowalletsample/common/FlowState.kt | oudaykhaled | 731,418,539 | false | {"Kotlin": 131611, "Python": 4720} | package com.ouday.cryptowalletsample.common
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
/**
* Sealed class representing the different states of a Flow.
* This allows for a unified way to handle loading, success, ... | 0 | Kotlin | 0 | 1 | 6ecf39ec148c9495852ca42ff02df1aa30c7155d | 1,731 | Android-Wallet-JetCompose-MVVM-Clean-Architecture-MDS3 | MIT License |
contests/Kotlin Heroes Episode 4/Boot_camp.kt | Razdeep | 151,215,612 | false | null | // https://codeforces.com/contest/1346/problem/B
fun main() {
var tc: Int = readLine()!!.toInt()
while (tc-- > 0) {
var (n, k1, k2) = readLine()!!.split(' ').map { it.toInt() }
var text: String = readLine()!!
var arr: MutableList<Int> = mutableListOf<Int>();
for (i in 0..(n - 1)... | 0 | C++ | 0 | 2 | 8a563f41bc31029ce030213f196b1e1355efc439 | 904 | Codeforces-Solutions | MIT License |
agent/src/main/kotlin/pt/um/lei/masb/agent/net/JSONMappedURLs.kt | brunofmf | 166,305,210 | true | {"Kotlin": 240087} | package pt.um.lei.masb.agent.net
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JSON
import mu.KLogging
import pt.um.lei.masb.agent.Container
import pt.um.lei.masb.agent.data.DataSource
import java.io.File
import java.io.FileReader
import java.io.InputStreamReader
import java.net.URI
@Se... | 0 | Kotlin | 0 | 0 | 1655c032f274f078e1d7e9fa525dcada3b6499dc | 1,451 | mas-blockchain-main | MIT License |
app/src/main/kotlin/com/xiaocydx/sample/concat/HeaderFooterActivity.kt | xiaocydx | 460,257,515 | false | {"Kotlin": 1365337} | package com.xiaocydx.sample.concat
import android.os.Bundle
import android.util.TypedValue
import android.view.Gravity
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.AppCompatTextView
import androidx.recyclerview.widget.HeaderFooterRemovedChecker
import androi... | 0 | Kotlin | 0 | 9 | 27749927bb10c30d18b9a9639cdefbf03156d552 | 4,542 | CXRV | Apache License 2.0 |
app/src/main/java/com/ycz/lanhome/fragment/UpdateFragment.kt | Sanlorng | 274,937,991 | false | null | package com.ycz.lanhome.fragment
import androidx.lifecycle.ViewModelProviders
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.ycz.lanhome.R
import com.ycz.lanhome.viewmodel.UpdateViewModel
class Update... | 0 | Kotlin | 0 | 0 | f66e44888deffcc61f12d9778103de68f9eaf5fc | 938 | LANHome | Apache License 2.0 |
app/src/main/java/com/seif/booksislandapp/presentation/home/my_ads/sell/MySellAdsViewModel.kt | SeifEldinMohamed | 570,587,114 | false | null | package com.seif.booksislandapp.presentation.home.my_ads.sell
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.seif.booksislandapp.R
import com.seif.booksislandapp.domain.usecase.usecase.my_ads.sell.GetMySellAdsUseCase
import com.seif.booksislandapp.domain.usecase.usecase.shared_... | 0 | Kotlin | 0 | 0 | d7ff7f448b774aaad929a39686f04de4fd0ec19e | 2,781 | Books-Island-App | Apache License 2.0 |
src/test/kotlin/com/github/michaelbull/advent2021/day17/Day17Test.kt | michaelbull | 433,565,311 | false | null | package com.github.michaelbull.advent2021.day17
import com.github.michaelbull.advent2021.day17.Day17.part1
import kotlin.test.Test
import kotlin.test.assertEquals
class Day17Test {
@Test
fun `example 1`() {
val input = "target area: x=20..30, y=-10..-5"
assertEquals(45, Day17.solve(::part1, i... | 0 | Kotlin | 0 | 4 | 7cec2ac03705da007f227306ceb0e87f302e2e54 | 425 | advent-2021 | ISC License |
app/src/main/java/com/example/eventlink/other/DatabaseLocale.kt | lrnzznn1 | 795,386,983 | false | {"Kotlin": 79706} | @file:OptIn(InternalCoroutinesApi::class)
package com.example.eventlink.other
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import kotlinx.coroutines.InternalCoroutinesApi
import kotlinx.coroutines.internal.synchronized
@Database(entities = ... | 0 | Kotlin | 0 | 1 | c1433b9d21478c4539a5a53a70896a4573f64c21 | 1,146 | EventLink | MIT License |
app/src/main/java/com/jacobdamiangraham/groceryhelper/model/DialogInformation.kt | JacobGraham02 | 790,757,293 | false | {"Kotlin": 85761} | package com.jacobdamiangraham.groceryhelper.model
data class DialogInformation(val title: String, val message: String) {} | 0 | Kotlin | 0 | 0 | ca7e46b5426723579597dc4181baa65be3f9777e | 122 | GroceryHelper | MIT License |
linea/src/commonMain/kotlin/compose/icons/lineaicons/software/LayoutHeader4boxes.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.lineaicons.software
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 3,548 | compose-icons | MIT License |
sensorlib/src/test/java/com/handmonitor/sensorlib/v1/SensorEventProducerTest.kt | Supercaly | 816,167,478 | false | {"Kotlin": 130658} | package com.handmonitor.sensorlib.v1
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import android.os.Handler
import android.util.Log
import com.handmonitor.sensorlib.mockLog
import com.handmonitor.sensorlib.mockSensorEven... | 0 | Kotlin | 0 | 0 | 88b22c82d5c28fda9681554f126721d076938e1c | 15,352 | android-sensorlib | MIT License |
src/linuxMain/kotlin/ksubprocess/Process.kt | DrewCarlson | 372,115,257 | true | {"Kotlin": 107277} | /*
* Copyright 2019 Felix Treede
*
* 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 ... | 13 | Kotlin | 0 | 2 | b974087517956a1a7b199b57eb45d61dab03ee78 | 10,265 | ksubprocess | Apache License 2.0 |
VerifiableCredential/src/main/java/com/merative/watson/healthpass/verifiablecredential/models/credential/CredentialSchema.kt | digitalhealthpass | 563,978,682 | false | {"Kotlin": 1047923, "HTML": 79495, "Python": 22113, "Java": 1959} | package com.merative.watson.healthpass.verifiablecredential.models.credential
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Parcelize
data class CredentialSchema(
@SerializedName("id")
var id: String?,
@SerializedName("type")
var typ... | 0 | Kotlin | 0 | 0 | 2b086f6fad007d1a574f8f0511fff0e65e100930 | 346 | dhp-android-app | Apache License 2.0 |
src/commonMain/kotlin/com/jeffpdavidson/kotwords/model/Crossword.kt | jpd236 | 143,651,464 | false | null | package com.jeffpdavidson.kotwords.model
import com.jeffpdavidson.kotwords.formats.FONT_FAMILY_TIMES_ROMAN
import com.jeffpdavidson.kotwords.formats.Pdf.asPdf
import com.jeffpdavidson.kotwords.formats.PdfFontFamily
import com.jeffpdavidson.kotwords.formats.Puzzleable
/**
* A representation of a crossword puzzle with... | 10 | Kotlin | 2 | 10 | 8055daf8a9117ee3d8e5189ffc8e54ce2744277f | 7,372 | kotwords | Apache License 2.0 |
app/src/main/java/com/tapcrew/rickmorty/alfonso_sotelo/di/NetworkModule.kt | poncho10101 | 306,465,475 | false | null | package com.tapcrew.rickmorty.alfonso_sotelo.di
import com.haroldadmin.cnradapter.NetworkResponseAdapterFactory
import com.tapcrew.rickmorty.alfonso_sotelo.repository.remote.NetworkConstants
import com.tapcrew.rickmorty.alfonso_sotelo.repository.remote.RickMortyService
import dagger.Module
import dagger.Provides
impor... | 0 | Kotlin | 0 | 0 | 865048675a8c20d76f273022ad5e84c59193d173 | 1,442 | rickandmorty | Apache License 2.0 |
frogoadmob/src/main/java/com/frogobox/admob/ui/IFrogoAdmobActivity.kt | amirisback | 218,685,692 | false | null | package com.frogobox.admob.ui
import com.frogobox.admob.core.IFrogoAdmob
import com.google.android.gms.ads.AdView
/*
* Created by faisalamir on 01/07/21
* FrogoAdmob
* -----------------------------------------
* Name : <NAME>
* E-mail : <EMAIL>
* Github : github.com/amirisback
* -----------------------... | 3 | Kotlin | 8 | 30 | 7f5cad584689a83f837913584ea195e50d0701f3 | 1,179 | frogo-admob | Apache License 2.0 |
app/src/main/java/com/codility/roomdatabase/database/UserModelDao.kt | AndroidCodility | 132,444,009 | false | null | package com.codility.roomdatabase.database
import android.arch.lifecycle.LiveData
import android.arch.persistence.room.*
import android.arch.persistence.room.OnConflictStrategy.REPLACE
import com.codility.roomdatabase.User
@Dao
interface UserModelDao {
@Query("select * from User")
fun getAllUserItems(): Liv... | 1 | Kotlin | 1 | 1 | c9ac4d72de8e5b8bb2f2beb8464ae81f634a1d39 | 685 | RoomDatabase | MIT License |
core-data/src/main/java/io/github/zohrevand/dialogue/core/data/repository/OfflineFirstContactsRepository.kt | zohrevand | 510,113,579 | false | {"Kotlin": 271495} | package io.github.zohrevand.dialogue.core.data.repository
import io.github.zohrevand.core.model.data.Contact
import io.github.zohrevand.dialogue.core.data.model.asEntity
import io.github.zohrevand.dialogue.core.database.dao.ContactDao
import io.github.zohrevand.dialogue.core.database.model.ContactEntity
import io.gith... | 1 | Kotlin | 2 | 11 | 9607aed6f182d3eb051e5da4cee6ddf82c659690 | 1,209 | dialogue | Apache License 2.0 |
app/src/main/java/com/example/myapplication/graphs/RootNavGraph.kt | Osman0812 | 698,538,398 | false | {"Kotlin": 185794} | package com.example.myapplication.graphs
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.navigation
import com.example.myapplication.ui.screen.home.HomeScr... | 0 | Kotlin | 0 | 0 | c83e22c25e6cf88b00eeb10eb523683a4e518b80 | 1,377 | MoveeApp | MIT License |
great-wall-server/src/main/kotlin/cc/shacocloud/greatwall/service/client/dto/output/CertificateListOutput.kt | Lorwell | 830,322,172 | false | {"TypeScript": 447508, "Kotlin": 425986, "JavaScript": 3275, "CSS": 2340, "Shell": 1157, "Less": 726, "HTML": 344} | package cc.shacocloud.greatwall.service.client.dto.output
import com.fasterxml.jackson.annotation.JsonAlias
/**
* 证书详情接口的输出
*
* [文档](https://www.yuque.com/osfipin/letsencrypt/rwsy01)
*/
data class CertificateListOutput(
val c: Int,
val m: String,
val v: CertificateListVOutput
)
data class Certificate... | 0 | TypeScript | 0 | 11 | 0bb9f6b4d567a85289bd176a9bc4b2ae528b09f4 | 1,030 | great-wall | Apache License 2.0 |
codeSnippets/snippets/client-parallel-requests/src/test/kotlin/ApplicationTest.kt | ktorio | 278,572,893 | false | null | import e2e.WithTestServer
import e2e.defaultServer
import e2e.readString
import e2e.runGradleAppWaiting
import io.ktor.application.*
import io.ktor.response.*
import io.ktor.routing.*
import kotlinx.coroutines.runBlocking
import org.junit.Assert.assertEquals
import org.junit.Test
class ApplicationTest: WithTestServer(... | 5 | Kotlin | 94 | 95 | 4ede19d93a98dd25c3e1665702f13a8468a364aa | 692 | ktor-documentation | Apache License 2.0 |
src/main/kotlin/dev3/blockchainapiservice/features/payout/service/PinataIpfsService.kt | 0xDev3 | 539,904,697 | false | {"Kotlin": 4025801, "Java": 200980, "Solidity": 13345, "HTML": 2675} | package dev3.blockchainapiservice.features.payout.service
import com.fasterxml.jackson.databind.JsonNode
import dev3.blockchainapiservice.exception.IpfsUploadFailedException
import dev3.blockchainapiservice.features.payout.model.json.PinataResponse
import dev3.blockchainapiservice.features.payout.util.IpfsHash
import ... | 0 | Kotlin | 0 | 0 | a98a03cf75fc45ccf96c5cbb50a6c0ab0dd3e549 | 1,375 | blockchain-api-service | MIT License |
src/main/java/com/github/shynixn/blockball/impl/service/YamlServiceImpl.kt | Shynixn | 78,865,055 | false | {"Kotlin": 632990, "Dockerfile": 2558} | package com.github.shynixn.blockball.impl.service
import com.github.shynixn.blockball.deprecated.YamlService
import org.bukkit.configuration.MemorySection
import org.bukkit.configuration.file.YamlConfiguration
import java.nio.file.Path
@Deprecated("Use FastXml serializer.")
class YamlServiceImpl : YamlService {
/... | 2 | Kotlin | 26 | 66 | 28709f1d04fb60e16ae89e289b40faa007e67749 | 1,342 | BlockBall | Apache License 2.0 |
src/main/kotlin/no/nav/tjenestepensjon/simulering/v1/models/error/StillingsprosentListeKanIkkeLeveres.kt | navikt | 184,583,998 | false | {"Kotlin": 337080, "Dockerfile": 97} | package no.nav.tjenestepensjon.simulering.v1.models.error
class StillingsprosentListeKanIkkeLeveres : StelvioFault() | 2 | Kotlin | 0 | 0 | 0b99839a4587253ce1d42d2a5594f52f98bbfc80 | 117 | tjenestepensjon-simulering | MIT License |
app/src/main/kotlin/com/github/feed/sample/ext/ViewModelExt.kt | markspit93 | 105,769,386 | false | null | package com.github.feed.sample.ext
import android.arch.lifecycle.ViewModel
import android.arch.lifecycle.ViewModelProvider
inline fun <reified T : ViewModel> ViewModelProvider.get(): T = get(T::class.java)
| 0 | Kotlin | 0 | 0 | f37bbf8656e2e3964212fd12d4ce3864df553590 | 208 | Github-Feed-Sample | Apache License 2.0 |
app/src/main/java/com/gggames/hourglass/presentation/gameon/Reducer.kt | giladgotman | 252,945,764 | false | null | package com.gggames.hourglass.presentation.gameon
| 25 | Kotlin | 0 | 0 | 0f0fa11fbe1131387148e4d6d1b7d85c23d6e5f0 | 50 | celebs | MIT License |
vector/src/main/java/im/vector/app/features/voicebroadcast/usecase/GetVoiceBroadcastUseCase.kt | watcha-fr | 558,303,557 | false | null | /*
* Copyright (c) 2022 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 41 | Kotlin | 0 | 0 | 4b7f030dfc1adc9524fe39b14c29cc6e533bc713 | 1,746 | watcha-android | Apache License 2.0 |
app/src/main/java/com/example/notate/BroadCast/AlarmReceiver.kt | KareemHussen | 493,690,143 | false | null | package com.example.notate.BroadCast
import android.app.PendingIntent
import android.app.TaskStackBuilder
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManag... | 0 | Kotlin | 0 | 1 | ce4cfc7237948c827ff2bb19f73f33541fd82192 | 1,573 | Notate | The Unlicense |
app/src/main/java/com/github/wangyung/app/model/AnimationParameterSet.kt | wangyung | 384,290,194 | false | null | package com.github.wangyung.app.model
import com.github.wangyung.persona.particle.ParticleSystemParameters
import com.github.wangyung.persona.particle.generator.parameter.RandomizeParticleGeneratorParameters
import com.github.wangyung.persona.particle.transformation.TransformationParameters
data class AnimationParame... | 0 | Kotlin | 1 | 6 | e4c0b87c600e7756232da7963505b01f49b48b3b | 517 | persona | Apache License 2.0 |
app/src/main/java/com/abbaraees/weatherly/ui/components/WeatherInfo.kt | Abbaraees | 777,191,517 | false | {"Kotlin": 49003} | package com.abbaraees.weatherly.ui.components
import androidx.annotation.DrawableRes
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Materi... | 0 | Kotlin | 0 | 0 | 0fd1adf393e36dde1868ec7ffb3af70a122cb462 | 2,071 | weatherly | Apache License 2.0 |
libB/src/main/java/package_B_2/Foo_B_212.kt | lekz112 | 118,451,085 | false | null | package package_B_2
class Foo_B_212 {
fun foo0() {
var i=0
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.random().toInt()
i+=Math.ran... | 0 | Kotlin | 0 | 0 | 8182b7f6e92f9d65efb954c32ca640fe50ae6b79 | 581 | ModuleTest | Apache License 2.0 |
core/src/main/kotlin/consulo/toml/ide/TomlASTFactory.kt | consulo | 811,997,471 | false | {"Kotlin": 183900, "Lex": 2190, "HTML": 167} | package consulo.toml.ide
import consulo.annotation.component.ExtensionImpl
import consulo.language.ast.IElementType
import consulo.language.impl.ast.ASTCompositeFactory
import consulo.language.impl.ast.CompositeElement
import jakarta.annotation.Nonnull
import org.toml.lang.psi.TomlElementTypes
import org.toml.lang.psi... | 0 | Kotlin | 0 | 0 | 3fc05880ce70d58ec09da849837c4104fdf4479c | 2,139 | consulo-toml | Apache License 2.0 |
common/src/commonMain/kotlin/model/CwpRatingStub.kt | crowdproj | 518,714,370 | false | null | package com.crowdproj.rating.common.model
/**
* @author <NAME>
* @version 1.0
* @date 13.03.2023 12:36
*/
enum class CwpRatingStub {
NONE,
SUCCESS,
NOT_FOUND,
BAD_ID,
} | 0 | Kotlin | 2 | 0 | 668859f333e9d397870f4492463dc948bdfea83a | 192 | crowdproj-ratings | Apache License 2.0 |
app/src/main/kotlin/day02/Day02.kt | W3D3 | 726,573,421 | false | {"Kotlin": 81242} | package day02
import common.InputRepo
import common.readSessionCookie
import common.solve
import util.splitIntoPair
fun main(args: Array<String>) {
val day = 2
val input = InputRepo(args.readSessionCookie()).get(day = day)
solve(day, input, ::solveDay02Part1, ::solveDay02Part2)
}
fun solveDay02Part1(in... | 0 | Kotlin | 0 | 0 | da174508f6341f85a1a92159bde3ecd5dcbd3c14 | 2,159 | AdventOfCode2023 | Apache License 2.0 |
app/src/androidTest/java/org/wikipedia/fintechuitest/espresso/screens/ExploreScreen.kt | Bluemoonnoomeulb | 632,000,606 | false | null | package org.wikipedia.fintechuitest.espresso.screens
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.matcher.ViewMatchers.withId
import org.wikipedia.R
class ExploreScreen {
private val buttonNavMoreMatcher = withId(R.id.nav_more_c... | 0 | Kotlin | 0 | 0 | 1b548d4ba1bbcaf68a0c6fc5ea69e04f613f750a | 956 | autotests_for_wiki | Apache License 2.0 |
LI61N/demos/hvac-spring-mvc/src/main/kotlin/isel/leic/daw/hvac/common/model/simulation/SensorSimulator.kt | isel-leic-daw | 347,182,700 | false | null | package isel.leic.daw.hvac.common.model.simulation
import isel.leic.daw.hvac.common.model.Sensor
import isel.leic.daw.hvac.common.model.Temperature
import isel.leic.daw.threadSafe
import org.springframework.stereotype.Component
import kotlin.properties.Delegates.observable
/**
* Implementation of a sensor simulator ... | 5 | Kotlin | 7 | 36 | 73225fff919054f5ce74cbcc077861129b28c99f | 718 | 2021v-public | Apache License 2.0 |
app/src/main/java/com/derdilla/spiritLevel/MainActivity.kt | NobodyForNothing | 666,740,984 | false | {"Kotlin": 9308} | package com.derdilla.spiritLevel
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setCo... | 0 | Kotlin | 0 | 0 | ab705fccd44cedff471b0d4eb9831abef8c22d9d | 6,558 | spirit-level-android | MIT License |
app/src/main/java/com/derdilla/spiritLevel/MainActivity.kt | NobodyForNothing | 666,740,984 | false | {"Kotlin": 9308} | package com.derdilla.spiritLevel
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setCo... | 0 | Kotlin | 0 | 0 | ab705fccd44cedff471b0d4eb9831abef8c22d9d | 6,558 | spirit-level-android | MIT License |
SharedCode/src/commonMain/kotlin/com/architecture/business/weather/repository/WeatherRepository.kt | hoanggiang063 | 232,681,426 | false | null | package com.architecture.business.weather.repository
import com.architecture.business.core.repository.BaseRepository
import com.architecture.business.weather.info.WeatherInfo
import com.architecture.business.weather.usecase.WeatherRequest
interface WeatherRepository : BaseRepository<WeatherRequest, WeatherInfo> | 0 | Kotlin | 0 | 0 | f1297ceb5f14f3969f81b1f616a9bf14a923d020 | 314 | simple-clean-multi-platforms | Apache License 2.0 |
src/main/kotlin/com/qualape/api/utils/Cryptographer.kt | rodrigopedro81 | 606,270,717 | false | null | package com.qualape.api.utils
import java.io.UnsupportedEncodingException
import java.nio.charset.Charset
import java.security.InvalidKeyException
import java.security.NoSuchAlgorithmException
import java.util.*
import javax.crypto.BadPaddingException
import javax.crypto.Cipher
import javax.crypto.IllegalBlockSizeExce... | 0 | Kotlin | 0 | 0 | 88fa0a93f613a89b13e6d9a4b48d4c93cdfa7a23 | 1,739 | QualApeApi | Apache License 2.0 |
app/src/main/java/com/example/dndquiz/CheatActivity.kt | MCS374 | 773,826,057 | false | {"Kotlin": 8230} | package com.example.dndquiz
import android.app.Activity
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.dndquiz.databinding.ActivityCheatBinding
// have a constant
const val EXTRA_ANSWER_SHOWN = "com.example.dndqui... | 0 | Kotlin | 0 | 0 | 40687d3dd7767532d90ae49f8b76cd6903c33823 | 1,695 | androidStudioProject | MIT License |
app/src/main/java/com/gcode/vastutils/ActivityLauncher.kt | SakurajimaMaii | 353,212,367 | false | null | /*
* Copyright 2022 VastGui
*
* 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 writi... | 3 | Kotlin | 4 | 19 | 62b0adb89d764e8e9107de076a33d2d698069b09 | 2,927 | Utils | Apache License 2.0 |
presentation/favorites/src/main/java/com/jojalvo/favorites/viewmodel/FavoritesUIState.kt | jose-ojalvo | 619,971,179 | false | null | package com.jojalvo.favorites.viewmodel
/**
* @author jojalvo
* @since 3/5/23
* @email <EMAIL>
*/
interface FavoritesUIState<out T> {
object Loading : FavoritesUIState<Nothing>
data class Error(val throwable: Throwable) : FavoritesUIState<Nothing>
data class UsersData<T>(val result: T) : Favorite... | 0 | Kotlin | 0 | 0 | 1e8528c9868aec7d08e6c3bee5ffbae07d0c769e | 378 | MobileChallenge | Apache License 2.0 |
app/src/main/java/com/wcsm/confectionaryadmin/ui/theme/Color.kt | WallaceMartinsTI | 835,736,123 | false | {"Kotlin": 410093} | package com.wcsm.confectionaryadmin.ui.theme
import androidx.compose.ui.graphics.Brush
import androidx.compose.ui.graphics.Color
val Purple80 = Color(0xFFD0BCFF)
val PurpleGrey80 = Color(0xFFCCC2DC)
val Pink80 = Color(0xFFEFB8C8)
val Purple40 = Color(0xFF6650a4)
val PurpleGrey40 = Color(0xFF625b71)
val Pink40 = Colo... | 0 | Kotlin | 0 | 1 | 975edc2d7591ce648dd6062218465ff5069e1f8c | 1,441 | ConfectioneryAdmin | MIT License |
src/main/kotlin/net/vyrek/tutorialmod/datagen/ModItemTagProvider.kt | VyrekXD | 731,301,810 | false | {"Kotlin": 47604, "Java": 3602} | package net.vyrek.tutorialmod.datagen
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput
import net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider
import net.minecraft.registry.RegistryWrapper
import net.minecraft.registry.tag.ItemTags
import net.vyrek.tutorialmod.item.ModItems
import java.util.conc... | 0 | Kotlin | 0 | 1 | 0d8d03e0882edb3ea1ccdc66a1189ce474612787 | 754 | tutorial-mod | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/geovnn/meteoapuane/presentation/provincia/composables/PaginaProvincia.kt | geovnn | 806,232,559 | false | {"Kotlin": 379465} | package com.geovnn.meteoapuane.presentation.provincia.composables
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMa... | 0 | Kotlin | 0 | 0 | 74df9986f4504ead5c42d4be85574f27a639d77b | 9,407 | MeteoApuane-App | MIT License |
backend/app/src/test/kotlin/io/tolgee/controllers/PublicControllerTest.kt | tolgee | 303,766,501 | false | {"TypeScript": 2960870, "Kotlin": 2463774, "JavaScript": 19327, "Shell": 12678, "Dockerfile": 9468, "PLpgSQL": 663, "HTML": 439} | package io.tolgee.controllers
import com.posthog.java.PostHog
import io.tolgee.dtos.misc.CreateProjectInvitationParams
import io.tolgee.dtos.request.auth.SignUpDto
import io.tolgee.fixtures.andAssertResponse
import io.tolgee.fixtures.andIsBadRequest
import io.tolgee.fixtures.andIsOk
import io.tolgee.fixtures.generateU... | 170 | TypeScript | 188 | 1,837 | 6e01eec3a19c151a6e0aca49e187e2d0deef3082 | 4,986 | tolgee-platform | Apache License 2.0 |
domain/src/main/java/com/fudie/domain/model/MealCategory.kt | jerimkaura | 575,501,780 | false | null | package com.fudie.domain.model
data class MealCategory(
val strCategory: String,
val idCategory: String,
val strCategoryDescription: String,
val strCategoryThumb: String
)
| 4 | Kotlin | 2 | 8 | 49b2e3efda674d66853ff8211d718e5b0271c4e6 | 189 | Fudie | The Unlicense |
imagepicker/src/main/java/com/wilinz/imagepicker/ui/theme/Theme.kt | wilinz | 489,705,420 | false | {"Kotlin": 36733} | package com.wilinz.imagepicker.ui.theme
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material.MaterialTheme
import androidx.compose.material.darkColors
import androidx.compose.material.lightColors
import androidx.compose.runtime.Composable
import androidx.compose.runtime.SideEffect
im... | 0 | Kotlin | 0 | 0 | bf55835557fcc045040363c64ddabfea0db8c487 | 2,705 | ImagePicker | Apache License 2.0 |
src/Day3/Day03.kt | mhlavac | 574,023,170 | false | {"Kotlin": 11179, "Makefile": 612} | package Day3
import java.io.File
fun main() {
val lines = File("src", "Day3/input.txt").readLines()
var totalPriority = 0
lines.forEach {
val firstChars = it.substring(0, it.length/2).toCharArray()
val secondChars = it.substring(it.length/2, it.length).toCharArray()
// Get the char... | 0 | Kotlin | 0 | 0 | 240dbd396c0a9d72959a0b0ed31f77c356c0c0bd | 666 | advent-of-code-2022 | Apache License 2.0 |
src/nativeMain/kotlin/name/stepin/config/ConfigFile.kt | stepin | 839,166,819 | false | {"Kotlin": 42055, "Shell": 5095, "Dockerfile": 681} | package name.stepin.config
import kotlinx.serialization.Serializable
import name.stepin.utils.FileUtils
import name.stepin.utils.FileUtils.load
import net.mamoe.yamlkt.Yaml
import okio.Path
@Serializable
data class ConfigFile(
val group: String? = null,
val artifact: String? = null,
val name: String? = nu... | 0 | Kotlin | 0 | 0 | 4db2227dcde08982ade806763b9e3230c60f4c4f | 935 | kbre | MIT License |
api/ktor/src/main/kotlin/com/rafael/http/Routes.kt | RafaelPereiraSantos | 278,705,536 | false | null | package com.rafael.http
import com.rafael.common.models.Eligible
import com.rafael.common.models.ExceptionMessage
import com.rafael.common.models.HttpException
import com.rafael.common.models.RegisteringEndUser
import com.rafael.common.service.EndUserAssociation
import com.rafael.common.service.EligibilitySearch
impor... | 0 | Kotlin | 0 | 2 | 557e8972f7125fea13ed574b8b9ba692b6b2464a | 2,155 | signup-service | MIT License |
app/src/main/java/com/vincent/composedemo/navigator/Router.kt | v1ncent9527 | 734,159,361 | false | {"Kotlin": 15542} | package com.vincent.composedemo.navigator
object Router {
const val LANDING_PAGE = "LANDING_PAGE"
const val NAVIGATOR_PAGE = "NAVIGATOR_PAGE"
const val MODIFIER_PAGE = "MODIFIER_PAGE"
} | 0 | Kotlin | 0 | 0 | 7bc689c4a555ac20321dad278224738ab6f90155 | 198 | ComposeStudy | Apache License 2.0 |
src/Server.kt | AllanWang | 109,920,703 | false | null | /**
* Created by <NAME> on 2017-11-07.
*/
/**
* The resource manager is held on the server
* and has actual implementation of the given commands
*/
interface ResourceManager : Contract {
}
interface Server {
val manager: ResourceManager
val callback: Callback
fun onInputReceived(cmd: String) = Comma... | 0 | Kotlin | 0 | 0 | 9dead44eaf45f23355e9692d4bc44631cca2d5e8 | 343 | Distributed-Systems | Apache License 2.0 |
examples/example/src/test/kotlin/com/driver733/mapstructfluent/EmployeeMapperTest.kt | driver733 | 270,643,208 | false | null | package com.driver733.mapstructfluent
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.compilation.shouldNotCompile
import io.kotest.matchers.shouldBe
import org.mapstruct.factory.Mappers
class EmployeeMapperTest : FunSpec({
test("mapstruct impl") {
val model = EmployeeModel("Alex")
... | 5 | Kotlin | 2 | 2 | 62b61d5ec043436a3af1d2b383f0234fb18b4a37 | 1,720 | mapstruct-fluent | MIT License |
app/src/main/java/com/minosai/archusers/di/component/AppComponent.kt | MINOSai | 132,878,398 | false | null | package com.minosai.archusers.di.component
import android.app.Application
import com.minosai.archusers.di.module.*
import dagger.BindsInstance
import dagger.Component
import dagger.android.AndroidInjectionModule
import dagger.android.AndroidInjector
import javax.inject.Singleton
@Singleton
@Component(modules = [
... | 0 | Kotlin | 2 | 7 | ef39cccd46f42fa1bdd39b6d916bda57040c919d | 637 | CrpytoWatch-Jetpack | MIT License |
trixnity-client/src/commonMain/kotlin/net/folivo/trixnity/client/user/LazyMemberEventHandler.kt | benkuly | 330,904,570 | false | {"Kotlin": 3997992, "JavaScript": 5163, "TypeScript": 2906, "CSS": 1454, "Dockerfile": 1243} | package net.folivo.trixnity.client.user
import net.folivo.trixnity.core.model.events.Event
import net.folivo.trixnity.core.model.events.m.room.MemberEventContent
interface LazyMemberEventHandler {
suspend fun handleLazyMemberEvents(memberEvents: List<Event<MemberEventContent>>)
} | 0 | Kotlin | 3 | 26 | 03fa8ac5df76de482adf6696d697cec8e5c69c68 | 286 | trixnity | Apache License 2.0 |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/InitializationCell.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: InitializationCell
*
* Full name: System`InitializationCell
*
* Usage: InitializationCell is a... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,159 | mathemagika | Apache License 2.0 |
formatters/src/commonMain/kotlin/lexi/FormatterConfigurationUtils.kt | aSoft-Ltd | 592,348,487 | false | {"Kotlin": 48702} | package lexi
fun Map<String, String>.toJsonFormatterOptions() = JsonLogFormatterOptions(
verbose = getOrElse("verbose") { "true" }.toBoolean(),
source = getOrElse("source") { "true" }.toBoolean(),
status = getOrElse("status") { "true" }.toBoolean()
)
fun Map<String, String>.toSimpleFormatterOptions() = Si... | 0 | Kotlin | 0 | 0 | cd3aaba761fc484cc5c5bba0dde0e19a396520e1 | 518 | lexi | MIT License |
app/src/main/java/com/github/rixspi/simpleflickrgallery/repository/images/ImagesRepository.kt | rixspi | 139,967,647 | false | {"Kotlin": 100826} | package com.github.rixspi.simpleflickrgallery.repository.images
import android.support.annotation.VisibleForTesting
import com.github.rixspi.simpleflickrgallery.repository.images.model.Image
import com.github.rixspi.simpleflickrgallery.repository.net.FlickrApi
import io.reactivex.Observable
import io.reactivex.Single
... | 0 | Kotlin | 0 | 0 | c172eb446117014a54dd497523924e772e87d5c1 | 1,792 | simpleFlickrGallery | Apache License 2.0 |
gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/team/ChangeTeamNameRsp.kt | Anime-Game-Servers | 642,871,918 | false | {"Kotlin": 1651536} | package org.anime_game_servers.multi_proto.gi.data.team
import org.anime_game_servers.core.base.Version.GI_CB2
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
impor... | 0 | Kotlin | 2 | 6 | 7639afe4f546aa5bbd9b4afc9c06c17f9547c588 | 534 | anime-game-multi-proto | MIT License |
src/main/kotlin/com/baulsupp/oksocial/services/microsoft/MicrosoftAuthInterceptor.kt | umerkiani | 106,153,725 | true | {"Kotlin": 345221, "Shell": 8250, "JavaScript": 1691} | package com.baulsupp.oksocial.services.microsoft
import com.baulsupp.oksocial.authenticator.AuthInterceptor
import com.baulsupp.oksocial.authenticator.AuthUtil
import com.baulsupp.oksocial.authenticator.JsonCredentialsValidator
import com.baulsupp.oksocial.authenticator.ValidatedCredentials
import com.baulsupp.oksocia... | 0 | Kotlin | 0 | 0 | 046221a33eebd403609342ba159963100636b97e | 3,592 | oksocial | Apache License 2.0 |
app/src/main/java/com/octopus/moviesapp/ui/main/MainActivity.kt | b-alramlawi | 606,522,847 | false | {"Kotlin": 288183} | package com.octopus.moviesapp.ui.main
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import androidx.databinding.DataBindingUtil
import androidx.navigation.findNavController
import androidx.navigation.fragment.NavHos... | 0 | Kotlin | 0 | 0 | 81c315d24c34cb6a2d2fbbb4c12cf65ac0ae3826 | 2,189 | Movies_app | Apache License 2.0 |
app/src/main/java/com/udeshcoffee/android/recyclerview/EmptyRecyclerView.kt | anagram-software | 115,889,178 | false | null | package com.udeshcoffee.android.recyclerview
import android.content.Context
import android.util.AttributeSet
import android.view.View
import androidx.recyclerview.widget.RecyclerView
/**
* Created by Udathari on 8/27/2017.
*/
class EmptyRecyclerView : RecyclerView {
private var emptyView: View? = null
pri... | 3 | Kotlin | 13 | 32 | 2a43d15a23d4a8e9a37b2fd68edeb5afac606216 | 1,600 | CoffeeMusicPlayer | Apache License 2.0 |
kandy-lets-plot/src/test/kotlin/org/jetbrains/kotlinx/kandy/letsplot/samples/guides/scatterPlot.kt | Kotlin | 502,039,936 | false | {"Kotlin": 1588044} | package org.jetbrains.kotlinx.kandy.letsplot.samples.guides
import org.jetbrains.kotlinx.dataframe.api.convert
import org.jetbrains.kotlinx.dataframe.api.dataFrameOf
import org.jetbrains.kotlinx.dataframe.api.with
import org.jetbrains.kotlinx.kandy.dsl.categorical
import org.jetbrains.kotlinx.kandy.dsl.invoke
import o... | 131 | Kotlin | 15 | 585 | 3de2c8bfb0f196583e9786334557c6513b970723 | 4,730 | kandy | Apache License 2.0 |
common/src/main/kotlin/br/com/stonks/common/exception/StonksException.kt | jonathanarodr | 792,544,529 | false | {"Kotlin": 189661, "Shell": 832} | package br.com.stonks.common.exception
import okhttp3.internal.http2.ConnectionShutdownException
import retrofit2.HttpException
import java.net.ConnectException
import java.net.UnknownHostException
open class StonksException(
message: String? = null,
cause: Throwable? = null,
) : Exception(message, cause)
en... | 0 | Kotlin | 0 | 0 | 3303211e4ad5bde4dd4f2a00685884568a5eaeec | 1,046 | stonks | MIT License |
nextgen-middleware/src/main/java/com/nextgenbroadcast/mobile/middleware/atsc3/utils/TimeUtils.kt | jjustman | 418,004,011 | false | null | package com.nextgenbroadcast.mobile.middleware.atsc3.utils
import kotlin.math.roundToLong
/**
* based on https://github.com/Free-Software-for-Android/NTPSync/blob/master/NTPSync/src/main/java/org/apache/commons/net/ntp/TimeStamp.java
* */
internal object TimeUtils {
/**
* baseline NTP time if bit-0=0 -> 7... | 0 | Kotlin | 0 | 5 | f0d91240d7c68c57c7ebfd0739148c86a38ffa58 | 2,971 | libatsc3-middleware-sample-app | MIT License |
BusinessCard/app/src/main/java/me/daniel/businesscard/data/AppDatabase.kt | Daniel-Froes | 509,127,496 | false | null | package me.daniel.businesscard.data
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
@Database(entities = [BusinessCard::class], version = 1)
abstract class AppDatabase : RoomDatabase() {
abstract fun businessDao() : BusinessCardDao
comp... | 0 | Kotlin | 0 | 0 | 2b373e148eec43a485754bdb29b3f71dc3599a47 | 810 | cartao-de-visitas-App | MIT License |
components/info/impl/src/main/java/com/flipperdevices/info/impl/compose/info/ComposableFirmwareVersion.kt | flipperdevices | 288,258,832 | false | null | package com.flipperdevices.info.impl.compose.info
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import com.flipperdevices.core.ui.R as DesignSystem
import com.flipperdevices.info.impl.R
import com.flipperdevices.info.impl.model.FirmwareVers... | 2 | Kotlin | 31 | 293 | 522f873d6dcf09a8f1907c1636fb0c3a996f5b44 | 2,341 | Flipper-Android-App | MIT License |
app/src/main/java/com/xin/wanandroid/ui/wechat/WeChatViewModel.kt | coolxinxin | 294,916,632 | false | null | /*
* Copyright 2020 Leo
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | 0 | Kotlin | 0 | 3 | fbb65064bee0b3208a0b69f4feaa49c01818f854 | 1,891 | WanAndroid-JetpackMvvm | Apache License 2.0 |
plugin/src/main/kotlin/com/astrainteractive/astranpcs/events/ClickNpcEvent.kt | Astra-Interactive | 425,296,925 | false | {"Kotlin": 51688} | package com.astrainteractive.astranpcs.events
import com.astrainteractive.astranpcs.api.events.NPCInteractionEvent
import org.bukkit.Bukkit
import ru.astrainteractive.astralibs.events.DSLEvent
import kotlin.random.Random
class ClickNpcEvent {
val interactionEvent = DSLEvent.event(NPCInteractionEvent::class.java) ... | 0 | Kotlin | 0 | 0 | dd4399d470f7bf818aae92bae9140013ef6dabe2 | 877 | AstraNPCS | MIT License |
0/b.kt | DarkoKukovec | 159,875,185 | false | {"JavaScript": 38238, "Kotlin": 9620} | import java.io.File;
fun main0B() {
println(
File("input.txt")
.readText(Charsets.UTF_8)
.split(" ")
.map({
word: String -> word.toUpperCase()
})
.joinToString("-")
)
}
| 0 | JavaScript | 0 | 0 | 58a46dcb9c3e493f91d773ccc0440db9bd3b24b5 | 216 | adventofcode2018 | MIT License |
src/main/kotlin/org/example/rest_api_mongodb_spring/dto/CityRequest.kt | Subhanshu-2411 | 754,779,574 | false | {"Kotlin": 6074, "Batchfile": 181} | package org.example.rest_api_mongodb_spring.dto
import lombok.AllArgsConstructor
import lombok.Builder
import lombok.Data
import lombok.NoArgsConstructor
@Data
@NoArgsConstructor
@Builder
@AllArgsConstructor
data class CityRequest(
val name: String,
val country: String,
val populationM: Float
... | 0 | Kotlin | 0 | 0 | 07b06dc7cf9294004b3795404dcb67b5b32c9cf2 | 546 | REST_API_MONGODB_SPRING | MIT License |
di/src/main/java/com/comit/di/RepositoryModule.kt | Team-ComIT | 511,156,689 | false | null | @file:Suppress("UnnecessaryAbstractClass")
package com.comit.di
import com.comit.data.repository.AuthRepositoryImpl
import com.comit.data.repository.CommonsRepositoryImpl
import com.comit.data.repository.EmailRepositoryImpl
import com.comit.data.repository.FileRepositoryImpl
import com.comit.data.repository.HolidayRe... | 2 | Kotlin | 0 | 31 | 48293d51264908cc2f1ece572bf42c8c2f93880d | 2,037 | SimTong-Android | Apache License 2.0 |
app/src/main/java/dk/itu/moapd/copenhagenbuzz/fcag/MainActivity.kt | FrankCaglianone | 753,609,912 | false | {"Kotlin": 2081} | package dk.itu.moapd.copenhagenbuzz.fcag
import android.os.Bundle
import android.widget.ArrayAdapter
import androidx.appcompat.app.AppCompatActivity
import android.widget.AutoCompleteTextView
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(... | 0 | Kotlin | 0 | 0 | 93840dea6759538fc0d8b6f99db02b00b52c4d28 | 1,034 | CopenaghenBuzz | MIT License |
app/src/main/java/com/yly/sunnyweather/ui/place/PlaceFragment.kt | Mayo92 | 260,641,362 | false | null | package com.yly.sunnyweather.ui.place
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.core.widget.addTextChangedListener
import androidx.fragment.app.Fragment
import androidx.lif... | 0 | Kotlin | 0 | 0 | c0b2378290d18b5f2a6318eca73597cae9014563 | 2,984 | SunnyWeather | Apache License 2.0 |
services/hierarchy/src/test/kotlin/ProductServiceTest.kt | eclipse-apoapsis | 760,319,414 | false | {"Kotlin": 3574868, "TypeScript": 515434, "Dockerfile": 28077, "Shell": 8649, "JavaScript": 4916, "CSS": 4099, "PLpgSQL": 1137, "HTML": 1075, "Java": 446} | /*
* Copyright (C) 2023 The ORT Server Authors (See <https://github.com/eclipse-apoapsis/ort-server/blob/main/NOTICE>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://w... | 80 | Kotlin | 8 | 17 | 9768de2ed69a9b810efbac9ed73f76ef586146fc | 7,410 | ort-server | Apache License 2.0 |
Android/app/src/main/java/ru/alexskvortsov/policlinic/data/service/PatientProfileService.kt | AlexSkvor | 244,438,301 | false | null | package ru.alexskvortsov.policlinic.data.service
import io.reactivex.Completable
import io.reactivex.Observable
import io.reactivex.Single
import io.reactivex.functions.BiFunction
import ru.alexskvortsov.policlinic.data.storage.database.dao.PatientDao
import ru.alexskvortsov.policlinic.data.storage.database.dao.UserDa... | 0 | Kotlin | 0 | 0 | 5cc6a10a1399ee08643e69308afd4626938882b0 | 2,934 | polyclinic | Apache License 2.0 |
app/src/main/java/com/zjh/ktwanandroid/presentation/mine/mycollect/MyCollectUrlListFragment.kt | aii1991 | 521,137,839 | false | {"Kotlin": 508643, "Java": 46216} | package com.zjh.ktwanandroid.presentation.mine.mycollect
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import com.blankj.utilcode.util.ConvertUtils
import com.kingja.loadsir.core.LoadService
import com.zjh.ktwanandroid.R
import com.zjh.ktwanandroid.app.base.BaseMVIFragment
import com... | 0 | Kotlin | 0 | 0 | 49d8c85b5ed3fb4fe067c2cce589242324bd15d0 | 3,275 | kt-wanandroid | MIT License |
samples/starter-mobile-app/src/main/kotlin/researchstack/presentation/component/KitTimePickerDialog.kt | S-ResearchStack | 520,365,275 | false | {"Kotlin": 178868, "AIDL": 4785} | package researchstack.presentation.component
import android.app.TimePickerDialog
import android.content.Context
import androidx.compose.runtime.Composable
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
@Composable
fun KitTimePickerDialog(
context: Context,
initialHour:... | 5 | Kotlin | 20 | 26 | e31e8055f96fa226745750b5a653e341cf5f2e6c | 1,088 | app-sdk | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.