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/me/robbin/wanandroid/app/event/EventViewModel.kt | ModestoMa | 278,850,144 | false | null | package me.robbin.wanandroid.app.event
import androidx.lifecycle.ViewModel
import com.kunminx.architecture.ui.callback.UnPeekLiveData
import me.robbin.wanandroid.app.event.bus.CollectBus
import me.robbin.wanandroid.app.event.bus.TodoBus
import me.robbin.wanandroid.app.event.bus.TodoDetailBus
import me.robbin.wanandroi... | 1 | Kotlin | 1 | 21 | e8808e53b6a26110ea3e5d4e710a62545b237b0d | 759 | WanAndroidMVVM | Apache License 2.0 |
decoder/wasm/src/commonMain/kotlin/io/github/charlietap/chasm/decoder/type/limits/LimitsDecoder.kt | CharlieTap | 743,980,037 | false | {"Kotlin": 898736, "WebAssembly": 7119} | package io.github.charlietap.chasm.decoder.type.limits
import com.github.michaelbull.result.Result
import io.github.charlietap.chasm.ast.type.Limits
import io.github.charlietap.chasm.error.WasmDecodeError
import io.github.charlietap.chasm.reader.WasmBinaryReader
typealias LimitsDecoder = (WasmBinaryReader) -> Result<... | 2 | Kotlin | 1 | 16 | 1566c1b504b4e0a31ae5008f5ada463c47de71c5 | 345 | chasm | Apache License 2.0 |
shared/src/commonMain/kotlin/di/CommonModule.kt | marazmone | 632,133,133 | false | null | package di
import data.cache.entity.CountryEntity
import data.datasource.CountryCacheDataSource
import data.datasource.CountryCacheDataSourceImpl
import data.datasource.CountryRemoteDataSource
import data.datasource.CountryRemoteDataSourceImpl
import data.mapper.CountryEntityToModelMapper
import data.mapper.CountryRes... | 2 | Kotlin | 0 | 22 | dbf3d03961992b8ea1fca3c174823082757a4132 | 4,907 | ios-compose-showcase | Apache License 2.0 |
buildSrc/src/main/kotlin/com/fluxchess/gladius/build/plugin/versioning/VersioningExtension.kt | fluxroot | 3,110,222 | false | null | /*
* Copyright 2007-2019 The Java Chess Protocol Interface Project 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
*
* Unle... | 1 | Java | 9 | 16 | 3cd487824d0165c49e6044d15577cf1ad85cbfb4 | 818 | jcpi | Apache License 2.0 |
app/src/main/java/com/schwerzl/leftbehind/di/ApplicationHiltModule.kt | mschwerz | 851,180,582 | false | {"Kotlin": 41921} | package com.schwerzl.leftbehind.di
import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothManager
import android.content.Context
import androidx.core.content.ContextCompat.getSystemService
import com.schwerzl.leftbehind.datasource.AndroidBLEDataSource
import com.schwerzl.leftbehind.datasource.BLED... | 0 | Kotlin | 0 | 0 | 7afc7d8dbaca0a763fe08f0c47a18a560399da00 | 776 | leftbehind | Apache License 2.0 |
src/main/java/club/redux/sunset/lavafishing/registry/ModBlockEntityTypes.kt | TeamSunset | 511,115,168 | false | {"Kotlin": 134265, "Java": 8962} | package club.redux.sunset.lavafishing.registry
import club.redux.sunset.lavafishing.BuildConstants
import club.redux.sunset.lavafishing.block.blockentity.BlockEntityPrometheusBounty
import club.redux.sunset.lavafishing.util.UtilRegister
import club.redux.sunset.lavafishing.util.registerKt
import net.minecraft.core.Blo... | 0 | Kotlin | 1 | 4 | f89e08efae3570d9e8d939175ea292a8486c0fd3 | 1,131 | LavaFishing | MIT License |
ktutils/src/main/kotlin/lyc/ktutils/libs/composeutils/aliases/Contents.kt | liu-yucheng | 509,452,663 | false | null | // Copyright 2022 <NAME>. Apache License Version 2.0.
// Apache License Version 2.0 copy: http://www.apache.org/licenses/LICENSE-2.0
package lyc.ktutils.libs.composeutils.aliases
import androidx.compose.runtime.Composable
/** Compose content. */
typealias Content = @Composable () -> Unit
/** Scoped compose content.... | 0 | Kotlin | 0 | 1 | b79cb889fd06ef03bd9507c8f079af95c5270fb5 | 386 | LYC-KotlinUtils | Apache License 2.0 |
app/src/main/java/com/marverenic/reader/data/service/AuthCodeRefreshResponse.kt | marverenic | 101,457,590 | false | null | package com.marverenic.reader.data.service
import com.marverenic.reader.model.Seconds
data class AuthCodeRefreshResponse(
val id: String,
val access_token: String,
val expires_in: Seconds,
val plan: String
)
| 0 | Kotlin | 1 | 5 | e4ae8bda8a4f9f2ad73fcf95b2c3f759a60cd056 | 242 | Paper | Apache License 2.0 |
src/main/kotlin/CommandHandler.kt | NanamiNakano | 682,857,709 | false | null | import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.extensions.api.send.reply
import dev.inmo.tgbotapi.extensions.behaviour_builder.buildBehaviourWithLongPolling
import dev.inmo.tgbotapi.extensions.behaviour_builder.filters.MessageFilterByChat
import dev.inmo.tgbotapi.extensions.behaviour_builder.triggers... | 0 | Kotlin | 0 | 0 | 5afc5e615249f7112553cf79d16d7fdefe485019 | 4,427 | NanamiBot | MIT License |
app/src/main/kotlin/jp/co/yumemi/android/code_check/features/screen/detail/DetailScreen.kt | MarcoDzuong | 406,395,463 | false | null | package jp.co.yumemi.android.code_check.features.screen.detail
import android.content.Intent
import android.webkit.WebSettings
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.material.Icon
import androidx.compose.material.Text
import androidx.compose.material.ic... | 0 | Kotlin | 0 | 2 | 703e158b758aa7ddc05ab75a670b183d7c8d092f | 9,574 | yumemi-android-engineer-codecheck | Apache License 2.0 |
src/main/kotlin/learnOpenGL/d_advancedOpenGL/2 stencil testing.kt | jvm-graphics-labs | 89,148,648 | false | null | package learnOpenGL.d_advancedOpenGL
/**
* Created by elect on 13/05/17.
*/
import glm_.func.rad
import glm_.glm
import glm_.mat4x4.Mat4
import gln.draw.glDrawArrays
import gln.get
import gln.glClearColor
import gln.glf.glf
import gln.glf.semantic
import gln.program.usingProgram
import gln.set
import gln.uniform.gl... | 1 | Kotlin | 5 | 35 | 41facb9896bd1bafdd545f3786601a0841469bac | 6,198 | learn-OpenGL | MIT License |
app/src/main/java/io/horizontalsystems/bankwallet/modules/addressformat/AddressFormatViewModel.kt | fahimaltinordu | 312,207,740 | true | {"Kotlin": 1883211, "Java": 33448, "Ruby": 5803, "Shell": 2024} | package io.horizontalsystems.bankwallet.modules.addressformat
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import io.horizontalsystems.bankwallet.core.providers.StringProvider
import io.horizontalsystems.bankwallet.entities.*
import io.horizontalsystems.core.SingleLiveEvent
import io.h... | 0 | Kotlin | 0 | 4 | d3094c4afaa92a5d63ce53583bc07c8fb343f90b | 4,189 | WILC-wallet-android | MIT License |
core/data/src/main/java/com/niyaj/data/data/repository/DataDeletionRepositoryImpl.kt | skniyajali | 579,613,644 | false | {"Kotlin": 2220123} | package com.niyaj.data.data.repository
import com.niyaj.common.utils.Resource
import com.niyaj.common.utils.getCalculatedStartDate
import com.niyaj.data.repository.DataDeletionRepository
import com.niyaj.data.repository.SettingsRepository
import com.niyaj.database.model.AddOnItemEntity
import com.niyaj.database.model.... | 34 | Kotlin | 0 | 1 | 2020b913df5030525c582218f6a91a7a3466ee2c | 4,496 | POS-Application | MIT License |
app/src/main/java/com/shekharkg/githubpr/model/PullRequest.kt | shekharkg | 487,332,479 | false | null | package com.shekharkg.githubpr.model
import com.google.gson.annotations.SerializedName
data class PullRequest(
val title: String?,
@SerializedName("created_at")
var createdAt: String?,
@SerializedName("closed_at")
var closedAt: String?,
val user: RepoUser?
)
| 0 | Kotlin | 0 | 0 | 9eec5e194678269356c90f8b5d36b7432dcba121 | 286 | GitHub-PR | Apache License 2.0 |
app/src/main/java/com/shekharkg/githubpr/model/PullRequest.kt | shekharkg | 487,332,479 | false | null | package com.shekharkg.githubpr.model
import com.google.gson.annotations.SerializedName
data class PullRequest(
val title: String?,
@SerializedName("created_at")
var createdAt: String?,
@SerializedName("closed_at")
var closedAt: String?,
val user: RepoUser?
)
| 0 | Kotlin | 0 | 0 | 9eec5e194678269356c90f8b5d36b7432dcba121 | 286 | GitHub-PR | Apache License 2.0 |
data/src/main/java/com/kizitonwose/calendar/data/WeekData.kt | kizitonwose | 182,417,603 | false | {"Kotlin": 670112, "HTML": 343, "CSS": 102} | package com.kizitonwose.calendar.data
import com.kizitonwose.calendar.core.Week
import com.kizitonwose.calendar.core.WeekDay
import com.kizitonwose.calendar.core.WeekDayPosition
import java.time.DayOfWeek
import java.time.LocalDate
import java.time.temporal.ChronoUnit
public data class WeekDateRange(
val startDat... | 13 | Kotlin | 505 | 4,651 | 36de800a6c36a8f142f6432a0992e0ea4ae8a789 | 2,231 | Calendar | MIT License |
app/src/main/kotlin/it/scoppelletti/kb/app/MainApp.kt | dscoppelletti | 385,976,384 | false | null | /*
* Copyright (C) 2021 Dario Scoppelletti, <http://www.scoppelletti.it/>.
*
* 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
*
* Unle... | 0 | Kotlin | 0 | 0 | 7bd27e2d7fd6aa06a4d0b89b3d81aa214e1a0de5 | 1,433 | kb | Apache License 2.0 |
src/main/kotlin/eZmaxApi/apis/ObjectUserApi.kt | eZmaxinc | 271,950,932 | false | null | /**
* eZmax API Definition (Full)
*
* This API expose all the functionnalities for the eZmax and eZsign applications.
*
* The version of the OpenAPI document: 1.1.16
* Contact: <EMAIL>
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this fil... | 0 | Kotlin | 0 | 0 | fad1a7a8b3f744256968e67e5f60044063cb551c | 14,412 | eZmax-SDK-kotlin | MIT License |
app/src/main/java/com/rviannaoliveira/marvelapp/favorite/FavoriteView.kt | rviannaoliveira | 87,871,122 | false | null | package com.rviannaoliveira.marvelapp.favorite
import com.rviannaoliveira.marvelapp.base.BaseView
import com.rviannaoliveira.marvelapp.model.Favorite
/**
* Criado por rodrigo on 15/04/17.
*/
interface FavoriteView : BaseView {
fun loadFavorites(favorites: Favorite)
} | 0 | Kotlin | 3 | 5 | 40b5a147bd77a7930ee99c881764fe9340509e6a | 275 | MarvelApp | Apache License 2.0 |
src/jsMain/kotlin/main.js.kt | KenyOnFire | 749,573,175 | false | {"Kotlin": 77624, "Shell": 127} | import dev.gitlive.firebase.auth.*
actual object FirebaseManagerObj {
actual suspend fun startFirebaseAuth(): FirebaseAuth? {
TODO("Not yet implemented")
}
actual suspend fun startFirebaseRealtimeDB() {
}
actual suspend fun startFB() {
}
actual suspend fun isJVMorJS(): Boolean {
... | 0 | Kotlin | 0 | 1 | 75508a351aaafc16962d8ea8db2f8efef2193904 | 757 | RuletaAdrianGabriel | MIT License |
app/src/main/java/zaitsev/a/d/mirea/diplom/presentation/ui/main/newsToday/SavedNewsButton.kt | Anton-Zaitsev | 816,037,410 | false | {"Gradle Kotlin DSL": 12, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 11, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "Kotlin": 256, "TOML": 1, "CMake": 2, "C++": 8, "Proguard": 11, "XML": 36, "INI": 4, "Java": 3} | package zaitsev.a.d.mirea.diplom.presentation.ui.main.newsToday
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.defaultM... | 0 | Java | 0 | 0 | 08623c8850b0b301c7af9c7961d6436988f6d1a3 | 3,124 | AI-News | MIT License |
common/src/main/java/com/bcm/messenger/common/ui/activity/SearchActivity.kt | Era-CyberLabs | 576,196,269 | false | {"Java": 6276144, "Kotlin": 5427066, "HTML": 92928, "C": 30870, "Groovy": 12495, "C++": 6551, "CMake": 2728, "Python": 1600, "AIDL": 1267, "Makefile": 472} | package com.bcm.messenger.common.ui.activity
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.MotionEvent
import android.view.View
import androidx.fragment.app.Fragment
import com.bcm.messenger.common.ARouterConstants
import com.bcm.m... | 1 | null | 1 | 1 | 65a11e5f009394897ddc08f4252969458454d052 | 8,584 | cyberland-android | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/internals/registration/xml/XmlActionMap.kt | XaverianTeamRobotics | 635,157,880 | true | {"Java Properties": 2, "PowerShell": 2, "XML": 45, "Shell": 2, "Gradle": 7, "Markdown": 7, "Git Attributes": 1, "Batchfile": 1, "Text": 5, "Ignore List": 2, "Java": 211, "INI": 1, "YAML": 3, "HTML": 3, "CSS": 4, "JavaScript": 7, "JSON": 2, "robots.txt": 1, "Kotlin": 90} | package org.firstinspires.ftc.teamcode.internals.registration.xml
enum class XmlActionMap {
TELEMETRY_LOG_LINE,
VARIABLE_SET,
VARIABLE_USAGE,
VARIABLE_DECLARE,
INT_CONSTANT,
BINARY_EXPRESSION,
PARENTHESES,
CLEAR_TELEMETRY,
MOTOR_SET_POWER,
FLOAT_CONSTANT,
WAIT;
companio... | 0 | Java | 0 | 0 | 9ff9971a97aaab032456eca0f7a30e8e823eb861 | 1,138 | powerplay-archive | BSD 3-Clause Clear License |
src/test/kotlin/org/jetbrains/lama/LamaMultiFileTest.kt | Mervap | 457,621,178 | false | {"Kotlin": 204355, "Lex": 4986, "HTML": 613} | package org.jetbrains.lama
import com.intellij.psi.PsiFile
import com.intellij.psi.PsiManager
import java.io.File
import java.nio.file.Path
abstract class LamaMultiFileTest(private val group: String) : LamaBaseTest() {
override fun getTestDataPath(): String = super.getTestDataPath() + "/multiFile/$group/" + getTest... | 7 | Kotlin | 0 | 7 | 83bfcef88c5997e1e93181ab2f791f3ba0914719 | 1,123 | LamaPlugin | MIT License |
feature/museum/src/main/java/com/hanbikan/nook/feature/museum/navigation/MuseumNavigation.kt | hanbikan | 737,877,468 | false | {"Kotlin": 247435} | package com.hanbikan.nook.feature.museum.navigation
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavType
import androidx.navigation.compose.composable
import androidx.navigation.navArgument
import androidx.navigation.navigation
import com.hanbikan.nook.... | 0 | Kotlin | 0 | 0 | c0d9dd3584778d98d39d546858a561343397ea43 | 1,919 | Nook | Apache License 2.0 |
app/src/main/java/com/gjf/life_demo/ui/TypePlaceFragment.kt | blacknickwield | 405,325,287 | false | {"Kotlin": 105340} | package com.gjf.life_demo.ui
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.gjf.life_demo.R
impor... | 0 | Kotlin | 0 | 0 | 62479c516374d6d0d77f9dc68f298eaec8bf012f | 3,921 | BITMap | MIT License |
library/src/main/java/io/github/anderscheow/validator/rules/regex/AlphabetRule.kt | KirillAshikhmin | 408,957,823 | true | {"Kotlin": 129331, "Java": 99} | package io.github.anderscheow.validator.rules.regex
import androidx.annotation.StringRes
import io.github.anderscheow.validator.Validation
import io.github.anderscheow.validator.rules.common.RegexRule
class AlphabetRule : RegexRule {
constructor() : super(ALPHABET_REGEX, "Value does not match alphabet regex")
... | 0 | null | 0 | 0 | 56c2e490fa06e491dd782b2bab0d222507b3eaf0 | 917 | Validator | MIT License |
domain/src/main/kotlin/app/web/drjackycv/domain/products/usecase/GetBeersListUseCase.kt | naylonmuhendis | 342,738,988 | false | {"Kotlin": 78557} | package app.web.drjackycv.domain.products.usecase
import androidx.paging.PagingData
import app.web.drjackycv.domain.base.RecyclerItem
import app.web.drjackycv.domain.base.usecase.GeneralUseCase
import app.web.drjackycv.domain.products.repository.ProductsListRepository
import io.reactivex.Flowable
import javax.inject.I... | 0 | Kotlin | 0 | 0 | bb642a5cb20fde26bcce2b13e0b339caab0f9c1c | 713 | WordsTemplete | MIT License |
src/main/kotlin/br/com/zup/ot5/integracoes/sistema_pix_bcb/CreatePixKeyRequest.kt | DaviLevi | 383,277,033 | true | {"Kotlin": 84053, "Smarty": 2172} | package br.com.zup.ot5.integracoes.sistema_pix_bcb
import br.com.zup.ot5.chave_pix.ChavePix
import br.com.zup.ot5.chave_pix.TipoChave
import br.com.zup.ot5.compartilhado.model.Conta
import br.com.zup.ot5.compartilhado.model.Instituicoes
import br.com.zup.ot5.compartilhado.model.TipoConta
data class CreatePixKeyReques... | 0 | Kotlin | 0 | 0 | f00bfecba37e7f78e18c4d89e617d90c6fb13ea3 | 3,043 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
app/src/main/java/io/github/memydb/ui/modules/jbzd/JbzdViewModel.kt | Faierbel | 176,805,921 | false | {"Kotlin": 64104} | package io.github.memydb.ui.modules.jbzd
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.ViewModel
import io.github.memydb.data.api.ApiResponse
import io.github.memydb.data.pojos.Meme
import io.github.memydb.data.repositories.JbzdRepository
import javax.inject.In... | 10 | Kotlin | 0 | 0 | b7e51171ac9a8cb4bb8eb1a8c096fd0b83d25631 | 1,095 | MemyDB | MIT License |
message/src/main/kotlin/com/victor/oancea/hermes/message/service/KafkaEventReceiver.kt | victor-oancea1 | 203,662,155 | false | null | package com.victor.oancea.hermes.message.service
import com.victor.oancea.hermes.application.event.EventReceiver
import com.victor.oancea.hermes.application.json.Extensions.deserializeToMap
import com.victor.oancea.hermes.domain.Event
import com.victor.oancea.hermes.domain.EventMetadata
import com.victor.oancea.hermes... | 0 | Kotlin | 0 | 0 | 12947d0d99498573a99651b2c6875aa9bbaac298 | 2,146 | hermes | Apache License 2.0 |
features/schedules/schedules-presentation/src/main/kotlin/com/paligot/confily/schedules/presentation/ScheduleDetailViewModel.kt | GerardPaligot | 444,230,272 | false | null | package com.paligot.confily.schedules.presentation
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.google.firebase.crashlytics.ktx.crashlytics
import com.google.firebase.ktx.Firebase
import com.paligot.confily.core.schedules.SchedulesRepository
import com.paligot.confily.models.... | 9 | null | 6 | 143 | 8c0985b73422d6b388012d79c7ab33c054dc55c1 | 1,266 | Confily | Apache License 2.0 |
src/main/kotlin/org/jetbrains/advocates/rider/plugins/dotnetwatch/run/DotNetWatchRunConfigurationProducer.kt | maartenba | 418,503,336 | false | {"Kotlin": 36559} | package org.jetbrains.advocates.rider.plugins.dotnetwatch.run
import com.intellij.execution.actions.ConfigurationContext
import com.intellij.execution.actions.LazyRunConfigurationProducer
import com.intellij.execution.configurations.ConfigurationTypeUtil
import com.intellij.openapi.util.Ref
import com.intellij.openapi... | 1 | Kotlin | 4 | 27 | 693c326753a6141bae07dbaf7fe5016727fa1240 | 2,623 | DotNetWatch | MIT License |
src/main/kotlin/org/team1540/cluck/backend/Utils.kt | flamingchickens1540 | 142,687,525 | false | null | @file:JvmName("Utils")
package org.team1540.cluck.backend
import java.time.Instant
import java.time.LocalDateTime
import java.time.ZoneId
import java.time.format.DateTimeFormatter
fun Long.convertToISODate(): String = DateTimeFormatter.ISO_LOCAL_DATE_TIME.format(LocalDateTime.ofInstant(Instant.ofEpochMilli(this), Zo... | 0 | Kotlin | 0 | 0 | 8b9339b5ff5e42758beefcdeef65e4c6a3c6f1f9 | 343 | cluck-backend | MIT License |
lcc-content-data/src/main/kotlin/com/joshmanisdabomb/lcc/data/factory/tag/HeartItemTagFactory.kt | joshmanisdabomb | 537,458,013 | false | {"Kotlin": 2724329, "Java": 138822} | package com.joshmanisdabomb.lcc.data.factory.tag
import com.joshmanisdabomb.lcc.abstracts.heart.HeartType
import com.joshmanisdabomb.lcc.data.DataAccessor
import com.joshmanisdabomb.lcc.data.factory.ItemDataFactory
import com.joshmanisdabomb.lcc.directory.tags.LCCItemTags
import com.joshmanisdabomb.lcc.item.HeartConta... | 0 | Kotlin | 0 | 0 | a836162eaf64a75ca97daffa02c1f9e66bdde1b4 | 750 | loosely-connected-concepts | Creative Commons Zero v1.0 Universal |
app/src/androidTest/java/uk/nhs/nhsx/sonar/android/app/testhelpers/robots/PostCodeRobot.kt | nhsx | 261,523,644 | false | null | /*
* Copyright © 2020 NHSX. All rights reserved.
*/
package uk.nhs.nhsx.sonar.android.app.testhelpers.robots
import androidx.core.text.HtmlCompat
import androidx.test.espresso.Espresso.closeSoftKeyboard
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import andro... | 0 | Kotlin | 146 | 793 | ebcb3221b89333d9f555592aebc934d06608d784 | 2,405 | COVID-19-app-Android-BETA | MIT License |
android/codebase/app-compose/src/main/java/com/dailystudio/codebase/compose/Color.kt | dailystudio | 203,761,006 | false | {"Shell": 17731, "JavaScript": 12869, "Kotlin": 7446, "Vue": 4131, "SCSS": 2432, "HTML": 832} | package com.dailystudio.codebase.compose
import androidx.compose.ui.graphics.Color
val primaryColor = Color(0xff008577) | 0 | Shell | 0 | 0 | 0ff37dc47ff30cf48a05ddd877519ae3d6c94019 | 121 | project_generator | Apache License 2.0 |
azure-take-out-kt/src/main/kotlin/moe/scarlet/azure_take_out_kt/AzureTakeOutKtApplication.kt | MukjepScarlet | 832,723,175 | false | {"Kotlin": 120905} | package moe.scarlet.azure_take_out_kt
import org.mybatis.spring.annotation.MapperScan
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.cache.annotation.EnableCaching
import org.springframework.transaction.annotation.EnableTran... | 0 | Kotlin | 0 | 0 | 73a9050e8e29748c0cb77ac0b6d61c7ba5e090a3 | 578 | AzureTakeOut-Kotlin | MIT License |
app/src/main/java/com/example/proyectoinnovacionpdm2024_gt01_grupo3/AlarmReceiver.kt | Orellanna | 806,324,174 | false | {"Kotlin": 32180} | package com.example.proyectoinnovacionpdm2024_gt01_grupo3
import android.annotation.SuppressLint
import android.app.AlarmManager
import android.app.PendingIntent
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.os.PowerManager
import java.util.Calenda... | 0 | Kotlin | 0 | 0 | 14b2775f8a0bb33f298bb5cf4e81759e44754594 | 3,237 | ProyectoInnovacionPDM2024-GT01-Grupo3 | MIT License |
12_NatureCollection/app/src/main/java/com/mboultoureau/naturecollection/PlantModel.kt | mboultoureau | 125,827,712 | false | {"JavaScript": 40939, "C": 19603, "Kotlin": 18454, "CSS": 12216, "C++": 11301, "HTML": 6700, "Java": 5779, "Vue": 3855, "SCSS": 3279, "Objective-C++": 1882, "Makefile": 164} | package com.mboultoureau.naturecollection
class PlantModel(
val id: String = "plant0",
val name: String = "Tulipe",
val description: String = "Petite description",
val imageUrl: String = "https://cdn.pixabay.com/photo/2017/04/23/20/36/pink-2254970_960_720.jpg",
val grow: String ... | 23 | JavaScript | 0 | 0 | b93f732d23e45aecc71189f42194f8be3210fb13 | 407 | coding-challenges | MIT License |
src/main/kotlin/io/foxcapades/lib/cli/builder/flag/UIntFlag.fn.kt | Foxcapades | 850,780,005 | false | {"Kotlin": 253956} | package io.foxcapades.lib.cli.builder.flag
import io.foxcapades.lib.cli.builder.arg.Argument
import io.foxcapades.lib.cli.builder.flag.impl.UIntFlagImpl
import io.foxcapades.lib.cli.builder.flag.impl.UniversalFlagImpl
@Suppress("NOTHING_TO_INLINE")
inline fun uintFlag(longForm: String, noinline action: FlagOptions<UI... | 8 | Kotlin | 0 | 0 | 457d895219666963b70ac10df70092a7b778ebea | 867 | lib-kt-cli-builder | MIT License |
src/main/kotlin/de/axelrindle/simplecoins/tasks/SyncTask.kt | axelrindle | 48,488,884 | false | null | package de.axelrindle.simplecoins.tasks
import de.axelrindle.simplecoins.*
import io.requery.sql.SchemaModifier
import io.requery.sql.TableCreationMode
import org.bukkit.Bukkit
import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import java.util.function.BiConsumer
import java.util.funct... | 0 | Kotlin | 0 | 1 | ecc14def3acc8e680f1b3d90203309e8430477fd | 3,805 | SimpleCoins | MIT License |
connectors-core/src/main/kotlin/fund/cyber/markets/connectors/common/kafka/ConnectorKafkaProducer.kt | yvladimir | 113,311,451 | true | {"Kotlin": 142170, "JavaScript": 15976, "HTML": 6781, "Shell": 464} | package fund.cyber.markets.connectors.common.kafka
import fund.cyber.markets.kafka.JsonSerializer
import org.apache.kafka.clients.producer.KafkaProducer
import org.apache.kafka.common.serialization.StringSerializer
import java.util.Properties
class ConnectorKafkaProducer<T>(
props: Properties = KafkaConfigura... | 0 | Kotlin | 0 | 0 | 5ec8086ab33b1d44a4280cecda461de86966982a | 552 | cyber-markets | MIT License |
app/src/main/java/com/example/storedemo/ui/products/ProductsActivity.kt | go-cristian | 259,198,124 | false | {"Kotlin": 12390} | package com.example.storedemo.ui.products
import android.content.Intent
import android.os.Bundle
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import com.example.storedemo.R
import com.example.storedemo.data.CartRepository
import com.example.storedemo.ui.CartViewModel
import com.example.... | 0 | Kotlin | 0 | 1 | 9b040b6dcb0a81d5758581a788f15f9a75b68ca6 | 1,594 | IceCreamStore | MIT License |
src/main/kotlin/br/com/blu/bs2/sintetizador/contas/csv/utils/FormatterUtil.kt | NecoDan | 291,710,416 | false | null | package br.com.blu.bs2.sintetizador.contas.csv.utils
import java.math.BigDecimal
import java.math.RoundingMode
import java.text.DecimalFormat
import java.text.DecimalFormatSymbols
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
import java.util.*
/**
* @author Daniel Santos
*/
object Format... | 0 | Kotlin | 0 | 0 | 352b19084b027b14fd0fd087d87049b318e2e631 | 1,353 | blu-bs2-sintetizador-contas-csv | Apache License 2.0 |
app/src/main/java/ca/on/hojat/gamenews/core/domain/entities/Video.kt | hojat72elect | 574,228,468 | false | null | package ca.on.hojat.gamenews.core.domain.entities
data class Video(
val id: String,
val name: String?,
)
| 0 | Kotlin | 2 | 4 | b1c07551e90790ee3d273bc4c0ad3a5f97f71202 | 114 | GameHub | MIT License |
src/main/kotlin/net/casual/championships/minigame/uhc/gui/BorderDistanceRow.kt | CasualChampionships | 334,382,250 | false | {"Kotlin": 193728, "Java": 8404, "GLSL": 1196} | package net.casual.championships.minigame.uhc.gui
import net.casual.arcade.gui.sidebar.SidebarComponent
import net.casual.arcade.gui.sidebar.SidebarSupplier
import net.casual.arcade.gui.suppliers.ComponentSupplier
import net.casual.arcade.utils.ComponentUtils.literal
import net.casual.arcade.utils.PlayerUtils.distance... | 0 | Kotlin | 1 | 4 | f064769da9e21a5b02ed20b96b887d90d84060ab | 1,450 | UHC-Mod | MIT License |
capillary-kmp/src/jvmMain/kotlin/dev/baseio/security/CapillaryEncryption.kt | oianmol | 528,898,439 | false | {"Kotlin": 752408, "Swift": 113141, "Ruby": 11800, "Shell": 587, "Objective-C": 486, "C": 1} | @file:JvmName("CapillaryEncryptionJAva")
package dev.baseio.security
import java.util.Base64
import javax.crypto.Cipher
actual object CapillaryEncryption {
actual fun encrypt(
plaintext: ByteArray,
publicKey: PublicKey,
): EncryptedData {
val cipher: Cipher = Cipher.getInstance(TRANSFORMATION_ASYMMET... | 3 | Kotlin | 21 | 235 | 143f06c11b757641fd3e67809f57dee9f2ffd04b | 1,331 | SlackComposeMultiplatform | Apache License 2.0 |
src/main/kotlin/tools/aqua/turnkey/plugin/util/Graphs.kt | tudo-aqua | 860,027,153 | false | {"Kotlin": 105116} | /*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019-2024 The TurnKey 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 | Kotlin | 0 | 0 | ea7629e62fbbe2978bc20f90f3563e42934db560 | 1,462 | turnkey-gradle-plugin | Creative Commons Attribution 4.0 International |
idea/src/org/jetbrains/kotlin/idea/inspections/collections/ConvertCallChainIntoSequenceInspection.kt | arrow-kt | 109,678,056 | true | null | /*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.inspections.collections
import com.intellij.codeInspection.LocalQuickFix
import com.intellij.codeInspection.ProblemDescri... | 12 | Kotlin | 1 | 43 | d2a24985b602e5f708e199aa58ece652a4b0ea48 | 8,875 | kotlin | Apache License 2.0 |
app/src/main/java/payment/sdk/android/demo/data/DataStoreImpl.kt | network-international | 187,156,001 | false | {"Kotlin": 546070, "Java": 39575} | package payment.sdk.android.demo.data
import android.content.Context
import payment.sdk.android.demo.getPreferences
import payment.sdk.android.demo.model.Environment
import payment.sdk.android.demo.model.MerchantAttribute
import payment.sdk.android.demo.model.Product
import com.google.gson.Gson
import payment.sdk.andr... | 3 | Kotlin | 7 | 5 | dea297485b5bc45c1f1263a9c406abec3d72f497 | 5,484 | payment-sdk-android | MIT No Attribution |
app/src/androidTest/java/com/mapbox/maps/testapp/integration/texture/MapViewTextureModeTest.kt | mapbox | 330,365,289 | false | {"Kotlin": 3982759, "Java": 98572, "Python": 18705, "Shell": 11465, "C++": 10129, "JavaScript": 4344, "Makefile": 2413, "CMake": 1201, "EJS": 1194} | package com.mapbox.maps.testapp.integration.texture
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.mapbox.maps.testapp.examples.TextureViewActivity
import com.mapbox.maps.testapp.integration.BaseReuseIntegrationTest
import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class)
class MapViewTextureMo... | 181 | Kotlin | 131 | 472 | 2700dcaf18e70d23a19fc35b479bff6a2d490475 | 386 | mapbox-maps-android | Apache License 2.0 |
app/src/main/java/com/vishalag53/pokedex/response/GenerationViii.kt | vishalag53 | 659,343,908 | false | null | package com.vishalag53.pokedex.response
data class GenerationViii(
val icons: com.vishalag53.pokedex.response.Icons
) | 0 | Kotlin | 0 | 0 | fba5e4a083cd3e9d4e04de7f85949ce8a8cc95da | 122 | Pokedex | Apache License 2.0 |
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/types/KaFirType.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | /*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.api.fir.types
import org.jetbrains.kotlin.analysis.api.lifetime.KaLifet... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 679 | kotlin | Apache License 2.0 |
app/src/main/java/com/bluehub/mixi/common/fragments/BaseDialogFragment.kt | ashfaq1701 | 275,871,797 | false | null | package com.bluehub.fastmixer.common.fragments
import android.app.AlertDialog
import android.app.Dialog
import android.view.View
import android.view.Window
import androidx.fragment.app.DialogFragment
import androidx.lifecycle.ViewModel
import com.bluehub.fastmixer.R
abstract class BaseDialogFragment <T: ViewModel> : ... | 0 | C | 9 | 48 | dc9b650d8a07afb9da27057aa1336482b83e2010 | 942 | fast-mixer | Creative Commons Zero v1.0 Universal |
ktan/src/main/java/com/ktan/extra/CharSequenceExtra.kt | adef145 | 529,180,943 | false | null | package com.ktan.extra
import android.content.Intent
import android.os.Bundle
class CharSequenceExtra @JvmOverloads constructor(
key: String,
value: CharSequence? = null
) : AbstractExtra<CharSequence?>(
key,
value
) {
override fun put(bundle: Bundle) {
value?.also { bundle.putCharSequence... | 0 | Kotlin | 0 | 3 | 391a44440bf9a1ce88c3da09b02ae12887452135 | 575 | Ktan | MIT License |
app/src/main/java/kz/sozdik/login/data/api/model/LoginInfo.kt | sozdik-kz | 290,830,901 | false | null | package kz.sozdik.login.data.api.model
import com.google.gson.annotations.SerializedName
data class LoginInfo(
@SerializedName("auth_token")
val authToken: String?
) | 5 | Kotlin | 5 | 43 | cfbdffe47253c14ec75d0fba166d1077e028328c | 175 | sozdik-android | MIT License |
app/src/main/java/com/joshuacerdenia/android/nicefeed/ui/fragment/EntryListFragment.kt | kitlith | 297,803,241 | true | {"Kotlin": 207296} | package com.joshuacerdenia.android.nicefeed.ui.fragment
import android.content.Context
import android.content.res.Configuration.ORIENTATION_LANDSCAPE
import android.net.Uri
import android.os.Bundle
import android.os.Handler
import android.view.*
import android.widget.ProgressBar
import android.widget.TextView
import a... | 0 | null | 0 | 0 | 8a81efe5886b27efbce15b817d2eab9704543550 | 16,380 | NiceFeed | MIT License |
app/src/main/java/com/example/compose_mvvm_weather_app/utils/ExtensionFunction.kt | SaadKhanJadoon | 714,546,065 | false | {"Kotlin": 26842} | package com.example.compose_mvvm_weather_app.utils
import com.example.compose_mvvm_weather_app.R
import java.text.SimpleDateFormat
import java.util.Calendar
import java.util.Locale
import java.util.regex.Pattern
fun todayDate(): String {
val calendar = Calendar.getInstance().time
val df = SimpleDateFormat("EE... | 0 | Kotlin | 0 | 2 | 65ec8fdc2af5188996b462288ef7ad6980a66f38 | 1,661 | Compose-MVVM-Weather-App | MIT License |
src/main/kotlin/com/baulsupp/oksocial/services/uber/UberAuthInterceptor.kt | MaTriXy | 129,725,910 | true | {"Kotlin": 426653, "Shell": 9764} | package com.baulsupp.oksocial.services.uber
import com.baulsupp.oksocial.authenticator.AuthInterceptor
import com.baulsupp.oksocial.authenticator.ValidatedCredentials
import com.baulsupp.oksocial.authenticator.oauth2.Oauth2ServiceDefinition
import com.baulsupp.oksocial.authenticator.oauth2.Oauth2Token
import com.bauls... | 0 | Kotlin | 0 | 0 | c4da9b2858cb9477b96fabb36b31a60f716e3e86 | 3,570 | oksocial | Apache License 2.0 |
internalServer/src/main/java/ru/rpuxa/internalserver/wireless/AbstractWirelessDevice.kt | rpuxa | 162,908,097 | false | null | package ru.rpuxa.internalserver.wireless
import ru.rpuxa.internalserver.wifi.WifiDevice
abstract class AbstractWirelessDevice(val wifiDevice: WifiDevice) : WirelessDevice {
override lateinit var passport: Passport
override var isAdbConnected = false
abstract fun updateDevicePassport(): WirelessPromise<... | 0 | Kotlin | 2 | 8 | 26074194e3df70e673f4595bdbc7090f2ba07593 | 1,399 | SuperWirelessAdb | Apache License 2.0 |
src/all/unionmangas/src/eu/kanade/tachiyomi/extension/all/unionmangas/UnionMangasFactory.kt | komikku-app | 720,497,299 | false | {"Kotlin": 6732685, "JavaScript": 2160} | package eu.kanade.tachiyomi.extension.all.unionmangas
import eu.kanade.tachiyomi.source.Source
import eu.kanade.tachiyomi.source.SourceFactory
class UnionMangasFactory : SourceFactory {
override fun createSources(): List<Source> = languages.map { UnionMangas(it) }
}
class LanguageOption(val lang: String, val inf... | 21 | Kotlin | 5 | 73 | 87609401d853a38484e0e4c4f1f30c7bdb42b172 | 491 | komikku-extensions | Apache License 2.0 |
core/data/src/main/kotlin/io/github/edwinchang24/salvage/core/data/repository/DefaultItemRepository.kt | EdwinChang24 | 653,775,661 | false | null | package io.github.edwinchang24.salvage.core.data.repository
import io.github.edwinchang24.salvage.core.data.model.asEntity
import io.github.edwinchang24.salvage.core.database.dao.ItemDao
import io.github.edwinchang24.salvage.core.database.model.asExternalModel
import io.github.edwinchang24.salvage.core.model.Item
impo... | 7 | Kotlin | 0 | 0 | d3f348aed90b38aad1811d32e1a0bf7bf47bb6ed | 992 | salvage | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/screens/home/YogaList.kt | moinkhan-in | 347,319,206 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | b52a3a22031ae01f5c70b62538ebd4d2f0fce4b5 | 3,676 | android-dev-challange-compose-w3 | Apache License 2.0 |
src/main/kotlin/tech/alexib/plaid/client/model/SandboxProcessorTokenCreateRequestOptions.kt | ruffCode | 353,222,079 | false | null | /*
* Copyright 2020 Alexi Bre
*
* 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 i... | 0 | Kotlin | 0 | 0 | f937243bdd86fc656097f2154c08e8aa3dad399a | 1,329 | plaid-kotlin | Apache License 2.0 |
app/src/main/java/asia/fourtitude/recipe/data/model/search/SearchResponse.kt | wafi89 | 639,276,475 | false | null | package asia.fourtitude.recipe.data.model.search
import com.google.gson.annotations.SerializedName
data class SearchResponse(
@SerializedName("results")
val results: List<Photo>
)
data class Photo(
@SerializedName("urls")
val urls: Urls
)
data class Urls(
@SerializedName("regular")
val regul... | 0 | Kotlin | 0 | 0 | 196163a4e59a2b91ead456264ff914dd4b8a56f5 | 334 | Recipe-Book | Apache License 2.0 |
tv/src/main/java/online/noxilab/tmdb/ui/presenters/HeaderIconItemPresenter.kt | Tiarait | 306,028,357 | false | null | package online.noxilab.tmdb.ui.presenters
import android.content.Context
import androidx.leanback.widget.Presenter
import android.view.ViewGroup
import androidx.leanback.widget.RowHeaderPresenter
import android.widget.TextView
import android.view.LayoutInflater
import android.widget.ImageView
import androidx.leanback... | 0 | Kotlin | 2 | 7 | 081388fa8e1507ae318e11849c57cd6a63417e26 | 3,717 | Android_Tv_TMDB | Apache License 2.0 |
app/src/main/java/com/otikev/codecensus/widget/SquareCardView.kt | otikev | 160,915,938 | false | null | package com.otikev.codecensus.widget
import android.content.Context
import android.support.v7.widget.CardView
import android.util.AttributeSet
/**
* Created by kevin on 08/12/18 at 19:37
*/
class SquareCardView(context: Context, attrs: AttributeSet) : CardView(context, attrs) {
override fun onMeasure(widthMe... | 0 | Kotlin | 0 | 0 | 8166dc6e7e49ff50f39eac3ec5becfa6e0d5daab | 436 | code-census | MIT License |
pyrexia-android/app/src/main/java/com/cryptomcgrath/pyrexia/thermostat/ThermostatViewModel.kt | cryptomcgrath | 541,272,434 | false | {"Kotlin": 218872} | package com.cryptomcgrath.pyrexia.thermostat
import android.util.Log
import androidx.databinding.ObservableBoolean
import androidx.databinding.ObservableInt
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.cryptomcgrath.pyrexia.AUTO_REFRESH_INTERVAL
import com.cryptomcgrath.py... | 2 | Kotlin | 0 | 2 | 5c854f70d51a1427e26616b4a96ef074dc345aa3 | 10,252 | pyrexia-android | MIT License |
syftlib/src/main/java/org/openmined/syft/networking/requests/MessageTypes.kt | rav1kantsingh | 262,021,619 | true | {"Kotlin": 139892, "Java": 657} | package org.openmined.syft.networking.requests
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonElement
import org.openmined.syft.networking.datamodels.NetworkModels
interface MessageTypes {
val value: String
}
interface ResponseMessageTypes : MessageTypes {
val jsonParser: Json
... | 0 | Kotlin | 0 | 0 | be671626ec777ccfcd7985496a144250f2425053 | 868 | KotlinSyft | Apache License 2.0 |
app/src/main/java/com/md/sadman/oneplustwoequalsthreeremake/interpreter/node/EquationNode.kt | PsykickSam | 521,997,041 | false | null | package com.md.sadman.oneplustwoequalsthreeremake.interpreter.node
import com.md.sadman.oneplustwoequalsthreeremake.interpreter.constants.Constant
import com.md.sadman.oneplustwoequalsthreeremake.interpreter.constants.MathOperatorEnum
/**
* This is the base equation node form factor, contains number, left number ite... | 0 | Kotlin | 0 | 0 | 852630bc8ffef7020e20dfcf57b1751544eecd69 | 2,551 | OnePlusTwoEqualsThree | MIT License |
app/src/main/java/com/doro/marsweatherapp/main/domain/repository/WeatherRepository.kt | beetsolutions | 336,288,689 | true | {"Kotlin": 38292} | package com.doro.marsweatherapp.main.domain.repository
import com.doro.marsweatherapp.main.data.repository.model.Resource
import com.doro.marsweatherapp.main.domain.model.WeatherInformation
import kotlinx.coroutines.flow.Flow
interface WeatherRepository {
fun getWeatherDetails(): Flow<Resource<List<WeatherInforma... | 0 | Kotlin | 0 | 0 | 8d7327735f32c68fc903ce2ad64a6689790798fd | 329 | code-challenge-frontend | MIT License |
app/src/main/java/com/doro/marsweatherapp/main/domain/repository/WeatherRepository.kt | beetsolutions | 336,288,689 | true | {"Kotlin": 38292} | package com.doro.marsweatherapp.main.domain.repository
import com.doro.marsweatherapp.main.data.repository.model.Resource
import com.doro.marsweatherapp.main.domain.model.WeatherInformation
import kotlinx.coroutines.flow.Flow
interface WeatherRepository {
fun getWeatherDetails(): Flow<Resource<List<WeatherInforma... | 0 | Kotlin | 0 | 0 | 8d7327735f32c68fc903ce2ad64a6689790798fd | 329 | code-challenge-frontend | MIT License |
graph/graph-adapter-output-spring-data-neo4j-sdn6/src/main/kotlin/org/orkg/graph/adapter/output/neo4j/ModelIDs.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 6124464, "Cypher": 220623, "Python": 4881, "Shell": 2904, "Groovy": 1936, "HTML": 240, "Batchfile": 82} | package org.orkg.graph.adapter.output.neo4j
const val BENCHMARK_CLASS = "C14022"
const val BENCHMARK_PREDICATE = "PWC_HAS_BENCHMARK"
const val DATASET_CLASS = "BENCHMARK_DATASET"
const val DATASET_PREDICATE = "P2005"
| 0 | Kotlin | 0 | 4 | 80f66b3b43fa199dedeffc4732c2d82720699ee7 | 218 | orkg-backend | MIT License |
src/main/kotlin/variables/DataTypeChar.kt | softbluecursoscode | 603,710,984 | false | {"Kotlin": 53437} | package variables
fun main() {
val c: Char = 'A'
println(c)
println(c.code)
val i = 65
println(i.toChar())
val c2 = '1'
println(c2.isDigit())
println(c2.isUpperCase())
println(c2.digitToInt())
}
| 0 | Kotlin | 2 | 5 | d9d3b179af5fcf851947fe59fe4e13a825532417 | 241 | kotlin | MIT License |
data/src/main/java/com/kennyc/dashweather/data/model/WeatherIcon.kt | Kennyc1012 | 105,380,988 | false | null | package com.kennyc.dashweather.data.model
enum class WeatherIcon {
CLEAR,
CLEAR_NIGHT,
PARTLY_CLOUDY,
PARTLY_CLOUDY_NIGHT,
CLOUDY,
RAIN_SHOWERS,
RAIN_SHOWERS_NIGHT,
RAIN,
RAIN_NIGHT,
THUNDER_STORM,
SNOW,
FOG
} | 0 | Kotlin | 2 | 0 | 212ce9f0dc434a537530b3904b1763684f7f6915 | 258 | DashWeatherExtension | Apache License 2.0 |
src/main/kotlin/com/bcnc/photoalbum/exceptions/ExceptionHandler.kt | MVCx9 | 836,230,362 | false | {"Kotlin": 14441} | package com.bcnc.photoalbum.exceptions
import org.springframework.http.HttpStatus
import org.springframework.web.ErrorResponse
import org.springframework.web.bind.annotation.ControllerAdvice
import org.springframework.web.bind.annotation.ExceptionHandler
import org.springframework.web.bind.annotation.ResponseStatus
/... | 0 | Kotlin | 0 | 0 | 7c2e37a76e16d8dce33e21ab5fd3b8f222aac0da | 1,509 | PhotoAlbumJsonPlacerholder | MIT License |
src/main/kotlin/com/bcnc/photoalbum/exceptions/ExceptionHandler.kt | MVCx9 | 836,230,362 | false | {"Kotlin": 14441} | package com.bcnc.photoalbum.exceptions
import org.springframework.http.HttpStatus
import org.springframework.web.ErrorResponse
import org.springframework.web.bind.annotation.ControllerAdvice
import org.springframework.web.bind.annotation.ExceptionHandler
import org.springframework.web.bind.annotation.ResponseStatus
/... | 0 | Kotlin | 0 | 0 | 7c2e37a76e16d8dce33e21ab5fd3b8f222aac0da | 1,509 | PhotoAlbumJsonPlacerholder | MIT License |
core/src/main/kotlin/io/github/restioson/kettle/entity/component/BodyComponentBuilder.kt | Restioson | 91,720,429 | false | null | package io.github.restioson.kettle.entity.component
import com.badlogic.ashley.core.PooledEngine
import com.badlogic.gdx.math.Vector2
import com.badlogic.gdx.physics.box2d.Body
import com.badlogic.gdx.physics.box2d.BodyDef
import com.badlogic.gdx.physics.box2d.FixtureDef
import com.badlogic.gdx.physics.box2d.JointDef
... | 0 | Kotlin | 0 | 4 | 84c2fb79c920144ed25f72bbdc6918213de39e94 | 8,200 | kettle-engine | Apache License 2.0 |
app/src/main/java/com/sefford/artdrian/datasources/WallpaperDataSource.kt | Sefford | 562,415,198 | false | {"Kotlin": 86829} | package com.sefford.artdrian.datasources
import arrow.core.Either
import com.sefford.artdrian.datasources.WallpaperRepository.RepositoryError
import com.sefford.artdrian.data.dto.MetadataDto
import com.sefford.artdrian.model.Metadata
interface WallpaperDataSource {
suspend fun getAllMetadata(): Either<Repository... | 1 | Kotlin | 1 | 2 | 341cd0a2d30936aa40f6f00cf184a8aac6b8a39d | 494 | Artdrian | Apache License 2.0 |
src/main/kotlin/com/feliperodrigues/metodosdeajuste/Main.kt | pimbosi | 745,949,513 | false | {"Kotlin": 19654} | package com.feliperodrigues.metodosdeajuste
import java.util.*
// Função para limpar o terminal
fun limparTerminal() {
ProcessBuilder("cmd", "/c", "cls").inheritIO().start().waitFor()
}
// Função para exibir o menu principal
fun menu() {
limparTerminal()
val scanner = Scanner(System.`in`)
var input... | 0 | Kotlin | 0 | 0 | ec458265eace13e085c9cf351bb29255351508ea | 3,717 | AjustePorMinimosQuadrados | Apache License 2.0 |
graphics/src/main/kotlin/matt/fx/graphics/wrapper/node/parent/parent.kt | mgroth0 | 497,866,693 | false | null | package matt.fx.graphics.wrapper.node.parent
import javafx.scene.Parent
import matt.fx.graphics.service.wrapped
import matt.fx.graphics.wrapper.node.NodeWrapper
import matt.fx.graphics.wrapper.node.attachTo
import matt.fx.graphics.wrapper.node.impl.NodeWrapperImpl
import matt.fx.graphics.wrapper.node.line.poly.Polylin... | 0 | Kotlin | 0 | 0 | 1e53b5a9ee3284fde6aa8205f056c011d1991d1b | 2,484 | fx | MIT License |
domain/src/main/java/com/example/domain/usecase/auth/RegisterUseCase.kt | HUITDDURU | 468,589,462 | false | null | package com.example.domain.usecase.auth
import com.example.domain.entity.auth.RegisterRequestEntity
import com.example.domain.repository.AuthRepository
import javax.inject.Inject
class RegisterUseCase @Inject constructor(
private val authRepository: AuthRepository
) {
suspend fun invoke(body: RegisterRequestEn... | 1 | Kotlin | 1 | 0 | 4d390a361b75289f76e4ce427a07e28a8c19d909 | 367 | RUMA_Android | MIT License |
example/test/kotlin/example/LeaveAcceptingTest.kt | CodeFabrikGmbH | 350,377,385 | false | null | package example
import com.github.codefabrikgmbh.scenarios.given
import example.setup.*
import org.junit.Test
class LeaveAcceptingTest : BasicTest() {
@Test
fun `accepting a leave as supervisor should work`() {
given(::`employee with pending leave`) {
`when the supervisor accepts the pendi... | 2 | Kotlin | 1 | 0 | e52b6b13af689a463270794c0f49debfed4277a8 | 675 | scenarios-kotlin | MIT License |
libraries/config/src/package.kt | featurea | 407,517,337 | false | null | package featurea.config
import featurea.content.contentTypes
import featurea.rml.reader.RmlContent
import featurea.runtime.Artifact
/*dependencies*/
val artifact = Artifact("featurea.config") {
"ConfigContent" to ConfigContent::class
"ConfigReader" to ConfigReader::class
static {
val rmlContent:... | 24 | Kotlin | 1 | 6 | 07074dc37a838f16ece90c19a4e8d45e743013d3 | 592 | engine | MIT License |
gto-support-snowplow/src/test/kotlin/org/ccci/gto/android/common/snowplow/events/CustomScreenViewTest.kt | CruGlobal | 30,609,844 | false | null | package org.ccci.gto.android.common.snowplow.events
class CustomScreenViewTest : CustomEventTest<CustomScreenView>() {
override fun event() = CustomScreenView("screen")
}
| 9 | Kotlin | 2 | 8 | 529634f181da6f2c1394d07ed05594caf178706c | 176 | android-gto-support | MIT License |
examples/src/test/java/com/markodevcic/samples/MainViewModelTest.kt | deva666 | 122,677,732 | false | {"Kotlin": 15636} | package com.markodevcic.samples
import com.markodevcic.peko.PermissionRequester
import com.markodevcic.peko.PermissionResult
import kotlinx.coroutines.flow.flowOf
import kotlinx.coroutines.runBlocking
import org.junit.Test
import org.mockito.Mockito
class MainViewModelTest {
private val requester = Mockito.mock(Per... | 7 | Kotlin | 10 | 149 | 3d8c8c732f3d23e8132d888808fd89f28b992a6e | 735 | Peko | Apache License 2.0 |
app/src/main/java/com/kopai/shinkansen/view/authentication/register/RegisterViewModel.kt | kopiai | 805,653,375 | false | {"Kotlin": 147674} | package com.kopai.shinkansen.view.authentication.register
import androidx.lifecycle.ViewModel
import com.kopai.shinkansen.data.repository.ProductsRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class RegisterViewModel
@Inject
constructor(
private... | 0 | Kotlin | 0 | 0 | 47442dcfa5771aa09b8c9d74ef42921ac3f4f88d | 565 | kopai-android | MIT License |
app/src/main/java/com/memoir/base/MemoirApplication.kt | dbof10 | 509,308,735 | false | null | package com.memoir.base
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class MemoirApplication : Application() {
} | 0 | Kotlin | 0 | 0 | 1a657040416ff5dda569855f45c697e048769a02 | 161 | ListNab | Apache License 2.0 |
src/main/kotlin/com/kilchichakov/fiveletters/model/dto/AuthRefreshRequest.kt | augur | 194,393,890 | false | {"Kotlin": 306716, "JavaScript": 3426, "Dockerfile": 135, "HTML": 9} | package com.kilchichakov.fiveletters.model.dto
data class AuthRefreshRequest(
val login: String,
val refreshToken: String
) {
override fun toString(): String {
return "AuthRefreshRequest(login='$login', refreshToken(hash)=${refreshToken.hashCode()})"
}
} | 0 | Kotlin | 0 | 0 | 64734f93bef1c36309caaece5b04fe8852872498 | 287 | five-letters | MIT License |
common/build/generated/sources/schemaCode/kotlin/main/io/portone/sdk/server/schemas/PaymentEscrow.kt | portone-io | 809,427,199 | false | {"Kotlin": 385115, "Java": 331} | package io.portone.sdk.server.schemas
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonClassDiscriminator
/**
* 에스크로 정보
*
* V1 결제 건의 경우 타입이 REGISTERED 로 고정됩니다.
*/
@Serializable
@JsonClassDiscriminator("status")
public sealed interface PaymentEscrow
| 0 | Kotlin | 0 | 2 | f984c4cc31aa64aad5cd0fa0497bdd490a0fe33a | 286 | server-sdk-jvm | MIT License |
core/model/src/main/kotlin/com/espressodev/gptmap/core/model/palm/PalmTextPrompt.kt | f-arslan | 714,072,263 | false | {"Kotlin": 312117, "Dockerfile": 852} | package com.espressodev.gptmap.core.model.palm
import com.google.gson.annotations.SerializedName
import kotlinx.serialization.Serializable
@Serializable
data class PalmTextPrompt(
val prompt: PalmText,
@SerializedName("safety_settings")
val safetySettings: List<SafetySetting> = SafetyCategory.entries.map ... | 0 | Kotlin | 0 | 2 | dcc8c8c7a2d40a19e08dd7c4f1c56c7d18e59518 | 535 | GptMap | MIT License |
yabapi-core/src/commonMain/kotlin/moe/sdl/yabapi/data/info/VipStatGetResponse.kt | SDLMoe | 437,756,989 | false | null | @file:UseSerializers(BooleanJsSerializer::class)
package moe.sdl.yabapi.data.info
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import moe.sdl.yabapi.data.GeneralCode
import moe.sdl.yabapi.data.GeneralCode.UNKNOWN
import moe.sdl.yabapi.se... | 0 | null | 1 | 26 | c8be46f9b5e4db1e429c33b0821643fd94789fa1 | 1,622 | Yabapi | Creative Commons Zero v1.0 Universal |
gui/proxy-tool/src/main/kotlin/net/rsprox/gui/ProxyToolGui.kt | blurite | 822,339,098 | false | null | package net.rsprox.gui
import net.rsprox.gui.splash.SplashScreen
import java.util.Locale
import javax.swing.ImageIcon
import javax.swing.SwingUtilities
import javax.swing.UIManager
public fun main() {
Locale.setDefault(Locale.US)
SplashScreen.init()
SplashScreen.stage(0.0, "Preparing", "Setting up environ... | 9 | null | 12 | 31 | 78fb08c23ec5bedd194371627586005b50b01ada | 1,099 | rsprox | MIT License |
photoeditor/src/main/java/com/allthingsandroid/android/photoeditor/DefaultScaleTouchListener.kt | manish-badger | 635,615,935 | false | null | package com.allthingsandroid.android.photoeditor
import android.view.MotionEvent
import android.view.View
import android.widget.ImageView
class DefaultScaleTouchListener: BaseScaleTouchListener {
private val mScaleGestureDetector: ScaleGestureDetector
constructor(mIsPinchScalable: Boolean) : super(mIsPinchS... | 0 | Kotlin | 0 | 0 | fe92c8843a9215e1e74e5e90fa19003fe86707d7 | 2,347 | PhotoEditor | MIT License |
src/main/kotlin/io/hexlabs/kloudformation/module/serverless/Path.kt | hexlabsio | 178,242,802 | false | null | package io.hexlabs.kloudformation.module.serverless
import io.kloudformation.KloudFormation
import io.kloudformation.Value
import io.kloudformation.function.plus
import io.kloudformation.module.Modification
import io.kloudformation.resource.aws.apigateway.Resource
import io.kloudformation.resource.aws.apigateway.resou... | 0 | Kotlin | 0 | 1 | 8c7c7021757ae35d50435c6b86bfc12c02730f1d | 9,039 | kloudformation-serverless-module | Apache License 2.0 |
android/src/main/java/com/superwallreactnative/models/RestorationResult.kt | superwall | 756,562,038 | false | {"TypeScript": 83812, "Kotlin": 57101, "Swift": 41390, "Ruby": 7610, "Objective-C++": 5598, "JavaScript": 3969, "Objective-C": 2755, "C": 206} | package com.superwallreactnative.models
import com.facebook.react.bridge.ReadableMap
import com.superwall.sdk.delegate.RestorationResult
class RestorationResult {
companion object {
fun fromJson(json: ReadableMap): RestorationResult {
return when (json.getString("result")) {
"restored" -> Restorat... | 4 | TypeScript | 0 | 15 | 86638759f13c4c73dea0d60b03a0198413197f9f | 606 | react-native-superwall | MIT License |
src/main/kotlin/no/nav/klage/oppgave/api/controller/KodeverkController.kt | navikt | 297,650,936 | false | {"Kotlin": 1155151, "Dockerfile": 133} | package no.nav.klage.oppgave.api.controller
import io.swagger.v3.oas.annotations.tags.Tag
import no.nav.klage.oppgave.config.SecurityConfiguration.Companion.ISSUER_AAD
import no.nav.klage.oppgave.domain.kodeverk.LandInfo
import no.nav.klage.oppgave.domain.kodeverk.PostInfo
import no.nav.klage.oppgave.service.Innlogget... | 4 | Kotlin | 3 | 0 | 7b93a8940276c371b5859d116ffe4d89f596c92e | 1,527 | kabal-api | MIT License |
vitrivr-engine-core/src/main/kotlin/org/vitrivr/engine/core/model/content/impl/InMemoryImageContent.kt | vitrivr | 679,355,326 | false | {"Kotlin": 608109} | package org.vitrivr.engine.core.model.content.impl
import org.vitrivr.engine.core.model.content.element.ImageContent
import java.awt.image.BufferedImage
/**
* A naive in-memory implementation of the [ImageContent] interface.
*
* Warning: Usage of [InMemoryImageContent] may lead to out-of-memory situations in large... | 35 | Kotlin | 1 | 4 | 1af88808f815237018eec48ede0f9c36d22b6145 | 478 | vitrivr-engine | MIT License |
library/src/main/java/co/zsmb/materialdrawerkt/draweritems/expandable/ExpandableDrawerItemKt.kt | idebasishbose | 115,329,625 | false | null | package co.zsmb.materialdrawerkt.draweritems.expandable
import co.zsmb.materialdrawerkt.builders.Builder
import co.zsmb.materialdrawerkt.draweritems.base.BaseDescribeableDrawerItemKt
import co.zsmb.materialdrawerkt.nonReadable
import com.mikepenz.materialdrawer.model.ExpandableDrawerItem
/**
* Adds a new ExpandableD... | 0 | Kotlin | 0 | 0 | fbebb7b0464f5ecbefc325198b3acc0b45b806ff | 4,150 | MaterialDrawerKt | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.