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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
editorkit/src/main/kotlin/com/blacksquircle/ui/editorkit/internal/ScrollableEditText.kt | SagerNet | 376,384,919 | false | null | /*
* Copyright 2021 Squircle IDE 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 0 | null | 5 | 3 | e7d1d0dca2c3e9b313f28dc34df1e12282f89206 | 4,638 | editorkit | Apache License 2.0 |
app/src/main/java/com/erickfelipebrittes/mobile/eventos/activities/PokemonListViewModel.kt | erickbrittes | 342,422,401 | false | null | package com.erickfelipebrittes.mobile.eventos.activities
import android.content.Context
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.erickfelipebrittes.mobile.eventos.services.BackendService
import com.erickfelipebrittes.mobile.evento... | 0 | Kotlin | 0 | 0 | c1b07924a083be3525e76945d06a378165c69204 | 1,947 | eventos | Apache License 2.0 |
sample/src/jsMain/kotlin/jslib/walletconnect/index.module_@walletconnect_client.kt | eqoty-labs | 473,021,738 | false | null | @file:JsModule("@walletconnect/client")
@file:JsNonModule
@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS")
package jslib.walletconnect
import kotlin.js.*
import org.khronos.webgl.*
import org.w3c.dom.*
import org.w3c.dom.events.*
impor... | 6 | Kotlin | 2 | 7 | 30a0e9a0c49ad6280c3c72ac1606b54f97a63245 | 1,598 | secretk | MIT License |
src/main/kotlin/io/github/dankosik/starter/invest/contract/operation/portfolio/BasePortfolioHandler.kt | Dankosik | 721,616,043 | false | {"Kotlin": 355087} | package io.github.dankosik.starter.invest.contract.operation.portfolio
interface BasePortfolioHandler
fun MutableCollection<Any>.getPortfolioHandlers() = mapNotNull {
when (it) {
is CoroutinePortfolioHandler -> it
is AsyncPortfolioHandler -> it
is BlockingPortfolioHandler -> it
els... | 1 | Kotlin | 0 | 8 | c2cc72bb7d5e0e4e4c66d8fbb91ddd72f8dd45b1 | 337 | invest-api-java-sdk-starter | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/welcometoprison/model/arrivals/confirmedarrival/ArrivalListenerTest.kt | ministryofjustice | 397,318,042 | false | null | package uk.gov.justice.digital.hmpps.welcometoprison.model.arrivals.confirmedarrival
import com.microsoft.applicationinsights.TelemetryClient
import org.junit.jupiter.api.Test
import org.mockito.kotlin.mock
import org.mockito.kotlin.refEq
import org.mockito.kotlin.verify
import org.mockito.kotlin.whenever
import uk.go... | 0 | Kotlin | 0 | 0 | 08d684fc86e48330e2dd06728dca4c5dc864366f | 2,851 | hmpps-welcome-people-into-prison-api | MIT License |
src/test/kotlin/fr/o80/aoc/day20/part2/input1.kt | olivierperez | 310,899,127 | false | null | package fr.o80.aoc.day20.part2
const val result_d20_p2_1 = 2
const val input_d20_p2_1 = "14"
| 0 | Kotlin | 1 | 2 | a52ea4e58b273a1aec55500802ad210c24257498 | 94 | AdventOfCode-KotlinStarterKit | Apache License 2.0 |
app/src/main/java/com/bangkit/faniabdullah_bfaa/ui/setting/SettingActivity.kt | faniabdullah | 346,223,332 | false | null | package com.bangkit.faniabdullah_bfaa.ui.setting
import android.content.Intent
import android.os.Bundle
import android.provider.Settings
import androidx.appcompat.app.AppCompatActivity
import com.bangkit.faniabdullah_bfaa.R
import com.bangkit.faniabdullah_bfaa.databinding.ActivitySettingBinding
import com.bangkit.fani... | 0 | Kotlin | 0 | 1 | 40e3eb35a7c21b0d5e390dcd6b9b3d8a6634af82 | 2,116 | android-application-fundamentals | MIT License |
sample/home/src/main/java/com/zhangke/krouter/sample/home/HomeDetailScreen.kt | 0xZhangKe | 672,005,213 | false | null | package com.zhangke.krouter.sample.home
import com.zhangke.krouter.Destination
import com.zhangke.krouter.Router
import com.zhangke.krouter.sample.core.Screen
@Destination("screen/home/detail")
class HomeDetailScreen(@Router val router: String = "") : Screen {
override fun content() {
println("HomeDetail... | 0 | Kotlin | 0 | 7 | 4758f227c81eb531af64dbc2f2d989094608ef00 | 355 | KRouter | Apache License 2.0 |
src/test/java/com/github/siosio/upsource/internal/DeleteProjectCommandTest.kt | siosio | 67,378,076 | false | null | package com.github.siosio.upsource.internal
import com.github.siosio.upsource.*
import com.github.siosio.upsource.bean.*
import com.jayway.jsonpath.matchers.*
import com.jayway.jsonpath.matchers.JsonPathMatchers.*
import org.hamcrest.*
import org.hamcrest.CoreMatchers.*
import org.junit.*
import org.junit.Assert.*
imp... | 0 | Kotlin | 0 | 1 | 48bea5bf818b1fed618f1e20ced72a6c5d6eebae | 1,185 | upsource-kotlin-api | MIT License |
app/src/main/java/com/b_lam/resplash/data/photo/model/Photo.kt | b-lam | 69,628,893 | false | null | package com.elbehiry.steller.shared.model
import kotlinx.serialization.Serializable
@Serializable
data class Photo(
val id: String = "",
val created_at: String? = "",
val updated_at: String? = "",
val width: Int? = 0,
val height: Int? = 0,
val color: String? = "#E0E0E0",
val views: Int? = ... | 33 | null | 105 | 569 | 4b13d31134d1c31bd331e92ffe8d410984529212 | 1,685 | Resplash | The Unlicense |
embrace-android-payload/src/main/kotlin/io/embrace/android/embracesdk/internal/payload/DeviceInfo.kt | embrace-io | 704,537,857 | false | null | package io.embrace.android.embracesdk.internal.payload
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
public data class DeviceInfo(
@Json(name = "dm")
val manufacturer: String? = null,
@Json(name = "do")
val model: String? = null,
@Json(nam... | 9 | null | 8 | 134 | 896e9aadf568ba527c76ec66f6f440baed29d1ee | 1,073 | embrace-android-sdk | Apache License 2.0 |
compiler/testData/resolveAnnotations/parameters/byte.kt | JakeWharton | 99,388,807 | false | null | package test
annotation class Ann(
val b1: Byte,
val b2: Byte,
val b3: Byte,
val b4: Byte
)
@Ann(1, 1.toByte(), 128.toByte(), <!CONSTANT_EXPECTED_TYPE_MISMATCH!>128<!>) class MyClass
// EXPECTED: @Ann(b1 = 1.toByte(), b2 = 1.toByte(), b3 = -128.toByte(), b4 = 128) | 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 299 | kotlin | Apache License 2.0 |
src/main/kotlin/br/com/filipeborges/poc/kafka/producerconsumersample/ProducerConsumerSampleApplication.kt | filipeborges | 759,598,447 | false | {"Kotlin": 4238} | package br.com.filipeborges.poc.kafka.producerconsumersample
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class ProducerConsumerSampleApplication
fun main(args: Array<String>) {
runApplication<ProducerConsumerSampleApplicat... | 0 | Kotlin | 0 | 0 | 6fb12f4f90d61e905188a27b6ed2f29f84f1466e | 334 | spring-cloud-stream-functional-example | Apache License 2.0 |
redpulsar-core/src/main/kotlin/com/himadieiev/redpulsar/core/locks/excecutors/MultyInstanceExecutor.kt | himadieievsv | 735,520,568 | false | {"Kotlin": 202138} | package com.himadieiev.redpulsar.core.locks.excecutors
import com.himadieiev.redpulsar.core.locks.abstracts.Backend
import com.himadieiev.redpulsar.core.utils.withRetry
import com.himadieiev.redpulsar.core.utils.withTimeoutInThread
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.c... | 0 | Kotlin | 0 | 1 | 7e4ac8ac1108a2cb294b3815f4a45f9415761709 | 3,691 | redpulsar | Apache License 2.0 |
DSLs/kubernetes/dsl/src/main/kotlin-gen/com/fkorotkov/kubernetes/extensions/supplementalGroups.kt | pambrose | 219,052,707 | false | {"Gradle": 19, "YAML": 1, "INI": 2, "Markdown": 6, "Shell": 1, "JSON": 8, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Kotlin": 346, "Java": 63} | // GENERATED
package com.fkorotkov.kubernetes.extensions
import io.fabric8.kubernetes.api.model.extensions.PodSecurityPolicySpec as extensions_PodSecurityPolicySpec
import io.fabric8.kubernetes.api.model.extensions.SupplementalGroupsStrategyOptions as extensions_SupplementalGroupsStrategyOptions
fun extensions_PodS... | 1 | null | 1 | 1 | 95d79afaf5e0353fc0efcb2842df72f026ae5081 | 595 | k8s-kotlin-dsl | MIT License |
tokisaki-server/src/main/kotlin/io/micro/server/robot/infra/po/FunctionEntity.kt | spcookie | 730,690,607 | false | {"Kotlin": 205742, "Java": 19768} | package io.micro.server.robot.infra.po
import io.micro.core.persistence.BaseEntity
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Table
import org.hibernate.proxy.HibernateProxy
@Table(name = "tokisaki_function")
@Entity
class FunctionEntity : BaseEntity() {
@Colum... | 0 | Kotlin | 0 | 0 | 8e45601817a05f18bfb4b180e6e75c7babda9ca9 | 1,200 | Tokisaki | Apache License 2.0 |
salahtimecalculator/src/main/java/app/muazzin/salah/times/CalculationMethod.kt | qodiriy | 355,300,752 | false | null | package app.muazzin.salah.times
enum class CalculationMethod {
ANGLE, ONE_SEVEN, MIDNIGHT
} | 0 | Kotlin | 0 | 0 | 27438a19f4589a4563af8e53ea712c2a28b48a0c | 96 | SalahTimeCalculator | Apache License 2.0 |
service/src/main/kotlin/de/jnkconsulting/e3dc/easyrscp/service/converter/WallboxDeviceIdsConverter.kt | jnk-cons | 691,762,451 | false | {"Kotlin": 914173} | package de.jnkconsulting.e3dc.easyrscp.service.converter
import de.jnkconsulting.e3dc.easyrscp.api.frame.Frame
import de.jnkconsulting.e3dc.easyrscp.api.frame.tags.WBTag
/**
* Converter to build a list of Ids from a [de.jnkconsulting.e3dc.easyrscp.api.frame.tags.WBTag.CONNECTED_DEVICES] Container
*
* @since 2.3
*... | 5 | Kotlin | 0 | 1 | b30bee512dabc47bd55eb91d598b9feb4b6b4654 | 523 | easy-rscp | MIT License |
projects/core/src/main/kotlin/site/siredvin/digitalitems/xplat/ModCommonHooks.kt | SirEdvin | 653,813,645 | false | null | package site.siredvin.digitalitems.xplat
import net.minecraft.resources.ResourceLocation
import net.minecraft.world.item.CreativeModeTab
import site.siredvin.peripheralium.xplat.PeripheraliumPlatform
import site.siredvin.peripheralium.xplat.XplatRegistries
import site.siredvin.digitalitems.DigitalItemsCore
import site... | 0 | Kotlin | 0 | 0 | 3f0000d833f9555fe29ac63bd545cad4deb313b4 | 1,501 | DigitalItems | MIT License |
src/commonTest/kotlin/com.adamratzman/spotify/utilities/HttpConnectionTests.kt | canaangifford | 333,619,381 | true | {"Kotlin": 642293, "JavaScript": 88} | /* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2021; Original author: Adam Ratzman */
package com.adamratzman.spotify.utilities
import com.adamratzman.spotify.http.HttpConnection
import com.adamratzman.spotify.http.HttpRequestMethod
import com.adamratzman.spotify.runBlockingTest
import kotlin.test.Test
import k... | 0 | null | 0 | 0 | d0e714293a7fb89f96fbf723404040265ec0a211 | 4,117 | spotify-web-api-kotlin | MIT License |
CnuNoticeApp/app/src/main/java/com/mtjin/cnunoticeapp/views/employ/EmployNoticeFragment.kt | mtjin | 266,342,647 | false | null | package com.mtjin.cnunoticeapp.views.employ
import android.content.Intent
import android.os.Bundle
import com.mtjin.cnunoticeapp.R
import com.mtjin.cnunoticeapp.base.BaseFragment
import com.mtjin.cnunoticeapp.utils.constants.EXTRA_NOTICE_DELETE
import com.mtjin.cnunoticeapp.utils.constants.EXTRA_NOTICE_LINK
import com... | 1 | Kotlin | 0 | 6 | 36db5edff842eb414b90f0854da6a482e8d786d3 | 2,176 | cnu-notice-app-releaseversion | MIT License |
src/main/kotlin/engine/graphics/ui/widgets/Combobox.kt | CozmicGames | 580,563,255 | false | {"Kotlin": 612441} | package engine.graphics.ui.widgets
import com.cozmicgames.utils.maths.Corners
import engine.graphics.ui.*
import kotlin.math.max
fun GUI.combobox(data: ComboboxData<*>, maxDropOutHeight: Float? = null): GUIElement {
val layout = getPooledGlyphLayout()
var maxItemWidth = 0.0f
var itemsHeight = 0.0f
da... | 0 | Kotlin | 0 | 0 | bf27eeb3d4e4520f91a54549be9de6fe84446e6f | 2,666 | Sandbox2D | MIT License |
core-ui/src/main/kotlin/de/janniskilian/basket/core/ui/compose/component/BasketFloatingActionButton.kt | janniskilian | 160,101,734 | false | null | package de.janniskilian.basket.core.ui.compose.component
import androidx.compose.foundation.border
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Add
import androidx.compose.material3.FloatingActionButton
import androidx.compose.material3.FloatingActionButtonDefaults
impor... | 0 | Kotlin | 0 | 1 | 30bcd08e9a7f8df8ec1d0590ae1208803321fa8b | 2,091 | basket | Apache License 2.0 |
protocol/osrs-223/src/main/kotlin/net/rsprox/protocol/game/outgoing/model/misc/player/UpdateRunWeight.kt | blurite | 822,339,098 | false | {"Kotlin": 1453055} | package net.rsprox.protocol.game.outgoing.model.misc.player
import net.rsprox.protocol.game.outgoing.model.IncomingServerGameMessage
/**
* Update runweight packet is used to modify the player's current
* equipment and inventory weight, in grams.
*/
public class UpdateRunWeight(
public val runweight: Int,
) : I... | 2 | Kotlin | 4 | 9 | 41535908e6ccb633c8f2564e8961efa771abd6de | 745 | rsprox | MIT License |
src/main/kotlin/coffee/cypher/hexbound/feature/construct/mishap/MishapNoConstruct.kt | Cypher121 | 569,248,192 | false | null | package coffee.cypher.hexbound.feature.construct.mishap
import at.petrak.hexcasting.api.casting.eval.CastingEnvironment
import at.petrak.hexcasting.api.casting.iota.Iota
import at.petrak.hexcasting.api.casting.mishaps.Mishap
import at.petrak.hexcasting.api.pigment.FrozenPigment
import dev.cafeteria.fakeplayerapi.serve... | 0 | Kotlin | 1 | 2 | e48474e0dcc0ceb9b9c4c8d2e7efdd7c7256b592 | 1,094 | hexbound | MIT License |
app/src/main/java/com/namshi/customer/repository/DetailRepository.kt | mohamedebrahim96 | 429,070,819 | false | null | package com.namshi.customer.repository
import androidx.annotation.WorkerThread
import com.namshi.customer.network.NamshiClient
import com.skydoves.sandwich.message
import com.skydoves.sandwich.onError
import com.skydoves.sandwich.onException
import com.skydoves.sandwich.suspendOnSuccess
import kotlinx.coroutines.Corou... | 0 | Kotlin | 1 | 8 | 5a83fd029beb6eb69895503429acc4c53e6c3030 | 1,259 | Namshi-Customer | Apache License 2.0 |
router/core/src/commonMain/kotlin/captain/RouteInfo.kt | aSoft-Ltd | 635,681,621 | false | {"Kotlin": 27406, "JavaScript": 110} | @file:JsExport
@file:Suppress("NON_EXPORTABLE_TYPE")
package captain
import kiota.Url
import kiota.internal.indent
import kollections.List
import kollections.Map
import kotlinx.JsExport
data class RouteInfo<out C>(
val parent: RouteInfo<C>?,
val match: UrlMatch,
val options: List<Url>,
val matches: M... | 0 | Kotlin | 1 | 9 | ae7f84fe9717930bdedcbf54d30936dd9e281f92 | 773 | captain | MIT License |
src/main/kotlin/br/com/pix/errors/handlers/ErrorHandler.kt | cbbathaglini | 382,929,665 | true | {"Kotlin": 81129, "Dockerfile": 146} | package br.com.pix.errors.handlers
import br.com.zup.edu.shared.grpc.ExceptionHandlerInterceptor
import io.micronaut.aop.Around
import io.micronaut.context.annotation.Type
import kotlin.annotation.AnnotationTarget.*
@MustBeDocumented
@Retention(AnnotationRetention.RUNTIME)
@Target(CLASS, FILE, FUNCTION, PROPERTY_GETT... | 0 | Kotlin | 0 | 0 | 4b1ed0cf7b8b387bda9b62e8b9037fdca5743f88 | 423 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
app/src/main/java/com/skydoves/pokedexar/ui/home/GVAdapter.kt | fosemfhtm | 447,322,435 | false | null | package com.skydoves.pokedexar.ui.home
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.LayoutInflater.*
import android.view.View
import android.view.ViewGroup
import android.widget.AbsListView
import android.widget.BaseAdapter
import android.widget.Gr... | 0 | Kotlin | 0 | 0 | e0e6120209c87a5ece1bc5dd816ca7607a55dc3d | 2,302 | Pokemon_RealGo | Apache License 2.0 |
goblin-queue/src/main/java/org/goblinframework/queue/consumer/builder/QueueConsumerBuilderManager.kt | xiaohaiz | 206,246,434 | false | {"Java": 807217, "Kotlin": 650572, "FreeMarker": 27779, "JavaScript": 968} | package org.goblinframework.queue.consumer.builder
import org.goblinframework.api.annotation.Singleton
import org.goblinframework.api.annotation.ThreadSafe
import org.goblinframework.core.service.GoblinManagedBean
import org.goblinframework.core.service.GoblinManagedObject
import org.goblinframework.queue.GoblinQueueE... | 0 | Java | 6 | 9 | b1db234912ceb23bdd81ac66a3bf61933b717d0b | 1,382 | goblinframework | Apache License 2.0 |
app/src/main/java/com/overeasy/simpletodo/ViewModel.kt | lht1324 | 299,323,244 | false | null | package com.overeasy.simpletodo
import android.app.Application
import android.util.Log
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import io.reactivex.subjects.PublishSubject
import java.util.*
import kotlin.collections.ArrayList
import androidx.lifecycle.ViewModelProvider
import com.... | 0 | Kotlin | 0 | 0 | a26bfe38ff9757faaf7020674f6827ce6a217aa2 | 7,128 | Simple-ToDo | MIT License |
sample/src/main/kotlin/com/example/kotlin/IfStatementFlattening.kt | hendraanggrian | 556,969,715 | false | {"Kotlin": 142233, "Python": 38189, "Java": 4398, "Groovy": 324} | package com.example.kotlin
class IfStatementFlattening<E>(val elements: List<E>?) {
fun iterate() {
if (elements == null) {
return
}
for (element in elements) {
// ...
}
}
}
| 0 | Kotlin | 0 | 1 | 93fbd6f37a24a1944413d19ce89ffcce16cd6eac | 239 | rulebook | Apache License 2.0 |
buildSrc/src/main/kotlin/io/getstream/chat/android/command/release/output/FilePrinter.kt | GetStream | 177,873,527 | false | {"Kotlin": 8578375, "MDX": 2150736, "Java": 271477, "JavaScript": 6737, "Shell": 5229} | package io.getstream.chat.android.command.release.output
import java.io.Closeable
import java.io.File
import java.io.PrintWriter
class FilePrinter(file: File) : Closeable, Printer {
private val filePrinter = file.printWriter()
override fun close() {
filePrinter.close()
}
override fun printl... | 24 | Kotlin | 273 | 1,451 | 8e46f46a68810d8086c48a88f0fff29faa2629eb | 485 | stream-chat-android | FSF All Permissive License |
app/src/main/java/com/videogo/ui/others/CollectDeviceInfoActivity.kt | Ezviz-Open | 228,384,831 | false | null | @file:Suppress("UNUSED_PARAMETER")
package com.videogo.ui.others
import android.os.Bundle
import android.text.TextUtils
import android.view.View
import com.videogo.ui.playback.EZPlayBackListActivity
import com.videogo.ui.realplay.EZRealPlayActivity
import ezviz.ezopensdk.R
import ezviz.ezopensdkcommon.common.RootActi... | 2 | null | 27 | 57 | 02238b5cd089f5f40695e387ada3adb4cfd0acdc | 1,445 | EzvizSDK-Android | Apache License 2.0 |
app/src/main/java/com/example/websearch/APIinterface.kt | MineGamer69 | 623,623,921 | false | null | //Made By Aaryan Kapoor & Matt Nova
package com.example.websearch
import android.os.Build
import com.google.gson.JsonElement
import com.google.gson.JsonObject
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Call
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonCo... | 0 | Kotlin | 0 | 0 | d9206d37cfddb7cf27d5995b363389b112d37764 | 2,814 | WebSearch | MIT License |
src/main/kotlin/org/openbroker/se/privateunsecuredloan/model/LoanPurpose.kt | open-broker | 141,698,724 | false | null | package org.openbroker.model
enum class LoanPurpose {
/**
* To finance the purchase of a car or similar
*/
CAR,
/**
* To finance costs relating to a divorce
*/
DIVORCE_PROCEEDINGS,
/**
* To finance education of some kind
*/
EDUCATION,
/**
* To finance heal... | 2 | null | 2 | 2 | e5c4fe95b242bb288ddba3f1f4b6086c9bad61da | 745 | open-broker-jvm | MIT License |
kotlin-basics/app/src/main/java/com/example/kotlinbasics/KotlinBasics4.kt | luannguyen252 | 371,359,679 | false | null | package com.example.kotlinbasics
fun main() {
/*
* If Statements and When Expressions
* Control Flows
* If Statements
* */
var age = 17
if(age >= 21){
print("now you may drink in the US")
}
// Else If Statement - only executed if the if statement is not true
else if(age ... | 0 | Kotlin | 0 | 1 | a9b5aef8662a1808042c820c3dfac02e1efd5800 | 2,480 | my-android-journey | MIT License |
app/src/main/java/com/cheise_proj/spiice_ui_challenge/spiice/model/User.kt | alvinmarshall | 249,792,945 | false | null | package com.cheise_proj.spiice_ui_challenge.spiice.model
data class User(
val id: String,
val name: String,
val avatarUrl: String,
val email: String
) | 3 | Kotlin | 1 | 9 | f64214c986ac8d228e5bc627ee847c0a74bd197f | 167 | Spiice-ui-challenge | MIT License |
app/src/main/java/com/example/hiragana/MainActivity.kt | Ankononenko | 746,185,410 | false | {"Kotlin": 19398} | package com.example.hiragana
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.fou... | 0 | Kotlin | 0 | 0 | aa50bc2bb78208822accb1a88653058c59f3cf61 | 12,211 | hiragana-practice | MIT License |
src/test/resources/org/jetbrains/research/ml/dataset/anonymizer/transformations/anonymization/kotlin/data/incorrect_code/in_1_parameter_without_name.kt | JetBrains-Research | 313,572,156 | false | null | package org.jetbrains.research.ml.dataset.anonymizer.transformations.anonymization.kotlin.data.incorrect_code
fun hasZeros(n: Int, var)
| 3 | null | 1 | 1 | d738818867038cea70db998c138091fbaa14e875 | 138 | dataset-anonymizer | Apache License 2.0 |
app/src/main/java/com/codecamp/tripcplaner/model/data/TripRepositoryImplementation.kt | LoayTabbara | 670,059,638 | false | null | package com.codecamp.tripcplaner.model.data
import com.codecamp.tripcplaner.model.data.TripRepository
import com.google.android.gms.maps.model.LatLng
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.withContext
import java.time.LocalDateTime
import javax.inject.In... | 0 | Kotlin | 0 | 0 | bc387afa81c723666b2d4291592ed52155d9dc80 | 3,113 | Trip-C-Planer | MIT License |
compiler/testData/readJavaBinaryClass/ClassWithTypePRefSelf.kt | bbejeck | 3,456,568 | true | null | package test
class ClassWithTypePRefSelf<erased P : java.lang.Enum<P>?>() {
}
| 0 | Java | 0 | 2 | 18c480ba98bc1154eee06530df310fc6361d3933 | 79 | kotlin | Apache License 2.0 |
app/src/main/java/com/a10miaomiao/bilimiao/page/region/RegionFragment.kt | 10miaomiao | 142,169,120 | false | null | package com.a10miaomiao.bilimiao.page.region
import android.annotation.SuppressLint
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.widget.PopupMenu
import androidx.fragment.... | 5 | Kotlin | 12 | 396 | 4b16c8e653d7282675203efbe4fa8f5b6615178e | 5,790 | bilimiao2 | Apache License 2.0 |
src/main/kotlin/kvalidator/rules/Max.kt | Marifeta | 233,282,864 | false | null | package kvalidator.rules
import kotlinx.serialization.json.JsonObject
import kvalidator.getSize
class Max(val value: Int) : Rule() {
override val name: String = "max"
override fun validate(data: JsonObject?, attribute: String): Boolean {
if (data == null) return true
val element = data[attribu... | 0 | null | 3 | 6 | 7515d9cfb2fd9abd8e677e69c7bc1c2ca987d016 | 509 | kvalidator | MIT License |
app/src/main/java/mp/com/boundarycallbacks/TopRatedBoundaryCallbacks.kt | mprasad2510 | 192,157,921 | false | null | package mp.com.boundarycallbacks
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.MutableLiveData
import android.arch.paging.PagedList
import android.util.Log
import mp.com.network.getTopRatedMovies
import mp.com.utils.Constants
import java.util.*
/**
* Created by Kashish on 15-08-2018.
*/
class... | 0 | Kotlin | 0 | 0 | ff4901d039d8317147df66db6d95596d8490fc33 | 4,317 | MoviesApp | MIT License |
ktorfit-lib-common/src/commonMain/kotlin/de/jensklingenberg/ktorfit/converter/builtin/CallConverterFactory.kt | Foso | 203,655,484 | false | null | package de.jensklingenberg.ktorfit.converter
import de.jensklingenberg.ktorfit.Call
import de.jensklingenberg.ktorfit.Callback
import de.jensklingenberg.ktorfit.Ktorfit
import io.ktor.client.call.body
import io.ktor.client.statement.HttpResponse
import kotlinx.coroutines.launch
/**
* Factory that enables the use of ... | 38 | Kotlin | 40 | 985 | 77bdb11430e2c787eb69e3c48780eea99e8a75b4 | 3,542 | Ktorfit | Apache License 2.0 |
app/src/main/kotlin/com/morihacky/android/rxjava/fragments/PlaygroundFragment.kt | kaushikgopal | 22,132,512 | false | null | package com.morihacky.android.rxjava.fragments
import android.content.Context
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import android.widget.ListView
import co... | 10 | null | 1406 | 7,557 | b84865252c203498c1f0a2fa0f751f3c9127a781 | 2,163 | RxJava-Android-Samples | Apache License 2.0 |
plugins/kotlin/compiler-reference-index/tests/testData/compilerIndex/functions/topLevel/operators/hasNext/Main.kt | ingokegel | 72,937,917 | true | null | operator fun Int.iterator() = 42
operator fun Int.has<caret>Next() = false
operator fun Int.next() = 3 | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 102 | intellij-community | Apache License 2.0 |
src/main/kotlin/me/jakejmattson/discordkt/arguments/IntegerRangeArg.kt | DiscordKt | 271,063,846 | false | {"Kotlin": 240237} | package me.jakejmattson.discordkt.arguments
import me.jakejmattson.discordkt.commands.DiscordContext
import me.jakejmattson.discordkt.dsl.internalLocale
import me.jakejmattson.discordkt.locale.inject
/**
* Accepts an integer within a pre-defined range.
*/
public open class IntegerRangeArg(private val min: Int,
... | 1 | Kotlin | 15 | 77 | 07e524f47097e01274486733c50f394ba9d82f7d | 1,065 | DiscordKt | MIT License |
DCC/app/src/main/java/com/rachelleboyette/desertcodecampdemo/ui/main/MainFragment.kt | rtimm17 | 214,676,610 | false | null | package com.rachelleboyette.desertcodecampdemo.ui.main
import android.content.Intent
import androidx.lifecycle.ViewModelProviders
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
i... | 0 | Kotlin | 0 | 0 | 461d0a3ca50de7bd424441081500eed67c08663e | 2,146 | DesertCodeCamp-Kotlin | MIT License |
base/src/main/java/com/otaku/fetch/base/ui/GradientFromImage.kt | snehilrx | 480,652,667 | false | null | package com.otaku.fetch.base.ui
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import android.graphics.drawable.GradientDrawable
import android.graphics.drawable.LayerDrawable
import android.util.AttributeSet
import... | 1 | Kotlin | 0 | 1 | 4198d106c260555b9fa2ded7ddea7e8d6cb24778 | 1,655 | Fetch | Apache License 2.0 |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/StarAndCrescentSolid.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.lineawesomeicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... | 15 | null | 20 | 460 | 651badc4ace0137c5541f859f61ffa91e5242b83 | 3,250 | compose-icons | MIT License |
src/main/kotlin/no/nav/helse/grensekomp/web/api/dto/PostListResponseDto.kt | navikt | 346,295,781 | false | null | package no.nav.helse.grensekomp.web.api.dto
import no.nav.helse.grensekomp.web.api.dto.validation.ValidationProblemDetail
data class PostListResponseDto(
var status: Status,
val validationErrors: List<ValidationProblemDetail>? = emptyList(),
val genericMessage: String? = null,
val referenceNumber: Str... | 0 | Kotlin | 0 | 0 | e13e6e539219178b839e1cb77c30f11842f7b5af | 435 | grensekomp | MIT License |
conduit-frontend/app-android/src/androidMain/kotlin/mikufan/cx/conduit/frontend/app/android/preview/LandingPagePreview.kt | CXwudi | 826,482,545 | false | {"Kotlin": 121573, "HTML": 515} | package mikufan.cx.conduit.frontend.app.android.preview
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import mikufan.cx.conduit.frontend.logic.component.landing.LandingPageComponent
... | 3 | Kotlin | 0 | 0 | 7849393f05675c6e088d01be9d85b1cdbb17eaa4 | 922 | realworld-compose-http4k-example-app | MIT License |
src/main/kotlin/derivean/rest/public/user/endpoint/LoginEndpoint.kt | marek-hanzal | 259,577,282 | false | null | package derivean.rest.public.user.endpoint
import derivean.server.auth.AuthenticatorService
import derivean.server.auth.TicketService
import derivean.storage.repository.UserRepository
import io.ktor.application.*
import io.ktor.auth.*
import io.ktor.request.*
import io.ktor.routing.*
import io.ktor.sessions.*
import i... | 112 | Kotlin | 0 | 1 | 7a485228438c5fb9a61b1862e8164f5e87361e4a | 2,902 | DeRivean | Apache License 2.0 |
sources/base/src/main/java/com/mikyegresl/valostat/base/model/weapon/WeaponDto.kt | sergey-lvovich-kim | 629,918,357 | false | null | package com.mikyegresl.valostat.base.model.weapon
import android.os.Parcelable
import androidx.annotation.StringRes
import com.mikyegresl.valostat.base.R
import com.mikyegresl.valostat.base.model.weapon.shop.WeaponShopDataDto
import com.mikyegresl.valostat.base.model.weapon.skin.WeaponSkinDto
import com.mikyegresl.val... | 0 | Kotlin | 1 | 8 | 216f39b5c6b1f5806fc3141cfae722335f6ea0b3 | 1,029 | ValoStat | Apache License 2.0 |
app/src/main/java/com/wojdor/hearthstonecards/data/service/mapper/ZipResultMapper.kt | wojciechkryg | 147,378,249 | false | null | package com.wojdor.hearthstonecards.data.service.mapper
import com.wojdor.hearthstonecards.data.service.model.CardModel
object ZipResultMapper {
private const val HERO_CARD = "hero"
fun mapToCardModels(objects: Array<Any>): List<CardModel> {
val allCards = mutableListOf<CardModel>()
val card... | 0 | Kotlin | 1 | 1 | 89556379d3613fad00658bb3502b13c2f812e24b | 988 | hearthstone-cards | Apache License 2.0 |
plugins/kotlin/refactorings/kotlin.refactorings.common/src/org/jetbrains/kotlin/idea/refactoring/introduce/introduceUtils.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.refactoring.introduce
import com.intellij.openapi.util.Key
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiWhiteSpace
import org.jetbrains.kotlin.ide... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,993 | intellij-community | Apache License 2.0 |
entities/src/main/java/com/iniongungroup/mobile/droid/newsapp/entities/NewsResponse.kt | IniongunIsaac | 274,266,177 | false | null | package com.iniongungroup.mobile.droid.newsapp.entities
data class NewsResponse(
val articles: List<Article>,
val status: String,
val totalResults: Int
) | 0 | Kotlin | 0 | 0 | 37735bf98d2978cb7c831636b24af94cf95030b9 | 166 | News-App-Android | The Unlicense |
app/src/main/java/io/github/vladimirmi/internetradioplayer/presentation/player/StationInfo.kt | maumedmac | 164,712,909 | true | {"Kotlin": 243412, "Java": 7538} | package io.github.vladimirmi.internetradioplayer.presentation.player
/**
* Created by <NAME> 12.09.2018.
*/
class StationInfo(val stationName: String, val groupName: String, val genres: List<String>)
| 0 | Kotlin | 0 | 0 | d0790128646820cfe80c84924c37b45001ed2201 | 204 | InternetRadioPlayer | MIT License |
app/src/main/java/com/jbgcomposer/flixhub/domain/use_cases/GetSearchResultUseCase.kt | jhonybguerra | 801,058,511 | false | {"Kotlin": 40984} | package com.jbgcomposer.flixhub.domain.use_cases
import com.jbgcomposer.flixhub.data.dto.SearchResultDto
import com.jbgcomposer.flixhub.domain.repository.RemoteDataRepository
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import javax.inject.Inject
class GetSearchResultUseCase @Inject constru... | 0 | Kotlin | 0 | 0 | be94395337aaefad6c84487ee4eb95b1b6c33bf2 | 515 | FlixHub | Apache License 2.0 |
app/src/main/java/com/duckduckgo/app/feedback/ui/positive/initial/PositiveFeedbackLandingFragment.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11627106, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} |
package com.duckduckgo.app.feedback.ui.positive.initial
import com.duckduckgo.anvil.annotations.InjectWith
import com.duckduckgo.app.browser.R
import com.duckduckgo.app.browser.databinding.ContentFeedbackPositiveLandingBinding
import com.duckduckgo.app.feedback.ui.common.FeedbackFragment
import com.duckduckgo.common... | 0 | Kotlin | 0 | 0 | 54351d039b85138a85cbfc7fc3bd5bc53637559f | 2,284 | DuckDuckGo | Apache License 2.0 |
app/src/main/java/hearsilent/zeplin/adapter/ProjectAdapter.kt | jerrylin-jf | 277,723,310 | true | {"Kotlin": 44420} | package hearsilent.zeplin.adapter
import android.content.Context
import android.content.Intent
import android.text.format.DateUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.bumpt... | 0 | Kotlin | 0 | 1 | dfef20d2db972988f60207c17a9549ba42dd62c9 | 2,360 | ZeplinPlus-Android | MIT License |
plugins/kotlin/jvm/src/org/jetbrains/kotlin/idea/internal/KotlinJvmDecompilerFacade.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.internal
import com.intellij.openapi.components.serviceOrNull
import org.jetbrains.kotlin.psi.KtFile
class DecompileFailedEx... | 191 | null | 4372 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 588 | intellij-community | Apache License 2.0 |
desk360/src/main/java/com/teknasyon/desk360/themev2/Desk360SuccessScreenButtonText.kt | EmreAlp | 249,766,343 | false | null | package com.teknasyon.desk360.themev2
import android.content.Context
import android.graphics.Color
import android.util.AttributeSet
import com.teknasyon.desk360.helper.AutoResizeTextView
import com.teknasyon.desk360.helper.Desk360Constants
class Desk360SuccessScreenButtonText : AutoResizeTextView {
init {
... | 1 | null | 1 | 1 | e904ca0139551161990534d2884d622edb5d9690 | 756 | test | MIT License |
shared/src/commonMain/kotlin/com/mrebollob/loteria/di/Expect.kt | mrebollob | 46,619,950 | false | {"Kotlin": 142333, "Swift": 29488, "Ruby": 1908} | package com.mrebollob.loteria.di
import org.koin.core.module.Module
expect fun platformModule(): Module
| 0 | Kotlin | 0 | 0 | 2fe351ceaa6a3fc40faf2d57e32325bff6d5235b | 106 | LoteriadeNavidad | Apache License 2.0 |
src/test/kotlin/utils/SignedLocationCertificate.kt | surething-project | 577,094,069 | false | {"Kotlin": 98336, "Procfile": 62} | package test.kotlin.utils
import pt.ulisboa.tecnico.transparency.ledger.contract.Ledger.SignedLocationCertificate
fun createSignedLocationCertificate(): SignedLocationCertificate {
return SignedLocationCertificate.newBuilder().apply {
this.id = DEFAULT_STRING
this.locationCertificate = createLocati... | 0 | Kotlin | 0 | 1 | 66fce6537c2a7dccf0e61760c58ffd5b9e3e476a | 394 | SureQualifiedQSCD | MIT License |
app/src/main/java/dev/sanskar/transactions/di/AppModule.kt | sanskar10100 | 434,694,604 | false | {"Kotlin": 82221} | package dev.sanskar.transactions.di
import android.content.Context
import androidx.room.Room
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import dev.sanskar.transactions.data.Preference... | 6 | Kotlin | 3 | 21 | 5a0833dc841a0afbfc598ca2c705ad9d19f78040 | 1,230 | Transactions | Apache License 2.0 |
sdk/src/commonMain/kotlin/io/timemates/sdk/timers/sessions/requests/PingSessionRequest.kt | timemates | 575,534,072 | false | null | package io.timemates.sdk.timers.sessions.requests
import io.timemates.sdk.authorization.types.value.AccessHash
import io.timemates.sdk.common.types.Empty
import io.timemates.sdk.common.types.TimeMatesRequest
import io.timemates.sdk.timers.types.value.TimerId
public data class LeaveTimerSessionRequest(
val accessH... | 4 | Kotlin | 0 | 9 | 7fa2875f94d5005aa34823af91ce4df73da5627d | 366 | sdk | MIT License |
src/main/kotlin/dev/mcenv/mcx/cli/Build.kt | mcenv | 721,052,595 | false | {"Kotlin": 135515, "JavaScript": 863, "TypeScript": 587} | package dev.mcenv.mcx.cli
import com.github.ajalt.clikt.core.CliktCommand
import dev.mcenv.mcx.pass.*
import dev.mcenv.mcx.readStream
import dev.mcenv.mcx.repr.Pack
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.decodeFromStream
import... | 43 | Kotlin | 0 | 5 | 6278a34a02bca84c9b1413c697014d20208e4a76 | 1,883 | mcx | MIT License |
src/client/kotlin/slabmagic/datagen/info/BlockInfo.kt | Jempasam | 717,593,852 | false | {"Kotlin": 338494, "Java": 1018} | package slabmagic.datagen.info
import net.fabricmc.fabric.api.datagen.v1.provider.FabricBlockLootTableProvider
import net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider
import net.minecraft.block.Block
import slabmagic.datagen.SlabMagicLanguageGenerator
import slabmagic.datagen.tools.SamModelGenerator
typ... | 0 | Kotlin | 0 | 0 | c306bfc7e784ba56a18d8502db3f265fe6604c7d | 692 | SlateMagic | Creative Commons Zero v1.0 Universal |
kingmc-common-api/src/main/kotlin/kingmc/util/annotation/impl/classgraph/ClassGraphAnnotationAttributeImpl.kt | Kingsthere | 603,292,992 | false | {"Kotlin": 316584, "Java": 717} | package kingmc.util.annotation.impl.classgraph
import io.github.classgraph.AnnotationClassRef
import io.github.classgraph.AnnotationEnumValue
import io.github.classgraph.AnnotationInfo
import io.github.classgraph.ClassInfo
import kingmc.util.annotation.model.classgraph.ClassGraphAnnotationAttribute
/**
* A `ClassGra... | 0 | Kotlin | 0 | 1 | df84d9d5b97e320eaea946fbf7ccda3ee3783fed | 1,186 | kingmc-common | MIT License |
konveyor/src/main/java/com/avito/konveyor/adapter/SimpleRecyclerAdapter.kt | avito-tech | 97,838,838 | false | null | package com.avito.konveyor.adapter
import android.support.annotation.LayoutRes
import android.support.v7.util.ListUpdateCallback
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.avito.konveyor.blueprint.ViewHolderBuilder
... | 4 | null | 6 | 48 | 73e361aa7485e48f4ded0af48f7289651cd2a734 | 2,096 | Konveyor | MIT License |
konveyor/src/main/java/com/avito/konveyor/adapter/SimpleRecyclerAdapter.kt | avito-tech | 97,838,838 | false | null | package com.avito.konveyor.adapter
import android.support.annotation.LayoutRes
import android.support.v7.util.ListUpdateCallback
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.avito.konveyor.blueprint.ViewHolderBuilder
... | 4 | null | 6 | 48 | 73e361aa7485e48f4ded0af48f7289651cd2a734 | 2,096 | Konveyor | MIT License |
science/src/main/java/com/kylecorry/sol/science/astronomy/AstroUtils.kt | kylecorry31 | 294,668,785 | false | null | package com.kylecorry.sol.science.astronomy
import com.kylecorry.sol.science.astronomy.locators.ICelestialLocator
import com.kylecorry.sol.science.astronomy.units.EquatorialCoordinate
import com.kylecorry.sol.science.astronomy.units.HorizonCoordinate
import com.kylecorry.sol.science.astronomy.units.UniversalTime
impor... | 12 | Kotlin | 3 | 6 | 6698b78bb41f6de462932d64df0d5078c8b57363 | 1,512 | sol | MIT License |
app/src/main/java/com/karl/demo/third/FlexboxLayoutActivity.kt | liaodongxiaoxiao | 329,031,269 | false | null | package com.karl.demo.third
import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.RecyclerView
import com.google.android.flexbox.FlexDirection
import com.google.android.flexbox.F... | 0 | Kotlin | 0 | 0 | f7b80e010589d3a41eca56ab2b6b229e44ba8765 | 2,549 | DemoForDev | Apache License 2.0 |
src/main/kotlin/dev/meanmail/codeInsight/completion/directives/ngx_http_sub_module.kt | meanmail-dev | 315,109,527 | false | {"Kotlin": 167591, "Java": 34357, "Lex": 3299, "HTML": 1064} | package dev.meanmail.codeInsight.completion.directives
// https://nginx.org/en/docs/http/ngx_http_sub_module.html
val subFilter = Directive("sub_filter")
val subFilterLastModified = ToggleDirective("sub_filter_last_modified", false)
val subFilterOnce = ToggleDirective("sub_filter_once", true)
val subFilterTypes = Dir... | 4 | Kotlin | 6 | 50 | 1d7460d1403c331a44358d051e3bd3a26f5fc198 | 597 | nginx-intellij-plugin | MIT License |
kotest-framework/kotest-framework-api/src/commonMain/kotlin/io/kotest/core/spec/CompositeSpec.kt | kotest | 47,071,082 | false | {"Kotlin": 4736924, "CSS": 352, "Java": 145} | package io.kotest.core.spec
import io.kotest.core.factory.TestFactory
abstract class CompositeSpec(private vararg val factories: TestFactory) : Spec() {
override fun rootTests(): List<RootTest> {
return factories.flatMap { it.tests }
}
}
| 141 | Kotlin | 648 | 4,435 | 2ce83d0f79e189c90e2d7bb3d16bd4f75dec9c2f | 252 | kotest | Apache License 2.0 |
proxy/src/main/kotlin/net/horizonsend/ion/proxy/commands/bungee/BungeeInfoCommand.kt | HorizonsEndMC | 461,042,096 | false | {"Kotlin": 2639199, "Java": 15809, "Shell": 1414, "JavaScript": 78} | package net.horizonsend.ion.proxy.commands.bungee
import co.aikar.commands.BaseCommand
import co.aikar.commands.annotation.CommandAlias
import co.aikar.commands.annotation.Default
import net.md_5.bungee.api.ChatColor
import net.md_5.bungee.api.chat.ClickEvent
import net.md_5.bungee.api.chat.ClickEvent.Action
import ne... | 17 | Kotlin | 27 | 9 | 4c52c237f9ebd4a5bf67b8721a9eb10bb6ff3bdc | 2,256 | Ion | MIT License |
data/test_cases/kotlin/KT_10244/kt_10244.kt | hephaestus-compiler-project | 357,714,584 | false | {"Python": 69750, "Java": 38407, "Kotlin": 21443, "Scala": 18704, "Shell": 16954, "Groovy": 16122, "Dockerfile": 700} | open class B
interface A
interface C
fun foo(b: B) = if (b is A && b is C) b else null
| 0 | Python | 1 | 6 | eafcb89bf2b383b3fb110177ad404568c9ee0420 | 88 | types-bug-study-artifact | MIT License |
common/geometry/src/main/kotlin/com/curtislb/adventofcode/common/geometry/CoordinateRanges.kt | curtislb | 226,797,689 | false | {"Kotlin": 2074798} | package com.curtislb.adventofcode.common.geometry
/**
* A pair of integer ranges corresponding to the x- and y-coordinates of a rectangular region in a
* 2D grid.
*
* @property x The range of x-coordinate values for the region.
* @property y The range of y-coordinate values for the region.
*/
data class Coordina... | 0 | Kotlin | 1 | 1 | 5d28da592cfa3158ef5be6b414cf13452748ac9b | 1,243 | AdventOfCode | MIT License |
src/test/kotlin/org/cryptobiotic/util/StopWatchTest.kt | JohnLCaron | 760,153,500 | false | {"Kotlin": 1139629} | package org.cryptobiotic.util
import java.util.concurrent.TimeUnit
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertTrue
class StopWatchTest {
@Test
fun basics() {
val stopwatchNotRunning = Stopwatch(false)
assertEquals(0, stopwatchNotRunning.stop())
s... | 16 | Kotlin | 0 | 0 | 7b622e1a3eb3d79e0723e194ecf51fc470a53ab9 | 1,656 | egk-ec | MIT License |
src/main/kotlin/com/kalikov/game/MoveProperty.kt | kalikov | 696,277,791 | false | {"Kotlin": 398450} | package com.kalikov.game
interface MoveProperty {
var value: Int
} | 0 | Kotlin | 0 | 0 | 5b1a07a155d177a9fb64940522cbe09cb4a8113a | 71 | battle-city | MIT License |
bio_auth_service/src/main/kotlin/fingerprint/FingerprintRoutes.kt | kiva | 274,506,511 | false | null | package org.kiva.bioauthservice.fingerprint
import datadog.trace.api.Trace
import io.ktor.application.call
import io.ktor.request.receive
import io.ktor.response.respond
import io.ktor.routing.Route
import io.ktor.routing.get
import io.ktor.routing.post
import io.ktor.routing.route
import io.ktor.util.KtorExperimental... | 9 | Kotlin | 1 | 1 | fd7b7230e217d7d7ea18b87d0b05c509927024d2 | 1,804 | guardian-bio-auth | Apache License 2.0 |
mokkery-runtime/src/commonTest/kotlin/dev/mokkery/matcher/collections/ValueNotInIterableArgMatcherTest.kt | lupuuss | 652,785,006 | false | null | package dev.mokkery.matcher.collections
import kotlin.test.Test
import kotlin.test.assertFalse
import kotlin.test.assertTrue
class ValueNotInIterableArgMatcherTest {
private val matcher = CollectionArgMatchers.ValueNotInIterable(listOf(1, 2, 3))
@Test
fun testReturnsTrueForValuesThatAreInIterable() {
... | 0 | Kotlin | 0 | 14 | 2677db54900769ebbede44e48b24df26672f6e38 | 680 | Mokkery | Apache License 2.0 |
session-value/src/commonMain/kotlin/com/alexvanyo/composelife/sessionvalue/SessionValueHolder.kt | alexvanyo | 375,146,193 | false | null | /*
* Copyright 2024 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 40 | null | 11 | 136 | 6020282a962fc8207953d98c4a8077a7b08996b5 | 11,901 | composelife | Apache License 2.0 |
platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/project/settings/EncodingConfigurationHandler.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-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 file.
package com.intellij.openapi.externalSystem.service.project.settings
import com.intellij.openapi.application.TransactionGuard
import com.intellij.openapi.externalSystem.model.pro... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 5,310 | intellij-community | Apache License 2.0 |
3p-ecosystem/src/androidTest/java/com/google/homesampleapp/screens/commissionable/mdns/MatterBeaconProducerMdnsFake.kt | google-home | 506,718,722 | false | null | /*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 25 | null | 33 | 91 | 53eeacce0bb732bd62abc4ae040f52d69d0105bb | 2,010 | sample-apps-for-matter-android | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationSMBProps.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 142794926} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.datasync
import io.cloudshiftdev.awscdk.CfnTag
import io.cloudshiftdev.awscdk.IResolvable
import io.c... | 1 | Kotlin | 0 | 4 | a18731816a3ec710bc89fb8767d2ab71cec558a6 | 20,341 | kotlin-cdk-wrapper | Apache License 2.0 |
app/src/main/java/com/hollabrowser/meforce/utils/FileUtils.kt | thearsenaldevteam | 524,712,465 | false | {"Kotlin": 1081389, "HTML": 29524, "Java": 5690, "JavaScript": 2126} | package com.hollabrowser.meforce.utils
import android.app.Application
import android.os.Bundle
import android.os.Environment
import android.os.Parcel
import android.util.Log
import com.hollabrowser.meforce.BrowserApp
import com.hollabrowser.meforce.utils.Utils.close
import io.reactivex.Completable
import java.io.*
/... | 0 | null | 0 | 0 | 43bac79108cbd9074ab21ade96f1c12d30db4c9f | 8,207 | holla-android | MIT License |
compiler/testData/diagnostics/tests/inlineClasses/inlineClassWithForbiddenUnderlyingType.kt | seratch | 144,085,733 | false | {"Markdown": 50, "Gradle": 318, "Gradle Kotlin DSL": 152, "Java Properties": 12, "Shell": 10, "Ignore List": 10, "Batchfile": 8, "Git Attributes": 1, "Protocol Buffer": 9, "Java": 5109, "Kotlin": 39438, "Proguard": 6, "XML": 1560, "Text": 8051, "JavaScript": 237, "JAR Manifest": 2, "Roff": 207, "Roff Manpage": 26, "INI... | // !LANGUAGE: +InlineClasses
inline class Foo<T>(val x: <!INLINE_CLASS_HAS_INAPPLICABLE_PARAMETER_TYPE!>T<!>)
inline class FooNullable<T>(val x: <!INLINE_CLASS_HAS_INAPPLICABLE_PARAMETER_TYPE!>T?<!>)
inline class Bar(val u: <!INLINE_CLASS_HAS_INAPPLICABLE_PARAMETER_TYPE!>Unit<!>)
inline class BarNullable(val u: Unit?... | 1 | null | 1 | 1 | 36a99da8209defc9c16fdeccbeabbf1f26966fe3 | 449 | kotlin | Apache License 2.0 |
for_student/src/main/java/com/yetk/for_student/domain/repository/CollegeGroupDataRepository.kt | RUD0MIR | 726,705,497 | false | {"Kotlin": 159262} | package com.yetk.for_student.domain.repository
import com.yetk.for_student.common.Response
import com.yetk.for_student.domain.model.BellSchedule
import com.yetk.for_student.domain.model.CollegeGroup
import kotlinx.coroutines.flow.Flow
interface CollegeGroupDataRepository {
fun getCollegeGroupData(groupId: String)... | 0 | Kotlin | 0 | 0 | 4420c8a8efd6b076a812c21403354e09f2eaa5d5 | 455 | YETK-schedule | MIT License |
core/src/commonMain/kotlin/io/github/kevincianfarini/monarch/FeatureFlagManagerMixin.kt | kevincianfarini | 559,985,324 | false | {"Kotlin": 64316} | package io.github.kevincianfarini.monarch
/**
* A supplement to [MixinFeatureFlagManager] that allows extension via [FeatureFlagManagerMixin.currentValueOfOrNull].
*
* Implementations of this interface can opt to handle 1 or more [FeatureFlag] types. For example, if we want to add a
* mixin that supports JSON, we ... | 13 | Kotlin | 0 | 65 | df1726c8f79e12d7ef6e139421c11f81c8c84ac3 | 1,119 | monarch | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/PrintMagnifyingGlass.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mite... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,690 | icons | MIT License |
shared/src/commonMain/kotlin/screens/preAuth/LandingScreen.kt | big-jared | 721,852,180 | false | {"Kotlin": 31451, "Swift": 687, "Shell": 228} | package screens.preAuth
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import android... | 0 | Kotlin | 0 | 0 | 6f4ecaf4fcabeef27d1ad44ab3ae77cd5d23434b | 3,391 | Lolito | Apache License 2.0 |
src/main/kotlin/org/pio/rsn/command/ConfigCommand.kt | codeinvoid | 651,920,500 | false | {"Kotlin": 18725, "Java": 7533} | package org.pio.rsn.command
import net.minecraft.server.command.ServerCommandSource
import net.minecraft.text.Style
import net.minecraft.text.Text
import net.minecraft.util.Formatting
import net.silkmc.silk.commands.PermissionLevel
import net.silkmc.silk.commands.command
import org.pio.rsn.Server
import org.pio.rsn.ut... | 0 | Kotlin | 0 | 0 | 91ecfa8e85e98fce0459a97e4efd5e399e9ede69 | 3,519 | RSNUtils-Remake | Apache License 2.0 |
rpgJavaInterpreter-core/src/main/kotlin/com/smeup/rpgparser/interpreter/movel.kt | smeup | 170,714,014 | false | {"RPGLE": 5868356, "Kotlin": 1383424, "ANTLR": 159460, "Java": 13703, "Ruby": 1899, "PowerShell": 861, "Dockerfile": 551, "Batchfile": 395} | package com.smeup.rpgparser.interpreter
import com.smeup.rpgparser.parsing.ast.*
import java.math.BigDecimal
private fun assignStringToString(operationExtender: String?, target: AssignableExpression, valueExpression: Expression, interpreterCore: InterpreterCore): Value {
var newValue = interpreterCore.eval(valueE... | 8 | RPGLE | 12 | 57 | 19e0af4c7f3e170d3f7fe89a77aa79182ae3cf9d | 3,117 | jariko | Apache License 2.0 |
samples/mapzen-sample/src/test/java/mapzen/com/sdksampleapp/TestRoutingController.kt | mapzen | 46,000,465 | false | null | package mapzen.com.sdksampleapp
import com.mapzen.android.graphics.MapzenMap
import mapzen.com.sdksampleapp.controllers.RoutingController
import org.mockito.Mockito.mock
class TestRoutingController : RoutingController {
private val map = mock(MapzenMap::class.java)
override fun getMapzenMap(): MapzenMap? {
... | 79 | Java | 65 | 111 | 0cbf18945cdb03cad5859fc9cff4804333ac29bb | 337 | android | Apache License 2.0 |
src/main/java/com/bot/commands/voice/ListTracksCommand.kt | kikkia | 114,629,814 | false | null | package com.bot.commands.voice
import com.bot.commands.VoiceCommand
import com.bot.voice.QueuedAudioTrack
import com.bot.voice.VoiceSendHandler
import com.jagrosh.jdautilities.command.CommandEvent
import com.jagrosh.jdautilities.commons.waiter.EventWaiter
import com.jagrosh.jdautilities.menu.Paginator
import datadog.t... | 11 | null | 13 | 32 | eef6fb2166ecab3ebdd399fb1d91160a59739c71 | 2,102 | Vinny | MIT License |
app/src/main/java/kz/ildar/sandbox/data/go/statebar/ScopeDelegate.kt | ildar2 | 174,002,407 | false | {"Kotlin": 245981, "Java": 6626} | package kz.ildar.sandbox.data.go.statebar
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.CoroutineExceptionHandler
import kotlinx.coroutines.CoroutineName
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.CoroutineStart
import kotlinx.coroutines.Dispatchers
import kotlinx.coro... | 1 | Kotlin | 2 | 6 | 67041fd91ce6a15b2f2c28350588a3d963959569 | 2,794 | MySandbox | BSD 2-Clause FreeBSD License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.