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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/kool/buffers operators.kt | kotlin-graphics | 134,720,217 | false | null | package kool
import org.lwjgl.PointerBuffer
import org.lwjgl.system.Pointer
import org.lwjgl.system.Struct
import org.lwjgl.system.StructBuffer
import java.nio.*
operator fun IntBuffer.get(e: Enum<*>): Int = get(e.ordinal)
operator fun IntBuffer.set(e: Enum<*>, value: Int): IntBuffer = put(e.ordinal, value)
operator ... | 1 | null | 3 | 9 | 1b53bab946be2e0296e7663ca88b4210d20d84c2 | 766 | kool | MIT License |
app/src/main/kotlin/com/github/muneebwanee/dash/ui/fragments/message/InterfaceInteractorMessage.kt | muneebwanee | 321,685,263 | false | null | package com.github.muneebwanee.dash.ui.fragments.message
import com.github.muneebwanee.dash.di.PerActivity
import com.github.muneebwanee.dash.ui.activities.base.InterfaceInteractor
/**
* Created by muneebwanee on 15/12/20.
*/
@PerActivity
interface InterfaceInteractorMessage<V : InterfaceViewMessage> : InterfaceInt... | 4 | Kotlin | 37 | 81 | 1fa68abddacedc7866cc09c6908f885fc9bf0281 | 330 | Dash | Apache License 2.0 |
app/src/main/kotlin/com/github/muneebwanee/dash/ui/fragments/message/InterfaceInteractorMessage.kt | muneebwanee | 321,685,263 | false | null | package com.github.muneebwanee.dash.ui.fragments.message
import com.github.muneebwanee.dash.di.PerActivity
import com.github.muneebwanee.dash.ui.activities.base.InterfaceInteractor
/**
* Created by muneebwanee on 15/12/20.
*/
@PerActivity
interface InterfaceInteractorMessage<V : InterfaceViewMessage> : InterfaceInt... | 4 | Kotlin | 37 | 81 | 1fa68abddacedc7866cc09c6908f885fc9bf0281 | 330 | Dash | Apache License 2.0 |
app/src/main/java/com/muratozturk/breakingbad/HiltApplication.kt | muratozturk5 | 559,985,666 | false | {"Kotlin": 36465} | package com.muratozturk.breakingbad
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class HiltApplication : Application() {
} | 0 | Kotlin | 3 | 13 | e36da837b61e5f849e8d17252960382248124785 | 169 | Breaking-Bad | MIT License |
basics/src/main/kotlin/basics/syntax/03_functions.kt | bnorm | 230,536,701 | false | null | package basics.syntax
//
//
//
//
//
//
//
//
//
//
/**
* Things to observe:
* 1. Function return type is list after function signature
* 2. No primitive style `int`
*/
fun sum(a: Int, b: Int): Int {
return a + b
}
//
//
//
//
//
//
//
//
//
//
/**
* Things to observe:... | 0 | Kotlin | 0 | 0 | 031f454298f01a7fc8078e781e6d2780c6812694 | 2,204 | kotlin.examples | Apache License 2.0 |
basics/src/main/kotlin/basics/syntax/03_functions.kt | bnorm | 230,536,701 | false | null | package basics.syntax
//
//
//
//
//
//
//
//
//
//
/**
* Things to observe:
* 1. Function return type is list after function signature
* 2. No primitive style `int`
*/
fun sum(a: Int, b: Int): Int {
return a + b
}
//
//
//
//
//
//
//
//
//
//
/**
* Things to observe:... | 0 | Kotlin | 0 | 0 | 031f454298f01a7fc8078e781e6d2780c6812694 | 2,204 | kotlin.examples | Apache License 2.0 |
mastodon4j/src/main/java/com/sys1yagi/mastodon4j/api/entity/Card.kt | sys1yagi | 88,990,462 | false | null | package com.sys1yagi.mastodon4j.api.entity
import com.google.gson.annotations.SerializedName
/**
* see more https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#card
*/
class Card(
@SerializedName("url")
val url: String = "",
@SerializedName("title")
val title... | 23 | Kotlin | 18 | 91 | b7fbb565abd024ce113e3a6f0caf2eb9bbc10fc7 | 483 | mastodon4j | MIT License |
src/main/kotlin/no/nav/eessi/pensjon/fagmodul/config/KafkaErrorHandler.kt | navikt | 178,813,650 | false | null | package no.nav.eessi.pensjon.config
import org.apache.kafka.clients.consumer.Consumer
import org.apache.kafka.clients.consumer.ConsumerRecord
import org.slf4j.LoggerFactory
import org.springframework.context.annotation.Profile
import org.springframework.kafka.listener.ContainerAwareErrorHandler
import org.springframew... | 2 | null | 1 | 4 | cae98846b6d85aaf567e055dc86189b01600ce03 | 1,731 | eessi-pensjon-journalforing | MIT License |
next/kmp/browser/src/commonMain/kotlin/org/dweb_browser/browser/desk/DesktopControllerRender.kt | BioforestChain | 594,577,896 | false | {"Kotlin": 2719211, "TypeScript": 733573, "Swift": 350492, "Vue": 150380, "SCSS": 39016, "Objective-C": 17350, "HTML": 13200, "Shell": 11193, "JavaScript": 3998, "CSS": 818} | package org.dweb_browser.browser.desk
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.icons.Icons
import androidx.compose.ma... | 60 | Kotlin | 4 | 11 | 8ef7e1f585c6eaf4c508681173bf729dadb82536 | 2,822 | dweb_browser | MIT License |
app/src/main/java/com/ztute/memereview/domain/repository/DefaultMemeRepository.kt | SrikantPadala | 471,776,177 | false | null | package com.ztute.memereview.domain.repository
import com.ztute.memereview.database.DatabaseMeme
import com.ztute.memereview.database.MemeDao
import com.ztute.memereview.network.MemeNetworkResponse
import com.ztute.memereview.network.MemeReviewApiService
import com.ztute.memereview.network.ResultWrapper
import com.ztu... | 0 | Kotlin | 0 | 0 | 7a4f82346c45c350a1e7024ba021398a8e871756 | 952 | MemeReview | Apache License 2.0 |
client_end_user/shared/src/commonMain/kotlin/presentation/search/SearchScreen.kt | TheChance101 | 671,967,732 | false | null | package presentation.search
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.... | 5 | null | 55 | 572 | 1d2e72ba7def605529213ac771cd85cbab832241 | 8,800 | beep-beep | Apache License 2.0 |
kittybot/src/main/kotlin/org/bezsahara/kittybot/bot/dispatchers/y/scopes/CommandScope.kt | bezsahara | 846,146,531 | false | {"Kotlin": 752625} | package org.bezsahara.kittybot.bot.dispatchers.y.scopes
import org.bezsahara.kittybot.bot.KittyBot
import org.bezsahara.kittybot.telegram.classes.messages.inaccessible.Message
class CommandScope(
bot: KittyBot,
message: Message,
@JvmField val commandArgs: String?
) : MessageScope(message, bot) | 0 | Kotlin | 1 | 5 | a0b831c9f4ad00f681b2bfba5376e321766a8cfe | 308 | TelegramKitty | MIT License |
dynatest-engine/src/test/kotlin/com/github/mvysny/dynatest/DynaTestEngineTest.kt | mvysny | 120,896,466 | false | {"Kotlin": 111405} | package com.github.mvysny.dynatest
import java.io.IOException
import java.lang.IllegalArgumentException
import kotlin.test.expect
import kotlin.test.fail
/**
* Bunch of tests for the engine.
*
* If you add tests here, don't forget to fix the `build.gradle.kts` - there is a check that there are in fact 33
* test m... | 2 | Kotlin | 2 | 22 | ab657fa619e6d6592108cf9b9bc5b4ea904c76f1 | 20,268 | dynatest | Apache License 2.0 |
src/me/anno/graph/render/compiler/ExpressionRenderer.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.graph.render.compiler
import me.anno.ecs.components.mesh.TypeValue
import me.anno.gpu.GFX
import me.anno.gpu.GFXState
import me.anno.gpu.framebuffer.DepthBufferType
import me.anno.gpu.framebuffer.FBStack
import me.anno.gpu.shader.DepthTransforms
import me.anno.gpu.shader.GLSLType
import me.anno.gpu.sha... | 0 | Kotlin | 3 | 9 | 566e183d43bff96ee3006fecf0142e6d20828857 | 3,544 | RemsEngine | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/locationsinsideprison/service/LocationService.kt | ministryofjustice | 738,978,080 | false | null | package uk.gov.justice.digital.hmpps.locationsinsideprison.service
import com.fasterxml.jackson.annotation.JsonInclude
import com.microsoft.applicationinsights.TelemetryClient
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.persistence.EntityManager
import jakarta.persistence.EntityNotFoundException
i... | 0 | null | 0 | 2 | 9946a37ef6ee0301ce3bd626015f5a927e991007 | 44,428 | hmpps-locations-inside-prison-api | MIT License |
plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/scale/ColorViridis.kt | JetBrains | 172,682,391 | false | null | /*
* Copyright (c) 2021. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
@file:Suppress("unused")
package org.jetbrains.letsPlot.scale
import org.jetbrains.letsPlot.core.spec.Option
import org.jetbrains.letsPlot.core.plot.base.Aes
import org.jetb... | 17 | null | 37 | 433 | f6edab1a67783d14e2378675f065ef7111bdc1a0 | 11,166 | lets-plot-kotlin | MIT License |
ui/reader/src/main/java/com/kafka/reader/online/OnlineReader.kt | vipulyaara | 612,950,214 | false | null | @file:Suppress("DEPRECATION")
package com.kafka.reader.online
import android.annotation.SuppressLint
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import... | 4 | null | 19 | 257 | b8dda2dd483b8faee6bd752c1daec525e1461405 | 7,148 | Kafka | Apache License 2.0 |
src/main/kotlin/org/caffeine/chaos/api/client/ClientFriend.kt | caffeine-moe | 479,810,319 | false | {"Kotlin": 158081} | package org.caffeine.chaos.api.client
@kotlinx.serialization.Serializable
data class ClientFriend(
override val username : String,
override val discriminator : String,
override val id : String,
override val avatar : String?,
) : DiscordUser() {
override val discriminatedName = "$username#$discrimin... | 2 | Kotlin | 3 | 29 | e378093a0694af80681f0433063e5b28a84086be | 327 | CHAOS | MIT License |
sample/src/main/java/com/tabesto/printer/sample/PrinterItem.kt | Tabesto | 339,833,685 | false | null | package com.tabesto.printer.sample
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.widget.doAfterTextChanged
import androidx.recyclerview.widget.RecyclerView
import com.mikepenz.fastadapter.FastAdapter
import com.mikepenz.fastadapter.binding.AbstractBindin... | 0 | Kotlin | 0 | 2 | b423b830e99f8b2250678d43be876de322502d06 | 3,146 | android-pos-printer | MIT License |
app/src/main/java/io/chipotie/gifinder/model/OriginalGif.kt | chipotledev | 177,696,457 | false | null | package io.chipotie.gifinder.model
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
/*
* @author savirdev on 26/03/19
*/
@Parcelize
data class OriginalGif(
@SerializedName("url")
val url : String
) : Parcelable | 0 | Kotlin | 0 | 2 | df7f7e822fddd1b9db45b1595a533987fbaa7243 | 293 | Gifinder | Apache License 2.0 |
src/commonMain/kotlin/data/items/BlackFelsteelBracers.kt | marisa-ashkandi | 332,658,265 | false | null | package `data`.items
import `data`.Constants
import `data`.model.Item
import `data`.model.ItemSet
import `data`.model.Socket
import `data`.model.SocketBonus
import character.Buff
import character.Stats
import kotlin.Array
import kotlin.Boolean
import kotlin.Double
import kotlin.Int
import kotlin.String
import kotlin.c... | 21 | Kotlin | 11 | 25 | 9cb6a0e51a650b5d04c63883cb9bf3f64057ce73 | 1,556 | tbcsim | MIT License |
string-util/src/main/kotlin/com/seanshubin/condorcet/backend/string/util/RowStyleTableFormatter.kt | SeanShubin | 238,518,165 | false | null | package com.seanshubin.game_4x.format
import com.seanshubin.game_4x.format.TableFormatter.Companion.escapeString
import com.seanshubin.game_4x.format.TableFormatter.Companion.toBufferedReader
import com.seanshubin.game_4x.format.TableFormatter.Companion.transpose
import com.seanshubin.game_4x.format.TableFormatter.Jus... | 1 | null | 1 | 1 | c6dd3e86d9f722829c57d215fcfa7cb18b7955cd | 9,605 | kotlin-tryme | The Unlicense |
buildSrc/src/main/kotlin/io/petros/movies/config/deps/Versions.kt | ParaskP7 | 148,126,048 | false | null | package io.petros.movies.config.deps
@Suppress("StringLiteralDuplication")
object Versions {
// DEBUG IMPLEMENTATION // *****************************************************************************************
object LeakCanary {
// Releases: https://github.com/square/leakcanary/releases
con... | 0 | null | 21 | 130 | c86a669c4c21a2702a63404e6abf2547c3cec3fd | 8,525 | sample-code-movies | Apache License 2.0 |
app/src/main/java/io/horizontalsystems/bankwallet/modules/walletconnect/scanqr/WalletConnectScanQrViewModel.kt | fahimaltinordu | 312,207,740 | false | null | package io.horizontalsystems.bankwallet.modules.walletconnect.scanqr
import androidx.lifecycle.ViewModel
import io.horizontalsystems.bankwallet.modules.walletconnect.WalletConnectService
import io.horizontalsystems.core.SingleLiveEvent
class WalletConnectScanQrViewModel(private val service: WalletConnectService) : Vi... | 0 | null | 1 | 4 | d3094c4afaa92a5d63ce53583bc07c8fb343f90b | 676 | WILC-wallet-android | MIT License |
app/src/main/java/ru/lozenko/kotlincompiletimereflection/ManualSettingsRealization.kt | Ivan876l678 | 164,870,372 | false | null | package ru.lozenko.kotlincompiletimereflection
import android.content.Context
/**
* Created by <NAME>
*
*
*/
class ManualSettingsRealization(context: Context){
private val sharedPreferences = context.getSharedPreferences("MANUAL_SETTINGS", Context.MODE_PRIVATE)
var setting1: Boolean
get() = sharedP... | 0 | Kotlin | 1 | 1 | 342289b352c72f71c55af180d2dca40af554d0b9 | 607 | KotlinCompileTimeReflection | Apache License 2.0 |
network_scanner/app/src/main/java/com/example/scrima/ui/ProfileFragment.kt | 2020-B-Aplicaciones-Web-Software | 389,814,671 | false | null | package com.example.scrima.ui
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.EditText
import android.... | 0 | Kotlin | 1 | 1 | 09d0cc7b6a04b07e105a65fd9b5ec9ae5d489d7d | 2,614 | mov-soft-llanganate-quimbiamba-proyecto | MIT License |
src/main/kotlin/no/uib/inf273/data/VesselCargo.kt | elgbar | 237,403,030 | false | null | package no.uib.inf273.data
import no.uib.inf273.processor.DataParser.Companion.INCOMPATIBLE
data class VesselCargo(val originPortTime: Int, val originPortCost: Int, val destPortTime: Int, val destPortCost: Int) {
companion object {
/**
* Object to be used when vessel and cargo is not compatible... | 0 | Kotlin | 0 | 3 | 1f76550a631527713b1eba22817e6c1215f5d84e | 448 | INF273 | The Unlicense |
src/test/kotlin/no/nav/familie/ba/skatteetaten/maskinporten/MaskinportenClient.kt | navikt | 400,165,747 | false | null | package no.nav.familie.ba.skatteetaten.maskinporten
import com.nimbusds.jose.JOSEException
import com.nimbusds.jose.JOSEObjectType
import com.nimbusds.jose.JWSAlgorithm
import com.nimbusds.jose.JWSHeader
import com.nimbusds.jose.JWSSigner
import com.nimbusds.jose.crypto.RSASSASigner
import com.nimbusds.jose.jwk.RSAKey... | 2 | Kotlin | 0 | 0 | d2b8a1bcf2a433e501f05c3254baa93fb028d7eb | 4,812 | familie-ba-skatteetaten-api | MIT License |
src/main/kotlin/org/ivcode/mvn/services/basicauth/model/BasicAuthModels.kt | iv-buildsystem | 744,432,718 | false | {"Kotlin": 54402, "Shell": 2162, "FreeMarker": 1906, "Dockerfile": 870} | package org.ivcode.mvn.services.basicauth.model
public data class BasicAuthUser (
val username: String,
val write: Boolean
)
public data class CreateBasicAuthUser (
val username: String,
val password: String,
val write: Boolean
)
| 0 | Kotlin | 0 | 0 | cba7a7853677ef502f648b186be88233b1375ae4 | 252 | iv-mvn | Apache License 2.0 |
presentation/src/main/java/com/phelat/splash/presentation/photolist/viewmodel/PhotoListViewModel.kt | PHELAT | 135,176,443 | false | {"Kotlin": 83388} | package com.phelat.splash.presentation.photolist.viewmodel
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.MutableLiveData
import com.phelat.splash.data.entity.PhotoEntity
import com.phelat.splash.presentation.viewmodel.SplashViewModel
class PhotoListViewModel : SplashViewModel<MutableList<PhotoE... | 0 | Kotlin | 1 | 2 | 8493fdf5b67a9e425839427cf7f43c9565c34e0b | 981 | Splash | Apache License 2.0 |
compiler/testData/compileKotlinAgainstCustomBinaries/obsoleteInlineSuspend/source.kt | JakeWharton | 99,388,807 | false | null | import library.*
import kotlin.coroutines.experimental.*
suspend fun test() {
append("[foo]")
foo { // we are inlining foo here
append("(block)")
}
append("[bar]")
bar() // and invoking suspending function bar
append("[test]")
}
fun runBlockingLibrary(block: suspend () -> Unit): String... | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 983 | kotlin | Apache License 2.0 |
spring-web/src/test/kotlin/org/springframework/http/codec/json/KotlinSerializationJsonDecoderTests.kt | spring-projects | 1,148,753 | false | null | /*
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 4 | null | 4 | 56,506 | 52e813d0ad2a5d3439c1880b481b6942a138a8dc | 4,745 | spring-framework | Apache License 2.0 |
src/main/kotlin/org/example/util/UUIDUtil.kt | WuJianeng | 256,488,250 | false | null | package org.example.util
import java.util.*
fun uuid(): String {
return UUID.randomUUID().toString().replace("-", "")
}
//fun main() {
// println(uuid())
//} | 1 | Kotlin | 0 | 0 | 12e48eeef10878443e740cb7dc8998c424ba5808 | 167 | seconds | MIT License |
Application/app/src/main/java/com/demo/code/manualencoding/StudentInfo.kt | devrath | 586,183,600 | false | null | package com.demo.code.manualencoding
import android.os.Build
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.Transient
import kotlinx.serialization.json.Json
@Serializable
data class StudentInfo(
@SerialName("name")
val studentName: String,
@S... | 0 | Kotlin | 0 | 0 | 14d51ba1c3fdb01e63670ff5ef7279bd6690be6a | 562 | KotlinSerialization | Apache License 2.0 |
src/test/kotlin/org/move/ide/inspections/MvUnusedVariableInspectionTest.kt | pontem-network | 279,299,159 | false | null | package org.move.ide.inspections
import org.move.utils.tests.annotation.InspectionTestBase
class MvUnusedVariableInspectionTest : InspectionTestBase(MvUnusedVariableInspection::class) {
fun `test used function parameter`() = checkByText(
"""
module 0x1::M {
fun call(a: u8): u8 {
a ... | 9 | Kotlin | 14 | 50 | af0e2bde6ee134efc96115b38ad6362c9207e29e | 1,282 | intellij-move | MIT License |
src/main/java/com/bukowiecki/weevil/ui/SearchController.kt | marcin-bukowiecki | 401,079,122 | false | null | /*
* Copyright 2021 <NAME>.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.bukowiecki.weevil.ui
import com.bukowiecki.weevil.search.impl.SearchInputComponent
import com.intellij.debugger.engine.DebugProcessImpl
import com.intellij.debugger.engi... | 0 | Kotlin | 1 | 3 | 1461169f0e1cbf3e4006b71fff9a97b271f43231 | 1,783 | weevil-debugger-plugin | Apache License 2.0 |
app/src/main/java/org/simple/clinic/feature/Feature.kt | appdev-academy | 292,263,031 | true | {"Kotlin": 4738177, "Shell": 3719, "Python": 3162} | package org.simple.clinic.feature
import android.os.Build
enum class Feature(
val enabledByDefault: Boolean,
val remoteConfigKey: String = ""
) {
EditBloodSugar(true),
NotifyAppUpdateAvailable(false, "appupdate_enabled"),
DeletePatient(true, "delete_patient_feature_enabled"),
SecureCalling(false, "pho... | 0 | Kotlin | 0 | 0 | 2c7cc71a824bbe4a809bebaa95aef9555c6e7a18 | 1,038 | simple-app-cameroon-android | MIT License |
native/android/app/src/main/java/work/calmato/prestopay/database/DatabaseFriend.kt | calmato | 260,225,803 | false | {"Go": 321615, "Kotlin": 266100, "TypeScript": 86093, "Swift": 24138, "HCL": 18561, "Java": 17973, "Vue": 6512, "Makefile": 6357, "Ruby": 6299, "Shell": 4355, "Dockerfile": 2406, "JavaScript": 1850, "SCSS": 138} | package work.calmato.prestopay.database
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverter
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import work.calmato.prestopay.network.*
@Entity
data class DatabaseFriend constructor(
@PrimaryKey
val id: St... | 42 | Go | 0 | 3 | 4350bb99485e5a8c9edc2e833e78546a24240bb9 | 3,406 | presto-pay | MIT License |
stripe/src/test/java/com/stripe/android/FingerprintDataRepositoryTest.kt | wchristiansen | 249,545,106 | true | {"Kotlin": 2035465, "Java": 67744, "Ruby": 6208} | package com.stripe.android
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import com.google.common.truth.Truth.assertThat
import java.util.UUID
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
@RunWith(RobolectricTestRunner::class)
cl... | 0 | Kotlin | 0 | 0 | 8e098bee0cdb559c8f11db6a64fc90f06339f850 | 978 | stripe-android | MIT License |
app/src/main/kotlin/cn/govast/vmusic/ui/fragment/LoginCodeFragment.kt | SakurajimaMaii | 351,469,044 | false | null | /*
* Copyright 2022 <NAME> <EMAIL>
*
* 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 ... | 2 | Kotlin | 0 | 8 | af1cb8e620cb3e65f9ad5a0d05b240142db2608b | 3,335 | Music-Voice | Apache License 2.0 |
ktor-server/ktor-server-host-common/nix/src/io/ktor/server/engine/ServerEngineUtilsNix.kt | ktorio | 40,136,600 | false | null | /*
* Copyright 2014-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.server.engine
import kotlinx.cinterop.*
import platform.posix.*
@OptIn(UnsafeNumber::class)
internal actual val WORKING_DIRECTORY_PATH: String get() = memScoped {
val res... | 302 | null | 806 | 9,709 | 9e0eb99aa2a0a6bc095f162328525be1a76edb21 | 400 | ktor | Apache License 2.0 |
joybao-esign-java/src/main/kotlin/com/joybao/esign/Seal.kt | MarsCWD | 144,733,773 | false | {"JavaScript": 812625, "Objective-C": 164921, "Java": 40541, "Kotlin": 38548, "C#": 13655, "Vue": 11890, "Python": 1722, "Shell": 120, "CSS": 111} | package com.joybao.esign
import DDP.DDPListener
import com.joybao.constants.ProjectConstants
import com.joybao.util.TaskCallBack
import com.timevale.esign.sdk.tech.bean.result.AddSealResult
import com.timevale.esign.sdk.tech.service.factory.SealServiceFactory
import org.slf4j.LoggerFactory
import com.timevale.esign.sd... | 0 | JavaScript | 0 | 0 | 6dae7021ecd3e3c51f250cdcb4491d1fd90bbbcc | 7,126 | joybao | Apache License 2.0 |
app/src/main/java/com/example/android_study/android/ipc/IPCMainActivity.kt | RhythmCoderZZF | 281,057,053 | false | null | package com.example.android_study.android.ipc
import android.os.Bundle
import com.example.android_study.R
import com.example.android_study._base.BaseActivity
import com.example.android_study._base.adapter.Entry
import com.example.android_study.android.ipc.binder.IPCAIDLActivity
import com.example.android_study.android... | 0 | Kotlin | 0 | 0 | b569adcacfdba5ea6b4c323454c3c5130a1b4763 | 838 | AndroidStudy | Apache License 2.0 |
app/src/main/java/com/puutaro/commandclick/fragment_lib/command_index_fragment/list_view_lib/filter/TextChangedListenerAdder.kt | puutaro | 596,852,758 | false | null | package com.puutaro.commandclick.fragment_lib.command_index_fragment.list_view_lib.filter
import android.text.Editable
import android.text.InputFilter
import android.text.TextWatcher
import android.widget.ArrayAdapter
import androidx.fragment.app.activityViewModels
import com.puutaro.commandclick.common.variable.ReadL... | 2 | Kotlin | 2 | 44 | b57ff32350e2e5fe7e7d69b959702d3a3b2c83d0 | 3,579 | CommandClick | MIT License |
app/src/main/kotlin/com/xiaocydx/sample/viewpager2/shared/FooCategoryViewModel.kt | xiaocydx | 460,257,515 | false | null | package com.xiaocydx.sample.viewpager2.shared
import androidx.lifecycle.ViewModel
import com.xiaocydx.accompanist.viewmodel.RetainedViewModels
import com.xiaocydx.accompanist.viewmodel.getOrPut
import com.xiaocydx.sample.common.FooListViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.... | 0 | null | 0 | 9 | cee300e1e33e5a5cd877ad9c64e46e3325cce37f | 2,455 | CXRV | Apache License 2.0 |
adaptive-ui/src/commonMain/kotlin/fun/adaptive/ui/fragment/layout/AbstractContainer.kt | spxbhuhb | 788,711,010 | false | {"Kotlin": 2104845, "Java": 23090, "HTML": 7707, "JavaScript": 3880, "Shell": 687} | /*
* Copyright © 2020-2024, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package hu.simplexion.adaptive.ui.common.fragment.layout
import hu.simplexion.adaptive.foundation.AdaptiveFragment
import hu.simplexion.adaptive.foundation.fragment.AdaptiveAnonymous
i... | 35 | Kotlin | 0 | 3 | a423e127a406395002bbc663bb2fea6fcad749f1 | 5,153 | adaptive | Apache License 2.0 |
grazel-gradle-plugin/src/test/kotlin/com/grab/grazel/gradle/variant/VariantTestProject.kt | grab | 379,151,190 | false | null | package com.grab.grazel.gradle.variant
import com.android.build.gradle.AppExtension
import com.grab.grazel.gradle.ANDROID_APPLICATION_PLUGIN
import com.grab.grazel.gradle.JAVA_LIBRARY_PLUGIN
import com.grab.grazel.gradle.KOTLIN_ANDROID_PLUGIN
import com.grab.grazel.gradle.KOTLIN_KAPT
import com.grab.grazel.gradle.KOTL... | 9 | null | 21 | 274 | 6d44b7fc7d5210cc4e4211cfd002547a3126124c | 2,628 | grazel | Apache License 2.0 |
app/src/main/java/com/example/liziweather/ui/weather/WeatherViewModel.kt | freezeailis | 631,947,522 | false | null | package com.example.liziweather.ui.weather
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.example.liziweather.logic.Repository
import com.example.liziweather.logic.model.Location
import java.security.KeyStore.LoadStoreParameter
import ... | 0 | Kotlin | 0 | 0 | ef42205e8422f47e8c4220c8a0e2f8a730b6221e | 827 | LiziWeather | Apache License 2.0 |
common/src/main/kotlin/ru/memebattle/common/dto/AuthenticationResponseDto.kt | Onotole1 | 242,397,687 | false | null | package ru.memebattle.common.dto
data class AuthenticationResponseDto(val token: String)
| 0 | Kotlin | 0 | 3 | fd2b1e526af65649b734810ef3bcdb9d4ea7539a | 90 | memebattle-template | Apache License 2.0 |
common/src/main/kotlin/ru/memebattle/common/dto/AuthenticationResponseDto.kt | Onotole1 | 242,397,687 | false | null | package ru.memebattle.common.dto
data class AuthenticationResponseDto(val token: String)
| 0 | Kotlin | 0 | 3 | fd2b1e526af65649b734810ef3bcdb9d4ea7539a | 90 | memebattle-template | Apache License 2.0 |
theme-m3/schedules/schedules-feature/src/main/kotlin/org/gdglille/devfest/android/theme/m3/schedules/feature/ScheduleListOrientable.kt | GerardPaligot | 444,230,272 | false | {"Kotlin": 653807, "Swift": 114556, "Shell": 1148, "Dockerfile": 369} | package org.gdglille.devfest.android.theme.m3.schedules.feature
import android.content.res.Configuration
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.pager.HorizontalPager
import androidx.compose.foundation.pager.P... | 11 | Kotlin | 6 | 127 | 821d903836d23effe8830f16f646898a88cc7406 | 1,797 | conferences4hall | Apache License 2.0 |
src/main/services/challenge/GetChainsForChallengeService.kt | ncent-archive | 150,326,270 | false | {"Kotlin": 352866, "JavaScript": 7544, "Makefile": 563, "Shell": 222} | package main.services.challenge
import framework.models.idValue
import kotlinserverless.framework.services.SOAResult
import kotlinserverless.framework.services.SOAResultType
import main.daos.*
import main.helpers.ChallengeHelper
import main.services.transaction.GetProvidenceChainService
import main.services.transactio... | 16 | Kotlin | 2 | 2 | 802160f3332c4b6d63d4219067848e38a689c48b | 2,510 | ncent-api-v2 | MIT License |
module/notification/src/main/java/me/pxq/eyepetizer/notification/ui/PrivateFragment.kt | drkingwater | 279,571,591 | false | null | package me.pxq.eyepetizer.notification.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import me.pxq.common.R
import me.pxq.common.ui.BaseFragment
/**
* Description: 通知-互动Fragment
* Author : pxq
* Date : 2020/8/23 4:31 PM
*/
class InteractFragm... | 0 | null | 4 | 15 | 0feb6ce3cbd9d396ef79d7bd4e6da60f11a13f2c | 713 | eyepetizer-kotlin | Apache License 2.0 |
app/src/main/java/me/capcom/smsgateway/modules/messages/MessagesService.kt | capcom6 | 503,827,141 | false | null | package me.capcom.smsgateway.modules.messages
import android.Manifest
import android.app.Activity
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Build
import android.telephony.SmsManager
imp... | 5 | null | 8 | 39 | 1d992f096fdfcc060855c71e4bedf9b684613ca1 | 13,588 | android-sms-gateway | Apache License 2.0 |
library/src/main/java/com/github/pelmenstar1/rangecalendar/CompatDateFormatter.kt | pelmenstar1 | 454,918,220 | false | null | package com.github.pelmenstar1.rangecalendar
import android.content.Context
import android.os.Build
import com.github.pelmenstar1.rangecalendar.utils.getLocaleCompat
import java.text.FieldPosition
import java.text.SimpleDateFormat
import java.util.Date
import java.util.Locale
internal class CompatDateFormatter(contex... | 6 | Kotlin | 0 | 10 | 839345e66f6b06336c3df8221d0f0f51622f0022 | 2,286 | RangeCalendar | MIT License |
src/main/kotlin/io/zeko/restapi/core/security/JWTAuthHandler.kt | darkredz | 259,352,372 | false | null | package io.zeko.restapi.core.security
import io.vertx.core.Handler
import io.vertx.core.http.HttpHeaders
import io.vertx.ext.web.RoutingContext
import io.vertx.ext.auth.jwt.JWTAuth
import io.zeko.restapi.core.security.JWTAuthHelper
import io.zeko.restapi.core.utilities.endJson
open class JWTAuthHandler(
protected... | 3 | Kotlin | 2 | 18 | b7063e66ff90ae945293fc441eb000c021118300 | 2,218 | zeko-restapi-framework | Apache License 2.0 |
app/src/androidTest/java/com/petrulak/cleankotlin/ui/example2/Example2ActivityTest.kt | Petrulak | 104,648,833 | false | null | package com.petrulak.cleankotlin.ui.example2
import android.content.Intent
import android.support.test.InstrumentationRegistry
import android.support.test.espresso.Espresso.onView
import android.support.test.espresso.assertion.ViewAssertions.matches
import android.support.test.espresso.matcher.ViewMatchers.withId
impo... | 0 | Kotlin | 10 | 111 | 51033f30ecdb9573000454f1b8890d20c2438002 | 2,181 | android-kotlin-mvp-clean-architecture | MIT License |
app/src/main/java/com/bura/kotlinnotes/NoteDatabase.kt | vikrorcz | 380,305,629 | false | null | package com.bura.kotlinnotes
import android.content.Context
import androidx.lifecycle.LifecycleCoroutineScope
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import ... | 0 | Kotlin | 0 | 0 | f4082628f19632ed401deb5544f1c703fbaf7872 | 1,392 | KotlinNotes | MIT License |
src/main/kotlin/com/coditory/gradle/build/DetektConfiguration.kt | coditory | 250,102,071 | false | null | package com.coditory.gradle.build
import io.gitlab.arturbosch.detekt.Detekt
import io.gitlab.arturbosch.detekt.extensions.DetektExtension
import org.gradle.api.Project
internal object DetektConfiguration {
fun configure(project: Project) {
project.plugins.withId("io.gitlab.arturbosch.detekt") {
... | 0 | Kotlin | 0 | 1 | 22adc5508092832cbb9811f973ae69014c58fbb8 | 1,105 | gradle-build-plugin | MIT License |
dist/src/main/kotlin/kr/toxicity/hud/manager/ListenerManagerImpl.kt | toxicity188 | 766,189,896 | false | null | package kr.toxicity.hud.manager
import kr.toxicity.hud.api.listener.HudListener
import kr.toxicity.hud.api.manager.ListenerManager
import kr.toxicity.hud.api.update.UpdateEvent
import kr.toxicity.hud.resource.GlobalResource
import kr.toxicity.hud.util.armor
import kr.toxicity.hud.util.ifNull
import org.bukkit.attribut... | 4 | null | 7 | 87 | 75d3aef889effb28cfe229f4cd22689ef85b3c7d | 3,342 | BetterHud | MIT License |
src/main/kotlin/io/mustelidae/otter/sumatrana/api/domain/slack/convertor/SlackPayloadConvertor.kt | otter-world | 595,030,375 | false | null | package io.mustelidae.otter.sumatrana.api.domain.slack.convertor
import io.mustelidae.otter.sumatrana.api.domain.sentry.Sentry
import io.mustelidae.otter.sumatrana.api.domain.sentry.SentryResources
import io.mustelidae.otter.sumatrana.api.domain.slack.SlackResources
interface SlackPayloadConvertor {
fun sentryTo... | 0 | Kotlin | 0 | 0 | dc22b11823bace8b21c3fcf12bb1eb53f6a3db71 | 401 | sumatrana-otter | MIT License |
app/src/main/java/app/books/tanga/data/user/UserRepository.kt | rygelouv | 605,776,570 | false | null | package app.books.tanga.data.user
import app.books.tanga.data.preferences.DefaultPrefDataStoreRepository
import app.books.tanga.entity.User
import app.books.tanga.entity.UserId
import app.books.tanga.firestore.FirestoreDatabase
import app.books.tanga.firestore.FirestoreOperationHandler
import com.google.firebase.auth.... | 7 | null | 0 | 9 | 81cb866802300e3c835a6db36aff2a36a6eeacf8 | 4,224 | Tanga | Apache License 2.0 |
kotest-tests/kotest-tests-timeout/src/test/kotlin/com/sksamuel/kotest/timeout/TimeoutExceptionTest.kt | unaryops | 399,195,014 | true | {"Kotlin": 2969978, "CSS": 352, "Java": 145} | package com.sksamuel.kotest.timeout
import io.kotest.core.spec.style.FunSpec
import io.kotest.core.test.TestResult
import io.kotest.core.test.TestStatus
import io.kotest.matchers.shouldBe
import kotlinx.coroutines.delay
import kotlin.time.Duration
import kotlin.time.milliseconds
// tests that the values in the timeou... | 0 | null | 0 | 0 | 77ce26af5690956fc29b8adf4ff14abbdda188ec | 2,851 | kotest | Apache License 2.0 |
quiz/src/test/kotlin/no/group3/springQuiz/quiz/model/CategoryJPATest.kt | husjoh15 | 130,742,823 | true | {"Kotlin": 125433, "Shell": 38808, "Batchfile": 29964, "Java": 14426} | package no.group3.springQuiz.quiz.model
import no.group3.springQuiz.quiz.model.entity.Category
import no.group3.springQuiz.quiz.model.entity.Question
import no.group3.springQuiz.quiz.model.repository.CategoryRepository
import org.junit.Assert.assertNotNull
import org.junit.Test
import org.junit.runner.RunWith
import o... | 0 | Kotlin | 0 | 0 | 156b74477a3c304eda5bedaefea6fd7f0f640976 | 925 | SpringQuiz | MIT License |
app/src/main/java/com/example/benne/daisyapp2/playback/DaisyPlaybackPreparer.kt | m760622 | 163,889,029 | true | {"Kotlin": 144211, "Java": 51603} | package com.example.benne.daisyapp2.playback
import android.net.Uri
import android.os.Bundle
import android.os.ResultReceiver
import android.support.v4.media.MediaBrowserCompat
import android.support.v4.media.MediaMetadataCompat
import android.support.v4.media.session.PlaybackStateCompat
import android.util.Log
import... | 0 | Kotlin | 0 | 0 | 3cff9202d8ec94f1fcefddd02b08956ec95222c8 | 4,753 | mobile-ebook-player | Apache License 2.0 |
compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/secondaryConstructor.kt | JetBrains | 3,432,266 | false | null | // MEMBER_CLASS_FILTER: org.jetbrains.kotlin.fir.symbols.impl.FirConstructorSymbol
// BODY_RESOLVE
package util
@Target(AnnotationTarget.TYPE)
annotation class Anno(val position: String)
const val prop = "str"
abstract class AbstractClass<T>
class <caret>MyClass() : @Anno("super type call $prop") AbstractClass<@Ann... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 409 | kotlin | Apache License 2.0 |
spring-data-cassandra/src/test/kotlin/org/springframework/data/cassandra/core/ReactiveUpdateOperationExtensionsUnitTests.kt | spring-projects | 2,183,665 | false | null | /*
* Copyright 2018-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 39 | null | 311 | 379 | 67d8e597ae900b1c2f1eb145e76755cb25a1bb57 | 1,993 | spring-data-cassandra | Apache License 2.0 |
native/native.tests/tests/org/jetbrains/kotlin/konan/test/blackbox/EchoServerTest.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-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@file:Suppress("JUnitTestCaseWithNoTests")
package org.jetbrains.kotlin.konan.test.blackbox
import com.intel... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 3,519 | kotlin | Apache License 2.0 |
plugin/src/main/kotlin/io/pulsarRPC/plugin/main.kt | geomagilles | 515,543,252 | false | null | package io.pulsarRPC.plugin
import com.salesforce.jprotoc.ProtocPlugin
fun main(args: Array<String>) {
if (args.isEmpty()) {
ProtocPlugin.generate(Plugin())
} else {
ProtocPlugin.debug(Plugin(), args[0])
}
}
| 0 | Kotlin | 0 | 2 | 471168e344526a138c910ca9d7ee68bd2a9d5c02 | 238 | pulsarRPC | Apache License 2.0 |
app/src/main/java/cash/z/ecc/android/ui/send/AutoShieldViewModel.kt | zcash | 223,814,143 | false | null | package cash.z.ecc.android.ui.send
import androidx.lifecycle.ViewModel
import cash.z.ecc.android.di.DependenciesHolder
import cash.z.ecc.android.ext.Const
import cash.z.ecc.android.lockbox.LockBox
import cash.z.ecc.android.sdk.Synchronizer
import cash.z.ecc.android.sdk.ext.ZcashSdk
import cash.z.ecc.android.sdk.ext.co... | 48 | Kotlin | 21 | 19 | a06bd19d92aee8f928de995ca24d787d7ca47765 | 5,347 | zcash-android-wallet | MIT License |
retrofit/src/main/java/retrofit2/KotlinExtensions.kt | SnoopyCodeX | 220,791,983 | false | null | /*
* Copyright (C) 2018 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | null | 0 | 1 | d25a50a29ff8f1ab1196b5835930591cd062c1f6 | 3,111 | retrofit | Apache License 2.0 |
shared/src/main/kotlin/io/github/aplcornell/viaduct/syntax/types/Type.kt | apl-cornell | 169,159,978 | false | {"Kotlin": 1117382, "Java": 43793, "C++": 13898, "Lex": 12293, "Python": 11983, "Dockerfile": 1951, "Makefile": 1762, "SWIG": 1212, "Shell": 950} | package io.github.aplcornell.viaduct.syntax.types
import io.github.aplcornell.viaduct.prettyprinting.PrettyPrintable
/** A type assignable to data or computations. */
interface Type : PrettyPrintable
| 31 | Kotlin | 4 | 20 | 567491fdcfd313bf287b8cdd374e80f1e005ac62 | 202 | viaduct | MIT License |
app/src/main/java/com/keshavindustryfsm/features/viewAllOrder/interf/NewOrderSizeQtyDelOnClick.kt | DebashisINT | 683,953,107 | false | null | package com.keshavindustryfsm.features.viewAllOrder.interf
import com.keshavindustryfsm.app.domain.NewOrderGenderEntity
import com.keshavindustryfsm.features.viewAllOrder.model.ProductOrder
import java.text.FieldPosition
interface NewOrderSizeQtyDelOnClick {
fun sizeQtySelListOnClick(product_size_qty: ArrayList<P... | 0 | Kotlin | 0 | 0 | 1fe9474dbd328a18c1adaaca32036fda2b02ac53 | 408 | KeshavIndustry | Apache License 2.0 |
clion-plugin/src/main/kotlin/org/utbot/cpp/clion/plugin/client/handlers/CoverageAndResultsHandler.kt | UnitTestBot | 414,561,684 | false | {"C++": 1727348, "Kotlin": 269507, "C": 249924, "TypeScript": 230111, "Shell": 28129, "CMake": 23083, "JavaScript": 14798, "HTML": 13208, "CSS": 8653, "Python": 2980, "Batchfile": 882, "Makefile": 648} | package org.utbot.cpp.clion.plugin.client.handlers
import com.intellij.coverage.CoverageDataManager
import com.intellij.coverage.CoverageEngine
import com.intellij.coverage.CoverageRunner
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.project.Project
import kotlinx.coroutines.Dispatchers... | 117 | C++ | 21 | 95 | b39958f776d32c3caa9cb5c367f56593be13e85b | 4,569 | UTBotCpp | Apache License 2.0 |
compiler/testData/diagnostics/tests/inference/implicitInvokeInObjectWithFunctionalArgument.kt | gigliovale | 89,726,097 | false | null | // CHECK_TYPE
// DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE
object TestClass {
inline operator fun <T> invoke(task: () -> T) = task()
}
fun test(s: String): String {
val a = TestClass { TestClass { TestClass } }
a checkType { _<TestClass>() }
<!UNREACHABLE_CODE!>val b =<!> TestClass { return s ... | 181 | null | 5748 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 379 | kotlin | Apache License 2.0 |
platform/lang-impl/src/com/intellij/util/indexing/roots/IndexingRootsCollectionUtil.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:JvmName("IndexingRootsCollectionUtil")
package com.intellij.util.indexing.roots
import com.intellij.openapi.diagnostic.thisLogger
import com.intellij.openapi.module.Module
import com.intellij... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 25,851 | intellij-community | Apache License 2.0 |
messaginginapp/src/test/java/io/customer/messaginginapp/testutils/extension/GistExtensions.kt | customerio | 355,691,391 | false | {"Kotlin": 563876, "Shell": 10050, "Makefile": 1568, "Ruby": 257} | package io.customer.messaginginapp.testutils.extension
import android.util.Base64
import com.google.gson.JsonParser
import io.customer.commontest.extensions.random
import io.customer.messaginginapp.gist.data.model.Message
import io.customer.messaginginapp.type.InAppMessage
import io.customer.messaginginapp.type.getMes... | 8 | Kotlin | 9 | 13 | 0f20226f294f7dde38121585cc69c5fdfdfbb543 | 1,838 | customerio-android | MIT License |
data/src/main/java/com/yapp/bol/data/model/file/ImageFileUploadResponse.kt | onboard-github | 704,021,246 | false | {"Kotlin": 462718} | package com.yapp.bol.data.model.file
data class ImageFileUploadResponse(
val uuid: String,
val url: String,
)
| 1 | Kotlin | 0 | 0 | cb84e105e69d1e885e9b6b29ba007e192e36c403 | 119 | onboard-aos | Apache License 2.0 |
backend/src/main/kotlin/metrik/project/domain/service/buddy/BuddyDTO.kt | thoughtworks | 351,856,572 | false | {"Kotlin": 554181, "TypeScript": 146367, "Shell": 6226, "JavaScript": 6197, "Dockerfile": 2452, "HTML": 354, "Less": 341} | package metrik.project.domain.service.buddy
import metrik.infrastructure.utlils.toTimestamp
import java.time.Duration
import java.time.OffsetDateTime
data class ProjectDTO(
val name: String = "",
val status: String = ""
)
data class PipelineDTO(
val id: Int = 0,
val project: ProjectDTO = ProjectDTO()... | 19 | Kotlin | 86 | 348 | def6a52cb7339f6a422451710083177b9c79689a | 1,957 | metrik | MIT License |
main/src/test/java/com/work/theIsle/SpellBook.kt | Tiannuo | 498,562,269 | false | {"Kotlin": 218272, "Java": 43175} | package com.work.theIsle
import com.work.supportlib.LoggerUtils
import java.io.IOException
import kotlin.jvm.Throws
/**
* @Author TIKOU
* @Date 2022/8/15-12:53
* @Email <EMAIL> & <EMAIL>
* @Description
*/
class SpellBook {
@JvmField()
val spells = mapOf("A" to 3, "B" to 4)
public fun spell() {
... | 0 | Kotlin | 2 | 4 | bf02c12830d80c6bcf7441c50c3f685d322fdf53 | 508 | AndroidWork | Apache License 2.0 |
src/main/kotlin/io/unthrottled/doki/notification/UpdateNotification.kt | Rand01ph | 319,239,521 | true | {"Kotlin": 239136, "Shell": 284} | package io.unthrottled.doki.notification
import com.intellij.ide.plugins.PluginManagerCore.getPlugin
import com.intellij.ide.plugins.PluginManagerCore.getPluginOrPlatformByClassName
import com.intellij.notification.Notification
import com.intellij.notification.NotificationDisplayType
import com.intellij.notification.N... | 0 | null | 0 | 0 | 6b7d7d729122e7fb771e5710a315d86af03dc395 | 5,238 | doki-theme-jetbrains | MIT License |
app/src/main/java/com/boreal/ultimatetest/modules/locations/data/DefaultLocationsRepository.kt | baudelioandalon | 853,655,370 | false | {"Kotlin": 129014} | package com.boreal.ultimatetest.modules.locations.data
import com.boreal.ultimatetest.modules.locations.data.get_locations.GetListLocationsDataSource
import com.boreal.ultimatetest.modules.locations.domain.interfaces.LocationsRepository
import kotlinx.coroutines.flow.flow
import javax.inject.Inject
class DefaultLocat... | 0 | Kotlin | 0 | 0 | 29d5733fb3b9949665ef0da28df9bfc4c8b69b7d | 733 | UltimateTest | Apache License 2.0 |
retrofit/src/main/java/com/xmartlabs/bigbang/retrofit/helper/ServiceErrorHandler.kt | xmartlabs | 50,346,596 | false | {"Kotlin": 232568, "Shell": 834} | package com.xmartlabs.bigbang.retrofit.helper
import com.xmartlabs.bigbang.core.helper.GeneralErrorHelper
import com.xmartlabs.bigbang.core.helper.ServiceHelper
import com.xmartlabs.bigbang.core.log.LoggerTree
import com.xmartlabs.bigbang.retrofit.exception.ServiceExceptionWithMessage
import retrofit2.HttpException
im... | 1 | Kotlin | 11 | 51 | 74827bec72f607d909fcc923f53cf19d0152e732 | 2,145 | bigbang | Apache License 2.0 |
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/modifiers/renderers/KtModifiersFilter.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.api.renderer.declarations.modifiers.renderers
import com.intellij.psi.t... | 154 | Kotlin | 5566 | 45,025 | 8a69904d02dd3e40fae5f2a1be4093d44a227788 | 2,892 | kotlin | Apache License 2.0 |
core/domain/src/main/kotlin/com/merxury/blocker/core/domain/UpdateRuleMatchedAppUseCase.kt | lihenggui | 115,417,337 | false | null | /*
* Copyright 2023 Blocker
*
* 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 ... | 25 | null | 54 | 988 | 9696c391c64d1aa4a74384d22b4433fb7c67c890 | 2,999 | blocker | Apache License 2.0 |
client/src/main/java/org/phoenixframework/liveview/ui/modifiers/Actions.kt | liveview-native | 459,214,950 | false | {"Kotlin": 2229783, "Elixir": 104334, "ANTLR": 4846} | package org.phoenixframework.liveview.ui.modifiers
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.clickable
import androidx.compose.foundation.combinedClickable
import androidx.compose.foundation.selection.selectable
import androidx.compose.foundation.selection.toggleab... | 114 | Kotlin | 3 | 99 | 966beddce2bbf216f85b908e9ec8a43bc572433c | 8,898 | liveview-client-jetpack | MIT License |
kotlin-mui-icons/src/main/generated/mui/icons/material/Add.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/Add")
package mui.icons.material
@JsName("default")
external val Add: SvgIconComponent
| 12 | null | 5 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 170 | kotlin-wrappers | Apache License 2.0 |
iteration8/music-matters/mobile/src/main/java/com/odesa/musicMatters/di/MobileDiModule.kt | Odhiambo-Michael-Allan | 740,198,682 | false | {"Kotlin": 9540063} | package com.odesa.musicMatters.di
import android.content.Context
import com.odesa.musicMatters.core.common.di.CommonDiModule
import com.odesa.musicMatters.core.data.di.DataDiModule
class MobileDiModule( context: Context ) {
private val dataDiModule = DataDiModule( context )
private val commonDiModule = Common... | 0 | Kotlin | 0 | 3 | 05ad5e08002a78958ed7763e6685a0e15f635fae | 689 | music-matters | Apache License 2.0 |
sample/shared/src/commonMain/kotlin/App.kt | ismai117 | 738,651,050 | false | {"Kotlin": 51564, "Ruby": 4552, "Swift": 1167, "Shell": 579, "HTML": 573, "JavaScript": 475} | import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material3.Button
import androidx.compose.m... | 0 | Kotlin | 2 | 99 | e2437955707dee7a549c575ec27ea8f210b42143 | 2,209 | kottie | Apache License 2.0 |
src/test/resources/examples/pathLevelParameters/client/OAuth.kt | cjbooms | 229,844,927 | false | null | package examples.okHttpClient.client
import okhttp3.Authenticator
import okhttp3.Interceptor
import okhttp3.Request
import okhttp3.Response
import okhttp3.Route
class OAuth2(val accessToken: () -> String) : Authenticator, Interceptor {
override fun authenticate(route: Route?, response: Response): Request =
... | 33 | Kotlin | 41 | 99 | 81a003c45e518573a871621aef1a48599735c86f | 700 | fabrikt | Apache License 2.0 |
chronolens-core/src/main/kotlin/org/chronolens/core/model/ListEdit.kt | andreihh | 83,168,079 | false | null | /*
* Copyright 2017-2021 <NAME> <<EMAIL>>
*
* 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 ... | 0 | Kotlin | 1 | 4 | 27f7f468e864638721290c8ae98e5a46008843ee | 4,144 | chronolens | Apache License 2.0 |
AnylineExamples/app/src/main/java/com/anyline/examples/ScanActivity.kt | Anyline | 67,148,662 | false | {"Kotlin": 32570} | package com.anyline.examples
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.MenuItem
import android.view.View
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import com.anyline.examples.data... | 0 | Kotlin | 26 | 22 | 124f5ff3d3fbe49e87ff0f91d27b74944d466c3a | 11,141 | anyline-ocr-examples-android | Apache License 2.0 |
camera/camera-camera2-pipe-integration/src/main/java/androidx/camera/camera2/pipe/integration/compat/quirk/DeviceQuirksLoader.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 30 | Kotlin | 984 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 6,789 | androidx | Apache License 2.0 |
typescript-kotlin/src/main/kotlin/typescript/updateDelete.kt | turansky | 393,199,102 | false | null | // Automatically generated - do not modify!
@file:JsModule("typescript")
@file:JsNonModule
package typescript
/** @deprecated Use `factory.updateDeleteExpression` or the factory supplied by your transformation context instead. */
/*
external val updateDelete: (node: DeleteExpression, expression: Expression) => Delet... | 0 | Kotlin | 1 | 10 | bcf03704c0e7670fd14ec4ab01dff8d7cca46bf0 | 335 | react-types-kotlin | Apache License 2.0 |
http_server_servlet/src/test/kotlin/com/hexagonkt/http/server/servlet/ServletServerTest.kt | mrpascal1 | 248,485,404 | true | {"Kotlin": 421825, "HTML": 25440, "Scala": 3554, "JavaScript": 2701, "Dockerfile": 2196, "CSS": 1122, "Shell": 894} | package com.hexagonkt.http.server.servlet
import com.hexagonkt.http.client.Client
import com.hexagonkt.http.client.ahc.AhcAdapter
import com.hexagonkt.http.server.Router
import io.mockk.Runs
import io.mockk.every
import io.mockk.just
import io.mockk.mockk
import org.eclipse.jetty.server.Server as JettyServer
import or... | 0 | Kotlin | 0 | 0 | a923180e63d27f3cf5f358d3808b4c1a54163d69 | 1,916 | hexagon | MIT License |
common-api/src/main/java/de/pbauerochse/worklogviewer/timereport/Project.kt | pbauerochse | 34,003,778 | false | null | package de.pbauerochse.worklogviewer.timereport
/**
*
*/
open class Project(
/**
* Unique ID to distinguish this [Issue]
* from others. This field contains the
* technical id (e.g. Database Id from the source system)
*/
val id: String,
/**
* The full name of this [Project]
... | 7 | null | 10 | 38 | 7bd7ca9a1eed08184bf30400160d424bee2ee258 | 830 | youtrack-worklog-viewer | MIT License |
src/main/kotlin/de/gesellix/docker/compose/types/PlacementPreferences.kt | docker-client | 84,723,064 | false | null | package de.gesellix.docker.compose.types
data class PlacementPreferences(
var spread: String
)
| 5 | Kotlin | 4 | 19 | aae581d14e547f8905154a877aa1f8f999449a93 | 106 | docker-compose-v3 | MIT License |
client/app/src/main/java/com/hao/heji/ui/calendar/CalendarNoteFragment.kt | RUANHAOANDROID | 324,589,079 | false | null | package com.hao.heji.ui.calendar
import android.content.Context
import android.view.View
import androidx.lifecycle.ViewModelProvider
import androidx.navigation.Navigation
import androidx.recyclerview.widget.LinearLayoutManager
import com.blankj.utilcode.util.LogUtils
import com.chad.library.adapter.base.entity.node.Ba... | 0 | null | 15 | 45 | 879db94cf10b19e04f239fba9c987abe5806936a | 6,468 | heji | Apache License 2.0 |
build-logic/convention/src/main/kotlin/cn/wj/android/cashbook/buildlogic/ComposeAndroid.kt | WangJie0822 | 365,932,300 | false | {"Kotlin": 1528829, "Java": 1405038, "Batchfile": 263} | package cn.wj.android.cashbook.buildlogic
import com.android.build.api.dsl.CommonExtension
import org.gradle.api.Project
import org.gradle.api.artifacts.VersionCatalogsExtension
import org.gradle.kotlin.dsl.dependencies
import org.gradle.kotlin.dsl.getByType
import org.gradle.kotlin.dsl.withType
import org.jetbrains.k... | 0 | Kotlin | 8 | 30 | b08893d4105673f0e5ab93e9c47e48cb8cf7f86b | 2,464 | Cashbook | Apache License 2.0 |
app/src/main/java/com/greedygame/musicwiki/presentation_mw/viewmodels/ViewModelAlbumDF.kt | himanshuyadv | 628,220,734 | false | null | package com.greedygame.musicwiki.presentation_mw.viewmodels
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.greedygame.musicwiki.data_mw.api_retrofit.ApiClient
import com.greedygame.musicwiki.data_mw.mo... | 0 | Kotlin | 0 | 0 | 7d3f179715ff2f64581fc487058e25cf7f6adec0 | 2,212 | music_wiki | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.