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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/model/message/MessageVerificationReadyContent.kt | matrix-org | 287,466,066 | false | null | /*
* Copyright 2020 The Matrix.org Foundation C.I.C.
*
* 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 ... | 75 | null | 27 | 97 | 55cc7362de34a840c67b4bbb3a14267bc8fd3b9c | 2,112 | matrix-android-sdk2 | Apache License 2.0 |
triad-core/src/test/java/com/nhaarman/triad/TriadDelegateTest.kt | nhaarman | 31,015,663 | false | null | /*
* Copyright 2016 <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... | 2 | null | 6 | 88 | 83753e0d6421e12b516e76feaba37224d456f467 | 2,869 | Triad | Apache License 2.0 |
vico/core/src/main/java/com/patrykandpatrick/vico/core/common/shape/Shape.kt | patrykandpatrick | 338,848,755 | false | null | /*
* Copyright 2024 by <NAME> and <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 ... | 12 | null | 130 | 2,132 | 7066e4bf88cdd1e4c57e1ab03d10354e5f640928 | 1,381 | vico | Apache License 2.0 |
compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/AbstractFailingTestSuppressor.kt | JetBrains | 3,432,266 | false | null | /*
* 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.test.frontend
import org.jetbrains.kotlin.test.WrappedException
import org.jetbr... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,349 | kotlin | Apache License 2.0 |
app-home/src/main/java/xiaobo0113/xiaobo/com/app_home/AppHomePipeLineImp.kt | xiaobo0113 | 146,252,895 | false | null | package xiaobo0113.xiaobo.com.app_home
import android.content.Context
import android.content.Intent
import android.os.Bundle
class AppHomePipeLineImp : AppHomePipeLine {
override fun startAppHomeMainActivity(context: Context, bundle: Bundle) {
val intent = Intent(context, AppHomeMainActivity::class.java)
... | 0 | Kotlin | 0 | 0 | 46239891af6077afffe46ae68e9c4e5943c70503 | 400 | SingleEntry | Apache License 2.0 |
src/test/kotlin/io/articulus/fhir/model/dstu3/ClaimResponseDataTest.kt | Articulus-Tech | 160,540,104 | false | null | package io.articulus.fhir.model.dstu3
import java.io.File
import java.lang.SuppressWarnings
import kotlin.test.assertEquals
import kotlin.test.assertTrue
import org.junit.jupiter.api.Test
class ClaimResponseDataTest : DataTests() {
@Test
fun `claimresponse-example 538 Test`() {
val json = File("./src/... | 0 | Kotlin | 0 | 3 | 90b7b912048fc61ad3696497d1ceaf76459852cb | 4,705 | kotlin-fhir-model | Apache License 2.0 |
harmony-kotlin/src/commonMain/kotlin/com/harmony/kotlin/data/datasource/flow/VoidFlowDataSources.kt | mobilejazz | 193,985,847 | false | null | package com.harmony.kotlin.data.datasource.flow
import com.harmony.kotlin.data.query.Query
import kotlinx.coroutines.flow.Flow
class VoidFlowDataSource<V> : FlowGetDataSource<V>, FlowPutDataSource<V>, FlowDeleteDataSource {
override fun get(query: Query): Flow<V> = throw UnsupportedOperationException()
@Deprecat... | 1 | Kotlin | 1 | 12 | 77fe72f1e62afeac68e28e0a6121b97655b7e3ad | 1,443 | harmony-kotlin | Apache License 2.0 |
schema-server-core/src/main/java/com/orbitalhq/schemaServer/core/repositories/FileWorkspaceConfigLoader.kt | orbitalapi | 541,496,668 | false | {"TypeScript": 9344934, "Kotlin": 5669840, "HTML": 201985, "SCSS": 170620, "HCL": 55741, "Java": 29373, "JavaScript": 24697, "Shell": 8800, "Dockerfile": 7001, "Smarty": 4741, "CSS": 2966, "Mustache": 1392, "Batchfile": 983, "MDX": 884, "PLpgSQL": 337} | package com.orbitalhq.schemaServer.core.repositories
import com.google.common.annotations.VisibleForTesting
import com.google.common.base.Throwables
import com.google.common.collect.Sets
import com.orbitalhq.PackageIdentifier
import com.orbitalhq.config.ChangeWatchingConfigFileRepository
import com.orbitalhq.config.to... | 9 | TypeScript | 10 | 292 | 2be59abde0bd93578f12fc1e2ecf1f458a0212ec | 20,035 | orbital | Apache License 2.0 |
example/mastodon/src/main/java/com/wcaokaze/vue/android/example/mastodon/infrastructure/oauth/getAuthorizeUrl.kt | wcaokaze | 233,875,665 | false | null | /*
* Copyright 2020 wcaokaze
*
* 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 ... | 8 | Kotlin | 0 | 3 | e5401d4ffd04e059b13da3923583171db49b7737 | 1,225 | Vue.android | Apache License 2.0 |
app/src/main/java/wannabit/io/cosmostaion/ui/tx/info/StakeInfoFragment.kt | cosmostation | 418,314,439 | false | null | package wannabit.io.cosmostaion.ui.tx.info
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.os.Parcelable
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lif... | 1 | null | 43 | 79 | 2da146a88290210e56f6d49f7a764b95dd262fbf | 7,043 | cosmostation-android | MIT License |
app/src/main/java/com/nicoqueijo/android/currencyconverter/kotlin/view/DecimalNumberKeyboard.kt | nicoqueijo | 136,773,306 | false | {"Kotlin": 160859} | package com.nicoqueijo.android.currencyconverter.kotlin.view
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.widget.Button
import android.widget.ImageButton
import androidx.constraintlayout.widget.ConstraintLayout
import com.nic... | 5 | Kotlin | 22 | 42 | 9b459d0701d3f981ff0067c494be69d1cc4b04da | 3,097 | Android-Currency-Converter | Apache License 2.0 |
app/src/main/java/com/josenaves/iddog/data/remote/api/dto/AuthRequest.kt | josenaves | 203,216,578 | false | null | package com.josenaves.iddog.data.remote.api.dto
data class AuthRequest(val email: String) | 0 | Kotlin | 0 | 0 | f6193bc2ecd549dfdfb2b3ea6dfe0fe510aff437 | 90 | idDog | MIT License |
app/src/main/java/ru/rznnike/eyehealthmanager/app/di/DatabaseModule.kt | RznNike | 207,148,781 | false | null | package ru.rznnike.eyehealthmanager.app.di
import org.koin.android.ext.koin.androidContext
import org.koin.dsl.module
import ru.rznnike.eyehealthmanager.data.storage.entity.MyObjectBox
import ru.rznnike.eyehealthmanager.domain.storage.repository.TestRepository
import ru.rznnike.eyehealthmanager.data.storage.repository... | 0 | null | 0 | 1 | 64cb90237029e498c4f1484daa1023f0302b4a0f | 508 | EyeHealthManager | MIT License |
PrinterApp/app/src/main/java/de/domes_muc/printerappkotlin/library/LibraryModelCreation.kt | frado1 | 171,032,287 | true | {"Kotlin": 813558, "Java": 569834} | package de.domes_muc.printerappkotlin.library
import android.app.AlertDialog
import de.domes_muc.printerappkotlin.Log
import de.domes_muc.printerappkotlin.R
import de.domes_muc.printerappkotlin.viewer.DataStorage
import de.domes_muc.printerappkotlin.viewer.GcodeFile
import de.domes_muc.printerappkotlin.viewer.StlFile
... | 0 | Kotlin | 0 | 0 | 91f440d7b699fd6754b937f8afaf36973bef750d | 10,032 | OctoPrint-AndroidApp | Apache License 2.0 |
glance/glance-testing/src/main/java/androidx/glance/testing/GlanceNodeSelector.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2023 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 937 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 4,682 | androidx | Apache License 2.0 |
kroto-plus-coroutines/src/main/kotlin/com/github/marcoferrer/krotoplus/coroutines/client/ClientChannels.kt | qsona | 165,782,677 | true | {"Kotlin": 196181} | package com.github.marcoferrer.krotoplus.coroutines.client
import com.github.marcoferrer.krotoplus.coroutines.FlowControlledObserver
import com.github.marcoferrer.krotoplus.coroutines.enableManualFlowControl
import io.grpc.stub.ClientCallStreamObserver
import io.grpc.stub.ClientResponseObserver
import kotlinx.coroutin... | 0 | Kotlin | 0 | 0 | b690acc2da2abb17be1c44b2004fc07bd86bddad | 2,201 | kroto-plus | Apache License 2.0 |
app/src/main/kotlin/dev/aaa1115910/bv/screen/VideoInfoScreen.kt | aaa1115910 | 571,702,700 | false | null | package dev.aaa1115910.bv.screen
import android.app.Activity
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Image
impo... | 27 | Kotlin | 95 | 812 | f4bdfb9f59f265c2d9e8c9ad99a58b1050885582 | 55,396 | bv | MIT License |
src/main/kotlin/org/goodmath/simplex/runtime/values/manifold/SPolygon.kt | MarkChuCarroll | 831,231,194 | false | {"Kotlin": 333643, "JavaScript": 5595, "ANTLR": 3455, "Emacs Lisp": 1296, "Scheme": 450} | /*
* Copyright 2024 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 0 | e593a5a4cb31f8cbad13d16822f8d141e6d5a217 | 5,265 | simplex | Apache License 2.0 |
app/src/main/kotlin/org/mediasoup/droid/lib/JsonUtils.kt | ow-ro | 373,256,601 | true | {"Kotlin": 120969} | package org.mediasoup.droid.lib
import org.json.JSONArray
import org.json.JSONException
import org.json.JSONObject
object JsonUtils {
fun jsonPut(json: JSONObject, key: String, value: Any?) {
try {
json.put(key, value)
} catch (e: JSONException) {
e.printStackTrace()
... | 0 | Kotlin | 0 | 0 | e7ed9c822e0c63430bfc9d5d3f0081a187850452 | 747 | mediasoup-demo-android | MIT License |
app/src/main/java/org/wit/rightcard/helpers/DataGenerator.kt | sveggen | 251,733,790 | false | null | package org.wit.rightcard.helpers
import org.wit.rightcard.persistence.models.BenefitModel
import org.wit.rightcard.persistence.models.CardBenefitsModel
import org.wit.rightcard.persistence.models.CardModel
import org.wit.rightcard.persistence.models.ShopModel
import org.wit.rightcard.persistence.stores.BenefitStore
i... | 0 | Kotlin | 0 | 1 | 8a0361eff431235ee26027e1c53636b3da9653b4 | 1,283 | RightCard | MIT License |
app/src/main/java/com/wavesplatform/wallet/v2/injection/module/ApplicationModule.kt | wavesplatform | 98,419,999 | false | null | /*
* Created by <NAME> on 1/4/2019
* Copyright © 2019 Waves Platform. All rights reserved.
*/
package com.wavesplatform.wallet.v2.injection.module
import android.content.Context
import com.wavesplatform.wallet.App
import com.wavesplatform.wallet.v2.injection.qualifier.ApplicationContext
import dagger.Binds
import ... | 2 | null | 52 | 55 | 5f4106576dc4fe377a355d045f638e7469cd6abe | 473 | WavesWallet-android | MIT License |
core/ui/components/src/main/kotlin/top/chengdongqing/weui/core/ui/components/swiper/Swiper.kt | chengdongqing | 782,566,304 | false | {"Kotlin": 894390} | package top.chengdongqing.weui.core.ui.components.swiper
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.foundation.layout.PaddingValues
import ... | 0 | Kotlin | 4 | 8 | eb773e75aacb801cb24adb41db9fe17224eb883a | 3,146 | WeUI | Apache License 2.0 |
app/src/main/java/link/download/ru/contact.kt | Maxuttta | 795,203,771 | false | {"Kotlin": 163861} | package link.download.ru
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Bundle
import android.provider.ContactsContract
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.google.firebase.database.DataSnapshot
import... | 0 | Kotlin | 0 | 0 | 3a773195ee28e0fcb330e33fa149384fc2739836 | 3,775 | Link-Rus-OFFICIAL | Apache License 2.0 |
app/src/main/java/com/misana/barcodeface/domain/model/Emotion.kt | MisaghM | 864,967,262 | false | {"Kotlin": 99707} | package com.misana.barcodeface.domain.model
enum class Emotion {
ANGRY,
DISGUST,
FEAR,
HAPPY,
NEUTRAL,
SAD,
SURPRISE;
override fun toString() = when (this) {
ANGRY -> "Angry"
DISGUST -> "Disgust"
FEAR -> "Fear"
HAPPY -> "Happy"
NEUTRAL -> "Neutra... | 0 | Kotlin | 0 | 0 | 76a2d6ef2a4527a4ef288ee3a7589003ef253835 | 383 | BarcodeFace | MIT License |
core/src/commonTest/kotlin/maryk/core/aggregations/metric/SumTest.kt | marykdb | 290,454,412 | false | {"Kotlin": 3039791, "JavaScript": 1004} | package maryk.core.aggregations.metric
import maryk.checkJsonConversion
import maryk.checkProtoBufConversion
import maryk.checkYamlConversion
import maryk.core.extensions.toUnitLambda
import maryk.core.query.RequestContext
import maryk.test.models.TestMarykModel
import kotlin.test.Test
import kotlin.test.expect
class... | 1 | Kotlin | 1 | 8 | 4c58b04a0189e13e5621a505a5bb82ce5e655ae0 | 1,166 | maryk | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/quicksight/CfnTemplateDrillDownFilterPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 70198112} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.quicksight
import cloudshift.awscdk.common.CdkDslMarker
import... | 3 | Kotlin | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 3,850 | awscdk-dsl-kotlin | Apache License 2.0 |
platform/platform-impl/src/com/intellij/ide/actions/CloseOtherProjectsAction.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.actions
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.ProjectMan... | 191 | null | 4372 | 13,319 | 4d19d247824d8005662f7bd0c03f88ae81d5364b | 933 | intellij-community | Apache License 2.0 |
native/src/main/kotlin/dev/sanmer/geomag/Geomag.kt | SanmerApps | 583,580,288 | false | null | package dev.sanmer.geomag
import kotlinx.datetime.LocalDateTime
object Geomag {
init {
ImplLibrary.load()
}
external fun toDecimalYears(year: Int, month: Int, day: Int, hour: Int, minute: Int, second: Int): Double
external fun wmm(longitude: Double, latitude: Double, altitude: Double, decimal... | 0 | null | 3 | 31 | f7f356588494c586faf2a57febd709a2c062afda | 932 | Geomag | Apache License 2.0 |
bindk_test/src/main/java/com/mozhimen/bindk/test/MainActivity.kt | mozhimen | 353,952,154 | false | {"Kotlin": 178443, "AIDL": 964} | package com.mozhimen.bindk.test
import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.mozhimen.bindk.bases.viewbinding.activity.BaseActivityVB
import com.mozhimen.bi... | 1 | Kotlin | 15 | 119 | 3258afee059573e7cac2afa2ffc43ba6d50d73a1 | 646 | SwiftKit | Apache License 2.0 |
app/src/main/java/com/lsp/view/repository/exception/NetworkUnableConnectException.kt | AnranYus | 543,646,685 | false | {"Kotlin": 56673} | package com.lsp.view.repository.exception
import okhttp3.ResponseBody
class NetworkErrorException(override val message: String?) : Exception() {
} | 0 | Kotlin | 0 | 0 | c1942d8417e8d038618e6266a81f0c79647ed6ef | 148 | YandView | MIT License |
Kotlin基础-2/src/main/java/com/yey/kotlin2/39-by lazy惰性加载.kt | rgdzh1 | 266,117,976 | false | null | package com.yey.kotlin2
import org.junit.Test
// 惰性加载条件
// 1 字段val 不可变值
// 2 by lazy 可以放到成员变量中,也可以单独存在
// 3 by lazy的返回值就是最后一行
// 4 惰性加载是线程安全的.
val 惰性加载 :Int by lazy {
println("by lazy 加载了几次")
10
}
class `39-by lazy惰性加载` {
@Test
fun 惰性加载(){
// 惰性加载,当用到的时候才会加载到内存中,只加载一次
println(惰性加载)
... | 0 | Kotlin | 0 | 0 | 450905528aba3d39f2c98af172c0282ec9b268aa | 390 | Java-Kotlin-Learning | Apache License 2.0 |
android-weather-mvp-clean/presentation/src/main/kotlin/io/sametkurumahmut/weather/presentation/main/MainContract.kt | sametkurumahmut | 116,595,636 | false | {"Text": 1, "Markdown": 1, "Gradle": 11, "Java Properties": 2, "Shell": 1, "Ignore List": 9, "Batchfile": 1, "Proguard": 3, "Kotlin": 117, "XML": 14, "Java": 4} | package io.sametkurumahmut.weather.presentation.main
import io.sametkurumahmut.weather.presentation.BasePresenter
import io.sametkurumahmut.weather.presentation.BaseView
import io.sametkurumahmut.weather.presentation.model.CityWeatherView
interface MainContract {
interface View : BaseView {
var isRefres... | 1 | null | 1 | 1 | 329b53e856851d0fd505aa87d4e2aa3d1545ce41 | 826 | weather-mvp-clean | Apache License 2.0 |
application-model/src/test/kotlin/pl/beone/promena/transformer/pageextractor/pdfbox/applicationmodel/PdfBoxPageExtractorDslTest.kt | BeOne-PL | 235,077,961 | false | null | package pl.beone.promena.transformer.pageextractor.pdfbox.applicationmodel
import io.kotlintest.shouldBe
import org.junit.jupiter.api.Test
import pl.beone.promena.transformer.applicationmodel.mediatype.MediaTypeConstants.APPLICATION_PDF
import pl.beone.promena.transformer.pageextractor.pdfbox.applicationmodel.PdfBoxPa... | 1 | Kotlin | 0 | 0 | f2147f28aa889861d0019f5e1d1cdd9090f86daf | 717 | promena-transformer-page-extractor-pdfbox | Apache License 2.0 |
chat-core/src/main/java/com/fzm/chat/core/data/contract/ContractQuery.kt | txchat | 507,831,442 | false | {"Kotlin": 2234450, "Java": 384844} | package com.fzm.chat.core.data.contract
import java.io.Serializable
/**
* @author zhengjy
* @since 2020/02/05
* Description:合约查询接口参数
*/
abstract class ContractQuery : Serializable {
/**
* 执行器
*/
var execer: String = ""
/**
* 方法名
*/
var funcName: String = ""
var payload: An... | 0 | Kotlin | 1 | 1 | 6a3c6edf6ae341199764d4d08dffd8146877678b | 331 | ChatPro-Android | MIT License |
CodingChallenge/src/main/java/com/test/codingchallenge/data/api/StartWarsApiService.kt | Mayo1122 | 460,762,963 | false | null | package com.test.codingchallenge.data.api
import com.squareup.moshi.Moshi
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import com.test.codingchallenge.data.model.BaseResponse
import com.test.codingchallenge.data.model.FilmRes
import com.test.codingchallenge.data.model.People
import com.test.coding... | 0 | Kotlin | 0 | 1 | 247a8f70cc09f95ef5dddfb19b11f30cc64faa53 | 1,771 | CodingChallenge | MIT License |
coroutine/src/main/java/com/sys1yagi/android/kotlin/coroutine/coroutine/CoroutineExtensions.kt | sys1yagi | 93,977,322 | false | {"Kotlin": 15203} | package com.sys1yagi.android.kotlin.coroutine.coroutine
import kotlinx.coroutines.experimental.CommonPool
import kotlinx.coroutines.experimental.CoroutineScope
import kotlinx.coroutines.experimental.CoroutineStart
import kotlinx.coroutines.experimental.android.UI
import kotlinx.coroutines.experimental.launch
import ko... | 0 | Kotlin | 0 | 21 | d6552f46c5ce46825780436b09fa24ec9713593e | 742 | implementation-of-async-request-with-rxjava2-or-coroutine | MIT License |
app/src/main/java/com/niyaj/popos/features/product/presentation/details/ProductDetailsViewModel.kt | skniyajali | 579,613,644 | false | null | package com.niyaj.popos.features.product.presentation.details
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.niyaj.popos.features.cart_order.domain.util.CartOrderType
import com.niyaj.popos.features.common.util.Resource
import com.niya... | 4 | Kotlin | 0 | 1 | 6e00bd5451336314b99f6ae1f1f43eea0f2079ad | 5,295 | POS-Application | MIT License |
src/test/kotlin/com/askrepps/advent/advent2021/day14/Advent2021Day14Test.kt | askrepps | 726,566,200 | false | {"Kotlin": 302802} | /*
* MIT License
*
* Copyright (c) 2021-2023 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 0 | Kotlin | 0 | 0 | 5ce2228b0951db49a5cf2a6d974112f57e70030c | 1,754 | advent-of-code-kotlin | MIT License |
app/src/main/java/ru/vlarkin/translatekeyboardapp/MainActivity.kt | NetherQuartz | 288,578,412 | false | null | package ru.vlarkin.translatekeyboardapp
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.util.Log
import android.wid... | 0 | Kotlin | 0 | 1 | 8214d448edc8ef1976058af3feacff897ce75bcb | 4,378 | TranslateKeyboardApp | MIT License |
vector/src/main/java/im/vector/app/features/home/InitSyncStepFormatter.kt | vector-im | 151,282,063 | false | null | /*
* Copyright (c) 2021 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 55 | null | 418 | 1,995 | abe07c73a4f21e476e4eb1fd40fb84638177cff6 | 2,244 | element-android | Apache License 2.0 |
app/src/main/java/com/zigis/paleontologas/main/views/MainMenuView.kt | edgar-zigis | 240,962,785 | false | null | package com.zigis.paleontologas.main.views
import android.content.Context
import android.view.animation.AlphaAnimation
import android.view.animation.AnimationUtils
import android.widget.FrameLayout
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recy... | 0 | Kotlin | 16 | 126 | 4ee09d3c6f29278aa1762e71f7db6a84d0ca3dea | 3,076 | Paleontologas | Apache License 2.0 |
app/src/main/java/com/example/starbuy/model/db/AppDatabase.kt | Armin00ilghami | 822,999,086 | false | {"Kotlin": 57941} | package com.example.starbuy.model.db
import androidx.room.Database
import androidx.room.RoomDatabase
import com.example.starbuy.model.data.Product
@Database( entities = [Product::class] , version = 1 , exportSchema = false )
abstract class AppDatabase :RoomDatabase(){
abstract fun productDao(): ProductDao
} | 0 | Kotlin | 0 | 0 | dc226586de17e7a2c7ee65214504b021cbdef0f8 | 317 | Star_Buy | MIT License |
app/src/main/java/com/sevenexp/craftit/data/source/database/RemoteKeysDao.kt | 7exp | 809,363,290 | false | {"Kotlin": 163764} | package com.sevenexp.craftit.data.source.database
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
@Dao
interface RemoteKeysDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insertAll(remoteKey: List<RemoteKeys>)
@Que... | 3 | Kotlin | 1 | 0 | a709aa4ab566dc8af3cbaba74e21794a8e63cf05 | 536 | craftit-android | MIT License |
app/src/main/java/nl/rwslinkman/simdeviceble/ui/devices/SupportedDevicesAdapter.kt | rwslinkman | 304,111,864 | false | null | package nl.rwslinkman.simdeviceble.ui.devices
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import nl.rwslinkman.simdeviceble.R
import nl.rwslinkman.simdevicebl... | 0 | Kotlin | 0 | 1 | 37f0433c94d9245d136cef84ec14ba9efc66b34e | 2,753 | SimDeviceBLE | Apache License 2.0 |
idea/tests/testData/structuralsearch/property/functionTypeNamedParameter.kt | JetBrains | 278,369,660 | false | null | class MyClass {
<warning descr="SSR">val funTwo: (s: String) -> Unit = {}</warning>
<warning descr="SSR">val funOne: (String) -> Unit = {}</warning>
} | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 158 | intellij-kotlin | Apache License 2.0 |
eventsourcing/javers-testing/src/main/kotlin/org/javers/core/RandomCommitGenerator.kt | debop | 187,949,869 | false | null | package org.javers.core
import mu.KLogging
import org.javers.core.commit.CommitId
import java.util.UUID
import java.util.function.Supplier
import kotlin.math.abs
/**
* RandomCommitGenerator
*
* @author debop
* @since 19. 7. 15
*/
class RandomCommitGenerator : Supplier<CommitId> {
companion object : KLogging... | 1 | Kotlin | 4 | 24 | b9d1eb5309c6f9eab82dec676bfe6962428f36ce | 886 | kotlin-workshop | MIT License |
src/main/kotlin/com/neighbwang/gradle/transform/retrace/RetraceTransformer.kt | neighbWang | 384,454,786 | false | null | package com.neighbwang.gradle.transform.retrace
import com.didiglobal.booster.kotlinx.asIterable
import com.didiglobal.booster.kotlinx.touch
import com.didiglobal.booster.transform.TransformContext
import com.didiglobal.booster.transform.asm.ClassTransformer
import com.google.auto.service.AutoService
import org.object... | 0 | Kotlin | 0 | 0 | 21aadadb3f5a52baeab6eacbb7394b54e1654439 | 2,104 | booster-transform-api-scanner-plugin | Apache License 2.0 |
app/src/main/java/e/vatsal/kesarwani/gitfit/ui/user/UserActivity.kt | plazzy99 | 321,106,952 | false | null | package code.namanbir.gitfit.app.ui.user
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.ViewModelProviders
import com.bumptech.glide.Glid... | 0 | null | 2 | 19 | 9f0ab86abf639502fafc8d286da5d0e1d0038be3 | 10,180 | GitFit | MIT License |
Kotlin/techhub/app/src/main/java/com/example/techhub/MainActivity.kt | mehmoodharis74 | 655,308,233 | false | null | package com.example.techhub
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import com.example.techhub.navigation.NavigationFunction
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreat... | 0 | Kotlin | 0 | 0 | a552470e9ff631ed5da5e94a5ac6d415083a1109 | 422 | Android-Projects | MIT License |
src/commonMain/kotlin/com/jeffpdavidson/kotwords/formats/Encodings.kt | jpd236 | 143,651,464 | false | {"Kotlin": 4431127, "HTML": 41941, "Rouge": 3731, "Perl": 1705, "Shell": 744, "JavaScript": 618} | package com.jeffpdavidson.kotwords.formats
internal expect object Encodings {
/** Decode the given Cp1252 data as a string. */
fun decodeCp1252(bytes: ByteArray): String
/** Encode the given string as Cp1252 bytes. Unsupported characters are replaced with '?'. */
fun encodeCp1252(string: String): Byte... | 8 | Kotlin | 6 | 25 | 0c94260c3e9472db2e89f6c62ba715e85e1539f4 | 2,504 | kotwords | Apache License 2.0 |
pleo-antaeus-core/src/main/kotlin/io/pleo/antaeus/core/services/InvoiceService.kt | nlarios | 212,889,738 | true | {"Kotlin": 51808, "Shell": 861, "Dockerfile": 249} | /*
Implements endpoints related to invoices.
*/
package io.pleo.antaeus.core.services
import io.pleo.antaeus.core.exceptions.InvoiceNotFoundException
import io.pleo.antaeus.data.InvoiceDal
import io.pleo.antaeus.models.Invoice
import io.pleo.antaeus.models.InvoiceStatus
class InvoiceService(private val dal: Inv... | 0 | Kotlin | 0 | 0 | 0e6a815371bb540f61408e2ac8c2b6af9801cd6f | 992 | antaeus | Creative Commons Zero v1.0 Universal |
save-cloud-common/src/commonMain/kotlin/com/saveourtool/save/entities/TestSuitesSourceSnapshotDto.kt | saveourtool | 300,279,336 | false | {"Kotlin": 3427815, "SCSS": 86430, "JavaScript": 9061, "HTML": 8852, "Shell": 2770, "Smarty": 2608, "Dockerfile": 1366} | package com.saveourtool.common.entities
import kotlinx.datetime.LocalDateTime
/**
* @property organizationName
* @property testSuitesSourceName
* @property version
* @property creationTime
* @property location
*/
data class TestSuitesSourceSnapshotDto(
val organizationName: String,
val testSuitesSourceN... | 202 | Kotlin | 3 | 38 | 7e126d4fb23f8527c47ca9fa27282379759d154e | 424 | save-cloud | MIT License |
core/android/src/main/kotlin/com/reown/android/utils/Extensions.kt | reown-com | 851,466,242 | false | {"Kotlin": 2055654, "Java": 4294, "Shell": 1676} | @file:JvmSynthetic
package com.reown.android.utils
import android.net.Uri
import com.reown.android.Core
import com.reown.android.internal.common.exception.GenericException
import com.reown.android.internal.common.exception.InvalidProjectIdException
import com.reown.android.internal.common.exception.ProjectIdDoesNotEx... | 6 | Kotlin | 1 | 8 | 893084b3df91b47daa77f8f964e37f84a02843b1 | 2,500 | reown-kotlin | Apache License 2.0 |
ktorm-core/src/main/kotlin/me/liuwj/ktorm/schema/SqlTypes.kt | liphis | 263,756,535 | true | {"Kotlin": 563994, "Shell": 2820, "TSQL": 102} | /*
* Copyright 2018-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 0 | Kotlin | 0 | 0 | 6425edb834f6e5736ddfca8320e67d67e41948ed | 13,614 | Ktorm | Apache License 2.0 |
app/src/main/java/com/example/jmb_bms/activities/MainActivity.kt | alarm-clock | 701,783,108 | false | {"Kotlin": 868333} | /**
* @file: MainActivity.kt
* @author: <NAME> <<EMAIL>,<EMAIL>>
* Description: File containing MainActivity class
*/
package com.example.jmb_bms.activities
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import android.os.B... | 0 | Kotlin | 0 | 0 | 1e3227abcd299188042ba847e7e4a2153334d51e | 4,914 | PERLA_Android_client | MIT License |
ugc-detail-component/src/main/java/com/kotlin/android/ugc/detail/component/bean/TopicFamilyViewBean.kt | R-Gang-H | 538,443,254 | false | null | package com.kotlin.android.ugc.detail.component.bean
import com.kotlin.android.app.data.constant.CommConstant
import com.kotlin.android.app.data.entity.community.content.CommunityContent
import com.kotlin.android.app.data.entity.community.content.CommunityContent.Companion.GROUP_JOINING
import com.kotlin.android.app.d... | 0 | Kotlin | 0 | 1 | e63b1f9a28c476c1ce4db8d2570d43a99c0cdb28 | 3,000 | Mtime | Apache License 2.0 |
idea/idea-completion/testData/handlers/smart/DoNotReplaceOnEnter.kt | JakeWharton | 99,388,807 | false | null | fun foo(p: Int): Int = p
fun f(p: Int): Int {
return <caret>foo(1)
}
//ELEMENT: p
| 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 88 | kotlin | Apache License 2.0 |
app/src/main/kotlin/com/godslew/gcube/infra/api/response/BookListResponse.kt | godslew | 196,345,247 | false | {"Kotlin": 13401} | package com.godslew.gcube.infra.api.response
import com.google.gson.annotations.SerializedName
data class BookListResponse (
@SerializedName("items") var items: List<BookResponse>?,
@SerializedName("kind") var kind: String,
@SerializedName("totalItems") var totalItems: Int
)
| 0 | Kotlin | 0 | 0 | 23a29fa36ac5ae8f3c27a48cd5888672334b53fa | 291 | g-cube | Apache License 2.0 |
src/main/kotlin/site/liangbai/lbapi/economy/parser/impl/ContainsItemParser.kt | Liangbai2333 | 846,688,168 | false | {"Kotlin": 107495} | package site.liangbai.lbapi.economy.parser.impl
import site.liangbai.lbapi.economy.parser.Parser
// containsItem:name:lore:amount
class ContainsItemParser : Parser<ItemInfo> {
override fun parse(source: String): ItemInfo {
val list = source.split(":").dropLastWhile { it.isEmpty() }
val name = list... | 0 | Kotlin | 0 | 0 | 531ab68166203693045dc49bf152599877946b4b | 686 | LBAPI | Creative Commons Zero v1.0 Universal |
src/main/kotlin/org/easysql/ast/statement/select/SqlUnionType.kt | wz7982 | 537,805,512 | false | null | package easysql.ast.statement
enum class SqlUnionType(val unionType: String) {
UNION("UNION"),
UNION_ALL("UNION ALL"),
EXCEPT("EXCEPT"),
EXCEPT_ALL("EXCEPT ALL"),
INTERSECT("INTERSECT"),
INTERSECT_ALL("INTERSECT ALL")
} | 0 | Kotlin | 0 | 2 | d0d4f8c55f9653f07520a73a660ae103f3a21545 | 244 | easysql-kt | Apache License 2.0 |
app/src/main/java/wannabit/io/cosmostaion/ui/option/tx/validator/OktValidatorAdapter.kt | cosmostation | 418,314,439 | false | {"Java": 5007328, "Kotlin": 3109600, "Shell": 3941} | package wannabit.io.cosmostaion.ui.option.tx.validator
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import com.google.gson.JsonObject
import wannabit.io.cosmostaion.chain.BaseChain
import wannabit.io.cosmos... | 0 | Java | 43 | 83 | b04f3615c7c7b4407d719e160155a8c03fbae3a9 | 1,748 | cosmostation-android | MIT License |
db/src/main/java/jp/kaleidot725/easycalc/db/dao/TodayStatsDao.kt | kaleidot725 | 727,725,457 | false | {"Kotlin": 288088, "Ruby": 106} | package jp.kaleidot725.easycalc.db.dao
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import jp.kaleidot725.easycalc.db.entity.TodayStatsEntity
@Dao
interface TodayStatsDao {
@Insert(onConflict = OnConflictStrateg... | 0 | Kotlin | 0 | 0 | e6ed3eb42b6fad739e42be77eebd9619874ae548 | 948 | EasyCalc | MIT License |
src/app/src/test/kotlin/org/vaccineimpact/reporting_api/tests/unit_tests/controllers/ArtefactControllerTests.kt | vimc | 96,883,583 | false | {"Git Config": 1, "Ignore List": 2, "Dockerfile": 2, "Text": 1, "Markdown": 2, "Shell": 8, "YAML": 1, "Gradle": 7, "Batchfile": 1, "INI": 2, "Java Properties": 3, "Java": 46, "Kotlin": 121, "JSON": 22, "XML": 4} | package org.vaccineimpact.reporting_api.tests.unit_tests.controllers
import com.google.gson.JsonParser
import com.nhaarman.mockito_kotlin.doReturn
import com.nhaarman.mockito_kotlin.doThrow
import com.nhaarman.mockito_kotlin.mock
import com.nhaarman.mockito_kotlin.verify
import org.assertj.core.api.Assertions.assertTh... | 1 | null | 1 | 1 | 2a1f1ecd1fdcf7fdc4669834d5329837cb1139db | 3,350 | montagu-reporting-api | MIT License |
FilePicker/src/main/java/com/linkdev/filepicker/utils/file/ScalingUtils.kt | linkdevelopment | 309,077,085 | false | null | /*
* Copyright (C) 2020 Link Development
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 0 | Kotlin | 1 | 5 | ed8c62fb2220f3e0eb61272a2d8c86fa1ac16aad | 2,625 | FilePicker_Android | Apache License 2.0 |
app/src/main/java/io/github/ch8n/compose97/ui/components/windowscaffold/WindowScaffold.kt | ch8n | 403,836,527 | false | {"Kotlin": 83109} | package io.github.ch8n.compose97.ui.components.windowscaffold
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.gestures.scrollable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx... | 0 | Kotlin | 1 | 25 | a41af28865814b89cf1519f0a749c1d22f2e4753 | 7,614 | Compose97 | MIT License |
jwt-core/src/commonMain/kotlin/tz/co/asoft/KeyInfo.ktx.kt | aSoft-Ltd | 320,982,927 | false | null | package tz.co.asoft
val KeyInfo.privateKey: SecurityKey
get() = when (this) {
is SecurityKey -> this
is SecurityKeyPair -> privateSecurityKey
else -> error("Unkown key")
} | 0 | Kotlin | 1 | 1 | ae27cc251d42c913a252541ec93253416219974f | 204 | jwt | MIT License |
kairo-rest-feature/src/main/kotlin/kairo/rest/exception/MissingJwtClaim.kt | hudson155 | 836,940,978 | false | {"Kotlin": 486567, "HCL": 1700} | package kairo.rest.exception
import kairo.exception.UnauthorizedException
public class MissingJwtClaim(name: String) : UnauthorizedException(
message = "The $name claim is missing from the JWT",
)
| 0 | Kotlin | 1 | 9 | da21d969005c51aa6d30ac20b1e682452494c50c | 201 | kairo | Apache License 2.0 |
app/src/main/java/org/stepic/droid/storage/dao/CourseDaoImpl.kt | abhirocks1211 | 205,717,847 | false | null | package org.stepic.droid.storage.dao
import android.content.ContentValues
import android.database.Cursor
import org.stepic.droid.storage.operations.DatabaseOperations
import org.stepic.droid.storage.structure.DbStructureCourse
import org.stepic.droid.util.DbParseHelper
import org.stepic.droid.util.getBoolean
import or... | 1 | null | 1 | 1 | 8a2ead7334b6b26a281b3a7842e6502fd96b2cc5 | 9,678 | stepik | Apache License 2.0 |
analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/projectStructure/KotlinAnchorModuleProvider.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-2023 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.platform.projectStructure
import com.intellij.openapi.components.se... | 182 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 2,024 | kotlin | Apache License 2.0 |
analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/projectStructure/KotlinAnchorModuleProvider.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-2023 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.platform.projectStructure
import com.intellij.openapi.components.se... | 182 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 2,024 | kotlin | Apache License 2.0 |
app-extensions/app-utilities/src/main/java/com/kaleyra/app_utilities/notification/NotificationProxy.kt | Bandyer | 153,806,014 | false | null | /*
* Copyright 2023 Kaleyra @ https://www.kaleyra.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 applic... | 1 | null | 4 | 13 | 46d9cd4215095fe9a95bdd315de2ad21c714504b | 2,805 | Bandyer-Android-SDK | Apache License 2.0 |
components/string-utilities/src/main/kotlin/org/cloudfoundry/credhub/utils/ResourceReader.kt | binlab | 261,746,796 | true | {"Java": 1287999, "Kotlin": 1058614, "TSQL": 44569, "Shell": 22882, "Groovy": 3620, "HTML": 1305, "Dockerfile": 989, "Vim Snippet": 593, "PLSQL": 271} | package org.cloudfoundry.credhub.utils
import com.google.common.io.Resources
import kotlin.text.Charsets.UTF_8
import org.springframework.stereotype.Component
@Component
class ResourceReader {
fun readFileToString(fileName: String): String {
val resource = Resources.getResource(fileName)
return Re... | 0 | null | 0 | 0 | 936c69204d369089be36ee30d61479ec0a24dfb0 | 362 | credhub | Apache License 2.0 |
src/test/kotlin/net/corda/option/flow/OptionExerciseFlowTests.kt | R3-Archive | 124,871,072 | true | {"Kotlin": 93860, "HTML": 12265, "JavaScript": 11056, "CSS": 60} | package net.corda.option.flow
import net.corda.core.contracts.Amount
import net.corda.core.node.services.queryBy
import net.corda.core.transactions.SignedTransaction
import net.corda.core.utilities.OpaqueBytes
import net.corda.core.utilities.getOrThrow
import net.corda.finance.flows.CashIssueFlow
import net.corda.opti... | 1 | Kotlin | 6 | 1 | 528aab74e2be32782d355a081e4572e5093bebb7 | 5,250 | cordapp-option | Apache License 2.0 |
mr-clean-processor/src/main/java/com/trello/mrclean/MrCleanProcessor.kt | trello | 168,751,198 | false | {"Kotlin": 28151, "Shell": 968} | /*
* Copyright @ 2018 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 3 | Kotlin | 11 | 228 | 0eb00d8bf51d6d9fceaecc0c9289748b7b3d3d14 | 5,248 | mr-clean | Apache License 2.0 |
src/main/kotlin/com/teamclicker/gameservice/game/templates/WaveTemplate.kt | Humberd | 140,150,771 | false | {"Kotlin": 153182, "Dockerfile": 346} | package com.teamclicker.gameservice.game.templates
data class WaveTemplate(
val templateId: Long,
var creatures: List<CreatureTemplate>
)
| 0 | Kotlin | 0 | 0 | dfe3c64168e1ff62edd1cc93d86d1b85dabc5eeb | 147 | TeamClicker-GameService | Apache License 2.0 |
app/src/main/java/org/stepic/droid/core/presenters/DiscussionPresenter.kt | abhirocks1211 | 205,717,847 | false | {"Gradle": 12, "Java Properties": 2, "Text": 19, "Shell": 2, "Ignore List": 5, "Batchfile": 1, "Git Attributes": 1, "Markdown": 2, "XML": 519, "YAML": 1, "Kotlin": 1311, "Proguard": 3, "Prolog": 1, "Java": 190, "CSS": 2, "SVG": 65, "JSON": 4, "JavaScript": 3} | package org.stepic.droid.core.presenters
import io.reactivex.Scheduler
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.rxkotlin.plusAssign
import io.reactivex.rxkotlin.subscribeBy
import org.stepic.droid.core.presenters.contracts.DiscussionView
import org.stepic.droid.di.comment.CommentsScope
i... | 1 | null | 1 | 1 | 8a2ead7334b6b26a281b3a7842e6502fd96b2cc5 | 1,596 | stepik | Apache License 2.0 |
components/remote-controls/core-model/src/commonMain/kotlin/com/flipperdevices/ifrmvp/model/buttondata/PowerButtonData.kt | flipperdevices | 288,258,832 | false | null | package com.flipperdevices.ifrmvp.model.buttondata
import com.flipperdevices.ifrmvp.model.IfrKeyIdentifier
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class PowerButtonData(
@SerialName("key_id")
override val keyIdentifier: IfrKeyIdentifier = IfrKeyIden... | 21 | null | 174 | 1,528 | 8f293e596741a6c97409acbc8de10c7ae6e8d8b0 | 437 | Flipper-Android-App | MIT License |
entity-browser-app/src/main/kotlin/jetbrains/xodus/browser/web/Transformations.kt | JetBrains | 45,294,329 | false | null | package jetbrains.xodus.browser.web
import jetbrains.exodus.entitystore.Entity
import jetbrains.exodus.entitystore.PersistentEntityStoreImpl
import jetbrains.xodus.browser.web.search.UIPropertyTypes
fun Entity.asView(): EntityView {
return asLightView().apply {
blobs = blobNames.map { blobView(it) }
... | 16 | Kotlin | 25 | 60 | 6b4e7427c8a0b004a226c9e67ca5b8f492bc7afe | 3,400 | xodus-entity-browser | Apache License 2.0 |
app/src/main/java/com/demo/architecturecomponentstalk/api/json/MeetupEventJson.kt | milosevic81 | 149,103,329 | false | null | package com.demo.architecturecomponentstalk.api.json
import com.demo.architecturecomponentstalk.db.entity.Venue
data class MeetupEventJson(
val id: String,
val name: String,
val description: String,
val venue: Venue
)
| 3 | Kotlin | 0 | 0 | e0af84c3e84324f45baa7fbaab317f269d9496d5 | 252 | archcomponents | MIT License |
src/main/kotlin/com/github/stefanosansone/intellijtargetprocessintegration/icons/TargetProcessIcons.kt | stefanosansone | 692,485,851 | false | {"Kotlin": 24551} | package com.github.stefanosansone.intellijtargetprocessintegration.icons
import com.intellij.openapi.util.IconLoader
object TargetProcessIcons {
@JvmField
val TargetProcessToolWindow = IconLoader.getIcon("/icons/toolWindowTargetProcess.svg", javaClass)
} | 0 | Kotlin | 0 | 0 | d18ed51f18681a6d8688ce5b58006f68ced60a9a | 264 | intellij-targetprocess-integration | Apache License 2.0 |
domain/teamplay-business-domain/src/main/kotlin/com/teamplay/domain/business/club/function/FindNoticesByClubId.kt | YAPP-16th | 235,351,938 | false | {"Gradle Kotlin DSL": 10, "Gradle": 1, "Shell": 2, "Ignore List": 1, "Batchfile": 1, "Text": 1, "Markdown": 5, "XML": 8, "Kotlin": 185, "Java": 4, "Java Properties": 1, "YAML": 6} | package com.teamplay.domain.business.club.function
import com.teamplay.core.function.Function
import com.teamplay.domain.database.club.entity.Notice
import com.teamplay.domain.database.jpa.club.repository.NoticeRepository
class FindNoticesByClubId(
private val noticeRepository: NoticeRepository
): Function<Long, ... | 2 | Kotlin | 0 | 1 | a3209b28ea6ca96cb9a81a0888793f9b0f4d02d2 | 453 | Team_Android_2_Backend | MIT License |
domain/teamplay-business-domain/src/main/kotlin/com/teamplay/domain/business/club/function/FindNoticesByClubId.kt | YAPP-16th | 235,351,938 | false | {"Gradle Kotlin DSL": 10, "Gradle": 1, "Shell": 2, "Ignore List": 1, "Batchfile": 1, "Text": 1, "Markdown": 5, "XML": 8, "Kotlin": 185, "Java": 4, "Java Properties": 1, "YAML": 6} | package com.teamplay.domain.business.club.function
import com.teamplay.core.function.Function
import com.teamplay.domain.database.club.entity.Notice
import com.teamplay.domain.database.jpa.club.repository.NoticeRepository
class FindNoticesByClubId(
private val noticeRepository: NoticeRepository
): Function<Long, ... | 2 | Kotlin | 0 | 1 | a3209b28ea6ca96cb9a81a0888793f9b0f4d02d2 | 453 | Team_Android_2_Backend | MIT License |
src/main/kotlin/com/redissi/trakt/TraktAuthenticator.kt | IliasRedissi | 235,675,675 | true | {"Kotlin": 307912} | package com.redissi.trakt
import kotlinx.coroutines.*
import okhttp3.Authenticator
import okhttp3.Request
import okhttp3.Response
import okhttp3.Route
class TraktAuthenticator(val trakt: Trakt) : Authenticator {
override fun authenticate(route: Route?, response: Response): Request? {
return handleAuthent... | 4 | Kotlin | 0 | 0 | c980c5c428edd8ba2d4b147be5e247e6e1356574 | 2,342 | trakt-kotlin | The Unlicense |
module-water/src/main/java/com/hardlove/cl/water/mvp/presenter/MinePresenter.kt | hardlove | 154,798,245 | true | {"Gradle": 20, "Markdown": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 13, "Batchfile": 1, "YAML": 1, "Proguard": 13, "Java": 198, "XML": 417, "JSON": 1, "Kotlin": 60} | package com.hardlove.cl.water.mvp.presenter
import android.app.Application
import com.hardlove.cl.water.mvp.contract.MineContract
import com.jess.arms.di.scope.FragmentScope
import com.jess.arms.http.imageloader.ImageLoader
import com.jess.arms.integration.AppManager
import com.jess.arms.mvp.BasePresenter
import me.je... | 0 | Java | 0 | 0 | 732e8edf7e0046ae076cd5bd6a65630ddff8dc34 | 873 | ArmsComponent | Apache License 2.0 |
agent-connection/src/main/kotlin/com/luxoft/blockchainlab/corda/hyperledger/indy/AgentConnection.kt | hyperledger-labs | 159,397,274 | false | null | package com.luxoft.blockchainlab.corda.hyperledger.indy
import com.luxoft.blockchainlab.hyperledger.indy.models.*
import rx.Single
import rx.Subscription
enum class AgentConnectionStatus { AGENT_CONNECTED, AGENT_DISCONNECTED }
/**
* Represents a connected Indy Party
*/
interface IndyPartyConnection {
/**
... | 5 | Kotlin | 22 | 32 | a27b8c613cd31356a353352ea5764b7aafa7c9b3 | 5,582 | cordentity | Apache License 2.0 |
src/commonMain/kotlin/ch/tutteli/kbox/mapRemaining.kt | robstoll | 79,735,987 | false | {"Kotlin": 276135, "Java": 85} | package ch.tutteli.kbox
/**
* Maps remaining values of this [Iterator] with the help of the given [transform] functions, returns an empty list if
* [Iterator.hasNext] returns `false` for the first call.
*
* @return A [List] of the mapped remaining values.
*/
fun <T, R> Iterator<T>.mapRemaining(transform: (T) -> R... | 1 | Kotlin | 4 | 8 | 757ebf5ba49cb57396c5409227511147cd06c5da | 1,048 | kbox | Apache License 2.0 |
dots/src/main/java/com/bcgdv/asia/lib/dots/DotsProgressIndicator.kt | alphamu | 101,716,035 | false | null | package com.bcgdv.asia.lib.dots
import android.animation.Animator
import android.animation.AnimatorSet
import android.animation.ValueAnimator
import android.annotation.TargetApi
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.gra... | 1 | Kotlin | 2 | 25 | 75955cf9e12a67aa10e9f06bda866ac4941c54a5 | 11,860 | android-widget-dotsprogressindicator | Apache License 2.0 |
enro-core/src/main/java/dev/enro/core/compose/LocalNavigationHandle.kt | isaac-udy | 256,179,010 | false | null | package dev.enro.core.compose
import androidx.compose.runtime.Composable
import androidx.compose.runtime.compositionLocalOf
import androidx.lifecycle.viewmodel.compose.LocalViewModelStoreOwner
import dev.enro.core.NavigationHandle
import dev.enro.core.NavigationKey
import dev.enro.core.TypedNavigationHandle
import dev... | 13 | Kotlin | 9 | 186 | da2e56a58d210333eef2ea06833ffcd81cb79941 | 485 | Enro | Apache License 2.0 |
src/main/java/net/bjoernpetersen/spotify/suggester/PlaylistChoice.kt | fossabot | 202,222,482 | true | {"Kotlin": 139538, "HTML": 266} | package net.bjoernpetersen.spotify.suggester
import net.bjoernpetersen.musicbot.api.config.ConfigSerializer
import net.bjoernpetersen.musicbot.api.config.DeserializationException
internal data class PlaylistChoice(val id: String, val displayName: String) {
companion object : ConfigSerializer<PlaylistChoice> {
... | 17 | Kotlin | 2 | 0 | f9ff6853f0f68d5f138803febb6e62374cf64855 | 920 | MusicBot-plugins | MIT License |
domain/src/main/java/com/sergiom/domain/usecase/GetDiscountPromotionsUseCaseImpl.kt | SergioMardez | 533,396,871 | false | {"Kotlin": 56418} | package com.sergiom.domain.usecase
import com.sergiom.data.model.ShopDiscount
import com.sergiom.data.model.ShopDiscountModel
import com.sergiom.data.utils.*
interface GetDiscountPromotionsUseCase {
suspend operator fun invoke(): Either<ShopDiscountModel, String>
}
class GetDiscountPromotionsUseCaseImpl: GetDisc... | 0 | Kotlin | 0 | 0 | c891db0dd294f24917db1586024752aa24d9a94f | 797 | cabifyChallenge | Apache License 2.0 |
src/main/kotlin/com/msg/gcms/domain/club/presentation/data/request/UpdateClubRequest.kt | GSM-MSG | 592,816,374 | false | null | package com.msg.gcms.domain.club.presentation.data.request
import java.util.*
import javax.validation.constraints.NotBlank
import javax.validation.constraints.NotNull
import javax.validation.constraints.Pattern
import javax.validation.constraints.Size
data class UpdateClubRequest (
@field:NotBlank
@field:Size... | 10 | Kotlin | 0 | 8 | d55e8ed3f343acca0c3937cf07b6fcfb8dd30598 | 794 | GCMS-BackEnd | MIT License |
characters/src/main/java/com/trivago/challenge/characters/networking/CharacterDetailsRepo.kt | zubyf09 | 218,471,403 | false | null | package com.trivago.challenge.characters.networking
import io.reactivex.Single
class CharacterDetailsRepo(private val service: CharacterService) :
CharacterDetailsContract.Repo {
override fun getCharacterDetails(url: String): Single<com.trivago.challenge.characters.model.CharacterDetailsModel> = service.ge... | 0 | Kotlin | 0 | 0 | c5827ffc695c8368086b5f4adcce7ffce3e70863 | 805 | Star_Wars_Character_List | MIT License |
app/src/main/java/com/example/appName/presentation/sum/calculation/CalculationViewState.kt | kubak89 | 141,586,462 | false | null | package com.example.appName.presentation.sum.calculation
import java.io.Serializable
data class CalculationViewState(
val firstNumber: Long = 0,
val secondNumber: Long = 0,
val sum: Long = 0
) : Serializable {
constructor(
previous: CalculationViewState,
firstNumbe... | 0 | Kotlin | 1 | 0 | e61f418e10f9a3f4e3a01e6904af13834765e3bb | 609 | Mvi-Android-Example | MIT License |
app/src/main/java/com/jesperqvarfordt/listn/explore/ExplorePresenter.kt | JesperQv | 122,033,035 | false | null | package com.jesperqvarfordt.listn.explore
import com.jesperqvarfordt.listn.device.imagecache.ImageCache
import com.jesperqvarfordt.listn.domain.model.Chart
import com.jesperqvarfordt.listn.domain.model.Track
import com.jesperqvarfordt.listn.domain.interactor.GetChartsInteractor
import com.jesperqvarfordt.listn.domain.... | 1 | null | 9 | 97 | 68b97f2d5437d1bab06df39b9eaf754d7941c520 | 2,807 | Listn | MIT License |
gradle/plugins/src/main/kotlin/net/twisterrob/gradle/plugins/settings/AcceptEnterpriseTOSPlugin.kt | TWiStErRob | 116,494,236 | false | null | package net.twisterrob.gradle.plugins.settings
import org.gradle.api.Plugin
import org.gradle.api.initialization.Settings
import org.gradle.kotlin.dsl.gradleEnterprise
class AcceptEnterpriseTOSPlugin : Plugin<Settings> {
override fun apply(settings: Settings) {
settings.plugins.withId("com.gradle.enterprise") {
... | 76 | Kotlin | 4 | 12 | 9f04340ec78e58e590360dba9d7341a3f8eb05e9 | 481 | net.twisterrob.gradle | The Unlicense |
resume-ab-ktor-app/src/test/kotlin/ru/otus/otuskotln/resume/ktor/router/RouterTest.kt | otuskotlin | 377,710,400 | false | null | package ru.otus.otuskotln.resume.ktor.router
import io.ktor.application.*
import io.ktor.http.*
import io.ktor.server.testing.*
import ru.otus.otuskotlin.resume.ktor.configs.AppKtorConfig
import ru.otus.otuskotlin.resume.ktor.configs.KtorAuthConfig
import ru.otus.otuskotlin.resume.ktor.module
import ru.otus.otuskotlin... | 0 | Kotlin | 0 | 0 | 920d87731a128acc1c113acd393dcc09ed01411a | 1,563 | ok-202105-resume-ab | MIT License |
core/common/src/main/kotlin/trebuchet/util/Time.kt | khadas | 451,798,402 | false | {"Kotlin": 259588, "Shell": 1647} | /*
* Copyright 2019 Google Inc.
*
* 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... | 0 | Kotlin | 0 | 0 | b735f448e61c99f4c06101902ff76eee4e5496f1 | 703 | android_tools_trebuchet | Apache License 2.0 |
base/lint/libs/lint-tests/src/test/java/com/android/tools/lint/checks/TranslucentViewDetectorTest.kt | qiangxu1996 | 301,210,525 | false | null | /*
* Copyright (C) 2018 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1 | null | 1 | 1 | 3411c5436d0d34e6e2b84cbf0e9395ac8c55c9d4 | 7,957 | vmtrace | Apache License 2.0 |
game-api/src/main/kotlin/org/alter/api/ext/QueueTaskExt.kt | AlterRSPS | 421,831,790 | false | null | package gg.rsmod.plugins.api.ext
import gg.rsmod.game.fs.def.ItemDef
import gg.rsmod.game.fs.def.NpcDef
import gg.rsmod.game.message.impl.ResumePauseButtonMessage
import gg.rsmod.game.model.Appearance
import gg.rsmod.game.model.attr.INTERACTING_NPC_ATTR
import gg.rsmod.game.model.entity.Npc
import gg.rsmod.game.model.... | 8 | null | 6 | 23 | 9dbd62d67de547cfedc43b902797306c5db8fb55 | 14,720 | Alter | Apache License 2.0 |
main/src/main/java/com/google/android/apps/muzei/legacy/LegacySourceInfoFragment.kt | ianhanniballake | 24,799,536 | false | null | /*
* Copyright 2019 Google Inc.
*
* 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 ... | 40 | null | 959 | 7 | 14a0c0c41e2628375bc5a5e5a135ff933d8b7c27 | 5,987 | muzei | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.