path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/anafthdev/musicompose2/foundation/uicomponent/SongItem.kt | kafri8889 | 509,012,286 | false | {"Kotlin": 356863} | package com.ringtones.compose.foundation.uicomponent
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.animation.scaleIn
import androidx.compose.animation.scaleOut
import androidx.compose.foundation.Image
import androidx.compose.foun... | 3 | Kotlin | 8 | 40 | fa8c356aa2967228b91dc68ef99c395be22b73fb | 4,248 | Musicompose-V2 | Do What The F*ck You Want To Public License |
data/src/main/java/com/planradar/data/datasource/cities/impl/RemoteCitiesDataSourceImpl.kt | imTefa | 448,439,361 | false | null | package com.planradar.data.datasource.cities.impl
import com.planradar.data.datasource.cities.RemoteCitiesDataSource
import com.planradar.data.models.City
import com.planradar.data.network.models.RemoteCity
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.wi... | 0 | Kotlin | 0 | 0 | bd63aee20590e2273568aaa4766e589d9826f869 | 1,920 | WeatherApp-PlanRadar-Task | Apache License 2.0 |
sdk/server/src/commonMain/kotlin/com/vkatz/missioncontrol/server/base/ui/components/Slider.kt | vkatz | 669,169,831 | false | null | package com.vkatz.missioncontrol.server.base.ui.components
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.*
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose... | 0 | Kotlin | 0 | 0 | 92ef41e84f2b793b4a014fdb34ce0b6f37b7bd2e | 5,872 | MissionControl | Apache License 2.0 |
app/src/main/java/com/jiahaoliuliu/androidmvvmsample/di/component/ApplicationComponent.kt | jiahaoliuliu | 738,095,866 | false | {"Kotlin": 23914} | package com.jiahaoliuliu.androidmvvmsample.di.component
import android.content.Context
import com.jiahaoliuliu.androidmvvmsample.AndroidMVVMSampleApplication
import com.jiahaoliuliu.androidmvvmsample.data.api.NetworkService
import com.jiahaoliuliu.androidmvvmsample.data.mapper.TopHeadlineMapper
import com.jiahaoliuliu... | 0 | Kotlin | 0 | 1 | b317e01a2993c334827c82708fdedcf7fb9838af | 1,040 | AndroidMVVMSample | Apache License 2.0 |
views/src/main/kotlin/splitties/views/LayoutInflater.kt | tanghb | 172,258,365 | true | {"Kotlin": 310400, "Java": 1908} | /*
* Copyright (c) 2018. <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 0 | 0 | fa023cc251089e86949b2bade522f929a1391b0a | 1,789 | Splitties | Apache License 2.0 |
idea/tests/testData/structuralsearch/property/var.kt | JetBrains | 278,369,660 | false | null | fun main() {
<warning descr="SSR">val foo = 1</warning>
var bar: Int = 1
print(foo + bar)
}
| 9 | Kotlin | 4372 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 104 | intellij-kotlin | Apache License 2.0 |
core/src/main/kotlin/com/heroslender/hmf/core/ui/modifier/type/Extensions.kt | heroslender | 341,310,824 | false | null | package com.heroslender.hmf.core.ui.modifier.type
import com.heroslender.hmf.core.Canvas
import com.heroslender.hmf.core.ui.Placeable
inline fun drawer(crossinline op: Placeable.(Canvas) -> Unit): DrawerModifier = object : DrawerModifier {
override fun Placeable.onDraw(canvas: Canvas) {
op(canvas)
}
} | 1 | Kotlin | 4 | 58 | 23c601aa0680ae1366f63b761cfa9b74b80833ab | 320 | menu-framework | MIT License |
app/src/main/java/com/thanksmister/iot/mqtt/alarmpanel/ui/fragments/TriggeredFragment.kt | thanksmister | 102,506,190 | false | null | /*
* Copyright (c) 2018 ThanksMister LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 12 | null | 56 | 170 | cf42c38ca396eb647d36208c681ff50633a2d4ac | 10,973 | android-mqtt-alarm-panel | Apache License 2.0 |
sketch-extensions-view/src/androidTest/kotlin/com/github/panpf/sketch/extensions/view/test/SketchImageViewTest.kt | panpf | 14,798,941 | false | {"Kotlin": 2979756, "Shell": 1469} | package com.github.panpf.sketch.extensions.view.test
import android.graphics.Bitmap
import android.graphics.Color
import android.view.LayoutInflater
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import com.github.panpf.sketch.SketchImageView
import com.g... | 8 | Kotlin | 309 | 2,057 | 89784530da0de6085a5b08f810415147cb3165cf | 11,597 | sketch | Apache License 2.0 |
publisher-sdk/src/test/java/com/criteo/publisher/advancednative/VisibilityTrackingTaskTest.kt | criteo | 276,380,681 | false | {"Java": 1090077, "Kotlin": 899121, "Groovy": 5188} | /*
* Copyright 2020 Criteo
*
* 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 ... | 4 | Java | 8 | 12 | 8295b0029e21101b85f0fcdfa2f53a6cf3259aa4 | 5,073 | android-publisher-sdk | Apache License 2.0 |
plugins/base/src/main/kotlin/renderers/html/SearchbarDataInstaller.kt | Kotlin | 21,763,603 | false | null | package org.jetbrains.dokka.base.renderers.html
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import org.jetbrains.dokka.Platform
import org.jetbrains.dokka.base.renderers.sourceSets
import org.jetbrains.dokka.base.templating.AddToSearch
import org.jetbrains.dokka.links.DRI
import org.jetbrains.dokka.... | 421 | Kotlin | 388 | 3,010 | 97bccc0e12fdc8c3bd6d178e17fdfb57c3514489 | 4,937 | dokka | Apache License 2.0 |
app/src/main/java/com/agaboardi/parchintasca/news/NewsAdapter.kt | sedestrian | 140,018,120 | false | {"Kotlin": 147017} | package com.agaboardi.parchintasca.news
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.ViewGroup
import com.agaboardi.parchintasca.R
import com.agaboardi.parchintasca.news.domain.model.News
class NewsAdapter(val click: ((news: News) -> Unit)?): RecyclerView.Adapte... | 0 | Kotlin | 0 | 0 | 05207f2ddd112bc80692e68565919629044ed7b7 | 933 | Parchintasca | Apache License 2.0 |
app/src/main/java/com/example/challenge_squad_apps/ui/activities/DeviceListAdapter.kt | Zerloo | 629,681,024 | false | null | package com.example.challenge_squad_apps.ui.activities
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageButton
import android.widget.ImageView
import android.widget.PopupMenu
import android.widget.TextView
import androidx... | 0 | Kotlin | 0 | 0 | 7282a0b5fa963cb8a8e8577a361c24380bc7bc6c | 3,525 | Challenge-Squad-Apps | Apache License 2.0 |
core/api/src/main/java/cc/cryptopunks/crypton/context/Api.kt | pawelpasterz | 282,009,706 | true | {"Kotlin": 363854, "Shell": 155} | package cc.cryptopunks.crypton.context
object Api {
interface Event
}
| 0 | null | 0 | 0 | 77f984a4ead0bcc0a4e28ea2284ba54379ed75bb | 75 | crypton | MIT License |
core/domain/src/main/java/halit/sen/domain/mapper/TaskMapper.kt | halitsen | 584,358,783 | false | null | package halit.sen.domain.mapper
import halit.sen.data.dto.Task
import halit.sen.domain.entity.TaskEntity
import javax.inject.Inject
class TaskMapper @Inject constructor(): PostponeBaseMapper<TaskEntity, Task> {
override fun map(input: TaskEntity): Task {
return Task(
id = input.id,
... | 0 | Kotlin | 0 | 2 | 623c772bea20bde050f121fe1a16105a6069ea63 | 405 | Postpone | Apache License 2.0 |
app/src/main/java/com/kidozh/discuzhub/daos/FavoriteThreadDao.kt | kidozh | 229,590,290 | false | null | package com.kidozh.discuzhub.daos
import androidx.lifecycle.LiveData
import androidx.paging.PagingSource
import androidx.room.*
import com.kidozh.discuzhub.entities.FavoriteThread
@Dao
interface FavoriteThreadDao {
@get:Query("SELECT * FROM FavoriteThread ORDER BY favid")
val allFavoriteThreadDataSource: Pagi... | 2 | null | 28 | 81 | 1f199780ac2ff26f8f799e5bcd0eaf72fba39505 | 2,660 | DiscuzHub | MIT License |
codebase/src/main/java/com/singularity_code/codebase/util/List.kt | SingularityIndonesia | 659,777,906 | false | null | package com.singularity_code.codebase.util
fun<T> T.singleUnitList(): List<T> = listOf(this) | 0 | Kotlin | 0 | 3 | 38e73034980d0a864b910fd37d57615386e822e2 | 93 | AndroidCodebase | MIT License |
codebase/src/main/java/com/singularity_code/codebase/util/List.kt | SingularityIndonesia | 659,777,906 | false | null | package com.singularity_code.codebase.util
fun<T> T.singleUnitList(): List<T> = listOf(this) | 0 | Kotlin | 0 | 3 | 38e73034980d0a864b910fd37d57615386e822e2 | 93 | AndroidCodebase | MIT License |
data/src/main/java/me/androidbox/data/di/NetworkModule.kt | steve1rm | 825,545,816 | false | {"Kotlin": 96309} | package me.androidbox.data.di
import io.ktor.client.HttpClient
import me.androidbox.data.coin_list.pager.CoinListPager
import me.androidbox.data.coin_list.remote_data_source.CoinListRemoteDataSource
import me.androidbox.data.coin_list.remote_data_source.imp.CoinListRemoteDataSourceImp
import me.androidbox.data.coin_li... | 0 | Kotlin | 0 | 0 | 49af50ee904e3208e21cc832074d6f03043268a7 | 1,411 | BusbyCoins | MIT License |
app/src/main/java/com/allever/app/jetpack/BookDao.kt | devallever | 273,505,771 | false | null | package com.allever.app.jetpack
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
@Dao
interface BookDao {
@Insert
fun insert(book: Book): Long
@Query("select * from Book")
fun listAll(): List<Book>
} | 0 | Kotlin | 0 | 0 | 167eb319f445dc4c0afd5b91d148b96f01905c0d | 251 | JetpackProject | Apache License 2.0 |
src/jsMain/kotlin/com/github/onotoliy/geojson/MultiLineString.kt | onotoliy | 236,307,651 | false | null | package com.github.onotoliy.geojson
/**
* Объект MultiLineString.
*
* @property coordinates Координаты.
* @author <NAME>
*/
actual class MultiLineString actual constructor(actual override val coordinates: Ring) : Geometry(coordinates)
| 0 | Kotlin | 0 | 0 | 3d8d0d29df09066798923a4904df3896f605abbb | 241 | geojson | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/medialive/CfnChannelHdr10SettingsPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.medialive
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Number
import software.amazon.awsc... | 3 | null | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 1,858 | awscdk-dsl-kotlin | Apache License 2.0 |
src/main/kotlin/com/redissi/trakt/entities/SyncItems.kt | IliasRedissi | 235,675,675 | true | {"Kotlin": 307912} | package com.redissi.trakt.entities
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
class SyncItems(
val movies: List<SyncMovie>? = null,
val shows: List<SyncShow>? = null,
val episodes: List<SyncEpisode>? = null,
val people: List<SyncPerson>? = null,
/**
* Only supporte... | 4 | Kotlin | 0 | 0 | c980c5c428edd8ba2d4b147be5e247e6e1356574 | 400 | trakt-kotlin | The Unlicense |
feature/characterdetail/src/main/kotlin/cl/gringraz/marvelcatalog/feature/characterdetail/data/source/remote/MarvelCharacterApi.kt | GrinGraz | 542,554,320 | false | {"Kotlin": 157747} | package cl.gringraz.marvelcatalog.feature.characterdetail.data.source.remote
import cl.gringraz.marvelcatalog.feature.common.data.MarvelCharactersResponseModel
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Path
interface MarvelCharacterApi {
@GET("$apiVersion/public/characters/{id}")
... | 0 | Kotlin | 0 | 3 | 387474cad5676f24e2e08df8c19c4e679c22e7ad | 521 | marvelapp-android | Apache License 2.0 |
sdk/src/main/java/com/eyeson/sdk/model/datachannel/incoming/DataChannelCommandsIncoming.kt | eyeson-team | 488,502,949 | false | {"Kotlin": 437465} | package com.eyeson.sdk.model.datachannel.incoming
internal enum class DataChannelCommandsIncoming(val type: String) {
PING("ping"),
VOICE_ACTIVITY("voice_activity")
}
| 0 | Kotlin | 0 | 3 | 65ea69100cea61ebc59e32a8fa8e116ee28341bd | 178 | android-sdk | MIT License |
src/test/kotlin/io/github/harryjhin/java/time/extension/MonthExtensionsTest.kt | HarryJhin | 841,133,931 | false | {"Kotlin": 223597} | package io.github.harryjhin.java.time.extension
import java.time.LocalDate
import java.time.Month
import java.time.MonthDay
import java.time.Period
import java.time.Year
import java.time.YearMonth
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFails
class MonthExtensionsTest {
@... | 1 | Kotlin | 0 | 2 | b5833d73c79b8d85037302212bee00edba69e09c | 3,504 | java-time-extensions | MIT License |
sample/android/src/main/java/com/example/sqldelight/hockey/data/GetInstance.kt | sqldelight | 44,677,680 | false | null | package com.example.sqldelight.hockey.data
import android.content.Context
import app.cash.sqldelight.driver.android.AndroidSqliteDriver
import com.example.sqldelight.hockey.HockeyDb
fun Db.getInstance(context: Context): HockeyDb {
if (!ready) {
dbSetup(AndroidSqliteDriver(Schema, context))
}
return instance... | 606 | null | 516 | 6,152 | f79bd8ae2cf991de6dccdb643376253402f665e1 | 323 | sqldelight | Apache License 2.0 |
src/main/kotlin/su/vshk/billing/bot/web/dto/client/ClientLoginCookie.kt | arendering | 682,932,625 | false | {"Kotlin": 375935} | package su.vshk.billing.bot.web.dto.client
import su.vshk.billing.bot.web.dto.Cookie
data class ClientLoginCookie(
val userId: Long,
val cookie: Cookie
)
| 0 | Kotlin | 0 | 0 | 7acf21665002456123a070e4eb2712a47d2fb12f | 164 | billing-bot | MIT License |
javatests/com/google/android/libraries/pcc/chronicle/storage/datacache/DataCacheReaderTest.kt | google | 564,990,777 | false | {"Kotlin": 1440674, "Starlark": 164409, "Java": 10061, "AIDL": 5852, "Python": 4367, "Dockerfile": 2035, "Shell": 1301} | /*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 7 | 29 | 62efeab0288f39467061c2444549954d0b7137f8 | 3,670 | private-compute-libraries | Apache License 2.0 |
app/src/main/java/com/jocmp/capyreader/common/ContextFileExt.kt | jocmp | 610,083,236 | false | {"Kotlin": 298674, "CSS": 1037, "HTML": 935, "Ruby": 532, "Makefile": 98} | package com.jocmp.capyreader.common
import android.content.Context
import android.net.Uri
import androidx.core.content.FileProvider
import java.io.File
fun Context.fileURI(file: File): Uri =
FileProvider.getUriForFile(this, "${packageName}.fileprovider", file)
| 9 | Kotlin | 0 | 1 | 3682de457f5bc0cc662f60daae51ef47e9b25681 | 267 | capyreader | MIT License |
src/main/kotlin/no/nav/personbruker/dittnav/api/oppgave/OppgaveDTO.kt | navikt | 202,547,457 | false | null | @file:UseSerializers(ZonedDateTimeSerializer::class)
package no.nav.personbruker.dittnav.api.beskjed
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import no.nav.personbruker.dittnav.api.common.serializer.ZonedDateTimeSerializer
import java.time.ZonedDateTime
@Serializable
data ... | 0 | Kotlin | 0 | 1 | eb55026cfd5ca25e21a9a91bca44c65c5ad0043c | 1,226 | dittnav-api | MIT License |
components/membership/membership-rest/src/main/kotlin/net/corda/membership/rest/v1/types/request/ApprovalRuleRequestParams.kt | corda | 346,070,752 | false | null | package net.corda.membership.httprpc.v1.types.request
/**
* Parameters for adding a new approval rule.
*
* @param ruleRegex The regular expression associated with the rule to be added.
* @param ruleLabel Optional. A label describing the rule to be added.
*/
data class ApprovalRuleRequestParams(
val ruleRegex:... | 82 | null | 7 | 69 | 0766222eb6284c01ba321633e12b70f1a93ca04e | 366 | corda-runtime-os | Apache License 2.0 |
components/membership/membership-rest/src/main/kotlin/net/corda/membership/rest/v1/types/request/ApprovalRuleRequestParams.kt | corda | 346,070,752 | false | null | package net.corda.membership.httprpc.v1.types.request
/**
* Parameters for adding a new approval rule.
*
* @param ruleRegex The regular expression associated with the rule to be added.
* @param ruleLabel Optional. A label describing the rule to be added.
*/
data class ApprovalRuleRequestParams(
val ruleRegex:... | 82 | null | 7 | 69 | 0766222eb6284c01ba321633e12b70f1a93ca04e | 366 | corda-runtime-os | Apache License 2.0 |
Controls/src/commonMain/kotlin/io/nacular/doodle/controls/spinner/Spinner.kt | tchigher | 312,263,221 | true | {"Kotlin": 1510103} | package io.nacular.doodle.controls.spinner
import io.nacular.doodle.controls.ItemVisualizer
import io.nacular.doodle.core.Behavior
import io.nacular.doodle.core.View
import io.nacular.doodle.core.behavior
import io.nacular.doodle.drawing.Canvas
import io.nacular.doodle.utils.ChangeObservers
import io.nacular.doodle.ut... | 0 | null | 0 | 0 | a5208fd7aec519dde8b00f3844a9bf28bf72e48f | 5,139 | doodle | MIT License |
domain/src/main/java/ru/shum/domain/usecase/LoginUserUseCase.kt | Alexander-Shum | 866,161,068 | false | {"Kotlin": 45602} | package ru.shum.domain.usecase
import ru.shum.domain.model.User
import ru.shum.domain.repository.AuthRepository
import ru.shum.domain.repository.UserRepository
class LoginUserUseCase(
private val userRepository: UserRepository,
private val authRepository: AuthRepository
) {
suspend operator fun invoke(use... | 0 | Kotlin | 0 | 1 | 39ba03ada0be1c85a9aee20df1e77a29db63c1e7 | 470 | ZenCarLab | MIT License |
app/src/main/java/com/example/weatherapp/screens/help/HelpFragment.kt | harishbadgujar | 362,879,185 | false | null | package com.example.weatherapp.screens.help
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.example.weatherapp.R
/**
* Created by shande on 10-01-2021.
*/
class HelpFragment : Fragment() {
overri... | 0 | null | 0 | 1 | d81e9f2e468364cea029f6ea80ca925e552e0f26 | 1,160 | WeatherApp | Apache License 2.0 |
shared/src/main/java/de/loosetie/k8s/dsl/manifests/ContainerResourceMetricStatus.kt | loosetie | 283,145,621 | false | {"Kotlin": 10664277} | package de.loosetie.k8s.dsl.manifests
import de.loosetie.k8s.dsl.K8sTopLevel
import de.loosetie.k8s.dsl.K8sDslMarker
import de.loosetie.k8s.dsl.K8sManifest
import de.loosetie.k8s.dsl.HasMetadata
@K8sDslMarker
interface ContainerResourceMetricStatus_autoscaling_v2beta2_k8s1_20: K8sManifest {
/** Name is the na... | 0 | Kotlin | 0 | 1 | dd616e546de56240a7a4d3edb18cb4f6529e301b | 773 | k8s-dsl | Apache License 2.0 |
rider-fsharp/src/main/java/com/jetbrains/rider/editorActions/FSharpTypedHandler.kt | misonijnik | 139,429,786 | false | null | package com.jetbrains.rider.editorActions
import com.intellij.openapi.editor.Editor
class FSharpTypedHandler : RiderTypedHandler() {
override fun isWritableTypingAssist(editor: Editor, typedChar: Char) = false
override val syncBackspace = false
override val syncEnter = false
override val syncTab = fal... | 1 | null | 1 | 1 | da652d8633a623d43a5fbec0888760de4b897cb4 | 360 | fsharp-support | Apache License 2.0 |
python/python-psi-impl/src/com/jetbrains/numpy/codeInsight/NumpyPyiStubs.kt | ingokegel | 72,937,917 | false | null | package com.jetbrains.python.numpy.codeInsight
import com.intellij.openapi.util.registry.Registry
import com.jetbrains.python.pyi.PyiFile
import com.jetbrains.python.pyi.PyiStubSuppressor
class NumpyPyiStubsSuppressor : PyiStubSuppressor {
override fun isIgnoredStub(file: PyiFile): Boolean {
if (Registry.`is`(... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 464 | intellij-community | Apache License 2.0 |
voicepingintent/src/main/java/com/smartwalkie/voicepingintent/loginusecase/LoginResult.kt | adityawibisana | 690,366,085 | false | {"Kotlin": 57403} | package com.smartwalkie.voicepingintent.loginusecase
import com.smartwalkie.voicepingintent.Channel
sealed class LoginResult {
data class LoginSuccess(val channels: List<Channel?>? = null) : LoginResult()
data class LoginFailed(val message: String) : LoginResult()
}
| 0 | Kotlin | 0 | 0 | 0d7577b862330f5d93aae57e59119351334f5c6a | 279 | voiceping-intent | MIT License |
core/src/main/java/com/exozet/android/core/extensions/ViewPager+Extensions.kt | exozet | 133,497,547 | false | null | @file:JvmName("ViewPagerExtensions")
package com.exozet.android.core.extensions
import androidx.viewpager.widget.ViewPager
fun ViewPager.scrollRight(pages: Int = 1) {
setCurrentItem(currentItem.plus(pages).clamp(0, (adapter?.count ?: 0) - 1), true)
}
fun ViewPager.scrollLeft(pages: Int = 1) {
setCurrentIte... | 1 | null | 2 | 11 | 72cbb02bc262b1c26450b570e41842ab65406c3e | 391 | AndroidCore | MIT License |
app/src/main/java/com/example/electrorui/ui/viewModel/NombresMod_AVM.kt | DGCORruie23 | 771,695,261 | false | {"Kotlin": 370303} | package com.example.electrorui.ui.viewModel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.electrorui.usecase.GetAllPaisesUC
import com.example.electrorui.usecase.GetRegistroFamiliarById
import com.example.electrorui.usecase.Get... | 0 | Kotlin | 0 | 0 | 380e1a8162f2a1695c5f8ff4291b732504a6433e | 1,531 | RUIeAndroid | The Unlicense |
src/main/kotlin/dev/crashteam/uzumanalytics/extensions/ResultSetExtension.kt | crashteamdev | 647,366,680 | false | {"Kotlin": 464407, "Dockerfile": 737} | package dev.crashteam.keanalytics.extensions
import java.math.BigDecimal
import java.sql.ResultSet
fun ResultSet.getNullableBigDecimal(columnName: String): BigDecimal? {
val value = this.getString(columnName)
return (if (this.wasNull()) null else value.toBigDecimal())
}
| 3 | Kotlin | 0 | 0 | f8db6a625130e61ee2e3a32da59282453c7c6cc3 | 281 | uzum-analytics | Apache License 2.0 |
app/src/main/java/com/example/rocketreserver/domain/ext/ResultWrapperExt.kt | artyomefimov | 357,857,288 | false | null | package com.example.rocketreserver.domain.ext
import com.example.rocketreserver.domain.model.result.ResultWrapper
inline fun <T> ResultWrapper<T>.collect(
onSuccess: (ResultWrapper.Success<T>) -> Unit,
onError: (ResultWrapper.Error) -> Unit
) {
when (this) {
is ResultWrapper.Success -> onSuccess(t... | 0 | Kotlin | 0 | 0 | 69bccb1dec438e71d3f433a22a477b51ba32b0f9 | 381 | spacex_graphql | MIT License |
compiler/fir/analysis-tests/testData/resolve/arguments/argParamTypeMismatch.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... | fun foo(first: String) {}
fun foo2(first: String, second: Int) {}
fun test() {
val int = 1
foo(<!ARGUMENT_TYPE_MISMATCH!>int<!>)
foo(<!ARGUMENT_TYPE_MISMATCH!>2<!>)
foo(<!ARGUMENT_TYPE_MISMATCH!>run { 20 }<!>)
foo2("asdf", 3)
foo2(<!ARGUMENT_TYPE_MISMATCH!>4<!>, <!ARGUMENT_TYPE_MISMATCH!>"asdf... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 372 | kotlin | Apache License 2.0 |
app/src/main/java/com/vishalgaur/shoppingapp/viewModels/HomeViewModel.kt | derzaarsad | 472,463,004 | true | {"Kotlin": 388552} | package com.vishalgaur.shoppingapp.viewModels
import android.app.Application
import android.util.Log
import androidx.lifecycle.*
import com.vishalgaur.shoppingapp.ShoppingApplication
import com.vishalgaur.shoppingapp.data.Inventory
import com.vishalgaur.shoppingapp.data.Result
import com.vishalgaur.shoppingapp.data.Re... | 0 | Kotlin | 0 | 0 | f686ccb62161b7708cf2a23d1a31d75e9b3048be | 10,097 | shopping-android-app | MIT License |
src/main/kotlin/Audio.kt | smk7758 | 471,393,474 | false | {"Kotlin": 14316} | import java.awt.Toolkit
import java.io.IOException
import java.net.MalformedURLException
import java.net.URL
import javax.sound.sampled.*
import kotlin.math.log10
class Audio {
private val audioBellURL = getAudioResource("/bell.wav")
private val audioStartSoundURL = getAudioResource("/start.wav")
private... | 2 | Kotlin | 0 | 0 | b599d7b2cf6bafd9d7fb17b699d8917779ecc14c | 2,795 | LT-Timer | MIT License |
app/src/main/java/inoxoft/simon/shop/model/stock/StockDao.kt | Sighmore | 872,072,217 | false | {"Kotlin": 22850} | package inoxoft.simon.shop.model.stock
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Query
import androidx.room.Upsert
import kotlinx.coroutines.flow.Flow
@Dao
interface StockDao {
@Upsert
//parameter stock of type Stock
suspend fun upsertStock(stock: Stock)
@Delete
s... | 0 | Kotlin | 0 | 0 | 2670e304a51282f79134e01ad53253c321b72e62 | 432 | Rizz-Shop | MIT License |
src/main/kotlin/com/redgrapefruit/justenoughgems/util/util.kt | kanpov | 432,432,508 | false | null | @file:JvmName("Utils")
package com.redgrapefruit.justenoughgems.util
import com.redgrapefruit.justenoughgems.init.JEGItems
import net.fabricmc.api.EnvType
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder
import net.fabricmc.fabric.api.item.v1.FabricItemSettings
import net.fabricmc.loader.api.Fab... | 2 | Kotlin | 0 | 0 | 477a3711bb239991b1722247483e520154fef003 | 4,192 | JustEnoughGems | MIT License |
stream/src/commonMain/kotlin/work/socialhub/kmastodon/stream/listener/primitive/UpdateEventListener.kt | uakihir0 | 783,390,459 | false | {"Kotlin": 168825, "Ruby": 2191, "Shell": 2164, "Makefile": 319} | package work.socialhub.kmastodon.stream.listener.primitive
import work.socialhub.kmastodon.entity.Status
interface UpdateEventListener {
fun onUpdate(status: Status)
}
| 0 | Kotlin | 0 | 1 | b1d48ee425c8a4724848d5686ce08f73edcc880d | 174 | kmastodon | MIT License |
common-ui-list/file-system/src/debug/java/com/storyteller_f/file_system/AndroidTestActivity.kt | storytellerF | 576,917,592 | false | {"Kotlin": 390899, "JavaScript": 8908, "Shell": 4236, "Java": 3654, "HTML": 973} | package com.storyteller_f.file_system
import androidx.appcompat.app.AppCompatActivity
class AndroidTestActivity : AppCompatActivity()
| 3 | Kotlin | 0 | 2 | 4d4504cf698a2012b9d6db605cab854c84b53d34 | 136 | common-ui-list-structure | MIT License |
src/main/java/com/keecker/services/interfaces/ApiClient.kt | keecker | 159,186,194 | false | {"Java": 184686, "Kotlin": 105063, "C++": 2300, "CMake": 285} | /*
* Copyright (C) 2018 KEECKER SAS (www.keecker.com)
*
* 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 appli... | 3 | Java | 1 | 5 | a05b8b0400a7b900a377c5cdad8c82bc4a2f6e7e | 4,462 | services-api | Apache License 2.0 |
app/src/main/java/xyz/teamgravity/cleantheming/MainActivity.kt | raheemadamboev | 464,921,497 | false | {"Kotlin": 5957} | package xyz.teamgravity.cleantheming
import android.os.Bundle
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layo... | 0 | Kotlin | 0 | 0 | 31aeae93b86bea40e9819a1196607fb23c3aaf24 | 1,643 | clean-theming | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/melding/kafka/KafkaDialogmeldingFraBehandlerTask.kt | navikt | 602,146,320 | false | null | package no.nav.syfo.melding.kafka
import no.nav.syfo.application.ApplicationState
import no.nav.syfo.application.database.DatabaseInterface
import no.nav.syfo.application.kafka.KafkaEnvironment
import no.nav.syfo.application.launchBackgroundTask
fun launchKafkaTaskDialogmeldingFraBehandler(
applicationState: Appl... | 2 | Kotlin | 0 | 0 | 59968d9f726b361f5f48c5438a7f0f47b60b623b | 698 | isbehandlerdialog | MIT License |
app/src/main/java/com/joblogic/ui/activity/SplashActivity.kt | tplloi | 604,518,044 | false | null | package com.joblogic.ui.activity
import android.annotation.SuppressLint
import android.os.Bundle
import com.joblogic.BuildConfig
import com.joblogic.R
import com.loitp.annotation.LogTag
import com.loitp.core.base.BaseActivityFont
import com.loitp.core.ext.*
import kotlinx.android.synthetic.main.activity_splash.*
@Sup... | 0 | Kotlin | 0 | 2 | 8ce29fb0a32d39e20e0476614a5855639f71c6dc | 1,135 | joblogictest | MIT License |
src/main/kotlin/com/beomsu317/plugins/Serialization.kt | beomsu317 | 481,200,228 | false | null | package com.beomsu317.plugins
import io.ktor.serialization.*
import io.ktor.features.*
import io.ktor.application.*
import io.ktor.response.*
import io.ktor.request.*
import io.ktor.routing.*
import kotlinx.serialization.json.Json
fun Application.configureSerialization() {
install(ContentNegotiation) {
js... | 0 | Kotlin | 0 | 0 | aa3b2a396f1c7ee7fd669547ed1c69ae6a52d9bb | 566 | private-chat-server | Apache License 2.0 |
kc-resource-client/src/main/kotlin/com/yo1000/keycloak/resource/client/KcResourceClientController.kt | yo1000 | 114,960,284 | false | null | package com.yo1000.keycloak.resource.client
import org.keycloak.adapters.springsecurity.client.KeycloakRestTemplate
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bin... | 0 | Kotlin | 1 | 0 | 105808d743225b3b03fb81afca540c0ea11bf5f8 | 1,224 | kc-resource | MIT License |
autobuilder/src/main/kotlin/me/chosante/autobuilder/genetic/wakfu/FindMostMasteriesFromInputScoring.kt | CharlyRien | 670,146,796 | false | {"Kotlin": 223963, "CSS": 73} | package me.chosante.autobuilder.genetic.wakfu
import java.math.BigDecimal
import java.math.RoundingMode
import me.chosante.autobuilder.domain.BuildCombination
import me.chosante.autobuilder.domain.TargetStats
import me.chosante.common.Characteristic
object FindMostMasteriesFromInputScoring {
fun computeScore(
... | 0 | Kotlin | 0 | 13 | 4d1a3eb6fba3b088637b0771da3845e6d9a75d14 | 4,084 | wakfu-autobuilder | The Unlicense |
app/src/main/kotlin/com/michaelbentz/axiom/repository/QrCodeRepository.kt | michaelbentz | 756,013,841 | false | {"Kotlin": 19114} | package com.michaelbentz.axiom.repository
import androidx.lifecycle.liveData
import com.michaelbentz.axiom.database.dao.QrCodeDao
import com.michaelbentz.axiom.database.entity.QrCodeEntity
import com.michaelbentz.axiom.service.QrCodeService
import com.michaelbentz.axiom.util.ResponseBodyCallback
import kotlinx.corouti... | 0 | Kotlin | 0 | 0 | 72fbe3567d7e22ac93a6342c880232e4ac14a3bf | 1,065 | axiom | MIT License |
platform/core/src/main/kotlin/ru/maksonic/beresta/platform/core/ui/UpdateMutableState.kt | maksonic | 580,058,579 | false | {"Kotlin": 1619980} | package ru.maksonic.beresta.platform.core.ui
import androidx.compose.runtime.MutableLongState
import androidx.compose.runtime.MutableState
/**
* @Author maksonic on 10.09.2023
*/
fun <T> MutableState<T>.update(updated: T) {
this.value = updated
}
fun MutableLongState.update(updated: Long) {
this.longValue =... | 0 | Kotlin | 0 | 0 | d9a53cc50c6e149923fc5bc6fc2c38013bfadb9d | 330 | Beresta | MIT License |
backend/src/main/kotlin/org/quizmania/game/command/application/domain/GameQuestion.kt | stoerti | 639,769,739 | false | {"Kotlin": 107640, "TypeScript": 107631, "HTML": 869, "JavaScript": 483, "CSS": 366} | package org.quizmania.game.command.application.domain
import org.axonframework.eventsourcing.EventSourcingHandler
import org.axonframework.modelling.command.AggregateLifecycle
import org.axonframework.modelling.command.EntityId
import org.quizmania.game.api.*
import org.quizmania.question.api.Question
import org.quizm... | 8 | Kotlin | 2 | 3 | c8232050d2e83b6cd74fe0f9747977554f820fca | 9,490 | quizmania | MIT License |
src/main/kotlin/ru/grishankov/network/ktor/HttpClientResponse.kt | AlexeyGrishankov | 530,579,923 | false | {"Kotlin": 4963} | package ru.grishankov.network.ktor
import io.ktor.client.*
import io.ktor.client.call.*
import io.ktor.client.request.*
import io.ktor.client.statement.*
import io.ktor.http.*
import io.ktor.utils.io.errors.*
/**
* Response with error handling
*/
suspend inline fun <reified Data : Any, reified Failure : Any> HttpRe... | 0 | Kotlin | 0 | 1 | b591464c726f750dc6443c8087ba4ea700b79f9b | 2,711 | ktor-client-network-adapter | MIT License |
src/main/kotlin/com/eduardosmatheus/githubtagsserver/repositories/TagsRepository.kt | eduardosmatheus | 328,810,912 | false | {"JavaScript": 22623, "Kotlin": 20020, "SCSS": 3501, "HTML": 1730} | package com.eduardosmatheus.githubtagsserver.repositories
import com.eduardosmatheus.githubtagsserver.model.Tag
import org.springframework.data.repository.CrudRepository
import org.springframework.stereotype.Repository
@Repository
interface TagsRepository: CrudRepository<Tag, Int> | 15 | JavaScript | 0 | 0 | 14f6331bc01734d57bcb34e9a39f6aba7c37fad1 | 283 | github-tags-webapp | MIT License |
src/main/kotlin/com/kivikood/plugins/HTTP.kt | fbandeirac | 818,046,894 | false | {"Kotlin": 8991} | package com.kivikood.plugins
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.plugins.cors.routing.*
fun Application.configureHTTP() {
install(CORS) {
allowMethod(HttpMethod.Options)
allowMethod(HttpMethod.Put)
allowMethod(HttpMethod.Delete)
allowMeth... | 0 | Kotlin | 0 | 0 | 9cb54b6c2c28c6053fb708a15d5eb8c9893a7c2b | 755 | kivi-order_backend | MIT License |
app/src/main/java/com/example/jetpack_compose_all_in_one/features/alarm/database/AlarmInfo.kt | myofficework000 | 626,474,700 | false | {"Kotlin": 1392414} | package com.example.jetpack_compose_all_in_one.features.alarm.database
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "AlarmInfo")
data class AlarmInfo(
@PrimaryKey(autoGenerate = true) val id: Int,
val hour: Int,
val minute: Int,
val enabled: Boolean
) | 21 | Kotlin | 22 | 222 | 4de5418608d6917b5c97fac7d868454c424daa26 | 304 | Jetpack-Compose-All-in-one-Guide | MIT License |
app/src/main/java/com/example/scootboost/ui/theme/Font.kt | Artem45bomb | 863,987,712 | false | {"Kotlin": 101854} | package com.example.scootboost.ui.theme
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import com.example.scootboost.R
val Modak = FontFamily(
Font(
R.font.modak,
weight = FontWeight.Normal
)
)
val Play... | 0 | Kotlin | 0 | 1 | f9c3b7c1a27450707ab7a943e44bb3d72e134ef4 | 409 | ScootBoost | MIT License |
src/main/kotlin/org/rizki/mufrizal/signature/rsa/SignatureGenerator.kt | RizkiMufrizal | 149,975,502 | false | null | package org.rizki.mufrizal.signature.rsa
import org.rizki.mufrizal.signature.rsa.helpers.isEndSeparator
import org.rizki.mufrizal.signature.rsa.readers.PrivateKeyReader
import org.rizki.mufrizal.signature.rsa.readers.PrivateKeyReaderStorage
import java.io.File
import java.nio.charset.Charset
import java.security.Inval... | 0 | Kotlin | 0 | 0 | b7bef5999b3ee2c501e4d2043c61b04cb8819c98 | 2,568 | Signature-RSA | Apache License 2.0 |
thelema-kx/src/commonMain/kotlin/org/ksdfv/thelema/g2d/AtlasSprite.kt | cybernetics | 365,452,918 | true | {"Kotlin": 3356187, "C": 552354, "Java": 355550, "HTML": 6211, "Makefile": 260} | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | null | 0 | 0 | c274a903f0a4d17e5ef14773efa144ee8c8809dd | 5,827 | thelema-engine | Apache License 2.0 |
src/main/kotlin/org/jetbrains/research/lumberjack/LightNode.kt | JetBrains-Research | 291,968,852 | false | null | package org.jetbrains.research.lumberjack
class LightNode(
var token: String,
var nodeType: String,
var parent: LightNode?,
val children: MutableList<LightNode> = mutableListOf(),
var canMerge: Boolean = true,
var hasMerged: Boolean = false
) {
var tokenIdList: Mutab... | 0 | Kotlin | 0 | 3 | d6a96a6b522f009d9af8213548f6c162da6919fb | 956 | lumberjack | MIT License |
sample/common/src/iosMain/kotlin/com/example/sqldelight/hockey/ui/TeamCell.kt | christofferqa | 169,524,028 | true | {"Kotlin": 597602, "Java": 9342, "Shell": 2066, "HTML": 57} | package com.example.sqldelight.hockey.ui
interface TeamCell {
fun fillName(name: String)
fun fillCoach(coach: String)
fun fillFounded(founded: String)
} | 0 | Kotlin | 0 | 0 | 2e67a1126b6df05e4119d1e3a432fde51d76cdc8 | 159 | sqldelight | Apache License 2.0 |
app/src/main/java/com/easypick/easypick/retroFit/Gateway.kt | UTN-FRBA-Mobile | 257,694,622 | false | null | package com.easypick.easypick.retroFit
import com.easypick.easypick.model.Category
import com.easypick.easypick.model.Producto
import io.reactivex.Observable
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query
import java.util.*
interface Gateway {
@GET("api.php... | 8 | Kotlin | 4 | 0 | c31e95f05e78cf9b8bdb6ee82b1269406b43402e | 585 | EasyPick | MIT License |
sdkcompat/v243/org/jetbrains/bsp/sdkcompat/flow/open/AbstractOpenProjectProviderCompat.kt | JetBrains | 826,262,028 | false | {"Kotlin": 3064918, "Starlark": 370388, "Java": 165158, "Scala": 37245, "Python": 34754, "Lex": 17493, "Dockerfile": 8674, "Shell": 7379, "HTML": 1310, "Rust": 680, "Go": 428, "C++": 113} | package org.jetbrains.bsp.sdkcompat.flow.open
import com.intellij.openapi.externalSystem.importing.AbstractOpenProjectProvider
import com.intellij.openapi.externalSystem.model.ProjectSystemId
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
// v243: linkToExistingProjectAsync re... | 2 | Kotlin | 18 | 45 | 1d79484cfdf8fc31d3a4b214655e857214071723 | 892 | hirschgarten | Apache License 2.0 |
src/main/java/com/tufin/webhook/graphql/publishers/StockTickerPublisher.kt | vakrat1 | 218,053,130 | false | {"Markdown": 1, "Java Properties": 3, "Gradle": 3, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Kotlin": 25, "Java": 3, "YAML": 1, "GraphQL": 1, "HTML": 4, "INI": 2, "XML": 7, "HTTP": 1} | package com.tufin.webhook.graphql.publishers
import com.tufin.webhook.graphql.output.StockPriceUpdate
import io.nats.client.Nats
import io.nats.client.Options
import mu.KotlinLogging
import reactor.core.publisher.Flux
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Component
import reactor.core.... | 0 | Kotlin | 0 | 0 | 740366ec106973df63b7faf43a49dc049b1b4ed7 | 4,640 | webhooks_service | MIT License |
awesomephotopicker/src/main/java/me/sungbin/awesomephotopicker/library/view/SquareConstraintLayout.kt | jisungbin | 304,322,385 | false | null | package me.sungbin.awesomephotopicker.library.view
import android.content.Context
import android.util.AttributeSet
import androidx.constraintlayout.widget.ConstraintLayout
/**
* Created by SungBin on 2020-10-16.
*/
class SquareConstraintLayout : ConstraintLayout {
constructor(context: Context?) : super(context... | 0 | Kotlin | 0 | 3 | c57c1f6c31d421c462cee7388a2af38176f32460 | 615 | AwesomePhotoPicker | Apache License 2.0 |
component/component-mirai/src/main/java/love/forte/simbot/component/mirai/sender/BotCookies.kt | simple-robot | 554,852,615 | false | null | /*
*
* * Copyright (c) 2021. ForteScarlet All rights reserved.
* * Project simple-robot
* * File MiraiAvatar.kt
* *
* * You can contact the author through the following channels:
* * github https://github.com/ForteScarlet
* * gitee https://gitee.com/ForteScarlet
* * email <EMAIL>
* * QQ 11... | 0 | Kotlin | 0 | 3 | c5d7c9ca8c81b2bddc250090739d7c7d0c110328 | 16,851 | simple-robot-v2 | Apache License 2.0 |
base/domain/src/main/java/org/kafka/base/GoogleClientIdProvider.kt | vipulyaara | 612,950,214 | false | {"JavaScript": 648163, "Kotlin": 588761, "HTML": 20087, "CSS": 11363, "Shell": 2974} | package org.kafka.base
interface GoogleClientIdProvider {
val apiKey: String?
}
| 4 | JavaScript | 5 | 55 | 6a4edcb6b788ca32a3904743f2ed0184d51bb97b | 85 | Kafka | Apache License 2.0 |
app/src/main/java/org/lotka/xenonx/di/AppModule.kt | armanqanih | 856,154,586 | false | {"Kotlin": 179184} | package org.lotka.xenonx.di
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import org.lotka.xenonx.data.remote.api.ApiService
import org.lotka.xenonx.data.remote.repository.HomeRepositoryImpl
import org.lotka.xenonx.data.remote.repository.Searc... | 0 | Kotlin | 0 | 0 | 3a0983d33f8424c96f0f881affb6642e73582dac | 2,337 | MyWordMovie | Apache License 2.0 |
modules/logging-api/src/main/java/uk/gov/logging/api/CrashLogger.kt | govuk-one-login | 784,723,752 | false | {"Kotlin": 129280, "Shell": 1822, "Ruby": 1232} | package uk.gov.logging.api
/**
* Abstraction for declaring crashlytics logger behaviour.
*/
interface CrashLogger {
fun log(throwable: Throwable)
fun log(message: String)
}
| 0 | Kotlin | 0 | 2 | 47e4f1a9919802baa397ce55ca9f5393c1925d33 | 184 | mobile-android-logging | MIT License |
common/src/commonTest/kotlin/json/UserTest.kt | kordlib | 202,856,399 | false | null | package dev.kord.common.json
import dev.kord.common.entity.DiscordUser
import dev.kord.common.entity.UserFlags
import dev.kord.common.readFile
import kotlinx.coroutines.test.runTest
import kotlinx.serialization.json.Json
import kotlin.js.JsName
import kotlin.test.Test
private suspend fun file(name: String): String = ... | 52 | null | 82 | 922 | e99c5c583229d20e69632aae39cee47da637abef | 1,019 | kord | MIT License |
delta-coverage-core/src/test/kotlin/io/github/surpsg/deltacoverage/report/jacoco/converage/CoverageLoaderTest.kt | gw-kit | 614,080,411 | false | {"Kotlin": 368842, "Java": 3158} | package io.github.surpsg.deltacoverage.report.jacoco.converage
import io.kotest.assertions.throwables.shouldThrow
import org.junit.jupiter.api.Test
import java.io.File
class CoverageLoaderTest {
@Test
fun `should throw if file does not exist`() {
// GIVEN
val files = setOf(
File("... | 8 | Kotlin | 6 | 22 | 86ebb4745714e71d96747a6554b8d82e2d9869e1 | 491 | delta-coverage-plugin | MIT License |
src/main/kotlin/io/github/suitetecsa/sdk/nauta/utils/CustomTrustManager.kt | suitetecsa | 696,970,114 | false | {"Kotlin": 110437, "Java": 6795} | package io.github.suitetecsa.sdk.nauta.utils
import io.github.suitetecsa.sdk.exception.KeystoreLoadingException
import io.github.suitetecsa.sdk.exception.KeystoreNotFoundException
import io.github.suitetecsa.sdk.exception.SSLContextInitializationException
import okhttp3.OkHttpClient
import org.bouncycastle.jce.provide... | 0 | Kotlin | 1 | 3 | 4ed09e2bca37285d235fc9311c9378919eb111bf | 2,057 | sdk-kotlin | MIT License |
src/main/kotlin/com/dxmwl/newbee/page/home/ApkPageState.kt | dxmwl | 834,178,567 | false | {"Kotlin": 224927, "Java": 67191, "Shell": 918} | package com.dxmwl.newbee.page.home
import androidx.compose.runtime.*
import androidx.lifecycle.AtomicReference
import com.dxmwl.newbee.AppPath
import com.dxmwl.newbee.channel.ChannelRegistry
import com.dxmwl.newbee.channel.ChannelTask
import com.dxmwl.newbee.channel.MarketState
import com.dxmwl.newbee.channel.TaskLaun... | 0 | Kotlin | 1 | 6 | fa0b2152165bc18fa4fe21b3dd0d649d97c67eb5 | 7,476 | new_bee_upload_app | Apache License 2.0 |
app/src/main/java/z/cash/demoapp/EncodingActivity.kt | eigerco | 718,325,553 | false | {"Kotlin": 64915} | package z.cash.demoapp
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3... | 0 | Kotlin | 0 | 0 | b1dfd48092ea787db45e15821850339bf0714ac4 | 4,787 | zcash-android-demo-app | Apache License 2.0 |
core/src/test/kotlin/com/ijoic/data/source/pool/prepare/PrepareManagerTest.kt | VerstSiu | 166,965,413 | false | null | package com.ijoic.data.source.pool.prepare
import com.ijoic.data.source.context.impl.DefaultExecutorContext
import com.ijoic.data.source.pool.prepare.impl.LimitIntervalPrepareManager
import com.ijoic.data.source.pool.prepare.impl.LimitSizePrepareManager
import org.junit.Test
import org.mockito.Mockito.*
/**
* Prepar... | 0 | Kotlin | 1 | 1 | cda5d697867ab9c47e0c27ad7946a0c1402240f1 | 1,660 | websocket-pool | Apache License 2.0 |
growingio-annotation/compiler/src/main/java/com/growingio/sdk/annotation/compiler/GioTrackerGenerator.kt | growingio | 283,960,617 | false | null | /*
* Copyright (C) 2020 Beijing Yishu Technology Co., 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 ... | 2 | null | 24 | 72 | 4d29c4fbf4bad0b79d6b3a56b83c97f0bb432587 | 14,175 | growingio-sdk-android-autotracker | Apache License 2.0 |
app/src/main/java/com/redmadrobot/example/MainActivity.kt | redmadrobot-tomsk | 472,596,472 | false | null | package com.redmadrobot.example
import android.app.ActivityOptions
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import cache.StoriesCacheFactory
import cach... | 0 | Kotlin | 0 | 6 | 771c38f73441260bb72c23cc000ba39687e1b57d | 3,709 | android-stories | MIT License |
core/src/main/kotlin/io/zeebe/bpmnspec/package.kt | camunda-community-hub | 286,915,454 | false | null | package io.zeebe.bpmnspec
typealias ProcessInstanceKey = Long
| 11 | Kotlin | 5 | 28 | 64a5a1550ccf6153ab95d3f302a4e45e0d8c3a4b | 63 | bpmn-spec | Apache License 2.0 |
CodeLocatorPlugin/src/main/java/com/bytedance/tools/codelocator/dialog/ShowSearchDialog.kt | bytedance | 397,768,132 | false | null | package com.bytedance.tools.codelocator.dialog
import com.bytedance.tools.codelocator.panels.CodeLocatorWindow
import com.bytedance.tools.codelocator.utils.*
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.DialogWrapper
import com.intellij.openapi.util.SystemInfo
import org.apache.http.util.... | 9 | null | 69 | 974 | 2c01b619c9b33801ffdcd8d1ffa63f673504d923 | 5,424 | CodeLocator | Apache License 2.0 |
lib/src/commonMain/kotlin/xyz/mcxross/ksui/model/serializer/TransactionFilterSerializer.kt | mcxross | 611,172,630 | false | {"Kotlin": 231257, "Shell": 2264} | package xyz.mcxross.ksui.model.serializer
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.descriptors.buildClassSerialDescriptor
import kotlinx.serialization.encoding.Decoder
import kotlinx.serialization.encoding.Encoder
import kotlinx.ser... | 3 | Kotlin | 2 | 4 | 90826732cec4e40cce790ac1da5585aed0760720 | 2,372 | ksui | Apache License 2.0 |
src/test/kotlin/de/kevcodez/semver/semvervalidator/controller/IncrementControllerTest.kt | kevcodez | 96,095,489 | false | null | package de.kevcodez.semver.semvervalidator.controller
import com.tngtech.java.junit.dataprovider.DataProvider
import com.tngtech.java.junit.dataprovider.UseDataProvider
import de.kevcodez.semver.semvervalidator.DataProviderRunnerWithSpring
import de.kevcodez.semver.semvervalidator.dto.VersionDto
import org.assertj.cor... | 0 | Kotlin | 0 | 1 | 74f70332b41866d3fd39f2032c8835638056d2aa | 2,260 | semver-rest-api | MIT License |
app/src/main/kotlin/com/nilhcem/smarthome/androidthings/core/dagger/AppComponent.kt | Nilhcem | 94,103,943 | false | null | package com.nilhcem.smarthome.androidthings.core.dagger
import com.nilhcem.smarthome.androidthings.App
import com.nilhcem.smarthome.androidthings.core.dagger.scope.AppScope
import dagger.Component
import dagger.android.AndroidInjectionModule
@AppScope
@Component(modules = [AndroidInjectionModule::class, AppModule::cl... | 1 | JavaScript | 17 | 53 | 17b74cbbefb4299c1deb4ec2bca6bb1d535b2d9e | 407 | smarthome-androidthings | Apache License 2.0 |
src/main/kotlin/io/github/clechasseur/adventofcode/y2022/data/Day10Data.kt | clechasseur | 567,968,171 | false | null | package io.github.clechasseur.adventofcode.y2022.data
object Day10Data {
val input = """
noop
noop
noop
addx 6
addx -1
noop
addx 5
noop
noop
addx -12
addx 19
addx -1
noop
addx 4
addx -11
... | 0 | Kotlin | 0 | 0 | 7ead7db6491d6fba2479cd604f684f0f8c1e450f | 2,180 | adventofcode2022 | MIT License |
formula-android/src/main/java/com/instacart/formula/android/ActivityStoreContext.kt | instacart | 171,923,573 | false | {"Kotlin": 534393, "Shell": 1109, "Ruby": 256} | package com.instacart.formula.android
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.Lifecycle
import com.instacart.formula.android.events.ActivityResult
import com.instacart.formula.android.events.FragmentLifecycleEvent
import io.reactivex.rxjava3.core.Observable
import io.reactivex.rxjava3.d... | 7 | Kotlin | 13 | 148 | fde506662909546ab32d16236993b19163c153fb | 5,860 | formula | BSD 3-Clause Clear License |
app/src/main/java/app/web/relive/letsgetcocky/data/remote/response/CocktailDetailsItemResponse.kt | Relive077 | 435,650,603 | false | {"Kotlin": 96499} | package app.web.relive.letsgetcocky.data.remote.response
import app.web.relive.letsgetcocky.domain.model.CocktailDetailsItem
import app.web.relive.letsgetcocky.domain.model.CocktailSearchItem
import com.google.gson.annotations.SerializedName
data class CocktailDetailsItemResponse(
@SerializedName("strDrink") val ... | 0 | Kotlin | 0 | 2 | fad8484bb13ce6a21eb3b930af6a2ba01f93fa8f | 3,890 | Let-s-Get-Cocky-App | Apache License 2.0 |
Client/app/src/main/java/com/t3ddyss/clother/data/chat/db/MessageDao.kt | t3ddyss | 337,083,750 | false | {"Kotlin": 343189, "Python": 38739, "Jupyter Notebook": 22857, "HTML": 11031, "Dockerfile": 411, "Shell": 405} | package com.t3ddyss.clother.data.chat.db
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import com.t3ddyss.clother.data.chat.db.models.MessageEntity
import kotlinx.coroutines.flow.Flow
@Dao
interface MessageDao {
... | 0 | Kotlin | 1 | 23 | 4d29471b97ae61d033f7fe84beb80b64fbdde426 | 1,631 | Clother | MIT License |
app/src/main/java/io/github/takusan23/akaridroid/v2/ui/screen/SettingScreenV2.kt | takusan23 | 584,131,815 | false | {"Kotlin": 451083, "Java": 67808} | package io.github.takusan23.akaridroid.ui.screen
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.LargeTopAppBar
import androidx.compose.material3.Scaffold
import androidx.comp... | 0 | Kotlin | 0 | 0 | f1b481e30a226607467099ac16aa819553784728 | 717 | AkariDroid | Apache License 2.0 |
features/game/api/lib/src/test/java/play/dto/RemoteInfoTest.kt | game-x50 | 361,364,864 | false | null | package play.dto
import com.ruslan.hlushan.game.api.play.dto.IllegalRemoteTimestampsException
import com.ruslan.hlushan.game.api.play.dto.RemoteInfo
import org.junit.Test
import org.threeten.bp.Instant
class RemoteInfoTest {
@Test(expected = IllegalRemoteTimestampsException::class)
fun `constructor not valid... | 26 | Kotlin | 0 | 0 | 155c9ae3e60bb24141823837b2dddf041f71ff89 | 769 | android_client_app | Apache License 2.0 |
compiler/testData/codegen/box/enum/javaEnumValues.kt | JetBrains | 3,432,266 | false | null | // TARGET_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// FILE: E.java
public enum E {
A();
public static void values(boolean b) {
}
}
// FILE: test.kt
fun f(e: E) = when (e) {
E.A -> "OK"
}
fun box(): String {
return f(E.A)
}
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 248 | kotlin | Apache License 2.0 |
game/src/main/kotlin/gg/rsmod/game/plugin/PluginMetadata.kt | 2011Scape | 578,880,245 | false | null | package gg.rsmod.game.plugin
import com.fasterxml.jackson.annotation.JsonProperty
/**
* Contains data relevant to a [Plugin].
*
* @param propertyFileName the file name that will store the metadata. This should
* be the <strong>file-name</strong>, not the full path and not including the
* extension. This name sho... | 8 | null | 33 | 34 | e5400cc71bfa087164153d468979c5a3abc24841 | 1,090 | game | Apache License 2.0 |
src/main/kotlin/org/piecesapp/client/models/ExportedDatabase.kt | pieces-app | 726,212,140 | false | {"Kotlin": 1451671} | /**
* Pieces Isomorphic OpenAPI
* Endpoints for Assets, Formats, Users, Asset, Format, User.
*
* The version of the OpenAPI document: 1.0
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/... | 9 | Kotlin | 2 | 6 | 9371158b0978cae518a6f2584dd452a2556b394f | 3,670 | pieces-os-client-sdk-for-kotlin | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.