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/org/mightyfrog/android/s4fd/details/DetailsContract.kt | mightyfrog | 84,848,729 | false | null | package org.mightyfrog.android.s4fd.details
import org.mightyfrog.android.s4fd.BaseView
import org.mightyfrog.android.s4fd.data.KHCharacter
/**
* @author <NAME>
*/
interface DetailsContract {
interface View : BaseView<DetailsPresenter> {
fun showActivityCircle()
fun hideActivityCircle()
... | 1 | null | 1 | 2 | 21f2f158a85ce4229d284dab507b3578d5aecff7 | 854 | S4FD | Apache License 2.0 |
src/main/kotlin/jp/nephy/hypixelin/model/stats/SmashHeroes.kt | SlashNephy | 112,994,308 | false | null | package jp.nephy.hypixelin.model.stats
import com.github.salomonbrys.kotson.byNullableFloat
import com.github.salomonbrys.kotson.byNullableInt
import com.github.salomonbrys.kotson.byNullableObject
import com.google.gson.JsonElement
class SmashHeroes(val json: JsonElement) {
val classStats by json.byNullableObject... | 0 | Kotlin | 0 | 0 | 17573678a2e46cae714eb04d75930288e552afb8 | 1,912 | Hypixelin | MIT License |
app/src/main/java/com/qingmei2/sample/ui/main/profile/ProfileModule.kt | msdgwzhy6 | 157,537,516 | true | {"Kotlin": 112168} | package com.qingmei2.sample.ui.main.profile
import android.support.v4.app.Fragment
import com.qingmei2.rhine.ext.viewmodel.addLifecycle
import org.kodein.di.Kodein
import org.kodein.di.android.AndroidComponentsWeakScope
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.*
const va... | 0 | Kotlin | 0 | 1 | ac829cbef19a105ce34589cda89c6c397386b60d | 1,030 | MVVM-Rhine | Apache License 2.0 |
src/main/kotlin/io/emeraldpay/dshackle/config/RequestLogConfig.kt | emeraldpay | 191,297,773 | false | null | /**
* Copyright (c) 2022 EmeraldPay, 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 o... | 69 | Kotlin | 47 | 192 | ed4fcf253f2f488b57e651fb8d9a5f03c2639c73 | 1,128 | dshackle | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/cognito/UserPoolSESOptionsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.cognito
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.cognito.UserPoolSESOptions
@Generated
public fun buildUserPoolSESOptions(initializer: @AwsCdkDsl UserPoolSESOptions.Builder.() -> ... | 1 | Kotlin | 0 | 0 | b22e397ff37c5fce365a5430790e5d83f0dd5a64 | 408 | aws-cdk-kt | Apache License 2.0 |
AdventOfCodeDay05/src/nativeMain/kotlin/Main.kt | bdlepla | 451,510,571 | false | {"Kotlin": 165771} | import kotlin.system.measureTimeMicros
fun main() {
val lines = readAllLinesFromStdInput()
val count = lines.count()
println("$count lines")
val day05 = Day05(lines)
val time1 = measureTimeMicros {
val result1 = day05.solvePart1()
println("Result #1 = $result1")
}
println(... | 0 | Kotlin | 0 | 0 | 1d60a1b3d0d60e0b3565263ca8d3bd5c229e2871 | 702 | AdventOfCode2021 | The Unlicense |
feature/auth/domain/src/test/java/app/tasky/auth/domain/usecase/auth/SignInUseCaseTest.kt | usdaves | 611,128,186 | false | null | /*
* Copyright 2023 usdaves(Usmon Abdurakhmanov)
*
* 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 ... | 0 | Kotlin | 0 | 0 | d9e25bfeb91dbe759dba229dd319bbe86dbcf98d | 3,516 | Tasky | Apache License 2.0 |
app/src/main/java/com/binlly/gankee/business/home/HomePresenter.kt | binlly | 110,812,581 | false | {"Gradle": 3, "YAML": 1, "Gradle Kotlin DSL": 1, "Text": 1, "Ignore List": 2, "Markdown": 1, "Proguard": 1, "Kotlin": 129, "XML": 48, "FreeMarker": 30, "Fluent": 53, "Java": 4} | package com.binlly.gankee.business.home
import android.content.Context
import com.binlly.gankee.base.mvp.BaseFragmentPresenterImpl
import com.binlly.gankee.base.rx.RxObserver
import com.binlly.gankee.repo.HomeRepo
class HomePresenter(
context: Context?, mView: HomeContract.View
): BaseFragmentPresenterImpl<Ho... | 1 | null | 1 | 1 | 5735cd793b186a75a8defeb9c2ccb9513cc656e2 | 1,613 | Gankee | MIT License |
app/src/main/java/com/jiwenjie/cocomusic/ui/adapter/BottomMusicAdapter.kt | jiwenjie | 179,411,368 | false | null | package com.jiwenjie.cocomusic.ui.adapter
import android.content.Context
import android.view.View
import com.jiwenjie.basepart.adapters.BaseRecyclerAdapter
import com.jiwenjie.cocomusic.R
import com.jiwenjie.cocomusic.aidl.Music
import com.jiwenjie.cocomusic.utils.CommonUtils
import com.jiwenjie.cocomusic.utils.CoverL... | 1 | null | 1 | 9 | 314940ee717562b2a943c14bd659a52ba8214fbd | 1,628 | CocoMusic | Apache License 2.0 |
Series/Building_DRAG_forAndroid/project/app/src/main/java/edu/sempreacodar/drag/ui/theme/Color.kt | palbp | 249,798,469 | false | null | package edu.sempreacodar.drag.ui.theme
import androidx.compose.ui.graphics.Color
val purple200 = Color(0xFFBB86FC)
val purple500 = Color(0xFF6200EE)
val purple700 = Color(0xFF3700B3)
val teal200 = Color(0xFF03DAC5)
val red = Color(0xFFE41212)
val lightOrange = Color(0xFFFF9800)
| 2 | Kotlin | 7 | 44 | a13802274b32e90b20c15ffe8d38629b0c84dbd4 | 282 | sempre_a_codar | MIT License |
app/src/main/java/com/codepath/apps/restclienttemplate/models/LinkifyTextview.kt | sureshritika | 546,851,253 | false | {"Kotlin": 67166} | package com.codepath.apps.restclienttemplate.models
import android.content.Context
import android.text.Layout
import android.text.Selection
import android.text.Spannable
import android.text.style.ClickableSpan
import android.text.util.Linkify
import android.util.AttributeSet
import android.view.MotionEvent
import andr... | 2 | Kotlin | 0 | 0 | 70a6a4e1dc59e89b1b07f27e8b4e167dc9bc0fd2 | 3,067 | SimpleTweet | Apache License 2.0 |
android_kmp/craftd-compose/src/androidMain/kotlin/com/github/codandotv/craftd/compose/ui/text/CraftDText.kt | CodandoTV | 788,958,834 | false | {"Kotlin": 56933, "C++": 20938, "CMake": 18713, "HTML": 17445, "Swift": 16229, "Dart": 15344, "C": 1425, "Ruby": 638, "Objective-C": 38} | package com.github.codandotv.craftd.compose.ui.text
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import a... | 1 | Kotlin | 0 | 9 | b05b8575537f426048a4a63d4c7b48f9396a48be | 2,027 | CraftD | MIT License |
examples/src/main/kotlin/org/dashevo/examples/RegisterNames.kt | bspanda98 | 265,215,725 | true | {"Kotlin": 64281} | /**
* Copyright (c) 2020-present, Dash Core Group
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package org.dashevo.examples
import org.bitcoinj.core.ECKey
import org.bitcoinj.core.Sha256Hash
import org.bitcoinj.core.Utils
import o... | 0 | null | 0 | 0 | 882e6f9ee9aff67271c70a8ba8f276e6e58d2efe | 1,833 | android-dashpay | MIT License |
src/main/kotlin/de/olk90/filechooser/actions/FileChooserButtons.kt | olk90 | 506,712,307 | false | {"Kotlin": 22422} | package de.olk90.filechooser.actions
import androidx.compose.material.Icon
import androidx.compose.material.IconButton
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Home
import androidx.compose.runtime.Composable
import androidx.compose.runtime.MutableState
import androidx.... | 0 | Kotlin | 0 | 7 | 3c2a4964dd0e09b348c8be6743e48ea2bb112998 | 662 | compose-fileChooser | Apache License 2.0 |
core/core/src/jvmMain/kotlin/zakadabar/core/alarm/LogAlarmSupport.kt | spxbhuhb | 290,390,793 | false | {"Kotlin": 2348240, "HTML": 2835, "JavaScript": 1021, "Dockerfile": 269, "Shell": 253} | /*
* Copyright © 2020-2021, <NAME> and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package zakadabar.core.alarm
import org.slf4j.LoggerFactory
import zakadabar.core.business.BusinessLogicCommon
/**
* Uses an sfl4j logger to write out the alarms as errors.
*/
class LogAlarmSuppo... | 12 | Kotlin | 3 | 24 | 61ac92ff04eb53bff5b9a9b2649bd4866f469942 | 554 | zakadabar-stack | Apache License 2.0 |
core/core/src/jvmMain/kotlin/zakadabar/core/alarm/LogAlarmSupport.kt | spxbhuhb | 290,390,793 | false | {"Kotlin": 2348240, "HTML": 2835, "JavaScript": 1021, "Dockerfile": 269, "Shell": 253} | /*
* Copyright © 2020-2021, <NAME> and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package zakadabar.core.alarm
import org.slf4j.LoggerFactory
import zakadabar.core.business.BusinessLogicCommon
/**
* Uses an sfl4j logger to write out the alarms as errors.
*/
class LogAlarmSuppo... | 12 | Kotlin | 3 | 24 | 61ac92ff04eb53bff5b9a9b2649bd4866f469942 | 554 | zakadabar-stack | Apache License 2.0 |
src/main/kotlin/backtobasicsoop/domain/data/CartRepository.kt | joaofbantunes | 226,717,208 | false | null | package backtobasicsoop.domain.data
import backtobasicsoop.domain.entities.Cart
import backtobasicsoop.domain.entities.CartId
interface CartRepository {
fun get(id: CartId): Cart?
fun save(cart: Cart): Cart
fun delete(id: CartId)
} | 0 | Kotlin | 0 | 0 | 7a9c5d4d2911f5073f58bb8daaa2b3347f08f479 | 248 | BackToBasicsTheMessWereMakingOutOfOOPKT | MIT License |
src/main/java/io/github/alexiscomete/lapinousecond/entity/xp/Level.kt | Alexiscomete | 377,132,555 | false | {"Kotlin": 502869} | package io.github.alexiscomete.lapinousecond.entity.xp
import io.github.alexiscomete.lapinousecond.data.dataclass.ProgressionBar
import io.github.alexiscomete.lapinousecond.data.managesave.CacheGetSet
import kotlin.math.roundToInt
const val ROUND_PRECISION_D = 1000.0
const val PROGRESSION_STRING_SIZE = 15
open class... | 65 | Kotlin | 0 | 9 | 50f39fa386cbd141c81896184b3648850343684d | 2,344 | A-Discord-Adventure | MIT License |
bbfgradle/tmp/results/diffCompile/kmregol.kt | DaniilStepanov | 346,008,310 | false | null | // Different compile happens on:JVM ,JVM -Xnew-inference
val z: Int
= TODO()
fun box() {
(z ?: true === 1L)
.not()
}
| 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 123 | kotlinWithFuzzer | Apache License 2.0 |
src/main/kotlin/com/example/springbootrestapikt/pojo/Cell.kt | SultanICQ | 347,057,414 | false | null | package com.example.springbootrestapikt.pojo
class Cell(val fighter: Fighter, val position: Position) {
}
fun List<Cell>.rowOf(cell: Cell) = this.filter { it.position.vertical == cell.position.vertical }
fun List<Cell>.columnOf(cell: Cell) = this.filter { it.position.horizontal == cell.position.horizontal }
| 0 | Kotlin | 0 | 1 | a34021e667a5148ac21aded0962d2235ff5655cf | 312 | street-fighter-kata-kotlin | Apache License 2.0 |
processor-steps/src/main/java/boringyuri/processor/common/steps/type/CommonTypeName.kt | anton-novikau | 252,574,617 | false | {"Kotlin": 210266, "Java": 63079, "Shell": 2935} | /*
* Copyright 2020 Anton Novikau
*
* 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... | 2 | Kotlin | 2 | 12 | ff4e4e1436cf0913207271ed0f777aeba810fdc5 | 2,401 | boringYURI | Apache License 2.0 |
src/main/kotlin/io/projectenv/intellijplugin/services/impl/ProjectEnvConfigFileResolverServiceImpl.kt | Project-Env | 324,322,609 | false | {"Kotlin": 50785} | package io.projectenv.intellijplugin.services.impl
import com.intellij.openapi.project.Project
import io.projectenv.intellijplugin.services.ProjectEnvConfigFileResolverService
import java.io.File
class ProjectEnvConfigFileResolverServiceImpl(val project: Project) : ProjectEnvConfigFileResolverService {
override ... | 3 | Kotlin | 1 | 7 | 5fcaf74f76f3605481cadd7455fc8bb65446d17a | 574 | project-env-intellij-plugin | MIT License |
app/src/main/java/com/sunnyweather/android/SunnyWeatherApplication.kt | maxwellcatoo | 471,893,716 | false | {"Kotlin": 32058} | package com.sunnyweather.android
import android.annotation.SuppressLint
import android.app.Application
import android.content.Context
/**
* 全局提供获取context
* 也可以子啊object中定义全局变量,方便之后的获取
*/
class SunnyWeatherApplication: Application() {
companion object {
// 该注解用于忽略警告: Do not place Android context classes ... | 0 | Kotlin | 0 | 1 | 93012abe323a819a9e81132139590f71de7240f0 | 709 | SunnyWeather | MIT License |
app/src/main/java/com/example/emojigarden/MainActivity.kt | ssoni-wish | 368,323,011 | true | {"Kotlin": 14665} | package com.example.emojigarden
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.GridCells
import androidx.compose.foundation.lazy.LazyVerticalGrid
im... | 0 | null | 0 | 0 | 53021077c7f4b99b39a1c95b19cca266b2d48f01 | 3,005 | EmojiGarden | Apache License 2.0 |
src/main/kotlin/com/beust/kobalt/plugin/publish/JCenterApi.kt | benignbala | 43,803,632 | true | {"Kotlin": 226043, "Java": 10604, "HTML": 1021, "Shell": 17} | package com.beust.kobalt.plugin.publish
import com.beust.klaxon.*
import com.beust.kobalt.api.Project
import com.beust.kobalt.internal.TaskResult
import com.beust.kobalt.maven.Gpg
import com.beust.kobalt.maven.Http
import com.beust.kobalt.maven.KobaltException
import com.beust.kobalt.maven.Md5
import com.beust.kobalt.... | 0 | Kotlin | 0 | 0 | 8fe1dd10b076d5363455875b8422f929dc924fa6 | 6,991 | kobalt | Apache License 2.0 |
View-common/src/main/kotlin/view/core/loaders/Ids.kt | mzaart | 160,253,085 | false | null | package view.core.loaders
/**
* This class keeps track of used view Ids.
*/
class Ids {
private val ids: MutableList<Int> = mutableListOf()
private var idCounter = 0
/**
* Returns a new unique id
*
* @return The generated Id
*/
fun newId(): Int {
val newId = idCounter++
... | 0 | Kotlin | 1 | 2 | b374346a2a17dca51ecbabc00e058eaeb286ae6f | 902 | View | Apache License 2.0 |
app/src/main/java/com/creepersan/switchhost/manager/FileManager.kt | CreeperSan | 216,014,973 | false | null | package com.creepersan.switchhost.manager
import android.os.Environment
import com.creepersan.switchhost.bean.HostFile
import java.io.File
import java.util.*
object FileManager {
private val NAME_DIRECTORY_ROOT = "SwitchHost"
private val NAME_DIRECTORY_HOST = "host"
private val NAME_DIRECTORY_UPDATE = "up... | 0 | Kotlin | 0 | 4 | 103fee3880a9544d46c460fa0312b9cefd32e349 | 2,807 | SwitchHost-Android | Apache License 2.0 |
src/test/kotlin/fundamental/StackDequeOptTest.kt | xmmmmmovo | 280,634,710 | false | null | /*
* Copyright (c) 2020. xmmmmmovo
*/
package fundamental
import ds.StackDequeOpt
import org.junit.jupiter.api.*
import org.junit.jupiter.api.Assertions.*
import org.junit.platform.commons.logging.LoggerFactory
internal class StackDequeOptTest {
private val sdo = StackDequeOpt<Int>()
companion object {
... | 0 | Kotlin | 0 | 0 | 94da0519cf2b8d8a9b42b4aea09caf50d9732599 | 1,764 | Algorithms4thEditionKotlinSolutions | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/client/pdl/PdlClient.kt | navikt | 257,523,904 | false | null | package no.nav.syfo.client.pdl
import io.ktor.client.call.*
import io.ktor.client.request.*
import io.ktor.client.statement.*
import io.ktor.http.*
import no.nav.syfo.client.azuread.v2.AzureAdV2Client
import no.nav.syfo.client.azuread.v2.AzureAdV2Token
import no.nav.syfo.client.httpClient
import no.nav.syfo.domain.Per... | 1 | null | 0 | 1 | eff4595eb477829a9d7241466039c564a0a16bdf | 2,983 | padm2 | MIT License |
app/src/main/java/com/sharkaboi/mediahub/modules/anime_search/repository/AnimeSearchRepositoryImpl.kt | 1999FordFocus | 379,613,392 | true | {"Kotlin": 432335} | package com.sharkaboi.mediahub.modules.anime_search.repository
import android.content.SharedPreferences
import android.util.Log
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import com.sharkaboi.mediahub.data.api.ApiConstants
import com.sharkaboi.mediahub.data.api.m... | 0 | null | 0 | 0 | 5200b21912d2816ac6d992f95ce4e206971590e4 | 1,793 | MediaHub | MIT License |
app/src/main/java/com/puntogris/neonmaze/data/DocumentSnapshotDeserializer.kt | puntogris | 268,299,359 | false | null | package com.puntogris.neonmaze.data
import com.google.firebase.firestore.DocumentSnapshot
internal interface DocumentSnapshotDeserializer<T> :
Deserializer<DocumentSnapshot, T>
| 0 | Kotlin | 0 | 0 | cc862c0c9512e1cf43e701331322252b97ca3e5b | 183 | neon-maze | MIT License |
app/src/main/java/com/test/project/ui/home_events/full_event/FullEventFragment.kt | Petrov-Daniil | 568,047,081 | false | null | package com.test.project.ui.home_events.full_event
import android.content.Context
import android.os.Bundle
import android.text.method.ScrollingMovementMethod
import android.view.*
import android.viewbinding.library.fragment.viewBinding
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
import androi... | 0 | Kotlin | 0 | 0 | f5d994d4082da014021d6c4923d84b0eb0321907 | 4,408 | Events | MIT License |
app/src/main/java/reach52/marketplace/community/persistence/medication_mapper/SuppliersMapper.kt | reach52 | 422,514,975 | false | {"Kotlin": 1436380, "Java": 18303} | package reach52.marketplace.community.persistence.medication_mapper
import reach52.marketplace.community.models.medication.Suppliers
import reach52.marketplace.community.persistence.Marshaler
import reach52.marketplace.community.persistence.Unmarshaler
class SuppliersMapper: Marshaler<Suppliers>, Unmarshaler<Supplier... | 0 | Kotlin | 0 | 0 | 629c52368d06f978f19238d0bd865f4ef84c23d8 | 1,186 | Marketplace-Community-Edition | MIT License |
src/main/kotlin/io/data2viz/kotlinx/htmlplugin/ide/ConvertHTMLToKotlinxAction.kt | data2viz | 178,198,023 | false | null | package io.data2viz.kotlinx.htmlplugin.ide
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.CommonDataKeys
import com.intellij.openapi.command.WriteCommandAction
import com.intellij.psi.PsiFile
import com.intellij.psi.impl... | 2 | Kotlin | 4 | 9 | 8268654f8195890a1a5dcd7080581541406e2435 | 1,761 | kotlinx.html-plugin | Apache License 2.0 |
updater-mapper-standard/src/main/java/org/runestar/client/updater/mapper/std/classes/NetCache.kt | ittwit | 163,532,582 | true | {"Kotlin": 1295734, "Java": 982488} | package org.runestar.client.updater.mapper.std.classes
import org.runestar.client.updater.mapper.IdentityMapper
import org.runestar.client.updater.mapper.annotations.DependsOn
import org.runestar.client.updater.mapper.extensions.Predicate
import org.runestar.client.updater.mapper.extensions.predicateOf
import org.rune... | 0 | Kotlin | 0 | 0 | 0a3ff702877b63cbe71d710c24af2c98ba90a9ec | 552 | client | MIT License |
src/main/kotlin/org/jitsi/jibri/service/JibriService.kt | tes5884 | 120,510,452 | false | null | /*
* 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... | 1 | null | 1 | 1 | 302282309812b5413b9397c5b49567dbc2770cbd | 1,370 | jibri | Apache License 2.0 |
app/src/main/java/com/mbobiosio/currencyconverter/App.kt | mbobiosio | 494,454,639 | false | null | package com.mbobiosio.currencyconverter
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
import timber.log.Timber
/**
* @Author <NAME>
* https://linktr.ee/mbobiosio
*/
@HiltAndroidApp
class App : Application() {
override fun onCreate() {
super.onCreate()
initTimber()
... | 0 | null | 0 | 6 | 29a404cfa3def7bf0dea50e0ff4bc8e95001a5a6 | 429 | CurrencyConverter | MIT License |
celsius/src/main/java/com/moyuruaizawa/celsius/Temperature.kt | MoyuruAizawa | 144,808,492 | false | null | package com.moyuruaizawa.celsius
data class Temperature(val type: String, val temperature: Float) | 0 | Kotlin | 0 | 1 | cf2bf11183dde8b39ceedc67a3041ab14d8c52a5 | 98 | Celsius | Apache License 2.0 |
src/main/kotlin/com/github/shatteredsuite/core/math/vector/MutableVector2.kt | ShatteredSoftware | 263,221,103 | false | null | package com.github.shatteredsuite.core.math.vector
import com.github.shatteredsuite.core.math.context.NumericContext
open class MutableVector2<T : Number>(context: NumericContext<T>, x: T, y: T) : Vector2<T>(context, x, y) {
fun translate(dx: Number, dy: Number) {
with(context) {
_x += dx
... | 5 | null | 3 | 1 | 13a5bd2ff37028281eb9fcb16f8418ee5e1508ed | 1,549 | ShatteredCore | MIT License |
lang/src/main/kotlin/com/uchuhimo/extension/Extension.kt | uchuhimo | 90,075,694 | false | null | package com.uchuhimo.extension
class HasExtensionFunction {
fun Int.test() {
println(this)
}
}
fun main(args: Array<String>) {
val hasExtensionFunction = HasExtensionFunction()
hasExtensionFunction.apply {
1.test()
}
}
| 0 | Kotlin | 0 | 1 | cbd4b6fbdc6c9af595369a4d7389044792cd20c0 | 257 | kotlin-playground | Apache License 2.0 |
app/src/main/java/tool/xfy9326/schedule/ui/fragment/TableFragment.kt | XFY9326 | 325,915,275 | false | null | package tool.xfy9326.schedule.ui.fragment
import android.animation.LayoutTransition
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import androidx.core.os.bundleOf
import androidx.core.v... | 0 | null | 0 | 5 | 8e1fdbf481f19f7c57262d008fd0e550c58bf99f | 3,052 | Schedule | Apache License 2.0 |
src/main/kotlin/settingdust/kinecraft/serialization/MinecraftSerializers.kt | SettingDust | 659,706,798 | false | {"Kotlin": 173880, "Java": 5893} | package settingdust.kinecraft.serialization
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.PrimitiveKind
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
import kotlinx.serialization.descriptors.SerialDescrip... | 0 | Kotlin | 0 | 0 | f8da1290a858127e70ed1911bf4ee7a8e1281b77 | 1,481 | kinecraft-serialization | MIT License |
app/src/androidTest/java/com/foreverrafs/superdiary/di/TestPersistenceModule.kt | rafsanjani | 315,355,130 | false | null | package com.foreverrafs.superdiary.di
import android.app.Application
import android.content.SharedPreferences
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.createDataStore
import androidx.preference.PreferenceManager
import android... | 7 | Kotlin | 2 | 7 | cc4e67f8946a10f89eb299359ce62b05779c51a8 | 1,963 | superdiary | MIT License |
game/src/main/kotlin/com/runt9/heroDynasty/character/item/weapon/HandCrossbow.kt | runt9 | 130,910,358 | false | null | package com.runt9.heroDynasty.character.item.weapon
class HandCrossbow : Weapon() {
override val damageRangeRoll = 0.6 to 1.0
override val damageClampRoll = 0.04 to 0.12
override val accuracyRoll = 0.9 to 1.15
override val critChanceRoll = 1.1 to 1.3
override val critDamageRoll = 0.9 to 1.0
ove... | 0 | Kotlin | 0 | 0 | 87be0aa7394a2980145768ee315797a3e1655ff0 | 420 | hero-dynasty | MIT License |
src/main/java/io/github/bloodnighttw/whateverBot/utils/command/CommandRegister.kt | bloodnighttw | 441,596,457 | false | {"Kotlin": 46130, "Procfile": 61} | package io.github.bloodnighttw.whateverBot.utils.command
import net.dv8tion.jda.api.JDA
import net.dv8tion.jda.api.interactions.commands.build.CommandData
import net.dv8tion.jda.api.interactions.commands.build.Commands
import org.slf4j.LoggerFactory
class CommandRegister(private val bot: JDA) {
private val logger =... | 12 | Kotlin | 0 | 1 | 54abbc11db2b4604e1c3a71493b027f2f850c114 | 1,925 | WhateverBot | Apache License 2.0 |
app/src/main/java/com/pandacorp/knowui/presentation/ui/screens/SettingsScreen.kt | MrRuslanYT | 664,626,789 | false | {"Kotlin": 107994} | package com.pandacorp.knowui.presentation.ui.screens
import android.content.Context
import android.content.res.Configuration
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import a... | 0 | Kotlin | 0 | 0 | 2534f0208793afc06e74ac95bbed97f8bd904fc0 | 13,018 | KnowUI | Apache License 2.0 |
core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/suspendFunctionTypeUtil.kt | arrow-kt | 109,678,056 | true | null | /*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.serialization.deserialization
import org.jetbrains.kotlin.name.FqName
@JvmField
val KOTLIN_SUSPEND_BUILT_IN_FUNCTION_FQ_NAME ... | 12 | Kotlin | 2 | 43 | d2a24985b602e5f708e199aa58ece652a4b0ea48 | 347 | kotlin | Apache License 2.0 |
test-utils/testData/api/objCacheB.kt | google | 297,744,725 | false | {"Kotlin": 2173589, "Shell": 5321, "Java": 3893} | /*
* Copyright 2020 Google LLC
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
*
* 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.apac... | 370 | Kotlin | 268 | 2,854 | a977fb96b05ec9c3e15b5a0cf32e8e7ea73ab3b3 | 981 | ksp | Apache License 2.0 |
src/main/kotlin/dev/teogor/pixel/harvest/database/DatabaseManager.kt | teogor | 643,945,038 | false | null | package dev.teogor.pixel.harvest.database
object DatabaseManager {
private val databaseHandler: DatabaseHandler = DatabaseHandler("src/main/resources/pixel-harvest.db").apply {
initializeDatabase()
}
fun addUser(discordId: Long, username: String) {
databaseHandler.addUser(
disc... | 0 | Kotlin | 0 | 0 | c28d0e319ad59a4bf38f8309a80c47f66fccd6d8 | 738 | pixel-harvest | Apache License 2.0 |
app/src/main/java/com/example/connectnodejs/adapter/HomeGenreAdapter.kt | Tuh11343 | 782,797,769 | false | {"Kotlin": 270952} | package com.example.connectnodejs.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.example.connectnodejs.model.Genre
import com.example.connectnodejs.R
import com.example.connectnodejs.databinding.GenreV... | 0 | Kotlin | 0 | 0 | 80e1833793bd0bacdd68a6bf9d83da60a28f9bcb | 1,396 | Ebook_Kotlin | Open Market License |
app/src/main/java/com/sumit/assistant/util/AppUtil.kt | sumitsahoo | 263,283,011 | false | null | package com.sumit.assistant.util
import android.content.SharedPreferences
import android.graphics.Color
import android.graphics.drawable.AnimationDrawable
import android.view.View
import android.view.WindowManager
import androidx.appcompat.app.AppCompatActivity
import org.koin.core.KoinComponent
import org.koin.core.i... | 1 | Kotlin | 5 | 4 | a05c02fbf0e4c0877f1dfeeb8df01de193bbed19 | 2,215 | RASA-With-Aimybox | MIT License |
src/main/java/com/store/config/DummySecurityConfig.kt | znsio | 690,364,752 | false | {"Kotlin": 16669, "Java": 890} | package com.store.config
import com.store.security.DummySecurityFilter
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.Profile
import org.springframework.http.HttpMethod
import org.springframework.security.conf... | 10 | Kotlin | 0 | 1 | e0403de82340fd572c3815d7ab77d057a8b335b7 | 1,026 | specmatic-order-api-java-with-oauth | MIT License |
os/src/main/kotlin/me/jraynor/os/Os.kt | MrManiacc | 643,736,834 | false | null | package me.jraynor.os
import me.jraynor.vfs.VFS
import me.jraynor.vfs.VPath
import me.jraynor.vfs.impl.SystemVFS
import java.io.File
class Os(val workingDirectory: File) {
private val vfs: VFS = SystemVFS(workingDirectory)
} | 0 | Kotlin | 0 | 0 | dc555eb18a9272570d5f89a8a1f8a8a8cfd0d95d | 233 | jsedit | MIT License |
app/src/main/java/konrad/tercjak/flickr/model/FlickrSize.kt | tercjak | 233,453,745 | false | null | package konrad.tercjak.flickr.model
import com.squareup.moshi.Json
data class FlickrSizesResponse(
@field:Json(name = "sizes") val data: FlickrPhotoSizeList
)
data class FlickrPhotoSizeList(
@field:Json(name = "size")
val items:List<FlickrImage>
)
data class FlickrImage(
@field:Json(name = "label")
... | 0 | Kotlin | 0 | 0 | 14d9a1407dc5cde8d89d271c54f3c97ef8609c72 | 500 | flickr | Apache License 2.0 |
app/src/main/java/com/longitivityintime/test/di/NetworkModule.kt | youcefboukandoura | 518,784,282 | false | {"Kotlin": 16024} | package com.longitivityintime.test.di
import com.longitivityintime.test.BuildConfig
import com.longitivityintime.test.network.CoinsApi
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLogging... | 0 | Kotlin | 0 | 0 | d8e1c1c0a95df3b711330cba21700868c202b932 | 1,317 | LongtivityInTime | MIT License |
app/src/main/java/com/example/mvvmavengers/features/avengerslist/koin/ListAvengerViewModelModule.kt | rmiguel1985 | 371,660,123 | false | null | package com.example.mvvmavengers.features.avengerslist.koin
import com.example.mvvmavengers.features.avengerslist.ui.AvengersListViewModel
import kotlinx.coroutines.InternalCoroutinesApi
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module
@InternalCoroutinesApi
@kotlinx.coroutines.Experimental... | 0 | Kotlin | 0 | 0 | bdb596310d03bb819d5c74bc62087bef8185a760 | 425 | andriod-mvvm-avengers | The Unlicense |
core/designsystem/src/main/java/com/githukudenis/comlib/core/designsystem/ui/components/SectionSeparator.kt | DenisGithuku | 707,847,935 | false | {"Kotlin": 576276, "Java": 95753, "Roff": 12367} |
/*
* Copyright 2023 <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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, soft... | 5 | Kotlin | 1 | 0 | f7cac6483c4d847fafd2777946798f683cf29533 | 2,747 | comlib-android-client | Apache License 2.0 |
kwiet-actions-sdk/src/test/kotlin/au/com/louth/kwiet/actionssdk/ValuesTest.kt | louth | 131,220,695 | false | null | package au.com.louth.kwiet.actionssdk
import org.hamcrest.CoreMatchers.*
import org.hamcrest.MatcherAssert.assertThat
import org.junit.Test
class ValuesTest() {
@Test
fun verifyStandardIntents() {
assertThat(StandardIntent.MAIN, `is`("actions.intent.MAIN"))
assertThat(StandardIntent.TEXT, `i... | 0 | Kotlin | 0 | 0 | 5c75236dd3acefc2af8e5902344e510884ac71d5 | 2,466 | kwiet | Apache License 2.0 |
source/app/src/main/java/com/apion/apionhome/data/model/local/LocationName.kt | viet06061999 | 471,421,323 | true | {"Kotlin": 161735, "Java": 51216} | package com.apion.apionhome.data.model.local
import com.apion.apionhome.data.model.GeneraEntity
import com.apion.apionhome.utils.removeSpecific
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
data class LocationName(
@SerializedName("id")
val id: Int = -1,
@Seri... | 0 | null | 0 | 0 | 24ddb088ffd985dcd34e3e8deeb5edcc1d717558 | 1,004 | apion_home | Apache License 2.0 |
core/src/main/java/com/exozet/android/core/extensions/ByteArray+Extensions.kt | exozet | 133,497,547 | false | null | @file:JvmName("ByteArrayExtensions")
package com.exozet.android.core.extensions
import net.kibotu.logger.Logger
import java.io.File
import java.io.FileOutputStream
/**
* Created by [<NAME>](https://about.me/janrabe).
*/
fun ByteArray.saveAt(pathName: String): Boolean = try {
FileOutputStream(File(pathName)).u... | 1 | null | 2 | 11 | 72cbb02bc262b1c26450b570e41842ab65406c3e | 404 | AndroidCore | MIT License |
frontend/modules/core/src/jsMain/kotlin/io/github/andrewk2112/kjsbox/frontend/core/dinjection/DefaultDependencyInjectionInitializer.kt | andrew-k-21-12 | 497,585,003 | false | {"Kotlin": 338265, "JavaScript": 7404, "HTML": 726} | package io.github.andrewk2112.kjsbox.frontend.core.dinjection
import io.github.andrewk2112.kjsbox.frontend.core.dinjection.modules.designTokensModule
import io.github.andrewk2112.kjsbox.frontend.core.dinjection.modules.hooksModule
import io.github.andrewk2112.kjsbox.frontend.core.dinjection.modules.localizationModule
... | 0 | Kotlin | 0 | 2 | 6522756774ded07a335d29d6dd67204e5cfe0f23 | 793 | kjs-box | MIT License |
app/src/main/java/com/kennyc/dashweather/api/WeatherResult.kt | nguyenngan | 193,031,765 | true | {"Kotlin": 35770} | package com.kennyc.dashweather.api
import com.kennyc.dashweather.models.DailyWeatherModel
import com.kennyc.dashweather.models.WeatherModel
/**
* Created by Kenny-PC on 9/22/2017.
*/
open class WeatherResult {
open var latitude: Float = 0.0F
open var longitude: Float = 0.0F
open var currently: Weather... | 0 | Kotlin | 0 | 0 | a34f8c3f28aec9b16675ef0bcadc6d2b8ed816b4 | 382 | DashWeatherExtension | Apache License 2.0 |
ychat/src/commonMain/kotlin/co/yml/ychat/domain/model/AudioParams.kt | codeandtheory | 590,561,356 | false | {"Objective-C": 147180, "Kotlin": 138808, "Swift": 395, "Shell": 355} | package co.yml.ychat.domain.model
internal data class AudioParams(
var model: String = "whisper-1",
var prompt: String = "",
var responseFormat: String = "json",
var temperature: Double = 0.0,
var language: String = "en"
)
| 9 | Objective-C | 10 | 139 | 7f08e78844a779d615cd56b046744e8980e763ab | 244 | ychat | Apache License 2.0 |
src/main/kotlin/dev/adirelle/adicrate/client/renderer/CrateRenderer.kt | Adirelle | 454,710,946 | false | {"Kotlin": 74806} | @file:Suppress("UnstableApiUsage")
package dev.adirelle.adicrate.client.renderer
import dev.adirelle.adicrate.block.entity.CrateBlockEntity
import net.fabricmc.api.EnvType.CLIENT
import net.fabricmc.api.Environment
import net.minecraft.client.MinecraftClient
import net.minecraft.client.render.VertexConsumerProvider
i... | 0 | Kotlin | 0 | 1 | 3d34c36e0c649c8e394a03c4a67c141fba16cb07 | 3,433 | AdiCrate | MIT License |
src/main/kotlin/dev/adirelle/adicrate/client/renderer/CrateRenderer.kt | Adirelle | 454,710,946 | false | {"Kotlin": 74806} | @file:Suppress("UnstableApiUsage")
package dev.adirelle.adicrate.client.renderer
import dev.adirelle.adicrate.block.entity.CrateBlockEntity
import net.fabricmc.api.EnvType.CLIENT
import net.fabricmc.api.Environment
import net.minecraft.client.MinecraftClient
import net.minecraft.client.render.VertexConsumerProvider
i... | 0 | Kotlin | 0 | 1 | 3d34c36e0c649c8e394a03c4a67c141fba16cb07 | 3,433 | AdiCrate | MIT License |
app/src/main/java/com/example/winner/tebakgambar3.kt | laser123495 | 591,175,591 | false | {"Kotlin": 105375} | package com.example.winner
import android.app.Dialog
import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.media.MediaPlayer
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.widget.Butto... | 0 | Kotlin | 0 | 0 | 4ca08dd0f2268aca296da39b9a685d181170b62a | 4,813 | winner_app | Apache License 2.0 |
app/src/main/java/com/brins/riceweather/data/network/api/WeatherService.kt | BrinsLee | 219,101,877 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 46, "XML": 34, "Java": 1} | package com.brins.riceweather.data.network.api
import com.brins.riceweather.data.model.weather.HeWeather
import com.brins.riceweather.data.model.weather.WeatherDetail
import com.brins.riceweather.utils.weatherAppId
import com.brins.riceweather.utils.weatherAppSecret
import retrofit2.Call
import retrofit2.http.GET
impo... | 0 | Kotlin | 0 | 0 | 9b2e4b7782c3ad82a4871c2e16ca2bf9f27acec4 | 973 | RiceWeather | Apache License 2.0 |
app/src/main/java/com/payback/demo/database/Room.kt | SairaNawaz | 478,181,198 | false | {"Kotlin": 21925} | package com.payback.demo.database
import androidx.lifecycle.LiveData
import androidx.room.*
@Dao
interface ImagesDao {
// Image List
@Query("select * from DatabaseImageListItem WHERE tags LIKE '%' || :search_query || '%' order by id asc")
fun getDatabaseImages(search_query:String): LiveData<List<DatabaseI... | 0 | Kotlin | 0 | 0 | 5153a371c27a1b6a5ab19c9284bb72c4ba040820 | 1,013 | mvvm_clean_demo | MIT License |
app/src/main/java/com/n0stalgiaultra/head2head/domain/team/TeamRepository.kt | N0stalgiaUltra | 684,244,140 | false | {"Kotlin": 37181} | package com.n0stalgiaultra.head2head.domain.team
import androidx.lifecycle.LiveData
import com.n0stalgiaultra.head2head.data.local.model.TeamLocal
interface TeamRepository {
fun getLocalTeams(): LiveData<List<TeamLocal>>
suspend fun getRemoteTeams(): LiveData<List<TeamLocal>>
} | 0 | Kotlin | 0 | 0 | 2f1ac3cacb6518906116a724767b07884b2ad69b | 288 | Head2HeadApp | Apache License 2.0 |
android/src/com/android/tools/idea/diagnostics/hprof/visitors/DebugVisitor.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2019 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 | 7,839 | android | Apache License 2.0 |
server/src/main/kotlin/com/salastroya/bgserver/infrastructure/plant/mapper/PlantMappers.kt | adrisalas | 780,369,375 | false | {"Kotlin": 387465, "TypeScript": 104856, "HTML": 49103, "CSS": 6424} | package com.salastroya.bgserver.infrastructure.plant.mapper
import com.salastroya.bgserver.core.plant.model.Plant
import com.salastroya.bgserver.core.plant.model.PlantDetails
import com.salastroya.bgserver.infrastructure.plant.dto.PlantDto
fun Plant.toDto() = PlantDto(
id = this.id,
commonName = this.commonN... | 0 | Kotlin | 0 | 0 | d84cb29909f133a64f2cd5b43622d4ce45d56048 | 1,342 | botanic-garden | MIT License |
shared/src/commonMain/kotlin/hr/dtakac/prognoza/shared/domain/GetPrecipitationUnit.kt | davidtakac | 387,038,134 | false | null | package hr.dtakac.prognoza.shared.domain
import hr.dtakac.prognoza.shared.domain.data.SettingsRepository
import hr.dtakac.prognoza.shared.entity.LengthUnit
class GetPrecipitationUnit internal constructor(
private val settingsRepository: SettingsRepository
) {
suspend operator fun invoke(): LengthUnit = settin... | 24 | Kotlin | 11 | 194 | 2ff651b1b6470441fc81066f84271feacc855195 | 357 | prognoza | MIT License |
quickstart-kotlin/src/main/kotlin/com/bookislife/jgsk/kotlin/_26_xml_json/App.kt | youngzil | 140,260,338 | false | {"Java": 5366579, "Shell": 82397, "Scala": 72073, "Kotlin": 54790, "Groovy": 51919, "Python": 6361, "HTML": 2249, "Clojure": 1900, "JavaScript": 1727, "Lua": 1301, "XSLT": 964, "AspectJ": 359, "Batchfile": 52} | package com.bookislife.jgsk.kotlin._26_xml_json
import java.io.ByteArrayInputStream
import javax.xml.parsers.DocumentBuilderFactory
/**
* Created by SidneyXu on 2015/10/13.
*/
fun main(args: Array<String>) {
// Create Xml
val xml = """
<langs type='current' count='4' mainstream='true'>
<language flavor='... | 24 | Java | 4 | 3 | 4c0d48b576ad3230c026fb2cd323e80755fe415e | 912 | quickstart-framework | Apache License 2.0 |
compiler/testData/diagnostics/tests/warningsForBreakingChanges/capturedTypes/noWarningAfterSmartcast.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... | // SKIP_TXT
interface Comp<T> {
fun foo(t: T)
}
fun <E : Any> foo(c: Comp<in E>, e: E?) {
if (e == null) return
c.foo(<!DEBUG_INFO_SMARTCAST!>e<!>)
}
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 163 | kotlin | Apache License 2.0 |
compiler/testData/diagnostics/tests/multimodule/LambdaReceiversOfInaccessibleTypes.fir.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79248651, "Java": 6821839, "Swift": 4063506, "C": 2609288, "C++": 1969323, "Objective-C++": 171723, "JavaScript": 138329, "Python": 59488, "Shell": 32251, "TypeScript": 22800, "Objective-C": 22132, "Lex": 21352, "Groovy": 17400, "Batchfile": 11695, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9857, "EJS": 5241... | // MODULE: start
// FILE: start.kt
interface InaccessibleConcreteType
interface InaccessibleGenericType<T>
// MODULE: middle(start)
// FILE: middle.kt
fun withConcreteReceiver(arg: InaccessibleConcreteType.() -> Unit) {}
fun withGenericReceiver(arg: InaccessibleGenericType<*>.() -> Unit) {}
// MODULE: end(middle)
/... | 182 | Kotlin | 5646 | 48,182 | bc1ddd8205f6107c7aec87a9fb3bd7713e68902d | 487 | kotlin | Apache License 2.0 |
idea/testData/intentions/specifyExplicitLambdaSignature/emptyParamListWithWhiteSpace.kt | JakeWharton | 99,388,807 | false | null | fun main() {
val oom: (Int)->Int = {<caret>
it * 2
}
} | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 70 | kotlin | Apache License 2.0 |
java/kotlin/src/main/kotlin/cosmos/base/reflection/v2alpha1/AuthnDescriptorKt.kt | iqdevelop | 474,485,760 | true | {"Git Config": 1, "Text": 1, "Ignore List": 3, "Makefile": 3, "Markdown": 3, "Gradle Kotlin DSL": 5, "INI": 2, "Shell": 3, "Batchfile": 1, "Java": 181, "Kotlin": 917, "JSON with Comments": 1, "JSON": 3, "Git Attributes": 1, "EditorConfig": 1} | //Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/base/reflection/v2alpha1/reflection.proto
package cosmos.base.reflection.v2alpha1;
@kotlin.jvm.JvmSynthetic
inline fun authnDescriptor(block: cosmos.base.reflection.v2alpha1.AuthnDescriptorKt.Dsl.() -> Unit): cosmos.base.reflection.v2alpha1.R... | 0 | null | 0 | 0 | 06fcb6a1e57962a46af0aebb90b5b110e0b42435 | 5,732 | terra.proto | Apache License 2.0 |
compiler/testData/codegen/box/escapeAnalysis/test4.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-2020 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.
*/
// TODO: check mentioned debug output of escape analyser
class A(val s: String)
class B {
var f: A = A("qzz")
}
class C {
var g: B = B()
}
// ----- Agressive -... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 601 | kotlin | Apache License 2.0 |
app/src/prod/java/com/github/vase4kin/teamcityapp/dagger/modules/buildlog/BuildLogUrlProviderModule.kt | vase4kin | 68,111,887 | 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 wri... | 0 | null | 11 | 52 | 9abb1ed56c127d64679124c38d30b0014ec024de | 1,181 | TeamCityApp | Apache License 2.0 |
src/main/java/il/co/codeguru/corewars8086/runner/GroupsRunner.kt | yoavst | 51,307,921 | true | {"Maven POM": 1, "Markdown": 1, "Text": 1, "Ignore List": 1, "Kotlin": 11, "Java": 43} | package il.co.codeguru.corewars8086.runner
import com.yoavst.codeguru.runner.BaseRunner
import il.co.codeguru.corewars8086.runner.util.Params
import il.co.codeguru.corewars8086.runner.util.Runner
import il.co.codeguru.corewars8086.runner.util.print
import java.io.File
class GroupsRunner(val wars: Int, val warriorsPer... | 0 | Java | 0 | 0 | 10f4831e074ccf3b828a27546438c8febd1249eb | 1,528 | corewars8086 | Apache License 2.0 |
app/src/main/java/com/mumu/filebrowser/eventbus/events/BackEvent.kt | mumumusuc | 110,905,313 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "JSON": 2, "Java": 21, "XML": 75, "Kotlin": 28} | package com.mumu.filebrowser.eventbus.events
/**
* Created by leonardo on 17-12-2.
*/
class BackEvent | 0 | Kotlin | 0 | 0 | b1825807d04feda74c15711b85cb95dc548c6eab | 104 | FileManager | Apache License 2.0 |
app/src/main/java/com/kamontat/checkidnumber/view/MainView.kt | kamontat | 91,566,835 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 4, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 7, "YAML": 2, "PlantUML": 5, "JSON": 1, "Proguard": 1, "XML": 23, "Java": 5, "Kotlin": 23} | package com.kamontat.checkidnumber.view
import android.content.Context
import com.kamontat.checkidnumber.model.IDNumber
import java.io.Serializable
/**
* @author kamontat
* *
* @version 1.0
* *
* @since Mon 15/May/2017 - 1:23 AM
*/
interface MainView : Serializable {
val inputText: String
fun checkAndI... | 1 | null | 1 | 1 | f75a59d72e1567b3bafd16160b756ee6cd9fa1bb | 715 | CheckIDNumberA | MIT License |
src/org/ice1000/tt/psi/minitt/semantics.kt | owo-lang | 174,763,486 | false | null | package org.ice1000.tt.psi.minitt
import com.intellij.extapi.psi.ASTWrapperPsiElement
import com.intellij.lang.ASTNode
import com.intellij.psi.PsiElement
import com.intellij.psi.ResolveState
import com.intellij.psi.impl.source.resolve.ResolveCache
import com.intellij.psi.scope.PsiScopeProcessor
import com.intellij.psi... | 5 | Kotlin | 5 | 35 | 7e601041978a0497db7d4cf3bcf4971f532235cd | 3,155 | intellij-dtlc | Apache License 2.0 |
app/src/test/java/com/example/android/testing/notes/data/InMemoryNotesRepositoryTest.kt | develodroid | 63,719,774 | false | null | /*
* Copyright 2015, 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 applic... | 1 | null | 1 | 1 | 25fb0f60ebbfd3847c9112015e3035e627a7dca2 | 5,009 | kotlin-testing | Apache License 2.0 |
RPCBusSample/rpcbus/src/main/kotlin/me/tomalka/rpcbus/engines/ConnectionEngine.kt | ritave | 55,894,401 | false | {"Text": 1, "Ignore List": 6, "Gradle": 6, "Java Properties": 2, "Shell": 1, "Batchfile": 1, "Kotlin": 22, "Proguard": 3, "Java": 6, "XML": 19} | package me.tomalka.rpcbus.engines
import me.tomalka.rpcbus.LocalDispatcher
interface ConnectionEngine {
fun install(localDispatcher: LocalDispatcher)
fun destroy()
fun onPost(event: Any)
} | 1 | null | 1 | 1 | 410104008bab5a4d5c14f16147d12c30245b24e5 | 203 | RPCBus | MIT License |
subprojects/test-runner/service/src/test/kotlin/com/avito/runner/service/worker/device/adb/request/shell/RunTestsAdbShellRequestTest.kt | avito-tech | 230,265,582 | false | {"Kotlin": 3752627, "Java": 67252, "Shell": 27892, "Dockerfile": 12799, "Makefile": 8086} | package com.avito.runner.service.worker.device.adb.request.shell
import com.avito.runner.service.worker.device.adb.request.AdbRequestSerializer
import com.google.common.truth.Truth.assertThat
import org.junit.jupiter.api.Test
class RunTestsAdbShellRequestTest {
private val serializer = AdbRequestSerializer("stub... | 10 | Kotlin | 50 | 414 | 4dc43d73134301c36793e49289305768e68e645b | 1,282 | avito-android | MIT License |
plugins/package-search/src/com/jetbrains/packagesearch/intellij/plugin/ui/toolwindow/panels/management/packages/PackagesHeaderData.kt | zhoumin03 | 128,005,393 | false | {"Text": 6391, "XML": 6476, "YAML": 417, "Ant Build System": 12, "Shell": 563, "Markdown": 577, "Ignore List": 97, "Git Attributes": 10, "EditorConfig": 233, "Batchfile": 27, "SVG": 2415, "Java": 76791, "Kotlin": 42750, "Java Properties": 199, "HTML": 2907, "INI": 428, "JFlex": 31, "CSS": 59, "Groovy": 3467, "XSLT": 11... | package com.jetbrains.packagesearch.intellij.plugin.ui.toolwindow.panels.management.packages
import com.jetbrains.packagesearch.intellij.plugin.ui.toolwindow.models.operations.PackageSearchOperation
import org.jetbrains.annotations.Nls
internal data class PackagesHeaderData(
@Nls val labelText: String,
val co... | 1 | null | 1 | 1 | 85e5e3f22943744eaf80e844fdf195ca1130b14b | 523 | intellij-community | Apache License 2.0 |
app/src/main/java/com/vishnu/junitexample/coroutines/MyUseCase.kt | making-code-easy | 260,397,962 | false | null | package com.vishnu.junitexample.coroutines
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.withContext
import kotlin.math.sqrt
class MyUseCase(private val repository: MyRepository) {
suspend fun getData(): DummyData {
repository.doSomething()
return... | 1 | Kotlin | 1 | 2 | e628c7db26b4358bde17d531315e73b44f6a89d2 | 970 | unit-test-in-kotlin-using-mockk-library | Apache License 2.0 |
Final/presentation/src/main/java/ubb/thesis/david/monumental/common/BaseViewModel.kt | davidleiti | 163,836,279 | false | null | package ubb.thesis.david.monumental.common
import androidx.lifecycle.ViewModel
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.disposables.Disposable
open class BaseViewModel: ViewModel() {
private val compositeDisposable = CompositeDisposable()
protected fun addDisposable(d: Disposa... | 0 | Kotlin | 0 | 2 | 59ca0edd6bf8f004c0a712ce532fcc107f58d147 | 455 | Monumental | MIT License |
src/integTest/kotlin/dev3/blockchainapiservice/repository/JooqAssetSendRequestRepositoryIntegTest.kt | 0xDev3 | 539,904,697 | false | null | package dev3.blockchainapiservice.repository
import dev3.blockchainapiservice.TestBase
import dev3.blockchainapiservice.TestData
import dev3.blockchainapiservice.features.asset.send.model.params.StoreAssetSendRequestParams
import dev3.blockchainapiservice.features.asset.send.model.result.AssetSendRequest
import dev3.b... | 0 | Kotlin | 0 | 0 | d9aa8802cf140e0cdd3b701fa2a9c30764b4ad5f | 28,544 | blockchain-api-service | MIT License |
src/integTest/kotlin/dev3/blockchainapiservice/repository/JooqAssetSendRequestRepositoryIntegTest.kt | 0xDev3 | 539,904,697 | false | null | package dev3.blockchainapiservice.repository
import dev3.blockchainapiservice.TestBase
import dev3.blockchainapiservice.TestData
import dev3.blockchainapiservice.features.asset.send.model.params.StoreAssetSendRequestParams
import dev3.blockchainapiservice.features.asset.send.model.result.AssetSendRequest
import dev3.b... | 0 | Kotlin | 0 | 0 | d9aa8802cf140e0cdd3b701fa2a9c30764b4ad5f | 28,544 | blockchain-api-service | MIT License |
app/src/main/java/com/example/books/common/Ressource.kt | Moohaa | 514,947,288 | false | {"Kotlin": 68305} | package com.example.books.common
sealed class Ressource<T>(val data: T? = null, val message: String? = null) {
class Success<T>(data: T) : Ressource<T>(data)
class Error<T>(message: String, data: T? = null) : Ressource<T>(data, message)
class Loading<T>(data: T? = null) : Ressource<T>(data)
} | 0 | Kotlin | 0 | 0 | 941854481e722fcf060ea555782ba16c21e2f7ab | 307 | Bookest | MIT License |
data/src/main/java/com/filipedrmorgado/data/di/RepositoryModule.kt | filipedrmorgado | 729,274,421 | false | {"Kotlin": 43642} | package com.filipedrmorgado.data.di
import com.filipedrmorgado.data.repositories.FtuRepositoryImpl
import com.filipedrmorgado.data.repositories.UserWalletDataRepositoryImpl
import com.filipedrmorgado.domain.repository.FtuRepository
import com.filipedrmorgado.domain.repository.UserWalletDataRepository
import org.koin.d... | 0 | Kotlin | 0 | 1 | 9ca066e222f4c9dcde746380087756ccb33bf40b | 506 | LightningMoney | Apache License 2.0 |
src/main/kotlin/pl/vemu/diamold/blocks/DiamoldBlock.kt | lospejos | 427,424,341 | true | {"Kotlin": 6360} | package pl.vemu.diamold.blocks
import net.fabricmc.fabric.api.`object`.builder.v1.block.FabricBlockSettings
import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags
import net.minecraft.block.Block
import net.minecraft.block.Material
import net.minecraft.sound.BlockSoundGroup
import pl.vemu.diamold.items.JsonNa... | 0 | null | 0 | 0 | f9ba608d86c4c65ec51fe06ca33e6efaa16f25af | 570 | diamold | MIT License |
src/main/kotlin/pl/vemu/diamold/blocks/DiamoldBlock.kt | lospejos | 427,424,341 | true | {"Kotlin": 6360} | package pl.vemu.diamold.blocks
import net.fabricmc.fabric.api.`object`.builder.v1.block.FabricBlockSettings
import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags
import net.minecraft.block.Block
import net.minecraft.block.Material
import net.minecraft.sound.BlockSoundGroup
import pl.vemu.diamold.items.JsonNa... | 0 | null | 0 | 0 | f9ba608d86c4c65ec51fe06ca33e6efaa16f25af | 570 | diamold | MIT License |
app/src/main/java/com/iti/tiempo/di/NetworkModule.kt | AbdElwahabZayed | 489,923,791 | false | null | package com.iti.tiempo.di
import android.content.Context
import com.iti.tiempo.local.AppSharedPreference
import com.iti.tiempo.network.WeatherService
import com.iti.tiempo.utils.NETWORK_TIMEOUT
import com.iti.tiempo.utils.NETWORK_URL
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagg... | 0 | Kotlin | 0 | 2 | 2b765bf9a5f869f02b71a12a399c30d5e4c5fe3b | 2,153 | Tiempo | University of Illinois/NCSA Open Source License |
app/src/main/java/com/example/reactivearchitecture/core/dagger/ApplicationModule.kt | HIFILEO | 160,580,982 | false | null | /*
Copyright 2017 LEO LLC
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, modify, merge, publish, distribute,
sublicense,... | 0 | Kotlin | 1 | 1 | bb9e3bb164fd6db47a776df2b823f72a46a2a8a9 | 3,616 | ReactiveArchitectureKotlin | Apache License 2.0 |
src/main/kotlin/io/github/gilbertojrequena/bonsai_sns/api/action/ListEndpointsByPlatformApplication.kt | gilbertojrequena | 225,954,375 | false | null | package io.github.gilbertojrequena.bonsai_sns.api.action
import io.github.gilbertojrequena.bonsai_sns.api.xml
import io.ktor.application.ApplicationCall
import io.ktor.http.Parameters
import io.ktor.response.respondText
internal class ListEndpointsByPlatformApplication : Action {
override suspend fun execute(call... | 0 | Kotlin | 0 | 4 | ec92bb2eb1abaf5204c85d7001a38cb117e5fa79 | 612 | bonsai-sns | MIT License |
src/main/kotlin/network/cere/ddc/crypto/v1/key/sign/spec.kt | Cerebellum-Network | 344,519,038 | false | null | package network.cere.ddc.crypto.v1.key.sign
internal const val ALGORITHM = "Ed25519"
internal const val FORMAT = "RAW"
| 0 | Kotlin | 1 | 0 | dedeaaa58762b7d361f6c374fd5a2262a22df5f0 | 120 | ddc-encryption-impl-kotlin | MIT License |
android-common/src/main/java/com/caldremch/common/base/LifeCycleLogFragment.kt | android-module | 424,496,469 | false | {"Kotlin": 76902, "Java": 16616, "Shell": 514} | package com.caldremch.common.base
import android.content.res.Configuration
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
/**
*
* @author Caldremch
*
* @date 2020-06-28 22:49
*
* @em... | 0 | Kotlin | 0 | 0 | 85037eb69d234970cd73cd44e91fb17403fe2700 | 3,309 | android-common | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.