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/pefdneves/mydots/utils/PermissionsHelper.kt | pefdneves | 255,625,707 | false | null | package com.pefdneves.mydots.utils
import android.Manifest
import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
fun hasBluetoothPermissions(context: Context): Boolean {
val permissions =
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
listOf(Ma... | 0 | Kotlin | 1 | 7 | 1c85f1fada8b110fbfa0d7806ad65ef51bbe2203 | 667 | MyDots | The Unlicense |
template-kit/shared/src/commonMain/kotlin/com/rudolfhladik/kmm/template/domain/ObserveCoinsListUseCase.kt | RudolfHladik | 385,579,416 | false | null | package com.rudolfhladik.kmm.template.domain
import app.futured.arkitekt.kmusecases.freeze
import app.futured.arkitekt.kmusecases.usecase.FlowUseCase
import com.rudolfhladik.kmm.template.Coin
import com.rudolfhladik.kmm.template.data.api.RestApiManager
import com.rudolfhladik.kmm.template.data.database.DatabaseManager... | 1 | null | 2 | 8 | b7dbefaeb4540415a81c80832bc2514a9563815a | 1,230 | Template | MIT License |
fountain-core/src/main/java/com/xmartlabs/fountain/Listing.kt | xmartlabs | 135,512,692 | false | null | package com.xmartlabs.fountain
import android.arch.lifecycle.LiveData
import android.arch.paging.PagedList
/**
* Data class that is necessary for a UI to show a listing and interact w/ the rest of the system
* This class was taken from a [google example app](https://github.com/googlesamples/android-architecture-com... | 0 | null | 8 | 174 | 3dfc4240eb0d2b12223b85f7f6c504e5a04558cc | 1,115 | fountain | MIT License |
shared/src/commonMain/kotlin/business/domain/main/Notification.kt | razaghimahdi | 714,632,664 | false | {"Kotlin": 516337, "Swift": 606, "Shell": 228} | package business.domain.main
data class Notification(
val title: String,
val desc: String,
val createAt: String,
val isRead: Boolean,
)
| 0 | Kotlin | 9 | 97 | 6047cf13ab86a9dd74c8ea4bcba7a9771ec8ad0e | 153 | Shopping-By-KMP | MIT License |
app/src/main/java/com/revature/findpetsitter/CreateAccount.kt | 18xxperson | 480,939,867 | false | null | package com.revature.findpetsitter
import android.widget.Toast
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.*
import andro... | 0 | Kotlin | 0 | 0 | 9b55df09156dcc52d680bd35747e0980fef39015 | 8,107 | FindPetSitter | Apache License 2.0 |
wear/src/main/java/com/rayliu/gymnote/wearos/MainNavGraph.kt | YuanLiou | 648,464,710 | false | null | package com.rayliu.gymnote.wearos
import android.annotation.SuppressLint
import android.widget.Toast
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
impo... | 0 | Kotlin | 0 | 0 | 4c7dcbf2a226eee33c5b2915e29fd0fd3427b3a1 | 6,679 | GymNote | Apache License 2.0 |
app/src/main/java/app/learn/koin/domain/router/FragmentNavigation.kt | vendywira | 171,144,658 | false | null | package app.learn.koin.domain.router
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import app.learn.koin.external.constant.Constant
fun FragmentManager.openFragment (
container: Int,
fragment: Fragment,
bundle: Bundle? ) {
bundle?.let {
... | 0 | Kotlin | 0 | 0 | eb62f0a7ce70b32fa41aa08a9cdadf2388f849ea | 471 | simple-koin-android | The Unlicense |
persistence/src/main/kotlin/com/example/leslie/persistence/handler/CreationHandler.kt | leslieharland | 135,650,274 | false | {"Gradle": 6, "Java Properties": 3, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 98, "XML": 55, "Java": 1} | /**
* Copyright (C) 2017 <NAME> & <NAME>
*
* https://github.com/CesarValiente
* https://github.com/coshaw
*
* 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.... | 0 | Kotlin | 0 | 0 | 8688f1031b5f66b88ce2974ca99e95ec8e25d9a4 | 3,071 | Carousell-Kotlin | Apache License 2.0 |
app/src/main/java/com/nukemars/shelterfinder/ui/adapters/NotifyAdapter.kt | hung-p | 352,990,069 | false | null | package com.nukemars.shelterfinder.ui.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.DefaultItemAnimator
import androidx.recyclerview.widget.LinearLayoutManager
import ... | 0 | Kotlin | 0 | 0 | 2da195d25385d9d481b8ca1a95c1129611b0681c | 3,148 | shelter_finder | Apache License 2.0 |
library/src/main/java/com/github/ykrank/androidtools/ui/adapter/simple/SimpleAdapterDelegate.kt | ykrank | 52,680,091 | false | null | package com.github.ykrank.androidtools.ui.adapter.simple
import android.content.Context
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.annotation.LayoutRes
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.Vi... | 1 | null | 37 | 317 | 0c0b0fdb992db9b046265ee6e9b50ac676a1c104 | 2,195 | S1-Next | Apache License 2.0 |
src/appleTest/kotlin/maryk/createFile.kt | marykdb | 192,168,972 | false | null | package maryk
actual fun createFile(path: String, fileName: String): String {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
| 0 | Kotlin | 2 | 7 | 7e2c471854195b7635db7b75ca23d26305700ba7 | 185 | rocksdb-multiplatform | Apache License 2.0 |
testapp/src/main/java/fe/android/preference/helper/testapp/MainActivity.kt | 1fexd | 646,245,939 | false | {"Kotlin": 27415} | package fe.android.preference.helper.testapp
import android.content.Context
import android.os.Bundle
import androidx.activity.ComponentActivity
import fe.android.preference.helper.OptionTypeMapper
import fe.android.preference.helper.Preference
import fe.android.preference.helper.PreferenceDefinition
import fe.android.... | 0 | Kotlin | 0 | 2 | af259909e4c8ed64bdc849e2d67696d7e8c8f966 | 3,188 | android-pref-helper | Apache License 2.0 |
app/src/main/java/com/daigorian/epcltvapp/epgstationv2caller/ReserveSaveOption.kt | daig0rian | 374,248,298 | false | null | package com.daigorian.epcltvapp.epgstationv2caller
//予約保存オプション
data class ReserveSaveOption(
val parentDirectoryName :String?,// 親保存ディレクトリ
val directory :String?,// 保存ディレクトリ
val recordedFormat :String?,// ファイル名フォーマット
)
| 0 | Kotlin | 10 | 37 | a2995bf7d2b03435c4da6cc9397612a87c1266cf | 240 | epcltvapp | MIT License |
ext/src/main/java/com/lxj/ext/StringExt.kt | junixapp | 160,308,163 | false | null | package com.lxj.androidktx.core
import org.json.JSONArray
import org.json.JSONException
import org.json.JSONObject
/**
* 解析url的查询参数
*/
fun String.parseQueryParams(): Map<String, String>{
var index = lastIndexOf("?") + 1
var queryParam = hashMapOf<String, String>()
if(index>0){
var query = subst... | 2 | null | 69 | 770 | b1f3f0cee86efd43fe7c8c763533762db9420d15 | 975 | AndroidKTX | Apache License 2.0 |
app/src/main/java/com/example/edu/myapplication/data/model/apixu/Location.kt | edualonso | 114,924,612 | false | null | package com.example.edu.myapplication.data.model.apixu
/**
* Created by edu on 19/12/2017.
*/
data class Location(
val id: Long = 0,
val name: String = "",
val region: String = "",
val country: String = "",
val lat: Float = 0f,
val lon: Float = 0f,
val url: Str... | 0 | Kotlin | 0 | 0 | aa0676b728f2cb81836aef0fa4d538eed047c634 | 330 | architectureComponentsSample | MIT License |
amqp-lib/src/main/kotlin/com/vegesoft/efficientspending/amqp/listener/QueueMessage.kt | lukaszrys | 239,320,885 | false | null | package com.vegesoft.efficientspending.amqp.listener
interface QueueMessage {
} | 0 | Kotlin | 0 | 0 | c9d903e77f38d9ffbbefd92c39a8bf03cf6a2a43 | 80 | efficient-spending | MIT License |
app/src/main/java/com/lora/skylink/presentation/chat/ChatAdapter.kt | joshflugel | 748,166,569 | false | {"Kotlin": 119005} | package com.lora.skylink.ui.chat
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.lora.skylink.databinding.ItemHolderIncomingMessageBinding
import com.lora.skylink.databinding.ItemHolderOutgoingMessageBinding
class ChatAdapter(private var mes... | 0 | Kotlin | 0 | 2 | b2207c7e96eaed187abf7db344f690060dad6c35 | 2,533 | SkyLink-Android-LoRaWAN | Apache License 2.0 |
gen_src/fedpro/call/SubscribeInteractionClassPassivelyResponse.kt | Pitch-Technologies | 690,640,598 | false | {"Kotlin": 2806487} | // Code generated by Wire protocol buffer compiler, do not edit.
// Source: fedpro.SubscribeInteractionClassPassivelyResponse in RtiAmbassador.proto
package fedpro.call
import com.squareup.wire.FieldEncoding
import com.squareup.wire.Message
import com.squareup.wire.ProtoAdapter
import com.squareup.wire.ProtoReader
imp... | 0 | Kotlin | 0 | 1 | ef5fb6caba03cf2dfb0c6f969f0d319ae91901d2 | 3,256 | KotlinChat | Apache License 2.0 |
rxfastrecyclerview/src/test/kotlin/tech/schoolhelper/rxfastrecyclerview/TestEntity.kt | schoolhelper | 177,230,468 | false | null | package tech.schoolhelper.rxfastrecyclerview
data class TestEntity(
val id: Int,
val content: String
) | 6 | Kotlin | 0 | 1 | 855b41a3ecf75602a244875d201cc383ab87d294 | 107 | RxFastRecyclerView | MIT License |
compiler/testData/codegen/box/involvesIrInterpreter/constEvaluationFromJavaWorld/kt57802_2.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... | // TARGET_BACKEND: JVM
// FILE: one/two/Bar.java
package one.two;
public class Bar {
public static final int BAR = Foo.FOO + 1;
}
// FILE: one/two/Boo.java
package one.two;
public class Boo {
public static final int BOO = Foo.BAZ + 1;
}
// FILE: Main.kt
package one.two
class Foo {
companion object {
... | 182 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 529 | kotlin | Apache License 2.0 |
app/src/main/java/com/hazz/aipick/mvp/presenter/FeedBackresenter.kt | backin | 286,701,113 | true | {"Java": 560376, "Kotlin": 446365} | package com.hazz.aipick.mvp.presenter
import android.util.Pair
import com.hazz.aipick.mvp.contract.WaletContract
import com.hazz.aipick.net.*
class FeedBackresenter(view: WaletContract.feedAndHelp) : BasePresenter<WaletContract.feedAndHelp>(view) {
fun feedBack(content: String, contact: String, image1: String, ... | 0 | null | 0 | 0 | 14dc6cd6d28f186d68f423e3985f2258f8ecc90c | 1,167 | Aipick | Apache License 2.0 |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/ToDate.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: ToDate
*
* Full name: System`ToDate
*
* Usage: ToDate[time] converts an absolute time in secon... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 989 | mathemagika | Apache License 2.0 |
library/src/main/java/com/r4sh33d/animatedcounttextview/AnimatedCountTextView.kt | rasheedsulayman | 223,169,575 | false | null | /**
* Copyright (c) Rasheed Sulayman.
*
* 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 agre... | 2 | Kotlin | 9 | 27 | 134c07ce20ff2eb3422e5fa2f7422bcf9def1a6b | 4,386 | AnimatedCountTextView | Apache License 2.0 |
app/src/main/java/be/digitalia/fosdem/db/AppDatabase.kt | oraluben | 219,161,297 | true | {"Kotlin": 293346} | package be.digitalia.fosdem.db
import android.content.Context
import android.content.SharedPreferences
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
i... | 0 | Kotlin | 0 | 0 | 64188a1bd67ea8748d48db8f31b44865347397dd | 4,956 | fosdem-companion-android | Apache License 2.0 |
spring-bukkit-core/src/main/kotlin/kr/summitsystems/springbukkit/command/convert/CommandArgumentConverterAdapter.kt | summit-systems | 728,399,361 | false | {"Kotlin": 86506} | package kr.summitsystems.springbukkit.command.convert
/**
* An adapter class for pre-defined converters, such as the built-in converters in the Spring Framework.
*
* @param T target type of converter
*/
interface CommandArgumentConverterAdapter<T> {
fun provideCompletes(targetType: Class<T>): List<String>
} | 0 | Kotlin | 0 | 8 | ae8bd31903e3d6e5d6e7eef2a227488988bd35f5 | 317 | spring-bukkit | Apache License 2.0 |
game/pathfinder/src/test/kotlin/org/rsmod/game/pathfinder/LineValidatorTest.kt | rsmod | 293,875,986 | false | null | package org.rsmod.game.pathfinder
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import org.junit.jupiter.api.extension.ExtensionContext
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.Arguments
import org.j... | 0 | Kotlin | 49 | 55 | 5293efb07c833715f9bd9df4cad6ff9aa68143da | 2,530 | rsmod | ISC License |
server/jvm/alpha-script-config/src/main/resources/scripts/alpha-streamer.kts | genesiscommunitysuccess | 577,459,331 | false | {"Kotlin": 56347, "JavaScript": 44600, "TypeScript": 19851, "Dockerfile": 3058, "Shell": 1686, "EJS": 693, "Handlebars": 199, "CSS": 178} | streams {
stream("TRADE_AUDIT_STREAM", TRADE_AUDIT.BY_TIMESTAMP)
} | 0 | Kotlin | 0 | 0 | 1ee798aaea9b334e1b1f2dc727b86f342042a7ea | 70 | servertraining-alpha | Apache License 2.0 |
BaseStudy/app/src/main/java/com/gredicer/basestudy/event/Event.kt | Gredicer | 447,598,319 | false | null | package com.gredicer.basestudy.event
class Event<T>(var code: Int, var data: T)
data class Test(var a: String)
| 0 | Kotlin | 0 | 0 | be3c11d6d2c957cf8a3a0be2f45577a0a890477e | 114 | AndroidStudy | Apache License 2.0 |
ViewPager22/app/src/main/java/com/app/mytaxi/utils/log/Logger.kt | ajaypro | 225,294,116 | false | {"Java": 469931, "Kotlin": 294438} | package com.app.mytaxi.utils.log
import com.app.mytaxi.BuildConfig
import timber.log.Timber
/**
* Created by <NAME> on 19-11-2019, 13:46
*/
object Logger {
init {
if (BuildConfig.DEBUG) Timber.plant(Timber.DebugTree())
}
fun d(tag: String, s: String, vararg params: Any) =
Timber.tag(... | 1 | null | 1 | 1 | 768b70f957cfd6198ad3594c7c50f741542ca674 | 687 | ViewPager2 | Apache License 2.0 |
app/src/main/java/com/example/andriginting/feeds/repo/local/news/NewsDAO.kt | andriiginting | 144,363,470 | false | null | package com.example.andriginting.feeds.repo.local.news
import android.arch.persistence.room.*
import com.example.andriginting.feeds.repo.remote.news.NewsResponse
import io.reactivex.Flowable
@Dao
interface NewsDAO {
@Query("SELECT * FROM news")
fun getAllNewsArticle(): Flowable<List<NewsResponse>>
@Inse... | 0 | Kotlin | 1 | 4 | ac73b82d1915fe17d48863cd7b23a6e2e9836001 | 462 | Feeds-App | MIT License |
core/src/main/kotlin/com/simiacryptus/skyenet/core/util/GetModuleRootForFile.kt | SimiaCryptus | 619,329,127 | false | {"Kotlin": 898206, "JavaScript": 60409, "SCSS": 31621, "HTML": 7408, "Scala": 5538, "Java": 2053} | package com.simiacryptus.skyenet.core.util
import java.io.File
fun getModuleRootForFile(file: File): File {
if (file.isFile) {
return getModuleRootForFile(file.parentFile)
}
var current = file
do {
if (current.resolve(".git").exists()) {
return current
}
cur... | 0 | Kotlin | 0 | 1 | cb480aea02ea5297cadd19a5524a2d92c0ba5fd4 | 391 | SkyeNet | Apache License 2.0 |
data/media_progress/src/androidTest/java/com/deathhit/data/media_progress/config/TestDataSourceModule.kt | Deathhit | 494,422,640 | false | {"Kotlin": 205216} | package com.deathhit.data.media_progress.config
import com.deathhit.core.app_database.AppDatabase
import com.deathhit.data.media_progress.data_source.DataSourceModule
import com.deathhit.data.media_progress.data_source.MediaProgressLocalDataSource
import com.deathhit.data.media_progress.data_source.MediaProgressLocalD... | 0 | Kotlin | 0 | 2 | 00b6b7acd4f756f324e08f1889f0d0883d6faa44 | 1,302 | YouTooBeAlike | Apache License 2.0 |
app/src/main/java/com/example/applicationkotlinsample/base/context/BaseActivityExtesions.kt | cc17236 | 297,074,446 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 412, "XML": 48, "Java": 91} | package cn.aihuaiedu.school.base.context
import android.view.View
import androidx.annotation.IdRes
import org.jetbrains.anko.dip
import org.jetbrains.anko.px2dip
/**
* @作者: #Administrator #
*@日期: #2018/5/7 #
*@时间: #2018年05月07日 12:49 #
*@File:Kotlin File
*/
internal fun BaseActivity<*, *>.doOnBackPressedEvent(@Id... | 0 | Kotlin | 0 | 0 | 219c6d63fee41a9f28e9f935a3d222159d12d5e3 | 2,028 | AnroidKotlinSample | Apache License 2.0 |
bukkit/rpk-chat-bukkit/src/main/kotlin/com/rpkit/chat/bukkit/chatchannel/format/click/OpenURLClickAction.kt | RP-Kit | 54,840,905 | false | null | /*
* 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... | 51 | Kotlin | 11 | 22 | aee4060598dc25cd8e4f3976ed5e70eb1bf874a2 | 1,541 | RPKit | Apache License 2.0 |
compiler/test/data/cli/request/fs.fs.promises.module_node.kt | Kotlin | 159,510,660 | false | null | @file:JsQualifier("fs.promises")
@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS")
package fs.promises
import kotlin.js.*
import kotlin.js.Json
import org.khronos.webgl.*
import org.w3c.dom.*
import org.w3c.dom.events.*
import org.w3c.do... | 244 | null | 42 | 535 | d50b9be913ce8a2332b8e97fd518f1ec1ad7f69e | 34,047 | dukat | Apache License 2.0 |
core/jvm/main/kotlin/com/meowbase/toolkit/Date.kt | siylt007 | 336,180,880 | true | {"Kotlin": 1405824, "Java": 474434, "Dart": 14190, "HTML": 70} | package com.meowbase.toolkit
import java.text.SimpleDateFormat
import java.util.*
/**
* 返回今年的字符串
* 例如: 2020/9/4 返回 "2020"
*/
inline val thisYear: String get() = Calendar.getInstance().get(Calendar.YEAR).toString()
/**
* 返回本月月数的字符串
* 例如: 2020/9/4 返回 "09"
*/
inline val thisMonth get() = formatTime(pattern = "MM"... | 0 | null | 0 | 0 | df82f0588beb13fbd22308b3d015852c25781612 | 2,260 | toolkit | Apache License 2.0 |
core/jvm/main/kotlin/com/meowbase/toolkit/Date.kt | siylt007 | 336,180,880 | true | {"Kotlin": 1405824, "Java": 474434, "Dart": 14190, "HTML": 70} | package com.meowbase.toolkit
import java.text.SimpleDateFormat
import java.util.*
/**
* 返回今年的字符串
* 例如: 2020/9/4 返回 "2020"
*/
inline val thisYear: String get() = Calendar.getInstance().get(Calendar.YEAR).toString()
/**
* 返回本月月数的字符串
* 例如: 2020/9/4 返回 "09"
*/
inline val thisMonth get() = formatTime(pattern = "MM"... | 0 | null | 0 | 0 | df82f0588beb13fbd22308b3d015852c25781612 | 2,260 | toolkit | Apache License 2.0 |
ui/src/main/kotlin/com/aptopayments/sdk/features/p2p/P2pFlow.kt | AptoPayments | 197,800,853 | false | null | package com.aptopayments.sdk.features.p2p
import com.aptopayments.mobile.data.transfermoney.CardHolderData
import com.aptopayments.mobile.data.transfermoney.P2pTransferResponse
import com.aptopayments.mobile.exception.Failure
import com.aptopayments.mobile.functional.Either
import com.aptopayments.sdk.core.platform.fl... | 0 | Kotlin | 0 | 0 | 24680d971d0ae6b2213caf5b1371a29145cadf31 | 2,503 | apto-ui-sdk-android | MIT License |
shared/src/commonTest/kotlin/dev/johnoreilly/starwars/shared/MockResponses.kt | martinbonnin | 443,201,545 | true | {"Kotlin": 41224, "Swift": 2941} | package dev.johnoreilly.starwars.shared
val getAllPeopleMockResponse = """
{
"data": {
"allPeople": {
"people": [
{
"__typename": "PeopleConnection",
"id": "cGVvcGxlOjE=",
"name": "<NAME>",
"homeworld": {
... | 0 | null | 0 | 0 | dac84d12a33dc3a19d0051b1f520dc501b73a2bf | 1,284 | StarWars | Apache License 2.0 |
application/domain/src/main/java/br/com/nautilustar/domain/executor/PostExecutionThread.kt | nautilustar | 161,667,677 | false | {"Text": 1, "Gradle": 8, "Java Properties": 2, "Shell": 1, "Ignore List": 5, "Batchfile": 1, "Proguard": 4, "Java": 6, "XML": 26, "Kotlin": 51} | package br.com.nautilustar.domain.executor
import io.reactivex.Scheduler
import io.reactivex.schedulers.Schedulers
import javax.inject.Inject
class PostExecutionThread @Inject constructor() : IPostExecutionThread {
override fun getScheduler(): Scheduler {
return Schedulers.io()
}
} | 0 | Kotlin | 0 | 0 | 9c8a716b5f12be9c442ed166ab16504aaafd94f0 | 301 | quiz-surival-android | Apache License 2.0 |
felles/src/main/kotlin/no/nav/helsearbeidsgiver/felles/rapidsrivers/redis/RedisStore.kt | navikt | 495,713,363 | false | null | package no.nav.helsearbeidsgiver.felles.rapidsrivers.redis
import com.fasterxml.jackson.databind.JsonNode
import io.lettuce.core.RedisClient
import io.lettuce.core.SetArgs
import no.nav.helsearbeidsgiver.felles.json.customObjectMapper
import no.nav.helsearbeidsgiver.utils.log.sikkerLogger
class RedisStore(redisUrl: S... | 13 | Kotlin | 0 | 2 | 4a82432f055621186d15dd8e64d859edf3f0c3ae | 2,302 | helsearbeidsgiver-inntektsmelding | MIT License |
modules/nbt/src/main/kotlin/io/heartpattern/spikot/nbt/NBTConstructors.kt | Spikot | 262,074,229 | false | null | /*
* Copyright (c) 2020 HeartPattern and Spikot authors
*
* 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, mo... | 0 | Kotlin | 0 | 14 | ea00c92973dea15175c42336ec059389655499d7 | 2,566 | Spikot | MIT License |
modules/nbt/src/main/kotlin/io/heartpattern/spikot/nbt/NBTConstructors.kt | Spikot | 262,074,229 | false | null | /*
* Copyright (c) 2020 HeartPattern and Spikot authors
*
* 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, mo... | 0 | Kotlin | 0 | 14 | ea00c92973dea15175c42336ec059389655499d7 | 2,566 | Spikot | MIT License |
app/shared/auth/public/src/commonMain/kotlin/build/wallet/auth/AuthTokenScope.kt | proto-at-block | 761,306,853 | false | {"C": 10424094, "Kotlin": 7156393, "Rust": 2046237, "Swift": 700307, "Python": 331492, "HCL": 271992, "Shell": 111209, "TypeScript": 102700, "C++": 64770, "Meson": 64234, "JavaScript": 36227, "Just": 28071, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.auth
import build.wallet.bitkey.app.AppGlobalAuthPublicKey
import build.wallet.bitkey.app.AppRecoveryAuthPublicKey
/**
* Scope of Auth Token stored in the AuthTokenDao based on the public key
* used to authenticate with the server.
*/
enum class AuthTokenScope {
/**
* Auth tokens generate... | 0 | C | 9 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 633 | bitkey | MIT License |
android/khajit/app/src/main/java/com/project/khajit_app/data/models/CommodityResponse.kt | bounswe | 170,124,936 | false | {"Kotlin": 416637, "Python": 210731, "SCSS": 184849, "CSS": 97799, "Less": 78481, "JavaScript": 56513, "HTML": 35601, "Dockerfile": 1032, "Shell": 76} | package com.project.khajit_app.data.models
import com.google.gson.annotations.SerializedName
data class CommodityResponse (
@SerializedName("XAG")
val value_xag: String,
@SerializedName("XAU")
val value_xau: String,
@SerializedName("XRH")
val value_xrh: String
) | 31 | Kotlin | 2 | 9 | 40370c1e8ff7f49dead59034e8baab8a99e3adbf | 288 | bounswe2019group1 | MIT License |
mui-icons-kotlin/src/jsMain/kotlin/mui/icons/material/EditNotificationsTwoTone.kt | karakum-team | 387,062,541 | false | {"Kotlin": 3060426, "TypeScript": 2249, "HTML": 724, "CSS": 86} | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/EditNotificationsTwoTone")
package mui.icons.material
@JsName("default")
external val EditNotificationsTwoTone: SvgIconComponent
| 0 | Kotlin | 5 | 35 | 83952a79ffff62f5409461a2928102d0ff95d86b | 212 | mui-kotlin | Apache License 2.0 |
src/test/kotlin/br/com/usedrip/techcase/george/transferagent/integration/AccountRestAPITests.kt | gnbezerra | 681,349,233 | false | null | package br.com.usedrip.techcase.george.transferagent.integration
import br.com.usedrip.techcase.george.transferagent.AccountDTO
import br.com.usedrip.techcase.george.transferagent.AccountRequestDTO
import br.com.usedrip.techcase.george.transferagent.BankDTO
import br.com.usedrip.techcase.george.transferagent.CustomerD... | 0 | Kotlin | 0 | 0 | 48b937f58edd230812ebf90a649556fbb3a74778 | 13,566 | drip-tech-case | Apache License 2.0 |
app/src/main/java/dxmnd/com/mymusicplayer/current/adapter/models/CurrentRecyclerViewModel.kt | KimHunJin | 101,188,391 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 2, "XML": 35, "Kotlin": 32} | package dxmnd.com.mymusicplayer.current.adapter.models
import dxmnd.com.mymusicplayer.current.model.CurrentMusicItem
/**
* Created by HunJin on 2017-09-27.
*/
interface CurrentRecyclerViewModel {
fun addItem(currentMusicItem: CurrentMusicItem)
fun getItem(position: Int): CurrentMusicItem?
} | 0 | Kotlin | 0 | 0 | e9fc8dc43545f3f2f0fc09afb392216aca097fa1 | 304 | MyMusicPlayer | Apache License 2.0 |
src/main/kotlin/com/rbkmoney/bouncer/starter/api/BouncerService.kt | rbkmoney | 389,862,038 | false | null | package com.rbkmoney.bouncer.starter.api
import com.rbkmoney.bouncer.decisions.ArbiterSrv
import com.rbkmoney.bouncer.starter.config.properties.BouncerProperties
import org.apache.thrift.TException
open class BouncerService(
private val bouncerContextFactory: BouncerContextFactory,
private val bouncerClient: ... | 0 | Kotlin | 1 | 0 | 9c5dadea277d6c4091e5545696dcaab45f7c740a | 834 | bouncer-spring-boot-starter | Apache License 2.0 |
app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/flows/flowbuilders/flow_buillders_vs_list_builders.kt | regxl2 | 775,843,577 | false | {"Kotlin": 283103} | package com.lukaslechner.coroutineusecasesonandroid.flows.flowbuilders
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.*
fun main(){
val flow = flow{
delay(100)
println("emitting first value")
emit(1)
delay(100)
println("emitting second value")
emit(... | 0 | Kotlin | 0 | 0 | 3c88fd943d408ffae7ae429b9f05607d21da2f38 | 668 | coroutine-and-flows | Apache License 2.0 |
sample-compose/src/main/java/com/airbnb/lottie/sample/compose/showcase/ShowcasePage.kt | liu835704070 | 343,302,278 | true | {"Java Properties": 2, "Shell": 8, "Markdown": 9, "Gradle": 7, "Batchfile": 1, "Text": 1, "JavaScript": 1, "Ignore List": 5, "XML": 189, "JSON": 354, "Kotlin": 108, "INI": 2, "YAML": 2, "SVG": 1, "Java": 204, "Proguard": 1} | package com.airbnb.lottie.sample.compose.showcase
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material.Divider
import androidx.compose.runtime... | 0 | null | 0 | 1 | 81ad033a2d8b4cefd64adb15da7b326cb90679df | 2,210 | lottie-android | Apache License 2.0 |
api/src/main/kotlin/com/jawnnypoo/openmeh/shared/api/MehService.kt | Jawnnypoo | 34,304,113 | false | null | package com.jawnnypoo.openmeh.shared.api
import com.jawnnypoo.openmeh.shared.response.MehResponse
import retrofit2.http.GET
interface MehService {
@GET("1/current.json")
suspend fun meh(): MehResponse
} | 0 | Kotlin | 5 | 47 | 848031298a293503b6cb62d1235a13590b2918b8 | 212 | open-meh | Apache License 2.0 |
app/src/p_demo/java/com/dgk/klibrary/demo/view/DialogActivity.kt | KevinDGK | 130,669,390 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "XML": 32, "Proguard": 3, "Java": 11, "Kotlin": 41} | package com.dgk.klibrary.demo.view
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.dgk.R
import com.dgk.common.util.ToastManager
import com.dgk.klibrary.main.app.KApplication
import kotlinx.android.synthetic.main.demo_activity_dialog.*
class DialogActivity : AppCompatActivity() {
... | 1 | null | 1 | 1 | 28101a0ae5a8449ac166ba48e3221d0819ac4bef | 895 | KLibrary | Apache License 2.0 |
app/src/main/java/com/wavesplatform/wallet/v2/data/service/UpdateApiDataService.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.data.service
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.Service
import android.arch.lifecycle.Lifecycle
import android.arch.lifecyc... | 2 | Kotlin | 52 | 55 | 5f4106576dc4fe377a355d045f638e7469cd6abe | 4,010 | WavesWallet-android | MIT License |
src/test/java/uk/gov/justice/hmpps/casenotes/controllers/CreateCaseNoteIntTest.kt | ministryofjustice | 195,988,411 | false | {"Kotlin": 307204, "Java": 66924, "Mustache": 1803, "Dockerfile": 1357, "Shell": 580} | package uk.gov.justice.hmpps.casenotes.controllers
import com.fasterxml.jackson.module.kotlin.readValue
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.BeforeAll
import org.junit.jupiter.api.Test
import org.springframework.http.HttpStatus
import uk.gov.justice.hmpps.casenotes.config.Secu... | 4 | Kotlin | 1 | 1 | bf549bb12a9bfa23915ad7b9d786490b948e4c78 | 7,137 | offender-case-notes | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/pecs/jpc/move/EventRepository.kt | uk-gov-mirror | 356,783,334 | true | {"Kotlin": 428549, "HTML": 83335, "CSS": 12598, "Shell": 6092, "Mustache": 4485, "Dockerfile": 945} | package uk.gov.justice.digital.hmpps.pecs.jpc.move
import org.springframework.data.jpa.repository.JpaRepository
import uk.gov.justice.digital.hmpps.pecs.jpc.importer.report.Event
interface EventRepository : JpaRepository<Event, String> {
fun findAllByEventableId(eventableId: String): List<Event>
fun findAllByEv... | 0 | Kotlin | 0 | 0 | 448660ac4b18cc4c8cf3c137a902ed7a99a9fff4 | 443 | ministryofjustice.calculate-journey-variable-payments | MIT License |
app/src/main/java/com/example/android/theshoestore/MainActivity.kt | NandaPL | 710,585,556 | false | {"Kotlin": 10980} | package com.example.android.theshoestore
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.android.theshoestore.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
private lateinit var dataBinding: ActivityMainBinding
override fun onCreate(save... | 0 | Kotlin | 0 | 0 | 6c12840da5f92608c12d82ab497b4febfaa31d11 | 504 | TheShoeStore | Apache License 2.0 |
src/main/kotlin/no/nav/aap/api/error/Substatus.kt | navikt | 402,698,973 | false | null | package no.nav.aap.api.error
enum class Substatus {
PASSWORD_PROTECTED,
VIRUS,
SIZE,
UNSUPPORTED,
}
| 2 | Kotlin | 1 | 3 | d4456fdd7934f79503123f0d9ce9318c081b45ba | 118 | aap-soknad-api | MIT License |
library/src/main/java/com/wultra/android/sslpinning/UpdateType.kt | wultra | 146,754,177 | false | {"Gradle Kotlin DSL": 4, "Java Properties": 4, "Shell": 6, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "INI": 2, "YAML": 1, "Kotlin": 50, "Gradle": 1, "Proguard": 1, "Java": 8, "XML": 1} | /*
* Copyright 2018 Wultra s.r.o.
*
* 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... | 0 | Kotlin | 8 | 57 | 16a67a0a13ec5f20ad2b0d98946897e0c91b1cae | 2,038 | ssl-pinning-android | Apache License 2.0 |
domain/src/commonMain/kotlin/kosh/domain/usecases/network/NetworkService.kt | niallkh | 855,100,709 | false | {"Kotlin": 1849939, "Swift": 768} | package kosh.domain.usecases.network
import kosh.domain.entities.NetworkEntity
import kosh.domain.failure.NetworkFailure
import kosh.domain.models.ChainId
import kosh.domain.serializers.Either
import kosh.domain.serializers.Uri
interface NetworkService {
suspend fun getRpc(
id: NetworkEntity.Id,
... | 0 | Kotlin | 0 | 3 | f48555a563dfee5b07184771a6c94c065765d570 | 1,121 | kosh | MIT License |
capy/src/main/java/com/jocmp/capy/common/TimeHelpers.kt | jocmp | 610,083,236 | false | {"Kotlin": 298674, "CSS": 1037, "HTML": 935, "Ruby": 532, "Makefile": 98} | package com.jocmp.capy.common
import java.time.Instant
import java.time.ZoneOffset
import java.time.ZonedDateTime
import java.time.format.DateTimeParseException
val String.toDateTime: ZonedDateTime?
get() {
return try {
ZonedDateTime.parse(this).withZoneSameInstant(ZoneOffset.UTC)
} ca... | 9 | Kotlin | 0 | 1 | 3682de457f5bc0cc662f60daae51ef47e9b25681 | 707 | capyreader | MIT License |
app/src/androidTest/java/dev/sertan/android/paper/data/authentication/FakeAuthService.kt | scnplt | 385,908,880 | false | null | package dev.sertan.android.paper.data.authentication
import dev.sertan.android.paper.data.model.User
import dev.sertan.android.paper.util.Response
internal class FakeAuthService : AuthService {
private var user: User? = null
private var currentUser: User? = null
override suspend fun currentUser(): Respon... | 0 | Kotlin | 0 | 0 | c6a973d14a4d473ecae5e22f6076a4e0be19013a | 1,759 | paper | MIT License |
kool-physics/src/jvmMain/kotlin/de/fabmax/kool/physics/RigidDynamic.kt | fabmax | 81,503,047 | false | null | package de.fabmax.kool.physics
import de.fabmax.kool.math.Mat4f
import org.lwjgl.system.MemoryStack
import physx.physics.PxRigidActor
import physx.physics.PxRigidDynamic
actual open class RigidDynamic internal constructor(mass: Float, pose: Mat4f, pxActor: PxRigidActor?) : RigidBody() {
actual constructor(mass: ... | 7 | Kotlin | 7 | 78 | 2aeb035ab84e4c660bc11f5167a7f485b4a86da8 | 955 | kool | Apache License 2.0 |
src/main/kotlin/no/nav/dagpenger/soknad/orkestrator/metrikker/Metrikker.kt | navikt | 758,018,874 | false | {"Kotlin": 256313, "HTML": 1388, "Dockerfile": 109} | package no.nav.dagpenger.soknad.orkestrator.metrikker
import io.prometheus.client.Counter
private const val NAMESPACE = "dp_soknad_orkestrator"
object SøknadMetrikker {
val mottatt: Counter =
Counter.build()
.namespace(NAMESPACE)
.name("antall_soknader_mottatt")
.help(... | 0 | Kotlin | 0 | 0 | c52e640c0ce69ac18f1abbe248f29deaf047eceb | 1,604 | dp-soknad-orkestrator | MIT License |
app/src/main/java/com/cornellappdev/uplift/ui/components/gymdetail/GymSwimmingSection.kt | cuappdev | 596,747,757 | false | null | package com.cornellappdev.uplift.ui.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.material.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.font.... | 2 | Kotlin | 0 | 1 | d70c3920282a18fdb0b8100fd0b6447f49899951 | 4,068 | uplift-android | MIT License |
ontrack-extension-jenkins/src/main/java/net/nemerosa/ontrack/extension/jenkins/JenkinsJobProperty.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.extension.jenkins
import net.nemerosa.ontrack.model.annotations.APIDescription
import net.nemerosa.ontrack.model.docs.DocumentationIgnore
import net.nemerosa.ontrack.model.docs.DocumentationUseSuper
/**
* Property to associate a Jenkins job link to a project entity like a branch.
*
* @... | 57 | null | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 1,398 | ontrack | MIT License |
core/database/src/main/java/com/ariefzuhri/gizee/core/database/data/source/local/persistence/Converters.kt | ariefzuhri | 388,739,293 | false | null | package com.ariefzuhri.gizee.core.database.data.source.local.room
import androidx.room.TypeConverter
import com.ariefzuhri.gizee.core.database.data.source.local.entity.NutrientEntity
import com.squareup.moshi.Moshi
import com.squareup.moshi.Types
class Converters {
private val moshi = Moshi.Builder().build()
... | 5 | null | 4 | 4 | 228e830857d6d2622282ef2146891dd7d76b6b03 | 801 | Gizee | MIT License |
platform/script-debugger/protocol/protocol-reader/src/ReaderGenerator.kt | androidports | 115,100,208 | true | {"Java": 168074327, "Python": 25851822, "Kotlin": 6237300, "Groovy": 3448233, "HTML": 1962706, "C": 214338, "C++": 180382, "CSS": 172743, "JavaScript": 148969, "Lex": 148787, "XSLT": 113040, "Jupyter Notebook": 93222, "Shell": 60321, "NSIS": 57796, "Batchfile": 51257, "Roff": 37534, "Objective-C": 27309, "TeX": 25473, ... | package org.jetbrains.protocolReader
import gnu.trove.THashMap
import java.nio.file.Paths
import java.util.*
class GenerateConfiguration<ROOT>(val packageName: String, val className: String, readerRootClass: Class<ROOT>, protocolInterfaces: List<Class<*>>, basePackagesMap: Map<Class<*>, String>? = null) {
val baseP... | 6 | Java | 1 | 4 | 6e4f7135c5843ed93c15a9782f29e4400df8b068 | 4,232 | intellij-community | Apache License 2.0 |
library/src/main/kotlin/com/simplemobiletools/commons/activities/CustomizationActivity.kt | nopeppermint | 77,958,998 | true | {"Kotlin": 81960} | package com.simplemobiletools.commons.activities
import android.graphics.drawable.GradientDrawable
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.view.View
import com.simplemobiletools.commons.R
import com.simplemobiletools.commons.dialogs.ConfirmationAdvancedDialog
impor... | 0 | Kotlin | 0 | 0 | b4651fda358cbdf54dc6e73c97deb29d62b9b200 | 5,707 | Simple-Commons | Apache License 2.0 |
app/src/main/java/com/huawei/hackzurich/RestaurantAdapter.kt | Crowdfree | 296,825,778 | false | null | package com.huawei.hackzurich
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.huawei.hms.site.api.model.Site
import kotlin.random.Random
class RestaurantAdapter(val restList: List<Site... | 0 | Kotlin | 1 | 1 | 8f7328f186367f3000bb1248a88aa773ca14da2c | 1,900 | crowdfree-app | MIT License |
cards/src/main/java/com/libraryofalexandria/cards/domain/FetchCards.kt | caueferreira | 190,688,518 | false | null | package com.libraryofalexandria.cards.domain
import com.libraryofalexandria.cards.data.network.CardsRemoteDataSource
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
class FetchCards(
private val remote: CardsRemoteDataSource
) {
suspend fun fetch(expansion: String, page: Int): Flow<Ca... | 8 | Kotlin | 0 | 4 | c83ee4b71576527b006b95c2a5d6b2f1c794c946 | 519 | library-of-alexandria | MIT License |
library/lorcana-data/src/commonTest/kotlin/eu/codlab/lorcana/TestLoadingSet.kt | great-illuminary | 710,799,476 | false | {"Kotlin": 34207, "TypeScript": 4085, "JavaScript": 2901, "Shell": 402} | package eu.codlab.lorcana
import eu.codlab.lorcana.buildconfig.BuildKonfig
import eu.codlab.lorcana.raw.SetDescription
import eu.codlab.platform.Platform
import eu.codlab.platform.currentPlatform
import kotlinx.coroutines.test.runTest
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertNot... | 0 | Kotlin | 0 | 5 | a93d0d5c8dc5d0a7102928b4bd5fac24690429e4 | 2,268 | lorcana-data | MIT License |
src/test/kotlin/net/tripletwenty/cyoa/RepositoryTest.kt | bearbob | 499,482,380 | false | {"Kotlin": 54424} | package net.tripletwenty.cyoa
import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest
import org.springframework.test.context.TestPropertySource
import org.springframework.test.context.jdbc.Sql
@DataJpaTest
@AutoConfigure... | 14 | Kotlin | 0 | 0 | f0e1a31757e1e69cd012ea9ab83d6b29c116b94f | 659 | cyoa_engine | Creative Commons Attribution 4.0 International |
android/app/src/main/java/com/algorand/android/modules/onramp/ui/BuySellActionsBottomSheet.kt | perawallet | 364,359,642 | false | {"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596} | /*
* Copyright 2022 Pera Wallet, LDA
* 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 writing,... | 22 | Swift | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 1,924 | pera-wallet | Apache License 2.0 |
src/main/kotlin/eZmaxApi/models/EzsignbulksendMinusGetObjectMinusV2MinusResponseMinusMPayload.kt | eZmaxinc | 271,950,932 | false | null | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package eZmaxApi.models
import eZmaxApi.models.... | 0 | Kotlin | 0 | 0 | 775bfa1e6452d8ba1c6c4d7e1781b0977f5301b0 | 714 | eZmax-SDK-kotlin | MIT License |
oneadapter/src/main/java/com/idanatz/oneadapter/external/modules/EmptinessModule.kt | ironSource | 158,571,396 | false | null | package com.idanatz.oneadapter.external.modules
import android.animation.Animator
import com.idanatz.oneadapter.external.*
import com.idanatz.oneadapter.external.interfaces.*
open class EmptinessModule {
internal var config: EmptinessModuleConfig by SingleAssignmentDelegate(DefaultEmptinessModuleConfig())
internal... | 7 | null | 45 | 471 | 72fa2f2059a45d2fc7c4eb8bc66e1d8681296811 | 1,351 | OneAdapter | MIT License |
presentation_albums/src/main/java/com/github/hadilq/presentationalbums/AlbumViewHolder.kt | hadilq | 197,567,703 | false | {"Gradle Kotlin DSL": 5, "Java Properties": 2, "Shell": 1, "Ignore List": 9, "Batchfile": 1, "Markdown": 1, "Kotlin": 86, "Proguard": 6, "XML": 39, "Gradle": 5, "Java": 5, "JSON": 3, "YAML": 1} | /***
* Copyright 2019 <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 writ... | 1 | null | 1 | 1 | 8495206f252372e3706f14be6818f2f2791b1fb7 | 2,320 | CleanArchitectureFP | Apache License 2.0 |
app/src/main/java/com/example/climby/domain/school/Get.kt | JavierGF1991 | 431,588,749 | false | null | package com.example.climby.domain.school
import com.example.climby.data.model.school.SchoolModel
import com.example.climby.data.model.trip.TripModel
import com.example.climby.data.repository.SchoolRepository
import com.example.climby.data.repository.TripRepository
import javax.inject.Inject
class Get @Inject construc... | 0 | Kotlin | 0 | 1 | 53c65467ed8e8eb3d798ab657d8881ac2ab3a130 | 449 | climby_app | RSA Message-Digest License |
app/src/main/java/com/ealva/toque/service/vlc/HardwareAcceleration.kt | pandasys | 311,981,753 | false | null | /*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 0 | 4d7d30a87ad3229af86de072e703f3db652aaaa4 | 1,103 | toque | Apache License 2.0 |
app/src/main/java/com/example/coderadar/MainActivity.kt | thekuldeep07 | 430,311,480 | false | null | package com.example.coderadar
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.CodeRadar.R
import com.example.CodeRadar.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
private lateinit var binding: ActivityMainBinding
override fun onCreate(... | 0 | Kotlin | 3 | 0 | 028f4624a72c78b84ae1e5df2aa989e1f893ea7c | 568 | CodeRadar | MIT License |
src/main/kotlin/com/thoo/api/ValorantApi.kt | Valorant-API | 318,881,328 | false | null | package com.thoo.api
import com.google.gson.*
import com.thoo.api.models.*
import com.thoo.api.services.ValorantApiService
import com.thoo.api.utils.send
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import java.lang.reflect.Modifier
import java.lang.reflect... | 3 | Kotlin | 0 | 9 | 0981190bc6700cf0d9a8c15db22032f22b9be501 | 2,286 | java-library | MIT License |
analysis/analysis-api/testData/symbols/multiModuleSymbolByPsi/actualAccessors.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... | // LANGUAGE: +MultiPlatformProjects
// FILE: main.kt
var variable: Int
actual get() = 0
actual set(value) {
}
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 117 | kotlin | Apache License 2.0 |
platform/service-container/testSrc/com/intellij/serviceContainer/ConstructorInjectionTest.kt | aahmadts | 208,223,215 | true | null | // Copyright 2000-2019 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.serviceContainer
import com.intellij.configurationStore.StateStorageManager
import com.intellij.ide.plugins.IdeaPluginDescriptorImpl
import com.intellij.open... | 1 | null | 1 | 1 | d9a8be62acef732528ae7fb9dba69aa88e1e874a | 2,911 | intellij-community | Apache License 2.0 |
pkl-core/src/test/kotlin/org/pkl/core/parser/MultiLineStringLiteralTest.kt | omarofo | 756,491,214 | true | {"Java Properties": 2, "AsciiDoc": 50, "Gradle Kotlin DSL": 31, "Text": 12, "Shell": 2, "EditorConfig": 1, "Git Attributes": 1, "Batchfile": 1, "Ignore List": 1, "Kotlin": 217, "Pickle": 902, "XML": 31, "Java": 598, "JSON": 29, "OpenStep Property List": 5, "INI": 10, "YAML": 24, "Protocol Buffer Text Format": 1, "Jsonn... | package org.pkl.core.parser
import org.pkl.core.Evaluator
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.pkl.core.ModuleSource
// tests whitespace handling in multi-line string literals that cannot be reliably tested via snippets
// (e.g. due to editors not displaying a... | 0 | null | 0 | 1 | 6f915e5b9053e6a6de499a14a07f76afe979e56d | 974 | pkl | Apache License 2.0 |
Android/src/androidTest/java/com/tazkiyatech/quran/sdk/database/QuranQuotesTests.kt | adil-hussain-84 | 179,661,057 | false | null | package com.tazkiyatech.quran.sdk.database
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.tazkiyatech.quran.sdk.matchers.StringHasLengthGreaterThan.hasLengthGreaterThan
import com.tazkiyatech.quran.sdk.matchers.StringHasL... | 1 | null | 1 | 1 | 23c47e16ef17a253ddd1b0134d1079ddb5ced26a | 1,451 | quran-sdk | Apache License 2.0 |
compiler/testData/asJava/lightClasses/NonDataClassWithComponentFunctions.kt | JakeWharton | 99,388,807 | false | null | // p.A
package p
class A(val y: Int) {
override fun equals(other: Any?): Boolean {
return super.equals(other)
}
override fun hashCode(): Int {
return super.hashCode()
}
override fun toString(): String {
return super.toString()
}
fun component1() = y
}
// FIR_COMP... | 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 326 | kotlin | Apache License 2.0 |
idea/testData/resolve/builtins/emptyRange.kt | staltz | 38,581,975 | true | {"Java": 15450397, "Kotlin": 8578737, "JavaScript": 176060, "HTML": 22810, "Lex": 17327, "Protocol Buffer": 13024, "ANTLR": 9689, "CSS": 9431, "Shell": 3931, "IDL": 3257, "Groovy": 3010, "Batchfile": 2831} | val empty = IntRange.<ref>EMPTY
//kotlin/Ranges.kt:EMPTY | 0 | Java | 0 | 1 | ff00bde607d605c4eba2d98fbc9e99af932accb6 | 56 | kotlin | Apache License 2.0 |
server/server-app/src/test/kotlin/projektor/incomingresults/SaveGroupedResultsCompressedApplicationTest.kt | praveenkumaresan | 253,124,831 | false | null | package projektor.incomingresults
import io.ktor.http.HttpHeaders
import io.ktor.http.HttpMethod
import io.ktor.server.testing.handleRequest
import io.ktor.server.testing.setBody
import io.ktor.server.testing.withTestApplication
import io.ktor.util.KtorExperimentalAPI
import kotlin.test.assertNotNull
import org.awaiti... | 1 | null | 1 | 1 | 6e988e9a78c76e0016264862b7f732f8b86b30b6 | 1,856 | projektor | MIT License |
sample/src/main/java/com/stepstone/stepper/sample/PassDataBetweenStepsActivity.kt | stepstone-tech | 62,123,604 | false | null | /*
Copyright 2017 StepStone Services
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 writing, softw... | 48 | null | 263 | 1,770 | c847fbfa6c1691560d7a2286dc0432f4ae38741e | 2,319 | android-material-stepper | Apache License 2.0 |
example/src/main/java/com/yheriatovych/reductor/example/model/Note.kt | colorhaake | 89,848,394 | false | null | package com.yheriatovych.reductor.example.model
data class Note(val id: Int, val note: String, val checked: Boolean) {
override fun toString(): String {
return String.format("[%s] %s", if (checked) "+" else " ", note)
}
}
| 0 | null | 3 | 2 | 6601623749969dd6028f3537554f658341fb330a | 239 | reductor | Apache License 2.0 |
pulsar-ql-server/src/main/kotlin/fun/platonic/pulsar/ql/h2/Values.kt | giddily | 165,961,617 | false | null | package `fun`.platonic.pulsar.ql.h2
import `fun`.platonic.pulsar.ql.types.ValueDom
import `fun`.platonic.pulsar.dom.nodes.FeaturedDocument
import org.jsoup.nodes.Element
fun domValue(document: FeaturedDocument): ValueDom {
return ValueDom.get(document.unbox())
}
fun domValue(ele: Element): ValueDom {
return ... | 1 | null | 1 | 1 | 534034d7eca2bab71783cdb2e69beda1bc01f2ef | 453 | pulsar | Apache License 2.0 |
app/src/main/kotlin/com/github/muneebwanee/dash/data/model/KeyData.kt | muneebwanee | 321,685,263 | false | null | package com.github.dakoyaki.dash.data.model
/**
* Created by dakoyaki on 15/12/20.
*/
class KeyData {
var keyID: String? = null
var keyText: String? = null
constructor()
constructor(keyId: String, keyText: String) {
this.keyID = keyId
this.keyText = keyText
}
} | 4 | null | 37 | 81 | 1fa68abddacedc7866cc09c6908f885fc9bf0281 | 304 | Dash | Apache License 2.0 |
clion/src/main/kotlin/org/jetbrains/fortran/clion/newProject/FortranProjectGenerator.kt | satamas | 60,362,183 | false | null | package org.jetbrains.fortran.ide.newProject
import com.intellij.openapi.vfs.VirtualFile
import com.jetbrains.cidr.cpp.cmake.projectWizard.CLionProjectWizardUtils.getCMakeFileHeader
import com.jetbrains.cidr.cpp.cmake.projectWizard.generators.CMakeProjectGenerator
import org.jetbrains.fortran.ide.newProject.settings.C... | 47 | null | 19 | 80 | 3fda7e71956e6c2029472d2fa0a7ec491da35b16 | 1,317 | fortran-plugin | Apache License 2.0 |
codegen-core/src/main/kotlin/io/vrap/rmf/codegen/core/ResourceCollection.kt | commercetools | 136,635,215 | false | {"Kotlin": 1403640, "RAML": 92731, "Groovy": 37966, "Java": 12163, "PHP": 5795, "JavaScript": 5731, "Shell": 3692, "TypeScript": 2505, "Dockerfile": 303} | package io.vrap.rmf.codegen.common.generator.core
import io.vrap.rmf.codegen.types.VrapType
import io.vrap.rmf.raml.model.resources.Resource
class ResourceCollection(val className: VrapType, val resources: List<Resource>) {
val sample: Resource
get() = resources[0]
init {
if (resources.isEmp... | 20 | Kotlin | 6 | 14 | 1d29b69ae49e17c28a26be72fd28979ca74922ec | 570 | rmf-codegen | Apache License 2.0 |
viewmodel-test/src/androidTest/java/com/linecorp/lich/viewmodel/test/ViewModelY.kt | line | 200,039,378 | false | null | /*
* Copyright 2019 LINE Corporation
*
* 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 agre... | 3 | null | 20 | 165 | 2fc3ac01ed57e31208816239f6747d6cdb67de6d | 1,344 | lich | Apache License 2.0 |
lib_common/src/main/java/top/sogrey/common/utils/NetworkUtils.kt | Sogrey | 213,806,335 | false | null | package top.sogrey.common.utils
import android.Manifest.permission.*
import android.annotation.SuppressLint
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.net.ConnectivityManager
import android.net.NetworkInfo
imp... | 1 | null | 1 | 1 | fd00c45533efb06d49e87dd90fcd9839f0fd08f0 | 26,727 | Android-Componentization-App | MIT License |
app/src/main/java/com/rogertalk/roger/android/services/RegisterDeviceIntentService.kt | rogertalk | 207,123,525 | false | {"Gradle": 4, "Java Properties": 3, "Markdown": 7, "Text": 6, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "XML": 157, "Proguard": 2, "Kotlin": 408, "Java": 2, "JSON": 1, "Makefile": 2, "C": 105, "C++": 11} | package com.rogertalk.roger.android.services
import android.app.IntentService
import android.content.Intent
import com.google.android.gms.gcm.GoogleCloudMessaging
import com.google.android.gms.iid.InstanceID
import com.rogertalk.roger.R
import com.rogertalk.roger.network.request.DeviceTokenRequest
import com.rogertalk... | 0 | C | 0 | 1 | 55c9922947311d9d8a1e930463b9ac2a1332e006 | 1,704 | roger-android | MIT License |
app/src/main/java/com/baisc/selection/view/SquareLayout.kt | facetome | 130,166,933 | false | {"Java": 12153, "Kotlin": 7480} | package com.baisc.selection.view
import android.content.Context
import android.util.AttributeSet
import android.widget.LinearLayout
/**
* Created by basic on 2018/4/18.
*/
open class SquareLayout : LinearLayout {
constructor(context: Context) : this(context, null)
constructor(context: Context, attributes:... | 1 | null | 1 | 1 | fc30a9f1367658293915f77414fca6f25af64c18 | 812 | SelectionRecyclerAdapter | Apache License 2.0 |
sample-kotlin/src/main/java/xyz/klinker/floating_tutorial/examples/SimpleDialogExample.kt | klinker24 | 102,908,070 | false | {"Gradle": 6, "Markdown": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "INI": 3, "XML": 38, "Kotlin": 21, "Proguard": 1, "Java": 8} | /*
* Copyright (C) 2017 Luke Klinker
*
* 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... | 1 | Kotlin | 38 | 349 | a7e83833819c348300da3b2eadba916b17e22e96 | 1,388 | Android-FloatingTutorialActivity | Apache License 2.0 |
designer/src/com/android/tools/idea/common/error/IssuePanelProjectActivity.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2022 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... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,889 | android | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.